/******/ (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 padding }, ]; return { root: [ classNames.root, (0, Styling_1.getFocusStyle)(theme), theme.fonts.medium, { // keep the border for height but color it so it's invisible. borderBottom: "1px solid ".concat(semanticColors.listBackground), cursor: 'default', userSelect: 'none', selectors: (_a = { ':hover': { background: semanticColors.listItemBackgroundHovered, color: semanticColors.actionLinkHovered, } }, _a["&:hover .".concat(classNames.check)] = { opacity: 1, }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus .").concat(classNames.check)] = { opacity: 1, }, _a[":global(.".concat(classNames.group, ".").concat(classNames.isDropping, ")")] = { selectors: (_b = {}, _b["& > .".concat(classNames.root, " .").concat(classNames.dropIcon)] = { transition: "transform ".concat(Styling_1.AnimationVariables.durationValue4, " ").concat(beziers.easeOutCirc, " ") + "opacity ".concat(Styling_1.AnimationVariables.durationValue1, " ").concat(beziers.easeOutSine), transitionDelay: Styling_1.AnimationVariables.durationValue3, opacity: 1, transform: "rotate(0.2deg) scale(1);", // rotation prevents jittery motion in IE }, _b[".".concat(classNames.check)] = { opacity: 0, }, _b), }, _a), }, selected && [ classNames.isSelected, { background: semanticColors.listItemBackgroundChecked, selectors: (_c = { ':hover': { background: semanticColors.listItemBackgroundCheckedHovered, } }, _c["".concat(classNames.check)] = { opacity: 1, }, _c), }, ], compact && [classNames.compact, { border: 'none' }], className, ], groupHeaderContainer: [ { display: 'flex', alignItems: 'center', height: finalRowHeight, }, ], headerCount: [ { padding: '0px 4px', }, ], check: [ classNames.check, checkExpandResetStyles, { display: 'flex', alignItems: 'center', justifyContent: 'center', // paddingTop and marginTop brought from the DetailsRow.styles.ts with explanation below. // 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, opacity: 0, width: DetailsRowCheck_styles_1.CHECK_CELL_WIDTH, height: finalRowHeight, selectors: (_d = {}, _d[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { opacity: 1, }, _d), }, ], expand: [ classNames.expand, checkExpandResetStyles, { display: 'flex', flexShrink: 0, alignItems: 'center', justifyContent: 'center', fontSize: fonts.small.fontSize, width: GroupSpacer_1.SPACER_WIDTH, height: finalRowHeight, color: selected ? palette.neutralPrimary : palette.neutralSecondary, selectors: { ':hover': { backgroundColor: selected ? palette.neutralQuaternary : palette.neutralLight, }, ':active': { backgroundColor: selected ? palette.neutralTertiaryAlt : palette.neutralQuaternaryAlt, }, }, }, ], expandIsCollapsed: [ isCollapsed ? [ classNames.isCollapsed, { transform: 'rotate(0deg)', transformOrigin: '50% 50%', transition: 'transform .1s linear', }, ] : { transform: (0, Utilities_1.getRTL)(theme) ? 'rotate(-90deg)' : 'rotate(90deg)', transformOrigin: '50% 50%', transition: 'transform .1s linear', }, ], title: [ classNames.title, { paddingLeft: cellLeftPadding, fontSize: compact ? fonts.medium.fontSize : fonts.mediumPlus.fontSize, fontWeight: isCollapsed ? Styling_1.FontWeights.regular : Styling_1.FontWeights.semibold, cursor: 'pointer', outline: 0, whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', }, ], dropIcon: [ classNames.dropIcon, { position: 'absolute', left: -26, fontSize: Styling_1.IconFontSizes.large, color: palette.neutralSecondary, transition: "transform ".concat(Styling_1.AnimationVariables.durationValue2, " ").concat(beziers.easeInBack, ", ") + "opacity ".concat(Styling_1.AnimationVariables.durationValue4, " ").concat(beziers.easeOutSine), opacity: 0, transform: 'rotate(0.2deg) scale(0.65)', transformOrigin: '10px 10px', selectors: (_e = {}, _e[":global(.".concat(classNames.iconTag, ")")] = { position: 'absolute', }, _e), }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=GroupHeader.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.base.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.base.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupShowAllBase = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Link_1 = __webpack_require__(/*! ../../Link */ "./node_modules/@fluentui/react/lib-commonjs/Link.js"); var GroupSpacer_1 = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var GroupShowAllBase = function (props) { var group = props.group, groupLevel = props.groupLevel, _a = props.showAllLinkText, showAllLinkText = _a === void 0 ? 'Show All' : _a, styles = props.styles, theme = props.theme, onToggleSummarize = props.onToggleSummarize; var classNames = getClassNames(styles, { theme: theme }); var memoizedOnClick = (0, react_1.useCallback)(function (ev) { onToggleSummarize(group); ev.stopPropagation(); ev.preventDefault(); }, [onToggleSummarize, group]); if (group) { return (React.createElement("div", { className: classNames.root }, React.createElement(GroupSpacer_1.GroupSpacer, { count: groupLevel }), React.createElement(Link_1.Link, { onClick: memoizedOnClick }, showAllLinkText))); } return null; }; exports.GroupShowAllBase = GroupShowAllBase; //# sourceMappingURL=GroupShowAll.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupShowAll = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupShowAll_styles_1 = __webpack_require__(/*! ./GroupShowAll.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.styles.js"); var GroupShowAll_base_1 = __webpack_require__(/*! ./GroupShowAll.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.base.js"); exports.GroupShowAll = (0, Utilities_1.styled)(GroupShowAll_base_1.GroupShowAllBase, GroupShowAll_styles_1.getStyles, undefined, { scope: 'GroupShowAll' }); //# sourceMappingURL=GroupShowAll.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.styles.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.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-GroupShowAll', link: 'ms-Link', }; var getStyles = function (props) { var _a; var theme = props.theme; var fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { position: 'relative', padding: '10px 84px', cursor: 'pointer', selectors: (_a = {}, _a[".".concat(classNames.link)] = { fontSize: fonts.small.fontSize, }, _a), }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=GroupShowAll.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupSpacer = exports.SPACER_WIDTH = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.SPACER_WIDTH = 36; var GroupSpacer = function (props) { var count = props.count, _a = props.indentWidth, indentWidth = _a === void 0 ? exports.SPACER_WIDTH : _a, _b = props.role, role = _b === void 0 ? 'presentation' : _b; var width = count * indentWidth; return count > 0 ? (React.createElement("span", { className: 'ms-GroupSpacer', style: { display: 'inline-block', width: width }, role: role })) : null; }; exports.GroupSpacer = GroupSpacer; //# sourceMappingURL=GroupSpacer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=GroupSpacer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupedListBase = 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 GroupedListSection_1 = __webpack_require__(/*! ./GroupedListSection */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListSection.js"); var List_1 = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ../DetailsList/DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var ROW_HEIGHT = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.rowHeight, COMPACT_ROW_HEIGHT = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.compactRowHeight; var GroupedListBase = /** @class */ (function (_super) { tslib_1.__extends(GroupedListBase, _super); function GroupedListBase(props) { var _this = _super.call(this, props) || this; _this._list = React.createRef(); _this._renderGroup = function (group, groupIndex) { var _a = _this.props, dragDropEvents = _a.dragDropEvents, dragDropHelper = _a.dragDropHelper, eventsToRegister = _a.eventsToRegister, groupProps = _a.groupProps, items = _a.items, listProps = _a.listProps, onRenderCell = _a.onRenderCell, selectionMode = _a.selectionMode, selection = _a.selection, viewport = _a.viewport, onShouldVirtualize = _a.onShouldVirtualize, groups = _a.groups, compact = _a.compact; // override group header/footer props as needed var dividerProps = { onToggleSelectGroup: _this._onToggleSelectGroup, onToggleCollapse: _this._onToggleCollapse, onToggleSummarize: _this._onToggleSummarize, }; var headerProps = tslib_1.__assign(tslib_1.__assign({}, groupProps.headerProps), dividerProps); var showAllProps = tslib_1.__assign(tslib_1.__assign({}, groupProps.showAllProps), dividerProps); var footerProps = tslib_1.__assign(tslib_1.__assign({}, groupProps.footerProps), dividerProps); var groupNestingDepth = _this._getGroupNestingDepth(); if (!groupProps.showEmptyGroups && group && group.count === 0) { return null; } var finalListProps = tslib_1.__assign(tslib_1.__assign({}, (listProps || {})), { version: _this.state.version }); return (React.createElement(GroupedListSection_1.GroupedListSection, { key: _this._getGroupKey(group, groupIndex), dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, eventsToRegister: eventsToRegister, footerProps: footerProps, getGroupItemLimit: groupProps && groupProps.getGroupItemLimit, group: group, groupIndex: groupIndex, groupNestingDepth: groupNestingDepth, groupProps: groupProps, headerProps: headerProps, listProps: finalListProps, items: items, onRenderCell: onRenderCell, onRenderGroupHeader: groupProps.onRenderHeader, onRenderGroupShowAll: groupProps.onRenderShowAll, onRenderGroupFooter: groupProps.onRenderFooter, selectionMode: selectionMode, selection: selection, showAllProps: showAllProps, viewport: viewport, onShouldVirtualize: onShouldVirtualize, groupedListClassNames: _this._classNames, groups: groups, compact: compact })); }; _this._getDefaultGroupItemLimit = function (group) { return group.children && group.children.length > 0 ? group.children.length : group.count; }; _this._getGroupItemLimit = function (group) { var groupProps = _this.props.groupProps; var getGroupItemLimit = groupProps && groupProps.getGroupItemLimit ? groupProps.getGroupItemLimit : _this._getDefaultGroupItemLimit; return getGroupItemLimit(group); }; _this._getGroupHeight = function (group) { var rowHeight = _this.props.compact ? COMPACT_ROW_HEIGHT : ROW_HEIGHT; return rowHeight + (group.isCollapsed ? 0 : rowHeight * _this._getGroupItemLimit(group)); }; _this._getPageHeight = function (itemIndex) { var groups = _this.state.groups; var _a = _this.props.getGroupHeight, getGroupHeight = _a === void 0 ? _this._getGroupHeight : _a; var pageGroup = groups && groups[itemIndex]; if (pageGroup) { return getGroupHeight(pageGroup, itemIndex); } else { return 0; } }; _this._onToggleCollapse = function (group) { var groupProps = _this.props.groupProps; var onToggleCollapse = groupProps && groupProps.headerProps && groupProps.headerProps.onToggleCollapse; if (group) { if (onToggleCollapse) { onToggleCollapse(group); } group.isCollapsed = !group.isCollapsed; _this._updateIsSomeGroupExpanded(); _this.forceUpdate(); } }; _this._onToggleSelectGroup = function (group) { var _a = _this.props, selection = _a.selection, selectionMode = _a.selectionMode; if (group && selection && selectionMode === Selection_1.SelectionMode.multiple) { selection.toggleRangeSelected(group.startIndex, group.count); } }; _this._isInnerZoneKeystroke = function (ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === (0, Utilities_1.getRTLSafeKeyCode)(Utilities_1.KeyCodes.right); }; _this._onToggleSummarize = function (group) { var groupProps = _this.props.groupProps; var onToggleSummarize = groupProps && groupProps.showAllProps && groupProps.showAllProps.onToggleSummarize; if (onToggleSummarize) { onToggleSummarize(group); } else { if (group) { group.isShowingAll = !group.isShowingAll; } _this.forceUpdate(); } }; _this._getPageSpecification = function (itemIndex) { var groups = _this.state.groups; var pageGroup = groups && groups[itemIndex]; return { key: pageGroup && pageGroup.key, }; }; (0, Utilities_1.initializeComponentRef)(_this); _this._isSomeGroupExpanded = _this._computeIsSomeGroupExpanded(props.groups); var _a = props.listProps, _b = _a === void 0 ? {} : _a, _c = _b.version, version = _c === void 0 ? {} : _c; _this.state = { groups: props.groups, items: props.items, listProps: props.listProps, version: version, }; return _this; } GroupedListBase.getDerivedStateFromProps = function (nextProps, previousState) { var groups = nextProps.groups, selectionMode = nextProps.selectionMode, compact = nextProps.compact, items = nextProps.items, listProps = nextProps.listProps; var listVersion = listProps && listProps.version; var nextState = tslib_1.__assign(tslib_1.__assign({}, previousState), { selectionMode: selectionMode, compact: compact, groups: groups, listProps: listProps, items: items }); var shouldForceUpdates = false; var previousListVersion = previousState.listProps && previousState.listProps.version; if (listVersion !== previousListVersion || items !== previousState.items || groups !== previousState.groups || selectionMode !== previousState.selectionMode || compact !== previousState.compact) { // If there are any props not passed explicitly to `List` which have an impact on the behavior of `onRenderCell`, // these need to 'force-update' this component by revving the version. Otherwise, the List might render with stale // data. shouldForceUpdates = true; } if (shouldForceUpdates) { nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), { version: {} }); } return nextState; }; GroupedListBase.prototype.scrollToIndex = function (index, measureItem, scrollToMode) { if (this._list.current) { this._list.current.scrollToIndex(index, measureItem, scrollToMode); } }; GroupedListBase.prototype.getStartItemIndexInView = function () { return this._list.current.getStartItemIndexInView() || 0; }; GroupedListBase.prototype.componentDidMount = function () { var _a = this.props, groupProps = _a.groupProps, _b = _a.groups, groups = _b === void 0 ? [] : _b; if (groupProps && groupProps.isAllGroupsCollapsed) { this._setGroupsCollapsedState(groups, groupProps.isAllGroupsCollapsed); } }; GroupedListBase.prototype.render = function () { var _a = this.props, className = _a.className, usePageCache = _a.usePageCache, onShouldVirtualize = _a.onShouldVirtualize, theme = _a.theme, _b = _a.role, role = _b === void 0 ? 'treegrid' : _b, styles = _a.styles, compact = _a.compact, _c = _a.focusZoneProps, focusZoneProps = _c === void 0 ? {} : _c, _d = _a.rootListProps, rootListProps = _d === void 0 ? {} : _d; var _e = this.state, groups = _e.groups, version = _e.version; this._classNames = getClassNames(styles, { theme: theme, className: className, compact: compact, }); var _f = focusZoneProps.shouldEnterInnerZone, shouldEnterInnerZone = _f === void 0 ? this._isInnerZoneKeystroke : _f; return (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.vertical, "data-automationid": "GroupedList", "data-is-scrollable": "false", role: "presentation" }, focusZoneProps, { shouldEnterInnerZone: shouldEnterInnerZone, className: (0, Utilities_1.css)(this._classNames.root, focusZoneProps.className) }), !groups ? (this._renderGroup(undefined, 0)) : (React.createElement(List_1.List, tslib_1.__assign({ ref: this._list, role: role, items: groups, onRenderCell: this._renderGroup, getItemCountForPage: this._returnOne, getPageHeight: this._getPageHeight, getPageSpecification: this._getPageSpecification, usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize, version: version }, rootListProps))))); }; GroupedListBase.prototype.forceUpdate = function () { _super.prototype.forceUpdate.call(this); this._forceListUpdates(); }; GroupedListBase.prototype.toggleCollapseAll = function (allCollapsed) { var _a = this.state.groups, groups = _a === void 0 ? [] : _a; var groupProps = this.props.groupProps; var onToggleCollapseAll = groupProps && groupProps.onToggleCollapseAll; if (groups.length > 0) { if (onToggleCollapseAll) { onToggleCollapseAll(allCollapsed); } this._setGroupsCollapsedState(groups, allCollapsed); this._updateIsSomeGroupExpanded(); this.forceUpdate(); } }; GroupedListBase.prototype._setGroupsCollapsedState = function (groups, isCollapsed) { for (var groupIndex = 0; groupIndex < groups.length; groupIndex++) { groups[groupIndex].isCollapsed = isCollapsed; } }; GroupedListBase.prototype._returnOne = function () { return 1; }; GroupedListBase.prototype._getGroupKey = function (group, index) { return 'group-' + (group && group.key ? group.key : String(index)); }; GroupedListBase.prototype._getGroupNestingDepth = function () { var groups = this.state.groups; var level = 0; var groupsInLevel = groups; while (groupsInLevel && groupsInLevel.length > 0) { level++; groupsInLevel = groupsInLevel[0].children; } return level; }; GroupedListBase.prototype._forceListUpdates = function (groups) { this.setState({ version: {}, }); }; GroupedListBase.prototype._computeIsSomeGroupExpanded = function (groups) { var _this = this; return !!(groups && groups.some(function (group) { return (group.children ? _this._computeIsSomeGroupExpanded(group.children) : !group.isCollapsed); })); }; GroupedListBase.prototype._updateIsSomeGroupExpanded = function () { var groups = this.state.groups; var onGroupExpandStateChanged = this.props.onGroupExpandStateChanged; var newIsSomeGroupExpanded = this._computeIsSomeGroupExpanded(groups); if (this._isSomeGroupExpanded !== newIsSomeGroupExpanded) { if (onGroupExpandStateChanged) { onGroupExpandStateChanged(newIsSomeGroupExpanded); } this._isSomeGroupExpanded = newIsSomeGroupExpanded; } }; GroupedListBase.defaultProps = { selectionMode: Selection_1.SelectionMode.multiple, isHeaderVisible: true, groupProps: {}, compact: false, }; return GroupedListBase; }(React.Component)); exports.GroupedListBase = GroupedListBase; //# sourceMappingURL=GroupedList.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupedList = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupedList_styles_1 = __webpack_require__(/*! ./GroupedList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.styles.js"); var GroupedList_base_1 = __webpack_require__(/*! ./GroupedList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.base.js"); exports.GroupedList = (0, Utilities_1.styled)(GroupedList_base_1.GroupedListBase, GroupedList_styles_1.getStyles, undefined, { scope: 'GroupedList', }); //# sourceMappingURL=GroupedList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.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-GroupedList', compact: 'ms-GroupedList--Compact', group: 'ms-GroupedList-group', link: 'ms-Link', listCell: 'ms-List-cell', }; var beziers = { easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)', }; var getStyles = function (props) { var _a, _b; var theme = props.theme, className = props.className, compact = props.compact; var palette = theme.palette; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.small, { position: 'relative', selectors: (_a = {}, _a[".".concat(classNames.listCell)] = { minHeight: 38, // be consistent with DetailsList styles }, _a), }, compact && [ classNames.compact, { selectors: (_b = {}, _b[".".concat(classNames.listCell)] = { minHeight: 32, // be consistent with DetailsList styles }, _b), }, ], className, ], group: [ classNames.group, { transition: "background-color ".concat(Styling_1.AnimationVariables.durationValue2, " ").concat(beziers.easeInOutSine), }, ], groupIsDropping: { backgroundColor: palette.neutralLight, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=GroupedList.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CollapseAllVisibility = void 0; /** * {@docCategory GroupedList} */ var CollapseAllVisibility; (function (CollapseAllVisibility) { CollapseAllVisibility[CollapseAllVisibility["hidden"] = 0] = "hidden"; CollapseAllVisibility[CollapseAllVisibility["visible"] = 1] = "visible"; })(CollapseAllVisibility = exports.CollapseAllVisibility || (exports.CollapseAllVisibility = {})); //# sourceMappingURL=GroupedList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListSection.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListSection.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupedListSection = 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 GroupHeader_1 = __webpack_require__(/*! ./GroupHeader */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.js"); var GroupShowAll_1 = __webpack_require__(/*! ./GroupShowAll */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.js"); var GroupFooter_1 = __webpack_require__(/*! ./GroupFooter */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.js"); var List_1 = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); var DEFAULT_DROPPING_CSS_CLASS = 'is-dropping'; var GroupedListSection = /** @class */ (function (_super) { tslib_1.__extends(GroupedListSection, _super); function GroupedListSection(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._list = React.createRef(); _this._subGroupRefs = {}; _this._droppingClassName = ''; _this._onRenderGroupHeader = function (props) { return React.createElement(GroupHeader_1.GroupHeader, tslib_1.__assign({}, props)); }; _this._onRenderGroupShowAll = function (props) { return React.createElement(GroupShowAll_1.GroupShowAll, tslib_1.__assign({}, props)); }; _this._onRenderGroupFooter = function (props) { return React.createElement(GroupFooter_1.GroupFooter, tslib_1.__assign({}, props)); }; _this._renderSubGroup = function (subGroup, subGroupIndex) { var _a = _this.props, dragDropEvents = _a.dragDropEvents, dragDropHelper = _a.dragDropHelper, eventsToRegister = _a.eventsToRegister, getGroupItemLimit = _a.getGroupItemLimit, groupNestingDepth = _a.groupNestingDepth, groupProps = _a.groupProps, items = _a.items, headerProps = _a.headerProps, showAllProps = _a.showAllProps, footerProps = _a.footerProps, listProps = _a.listProps, onRenderCell = _a.onRenderCell, selection = _a.selection, selectionMode = _a.selectionMode, viewport = _a.viewport, onRenderGroupHeader = _a.onRenderGroupHeader, onRenderGroupShowAll = _a.onRenderGroupShowAll, onRenderGroupFooter = _a.onRenderGroupFooter, onShouldVirtualize = _a.onShouldVirtualize, group = _a.group, compact = _a.compact; var nestingDepth = subGroup.level ? subGroup.level + 1 : groupNestingDepth; return !subGroup || subGroup.count > 0 || (groupProps && groupProps.showEmptyGroups) ? (React.createElement(GroupedListSection, { ref: function (ref) { return (_this._subGroupRefs['subGroup_' + subGroupIndex] = ref); }, key: _this._getGroupKey(subGroup, subGroupIndex), dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, eventsToRegister: eventsToRegister, footerProps: footerProps, getGroupItemLimit: getGroupItemLimit, group: subGroup, groupIndex: subGroupIndex, groupNestingDepth: nestingDepth, groupProps: groupProps, headerProps: headerProps, items: items, listProps: listProps, onRenderCell: onRenderCell, selection: selection, selectionMode: selectionMode, showAllProps: showAllProps, viewport: viewport, onRenderGroupHeader: onRenderGroupHeader, onRenderGroupShowAll: onRenderGroupShowAll, onRenderGroupFooter: onRenderGroupFooter, onShouldVirtualize: onShouldVirtualize, groups: group ? group.children : [], compact: compact })) : null; }; /** * collect all the data we need to enable drag/drop for a group */ _this._getGroupDragDropOptions = function () { var _a = _this.props, group = _a.group, groupIndex = _a.groupIndex, dragDropEvents = _a.dragDropEvents, eventsToRegister = _a.eventsToRegister; var options = { eventMap: eventsToRegister, selectionIndex: -1, context: { data: group, index: groupIndex, isGroup: true }, updateDropState: _this._updateDroppingState, canDrag: dragDropEvents.canDrag, canDrop: dragDropEvents.canDrop, onDrop: dragDropEvents.onDrop, onDragStart: dragDropEvents.onDragStart, onDragEnter: dragDropEvents.onDragEnter, onDragLeave: dragDropEvents.onDragLeave, onDragEnd: dragDropEvents.onDragEnd, onDragOver: dragDropEvents.onDragOver, }; return options; }; /** * update groupIsDropping state based on the input value, which is used to change style during drag and drop * * @param newValue - new isDropping state value * @param event - the event trigger dropping state change which can be dragenter, dragleave etc */ _this._updateDroppingState = function (newIsDropping, event) { var isDropping = _this.state.isDropping; var _a = _this.props, dragDropEvents = _a.dragDropEvents, group = _a.group; if (isDropping !== newIsDropping) { if (isDropping) { if (dragDropEvents && dragDropEvents.onDragLeave) { dragDropEvents.onDragLeave(group, event); } } else { if (dragDropEvents && dragDropEvents.onDragEnter) { _this._droppingClassName = dragDropEvents.onDragEnter(group, event); } } _this.setState({ isDropping: newIsDropping }); } }; var selection = props.selection, group = props.group; (0, Utilities_1.initializeComponentRef)(_this); _this._id = (0, Utilities_1.getId)('GroupedListSection'); _this.state = { isDropping: false, isSelected: selection && group ? selection.isRangeSelected(group.startIndex, group.count) : false, }; _this._events = new Utilities_1.EventGroup(_this); return _this; } GroupedListSection.prototype.componentDidMount = function () { var _a = this.props, dragDropHelper = _a.dragDropHelper, selection = _a.selection; if (dragDropHelper && this._root.current) { this._dragDropSubscription = dragDropHelper.subscribe(this._root.current, this._events, this._getGroupDragDropOptions()); } if (selection) { this._events.on(selection, Selection_1.SELECTION_CHANGE, this._onSelectionChange); } }; GroupedListSection.prototype.componentWillUnmount = function () { this._events.dispose(); if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); } }; GroupedListSection.prototype.componentDidUpdate = function (previousProps) { if (this.props.group !== previousProps.group || this.props.groupIndex !== previousProps.groupIndex || 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._getGroupDragDropOptions()); } } }; GroupedListSection.prototype.render = function () { var _a = this.props, getGroupItemLimit = _a.getGroupItemLimit, group = _a.group, groupIndex = _a.groupIndex, headerProps = _a.headerProps, showAllProps = _a.showAllProps, footerProps = _a.footerProps, viewport = _a.viewport, selectionMode = _a.selectionMode, _b = _a.onRenderGroupHeader, onRenderGroupHeader = _b === void 0 ? this._onRenderGroupHeader : _b, _c = _a.onRenderGroupShowAll, onRenderGroupShowAll = _c === void 0 ? this._onRenderGroupShowAll : _c, _d = _a.onRenderGroupFooter, onRenderGroupFooter = _d === void 0 ? this._onRenderGroupFooter : _d, onShouldVirtualize = _a.onShouldVirtualize, groupedListClassNames = _a.groupedListClassNames, groups = _a.groups, compact = _a.compact, _e = _a.listProps, listProps = _e === void 0 ? {} : _e; var isSelected = this.state.isSelected; var renderCount = group && getGroupItemLimit ? getGroupItemLimit(group) : Infinity; var isShowAllVisible = group && !group.children && !group.isCollapsed && !group.isShowingAll && (group.count > renderCount || group.hasMoreData); var hasNestedGroups = group && group.children && group.children.length > 0; var version = listProps.version; var dividerProps = { group: group, groupIndex: groupIndex, groupLevel: group ? group.level : 0, isSelected: isSelected, selected: isSelected, viewport: viewport, selectionMode: selectionMode, groups: groups, compact: compact, }; var ariaControlsProps = { groupedListId: this._id, ariaLevel: (group === null || group === void 0 ? void 0 : group.level) ? group.level + 1 : 1, ariaSetSize: groups ? groups.length : undefined, ariaPosInSet: groupIndex !== undefined ? groupIndex + 1 : undefined, }; var groupHeaderProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, headerProps), dividerProps), ariaControlsProps); var groupShowAllProps = tslib_1.__assign(tslib_1.__assign({}, showAllProps), dividerProps); var groupFooterProps = tslib_1.__assign(tslib_1.__assign({}, footerProps), dividerProps); var isDraggable = !!this.props.dragDropHelper && this._getGroupDragDropOptions().canDrag(group) && !!this.props.dragDropEvents.canDragGroups; return (React.createElement("div", tslib_1.__assign({ ref: this._root }, (isDraggable && { draggable: true }), { className: (0, Utilities_1.css)(groupedListClassNames && groupedListClassNames.group, this._getDroppingClassName()), role: "presentation" }), onRenderGroupHeader(groupHeaderProps, this._onRenderGroupHeader), group && group.isCollapsed ? null : hasNestedGroups ? (React.createElement(List_1.List, { role: "presentation", ref: this._list, items: group ? group.children : [], onRenderCell: this._renderSubGroup, getItemCountForPage: this._returnOne, onShouldVirtualize: onShouldVirtualize, version: version, id: this._id })) : (this._onRenderGroup(renderCount)), group && group.isCollapsed ? null : isShowAllVisible && onRenderGroupShowAll(groupShowAllProps, this._onRenderGroupShowAll), onRenderGroupFooter(groupFooterProps, this._onRenderGroupFooter))); }; GroupedListSection.prototype.forceUpdate = function () { _super.prototype.forceUpdate.call(this); this.forceListUpdate(); }; GroupedListSection.prototype.forceListUpdate = function () { var group = this.props.group; if (this._list.current) { this._list.current.forceUpdate(); if (group && group.children && group.children.length > 0) { var subGroupCount = group.children.length; for (var i = 0; i < subGroupCount; i++) { var subGroup = this._list.current.pageRefs['subGroup_' + String(i)]; if (subGroup) { subGroup.forceListUpdate(); } } } } else { var subGroup = this._subGroupRefs['subGroup_' + String(0)]; if (subGroup) { subGroup.forceListUpdate(); } } }; GroupedListSection.prototype._onSelectionChange = function () { var _a = this.props, group = _a.group, selection = _a.selection; if (selection && group) { var isSelected = selection.isRangeSelected(group.startIndex, group.count); if (isSelected !== this.state.isSelected) { this.setState({ isSelected: isSelected }); } } }; GroupedListSection.prototype._onRenderGroupCell = function (onRenderCell, groupNestingDepth, group) { return function (item, itemIndex) { return onRenderCell(groupNestingDepth, item, itemIndex, group); }; }; GroupedListSection.prototype._onRenderGroup = function (renderCount) { var _a = this.props, group = _a.group, items = _a.items, onRenderCell = _a.onRenderCell, listProps = _a.listProps, groupNestingDepth = _a.groupNestingDepth, onShouldVirtualize = _a.onShouldVirtualize, groupProps = _a.groupProps; var count = group && !group.isShowingAll ? group.count : items.length; var startIndex = group ? group.startIndex : 0; return (React.createElement(List_1.List, tslib_1.__assign({ role: groupProps && groupProps.role ? groupProps.role : 'rowgroup', "aria-label": group === null || group === void 0 ? void 0 : group.name, items: items, onRenderCell: this._onRenderGroupCell(onRenderCell, groupNestingDepth, group), ref: this._list, renderCount: Math.min(count, renderCount), startIndex: startIndex, onShouldVirtualize: onShouldVirtualize, id: this._id }, listProps))); }; GroupedListSection.prototype._returnOne = function () { return 1; }; GroupedListSection.prototype._getGroupKey = function (group, index) { return 'group-' + (group && group.key ? group.key : String(group.level) + String(index)); }; /** * get the correct css class to reflect the dropping state for a given group * * If the group is the current drop target, return the default dropping class name * Otherwise, return ''; * */ GroupedListSection.prototype._getDroppingClassName = function () { var isDropping = this.state.isDropping; var _a = this.props, group = _a.group, groupedListClassNames = _a.groupedListClassNames; isDropping = !!(group && isDropping); return (0, Utilities_1.css)(isDropping && this._droppingClassName, isDropping && DEFAULT_DROPPING_CSS_CLASS, isDropping && groupedListClassNames && groupedListClassNames.groupIsDropping); }; return GroupedListSection; }(React.Component)); exports.GroupedListSection = GroupedListSection; //# sourceMappingURL=GroupedListSection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.base.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _this = this; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupedListV2Wrapper = exports.GroupedListV2FC = 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 List_1 = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var GroupHeader_1 = __webpack_require__(/*! ./GroupHeader */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.js"); var GroupShowAll_1 = __webpack_require__(/*! ./GroupShowAll */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.js"); var GroupFooter_1 = __webpack_require__(/*! ./GroupFooter */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.js"); var flattenItems = function (groups, items, memoItems, getGroupItemLimit) { if (!groups) { return items; } if (memoItems.length < 1) { // Not the exact final size but gets us in the ballpark. // This helps avoid trashing memory when building // the flattened list. memoItems = new Array(items.length); } var index = 0; // const stack: IGroup[] = []; var stack = []; var j = groups.length - 1; while (j >= 0) { stack.push({ group: groups[j], groupIndex: j + 1 }); j--; } while (stack.length > 0) { // eslint-disable-next-line prefer-const var _a = stack.pop(), group = _a.group, groupIndex = _a.groupIndex; memoItems[index] = { group: group, groupId: (0, Utilities_1.getId)('GroupedListSection'), type: 'header', groupIndex: groupIndex, }; index++; while (group.isCollapsed !== true && (group === null || group === void 0 ? void 0 : group.children) && group.children.length > 0) { j = group.children.length - 1; while (j > 0) { stack.push({ group: group.children[j], groupIndex: j + 1 }); j--; } group = group.children[0]; memoItems[index] = { group: group, groupId: (0, Utilities_1.getId)('GroupedListSection'), type: 'header', groupIndex: 1, }; index++; } if (group.isCollapsed !== true) { var itemIndex = group.startIndex; var renderCount = getGroupItemLimit ? getGroupItemLimit(group) : Infinity; var count = !group.isShowingAll ? group.count : items.length; var itemEnd = itemIndex + Math.min(count, renderCount); while (itemIndex < itemEnd) { memoItems[index] = { group: group, item: items[itemIndex], itemIndex: itemIndex, type: 'item', }; itemIndex++; index++; } var isShowAllVisible = !group.children && !group.isCollapsed && !group.isShowingAll && (group.count > renderCount || group.hasMoreData); if (isShowAllVisible) { memoItems[index] = { group: group, type: 'showAll', }; index++; } } // Placeholder for a potential footer. // Whether or not a footer is displayed is resolved // by the footer render function so this is just a marker // for where a footer may go. memoItems[index] = { group: group, type: 'footer', }; index++; } memoItems.length = index; // console.log('MEMO ITEMS', memoItems); return memoItems; }; var useIsGroupSelected = function (startIndex, count, selection, eventGroup) { var _a = React.useState(function () { var _a; return (_a = selection === null || selection === void 0 ? void 0 : selection.isRangeSelected(startIndex, count)) !== null && _a !== void 0 ? _a : false; }), isSelected = _a[0], setIsSelected = _a[1]; React.useEffect(function () { if (selection && eventGroup) { var changeHandler_1 = function () { var _a; setIsSelected((_a = selection === null || selection === void 0 ? void 0 : selection.isRangeSelected(startIndex, count)) !== null && _a !== void 0 ? _a : false); }; eventGroup.on(selection, Selection_1.SELECTION_CHANGE, changeHandler_1); return function () { eventGroup === null || eventGroup === void 0 ? void 0 : eventGroup.off(selection, Selection_1.SELECTION_CHANGE, changeHandler_1); }; } }, [startIndex, count, selection, eventGroup]); return isSelected; }; var computeIsSomeGroupExpanded = function (groups) { return !!(groups && groups.some(function (group) { return (group.children ? computeIsSomeGroupExpanded(group.children) : !group.isCollapsed); })); }; var setGroupsCollapsedState = function (groups, isCollapsed) { if (groups === undefined) { return; } for (var groupIndex = 0; groupIndex < groups.length; groupIndex++) { groups[groupIndex].isCollapsed = isCollapsed; } }; var isInnerZoneKeystroke = function (ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === (0, Utilities_1.getRTLSafeKeyCode)(Utilities_1.KeyCodes.right); }; var getClassNames = (0, Utilities_1.classNamesFunction)(); var getKey = function (item, _index) { var _a, _b; switch (item.type) { case 'item': return (_b = (_a = item.item) === null || _a === void 0 ? void 0 : _a.key) !== null && _b !== void 0 ? _b : null; case 'header': return item.group.key; case 'footer': return "".concat(item.group.key, "-footer"); case 'showAll': return "".concat(item.group.key, "-showAll"); } return null; }; var renderGroupHeader = function (props) { return React.createElement(GroupHeader_1.GroupHeader, tslib_1.__assign({}, props)); }; var renderGroupShowAll = function (props) { return React.createElement(GroupShowAll_1.GroupShowAll, tslib_1.__assign({}, props)); }; var renderGroupFooter = function (props) { if (props.group && props.footerText) { return React.createElement(GroupFooter_1.GroupFooter, tslib_1.__assign({}, props)); } return null; }; var GroupedListV2FC = function (props) { var selection = props.selection, _a = props.selectionMode, selectionMode = _a === void 0 ? Selection_1.SelectionMode.multiple : _a, _b = props.groupProps, groupProps = _b === void 0 ? {} : _b, _c = props.compact, compact = _c === void 0 ? false : _c, _d = props.items, items = _d === void 0 ? [] : _d, groups = props.groups, onGroupExpandStateChanged = props.onGroupExpandStateChanged, className = props.className, usePageCache = props.usePageCache, onShouldVirtualize = props.onShouldVirtualize, theme = props.theme, _e = props.role, role = _e === void 0 ? 'treegrid' : _e, styles = props.styles, _f = props.focusZoneProps, focusZoneProps = _f === void 0 ? {} : _f, _g = props.rootListProps, rootListProps = _g === void 0 ? {} : _g, onRenderCell = props.onRenderCell, viewport = props.viewport, listRef = props.listRef, groupExpandedVersion = props.groupExpandedVersion, versionFromProps = props.version; var _h = groupProps.onRenderHeader, onRenderHeader = _h === void 0 ? renderGroupHeader : _h, _j = groupProps.onRenderFooter, onRenderFooter = _j === void 0 ? renderGroupFooter : _j, _k = groupProps.onRenderShowAll, onRenderShowAll = _k === void 0 ? renderGroupShowAll : _k; var classNames = getClassNames(styles, { theme: theme, className: className, compact: compact, }); var events = React.useRef(); var flatList = React.useRef([]); var isSomeGroupExpanded = React.useRef(computeIsSomeGroupExpanded(groups)); var _l = React.useState({}), version = _l[0], setVersion = _l[1]; var _m = React.useState({}), toggleVersion = _m[0], setToggleVersion = _m[1]; // eslint-disable-next-line deprecation/deprecation var _o = focusZoneProps.shouldEnterInnerZone, shouldEnterInnerZone = _o === void 0 ? isInnerZoneKeystroke : _o; var listView = React.useMemo(function () { return flattenItems(groups, items, flatList.current, groupProps === null || groupProps === void 0 ? void 0 : groupProps.getGroupItemLimit); // eslint-disable-next-line react-hooks/exhaustive-deps }, [groups, groupProps === null || groupProps === void 0 ? void 0 : groupProps.getGroupItemLimit, items, toggleVersion, flatList, groupExpandedVersion]); var getPageSpecification = React.useCallback(function (flattenedIndex) { var pageGroup = listView[flattenedIndex]; return { key: pageGroup.type === 'header' ? pageGroup.group.key : undefined, }; }, [listView]); React.useEffect(function () { if (groupProps === null || groupProps === void 0 ? void 0 : groupProps.isAllGroupsCollapsed) { setGroupsCollapsedState(groups, groupProps.isAllGroupsCollapsed); } events.current = new Utilities_1.EventGroup(_this); return function () { var _a; (_a = events.current) === null || _a === void 0 ? void 0 : _a.dispose(); events.current = undefined; }; // eslint-disable-next-line react-hooks/exhaustive-deps }, []); React.useEffect(function () { setVersion({}); }, [versionFromProps]); React.useEffect(function () { var newIsSomeGroupExpanded = computeIsSomeGroupExpanded(groups); if (newIsSomeGroupExpanded !== isSomeGroupExpanded.current) { isSomeGroupExpanded.current = newIsSomeGroupExpanded; onGroupExpandStateChanged === null || onGroupExpandStateChanged === void 0 ? void 0 : onGroupExpandStateChanged(newIsSomeGroupExpanded); } }, [groups, toggleVersion, onGroupExpandStateChanged, groupExpandedVersion]); var onToggleCollapse = React.useCallback(function (group) { var _a; var onToggleCollapseFn = (_a = groupProps === null || groupProps === void 0 ? void 0 : groupProps.headerProps) === null || _a === void 0 ? void 0 : _a.onToggleCollapse; if (group) { onToggleCollapseFn === null || onToggleCollapseFn === void 0 ? void 0 : onToggleCollapseFn(group); group.isCollapsed = !group.isCollapsed; setToggleVersion({}); setVersion({}); } }, [setToggleVersion, groupProps]); var onToggleSelectGroup = function (group) { if (group && selection && selectionMode === Selection_1.SelectionMode.multiple) { selection.toggleRangeSelected(group.startIndex, group.count); } }; var onToggleSummarize = function (group) { var _a; var onToggleSummarizeFn = (_a = groupProps === null || groupProps === void 0 ? void 0 : groupProps.showAllProps) === null || _a === void 0 ? void 0 : _a.onToggleSummarize; if (onToggleSummarizeFn) { onToggleSummarizeFn(group); } else { if (group) { group.isShowingAll = !group.isShowingAll; } setVersion({}); setToggleVersion({}); } }; var getDividerProps = function (group, flattenedIndex) { var _a; var dividerProps = { group: group, groupIndex: flattenedIndex, groupLevel: (_a = group.level) !== null && _a !== void 0 ? _a : 0, viewport: viewport, selectionMode: selectionMode, groups: groups, compact: compact, onToggleSelectGroup: onToggleSelectGroup, onToggleCollapse: onToggleCollapse, onToggleSummarize: onToggleSummarize, }; return dividerProps; }; var renderHeader = function (item, flattenedIndex) { var group = item.group; var ariaProps; if (role === 'treegrid') { // GroupedList default role ariaProps = { ariaLevel: group.level ? group.level + 1 : 1, ariaSetSize: groups ? groups.length : undefined, ariaPosInSet: item.groupIndex, }; } else { // Grouped DetailsList ariaProps = { ariaRowIndex: flattenedIndex, }; } var headerProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, groupProps.headerProps), getDividerProps(item.group, flattenedIndex)), { key: group.key, groupedListId: item.groupId }), ariaProps); return (React.createElement(GroupItem, { render: onRenderHeader, defaultRender: renderGroupHeader, item: item, selection: selection, eventGroup: events.current, props: headerProps })); }; var renderShowAll = function (item, flattenedIndex) { var group = item.group; var groupShowAllProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, groupProps.showAllProps), getDividerProps(group, flattenedIndex)), { key: group.key ? "".concat(group.key, "-show-all") : undefined }); return onRenderShowAll(groupShowAllProps, renderGroupShowAll); }; var renderFooter = function (item, flattenedIndex) { var group = item.group; var groupFooterProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, groupProps.footerProps), getDividerProps(group, flattenedIndex)), { key: group.key ? "".concat(group.key, "-footer") : undefined }); return onRenderFooter(groupFooterProps, renderGroupFooter); }; var renderItem = function (item, flattenedIndex) { var _a; if (item.type === 'header') { return renderHeader(item, flattenedIndex); } else if (item.type === 'showAll') { return renderShowAll(item, flattenedIndex); } else if (item.type === 'footer') { return renderFooter(item, flattenedIndex); } else { var level = item.group.level ? item.group.level + 1 : 1; return onRenderCell(level, item.item, (_a = item.itemIndex) !== null && _a !== void 0 ? _a : flattenedIndex, item.group); } }; return (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.vertical, "data-automationid": "GroupedList", "data-is-scrollable": "false", role: "presentation" }, focusZoneProps, { shouldEnterInnerZone: shouldEnterInnerZone, className: (0, Utilities_1.css)(classNames.root, focusZoneProps.className) }), React.createElement(List_1.List, tslib_1.__assign({ ref: listRef, role: role, items: listView, // eslint-disable-next-line onRenderCellConditional: renderItem, usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize, getPageSpecification: getPageSpecification, version: version, getKey: getKey }, rootListProps)))); }; exports.GroupedListV2FC = GroupedListV2FC; var GroupItem = function (_a) { var render = _a.render, defaultRender = _a.defaultRender, item = _a.item, selection = _a.selection, eventGroup = _a.eventGroup, props = _a.props; var group = item.group; var isSelected = useIsGroupSelected(group.startIndex, group.count, selection, eventGroup); var mergedProps = tslib_1.__assign(tslib_1.__assign({}, props), { isSelected: isSelected, selected: isSelected }); return render(mergedProps, defaultRender); }; var GroupedListV2Wrapper = /** @class */ (function (_super) { tslib_1.__extends(GroupedListV2Wrapper, _super); function GroupedListV2Wrapper(props) { var _this = _super.call(this, props) || this; _this._list = React.createRef(); (0, Utilities_1.initializeComponentRef)(_this); var _a = props.listProps, _b = _a === void 0 ? {} : _a, _c = _b.version, version = _c === void 0 ? {} : _c, groups = props.groups; _this.state = { version: version, groupExpandedVersion: {}, groups: groups, }; return _this; } GroupedListV2Wrapper.getDerivedStateFromProps = function (nextProps, previousState) { var groups = nextProps.groups, selectionMode = nextProps.selectionMode, compact = nextProps.compact, items = nextProps.items, listProps = nextProps.listProps; var nextListVersion = listProps && listProps.version; var nextState = tslib_1.__assign(tslib_1.__assign({}, previousState), { groups: groups }); if (nextListVersion !== previousState.version || items !== previousState.items || groups !== previousState.groups || selectionMode !== previousState.selectionMode || compact !== previousState.compact) { nextState.version = {}; } return nextState; }; GroupedListV2Wrapper.prototype.scrollToIndex = function (index, measureItem, scrollToMode) { if (this._list.current) { this._list.current.scrollToIndex(index, measureItem, scrollToMode); } }; GroupedListV2Wrapper.prototype.getStartItemIndexInView = function () { var _a; return ((_a = this._list.current) === null || _a === void 0 ? void 0 : _a.getStartItemIndexInView()) || 0; }; GroupedListV2Wrapper.prototype.render = function () { return React.createElement(exports.GroupedListV2FC, tslib_1.__assign({}, this.props, this.state, { listRef: this._list })); }; GroupedListV2Wrapper.prototype.forceUpdate = function () { _super.prototype.forceUpdate.call(this); this._forceListUpdate(); }; GroupedListV2Wrapper.prototype.toggleCollapseAll = function (allCollapsed) { var _a; var groups = this.state.groups; var groupProps = this.props.groupProps; if (groups && groups.length > 0) { (_a = groupProps === null || groupProps === void 0 ? void 0 : groupProps.onToggleCollapseAll) === null || _a === void 0 ? void 0 : _a.call(groupProps, allCollapsed); setGroupsCollapsedState(groups, allCollapsed); this.setState({ groupExpandedVersion: {}, }); this.forceUpdate(); } }; GroupedListV2Wrapper.prototype._forceListUpdate = function () { this.setState({ version: {}, }); }; GroupedListV2Wrapper.displayName = 'GroupedListV2'; return GroupedListV2Wrapper; }(React.Component)); exports.GroupedListV2Wrapper = GroupedListV2Wrapper; //# sourceMappingURL=GroupedListV2.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupedListV2_unstable = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupedList_styles_1 = __webpack_require__(/*! ./GroupedList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.styles.js"); var GroupedListV2_base_1 = __webpack_require__(/*! ./GroupedListV2.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.base.js"); /** * NOTE: GroupedListV2 is "unstable" and meant for preview use. It passes * the same test suite as GroupedList but it is an entirely new implementation * so it may have bugs and implementation details may change without notice. * * GroupedListV2 is an API-compatible replacement for GroupedList with a new implementation * that addresses issues GroupedList has with virtualizing nested lists under certain * conditions. */ var GroupedListV2 = (0, Utilities_1.styled)(GroupedListV2_base_1.GroupedListV2Wrapper, GroupedList_styles_1.getStyles, undefined, { scope: 'GroupedListV2', }); exports.GroupedListV2_unstable = GroupedListV2; GroupedListV2.displayName = 'GroupedListV2_unstable'; //# sourceMappingURL=GroupedListV2.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=GroupedListV2.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/index.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupSpacer = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedList */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupHeader */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupFooter */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupShowAll */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupShowAll.js"), exports); var GroupSpacer_1 = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); Object.defineProperty(exports, "GroupSpacer", ({ enumerable: true, get: function () { return GroupSpacer_1.GroupSpacer; } })); tslib_1.__exportStar(__webpack_require__(/*! ./GroupSpacer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedListSection */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListSection.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedListV2 */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedListV2.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GroupedListV2.types */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedListV2.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/CardCallout/CardCallout.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/CardCallout/CardCallout.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CardCallout = 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 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 CardCallout = function (props) { var _a = props.gapSpace, gapSpace = _a === void 0 ? 0 : _a, _b = props.directionalHint, directionalHint = _b === void 0 ? DirectionalHint_1.DirectionalHint.bottomLeftEdge : _b, directionalHintFixed = props.directionalHintFixed, targetElement = props.targetElement, firstFocus = props.firstFocus, trapFocus = props.trapFocus, onLeave = props.onLeave, className = props.className, finalHeight = props.finalHeight, content = props.content, calloutProps = props.calloutProps; var mergedCalloutProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties)), { className: className, target: targetElement, isBeakVisible: false, directionalHint: directionalHint, directionalHintFixed: directionalHintFixed, finalHeight: finalHeight, minPagePadding: 24, onDismiss: onLeave, gapSpace: gapSpace }), calloutProps); return (React.createElement(React.Fragment, null, trapFocus ? (React.createElement(Callout_1.FocusTrapCallout, tslib_1.__assign({}, mergedCalloutProps, { focusTrapProps: { forceFocusInsideTrap: false, isClickableOutsideFocusTrap: true, disableFirstFocus: !firstFocus, } }), content)) : (React.createElement(Callout_1.Callout, tslib_1.__assign({}, mergedCalloutProps), content)))); }; exports.CardCallout = CardCallout; //# sourceMappingURL=CardCallout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ExpandingCardBase = 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 ExpandingCard_types_1 = __webpack_require__(/*! ./ExpandingCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.types.js"); var CardCallout_1 = __webpack_require__(/*! ./CardCallout/CardCallout */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/CardCallout/CardCallout.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var ExpandingCardBase = /** @class */ (function (_super) { tslib_1.__extends(ExpandingCardBase, _super); function ExpandingCardBase(props) { var _this = _super.call(this, props) || this; _this._expandedElem = React.createRef(); _this._onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.escape) { _this.props.onLeave && _this.props.onLeave(ev); } }; _this._onRenderCompactCard = function () { return React.createElement("div", { className: _this._classNames.compactCard }, _this.props.onRenderCompactCard(_this.props.renderData)); }; _this._onRenderExpandedCard = function () { // firstFrameRendered helps in initially setting height of expanded card to 1px, even if mode prop is set to // ExpandingCardMode.expanded on first render. This is to make sure transition animation takes place. !_this.state.firstFrameRendered && _this._async.requestAnimationFrame(function () { _this.setState({ firstFrameRendered: true, }); }); return (React.createElement("div", { className: _this._classNames.expandedCard, ref: _this._expandedElem }, React.createElement("div", { className: _this._classNames.expandedCardScroll }, _this.props.onRenderExpandedCard && _this.props.onRenderExpandedCard(_this.props.renderData)))); }; _this._checkNeedsScroll = function () { var expandedCardHeight = _this.props.expandedCardHeight; _this._async.requestAnimationFrame(function () { if (_this._expandedElem.current && _this._expandedElem.current.scrollHeight >= expandedCardHeight) { _this.setState({ needsScroll: true, }); } }); }; _this._async = new Utilities_1.Async(_this); (0, Utilities_1.initializeComponentRef)(_this); _this.state = { firstFrameRendered: false, needsScroll: false, }; return _this; } ExpandingCardBase.prototype.componentDidMount = function () { this._checkNeedsScroll(); }; ExpandingCardBase.prototype.componentWillUnmount = function () { this._async.dispose(); }; ExpandingCardBase.prototype.render = function () { var _a = this.props, styles = _a.styles, compactCardHeight = _a.compactCardHeight, expandedCardHeight = _a.expandedCardHeight, theme = _a.theme, mode = _a.mode, className = _a.className; var _b = this.state, needsScroll = _b.needsScroll, firstFrameRendered = _b.firstFrameRendered; var finalHeight = compactCardHeight + expandedCardHeight; this._classNames = getClassNames(styles, { theme: theme, compactCardHeight: compactCardHeight, className: className, expandedCardHeight: expandedCardHeight, needsScroll: needsScroll, expandedCardFirstFrameRendered: mode === ExpandingCard_types_1.ExpandingCardMode.expanded && firstFrameRendered, }); var content = (React.createElement("div", { onMouseEnter: this.props.onEnter, onMouseLeave: this.props.onLeave, onKeyDown: this._onKeyDown }, this._onRenderCompactCard(), this._onRenderExpandedCard())); return (React.createElement(CardCallout_1.CardCallout, tslib_1.__assign({}, this.props, { content: content, finalHeight: finalHeight, className: this._classNames.root }))); }; ExpandingCardBase.defaultProps = { compactCardHeight: 156, expandedCardHeight: 384, directionalHintFixed: true, }; return ExpandingCardBase; }(React.Component)); exports.ExpandingCardBase = ExpandingCardBase; //# sourceMappingURL=ExpandingCard.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ExpandingCard = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ExpandingCard_styles_1 = __webpack_require__(/*! ./ExpandingCard.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.styles.js"); var ExpandingCard_base_1 = __webpack_require__(/*! ./ExpandingCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.base.js"); exports.ExpandingCard = (0, Utilities_1.styled)(ExpandingCard_base_1.ExpandingCardBase, ExpandingCard_styles_1.getStyles, undefined, { scope: 'ExpandingCard', }); //# sourceMappingURL=ExpandingCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.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-ExpandingCard-root', compactCard: 'ms-ExpandingCard-compactCard', expandedCard: 'ms-ExpandingCard-expandedCard', expandedCardScroll: 'ms-ExpandingCard-expandedCardScrollRegion', }; function getStyles(props) { var _a; var theme = props.theme, needsScroll = props.needsScroll, expandedCardFirstFrameRendered = props.expandedCardFirstFrameRendered, compactCardHeight = props.compactCardHeight, expandedCardHeight = props.expandedCardHeight, className = props.className; var palette = theme.palette; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { width: 320, pointerEvents: 'none', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: '1px solid WindowText', }, _a), }, className, ], compactCard: [ classNames.compactCard, { pointerEvents: 'auto', position: 'relative', height: compactCardHeight, }, ], expandedCard: [ classNames.expandedCard, { height: 1, overflowY: 'hidden', pointerEvents: 'auto', transition: 'height 0.467s cubic-bezier(0.5, 0, 0, 1)', selectors: { ':before': { content: '""', position: 'relative', display: 'block', top: 0, left: 24, width: 272, height: 1, backgroundColor: palette.neutralLighter, }, }, }, expandedCardFirstFrameRendered && { height: expandedCardHeight, }, ], expandedCardScroll: [ classNames.expandedCardScroll, needsScroll && { height: '100%', boxSizing: 'border-box', overflowY: 'auto', }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=ExpandingCard.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ExpandingCardMode = void 0; /** * {@docCategory HoverCard} */ var ExpandingCardMode; (function (ExpandingCardMode) { /** * To have top compact card only */ ExpandingCardMode[ExpandingCardMode["compact"] = 0] = "compact"; /** * To have both top compact and bottom expanded card */ ExpandingCardMode[ExpandingCardMode["expanded"] = 1] = "expanded"; })(ExpandingCardMode = exports.ExpandingCardMode || (exports.ExpandingCardMode = {})); //# sourceMappingURL=ExpandingCard.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HoverCardBase = 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 HoverCard_types_1 = __webpack_require__(/*! ./HoverCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.types.js"); var ExpandingCard_1 = __webpack_require__(/*! ./ExpandingCard */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.js"); var ExpandingCard_types_1 = __webpack_require__(/*! ./ExpandingCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.types.js"); var PlainCard_1 = __webpack_require__(/*! ./PlainCard/PlainCard */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var HoverCardBase = /** @class */ (function (_super) { tslib_1.__extends(HoverCardBase, _super); // Constructor function HoverCardBase(props) { var _this = _super.call(this, props) || this; // The wrapping div that gets the hover events _this._hoverCard = React.createRef(); _this.dismiss = function (withTimeOut) { _this._async.clearTimeout(_this._openTimerId); _this._async.clearTimeout(_this._dismissTimerId); if (!withTimeOut) { _this._setDismissedState(); } else { _this._dismissTimerId = _this._async.setTimeout(function () { _this._setDismissedState(); }, _this.props.cardDismissDelay); } }; // Show HoverCard _this._cardOpen = function (ev) { // eslint-disable-next-line deprecation/deprecation if (_this._shouldBlockHoverCard() || (ev.type === 'keydown' && !(ev.which === _this.props.openHotKey))) { return; } _this._async.clearTimeout(_this._dismissTimerId); if (ev.type === 'mouseenter') { _this._currentMouseTarget = ev.currentTarget; } _this._executeCardOpen(ev); }; _this._executeCardOpen = function (ev) { _this._async.clearTimeout(_this._openTimerId); _this._openTimerId = _this._async.setTimeout(function () { _this.setState(function (prevState) { if (!prevState.isHoverCardVisible) { return { isHoverCardVisible: true, mode: ExpandingCard_types_1.ExpandingCardMode.compact, openMode: ev.type === 'keydown' ? HoverCard_types_1.OpenCardMode.hotKey : HoverCard_types_1.OpenCardMode.hover, }; } return prevState; }); }, _this.props.cardOpenDelay); }; /** * Hide HoverCard * How we dismiss the card depends on where the callback is coming from. * This is provided by the `isNativeEvent` argument. * true: Event is coming from event listeners set up in componentDidMount. * false: Event is coming from the `onLeave` prop from the HoverCard component. */ _this._cardDismiss = function (isNativeEvent, ev) { if (isNativeEvent) { // We expect these to be MouseEvents, If not, return. if (!(ev instanceof MouseEvent)) { return; } // eslint-disable-next-line deprecation/deprecation if (ev.type === 'keydown' && ev.which !== Utilities_1.KeyCodes.escape) { return; } // Dismiss if not sticky and currentTarget is the same element that mouse last entered // eslint-disable-next-line deprecation/deprecation if (!_this.props.sticky && (_this._currentMouseTarget === ev.currentTarget || ev.which === Utilities_1.KeyCodes.escape)) { _this.dismiss(true); } } else { // If this is a mouseleave event and the component is sticky, do not dismiss. if (_this.props.sticky && !(ev instanceof MouseEvent) && ev.nativeEvent instanceof MouseEvent && ev.type === 'mouseleave') { return; } _this.dismiss(true); } }; _this._setDismissedState = function () { _this.setState({ isHoverCardVisible: false, mode: ExpandingCard_types_1.ExpandingCardMode.compact, openMode: HoverCard_types_1.OpenCardMode.hover, }); }; _this._instantOpenAsExpanded = function (ev) { _this._async.clearTimeout(_this._dismissTimerId); _this.setState(function (prevState) { if (!prevState.isHoverCardVisible) { return { isHoverCardVisible: true, mode: ExpandingCard_types_1.ExpandingCardMode.expanded, }; } return prevState; }); }; _this._setEventListeners = function () { var _a = _this.props, trapFocus = _a.trapFocus, instantOpenOnClick = _a.instantOpenOnClick, eventListenerTarget = _a.eventListenerTarget; var target = eventListenerTarget ? _this._getTargetElement(eventListenerTarget) : _this._getTargetElement(_this.props.target); var nativeEventDismiss = _this._nativeDismissEvent; // target can be undefined if ref isn't available, only assign // events when defined to avoid throwing exception. if (target) { _this._events.on(target, 'mouseenter', _this._cardOpen); _this._events.on(target, 'mouseleave', nativeEventDismiss); if (trapFocus) { _this._events.on(target, 'keydown', _this._cardOpen); } else { _this._events.on(target, 'focus', _this._cardOpen); _this._events.on(target, 'blur', nativeEventDismiss); } if (instantOpenOnClick) { _this._events.on(target, 'click', _this._instantOpenAsExpanded); } else { _this._events.on(target, 'mousedown', nativeEventDismiss); _this._events.on(target, 'keydown', nativeEventDismiss); } } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._nativeDismissEvent = _this._cardDismiss.bind(_this, true); _this._childDismissEvent = _this._cardDismiss.bind(_this, false); _this.state = { isHoverCardVisible: false, mode: ExpandingCard_types_1.ExpandingCardMode.compact, openMode: HoverCard_types_1.OpenCardMode.hover, }; return _this; } HoverCardBase.prototype.componentDidMount = function () { this._setEventListeners(); }; HoverCardBase.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; HoverCardBase.prototype.componentDidUpdate = function (prevProps, prevState) { var _this = this; if (prevProps.target !== this.props.target) { this._events.off(); this._setEventListeners(); } if (prevState.isHoverCardVisible !== this.state.isHoverCardVisible) { if (this.state.isHoverCardVisible) { this._async.setTimeout(function () { _this.setState({ mode: ExpandingCard_types_1.ExpandingCardMode.expanded, }, function () { _this.props.onCardExpand && _this.props.onCardExpand(); }); }, this.props.expandedCardOpenDelay); this.props.onCardVisible && this.props.onCardVisible(); } else { this.setState({ mode: ExpandingCard_types_1.ExpandingCardMode.compact, }); this.props.onCardHide && this.props.onCardHide(); } } }; // Render HoverCardBase.prototype.render = function () { var _a = this.props, expandingCardProps = _a.expandingCardProps, children = _a.children, id = _a.id, _b = _a.setAriaDescribedBy, setAriaDescribedBy = _b === void 0 ? true : _b, customStyles = _a.styles, theme = _a.theme, className = _a.className, type = _a.type, plainCardProps = _a.plainCardProps, trapFocus = _a.trapFocus, setInitialFocus = _a.setInitialFocus; var _c = this.state, isHoverCardVisible = _c.isHoverCardVisible, mode = _c.mode, openMode = _c.openMode; var hoverCardId = id || (0, Utilities_1.getId)('hoverCard'); this._classNames = getClassNames(customStyles, { theme: theme, className: className, }); // Common props for both card types. var commonCardProps = tslib_1.__assign(tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties)), { id: hoverCardId, trapFocus: !!trapFocus, firstFocus: setInitialFocus || openMode === HoverCard_types_1.OpenCardMode.hotKey, targetElement: this._getTargetElement(this.props.target), onEnter: this._cardOpen, onLeave: this._childDismissEvent }); var finalExpandedCardProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, expandingCardProps), commonCardProps), { mode: mode }); var finalPlainCardProps = tslib_1.__assign(tslib_1.__assign({}, plainCardProps), commonCardProps); return (React.createElement("div", { className: this._classNames.host, ref: this._hoverCard, "aria-describedby": setAriaDescribedBy && isHoverCardVisible ? hoverCardId : undefined, "data-is-focusable": !this.props.target }, children, isHoverCardVisible && (type === HoverCard_types_1.HoverCardType.expanding ? (React.createElement(ExpandingCard_1.ExpandingCard, tslib_1.__assign({}, finalExpandedCardProps))) : (React.createElement(PlainCard_1.PlainCard, tslib_1.__assign({}, finalPlainCardProps)))))); }; HoverCardBase.prototype._getTargetElement = function (target) { switch (typeof target) { case 'string': return (0, Utilities_1.getDocument)().querySelector(target); case 'object': return target; default: return this._hoverCard.current || undefined; } }; HoverCardBase.prototype._shouldBlockHoverCard = function () { return !!(this.props.shouldBlockHoverCard && this.props.shouldBlockHoverCard()); }; HoverCardBase.defaultProps = { cardOpenDelay: 500, cardDismissDelay: 100, expandedCardOpenDelay: 1500, instantOpenOnClick: false, setInitialFocus: false, openHotKey: Utilities_1.KeyCodes.c, type: HoverCard_types_1.HoverCardType.expanding, }; return HoverCardBase; }(React.Component)); exports.HoverCardBase = HoverCardBase; //# sourceMappingURL=HoverCard.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HoverCard = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var HoverCard_styles_1 = __webpack_require__(/*! ./HoverCard.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.styles.js"); var HoverCard_base_1 = __webpack_require__(/*! ./HoverCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.base.js"); exports.HoverCard = (0, Utilities_1.styled)(HoverCard_base_1.HoverCardBase, HoverCard_styles_1.getStyles, undefined, { scope: 'HoverCard', }); //# sourceMappingURL=HoverCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.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 = { host: 'ms-HoverCard-host', }; function getStyles(props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { host: [classNames.host, className], }; } exports.getStyles = getStyles; //# sourceMappingURL=HoverCard.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HoverCardType = exports.OpenCardMode = void 0; /** * {@docCategory HoverCard} */ var OpenCardMode; (function (OpenCardMode) { /** * Open card by hover */ OpenCardMode[OpenCardMode["hover"] = 0] = "hover"; /** * Open card by hot key */ OpenCardMode[OpenCardMode["hotKey"] = 1] = "hotKey"; })(OpenCardMode = exports.OpenCardMode || (exports.OpenCardMode = {})); /** * {@docCategory HoverCard} */ var HoverCardType; (function (HoverCardType) { /** * Plain card consisting of one part responsive to the size of content. */ HoverCardType["plain"] = "PlainCard"; /** * File card consisting of two parts: compact and expanded. Has some default sizes if not specified. */ HoverCardType["expanding"] = "ExpandingCard"; })(HoverCardType = exports.HoverCardType || (exports.HoverCardType = {})); //# sourceMappingURL=HoverCard.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PlainCardBase = 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 CardCallout_1 = __webpack_require__(/*! ../CardCallout/CardCallout */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/CardCallout/CardCallout.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var PlainCardBase = /** @class */ (function (_super) { tslib_1.__extends(PlainCardBase, _super); function PlainCardBase(props) { var _this = _super.call(this, props) || this; _this._onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.escape) { _this.props.onLeave && _this.props.onLeave(ev); } }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } PlainCardBase.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); var content = (React.createElement("div", { onMouseEnter: this.props.onEnter, onMouseLeave: this.props.onLeave, onKeyDown: this._onKeyDown }, this.props.onRenderPlainCard(this.props.renderData))); return React.createElement(CardCallout_1.CardCallout, tslib_1.__assign({}, this.props, { content: content, className: this._classNames.root })); }; return PlainCardBase; }(React.Component)); exports.PlainCardBase = PlainCardBase; //# sourceMappingURL=PlainCard.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PlainCard = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var PlainCard_styles_1 = __webpack_require__(/*! ./PlainCard.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.styles.js"); var PlainCard_base_1 = __webpack_require__(/*! ./PlainCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.base.js"); exports.PlainCard = (0, Utilities_1.styled)(PlainCard_base_1.PlainCardBase, PlainCard_styles_1.getStyles, undefined, { scope: 'PlainCard', }); //# sourceMappingURL=PlainCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.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-PlainCard-root', }; function getStyles(props) { var _a; var theme = props.theme, className = props.className; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { pointerEvents: 'auto', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: '1px solid WindowText', }, _a), }, className, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=PlainCard.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PlainCard.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/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__(/*! ./HoverCard */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./HoverCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./HoverCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/HoverCard.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ExpandingCard */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ExpandingCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ExpandingCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/ExpandingCard.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PlainCard/PlainCard */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PlainCard/PlainCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PlainCard/PlainCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/PlainCard/PlainCard.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/FontIcon.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/FontIcon.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFontIcon = exports.FontIcon = exports.getIconContent = 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_styles_1 = __webpack_require__(/*! ./Icon.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.styles.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"); exports.getIconContent = (0, Utilities_1.memoizeFunction)(function (iconName) { var _a = (0, Styling_1.getIcon)(iconName) || { subset: {}, code: undefined, }, code = _a.code, subset = _a.subset; if (!code) { return null; } return { children: code, iconClassName: subset.className, fontFamily: subset.fontFace && subset.fontFace.fontFamily, mergeImageProps: subset.mergeImageProps, }; }, undefined, true /*ignoreNullOrUndefinedResult */); /** * Fast icon component which only supports font glyphs (not images) and can't be targeted by customizations. * To style the icon, use `className` or reference `ms-Icon` in CSS. * {@docCategory Icon} */ var FontIcon = function (props) { var iconName = props.iconName, className = props.className, _a = props.style, style = _a === void 0 ? {} : _a; var iconContent = (0, exports.getIconContent)(iconName) || {}; var iconClassName = iconContent.iconClassName, children = iconContent.children, fontFamily = iconContent.fontFamily, mergeImageProps = iconContent.mergeImageProps; var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties); var accessibleName = props['aria-label'] || props.title; var containerProps = props['aria-label'] || props['aria-labelledby'] || props.title ? { role: mergeImageProps ? undefined : 'img', } : { 'aria-hidden': true, }; var finalChildren = children; if (mergeImageProps) { if (typeof children === 'object' && typeof children.props === 'object' && accessibleName) { finalChildren = React.cloneElement(children, { alt: accessibleName }); } } return (React.createElement("i", tslib_1.__assign({ "data-icon-name": iconName }, containerProps, nativeProps, (mergeImageProps ? { title: undefined, 'aria-label': undefined, } : {}), { className: (0, Utilities_1.css)(Icon_styles_1.MS_ICON, Icon_styles_1.classNames.root, iconClassName, !iconName && Icon_styles_1.classNames.placeholder, className), // Apply the font family this way to ensure it doesn't get overridden by Fabric Core ms-Icon styles // https://github.com/microsoft/fluentui/issues/10449 style: tslib_1.__assign({ fontFamily: fontFamily }, style) }), finalChildren)); }; exports.FontIcon = FontIcon; /** * Memoized helper for rendering a FontIcon. * @param iconName - The name of the icon to use from the icon font. * @param className - Class name for styling the icon. * @param ariaLabel - Label for the icon for the benefit of screen readers. * {@docCategory Icon} */ exports.getFontIcon = (0, Utilities_1.memoizeFunction)(function (iconName, className, ariaLabel) { return (0, exports.FontIcon)({ iconName: iconName, className: className, 'aria-label': ariaLabel }); }); //# sourceMappingURL=FontIcon.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.base.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.base.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IconBase = 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_types_1 = __webpack_require__(/*! ./Icon.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.types.js"); var Image_1 = __webpack_require__(/*! ../Image/Image */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.js"); var Image_types_1 = __webpack_require__(/*! ../Image/Image.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.types.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var FontIcon_1 = __webpack_require__(/*! ./FontIcon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/FontIcon.js"); var getClassNames = (0, Utilities_1.classNamesFunction)({ // Icon is used a lot by other components. // It's likely to see expected cases which pass different className to the Icon. // Therefore setting a larger cache size. cacheSize: 100, }); var IconBase = /** @class */ (function (_super) { tslib_1.__extends(IconBase, _super); function IconBase(props) { var _this = _super.call(this, props) || this; _this._onImageLoadingStateChange = function (state) { if (_this.props.imageProps && _this.props.imageProps.onLoadingStateChange) { _this.props.imageProps.onLoadingStateChange(state); } if (state === Image_types_1.ImageLoadState.error) { _this.setState({ imageLoadError: true }); } }; _this.state = { imageLoadError: false, }; return _this; } IconBase.prototype.render = function () { var _a = this.props, children = _a.children, className = _a.className, styles = _a.styles, iconName = _a.iconName, imageErrorAs = _a.imageErrorAs, theme = _a.theme; var isPlaceholder = typeof iconName === 'string' && iconName.length === 0; var isImage = // eslint-disable-next-line deprecation/deprecation !!this.props.imageProps || this.props.iconType === Icon_types_1.IconType.image || this.props.iconType === Icon_types_1.IconType.Image; var iconContent = (0, FontIcon_1.getIconContent)(iconName) || {}; var iconClassName = iconContent.iconClassName, iconContentChildren = iconContent.children, mergeImageProps = iconContent.mergeImageProps; var classNames = getClassNames(styles, { theme: theme, className: className, iconClassName: iconClassName, isImage: isImage, isPlaceholder: isPlaceholder, }); var RootType = isImage ? 'span' : 'i'; var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.htmlElementProperties, [ 'aria-label', ]); var imageLoadError = this.state.imageLoadError; var imageProps = tslib_1.__assign(tslib_1.__assign({}, this.props.imageProps), { onLoadingStateChange: this._onImageLoadingStateChange }); var ImageType = (imageLoadError && imageErrorAs) || Image_1.Image; // eslint-disable-next-line deprecation/deprecation var ariaLabel = this.props['aria-label'] || this.props.ariaLabel; var accessibleName = imageProps.alt || ariaLabel || this.props.title; var hasName = !!(accessibleName || this.props['aria-labelledby'] || imageProps['aria-label'] || imageProps['aria-labelledby']); var containerProps = hasName ? { role: isImage || mergeImageProps ? undefined : 'img', 'aria-label': isImage || mergeImageProps ? undefined : accessibleName, } : { 'aria-hidden': true, }; var finalIconContentChildren = iconContentChildren; if (mergeImageProps && iconContentChildren && typeof iconContentChildren === 'object' && accessibleName) { finalIconContentChildren = React.cloneElement(iconContentChildren, { alt: accessibleName, }); } return (React.createElement(RootType, tslib_1.__assign({ "data-icon-name": iconName }, containerProps, nativeProps, (mergeImageProps ? { title: undefined, 'aria-label': undefined, } : {}), { className: classNames.root }), isImage ? React.createElement(ImageType, tslib_1.__assign({}, imageProps)) : children || finalIconContentChildren)); }; return IconBase; }(React.Component)); exports.IconBase = IconBase; //# sourceMappingURL=Icon.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Icon = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_base_1 = __webpack_require__(/*! ./Icon.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.base.js"); var Icon_styles_1 = __webpack_require__(/*! ./Icon.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.styles.js"); /** * Legacy Icon component which can be targeted by customization. It's recommended to use `FontIcon` * or `ImageIcon` instead, especially in scenarios where rendering performance is important. * {@docCategory Icon} */ exports.Icon = (0, Utilities_1.styled)(Icon_base_1.IconBase, Icon_styles_1.getStyles, undefined, { scope: 'Icon', }, true); exports.Icon.displayName = 'Icon'; //# sourceMappingURL=Icon.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.styles.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.styles.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.MS_ICON = exports.classNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); /** Class names used in themeable and non-themeable Icon components */ exports.classNames = (0, Styling_1.mergeStyleSets)({ root: { display: 'inline-block', }, placeholder: [ 'ms-Icon-placeHolder', { width: '1em', }, ], image: [ 'ms-Icon-imageContainer', { overflow: 'hidden', }, ], }); /** Class name used only in non-themeable Icon components */ exports.MS_ICON = 'ms-Icon'; var getStyles = function (props) { var className = props.className, iconClassName = props.iconClassName, isPlaceholder = props.isPlaceholder, isImage = props.isImage, styles = props.styles; return { root: [ isPlaceholder && exports.classNames.placeholder, exports.classNames.root, isImage && exports.classNames.image, iconClassName, className, styles && styles.root, // eslint-disable-next-line deprecation/deprecation styles && styles.imageContainer, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Icon.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.types.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.types.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IconType = void 0; /** * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps` * {@docCategory Icon} */ var IconType; (function (IconType) { /** * Render using the fabric icon font. * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps` */ IconType[IconType["default"] = 0] = "default"; /** * Render using an image, where imageProps would be used. * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps` */ IconType[IconType["image"] = 1] = "image"; /** * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps` */ IconType[IconType["Default"] = 100000] = "Default"; /** * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps` */ IconType[IconType["Image"] = 100001] = "Image"; })(IconType = exports.IconType || (exports.IconType = {})); //# sourceMappingURL=Icon.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/ImageIcon.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/ImageIcon.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ImageIcon = 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/Image */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_styles_1 = __webpack_require__(/*! ./Icon.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.styles.js"); /** * Fast icon component which only supports images (not font glyphs) and can't be targeted by customizations. * To style the icon, use `className` or reference `ms-Icon` in CSS. * {@docCategory Icon} */ var ImageIcon = function (props) { var className = props.className, imageProps = props.imageProps; var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties, [ 'aria-label', 'aria-labelledby', 'title', 'aria-describedby', ]); var altText = imageProps.alt || props['aria-label']; var hasName = altText || props['aria-labelledby'] || props.title || imageProps['aria-label'] || imageProps['aria-labelledby'] || imageProps.title; // move naming or describing attributes from the container (where they are invalid) to the image var imageNameProps = { 'aria-labelledby': props['aria-labelledby'], 'aria-describedby': props['aria-describedby'], title: props.title, }; var containerProps = hasName ? {} : { 'aria-hidden': true, }; return (React.createElement("div", tslib_1.__assign({}, containerProps, nativeProps, { className: (0, Utilities_1.css)(Icon_styles_1.MS_ICON, Icon_styles_1.classNames.root, Icon_styles_1.classNames.image, className) }), React.createElement(Image_1.Image, tslib_1.__assign({}, imageNameProps, imageProps, { alt: hasName ? altText : '' })))); }; exports.ImageIcon = ImageIcon; //# sourceMappingURL=ImageIcon.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Icon/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__(/*! ./Icon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Icon.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Icon.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./FontIcon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/FontIcon.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ImageIcon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/ImageIcon.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ImageBase = 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 Image_types_1 = __webpack_require__(/*! ./Image.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.types.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 SVG_REGEX = /\.svg$/i; var KEY_PREFIX = 'fabricImage'; function useLoadState(props, imageElement) { var onLoadingStateChange = props.onLoadingStateChange, onLoad = props.onLoad, onError = props.onError, src = props.src; var _a = React.useState(Image_types_1.ImageLoadState.notLoaded), loadState = _a[0], setLoadState = _a[1]; (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { // If the src property changes, reset the load state // (does nothing if the load state is already notLoaded) setLoadState(Image_types_1.ImageLoadState.notLoaded); }, [src]); // eslint-disable-next-line react-hooks/exhaustive-deps -- intended to run every render React.useEffect(function () { if (loadState === Image_types_1.ImageLoadState.notLoaded) { // testing if naturalWidth and naturalHeight are greater than zero is better than checking // .complete, because .complete will also be set to true if the image breaks. However, // for some browsers, SVG images do not have a naturalWidth or naturalHeight, so fall back // to checking .complete for these images. var isLoaded = imageElement.current ? (src && imageElement.current.naturalWidth > 0 && imageElement.current.naturalHeight > 0) || (imageElement.current.complete && SVG_REGEX.test(src)) : false; if (isLoaded) { setLoadState(Image_types_1.ImageLoadState.loaded); } } }); React.useEffect(function () { onLoadingStateChange === null || onLoadingStateChange === void 0 ? void 0 : onLoadingStateChange(loadState); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when loadState changes }, [loadState]); var onImageLoaded = React.useCallback(function (ev) { onLoad === null || onLoad === void 0 ? void 0 : onLoad(ev); if (src) { setLoadState(Image_types_1.ImageLoadState.loaded); } }, [src, onLoad]); var onImageError = React.useCallback(function (ev) { onError === null || onError === void 0 ? void 0 : onError(ev); setLoadState(Image_types_1.ImageLoadState.error); }, [onError]); return [loadState, onImageLoaded, onImageError]; } exports.ImageBase = React.forwardRef(function (props, forwardedRef) { var frameElement = React.useRef(); var imageElement = React.useRef(); var _a = useLoadState(props, imageElement), loadState = _a[0], onImageLoaded = _a[1], onImageError = _a[2]; var imageProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.imgProperties, [ 'width', 'height', ]); var src = props.src, alt = props.alt, width = props.width, height = props.height, _b = props.shouldFadeIn, shouldFadeIn = _b === void 0 ? true : _b, shouldStartVisible = props.shouldStartVisible, className = props.className, imageFit = props.imageFit, role = props.role, maximizeFrame = props.maximizeFrame, styles = props.styles, theme = props.theme, loading = props.loading; var coverStyle = useCoverStyle(props, loadState, imageElement, frameElement); var classNames = getClassNames(styles, { theme: theme, className: className, width: width, height: height, maximizeFrame: maximizeFrame, shouldFadeIn: shouldFadeIn, shouldStartVisible: shouldStartVisible, isLoaded: loadState === Image_types_1.ImageLoadState.loaded || (loadState === Image_types_1.ImageLoadState.notLoaded && props.shouldStartVisible), isLandscape: coverStyle === Image_types_1.ImageCoverStyle.landscape, isCenter: imageFit === Image_types_1.ImageFit.center, isCenterContain: imageFit === Image_types_1.ImageFit.centerContain, isCenterCover: imageFit === Image_types_1.ImageFit.centerCover, isContain: imageFit === Image_types_1.ImageFit.contain, isCover: imageFit === Image_types_1.ImageFit.cover, isNone: imageFit === Image_types_1.ImageFit.none, isError: loadState === Image_types_1.ImageLoadState.error, isNotImageFit: imageFit === undefined, }); // If image dimensions aren't specified, the natural size of the image is used. return (React.createElement("div", { className: classNames.root, style: { width: width, height: height }, ref: frameElement }, React.createElement("img", tslib_1.__assign({}, imageProps, { onLoad: onImageLoaded, onError: onImageError, key: KEY_PREFIX + props.src || '', className: classNames.image, ref: (0, react_hooks_1.useMergedRefs)(imageElement, forwardedRef), src: src, alt: alt, role: role, loading: loading })))); }); exports.ImageBase.displayName = 'ImageBase'; function useCoverStyle(props, loadState, imageElement, frameElement) { var previousLoadState = React.useRef(loadState); var coverStyle = React.useRef(); if (coverStyle === undefined || (previousLoadState.current === Image_types_1.ImageLoadState.notLoaded && loadState === Image_types_1.ImageLoadState.loaded)) { coverStyle.current = computeCoverStyle(props, loadState, imageElement, frameElement); } previousLoadState.current = loadState; return coverStyle.current; } function computeCoverStyle(props, loadState, imageElement, frameElement) { var imageFit = props.imageFit, width = props.width, height = props.height; // Do not compute cover style if it was already specified in props if (props.coverStyle !== undefined) { return props.coverStyle; } else if (loadState === Image_types_1.ImageLoadState.loaded && (imageFit === Image_types_1.ImageFit.cover || imageFit === Image_types_1.ImageFit.contain || imageFit === Image_types_1.ImageFit.centerContain || imageFit === Image_types_1.ImageFit.centerCover) && imageElement.current && frameElement.current) { // Determine the desired ratio using the width and height props. // If those props aren't available, measure measure the frame. var desiredRatio = void 0; if (typeof width === 'number' && typeof height === 'number' && imageFit !== Image_types_1.ImageFit.centerContain && imageFit !== Image_types_1.ImageFit.centerCover) { desiredRatio = width / height; } else { desiredRatio = frameElement.current.clientWidth / frameElement.current.clientHeight; } // Examine the source image to determine its original ratio. var naturalRatio = imageElement.current.naturalWidth / imageElement.current.naturalHeight; // Should we crop from the top or the sides? if (naturalRatio > desiredRatio) { return Image_types_1.ImageCoverStyle.landscape; } } return Image_types_1.ImageCoverStyle.portrait; } //# sourceMappingURL=Image.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Image = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Image_base_1 = __webpack_require__(/*! ./Image.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.base.js"); var Image_styles_1 = __webpack_require__(/*! ./Image.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.styles.js"); exports.Image = (0, Utilities_1.styled)(Image_base_1.ImageBase, Image_styles_1.getStyles, undefined, { scope: 'Image', }, true); exports.Image.displayName = 'Image'; //# sourceMappingURL=Image.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.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 GlobalClassNames = { root: 'ms-Image', rootMaximizeFrame: 'ms-Image--maximizeFrame', image: 'ms-Image-image', imageCenter: 'ms-Image-image--center', imageContain: 'ms-Image-image--contain', imageCover: 'ms-Image-image--cover', imageCenterContain: 'ms-Image-image--centerContain', imageCenterCover: 'ms-Image-image--centerCover', imageNone: 'ms-Image-image--none', imageLandscape: 'ms-Image-image--landscape', imagePortrait: 'ms-Image-image--portrait', }; var getStyles = function (props) { var className = props.className, width = props.width, height = props.height, maximizeFrame = props.maximizeFrame, isLoaded = props.isLoaded, shouldFadeIn = props.shouldFadeIn, shouldStartVisible = props.shouldStartVisible, isLandscape = props.isLandscape, isCenter = props.isCenter, isContain = props.isContain, isCover = props.isCover, isCenterContain = props.isCenterContain, isCenterCover = props.isCenterCover, isNone = props.isNone, isError = props.isError, isNotImageFit = props.isNotImageFit, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var ImageFitStyles = { position: 'absolute', left: '50% /* @noflip */', top: '50%', transform: 'translate(-50%,-50%)', // @todo test RTL renders transform: translate(50%,-50%); }; // Cut the mustard using msMaxTouchPoints to detect IE11 which does not support CSS object-fit var window = (0, Utilities_1.getWindow)(); var supportsObjectFit = window !== undefined && // eslint-disable-next-line @fluentui/max-len // cast needed as vendor prefixed `msMaxTouchPoints` api is no longer part of TS lib declaration - introduced with TS 4.4 window.navigator.msMaxTouchPoints === undefined; var fallbackObjectFitStyles = (isContain && isLandscape) || (isCover && !isLandscape) ? { width: '100%', height: 'auto' } : { width: 'auto', height: '100%' }; return { root: [ classNames.root, theme.fonts.medium, { overflow: 'hidden', }, maximizeFrame && [ classNames.rootMaximizeFrame, { height: '100%', width: '100%', }, ], isLoaded && shouldFadeIn && !shouldStartVisible && Styling_1.AnimationClassNames.fadeIn400, (isCenter || isContain || isCover || isCenterContain || isCenterCover) && { position: 'relative', }, className, ], image: [ classNames.image, { display: 'block', opacity: 0, }, isLoaded && [ 'is-loaded', { opacity: 1, }, ], isCenter && [classNames.imageCenter, ImageFitStyles], isContain && [ classNames.imageContain, supportsObjectFit && { width: '100%', height: '100%', objectFit: 'contain', }, !supportsObjectFit && fallbackObjectFitStyles, !supportsObjectFit && ImageFitStyles, ], isCover && [ classNames.imageCover, supportsObjectFit && { width: '100%', height: '100%', objectFit: 'cover', }, !supportsObjectFit && fallbackObjectFitStyles, !supportsObjectFit && ImageFitStyles, ], isCenterContain && [ classNames.imageCenterContain, isLandscape && { maxWidth: '100%', }, !isLandscape && { maxHeight: '100%', }, ImageFitStyles, ], isCenterCover && [ classNames.imageCenterCover, isLandscape && { maxHeight: '100%', }, !isLandscape && { maxWidth: '100%', }, ImageFitStyles, ], isNone && [ classNames.imageNone, { width: 'auto', height: 'auto', }, ], isNotImageFit && [ !!width && !height && { height: 'auto', width: '100%', }, !width && !!height && { height: '100%', width: 'auto', }, !!width && !!height && { height: '100%', width: '100%', }, ], isLandscape && classNames.imageLandscape, !isLandscape && classNames.imagePortrait, !isLoaded && 'is-notLoaded', shouldFadeIn && 'is-fadeIn', isError && 'is-error', ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Image.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ImageLoadState = exports.ImageCoverStyle = exports.ImageFit = void 0; /** * The possible methods that can be used to fit the image. * {@docCategory Image} */ var ImageFit; (function (ImageFit) { /** * The image is not scaled. The image is centered and cropped within the content box. */ ImageFit[ImageFit["center"] = 0] = "center"; /** * The image is scaled to maintain its aspect ratio while being fully contained within the frame. The image will * be centered horizontally and vertically within the frame. The space in the top and bottom or in the sides of * the frame will be empty depending on the difference in aspect ratio between the image and the frame. */ ImageFit[ImageFit["contain"] = 1] = "contain"; /** * The image is scaled to maintain its aspect ratio while filling the frame. Portions of the image will be cropped * from the top and bottom, or the sides, depending on the difference in aspect ratio between the image and the frame. */ ImageFit[ImageFit["cover"] = 2] = "cover"; /** * Neither the image nor the frame are scaled. If their sizes do not match, the image will either be cropped or the * frame will have empty space. */ ImageFit[ImageFit["none"] = 3] = "none"; /** * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will * behave as ImageFit.center if the image's natural height or width is less than the Image frame's height or width, * but if both natural height and width are larger than the frame it will behave as ImageFit.cover. */ ImageFit[ImageFit["centerCover"] = 4] = "centerCover"; /** * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will * behave as ImageFit.center if the image's natural height and width is less than the Image frame's height and width, * but if either natural height or width are larger than the frame it will behave as ImageFit.contain. */ ImageFit[ImageFit["centerContain"] = 5] = "centerContain"; })(ImageFit = exports.ImageFit || (exports.ImageFit = {})); /** * The cover style to be used on the image * {@docCategory Image} */ var ImageCoverStyle; (function (ImageCoverStyle) { /** * The image will be shown at 100% height of container and the width will be scaled accordingly */ ImageCoverStyle[ImageCoverStyle["landscape"] = 0] = "landscape"; /** * The image will be shown at 100% width of container and the height will be scaled accordingly */ ImageCoverStyle[ImageCoverStyle["portrait"] = 1] = "portrait"; })(ImageCoverStyle = exports.ImageCoverStyle || (exports.ImageCoverStyle = {})); /** * {@docCategory Image} */ var ImageLoadState; (function (ImageLoadState) { /** * The image has not yet been loaded, and there is no error yet. */ ImageLoadState[ImageLoadState["notLoaded"] = 0] = "notLoaded"; /** * The image has been loaded successfully. */ ImageLoadState[ImageLoadState["loaded"] = 1] = "loaded"; /** * An error has been encountered while loading the image. */ ImageLoadState[ImageLoadState["error"] = 2] = "error"; /** * @deprecated Not used. Use `onLoadingStateChange` and re-render the Image with a different src. */ ImageLoadState[ImageLoadState["errorLoaded"] = 3] = "errorLoaded"; })(ImageLoadState = exports.ImageLoadState || (exports.ImageLoadState = {})); //# sourceMappingURL=Image.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Image/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Image/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__(/*! ./Image */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Image.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Image.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/Image.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Keytip = 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 KeytipUtils_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipUtils */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var ContextualMenu_1 = __webpack_require__(/*! ../../ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js"); var KeytipContent_1 = __webpack_require__(/*! ./KeytipContent */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.js"); var Keytip_styles_1 = __webpack_require__(/*! ./Keytip.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.styles.js"); /** * A callout corresponding to another Fabric component to describe a key sequence that will activate that component */ var Keytip = /** @class */ (function (_super) { tslib_1.__extends(Keytip, _super); function Keytip() { return _super !== null && _super.apply(this, arguments) || this; } Keytip.prototype.render = function () { var _a = this.props, keySequences = _a.keySequences, offset = _a.offset, overflowSetSequence = _a.overflowSetSequence; var calloutProps = this.props.calloutProps; var keytipTarget; // Take into consideration the overflow sequence if (overflowSetSequence) { keytipTarget = (0, KeytipUtils_1.ktpTargetFromSequences)((0, KeytipUtils_1.mergeOverflows)(keySequences, overflowSetSequence)); } else { keytipTarget = (0, KeytipUtils_1.ktpTargetFromSequences)(keySequences); } var element = (0, Utilities_1.getFirstVisibleElementFromSelector)(keytipTarget); if (!element) { return React.createElement(React.Fragment, null); } keytipTarget = element; if (offset) { // Set callout to top-left corner, will be further positioned in // getCalloutOffsetStyles calloutProps = tslib_1.__assign(tslib_1.__assign({}, calloutProps), { coverTarget: true, directionalHint: ContextualMenu_1.DirectionalHint.topLeftEdge }); } if (!calloutProps || calloutProps.directionalHint === undefined) { // Default callout directional hint to BottomCenter calloutProps = tslib_1.__assign(tslib_1.__assign({}, calloutProps), { directionalHint: ContextualMenu_1.DirectionalHint.bottomCenter }); } return (React.createElement(Callout_1.Callout, tslib_1.__assign({}, calloutProps, { isBeakVisible: false, doNotLayer: true, minPagePadding: 0, styles: offset ? (0, Keytip_styles_1.getCalloutOffsetStyles)(offset) : Keytip_styles_1.getCalloutStyles, preventDismissOnScroll: true, target: keytipTarget }), React.createElement(KeytipContent_1.KeytipContent, tslib_1.__assign({}, this.props)))); }; return Keytip; }(React.Component)); exports.Keytip = Keytip; //# sourceMappingURL=Keytip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.styles.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getCalloutOffsetStyles = exports.getCalloutStyles = exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var getStyles = function (props) { var _a; var theme = props.theme, disabled = props.disabled, visible = props.visible; return { container: [ { backgroundColor: theme.palette.neutralDark, }, disabled && { opacity: 0.5, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', opacity: 1, }, _a), }, !visible && { visibility: 'hidden', }, ], root: [ theme.fonts.medium, { textAlign: 'center', paddingLeft: '3px', paddingRight: '3px', backgroundColor: theme.palette.neutralDark, color: theme.palette.neutralLight, minWidth: '11px', lineHeight: '17px', height: '17px', display: 'inline-block', }, disabled && { color: theme.palette.neutralTertiaryAlt, }, ], }; }; exports.getStyles = getStyles; var getCalloutStyles = function (props) { return { container: [], root: [ { border: 'none', boxShadow: 'none', }, ], beak: [], beakCurtain: [], calloutMain: [ { backgroundColor: 'transparent', }, ], }; }; exports.getCalloutStyles = getCalloutStyles; var getCalloutOffsetStyles = function (offset) { return function (props) { return (0, Styling_1.mergeStyleSets)((0, exports.getCalloutStyles)(props), { root: [ { // eslint-disable-next-line deprecation/deprecation marginLeft: offset.left || offset.x, // eslint-disable-next-line deprecation/deprecation marginTop: offset.top || offset.y, }, ], }); }; }; exports.getCalloutOffsetStyles = getCalloutOffsetStyles; //# sourceMappingURL=Keytip.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Keytip.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.base.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipContentBase = 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"); /** * A component corresponding the content rendered inside the callout of the keytip component. * {@docCategory Keytips} */ var KeytipContentBase = /** @class */ (function (_super) { tslib_1.__extends(KeytipContentBase, _super); function KeytipContentBase() { return _super !== null && _super.apply(this, arguments) || this; } KeytipContentBase.prototype.render = function () { var _a = this.props, content = _a.content, styles = _a.styles, theme = _a.theme, disabled = _a.disabled, visible = _a.visible; var getClassNames = (0, Utilities_1.classNamesFunction)(); var classNames = getClassNames(styles, { theme: theme, disabled: disabled, visible: visible, }); return (React.createElement("div", { className: classNames.container }, React.createElement("span", { className: classNames.root }, content))); }; return KeytipContentBase; }(React.Component)); exports.KeytipContentBase = KeytipContentBase; //# sourceMappingURL=KeytipContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipContent = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var KeytipContent_base_1 = __webpack_require__(/*! ./KeytipContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/KeytipContent.base.js"); var Keytip_styles_1 = __webpack_require__(/*! ./Keytip.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.styles.js"); exports.KeytipContent = (0, Utilities_1.styled)(KeytipContent_base_1.KeytipContentBase, Keytip_styles_1.getStyles, undefined, { scope: 'KeytipContent', }); //# sourceMappingURL=KeytipContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Keytip/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__(/*! ./Keytip */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Keytip.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/Keytip.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipData = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var index_1 = __webpack_require__(/*! ../../utilities/keytips/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js"); var useKeytipData_1 = __webpack_require__(/*! ./useKeytipData */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipData.js"); /** * A small element to help the target component correctly read out its aria-describedby for its Keytip * {@docCategory Keytips} */ var KeytipData = function (props) { var _a; var children = props.children, keytipDataProps = tslib_1.__rest(props, ["children"]); var _b = (0, useKeytipData_1.useKeytipData)(keytipDataProps), keytipId = _b.keytipId, ariaDescribedBy = _b.ariaDescribedBy; return children((_a = {}, _a[index_1.DATAKTP_TARGET] = keytipId, _a[index_1.DATAKTP_EXECUTE_TARGET] = keytipId, _a['aria-describedby'] = ariaDescribedBy, _a)); }; exports.KeytipData = KeytipData; //# sourceMappingURL=KeytipData.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=KeytipData.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useKeytipRef = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipData */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipData.types */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/KeytipData.types.js"), exports); var useKeytipRef_1 = __webpack_require__(/*! ./useKeytipRef */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipRef.js"); Object.defineProperty(exports, "useKeytipRef", ({ enumerable: true, get: function () { return useKeytipRef_1.useKeytipRef; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipData.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipData.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useKeytipData = 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__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var index_1 = __webpack_require__(/*! ../../utilities/keytips/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js"); /** * Hook that creates attributes for components which are enabled with Keytip. */ function useKeytipData(options) { var uniqueId = React.useRef(); var keytipProps = options.keytipProps ? tslib_1.__assign({ disabled: options.disabled }, options.keytipProps) : undefined; var keytipManager = (0, react_hooks_1.useConst)(index_1.KeytipManager.getInstance()); var prevOptions = (0, react_hooks_1.usePrevious)(options); // useLayoutEffect used to strictly emulate didUpdate/didMount behavior (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { if (uniqueId.current && keytipProps && ((prevOptions === null || prevOptions === void 0 ? void 0 : prevOptions.keytipProps) !== options.keytipProps || (prevOptions === null || prevOptions === void 0 ? void 0 : prevOptions.disabled) !== options.disabled)) { keytipManager.update(keytipProps, uniqueId.current); } }); (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { // Register Keytip in KeytipManager if (keytipProps) { uniqueId.current = keytipManager.register(keytipProps); } return function () { // Unregister Keytip in KeytipManager keytipProps && keytipManager.unregister(keytipProps, uniqueId.current); }; // this is meant to run only at mount, and updates are handled separately // eslint-disable-next-line react-hooks/exhaustive-deps }, []); var nativeKeytipProps = { ariaDescribedBy: undefined, keytipId: undefined, }; if (keytipProps) { nativeKeytipProps = getKeytipData(keytipManager, keytipProps, options.ariaDescribedBy); } return nativeKeytipProps; } exports.useKeytipData = useKeytipData; /** * Gets the aria- and data- attributes to attach to the component * @param keytipProps - options for Keytip * @param describedByPrepend - ariaDescribedBy value to prepend */ function getKeytipData(keytipManager, keytipProps, describedByPrepend) { // Add the parent overflow sequence if necessary var newKeytipProps = keytipManager.addParentOverflow(keytipProps); // Construct aria-describedby and data-ktp-id attributes var ariaDescribedBy = (0, Utilities_1.mergeAriaAttributeValues)(describedByPrepend, (0, index_1.getAriaDescribedBy)(newKeytipProps.keySequences)); var keySequences = tslib_1.__spreadArray([], newKeytipProps.keySequences, true); if (newKeytipProps.overflowSetSequence) { keySequences = (0, index_1.mergeOverflows)(keySequences, newKeytipProps.overflowSetSequence); } var keytipId = (0, index_1.sequencesToID)(keySequences); return { ariaDescribedBy: ariaDescribedBy, keytipId: keytipId, }; } //# sourceMappingURL=useKeytipData.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipRef.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipRef.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setAttribute = exports.useKeytipRef = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var index_1 = __webpack_require__(/*! ../../utilities/keytips/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js"); var useKeytipData_1 = __webpack_require__(/*! ./useKeytipData */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/useKeytipData.js"); /** * Hook that creates a ref which is used for passing to Keytip target element. * The ref will handle setting the attributes needed for Keytip to work. */ function useKeytipRef(options) { var _a = (0, useKeytipData_1.useKeytipData)(options), keytipId = _a.keytipId, ariaDescribedBy = _a.ariaDescribedBy; var contentRef = React.useCallback(function (contentElement) { if (!contentElement) { return; } var targetElement = findFirstElement(contentElement, index_1.DATAKTP_TARGET) || contentElement; var executeElement = findFirstElement(contentElement, index_1.DATAKTP_EXECUTE_TARGET) || targetElement; var ariaElement = findFirstElement(contentElement, index_1.DATAKTP_ARIA_TARGET) || executeElement; setAttribute(targetElement, index_1.DATAKTP_TARGET, keytipId); setAttribute(executeElement, index_1.DATAKTP_EXECUTE_TARGET, keytipId); setAttribute(ariaElement, 'aria-describedby', ariaDescribedBy, true); }, [keytipId, ariaDescribedBy]); return contentRef; } exports.useKeytipRef = useKeytipRef; function setAttribute(element, attributeName, attributeValue, append) { if (append === void 0) { append = false; } if (element && attributeValue) { var value = attributeValue; if (append) { var currentValue = element.getAttribute(attributeName); if (currentValue && currentValue.indexOf(attributeValue) === -1) { value = "".concat(currentValue, " ").concat(attributeValue); } } element.setAttribute(attributeName, value); } } exports.setAttribute = setAttribute; function findFirstElement(rootElement, dataAttribute) { return rootElement.querySelector("[".concat(dataAttribute, "]")); } //# sourceMappingURL=useKeytipRef.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipLayerBase = 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 KeytipLayer_styles_1 = __webpack_require__(/*! ./KeytipLayer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.styles.js"); var Keytip_1 = __webpack_require__(/*! ../../Keytip */ "./node_modules/@fluentui/react/lib-commonjs/Keytip.js"); var Layer_1 = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var KeytipManager_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipManager */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js"); var KeytipTree_1 = __webpack_require__(/*! ./KeytipTree */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipTree.js"); var KeytipUtils_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipUtils */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js"); var IKeytipTransitionKey_1 = __webpack_require__(/*! ../../utilities/keytips/IKeytipTransitionKey */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js"); var KeytipConstants_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); // Default sequence is Alt-Windows (Alt-Meta) in Windows, Option-Control (Alt-Control) in Mac var defaultStartSequence = { key: (0, Utilities_1.isMac)() ? 'Control' : 'Meta', modifierKeys: [Utilities_1.KeyCodes.alt], }; // Default exit sequence is the same as the start sequence var defaultExitSequence = defaultStartSequence; // Default return sequence is Escape var defaultReturnSequence = { key: 'Escape', }; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * A layer that holds all keytip items * {@docCategory Keytips} */ var KeytipLayerBase = /** @class */ (function (_super) { tslib_1.__extends(KeytipLayerBase, _super); function KeytipLayerBase(props, context) { var _this = _super.call(this, props, context) || this; _this._keytipManager = KeytipManager_1.KeytipManager.getInstance(); _this._delayedKeytipQueue = []; _this._keyHandled = false; _this._isKeytipInstanceTargetVisible = function (keySequences, instanceCount) { var targetSelector = (0, KeytipUtils_1.ktpTargetFromSequences)(keySequences); var matchingElements = document.querySelectorAll(targetSelector); // If there are multiple elements for the keytip sequence, return true if the element instance // that corresponds to the keytip instance is visible, otherwise return if there is only one instance return matchingElements.length > 1 && instanceCount <= matchingElements.length ? (0, Utilities_1.isElementVisibleAndNotHidden)(matchingElements[instanceCount - 1]) : instanceCount === 1; }; _this._onDismiss = function (ev) { // if we are in keytip mode, then exit keytip mode if (_this.state.inKeytipMode) { _this._exitKeytipMode(ev); } }; _this._onKeyDown = function (ev) { _this._keyHandled = false; // using key since which has been deprecated and key is now widely suporrted. // See: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which var key = ev.key; switch (key) { case 'Tab': case 'Enter': case 'Spacebar': case ' ': case 'ArrowUp': case 'Up': case 'ArrowDown': case 'Down': case 'ArrowLeft': case 'Left': case 'ArrowRight': case 'Right': if (_this.state.inKeytipMode) { _this._keyHandled = true; _this._exitKeytipMode(ev); } break; default: // Special cases for browser-specific keys that are not at standard // (according to http://www.w3.org/TR/uievents-key/#keys-navigation) if (key === 'Esc') { // Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5290772/ key = 'Escape'; } else if (key === 'OS' || key === 'Win') { // Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1232918 // Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/ // and https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/16424492/ key = 'Meta'; } var transitionKey = { key: key }; transitionKey.modifierKeys = _this._getModifierKey(key, ev); _this.processTransitionInput(transitionKey, ev); break; } }; _this._onKeyPress = function (ev) { if (_this.state.inKeytipMode && !_this._keyHandled) { // Call processInput _this.processInput(ev.key.toLocaleLowerCase(), ev); ev.preventDefault(); ev.stopPropagation(); } }; _this._onKeytipAdded = function (eventArgs) { var _a; var keytipProps = eventArgs.keytip; var uniqueID = eventArgs.uniqueID; _this._keytipTree.addNode(keytipProps, uniqueID); _this._setKeytips(); // Add the keytip to the queue to show later if (_this._keytipTree.isCurrentKeytipParent(keytipProps)) { // Ensure existing children are still shown. _this._delayedKeytipQueue = _this._delayedKeytipQueue.concat(((_a = _this._keytipTree.currentKeytip) === null || _a === void 0 ? void 0 : _a.children) || []); _this._addKeytipToQueue((0, KeytipUtils_1.sequencesToID)(keytipProps.keySequences)); // Ensure the child of currentKeytip is successfully added to currentKeytip's children and update it if not. // Note: Added this condition because KeytipTree.addNode was not always reflecting updates made to a parent node // in currentKeytip when that parent is the currentKeytip. if (_this._keytipTree.currentKeytip && _this._keytipTree.currentKeytip.hasDynamicChildren && _this._keytipTree.currentKeytip.children.indexOf(keytipProps.id) < 0) { var currNode = _this._keytipTree.getNode(_this._keytipTree.currentKeytip.id); if (currNode) { _this._keytipTree.currentKeytip = currNode; } } } _this._persistedKeytipChecks(keytipProps); }; _this._onKeytipUpdated = function (eventArgs) { var _a; var keytipProps = eventArgs.keytip; var uniqueID = eventArgs.uniqueID; _this._keytipTree.updateNode(keytipProps, uniqueID); _this._setKeytips(); if (_this._keytipTree.isCurrentKeytipParent(keytipProps)) { // Ensure existing children are still shown. _this._delayedKeytipQueue = _this._delayedKeytipQueue.concat(((_a = _this._keytipTree.currentKeytip) === null || _a === void 0 ? void 0 : _a.children) || []); _this._addKeytipToQueue((0, KeytipUtils_1.sequencesToID)(keytipProps.keySequences)); } _this._persistedKeytipChecks(keytipProps); }; /** * Helper function to do checks related to persisted/overflow keytips * Done on keytip added and keytip updated * * @param keytipProps - Keytip props */ _this._persistedKeytipChecks = function (keytipProps) { if (_this._newCurrentKeytipSequences && (0, Utilities_1.arraysEqual)(keytipProps.keySequences, _this._newCurrentKeytipSequences)) { _this._triggerKeytipImmediately(keytipProps); } if (_this._isCurrentKeytipAnAlias(keytipProps)) { var keytipSequence = keytipProps.keySequences; if (keytipProps.overflowSetSequence) { keytipSequence = (0, KeytipUtils_1.mergeOverflows)(keytipSequence, keytipProps.overflowSetSequence); } _this._keytipTree.currentKeytip = _this._keytipTree.getNode((0, KeytipUtils_1.sequencesToID)(keytipSequence)); } }; _this._onKeytipRemoved = function (eventArgs) { var keytipProps = eventArgs.keytip; var uniqueID = eventArgs.uniqueID; // Remove keytip from the delayed queue _this._removeKeytipFromQueue((0, KeytipUtils_1.sequencesToID)(keytipProps.keySequences)); // Remove the node from the Tree _this._keytipTree.removeNode(keytipProps, uniqueID); _this._setKeytips(); }; _this._onPersistedKeytipAdded = function (eventArgs) { var keytipProps = eventArgs.keytip; var uniqueID = eventArgs.uniqueID; _this._keytipTree.addNode(keytipProps, uniqueID, true); }; _this._onPersistedKeytipRemoved = function (eventArgs) { var keytipProps = eventArgs.keytip; var uniqueID = eventArgs.uniqueID; _this._keytipTree.removeNode(keytipProps, uniqueID); }; _this._onPersistedKeytipExecute = function (eventArgs) { _this._persistedKeytipExecute(eventArgs.overflowButtonSequences, eventArgs.keytipSequences); }; /** * Sets if we are in keytip mode. * Note, this sets both the state for the layer as well as * the value that the manager will expose externally. * @param inKeytipMode - Boolean so set whether we are in keytip mode or not */ _this._setInKeytipMode = function (inKeytipMode) { _this.setState({ inKeytipMode: inKeytipMode }); _this._keytipManager.inKeytipMode = inKeytipMode; }; /** * Emits a warning if duplicate keytips are found for the children of the current keytip */ _this._warnIfDuplicateKeytips = function () { var duplicateKeytips = _this._getDuplicateIds(_this._keytipTree.getChildren()); if (duplicateKeytips.length) { (0, Utilities_1.warn)('Duplicate keytips found for ' + duplicateKeytips.join(', ')); } }; /** * Returns duplicates among keytip IDs. * If the returned array is empty, no duplicates were found. * * @param keytipIds - Array of keytip IDs to find duplicates for * @returns - Array of duplicates that were found. Each duplicate will only be added once to this array. */ _this._getDuplicateIds = function (keytipIds) { var seenIds = {}; return keytipIds.filter(function (keytipId) { seenIds[keytipId] = seenIds[keytipId] ? seenIds[keytipId] + 1 : 1; // Only add the first duplicate keytip seen return seenIds[keytipId] === 2; }); }; (0, Utilities_1.initializeComponentRef)(_this); _this._events = new Utilities_1.EventGroup(_this); _this._async = new Utilities_1.Async(_this); var keytips = _this._keytipManager.getKeytips(); _this.state = { inKeytipMode: false, keytips: keytips, visibleKeytips: _this._getVisibleKeytips(keytips), }; _this._buildTree(); _this._currentSequence = ''; // Add keytip listeners _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.KEYTIP_ADDED, _this._onKeytipAdded); _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.KEYTIP_UPDATED, _this._onKeytipUpdated); _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.KEYTIP_REMOVED, _this._onKeytipRemoved); _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_ADDED, _this._onPersistedKeytipAdded); _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_REMOVED, _this._onPersistedKeytipRemoved); _this._events.on(_this._keytipManager, KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_EXECUTE, _this._onPersistedKeytipExecute); return _this; } KeytipLayerBase.prototype.render = function () { var _this = this; var _a = this.props, content = _a.content, styles = _a.styles; var _b = this.state, keytips = _b.keytips, visibleKeytips = _b.visibleKeytips; this._classNames = getClassNames(styles, {}); return (React.createElement(Layer_1.Layer, { styles: KeytipLayer_styles_1.getLayerStyles }, React.createElement("span", { id: KeytipConstants_1.KTP_LAYER_ID, className: this._classNames.innerContent }, "".concat(content).concat(KeytipConstants_1.KTP_ARIA_SEPARATOR)), keytips && keytips.map(function (keytipProps, index) { return (React.createElement("span", { key: index, id: (0, KeytipUtils_1.sequencesToID)(keytipProps.keySequences), className: _this._classNames.innerContent }, keytipProps.keySequences.join(KeytipConstants_1.KTP_ARIA_SEPARATOR))); }), visibleKeytips && visibleKeytips.map(function (visibleKeytipProps) { return React.createElement(Keytip_1.Keytip, tslib_1.__assign({ key: (0, KeytipUtils_1.sequencesToID)(visibleKeytipProps.keySequences) }, visibleKeytipProps)); }))); }; KeytipLayerBase.prototype.componentDidMount = function () { // Add window listeners this._events.on(window, 'mouseup', this._onDismiss, true /* useCapture */); this._events.on(window, 'pointerup', this._onDismiss, true /* useCapture */); this._events.on(window, 'resize', this._onDismiss); this._events.on(window, 'keydown', this._onKeyDown, true /* useCapture */); this._events.on(window, 'keypress', this._onKeyPress, true /* useCapture */); this._events.on(window, 'scroll', this._onDismiss, true /* useCapture */); // Add keytip listeners this._events.on(this._keytipManager, KeytipConstants_1.KeytipEvents.ENTER_KEYTIP_MODE, this._enterKeytipMode); this._events.on(this._keytipManager, KeytipConstants_1.KeytipEvents.EXIT_KEYTIP_MODE, this._exitKeytipMode); }; KeytipLayerBase.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; // The below public functions are only public for testing purposes // They are not intended to be used in app code by using a KeytipLayer reference KeytipLayerBase.prototype.getCurrentSequence = function () { return this._currentSequence; }; KeytipLayerBase.prototype.getKeytipTree = function () { return this._keytipTree; }; /** * Processes an IKeytipTransitionKey entered by the user * * @param transitionKey - IKeytipTransitionKey received by the layer to process */ KeytipLayerBase.prototype.processTransitionInput = function (transitionKey, ev) { var currKtp = this._keytipTree.currentKeytip; if ((0, IKeytipTransitionKey_1.transitionKeysContain)(this.props.keytipExitSequences, transitionKey) && currKtp) { // If key sequence is in 'exit sequences', exit keytip mode this._keyHandled = true; this._exitKeytipMode(ev); } else if ((0, IKeytipTransitionKey_1.transitionKeysContain)(this.props.keytipReturnSequences, transitionKey)) { // If key sequence is in return sequences, move currentKeytip to parent (or if currentKeytip is the root, exit) if (currKtp) { this._keyHandled = true; if (currKtp.id === this._keytipTree.root.id) { // We are at the root, exit keytip mode this._exitKeytipMode(ev); } else { // If this keytip has a onReturn prop, we execute the func. if (currKtp.onReturn) { currKtp.onReturn(this._getKtpExecuteTarget(currKtp), this._getKtpTarget(currKtp)); } // Reset currentSequence this._currentSequence = ''; // Return pointer to its parent this._keytipTree.currentKeytip = this._keytipTree.getNode(currKtp.parent); // Show children keytips of the new currentKeytip this.showKeytips(this._keytipTree.getChildren()); this._warnIfDuplicateKeytips(); } } } else if ((0, IKeytipTransitionKey_1.transitionKeysContain)(this.props.keytipStartSequences, transitionKey) && !currKtp) { // If key sequence is in 'entry sequences' and currentKeytip is null, we enter keytip mode this._keyHandled = true; this._enterKeytipMode(transitionKey); this._warnIfDuplicateKeytips(); } }; /** * Processes inputs from the document listener and traverse the keytip tree * * @param key - Key pressed by the user */ KeytipLayerBase.prototype.processInput = function (key, ev) { // Concat the input key with the current sequence var currSequence = this._currentSequence + key; var currKtp = this._keytipTree.currentKeytip; // currentKeytip must be defined, otherwise we haven't entered keytip mode yet if (currKtp) { var node = this._keytipTree.getExactMatchedNode(currSequence, currKtp); if (node) { this._keytipTree.currentKeytip = currKtp = node; var currKtpChildren = this._keytipTree.getChildren(); // Execute this node's onExecute if defined if (currKtp.onExecute) { currKtp.onExecute(this._getKtpExecuteTarget(currKtp), this._getKtpTarget(currKtp)); // Reset currKtp, this might have changed from the onExecute currKtp = this._keytipTree.currentKeytip; } // To exit keytipMode after executing the keytip it must not have a menu or have dynamic children if (currKtpChildren.length === 0 && !(currKtp.hasDynamicChildren || currKtp.hasMenu)) { this._exitKeytipMode(ev); } else { // Show all children keytips this.showKeytips(currKtpChildren); this._warnIfDuplicateKeytips(); } // Clear currentSequence this._currentSequence = ''; return; } var partialNodes = this._keytipTree.getPartiallyMatchedNodes(currSequence, currKtp); if (partialNodes.length > 0) { // We found nodes that partially match the sequence, so we show only those // Omit showing persisted nodes here var ids = partialNodes .filter(function (partialNode) { return !partialNode.persisted; }) .map(function (partialNode) { return partialNode.id; }); this.showKeytips(ids); // Save currentSequence this._currentSequence = currSequence; } } }; /** * Show the given keytips and hide all others * * @param ids - Keytip IDs to show */ KeytipLayerBase.prototype.showKeytips = function (ids) { // Update the visible prop in the manager for (var _i = 0, _a = this._keytipManager.getKeytips(); _i < _a.length; _i++) { var keytip = _a[_i]; var keytipId = (0, KeytipUtils_1.sequencesToID)(keytip.keySequences); if (keytip.overflowSetSequence) { // Check if the ID with the overflow is the keytip we're looking for keytipId = (0, KeytipUtils_1.sequencesToID)((0, KeytipUtils_1.mergeOverflows)(keytip.keySequences, keytip.overflowSetSequence)); } if (ids.indexOf(keytipId) >= 0) { keytip.visible = true; } else { keytip.visible = false; } } // Apply the manager changes to the Layer state this._setKeytips(); }; /** * Enters keytip mode for this layer */ KeytipLayerBase.prototype._enterKeytipMode = function (transitionKey) { if (this._keytipManager.shouldEnterKeytipMode) { if (this._keytipManager.delayUpdatingKeytipChange) { this._buildTree(); this._setKeytips(); } this._keytipTree.currentKeytip = this._keytipTree.root; // Show children of root this.showKeytips(this._keytipTree.getChildren()); this._setInKeytipMode(true /* inKeytipMode */); if (this.props.onEnterKeytipMode) { this.props.onEnterKeytipMode(transitionKey); } } }; KeytipLayerBase.prototype._buildTree = function () { this._keytipTree = new KeytipTree_1.KeytipTree(); // Add regular and persisted keytips to the tree for (var _i = 0, _a = Object.keys(this._keytipManager.keytips); _i < _a.length; _i++) { var id = _a[_i]; var uniqueKeytip = this._keytipManager.keytips[id]; this._keytipTree.addNode(uniqueKeytip.keytip, uniqueKeytip.uniqueID); } for (var _b = 0, _c = Object.keys(this._keytipManager.persistedKeytips); _b < _c.length; _b++) { var id = _c[_b]; var uniqueKeytip = this._keytipManager.persistedKeytips[id]; this._keytipTree.addNode(uniqueKeytip.keytip, uniqueKeytip.uniqueID); } }; /** * Exits keytip mode for this layer */ KeytipLayerBase.prototype._exitKeytipMode = function (ev) { this._keytipTree.currentKeytip = undefined; this._currentSequence = ''; // Hide all keytips this.showKeytips([]); // Reset the delayed keytips if any this._delayedQueueTimeout && this._async.clearTimeout(this._delayedQueueTimeout); this._delayedKeytipQueue = []; this._setInKeytipMode(false /* inKeytipMode */); if (this.props.onExitKeytipMode) { this.props.onExitKeytipMode(ev); } }; /** * Sets the keytips state property * * @param keytipProps - Keytips to set in this layer */ KeytipLayerBase.prototype._setKeytips = function (keytipProps) { if (keytipProps === void 0) { keytipProps = this._keytipManager.getKeytips(); } this.setState({ keytips: keytipProps, visibleKeytips: this._getVisibleKeytips(keytipProps) }); }; /** * Callback function to use for persisted keytips * * @param overflowButtonSequences - The overflow button sequence to execute * @param keytipSequences - The keytip that should become the 'currentKeytip' when it is registered */ KeytipLayerBase.prototype._persistedKeytipExecute = function (overflowButtonSequences, keytipSequences) { // Save newCurrentKeytip for later this._newCurrentKeytipSequences = keytipSequences; // Execute the overflow button's onExecute var overflowKeytipNode = this._keytipTree.getNode((0, KeytipUtils_1.sequencesToID)(overflowButtonSequences)); if (overflowKeytipNode && overflowKeytipNode.onExecute) { overflowKeytipNode.onExecute(this._getKtpExecuteTarget(overflowKeytipNode), this._getKtpTarget(overflowKeytipNode)); } }; KeytipLayerBase.prototype._getVisibleKeytips = function (keytips) { var _this = this; // Filter out non-visible keytips and duplicates var seenIds = {}; return keytips.filter(function (keytip) { var keytipId = (0, KeytipUtils_1.sequencesToID)(keytip.keySequences); if (keytip.overflowSetSequence) { // Account for overflow set sequences when checking for duplicates keytipId = (0, KeytipUtils_1.sequencesToID)((0, KeytipUtils_1.mergeOverflows)(keytip.keySequences, keytip.overflowSetSequence)); } seenIds[keytipId] = seenIds[keytipId] ? seenIds[keytipId] + 1 : 1; // Return true only if the keytip is visible and the corresponding target is also visible return keytip.visible && _this._isKeytipInstanceTargetVisible(keytip.keySequences, seenIds[keytipId]); }); }; /** * Gets the ModifierKeyCodes based on the keyboard event * * @param ev - React.KeyboardEvent * @returns List of ModifierKeyCodes that were pressed */ KeytipLayerBase.prototype._getModifierKey = function (key, ev) { var modifierKeys = []; if (ev.altKey && key !== 'Alt') { modifierKeys.push(Utilities_1.KeyCodes.alt); } if (ev.ctrlKey && key !== 'Control') { modifierKeys.push(Utilities_1.KeyCodes.ctrl); } if (ev.shiftKey && key !== 'Shift') { modifierKeys.push(Utilities_1.KeyCodes.shift); } if (ev.metaKey && key !== 'Meta') { modifierKeys.push(Utilities_1.KeyCodes.leftWindow); } return modifierKeys.length ? modifierKeys : undefined; }; /** * Trigger a keytip immediately and set it as the current keytip * * @param keytipProps - Keytip to trigger immediately */ KeytipLayerBase.prototype._triggerKeytipImmediately = function (keytipProps) { // This keytip should become the currentKeytip and should execute right away var keytipSequence = tslib_1.__spreadArray([], keytipProps.keySequences, true); if (keytipProps.overflowSetSequence) { keytipSequence = (0, KeytipUtils_1.mergeOverflows)(keytipSequence, keytipProps.overflowSetSequence); } // Set currentKeytip this._keytipTree.currentKeytip = this._keytipTree.getNode((0, KeytipUtils_1.sequencesToID)(keytipSequence)); if (this._keytipTree.currentKeytip) { // Show all children keytips if any var children = this._keytipTree.getChildren(); if (children.length) { this.showKeytips(children); } if (this._keytipTree.currentKeytip.onExecute) { this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip), this._getKtpTarget(this._keytipTree.currentKeytip)); } } // Unset _newCurrKtpSequences this._newCurrentKeytipSequences = undefined; }; KeytipLayerBase.prototype._addKeytipToQueue = function (keytipID) { var _this = this; // Add keytip this._delayedKeytipQueue.push(keytipID); // Clear timeout this._delayedQueueTimeout && this._async.clearTimeout(this._delayedQueueTimeout); // Reset timeout this._delayedQueueTimeout = this._async.setTimeout(function () { if (_this._delayedKeytipQueue.length) { _this.showKeytips(_this._delayedKeytipQueue); _this._delayedKeytipQueue = []; } }, 300); }; KeytipLayerBase.prototype._removeKeytipFromQueue = function (keytipID) { var _this = this; var index = this._delayedKeytipQueue.indexOf(keytipID); if (index >= 0) { // Remove keytip this._delayedKeytipQueue.splice(index, 1); // Clear timeout this._delayedQueueTimeout && this._async.clearTimeout(this._delayedQueueTimeout); // Reset timeout this._delayedQueueTimeout = this._async.setTimeout(function () { if (_this._delayedKeytipQueue.length) { _this.showKeytips(_this._delayedKeytipQueue); _this._delayedKeytipQueue = []; } }, 300); } }; KeytipLayerBase.prototype._getKtpExecuteTarget = function (currKtp) { return (0, Utilities_1.getDocument)().querySelector((0, KeytipUtils_1.ktpTargetFromId)(currKtp.id)); }; KeytipLayerBase.prototype._getKtpTarget = function (currKtp) { return (0, Utilities_1.getDocument)().querySelector((0, KeytipUtils_1.ktpTargetFromSequences)(currKtp.keySequences)); }; /** * Returns T/F if the keytipProps keySequences match the currentKeytip, and the currentKeytip is in an overflow well * This will make 'keytipProps' the new currentKeytip * * @param keytipProps - Keytip props to check * @returns - T/F if this keytip should become the currentKeytip */ KeytipLayerBase.prototype._isCurrentKeytipAnAlias = function (keytipProps) { var currKtp = this._keytipTree.currentKeytip; if (currKtp && (currKtp.overflowSetSequence || currKtp.persisted) && (0, Utilities_1.arraysEqual)(keytipProps.keySequences, currKtp.keySequences)) { return true; } return false; }; KeytipLayerBase.defaultProps = { keytipStartSequences: [defaultStartSequence], keytipExitSequences: [defaultExitSequence], keytipReturnSequences: [defaultReturnSequence], content: '', }; return KeytipLayerBase; }(React.Component)); exports.KeytipLayerBase = KeytipLayerBase; //# sourceMappingURL=KeytipLayer.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipLayer = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var KeytipLayer_base_1 = __webpack_require__(/*! ./KeytipLayer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.base.js"); var KeytipLayer_styles_1 = __webpack_require__(/*! ./KeytipLayer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.styles.js"); exports.KeytipLayer = (0, Utilities_1.styled)(KeytipLayer_base_1.KeytipLayerBase, KeytipLayer_styles_1.getStyles, undefined, { scope: 'KeytipLayer', }); //# sourceMappingURL=KeytipLayer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.getLayerStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var getLayerStyles = function (props) { return { root: [ { // Prioritize the Keytips above all other Layers zIndex: Styling_1.ZIndexes.KeytipLayer, }, ], }; }; exports.getLayerStyles = getLayerStyles; var getStyles = function (props) { return { innerContent: [ { position: 'absolute', width: 0, height: 0, margin: 0, padding: 0, border: 0, overflow: 'hidden', visibility: 'hidden', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=KeytipLayer.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=KeytipLayer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipTree.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipTree.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipTree = 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 KeytipUtils_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipUtils */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js"); var KeytipConstants_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); /** * This class is responsible for handling the parent/child relationships between keytips */ var KeytipTree = /** @class */ (function () { /** * KeytipTree constructor */ function KeytipTree() { this.nodeMap = {}; // Root has no keytipSequence this.root = { id: KeytipConstants_1.KTP_LAYER_ID, children: [], parent: '', keySequences: [], }; this.nodeMap[this.root.id] = this.root; } /** * Add a keytip node to this KeytipTree * * @param keytipProps - Keytip to add to the Tree * @param uniqueID - Unique ID for this keytip * @param persisted - T/F if this keytip should be marked as persisted */ KeytipTree.prototype.addNode = function (keytipProps, uniqueID, persisted) { var fullSequence = this._getFullSequence(keytipProps); var nodeID = (0, KeytipUtils_1.sequencesToID)(fullSequence); // Take off the last item to calculate the parent sequence fullSequence.pop(); // Parent ID is the root if there aren't any more sequences var parentID = this._getParentID(fullSequence); // Create node and add to map var node = this._createNode(nodeID, parentID, [], keytipProps, persisted); this.nodeMap[uniqueID] = node; // Try to add self to parents children var parents = this.getNodes([parentID]); parents.forEach(function (parent) { return parent.children.push(nodeID); }); }; /** * Updates a node in the tree * * @param keytipProps - Keytip props to update * @param uniqueID - Unique ID for this keytip */ KeytipTree.prototype.updateNode = function (keytipProps, uniqueID) { var fullSequence = this._getFullSequence(keytipProps); var nodeID = (0, KeytipUtils_1.sequencesToID)(fullSequence); // Take off the last item to calculate the parent sequence fullSequence.pop(); // Parent ID is the root if there aren't any more sequences var parentID = this._getParentID(fullSequence); var node = this.nodeMap[uniqueID]; var prevParent = node.parent; if (node) { // Fix parent nodes if needed if (prevParent !== parentID) { // If parent has changed, remove child from old parent this._removeChildFromParents(prevParent, node.id); } if (node.id !== nodeID) { // If the ID of the node has changed, update node's parent's array of children with new ID var parents = this.getNodes([parentID]); parents.forEach(function (parent) { var index = parent.children.indexOf(node.id); index >= 0 ? (parent.children[index] = nodeID) : parent.children.push(nodeID); }); } // Update values node.id = nodeID; node.keySequences = keytipProps.keySequences; node.overflowSetSequence = keytipProps.overflowSetSequence; node.onExecute = keytipProps.onExecute; node.onReturn = keytipProps.onReturn; node.hasDynamicChildren = keytipProps.hasDynamicChildren; node.hasMenu = keytipProps.hasMenu; node.parent = parentID; node.disabled = keytipProps.disabled; } }; /** * Removes a node from the KeytipTree * * @param sequence - full string of the node to remove */ KeytipTree.prototype.removeNode = function (keytipProps, uniqueID) { var fullSequence = this._getFullSequence(keytipProps); var nodeID = (0, KeytipUtils_1.sequencesToID)(fullSequence); // Take off the last sequence to calculate the parent ID fullSequence.pop(); // Parent ID is the root if there aren't any more sequences this._removeChildFromParents(this._getParentID(fullSequence), nodeID); if (this.nodeMap[uniqueID]) { // Remove the node from the nodeMap delete this.nodeMap[uniqueID]; } }; /** * Searches the currentKeytip's children to exactly match a sequence. Will not match disabled nodes but * will match persisted nodes * * @param keySequence - string to match * @param currentKeytip - The keytip whose children will try to match * @returns The node that exactly matched the keySequence, or undefined if none matched */ KeytipTree.prototype.getExactMatchedNode = function (keySequence, currentKeytip) { var _this = this; var possibleNodes = this.getNodes(currentKeytip.children); var matchingNodes = possibleNodes.filter(function (node) { return _this._getNodeSequence(node) === keySequence && !node.disabled; }); // If we found no nodes, we are done if (matchingNodes.length === 0) { return undefined; } // Since the matching nodes all have the same key sequence, // Grab the first one build the correct selector var node = matchingNodes[0]; // If we have exactly one node, return it if (matchingNodes.length === 1) { return node; } // Get the potential target elements based on a selector from the sequences var keySequences = node.keySequences; var overflowSetSequence = node.overflowSetSequence; var fullKeySequences = overflowSetSequence ? (0, KeytipUtils_1.mergeOverflows)(keySequences, overflowSetSequence) : keySequences; var keytipTargetSelector = (0, KeytipUtils_1.ktpTargetFromSequences)(fullKeySequences); var potentialTargetElements = document.querySelectorAll(keytipTargetSelector); // If we have less nodes than the potential target elements, // we won't be able to map element to node, return the first node. // Note, the number of nodes could be more than the number of potential // target elements, if an OverflowSet is involved if (matchingNodes.length < potentialTargetElements.length) { return node; } // Attempt to find the node that corresponds to the first visible/non-hidden element var matchingIndex = Array.from(potentialTargetElements).findIndex(function (element) { return (0, Utilities_1.isElementVisibleAndNotHidden)(element); }); if (matchingIndex !== -1) { return matchingNodes[matchingIndex]; } // We did not find any visible elements associated with any of the nodes. // We may be dealing with a keytip that is a submenu in an OverflowSet. // Worst case, fall back to the first node returned var overflowNode = matchingNodes.find(function (matchingNode) { return matchingNode.hasOverflowSubMenu; }); return overflowNode || node; }; /** * Searches the currentKeytip's children to find nodes that start with the given sequence. Will not match * disabled nodes but will match persisted nodes * * @param keySequence - string to partially match * @param currentKeytip - The keytip whose children will try to partially match * @returns List of tree nodes that partially match the given sequence */ KeytipTree.prototype.getPartiallyMatchedNodes = function (keySequence, currentKeytip) { var _this = this; // Get children that are persisted var possibleNodes = this.getNodes(currentKeytip.children); return possibleNodes.filter(function (node) { return _this._getNodeSequence(node).indexOf(keySequence) === 0 && !node.disabled; }); }; /** * Get the non-persisted children of the give node * If no node is given, will use the 'currentKeytip' * * @param node - Node to get the children for * @returns List of node IDs that are the children of the node */ KeytipTree.prototype.getChildren = function (node) { var _this = this; if (!node) { node = this.currentKeytip; if (!node) { return []; } } var children = node.children; return Object.keys(this.nodeMap).reduce(function (nodes, key) { if (children.indexOf(_this.nodeMap[key].id) >= 0 && !_this.nodeMap[key].persisted) { nodes.push(_this.nodeMap[key].id); } return nodes; }, []); }; /** * Gets all nodes from their IDs * * @param ids - List of keytip IDs * @returns Array of nodes that match the given IDs, can be empty */ KeytipTree.prototype.getNodes = function (ids) { var _this = this; return Object.keys(this.nodeMap).reduce(function (nodes, key) { if (ids.indexOf(_this.nodeMap[key].id) >= 0) { nodes.push(_this.nodeMap[key]); } return nodes; }, []); }; /** * Gets a single node from its ID * * @param id - ID of the node to get * @returns Node with the given ID, if found */ KeytipTree.prototype.getNode = function (id) { var nodeMapValues = (0, Utilities_1.values)(this.nodeMap); return (0, Utilities_1.find)(nodeMapValues, function (node) { return node.id === id; }); }; /** * Tests if the currentKeytip in this.keytipTree is the parent of 'keytipProps' * * @param keytipProps - Keytip to test the parent for * @returns T/F if the currentKeytip is this keytipProps' parent */ KeytipTree.prototype.isCurrentKeytipParent = function (keytipProps) { if (this.currentKeytip) { var fullSequence = tslib_1.__spreadArray([], keytipProps.keySequences, true); if (keytipProps.overflowSetSequence) { fullSequence = (0, KeytipUtils_1.mergeOverflows)(fullSequence, keytipProps.overflowSetSequence); } // Take off the last sequence to calculate the parent ID fullSequence.pop(); // Parent ID is the root if there aren't any more sequences var parentID = fullSequence.length === 0 ? this.root.id : (0, KeytipUtils_1.sequencesToID)(fullSequence); var matchesCurrWithoutOverflow = false; if (this.currentKeytip.overflowSetSequence) { var currKeytipIdWithoutOverflow = (0, KeytipUtils_1.sequencesToID)(this.currentKeytip.keySequences); matchesCurrWithoutOverflow = currKeytipIdWithoutOverflow === parentID; } return matchesCurrWithoutOverflow || this.currentKeytip.id === parentID; } return false; }; KeytipTree.prototype._getParentID = function (fullSequence) { return fullSequence.length === 0 ? this.root.id : (0, KeytipUtils_1.sequencesToID)(fullSequence); }; KeytipTree.prototype._getFullSequence = function (keytipProps) { var fullSequence = tslib_1.__spreadArray([], keytipProps.keySequences, true); if (keytipProps.overflowSetSequence) { fullSequence = (0, KeytipUtils_1.mergeOverflows)(fullSequence, keytipProps.overflowSetSequence); } return fullSequence; }; KeytipTree.prototype._getNodeSequence = function (node) { var fullSequence = tslib_1.__spreadArray([], node.keySequences, true); if (node.overflowSetSequence) { fullSequence = (0, KeytipUtils_1.mergeOverflows)(fullSequence, node.overflowSetSequence); } return fullSequence[fullSequence.length - 1]; }; KeytipTree.prototype._createNode = function (id, parentId, children, keytipProps, persisted) { var _this = this; var keySequences = keytipProps.keySequences, hasDynamicChildren = keytipProps.hasDynamicChildren, overflowSetSequence = keytipProps.overflowSetSequence, hasMenu = keytipProps.hasMenu, onExecute = keytipProps.onExecute, onReturn = keytipProps.onReturn, disabled = keytipProps.disabled, hasOverflowSubMenu = keytipProps.hasOverflowSubMenu; var node = { id: id, keySequences: keySequences, overflowSetSequence: overflowSetSequence, parent: parentId, children: children, onExecute: onExecute, onReturn: onReturn, hasDynamicChildren: hasDynamicChildren, hasMenu: hasMenu, disabled: disabled, persisted: persisted, hasOverflowSubMenu: hasOverflowSubMenu, }; node.children = Object.keys(this.nodeMap).reduce(function (array, nodeMapKey) { if (_this.nodeMap[nodeMapKey].parent === id) { array.push(_this.nodeMap[nodeMapKey].id); } return array; }, []); return node; }; KeytipTree.prototype._removeChildFromParents = function (parentID, childID) { var parents = this.getNodes([parentID]); parents.forEach(function (parent) { var childIndex = parent.children.indexOf(childID); if (childIndex >= 0) { parent.children.splice(childIndex, 1); } }); }; return KeytipTree; }()); exports.KeytipTree = KeytipTree; //# sourceMappingURL=KeytipTree.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/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__(/*! ./KeytipLayer */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipLayer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipLayer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/KeytipLayer.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LabelBase = 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_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_2.classNamesFunction)({ // Label is used a lot by other components. // It's likely to see expected cases which pass different className to the Label. // Therefore setting a larger cache size. cacheSize: 100, }); var LabelBase = /** @class */ (function (_super) { tslib_1.__extends(LabelBase, _super); function LabelBase() { return _super !== null && _super.apply(this, arguments) || this; } LabelBase.prototype.render = function () { var _a = this.props, _b = _a.as, RootType = _b === void 0 ? 'label' : _b, children = _a.children, className = _a.className, disabled = _a.disabled, styles = _a.styles, required = _a.required, theme = _a.theme; var classNames = getClassNames(styles, { className: className, disabled: disabled, required: required, theme: theme, }); return (React.createElement(RootType, tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties), { className: classNames.root }), children)); }; return LabelBase; }(React.Component)); exports.LabelBase = LabelBase; //# sourceMappingURL=Label.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Label = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Label_base_1 = __webpack_require__(/*! ./Label.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.base.js"); var Label_styles_1 = __webpack_require__(/*! ./Label.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.styles.js"); exports.Label = (0, Utilities_1.styled)(Label_base_1.LabelBase, Label_styles_1.getStyles, undefined, { scope: 'Label', }); //# sourceMappingURL=Label.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.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 getStyles = function (props) { var _a; var theme = props.theme, className = props.className, disabled = props.disabled, required = props.required; var semanticColors = theme.semanticColors; // Tokens var labelFontWeight = Styling_1.FontWeights.semibold; var labelColor = semanticColors.bodyText; var labelDisabledColor = semanticColors.disabledBodyText; var labelRequiredStarColor = semanticColors.errorText; return { root: [ 'ms-Label', theme.fonts.medium, { fontWeight: labelFontWeight, color: labelColor, boxSizing: 'border-box', boxShadow: 'none', margin: 0, display: 'block', padding: '5px 0', wordWrap: 'break-word', overflowWrap: 'break-word', }, disabled && { color: labelDisabledColor, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }, required && { selectors: { '::after': { content: "' *'", color: labelRequiredStarColor, paddingRight: 12, }, }, }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Label.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Label.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Label/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Label/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__(/*! ./Label.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Label.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Label */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LayerBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore "react-portal-compat-context" uses v9 configs via path aliases var react_portal_compat_context_1 = __webpack_require__(/*! @fluentui/react-portal-compat-context */ "./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var ReactDOM = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); var Fabric_1 = __webpack_require__(/*! ../../Fabric */ "./node_modules/@fluentui/react/lib-commonjs/Fabric.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Layer_notification_1 = __webpack_require__(/*! ./Layer.notification */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.notification.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 getFocusVisibility = function (providerRef) { if (providerRef === null || providerRef === void 0 ? void 0 : providerRef.current) { return providerRef.current.classList.contains(Utilities_1.IsFocusVisibleClassName); } return false; }; exports.LayerBase = React.forwardRef(function (props, ref) { var registerPortalEl = (0, react_portal_compat_context_1.usePortalCompat)(); var rootRef = React.useRef(null); var mergedRef = (0, react_hooks_1.useMergedRefs)(rootRef, ref); var layerRef = React.useRef(); var fabricElementRef = React.useRef(null); var focusContext = React.useContext(Utilities_1.FocusRectsContext); // Tracks if the layer mount events need to be raised. // Required to allow the DOM to render after the layer element is added. var _a = React.useState(false), needRaiseLayerMount = _a[0], setNeedRaiseLayerMount = _a[1]; // Sets the focus visible className when the FocusRectsProvider for the layer is rendered // This allows the current focus visibility style to be carried over to the layer content var focusRectsRef = React.useCallback(function (el) { var isFocusVisible = getFocusVisibility(focusContext === null || focusContext === void 0 ? void 0 : focusContext.providerRef); if (el && isFocusVisible) { el.classList.add(Utilities_1.IsFocusVisibleClassName); } }, [focusContext]); var children = props.children, className = props.className, eventBubblingEnabled = props.eventBubblingEnabled, fabricProps = props.fabricProps, hostId = props.hostId, insertFirst = props.insertFirst, _b = props.onLayerDidMount, onLayerDidMount = _b === void 0 ? function () { return undefined; } : _b, // eslint-disable-next-line deprecation/deprecation _c = props.onLayerMounted, // eslint-disable-next-line deprecation/deprecation onLayerMounted = _c === void 0 ? function () { return undefined; } : _c, onLayerWillUnmount = props.onLayerWillUnmount, styles = props.styles, theme = props.theme; var fabricRef = (0, react_hooks_1.useMergedRefs)(fabricElementRef, fabricProps === null || fabricProps === void 0 ? void 0 : fabricProps.ref, focusRectsRef); var classNames = getClassNames(styles, { theme: theme, className: className, isNotHost: !hostId, }); // Returns the user provided hostId props element, the default target selector, // or undefined if document doesn't exist. var getHost = function (doc) { var _a, _b; if (hostId) { var layerHost = (0, Layer_notification_1.getLayerHost)(hostId); if (layerHost) { return (_a = layerHost.rootRef.current) !== null && _a !== void 0 ? _a : null; } return (_b = doc.getElementById(hostId)) !== null && _b !== void 0 ? _b : null; } else { var defaultHostSelector = (0, Layer_notification_1.getDefaultTarget)(); // Find the host. var host = defaultHostSelector ? doc.querySelector(defaultHostSelector) : null; // If no host is available, create a container for injecting layers in. // Having a container scopes layout computation. if (!host) { host = (0, Layer_notification_1.createDefaultLayerHost)(doc); } return host; } }; // Removes the current layer element's parentNode and runs onLayerWillUnmount prop if provided. var removeLayerElement = function () { onLayerWillUnmount === null || onLayerWillUnmount === void 0 ? void 0 : onLayerWillUnmount(); var elem = layerRef.current; // Clear ref before removing from the DOM layerRef.current = undefined; if (elem && elem.parentNode) { elem.parentNode.removeChild(elem); } }; // If a doc or host exists, it will remove and update layer parentNodes. var createLayerElement = function () { var _a; var doc = (0, Utilities_1.getDocument)(rootRef.current); if (!doc) { return; } var host = getHost(doc); if (!host) { return; } // Remove and re-create any previous existing layer elements. removeLayerElement(); var el = ((_a = host.ownerDocument) !== null && _a !== void 0 ? _a : doc).createElement('div'); el.className = classNames.root; (0, Utilities_1.setPortalAttribute)(el); (0, Utilities_1.setVirtualParent)(el, rootRef.current); insertFirst ? host.insertBefore(el, host.firstChild) : host.appendChild(el); layerRef.current = el; setNeedRaiseLayerMount(true); }; (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { createLayerElement(); // Check if the user provided a hostId prop and register the layer with the ID. if (hostId) { (0, Layer_notification_1.registerLayer)(hostId, createLayerElement); } var unregisterPortalEl = layerRef.current ? registerPortalEl(layerRef.current) : undefined; return function () { if (unregisterPortalEl) { unregisterPortalEl(); } removeLayerElement(); if (hostId) { (0, Layer_notification_1.unregisterLayer)(hostId, createLayerElement); } }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should run if the hostId updates. }, [hostId]); React.useEffect(function () { if (layerRef.current && needRaiseLayerMount) { onLayerMounted === null || onLayerMounted === void 0 ? void 0 : onLayerMounted(); onLayerDidMount === null || onLayerDidMount === void 0 ? void 0 : onLayerDidMount(); setNeedRaiseLayerMount(false); } }, [needRaiseLayerMount, onLayerMounted, onLayerDidMount]); useDebugWarnings(props); return (React.createElement("span", { className: "ms-layer", ref: mergedRef }, layerRef.current && ReactDOM.createPortal(React.createElement(Utilities_1.FocusRectsProvider, { layerRoot: true, providerRef: fabricRef }, React.createElement(Fabric_1.Fabric, tslib_1.__assign({}, (!eventBubblingEnabled && getFilteredEvents()), fabricProps, { className: (0, Utilities_1.css)(classNames.content, fabricProps === null || fabricProps === void 0 ? void 0 : fabricProps.className), ref: fabricRef }), children)), layerRef.current))); }); exports.LayerBase.displayName = 'LayerBase'; var filteredEventProps; var onFilterEvent = function (ev) { // We should just be able to check ev.bubble here and only stop events that are bubbling up. However, even though // mouseenter and mouseleave do NOT bubble up, they are showing up as bubbling. Therefore we stop events based on // event name rather than ev.bubble. if (ev.eventPhase === Event.BUBBLING_PHASE && ev.type !== 'mouseenter' && ev.type !== 'mouseleave' && ev.type !== 'touchstart' && ev.type !== 'touchend') { ev.stopPropagation(); } }; function getFilteredEvents() { if (!filteredEventProps) { filteredEventProps = {}; [ 'onClick', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseUp', 'onTouchMove', 'onTouchStart', 'onTouchCancel', 'onTouchEnd', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onFocus', 'onBlur', 'onChange', 'onInput', 'onInvalid', 'onSubmit', ].forEach(function (name) { return (filteredEventProps[name] = onFilterEvent); }); } return filteredEventProps; } function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'Layer', props: props, deprecations: { onLayerMounted: 'onLayerDidMount' }, }); } } //# sourceMappingURL=Layer.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Layer = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Layer_base_1 = __webpack_require__(/*! ./Layer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.base.js"); var Layer_styles_1 = __webpack_require__(/*! ./Layer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.styles.js"); exports.Layer = (0, Utilities_1.styled)(Layer_base_1.LayerBase, Layer_styles_1.getStyles, undefined, { scope: 'Layer', fields: ['hostId', 'theme', 'styles'], }); //# sourceMappingURL=Layer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.notification.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.notification.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDefaultTarget = exports.setDefaultTarget = exports.notifyHostChanged = exports.cleanupDefaultLayerHost = exports.createDefaultLayerHost = exports.unregisterLayerHost = exports.registerLayerHost = exports.getLayerHost = exports.getLayerCount = exports.unregisterLayer = exports.registerLayer = void 0; var _layersByHostId = {}; var _layerHostsById = {}; var defaultHostId = 'fluent-default-layer-host'; var _defaultHostSelector = "#".concat(defaultHostId); /** * Register a layer for a given host id * @param hostId - Id of the layer host * @param layer - Layer instance */ function registerLayer(hostId, callback) { if (!_layersByHostId[hostId]) { _layersByHostId[hostId] = []; } _layersByHostId[hostId].push(callback); var layerHosts = _layerHostsById[hostId]; if (layerHosts) { for (var _i = 0, layerHosts_1 = layerHosts; _i < layerHosts_1.length; _i++) { var layerHost = layerHosts_1[_i]; layerHost.notifyLayersChanged(); } } } exports.registerLayer = registerLayer; /** * Unregister a layer for a given host id * @param hostId - Id of the layer host * @param layer - Layer instance */ function unregisterLayer(hostId, callback) { var layers = _layersByHostId[hostId]; if (layers) { var idx = layers.indexOf(callback); if (idx >= 0) { layers.splice(idx, 1); if (layers.length === 0) { delete _layersByHostId[hostId]; } } } var layerHosts = _layerHostsById[hostId]; if (layerHosts) { for (var _i = 0, layerHosts_2 = layerHosts; _i < layerHosts_2.length; _i++) { var layerHost = layerHosts_2[_i]; layerHost.notifyLayersChanged(); } } } exports.unregisterLayer = unregisterLayer; /** * Gets the number of layers currently registered with a host id. * @param hostId - Id of the layer host. * @returns The number of layers currently registered with the host. */ function getLayerCount(hostId) { var layers = _layerHostsById[hostId]; return layers ? layers.length : 0; } exports.getLayerCount = getLayerCount; /** * Gets the Layer Host instance associated with a hostId, if applicable. * @param hostId - Id of the layer host * @returns A component ref for the associated layer host. */ function getLayerHost(hostId) { var layerHosts = _layerHostsById[hostId]; return (layerHosts && layerHosts[0]) || undefined; } exports.getLayerHost = getLayerHost; /** * Registers a Layer Host with an associated hostId. * @param hostId - Id of the layer host * @param layerHost - layer host instance */ function registerLayerHost(hostId, layerHost) { var layerHosts = _layerHostsById[hostId] || (_layerHostsById[hostId] = []); // Insert this at the start of an array to avoid race conditions between mount and unmount. // If a LayerHost is re-mounted, and mount of the new instance may occur before the unmount of the old one. // Putting the new instance at the start of this array ensures that calls to `getLayerHost` will immediately // get the new one even if the old one is around briefly. layerHosts.unshift(layerHost); } exports.registerLayerHost = registerLayerHost; /** * Unregisters a Layer Host from the associated hostId. * @param hostId - Id of the layer host * @param layerHost - layer host instance */ function unregisterLayerHost(hostId, layerHost) { var layerHosts = _layerHostsById[hostId]; if (layerHosts) { var idx = layerHosts.indexOf(layerHost); if (idx >= 0) { layerHosts.splice(idx, 1); } if (layerHosts.length === 0) { delete _layerHostsById[hostId]; } } } exports.unregisterLayerHost = unregisterLayerHost; /** * When no default layer host is provided, this function is executed to create the default host. */ function createDefaultLayerHost(doc) { var host = doc.createElement('div'); host.setAttribute('id', defaultHostId); host.style.cssText = 'position:fixed;z-index:1000000'; doc === null || doc === void 0 ? void 0 : doc.body.appendChild(host); return host; } exports.createDefaultLayerHost = createDefaultLayerHost; /** * This function can be optionally called to clean up the default layer host as needed. */ function cleanupDefaultLayerHost(doc) { var host = doc.querySelector("#".concat(defaultHostId)); if (host) { doc.removeChild(host); } } exports.cleanupDefaultLayerHost = cleanupDefaultLayerHost; /** * Used for notifying applicable Layers that a host is available/unavailable and to re-evaluate Layers that * care about the specific host. */ function notifyHostChanged(id) { if (_layersByHostId[id]) { _layersByHostId[id].forEach(function (callback) { return callback(); }); } } exports.notifyHostChanged = notifyHostChanged; /** * Sets the default target selector to use when determining the host in which * Layered content will be injected into. If not provided, an element will be * created at the end of the document body. * * Passing in a falsy value will clear the default target and reset back to * using a created element at the end of document body. */ function setDefaultTarget(selector) { _defaultHostSelector = selector; } exports.setDefaultTarget = setDefaultTarget; /** * Get the default target selector when determining a host */ function getDefaultTarget() { return _defaultHostSelector; } exports.getDefaultTarget = getDefaultTarget; //# sourceMappingURL=Layer.notification.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.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-Layer', rootNoHost: 'ms-Layer--fixed', content: 'ms-Layer-content', }; var getStyles = function (props) { var className = props.className, isNotHost = props.isNotHost, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, isNotHost && [ classNames.rootNoHost, { position: 'fixed', zIndex: Styling_1.ZIndexes.Layer, top: 0, left: 0, bottom: 0, right: 0, visibility: 'hidden', }, ], className, ], content: [ classNames.content, { visibility: 'visible', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Layer.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Layer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LayerHost = 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__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Layer_notification_1 = __webpack_require__(/*! ./Layer.notification */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.notification.js"); var LayerHost = function (props) { var className = props.className; var layerHostId = React.useState(function () { return (0, Utilities_1.getId)(); })[0]; var _a = props.id, hostId = _a === void 0 ? layerHostId : _a; var layerHostRef = React.useRef({ hostId: hostId, rootRef: React.useRef(null), notifyLayersChanged: function () { // Nothing, since the default implementation of Layer Host does not need to react to layer changes. }, }); React.useImperativeHandle(props.componentRef, function () { return layerHostRef.current; }); React.useEffect(function () { (0, Layer_notification_1.registerLayerHost)(hostId, layerHostRef.current); (0, Layer_notification_1.notifyHostChanged)(hostId); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on first render }, []); (0, react_hooks_1.useUnmount)(function () { (0, Layer_notification_1.unregisterLayerHost)(hostId, layerHostRef.current); (0, Layer_notification_1.notifyHostChanged)(hostId); }); return React.createElement("div", tslib_1.__assign({}, props, { className: (0, Utilities_1.css)('ms-LayerHost', className), ref: layerHostRef.current.rootRef })); }; exports.LayerHost = LayerHost; //# sourceMappingURL=LayerHost.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=LayerHost.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Layer/index.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getLayerStyles = exports.unregisterLayerHost = exports.unregisterLayer = exports.setLayerHostSelector = exports.registerLayerHost = exports.registerLayer = exports.notifyHostChanged = exports.getLayerHost = exports.getLayerCount = exports.getLayerHostSelector = exports.cleanupDefaultLayerHost = exports.createDefaultLayerHost = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Layer */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Layer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Layer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./LayerHost */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./LayerHost.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/LayerHost.types.js"), exports); var Layer_notification_1 = __webpack_require__(/*! ./Layer.notification */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.notification.js"); Object.defineProperty(exports, "createDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_notification_1.createDefaultLayerHost; } })); Object.defineProperty(exports, "cleanupDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_notification_1.cleanupDefaultLayerHost; } })); Object.defineProperty(exports, "getLayerHostSelector", ({ enumerable: true, get: function () { return Layer_notification_1.getDefaultTarget; } })); Object.defineProperty(exports, "getLayerCount", ({ enumerable: true, get: function () { return Layer_notification_1.getLayerCount; } })); Object.defineProperty(exports, "getLayerHost", ({ enumerable: true, get: function () { return Layer_notification_1.getLayerHost; } })); Object.defineProperty(exports, "notifyHostChanged", ({ enumerable: true, get: function () { return Layer_notification_1.notifyHostChanged; } })); Object.defineProperty(exports, "registerLayer", ({ enumerable: true, get: function () { return Layer_notification_1.registerLayer; } })); Object.defineProperty(exports, "registerLayerHost", ({ enumerable: true, get: function () { return Layer_notification_1.registerLayerHost; } })); Object.defineProperty(exports, "setLayerHostSelector", ({ enumerable: true, get: function () { return Layer_notification_1.setDefaultTarget; } })); Object.defineProperty(exports, "unregisterLayer", ({ enumerable: true, get: function () { return Layer_notification_1.unregisterLayer; } })); Object.defineProperty(exports, "unregisterLayerHost", ({ enumerable: true, get: function () { return Layer_notification_1.unregisterLayerHost; } })); var Layer_styles_1 = __webpack_require__(/*! ./Layer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/Layer.styles.js"); Object.defineProperty(exports, "getLayerStyles", ({ enumerable: true, get: function () { return Layer_styles_1.getStyles; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.base.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.base.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LinkBase = 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 useLink_1 = __webpack_require__(/*! ./useLink */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/useLink.js"); exports.LinkBase = React.forwardRef(function (props, ref) { var _a = (0, useLink_1.useLink)(props, ref), slots = _a.slots, slotProps = _a.slotProps; return React.createElement(slots.root, tslib_1.__assign({}, slotProps.root)); }); exports.LinkBase.displayName = 'LinkBase'; //# sourceMappingURL=Link.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Link = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Link_base_1 = __webpack_require__(/*! ./Link.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.base.js"); var Link_styles_1 = __webpack_require__(/*! ./Link.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.styles.js"); exports.Link = (0, utilities_1.styled)(Link_base_1.LinkBase, Link_styles_1.getStyles, undefined, { scope: 'Link', }); //# sourceMappingURL=Link.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.styles.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.styles.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.GlobalClassNames = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); exports.GlobalClassNames = { root: 'ms-Link', }; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g; var className = props.className, isButton = props.isButton, isDisabled = props.isDisabled, isUnderlined = props.isUnderlined, theme = props.theme; var semanticColors = theme.semanticColors; // Tokens var linkColor = semanticColors.link; var linkInteractedColor = semanticColors.linkHovered; var linkDisabledColor = semanticColors.disabledText; var focusBorderColor = semanticColors.focusBorder; var classNames = (0, style_utilities_1.getGlobalClassNames)(exports.GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, { color: linkColor, outline: 'none', fontSize: 'inherit', fontWeight: 'inherit', textDecoration: isUnderlined ? 'underline' : 'none', selectors: (_a = { '.ms-Fabric--isFocusVisible &:focus': { // Can't use getFocusStyle because it doesn't support wrapping links // https://github.com/microsoft/fluentui/issues/4883#issuecomment-406743543 // Using box-shadow and outline allows the focus rect to wrap links that span multiple lines // and helps the focus rect avoid getting clipped. boxShadow: "0 0 0 1px ".concat(focusBorderColor, " inset"), outline: "1px auto ".concat(focusBorderColor), selectors: (_b = {}, _b[style_utilities_1.HighContrastSelector] = { outline: '1px solid WindowText', }, _b), } }, _a[style_utilities_1.HighContrastSelector] = { // For IE high contrast mode borderBottom: 'none', }, _a), }, isButton && { background: 'none', backgroundColor: 'transparent', border: 'none', cursor: 'pointer', display: 'inline', margin: 0, overflow: 'inherit', padding: 0, textAlign: 'left', textOverflow: 'inherit', userSelect: 'text', borderBottom: '1px solid transparent', selectors: (_c = {}, _c[style_utilities_1.HighContrastSelector] = { color: 'LinkText', forcedColorAdjust: 'none', }, _c), }, !isButton && { selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = { // This is mainly for MessageBar, which sets MsHighContrastAdjust: none by default MsHighContrastAdjust: 'auto', forcedColorAdjust: 'auto', }, _d), }, isDisabled && [ 'is-disabled', { color: linkDisabledColor, cursor: 'default', }, { selectors: (_e = { '&:link, &:visited': { pointerEvents: 'none', } }, _e[style_utilities_1.HighContrastSelector] = { // We need to specify the color in High Contrast because of the case of Links rendering as buttons. color: 'GrayText', }, _e), }, ], !isDisabled && { selectors: { '&:active, &:hover, &:active:hover': { color: linkInteractedColor, textDecoration: 'underline', selectors: (_f = {}, _f[style_utilities_1.HighContrastSelector] = { color: 'LinkText', }, _f), }, '&:focus': { color: linkColor, selectors: (_g = {}, _g[style_utilities_1.HighContrastSelector] = { color: 'LinkText', }, _g), }, }, }, classNames.root, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Link.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.types.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.types.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Link.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/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__(/*! ./Link */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Link.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Link.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Link/useLink.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Link/useLink.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useLink = 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 getClassNames = (0, utilities_1.classNamesFunction)(); /** * The useLink hook processes the Link component props and returns * state, slots and slotProps for consumption by the component. */ var useLink = function (props, forwardedRef) { var as = props.as, className = props.className, disabled = props.disabled, href = props.href, onClick = props.onClick, styles = props.styles, theme = props.theme, underline = props.underline; var rootRef = React.useRef(null); var mergedRootRefs = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); useComponentRef(props, rootRef); (0, utilities_1.useFocusRects)(rootRef); var classNames = getClassNames(styles, { className: className, isButton: !href, isDisabled: disabled, isUnderlined: underline, theme: theme, }); var _onClick = function (ev) { if (disabled) { ev.preventDefault(); } else if (onClick) { onClick(ev); } }; var rootType = as ? as : href ? 'a' : 'button'; var state = {}; var slots = { root: rootType }; var slotProps = { root: tslib_1.__assign(tslib_1.__assign({}, adjustPropsForRootType(rootType, props)), { 'aria-disabled': disabled, className: classNames.root, onClick: _onClick, ref: mergedRootRefs }), }; return { state: state, slots: slots, slotProps: slotProps }; }; exports.useLink = useLink; var useComponentRef = function (props, link) { React.useImperativeHandle(props.componentRef, function () { return ({ focus: function () { if (link.current) { link.current.focus(); } }, }); }, [link]); }; var adjustPropsForRootType = function (RootType, props) { // Deconstruct the props so we remove props like `as`, `theme` and `styles` // as those will always be removed. We also take some props that are optional // based on the RootType. var as = props.as, disabled = props.disabled, target = props.target, href = props.href, theme = props.theme, getStyles = props.getStyles, styles = props.styles, componentRef = props.componentRef, underline = props.underline, restProps = tslib_1.__rest(props, ["as", "disabled", "target", "href", "theme", "getStyles", "styles", "componentRef", "underline"]); // RootType will be a string if we're dealing with an html component if (typeof RootType === 'string') { // Remove the disabled prop for anchor elements if (RootType === 'a') { return tslib_1.__assign({ target: target, href: disabled ? undefined : href }, restProps); } // Add the type='button' prop for button elements if (RootType === 'button') { return tslib_1.__assign({ type: 'button', disabled: disabled }, restProps); } // Remove the target and href props for all other non anchor elements return tslib_1.__assign(tslib_1.__assign({}, restProps), { disabled: disabled }); } // Retain all props except 'as' for ReactComponents return tslib_1.__assign({ target: target, href: href, disabled: disabled }, restProps); }; //# sourceMappingURL=useLink.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/List/List.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/List/List.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.List = 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 List_types_1 = __webpack_require__(/*! ./List.types */ "./node_modules/@fluentui/react/lib-commonjs/components/List/List.types.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var scroll_1 = __webpack_require__(/*! ./utils/scroll */ "./node_modules/@fluentui/react/lib-commonjs/components/List/utils/scroll.js"); var RESIZE_DELAY = 16; var MIN_SCROLL_UPDATE_DELAY = 100; var MAX_SCROLL_UPDATE_DELAY = 500; var IDLE_DEBOUNCE_DELAY = 200; // The amount of time to wait before declaring that the list isn't scrolling var DONE_SCROLLING_WAIT = 500; var DEFAULT_ITEMS_PER_PAGE = 10; var DEFAULT_PAGE_HEIGHT = 30; var DEFAULT_RENDERED_WINDOWS_BEHIND = 2; var DEFAULT_RENDERED_WINDOWS_AHEAD = 2; var PAGE_KEY_PREFIX = 'page-'; var SPACER_KEY_PREFIX = 'spacer-'; var EMPTY_RECT = { top: -1, bottom: -1, left: -1, right: -1, width: 0, height: 0, }; // Naming expensive measures so that they're named in profiles. var _measurePageRect = function (element) { return element.getBoundingClientRect(); }; var _measureSurfaceRect = _measurePageRect; var _measureScrollRect = _measurePageRect; /** * The List renders virtualized pages of items. Each page's item count is determined by the getItemCountForPage callback * if provided by the caller, or 10 as default. Each page's height is determined by the getPageHeight callback if * provided by the caller, or by cached measurements if available, or by a running average, or a default fallback. * * The algorithm for rendering pages works like this: * * 1. Predict visible pages based on "current measure data" (page heights, surface position, visible window) * 2. If changes are necessary, apply changes (add/remove pages) * 3. For pages that are added, measure the page heights if we need to using getBoundingClientRect * 4. If measurements don't match predictions, update measure data and goto step 1 asynchronously * * Measuring too frequently can pull performance down significantly. To compensate, we cache measured values so that * we can avoid re-measuring during operations that should not alter heights, like scrolling. * * To optimize glass rendering performance, onShouldVirtualize can be set. When onShouldVirtualize return false, * List will run in fast mode (not virtualized) to render all items without any measurements to improve page load time. * And we start doing measurements and rendering in virtualized mode when items grows larger than this threshold. * * However, certain operations can make measure data stale. For example, resizing the list, or passing in new props, * or forcing an update change cause pages to shrink/grow. When these operations occur, we increment a measureVersion * number, which we associate with cached measurements and use to determine if a remeasure should occur. */ var List = /** @class */ (function (_super) { tslib_1.__extends(List, _super); function List(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._surface = React.createRef(); _this._pageRefs = {}; _this._getDerivedStateFromProps = function (nextProps, previousState) { if (nextProps.items !== _this.props.items || nextProps.renderCount !== _this.props.renderCount || nextProps.startIndex !== _this.props.startIndex || nextProps.version !== _this.props.version || (!previousState.hasMounted && _this.props.renderEarly && (0, Utilities_1.canUseDOM)())) { // We have received new items so we want to make sure that initially we only render a single window to // fill the currently visible rect, and then later render additional windows. _this._resetRequiredWindows(); _this._requiredRect = null; _this._measureVersion++; _this._invalidatePageCache(); return _this._updatePages(nextProps, previousState); } return previousState; }; _this._onRenderRoot = function (props) { var rootRef = props.rootRef, surfaceElement = props.surfaceElement, divProps = props.divProps; return (React.createElement("div", tslib_1.__assign({ ref: rootRef }, divProps), surfaceElement)); }; _this._onRenderSurface = function (props) { var surfaceRef = props.surfaceRef, pageElements = props.pageElements, divProps = props.divProps; return (React.createElement("div", tslib_1.__assign({ ref: surfaceRef }, divProps), pageElements)); }; _this._onRenderPage = function (pageProps, defaultRender) { var _a; var _b = _this.props, onRenderCell = _b.onRenderCell, onRenderCellConditional = _b.onRenderCellConditional, role = _b.role; var _c = pageProps.page, _d = _c.items, items = _d === void 0 ? [] : _d, startIndex = _c.startIndex, divProps = tslib_1.__rest(pageProps, ["page"]); // only assign list item role if no role is assigned var cellRole = role === undefined ? 'listitem' : 'presentation'; var cells = []; for (var i = 0; i < items.length; i++) { var index = startIndex + i; var item = items[i]; var itemKey = _this.props.getKey ? _this.props.getKey(item, index) : item && item.key; if (itemKey === null || itemKey === undefined) { itemKey = index; } var renderCell = onRenderCellConditional !== null && onRenderCellConditional !== void 0 ? onRenderCellConditional : onRenderCell; var cell = (_a = renderCell === null || renderCell === void 0 ? void 0 : renderCell(item, index, !_this.props.ignoreScrollingState ? _this.state.isScrolling : undefined)) !== null && _a !== void 0 ? _a : null; if (!onRenderCellConditional || cell) { cells.push(React.createElement("div", { role: cellRole, className: 'ms-List-cell', key: itemKey, "data-list-index": index, "data-automationid": "ListCell" }, cell)); } } return React.createElement("div", tslib_1.__assign({}, divProps), cells); }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { pages: [], isScrolling: false, getDerivedStateFromProps: _this._getDerivedStateFromProps, hasMounted: false, }; _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._estimatedPageHeight = 0; _this._totalEstimates = 0; _this._requiredWindowsAhead = 0; _this._requiredWindowsBehind = 0; // Track the measure version for everything. _this._measureVersion = 0; // Ensure that scrolls are lazy updated. _this._onAsyncScroll = _this._async.debounce(_this._onAsyncScroll, MIN_SCROLL_UPDATE_DELAY, { leading: false, maxWait: MAX_SCROLL_UPDATE_DELAY, }); _this._onAsyncIdle = _this._async.debounce(_this._onAsyncIdle, IDLE_DEBOUNCE_DELAY, { leading: false, }); _this._onAsyncResize = _this._async.debounce(_this._onAsyncResize, RESIZE_DELAY, { leading: false, }); _this._onScrollingDone = _this._async.debounce(_this._onScrollingDone, DONE_SCROLLING_WAIT, { leading: false, }); _this._cachedPageHeights = {}; _this._estimatedPageHeight = 0; _this._focusedIndex = -1; _this._pageCache = {}; return _this; } List.getDerivedStateFromProps = function (nextProps, previousState) { return previousState.getDerivedStateFromProps(nextProps, previousState); }; Object.defineProperty(List.prototype, "pageRefs", { get: function () { return this._pageRefs; }, enumerable: false, configurable: true }); /** * Scroll to the given index. By default will bring the page the specified item is on into the view. If a callback * to measure the height of an individual item is specified, will only scroll to bring the specific item into view. * * Note: with items of variable height and no passed in `getPageHeight` method, the list might jump after scrolling * when windows before/ahead are being rendered, and the estimated height is replaced using actual elements. * * @param index - Index of item to scroll to * @param measureItem - Optional callback to measure the height of an individual item * @param scrollToMode - Optional defines where in the window the item should be positioned to when scrolling */ List.prototype.scrollToIndex = function (index, measureItem, scrollToMode) { if (scrollToMode === void 0) { scrollToMode = List_types_1.ScrollToMode.auto; } var startIndex = this.props.startIndex; var renderCount = this._getRenderCount(); var endIndex = startIndex + renderCount; var allowedRect = this._allowedRect; var scrollTop = 0; var itemsPerPage = 1; for (var itemIndex = startIndex; itemIndex < endIndex; itemIndex += itemsPerPage) { var pageSpecification = this._getPageSpecification(this.props, itemIndex, allowedRect); var pageHeight = pageSpecification.height; itemsPerPage = pageSpecification.itemCount; var requestedIndexIsInPage = itemIndex <= index && itemIndex + itemsPerPage > index; if (requestedIndexIsInPage) { // We have found the page. If the user provided a way to measure an individual item, we will try to scroll in // just the given item, otherwise we'll only bring the page into view if (measureItem && this._scrollElement) { var scrollRect = _measureScrollRect(this._scrollElement); var scrollPosition = (0, scroll_1.getScrollYPosition)(this._scrollElement); var scrollWindow = { top: scrollPosition, bottom: scrollPosition + scrollRect.height, }; // Adjust for actual item position within page var itemPositionWithinPage = index - itemIndex; for (var itemIndexInPage = 0; itemIndexInPage < itemPositionWithinPage; ++itemIndexInPage) { scrollTop += measureItem(itemIndex + itemIndexInPage); } var scrollBottom = scrollTop + measureItem(index); // If scrollToMode is set to something other than auto, we always want to // scroll the item into a specific position on the page. switch (scrollToMode) { case List_types_1.ScrollToMode.top: (0, scroll_1.setScrollYPosition)(this._scrollElement, scrollTop); return; case List_types_1.ScrollToMode.bottom: (0, scroll_1.setScrollYPosition)(this._scrollElement, scrollBottom - scrollRect.height); return; case List_types_1.ScrollToMode.center: (0, scroll_1.setScrollYPosition)(this._scrollElement, (scrollTop + scrollBottom - scrollRect.height) / 2); return; case List_types_1.ScrollToMode.auto: default: break; } var itemIsFullyVisible = scrollTop >= scrollWindow.top && scrollBottom <= scrollWindow.bottom; if (itemIsFullyVisible) { // Item is already visible, do nothing. return; } var itemIsPartiallyAbove = scrollTop < scrollWindow.top; var itemIsPartiallyBelow = scrollBottom > scrollWindow.bottom; if (itemIsPartiallyAbove) { // We will just scroll to 'scrollTop' // .------. - scrollTop // |Item | // | .----|-. - scrollWindow.top // '------' | // | | // '------' } else if (itemIsPartiallyBelow) { // Adjust scrollTop position to just bring in the element // .------. - scrollTop // | | // | .------. // '-|----' | - scrollWindow.bottom // | Item | // '------' - scrollBottom scrollTop = scrollBottom - scrollRect.height; } } if (this._scrollElement) { (0, scroll_1.setScrollYPosition)(this._scrollElement, scrollTop); } return; } scrollTop += pageHeight; } }; List.prototype.getStartItemIndexInView = function (measureItem) { var pages = this.state.pages || []; for (var _i = 0, pages_1 = pages; _i < pages_1.length; _i++) { var page = pages_1[_i]; var isPageVisible = !page.isSpacer && (this._scrollTop || 0) >= page.top && (this._scrollTop || 0) <= page.top + page.height; if (isPageVisible) { if (!measureItem) { var rowHeight = Math.floor(page.height / page.itemCount); return page.startIndex + Math.floor((this._scrollTop - page.top) / rowHeight); } else { var totalRowHeight = 0; for (var itemIndex = page.startIndex; itemIndex < page.startIndex + page.itemCount; itemIndex++) { var rowHeight = measureItem(itemIndex); if (page.top + totalRowHeight <= this._scrollTop && this._scrollTop < page.top + totalRowHeight + rowHeight) { return itemIndex; } else { totalRowHeight += rowHeight; } } } } } return 0; }; List.prototype.componentDidMount = function () { this._scrollElement = (0, Utilities_1.findScrollableParent)(this._root.current); this._scrollTop = 0; this.setState(tslib_1.__assign(tslib_1.__assign({}, this._updatePages(this.props, this.state)), { hasMounted: true })); this._measureVersion++; this._events.on(window, 'resize', this._onAsyncResize); if (this._root.current) { this._events.on(this._root.current, 'focus', this._onFocus, true); } if (this._scrollElement) { this._events.on(this._scrollElement, 'scroll', this._onScroll); this._events.on(this._scrollElement, 'scroll', this._onAsyncScroll); } }; List.prototype.componentDidUpdate = function (previousProps, previousState) { // Multiple updates may have been queued, so the callback will reflect all of them. // Re-fetch the current props and states to avoid using a stale props or state captured in the closure. var finalProps = this.props; var finalState = this.state; if (this.state.pagesVersion !== previousState.pagesVersion) { // If we weren't provided with the page height, measure the pages if (!finalProps.getPageHeight) { // If measured version is invalid since we've updated the DOM var heightsChanged = this._updatePageMeasurements(finalState.pages); // On first render, we should re-measure so that we don't get a visual glitch. if (heightsChanged) { this._materializedRect = null; if (!this._hasCompletedFirstRender) { this._hasCompletedFirstRender = true; this.setState(this._updatePages(finalProps, finalState)); } else { this._onAsyncScroll(); } } else { // Enqueue an idle bump. this._onAsyncIdle(); } } else { // Enqueue an idle bump this._onAsyncIdle(); } // Notify the caller that rendering the new pages has completed if (finalProps.onPagesUpdated) { finalProps.onPagesUpdated(finalState.pages); } } }; List.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); delete this._scrollElement; }; List.prototype.shouldComponentUpdate = function (newProps, newState) { var oldPages = this.state.pages; var newPages = newState.pages; var shouldComponentUpdate = false; // Update if the page stops scrolling if (!newState.isScrolling && this.state.isScrolling) { return true; } if (newProps.version !== this.props.version) { return true; } if (newProps.className !== this.props.className) { return true; } if (newProps.items === this.props.items && oldPages.length === newPages.length) { for (var i = 0; i < oldPages.length; i++) { var oldPage = oldPages[i]; var newPage = newPages[i]; if (oldPage.key !== newPage.key || oldPage.itemCount !== newPage.itemCount) { shouldComponentUpdate = true; break; } } } else { shouldComponentUpdate = true; } return shouldComponentUpdate; }; List.prototype.forceUpdate = function () { this._invalidatePageCache(); // Ensure that when the list is force updated we update the pages first before render. this._updateRenderRects(this.props, this.state, true); this.setState(this._updatePages(this.props, this.state)); this._measureVersion++; _super.prototype.forceUpdate.call(this); }; /** * Get the current height the list and it's pages. */ List.prototype.getTotalListHeight = function () { return this._surfaceRect.height; }; List.prototype.render = function () { var _a = this.props, className = _a.className, _b = _a.role, role = _b === void 0 ? 'list' : _b, onRenderSurface = _a.onRenderSurface, onRenderRoot = _a.onRenderRoot; var _c = this.state.pages, pages = _c === void 0 ? [] : _c; var pageElements = []; var divProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties); for (var _i = 0, pages_2 = pages; _i < pages_2.length; _i++) { var page = pages_2[_i]; pageElements.push(this._renderPage(page)); } var finalOnRenderSurface = onRenderSurface ? (0, Utilities_2.composeRenderFunction)(onRenderSurface, this._onRenderSurface) : this._onRenderSurface; var finalOnRenderRoot = onRenderRoot ? (0, Utilities_2.composeRenderFunction)(onRenderRoot, this._onRenderRoot) : this._onRenderRoot; return finalOnRenderRoot({ rootRef: this._root, pages: pages, surfaceElement: finalOnRenderSurface({ surfaceRef: this._surface, pages: pages, pageElements: pageElements, divProps: { role: 'presentation', className: 'ms-List-surface', }, }), divProps: tslib_1.__assign(tslib_1.__assign({}, divProps), { className: (0, Utilities_1.css)('ms-List', className), role: pageElements.length > 0 ? role : undefined, 'aria-label': pageElements.length > 0 ? divProps['aria-label'] : undefined }), }); }; List.prototype._shouldVirtualize = function (props) { if (props === void 0) { props = this.props; } var onShouldVirtualize = props.onShouldVirtualize; return !onShouldVirtualize || onShouldVirtualize(props); }; /** * when props.items change or forceUpdate called, throw away cached pages */ List.prototype._invalidatePageCache = function () { this._pageCache = {}; }; List.prototype._renderPage = function (page) { var _this = this; var usePageCache = this.props.usePageCache; var cachedPage; // if usePageCache is set and cached page element can be found, just return cached page if (usePageCache) { cachedPage = this._pageCache[page.key]; if (cachedPage && cachedPage.pageElement) { return cachedPage.pageElement; } } var pageStyle = this._getPageStyle(page); var _a = this.props.onRenderPage, onRenderPage = _a === void 0 ? this._onRenderPage : _a; var pageElement = onRenderPage({ page: page, className: 'ms-List-page', key: page.key, ref: function (newRef) { _this._pageRefs[page.key] = newRef; }, style: pageStyle, role: 'presentation', }, this._onRenderPage); // cache the first page for now since it is re-rendered a lot times unnecessarily. // todo: a more aggresive caching mechanism is to cache pages constaining the items not changed. // now we re-render pages too frequently, for example, props.items increased from 30 to 60, although the // first 30 items did not change, we still re-rendered all of them in this props.items change. if (usePageCache && page.startIndex === 0) { this._pageCache[page.key] = { page: page, pageElement: pageElement, }; } return pageElement; }; /** Generate the style object for the page. */ List.prototype._getPageStyle = function (page) { var getPageStyle = this.props.getPageStyle; return tslib_1.__assign(tslib_1.__assign({}, (getPageStyle ? getPageStyle(page) : {})), (!page.items ? { height: page.height, } : {})); }; /** Track the last item index focused so that we ensure we keep it rendered. */ List.prototype._onFocus = function (ev) { var target = ev.target; while (target !== this._surface.current) { var indexString = target.getAttribute('data-list-index'); if (indexString) { this._focusedIndex = Number(indexString); break; } target = (0, Utilities_1.getParent)(target); } }; /** * Called synchronously to reset the required render range to 0 on scrolling. After async scroll has executed, * we will call onAsyncIdle which will reset it back to it's correct value. */ List.prototype._onScroll = function () { if (!this.state.isScrolling && !this.props.ignoreScrollingState) { this.setState({ isScrolling: true }); } this._resetRequiredWindows(); this._onScrollingDone(); }; List.prototype._resetRequiredWindows = function () { this._requiredWindowsAhead = 0; this._requiredWindowsBehind = 0; }; /** * Debounced method to asynchronously update the visible region on a scroll event. */ List.prototype._onAsyncScroll = function () { this._updateRenderRects(this.props, this.state); // Only update pages when the visible rect falls outside of the materialized rect. if (!this._materializedRect || !_isContainedWithin(this._requiredRect, this._materializedRect)) { this.setState(this._updatePages(this.props, this.state)); } else { // console.log('requiredRect contained in materialized', this._requiredRect, this._materializedRect); } }; /** * This is an async debounced method that will try and increment the windows we render. If we can increment * either, we increase the amount we render and re-evaluate. */ List.prototype._onAsyncIdle = function () { var _a = this.props, renderedWindowsAhead = _a.renderedWindowsAhead, renderedWindowsBehind = _a.renderedWindowsBehind; var _b = this, requiredWindowsAhead = _b._requiredWindowsAhead, requiredWindowsBehind = _b._requiredWindowsBehind; var windowsAhead = Math.min(renderedWindowsAhead, requiredWindowsAhead + 1); var windowsBehind = Math.min(renderedWindowsBehind, requiredWindowsBehind + 1); if (windowsAhead !== requiredWindowsAhead || windowsBehind !== requiredWindowsBehind) { // console.log('idling', windowsBehind, windowsAhead); this._requiredWindowsAhead = windowsAhead; this._requiredWindowsBehind = windowsBehind; this._updateRenderRects(this.props, this.state); this.setState(this._updatePages(this.props, this.state)); } if (renderedWindowsAhead > windowsAhead || renderedWindowsBehind > windowsBehind) { // Async increment on next tick. this._onAsyncIdle(); } }; /** * Function to call when the list is done scrolling. * This function is debounced. */ List.prototype._onScrollingDone = function () { if (!this.props.ignoreScrollingState) { this.setState({ isScrolling: false }); } }; List.prototype._onAsyncResize = function () { this.forceUpdate(); }; List.prototype._updatePages = function (nextProps, previousState) { // console.log('updating pages'); if (!this._requiredRect) { this._updateRenderRects(nextProps, previousState); } var newListState = this._buildPages(nextProps, previousState); var oldListPages = previousState.pages; this._notifyPageChanges(oldListPages, newListState.pages, this.props); return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, previousState), newListState), { pagesVersion: {} }); }; /** * Notify consumers that the rendered pages have changed * @param oldPages - The old pages * @param newPages - The new pages * @param props - The props to use */ List.prototype._notifyPageChanges = function (oldPages, newPages, props) { var onPageAdded = props.onPageAdded, onPageRemoved = props.onPageRemoved; if (onPageAdded || onPageRemoved) { var renderedIndexes = {}; for (var _i = 0, oldPages_1 = oldPages; _i < oldPages_1.length; _i++) { var page = oldPages_1[_i]; if (page.items) { renderedIndexes[page.startIndex] = page; } } for (var _a = 0, newPages_1 = newPages; _a < newPages_1.length; _a++) { var page = newPages_1[_a]; if (page.items) { if (!renderedIndexes[page.startIndex]) { this._onPageAdded(page); } else { delete renderedIndexes[page.startIndex]; } } } for (var index in renderedIndexes) { if (renderedIndexes.hasOwnProperty(index)) { this._onPageRemoved(renderedIndexes[index]); } } } }; List.prototype._updatePageMeasurements = function (pages) { var heightChanged = false; // when not in virtualize mode, we render all the items without page measurement if (!this._shouldVirtualize()) { return heightChanged; } for (var i = 0; i < pages.length; i++) { var page = pages[i]; if (page.items) { heightChanged = this._measurePage(page) || heightChanged; } } return heightChanged; }; /** * Given a page, measure its dimensions, update cache. * @returns True if the height has changed. */ List.prototype._measurePage = function (page) { var hasChangedHeight = false; var pageElement = this._pageRefs[page.key]; var cachedHeight = this._cachedPageHeights[page.startIndex]; // console.log(' * measure attempt', page.startIndex, cachedHeight); if (pageElement && this._shouldVirtualize() && (!cachedHeight || cachedHeight.measureVersion !== this._measureVersion)) { var newClientRect = { width: pageElement.clientWidth, height: pageElement.clientHeight, }; if (newClientRect.height || newClientRect.width) { hasChangedHeight = page.height !== newClientRect.height; // console.warn(' *** expensive page measure', page.startIndex, page.height, newClientRect.height); page.height = newClientRect.height; this._cachedPageHeights[page.startIndex] = { height: newClientRect.height, measureVersion: this._measureVersion, }; this._estimatedPageHeight = Math.round((this._estimatedPageHeight * this._totalEstimates + newClientRect.height) / (this._totalEstimates + 1)); this._totalEstimates++; } } return hasChangedHeight; }; /** Called when a page has been added to the DOM. */ List.prototype._onPageAdded = function (page) { var onPageAdded = this.props.onPageAdded; // console.log('page added', page.startIndex, this.state.pages.map(page => page.key).join(', ')); if (onPageAdded) { onPageAdded(page); } }; /** Called when a page has been removed from the DOM. */ List.prototype._onPageRemoved = function (page) { var onPageRemoved = this.props.onPageRemoved; // console.log(' --- page removed', page.startIndex, this.state.pages.map(page => page.key).join(', ')); if (onPageRemoved) { onPageRemoved(page); } }; /** Build up the pages that should be rendered. */ List.prototype._buildPages = function (props, state) { var renderCount = props.renderCount; var items = props.items, startIndex = props.startIndex, getPageHeight = props.getPageHeight; renderCount = this._getRenderCount(props); var materializedRect = tslib_1.__assign({}, EMPTY_RECT); var pages = []; var itemsPerPage = 1; var pageTop = 0; var currentSpacer = null; var focusedIndex = this._focusedIndex; var endIndex = startIndex + renderCount; var shouldVirtualize = this._shouldVirtualize(props); // First render is very important to track; when we render cells, we have no idea of estimated page height. // So we should default to rendering only the first page so that we can get information. // However if the user provides a measure function, let's just assume they know the right heights. var isFirstRender = this._estimatedPageHeight === 0 && !getPageHeight; var allowedRect = this._allowedRect; var _loop_1 = function (itemIndex) { var pageSpecification = this_1._getPageSpecification(props, itemIndex, allowedRect); var pageHeight = pageSpecification.height; var pageData = pageSpecification.data; var key = pageSpecification.key; itemsPerPage = pageSpecification.itemCount; var pageBottom = pageTop + pageHeight - 1; var isPageRendered = (0, Utilities_1.findIndex)(state.pages, function (page) { return !!page.items && page.startIndex === itemIndex; }) > -1; var isPageInAllowedRange = !allowedRect || (pageBottom >= allowedRect.top && pageTop <= allowedRect.bottom); var isPageInRequiredRange = !this_1._requiredRect || (pageBottom >= this_1._requiredRect.top && pageTop <= this_1._requiredRect.bottom); var isPageVisible = (!isFirstRender && (isPageInRequiredRange || (isPageInAllowedRange && isPageRendered))) || !shouldVirtualize; var isPageFocused = focusedIndex >= itemIndex && focusedIndex < itemIndex + itemsPerPage; var isFirstPage = itemIndex === startIndex; // console.log('building page', itemIndex, 'pageTop: ' + pageTop, 'inAllowed: ' + // isPageInAllowedRange, 'inRequired: ' + isPageInRequiredRange); // Only render whats visible, focused, or first page, // or when running in fast rendering mode (not in virtualized mode), we render all current items in pages if (isPageVisible || isPageFocused || isFirstPage) { if (currentSpacer) { pages.push(currentSpacer); currentSpacer = null; } var itemsInPage = Math.min(itemsPerPage, endIndex - itemIndex); var newPage = this_1._createPage(key, items.slice(itemIndex, itemIndex + itemsInPage), itemIndex, undefined, undefined, pageData); newPage.top = pageTop; newPage.height = pageHeight; if (this_1._visibleRect && this_1._visibleRect.bottom) { newPage.isVisible = pageBottom >= this_1._visibleRect.top && pageTop <= this_1._visibleRect.bottom; } pages.push(newPage); if (isPageInRequiredRange && this_1._allowedRect) { _mergeRect(materializedRect, { top: pageTop, bottom: pageBottom, height: pageHeight, left: allowedRect.left, right: allowedRect.right, width: allowedRect.width, }); } } else { if (!currentSpacer) { currentSpacer = this_1._createPage(SPACER_KEY_PREFIX + itemIndex, undefined, itemIndex, 0, undefined, pageData, true /*isSpacer*/); } currentSpacer.height = (currentSpacer.height || 0) + (pageBottom - pageTop) + 1; currentSpacer.itemCount += itemsPerPage; } pageTop += pageBottom - pageTop + 1; // in virtualized mode, we render need to render first page then break and measure, // otherwise, we render all items without measurement to make rendering fast if (isFirstRender && shouldVirtualize) { return "break"; } }; var this_1 = this; for (var itemIndex = startIndex; itemIndex < endIndex; itemIndex += itemsPerPage) { var state_1 = _loop_1(itemIndex); if (state_1 === "break") break; } if (currentSpacer) { currentSpacer.key = SPACER_KEY_PREFIX + 'end'; pages.push(currentSpacer); } this._materializedRect = materializedRect; // console.log('materialized: ', materializedRect); return tslib_1.__assign(tslib_1.__assign({}, state), { pages: pages, measureVersion: this._measureVersion }); }; List.prototype._getPageSpecification = function (props, itemIndex, visibleRect) { var getPageSpecification = props.getPageSpecification; if (getPageSpecification) { var pageData = getPageSpecification(itemIndex, visibleRect); var _a = pageData.itemCount, itemCount = _a === void 0 ? this._getItemCountForPage(itemIndex, visibleRect) : _a; var _b = pageData.height, height = _b === void 0 ? this._getPageHeight(itemIndex, visibleRect, itemCount) : _b; return { itemCount: itemCount, height: height, data: pageData.data, key: pageData.key, }; } else { var itemCount = this._getItemCountForPage(itemIndex, visibleRect); return { itemCount: itemCount, height: this._getPageHeight(itemIndex, visibleRect, itemCount), }; } }; /** * Get the pixel height of a give page. Will use the props getPageHeight first, and if not provided, fallback to * cached height, or estimated page height, or default page height. */ List.prototype._getPageHeight = function (itemIndex, visibleRect, itemsPerPage) { if (this.props.getPageHeight) { return this.props.getPageHeight(itemIndex, visibleRect, itemsPerPage); } else { var cachedHeight = this._cachedPageHeights[itemIndex]; return cachedHeight ? cachedHeight.height : this._estimatedPageHeight || DEFAULT_PAGE_HEIGHT; } }; List.prototype._getItemCountForPage = function (itemIndex, visibileRect) { var itemsPerPage = this.props.getItemCountForPage ? this.props.getItemCountForPage(itemIndex, visibileRect) : DEFAULT_ITEMS_PER_PAGE; return itemsPerPage ? itemsPerPage : DEFAULT_ITEMS_PER_PAGE; }; List.prototype._createPage = function (pageKey, items, startIndex, count, style, data, isSpacer) { if (startIndex === void 0) { startIndex = -1; } if (count === void 0) { count = items ? items.length : 0; } if (style === void 0) { style = {}; } pageKey = pageKey || PAGE_KEY_PREFIX + startIndex; var cachedPage = this._pageCache[pageKey]; if (cachedPage && cachedPage.page) { return cachedPage.page; } return { key: pageKey, startIndex: startIndex, itemCount: count, items: items, style: style, top: 0, height: 0, data: data, isSpacer: isSpacer || false, }; }; List.prototype._getRenderCount = function (props) { var _a = props || this.props, items = _a.items, startIndex = _a.startIndex, renderCount = _a.renderCount; return renderCount === undefined ? (items ? items.length - startIndex : 0) : renderCount; }; /** Calculate the visible rect within the list where top: 0 and left: 0 is the top/left of the list. */ List.prototype._updateRenderRects = function (props, state, forceUpdate) { var renderedWindowsAhead = props.renderedWindowsAhead, renderedWindowsBehind = props.renderedWindowsBehind; var pages = state.pages; // when not in virtualize mode, we render all items without measurement to optimize page rendering perf if (!this._shouldVirtualize(props)) { return; } var surfaceRect = this._surfaceRect || tslib_1.__assign({}, EMPTY_RECT); var scrollHeight = (0, scroll_1.getScrollHeight)(this._scrollElement); var scrollTop = (0, scroll_1.getScrollYPosition)(this._scrollElement); // WARNING: EXPENSIVE CALL! We need to know the surface top relative to the window. // This needs to be called to recalculate when new pages should be loaded. // We check to see how far we've scrolled and if it's further than a third of a page we run it again. if (this._surface.current && (forceUpdate || !pages || !this._surfaceRect || !scrollHeight || scrollHeight !== this._scrollHeight || Math.abs(this._scrollTop - scrollTop) > this._estimatedPageHeight / 3)) { surfaceRect = this._surfaceRect = _measureSurfaceRect(this._surface.current); this._scrollTop = scrollTop; } // If the scroll height has changed, something in the container likely resized and // we should redo the page heights incase their content resized. if (forceUpdate || !scrollHeight || scrollHeight !== this._scrollHeight) { this._measureVersion++; } this._scrollHeight = scrollHeight || 0; // If the surface is above the container top or below the container bottom, or if this is not the first // render return empty rect. // The first time the list gets rendered we need to calculate the rectangle. The width of the list is // used to calculate the width of the list items. var visibleTop = Math.max(0, -surfaceRect.top); var win = (0, Utilities_1.getWindow)(this._root.current); var visibleRect = { top: visibleTop, left: surfaceRect.left, bottom: visibleTop + win.innerHeight, right: surfaceRect.right, width: surfaceRect.width, height: win.innerHeight, }; // The required/allowed rects are adjusted versions of the visible rect. this._requiredRect = _expandRect(visibleRect, this._requiredWindowsBehind, this._requiredWindowsAhead); this._allowedRect = _expandRect(visibleRect, renderedWindowsBehind, renderedWindowsAhead); // store the visible rect for later use. this._visibleRect = visibleRect; }; List.defaultProps = { startIndex: 0, onRenderCell: function (item, index, containsFocus) { return React.createElement(React.Fragment, null, (item && item.name) || ''); }, onRenderCellConditional: undefined, renderedWindowsAhead: DEFAULT_RENDERED_WINDOWS_AHEAD, renderedWindowsBehind: DEFAULT_RENDERED_WINDOWS_BEHIND, }; return List; }(React.Component)); exports.List = List; function _expandRect(rect, pagesBefore, pagesAfter) { var top = rect.top - pagesBefore * rect.height; var height = rect.height + (pagesBefore + pagesAfter) * rect.height; return { top: top, bottom: top + height, height: height, left: rect.left, right: rect.right, width: rect.width, }; } function _isContainedWithin(innerRect, outerRect) { return (innerRect.top >= outerRect.top && innerRect.left >= outerRect.left && innerRect.bottom <= outerRect.bottom && innerRect.right <= outerRect.right); } function _mergeRect(targetRect, newRect) { targetRect.top = newRect.top < targetRect.top || targetRect.top === -1 ? newRect.top : targetRect.top; targetRect.left = newRect.left < targetRect.left || targetRect.left === -1 ? newRect.left : targetRect.left; targetRect.bottom = newRect.bottom > targetRect.bottom || targetRect.bottom === -1 ? newRect.bottom : targetRect.bottom; targetRect.right = newRect.right > targetRect.right || targetRect.right === -1 ? newRect.right : targetRect.right; targetRect.width = targetRect.right - targetRect.left + 1; targetRect.height = targetRect.bottom - targetRect.top + 1; return targetRect; } //# sourceMappingURL=List.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/List/List.types.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/List/List.types.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ScrollToMode = void 0; /** * {@docCategory List} */ exports.ScrollToMode = { /** * Does not make any consideration to where in the viewport the item should align to. */ auto: 0, /** * Attempts to scroll the list so the top of the desired item is aligned with the top of the viewport. */ top: 1, /** * Attempts to scroll the list so the bottom of the desired item is aligned with the bottom of the viewport. */ bottom: 2, /** * Attempts to scroll the list so the desired item is in the exact center of the viewport. */ center: 3, }; //# sourceMappingURL=List.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/List/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/List/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__(/*! ./List */ "./node_modules/@fluentui/react/lib-commonjs/components/List/List.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./List.types */ "./node_modules/@fluentui/react/lib-commonjs/components/List/List.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/List/utils/scroll.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/List/utils/scroll.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setScrollYPosition = exports.getScrollYPosition = exports.getScrollHeight = void 0; var getScrollHeight = function (el) { if (el === undefined) { return 0; } var scrollHeight = 0; if ('scrollHeight' in el) { scrollHeight = el.scrollHeight; } else if ('document' in el) { scrollHeight = el.document.documentElement.scrollHeight; } // No need to round as scrollHeight is already rounded for us. // See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight return scrollHeight; }; exports.getScrollHeight = getScrollHeight; var getScrollYPosition = function (el) { if (el === undefined) { return 0; } var scrollPos = 0; if ('scrollTop' in el) { scrollPos = el.scrollTop; } else if ('scrollY' in el) { scrollPos = el.scrollY; } // Round this value to an integer as it may be fractional. // See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop // See: https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY return Math.ceil(scrollPos); }; exports.getScrollYPosition = getScrollYPosition; var setScrollYPosition = function (el, pos) { if ('scrollTop' in el) { el.scrollTop = pos; } else if ('scrollY' in el) { el.scrollTo(el.scrollX, pos); } }; exports.setScrollYPosition = setScrollYPosition; //# sourceMappingURL=scroll.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.base.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.base.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MarqueeSelectionBase = 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)(); // We want to make the marquee selection start when the user drags a minimum distance. Otherwise we'd start // the drag even if they just click an item without moving. var MIN_DRAG_DISTANCE = 5; /** * MarqueeSelection component abstracts managing a draggable rectangle which sets items selected/not selected. * Elements which have data-selectable-index attributes are queried and measured once to determine if they * fall within the bounds of the rectangle. The measure is memoized during the drag as a performance optimization * so if the items change sizes while dragging, that could cause incorrect results. */ var MarqueeSelectionBase = /** @class */ (function (_super) { tslib_1.__extends(MarqueeSelectionBase, _super); function MarqueeSelectionBase(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._onMouseDown = function (ev) { var _a = _this.props, isEnabled = _a.isEnabled, onShouldStartSelection = _a.onShouldStartSelection; // Ensure the mousedown is within the boundaries of the target. If not, it may have been a click on a scrollbar. if (_this._isMouseEventOnScrollbar(ev)) { return; } if (_this._isInSelectionToggle(ev)) { return; } if (!_this._isTouch && isEnabled && !_this._isDragStartInSelection(ev) && (!onShouldStartSelection || onShouldStartSelection(ev))) { if (_this._scrollableSurface && ev.button === 0 && _this._root.current) { _this._selectedIndicies = {}; _this._preservedIndicies = undefined; _this._events.on(window, 'mousemove', _this._onAsyncMouseMove, true); _this._events.on(_this._scrollableParent, 'scroll', _this._onAsyncMouseMove); _this._events.on(window, 'click', _this._onMouseUp, true); _this._autoScroll = new Utilities_1.AutoScroll(_this._root.current); _this._scrollTop = _this._scrollableSurface.scrollTop; _this._scrollLeft = _this._scrollableSurface.scrollLeft; _this._rootRect = _this._root.current.getBoundingClientRect(); _this._onMouseMove(ev); } } }; _this._onTouchStart = function (ev) { _this._isTouch = true; _this._async.setTimeout(function () { _this._isTouch = false; }, 0); }; _this._onPointerDown = function (ev) { if (ev.pointerType === 'touch') { _this._isTouch = true; _this._async.setTimeout(function () { _this._isTouch = false; }, 0); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this.state = { dragRect: undefined, }; return _this; } MarqueeSelectionBase.prototype.componentDidMount = function () { this._scrollableParent = (0, Utilities_1.findScrollableParent)(this._root.current); this._scrollableSurface = this._scrollableParent === window ? document.body : this._scrollableParent; // When scroll events come from window, we need to read scrollTop values from the body. var hitTarget = this.props.isDraggingConstrainedToRoot ? this._root.current : this._scrollableSurface; this._events.on(hitTarget, 'mousedown', this._onMouseDown); this._events.on(hitTarget, 'touchstart', this._onTouchStart, true); this._events.on(hitTarget, 'pointerdown', this._onPointerDown, true); }; MarqueeSelectionBase.prototype.componentWillUnmount = function () { if (this._autoScroll) { this._autoScroll.dispose(); } delete this._scrollableParent; delete this._scrollableSurface; this._events.dispose(); this._async.dispose(); }; MarqueeSelectionBase.prototype.render = function () { var _a = this.props, rootProps = _a.rootProps, children = _a.children, theme = _a.theme, className = _a.className, styles = _a.styles; var dragRect = this.state.dragRect; var classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", tslib_1.__assign({}, rootProps, { className: classNames.root, ref: this._root }), children, dragRect && React.createElement("div", { className: classNames.dragMask }), dragRect && (React.createElement("div", { className: classNames.box, style: dragRect }, React.createElement("div", { className: classNames.boxFill }))))); }; /** Determine if the mouse event occured on a scrollbar of the target element. */ MarqueeSelectionBase.prototype._isMouseEventOnScrollbar = function (ev) { var targetElement = ev.target; var targetScrollbarWidth = targetElement.offsetWidth - targetElement.clientWidth; var targetScrollbarHeight = targetElement.offsetHeight - targetElement.clientHeight; if (targetScrollbarWidth || targetScrollbarHeight) { var targetRect = targetElement.getBoundingClientRect(); // Check vertical scroll if ((0, Utilities_1.getRTL)(this.props.theme)) { if (ev.clientX < targetRect.left + targetScrollbarWidth) { return true; } } else { if (ev.clientX > targetRect.left + targetElement.clientWidth) { return true; } } // Check horizontal scroll if (ev.clientY > targetRect.top + targetElement.clientHeight) { return true; } } return false; }; MarqueeSelectionBase.prototype._getRootRect = function () { return { left: this._rootRect.left + (this._scrollableSurface ? this._scrollLeft - this._scrollableSurface.scrollLeft : this._scrollLeft), top: this._rootRect.top + (this._scrollableSurface ? this._scrollTop - this._scrollableSurface.scrollTop : this._scrollTop), width: this._rootRect.width, height: this._rootRect.height, }; }; MarqueeSelectionBase.prototype._onAsyncMouseMove = function (ev) { var _this = this; this._async.requestAnimationFrame(function () { _this._onMouseMove(ev); }); ev.stopPropagation(); ev.preventDefault(); }; MarqueeSelectionBase.prototype._onMouseMove = function (ev) { if (!this._autoScroll) { return; } if (ev.clientX !== undefined) { this._lastMouseEvent = ev; } var rootRect = this._getRootRect(); var currentPoint = { left: ev.clientX - rootRect.left, top: ev.clientY - rootRect.top }; if (!this._dragOrigin) { this._dragOrigin = currentPoint; } if (ev.buttons !== undefined && ev.buttons === 0) { this._onMouseUp(ev); } else { if (this.state.dragRect || (0, Utilities_1.getDistanceBetweenPoints)(this._dragOrigin, currentPoint) > MIN_DRAG_DISTANCE) { if (!this.state.dragRect) { var selection = this.props.selection; if (!ev.shiftKey) { selection.setAllSelected(false); } this._preservedIndicies = selection && selection.getSelectedIndices && selection.getSelectedIndices(); } // We need to constrain the current point to the rootRect boundaries. var constrainedPoint = this.props.isDraggingConstrainedToRoot ? { left: Math.max(0, Math.min(rootRect.width, this._lastMouseEvent.clientX - rootRect.left)), top: Math.max(0, Math.min(rootRect.height, this._lastMouseEvent.clientY - rootRect.top)), } : { left: this._lastMouseEvent.clientX - rootRect.left, top: this._lastMouseEvent.clientY - rootRect.top, }; var dragRect = { left: Math.min(this._dragOrigin.left || 0, constrainedPoint.left), top: Math.min(this._dragOrigin.top || 0, constrainedPoint.top), width: Math.abs(constrainedPoint.left - (this._dragOrigin.left || 0)), height: Math.abs(constrainedPoint.top - (this._dragOrigin.top || 0)), }; this._evaluateSelection(dragRect, rootRect); this.setState({ dragRect: dragRect }); } } return false; }; MarqueeSelectionBase.prototype._onMouseUp = function (ev) { this._events.off(window); this._events.off(this._scrollableParent, 'scroll'); if (this._autoScroll) { this._autoScroll.dispose(); } this._autoScroll = this._dragOrigin = this._lastMouseEvent = undefined; this._selectedIndicies = this._itemRectCache = undefined; if (this.state.dragRect) { this.setState({ dragRect: undefined, }); ev.preventDefault(); ev.stopPropagation(); } }; MarqueeSelectionBase.prototype._isPointInRectangle = function (rectangle, point) { return (!!point.top && rectangle.top < point.top && rectangle.bottom > point.top && !!point.left && rectangle.left < point.left && rectangle.right > point.left); }; /** * We do not want to start the marquee if we're trying to marquee * from within an existing marquee selection. */ MarqueeSelectionBase.prototype._isDragStartInSelection = function (ev) { var selection = this.props.selection; if (!this._root.current || (selection && selection.getSelectedCount() === 0)) { return false; } var allElements = this._root.current.querySelectorAll('[data-selection-index]'); for (var i = 0; i < allElements.length; i++) { var element = allElements[i]; var index = Number(element.getAttribute('data-selection-index')); if (selection.isIndexSelected(index)) { var itemRect = element.getBoundingClientRect(); if (this._isPointInRectangle(itemRect, { left: ev.clientX, top: ev.clientY })) { return true; } } } return false; }; MarqueeSelectionBase.prototype._isInSelectionToggle = function (ev) { var element = ev.target; while (element && element !== this._root.current) { if (element.getAttribute('data-selection-toggle') === 'true') { return true; } element = element.parentElement; } return false; }; MarqueeSelectionBase.prototype._evaluateSelection = function (dragRect, rootRect) { // Break early if we don't need to evaluate. if (!dragRect || !this._root.current) { return; } var selection = this.props.selection; var allElements = this._root.current.querySelectorAll('[data-selection-index]'); if (!this._itemRectCache) { this._itemRectCache = {}; } for (var i = 0; i < allElements.length; i++) { var element = allElements[i]; var index = element.getAttribute('data-selection-index'); // Pull the memoized rectangle for the item, or the get the rect and memoize. var itemRect = this._itemRectCache[index]; if (!itemRect) { itemRect = element.getBoundingClientRect(); // Normalize the item rect to the dragRect coordinates. itemRect = { left: itemRect.left - rootRect.left, top: itemRect.top - rootRect.top, width: itemRect.width, height: itemRect.height, right: itemRect.left - rootRect.left + itemRect.width, bottom: itemRect.top - rootRect.top + itemRect.height, }; if (itemRect.width > 0 && itemRect.height > 0) { this._itemRectCache[index] = itemRect; } } if (itemRect.top < dragRect.top + dragRect.height && itemRect.bottom > dragRect.top && itemRect.left < dragRect.left + dragRect.width && itemRect.right > dragRect.left) { this._selectedIndicies[index] = true; } else { delete this._selectedIndicies[index]; } } // set previousSelectedIndices to be all of the selected indices from last time var previousSelectedIndices = this._allSelectedIndices || {}; this._allSelectedIndices = {}; // set all indices that are supposed to be selected in _allSelectedIndices for (var index in this._selectedIndicies) { if (this._selectedIndicies.hasOwnProperty(index)) { this._allSelectedIndices[index] = true; } } if (this._preservedIndicies) { for (var _i = 0, _a = this._preservedIndicies; _i < _a.length; _i++) { var index = _a[_i]; this._allSelectedIndices[index] = true; } } // check if needs to update selection, only when current _allSelectedIndices // is different than previousSelectedIndices var needToUpdate = false; for (var index in this._allSelectedIndices) { if (this._allSelectedIndices[index] !== previousSelectedIndices[index]) { needToUpdate = true; break; } } if (!needToUpdate) { for (var index in previousSelectedIndices) { if (this._allSelectedIndices[index] !== previousSelectedIndices[index]) { needToUpdate = true; break; } } } // only update selection when needed if (needToUpdate) { // Stop change events, clear selection to re-populate. selection.setChangeEvents(false); selection.setAllSelected(false); for (var _b = 0, _c = Object.keys(this._allSelectedIndices); _b < _c.length; _b++) { var index = _c[_b]; selection.setIndexSelected(Number(index), true, false); } selection.setChangeEvents(true); } }; MarqueeSelectionBase.defaultProps = { rootTagName: 'div', rootProps: {}, isEnabled: true, }; return MarqueeSelectionBase; }(React.Component)); exports.MarqueeSelectionBase = MarqueeSelectionBase; //# sourceMappingURL=MarqueeSelection.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MarqueeSelection = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var MarqueeSelection_base_1 = __webpack_require__(/*! ./MarqueeSelection.base */ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.base.js"); var MarqueeSelection_styles_1 = __webpack_require__(/*! ./MarqueeSelection.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.styles.js"); exports.MarqueeSelection = // TODO: MarqueeSelectionBase defaultProps are not lining up with IMarqueeSelectionProps, so we have to be explicit // with styled here. defaultProps.rootTagName doesn't appear to be used anywhere and defaultProps.rootProps is not // in IMarqueeSelectionProps. (0, Utilities_1.styled)(MarqueeSelection_base_1.MarqueeSelectionBase, MarqueeSelection_styles_1.getStyles, undefined, { scope: 'MarqueeSelection', }); //# sourceMappingURL=MarqueeSelection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.styles.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.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) { var _a, _b, _c; var theme = props.theme, className = props.className; var palette = theme.palette; return { root: [ className, { position: 'relative', cursor: 'default', }, ], dragMask: [ { position: 'absolute', background: 'rgba(255, 0, 0, 0)', left: 0, top: 0, right: 0, bottom: 0, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { background: 'none', backgroundColor: 'transparent', }, _a), }, ], box: [ { position: 'absolute', boxSizing: 'border-box', border: "1px solid ".concat(palette.themePrimary), pointerEvents: 'none', zIndex: 10, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', }, _b), }, ], boxFill: [ { position: 'absolute', boxSizing: 'border-box', backgroundColor: palette.themePrimary, opacity: 0.1, left: 0, top: 0, right: 0, bottom: 0, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { background: 'none', backgroundColor: 'transparent', }, _c), }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=MarqueeSelection.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=MarqueeSelection.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.base.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MessageBarBase = 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_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var MessageBar_types_1 = __webpack_require__(/*! ./MessageBar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.types.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var ICON_MAP = (_a = {}, _a[MessageBar_types_1.MessageBarType.info] = 'Info', _a[MessageBar_types_1.MessageBarType.warning] = 'Info', _a[MessageBar_types_1.MessageBarType.error] = 'ErrorBadge', _a[MessageBar_types_1.MessageBarType.blocked] = 'Blocked2', _a[MessageBar_types_1.MessageBarType.severeWarning] = 'Warning', _a[MessageBar_types_1.MessageBarType.success] = 'Completed', _a); var COMPONENT_NAME = 'MessageBar'; var getClassNames = (0, Utilities_1.classNamesFunction)(); var getAnnouncementPriority = function (messageBarType) { switch (messageBarType) { case MessageBar_types_1.MessageBarType.blocked: case MessageBar_types_1.MessageBarType.error: case MessageBar_types_1.MessageBarType.severeWarning: return 'assertive'; } return 'polite'; }; var getRole = function (messageBarType) { switch (messageBarType) { case MessageBar_types_1.MessageBarType.blocked: case MessageBar_types_1.MessageBarType.error: case MessageBar_types_1.MessageBarType.severeWarning: return 'alert'; } return 'status'; }; exports.MessageBarBase = React.forwardRef(function (props, ref) { var _a = (0, react_hooks_1.useBoolean)(false), expandSingleLine = _a[0], toggleExpandSingleLine = _a[1].toggle; var labelId = (0, react_hooks_1.useId)('MessageBar'); var actions = props.actions, className = props.className, children = props.children, // eslint-disable-next-line deprecation/deprecation overflowButtonAriaLabel = props.overflowButtonAriaLabel, dismissIconProps = props.dismissIconProps, styles = props.styles, theme = props.theme, _b = props.messageBarType, messageBarType = _b === void 0 ? MessageBar_types_1.MessageBarType.info : _b, _c = props.onDismiss, onDismiss = _c === void 0 ? undefined : _c, _d = props.isMultiline, isMultiline = _d === void 0 ? true : _d, truncated = props.truncated, dismissButtonAriaLabel = props.dismissButtonAriaLabel, messageBarIconProps = props.messageBarIconProps, role = props.role, _e = props.delayedRender, delayedRender = _e === void 0 ? true : _e, expandButtonProps = props.expandButtonProps; var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties, [ 'className', 'role', ]); var classNames = getClassNames(styles, { theme: theme, messageBarType: messageBarType || MessageBar_types_1.MessageBarType.info, onDismiss: onDismiss !== undefined, actions: actions !== undefined, truncated: truncated, isMultiline: isMultiline, expandSingleLine: expandSingleLine, className: className, }); var expandIconProps = { iconName: expandSingleLine ? 'DoubleChevronUp' : 'DoubleChevronDown' }; var regionProps = actions || onDismiss ? { 'aria-describedby': labelId, role: 'region' } : {}; var actionsDiv = actions ? React.createElement("div", { className: classNames.actions }, actions) : null; var dismissButton = onDismiss ? (React.createElement(Button_1.IconButton, { disabled: false, className: classNames.dismissal, onClick: onDismiss, iconProps: dismissIconProps ? dismissIconProps : { iconName: 'Clear' }, title: dismissButtonAriaLabel, ariaLabel: dismissButtonAriaLabel })) : null; return (React.createElement("div", tslib_1.__assign({ ref: ref, className: classNames.root }, regionProps), React.createElement("div", { className: classNames.content }, React.createElement("div", { className: classNames.iconContainer, "aria-hidden": true }, messageBarIconProps ? (React.createElement(Icon_1.Icon, tslib_1.__assign({}, messageBarIconProps, { className: (0, Utilities_1.css)(classNames.icon, messageBarIconProps.className) }))) : (React.createElement(Icon_1.Icon, { iconName: ICON_MAP[messageBarType], className: classNames.icon }))), React.createElement("div", { className: classNames.text, id: labelId, role: role || getRole(messageBarType), "aria-live": getAnnouncementPriority(messageBarType) }, React.createElement("span", tslib_1.__assign({ className: classNames.innerText }, nativeProps), delayedRender ? (React.createElement(Utilities_1.DelayedRender, null, React.createElement("span", null, children))) : ( // this span is probably not necessary, but preserving it for now in case anyone // has styling that expects it to be present React.createElement("span", null, children)))), /* singleline expand/collapse button */ !isMultiline && !actionsDiv && truncated && (React.createElement("div", { className: classNames.expandSingleLine }, React.createElement(Button_1.IconButton, tslib_1.__assign({ disabled: false, className: classNames.expand, onClick: toggleExpandSingleLine, iconProps: expandIconProps, ariaLabel: overflowButtonAriaLabel, "aria-expanded": expandSingleLine }, expandButtonProps)))), !isMultiline && actionsDiv, /* singleline dismiss */ !isMultiline && dismissButton && (React.createElement("div", { className: classNames.dismissSingleLine }, dismissButton)), isMultiline && dismissButton), isMultiline && actionsDiv)); }); exports.MessageBarBase.displayName = COMPONENT_NAME; //# sourceMappingURL=MessageBar.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MessageBar = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var MessageBar_base_1 = __webpack_require__(/*! ./MessageBar.base */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.base.js"); var MessageBar_styles_1 = __webpack_require__(/*! ./MessageBar.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.styles.js"); exports.MessageBar = (0, Utilities_1.styled)(MessageBar_base_1.MessageBarBase, MessageBar_styles_1.getStyles, undefined, { scope: 'MessageBar', }); //# sourceMappingURL=MessageBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.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 Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var MessageBar_types_1 = __webpack_require__(/*! ./MessageBar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.types.js"); var GlobalClassNames = { root: 'ms-MessageBar', error: 'ms-MessageBar--error', blocked: 'ms-MessageBar--blocked', severeWarning: 'ms-MessageBar--severeWarning', success: 'ms-MessageBar--success', warning: 'ms-MessageBar--warning', multiline: 'ms-MessageBar-multiline', singleline: 'ms-MessageBar-singleline', dismissalSingleLine: 'ms-MessageBar-dismissalSingleLine', expandingSingleLine: 'ms-MessageBar-expandingSingleLine', content: 'ms-MessageBar-content', iconContainer: 'ms-MessageBar-icon', text: 'ms-MessageBar-text', innerText: 'ms-MessageBar-innerText', dismissSingleLine: 'ms-MessageBar-dismissSingleLine', expandSingleLine: 'ms-MessageBar-expandSingleLine', dismissal: 'ms-MessageBar-dismissal', expand: 'ms-MessageBar-expand', actions: 'ms-MessageBar-actions', actionsSingleline: 'ms-MessageBar-actionsSingleLine', }; var backgroundColor = (_a = {}, _a[MessageBar_types_1.MessageBarType.error] = 'errorBackground', _a[MessageBar_types_1.MessageBarType.blocked] = 'errorBackground', _a[MessageBar_types_1.MessageBarType.success] = 'successBackground', _a[MessageBar_types_1.MessageBarType.warning] = 'warningBackground', _a[MessageBar_types_1.MessageBarType.severeWarning] = 'severeWarningBackground', _a[MessageBar_types_1.MessageBarType.info] = 'infoBackground', _a); var iconColor = (_b = {}, _b[MessageBar_types_1.MessageBarType.error] = 'errorIcon', _b[MessageBar_types_1.MessageBarType.blocked] = 'errorIcon', _b[MessageBar_types_1.MessageBarType.success] = 'successIcon', _b[MessageBar_types_1.MessageBarType.warning] = 'warningIcon', _b[MessageBar_types_1.MessageBarType.severeWarning] = 'severeWarningIcon', _b[MessageBar_types_1.MessageBarType.info] = 'infoIcon', _b); var highContrastBorderColor = (_c = {}, _c[MessageBar_types_1.MessageBarType.error] = '#ff0000', _c[MessageBar_types_1.MessageBarType.blocked] = '#ff0000', _c[MessageBar_types_1.MessageBarType.success] = '#bad80a', _c[MessageBar_types_1.MessageBarType.warning] = '#fff100', _c[MessageBar_types_1.MessageBarType.severeWarning] = '#ff0000', _c[MessageBar_types_1.MessageBarType.info] = 'WindowText', _c); var highContrastWhiteBorderColor = (_d = {}, _d[MessageBar_types_1.MessageBarType.error] = '#e81123', _d[MessageBar_types_1.MessageBarType.blocked] = '#e81123', _d[MessageBar_types_1.MessageBarType.success] = '#107c10', _d[MessageBar_types_1.MessageBarType.warning] = '#966400', _d[MessageBar_types_1.MessageBarType.severeWarning] = '#d83b01', _d[MessageBar_types_1.MessageBarType.info] = 'WindowText', _d); var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; var theme = props.theme, className = props.className, onDismiss = props.onDismiss, truncated = props.truncated, isMultiline = props.isMultiline, expandSingleLine = props.expandSingleLine, _m = props.messageBarType, messageBarType = _m === void 0 ? MessageBar_types_1.MessageBarType.info : _m; var semanticColors = theme.semanticColors, fonts = theme.fonts; var SmallScreenSelector = (0, Styling_1.getScreenSelector)(0, Styling_1.ScreenWidthMaxSmall); var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var dismissalAndExpandIconStyle = { fontSize: Styling_1.IconFontSizes.xSmall, height: 10, lineHeight: '10px', color: semanticColors.messageText, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), { color: 'WindowText' }), _a), }; var dismissalAndExpandStyle = [ (0, Styling_1.getFocusStyle)(theme, { inset: 1, highContrastStyle: { outlineOffset: '-6px', outline: '1px solid Highlight', }, borderColor: 'transparent', }), { flexShrink: 0, width: 32, height: 32, padding: '8px 12px', selectors: { '& .ms-Button-icon': dismissalAndExpandIconStyle, ':hover': { backgroundColor: 'transparent', }, ':active': { backgroundColor: 'transparent', }, }, }, ]; return { root: [ classNames.root, fonts.medium, messageBarType === MessageBar_types_1.MessageBarType.error && classNames.error, messageBarType === MessageBar_types_1.MessageBarType.blocked && classNames.blocked, messageBarType === MessageBar_types_1.MessageBarType.severeWarning && classNames.severeWarning, messageBarType === MessageBar_types_1.MessageBarType.success && classNames.success, messageBarType === MessageBar_types_1.MessageBarType.warning && classNames.warning, isMultiline ? classNames.multiline : classNames.singleline, !isMultiline && onDismiss && classNames.dismissalSingleLine, !isMultiline && truncated && classNames.expandingSingleLine, { background: semanticColors[backgroundColor[messageBarType]], boxSizing: 'border-box', color: semanticColors.messageText, minHeight: 32, width: '100%', display: 'flex', wordBreak: 'break-word', selectors: (_b = { '.ms-Link': { color: semanticColors.messageLink, selectors: { ':hover': { color: semanticColors.messageLinkHovered, }, }, } }, _b[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), { background: 'transparent', border: "1px solid ".concat(highContrastBorderColor[messageBarType]), color: 'WindowText' }), _b[Styling_1.HighContrastSelectorWhite] = { border: "1px solid ".concat(highContrastWhiteBorderColor[messageBarType]), }, _b), }, isMultiline && { flexDirection: 'column', }, className, ], content: [ classNames.content, (_c = { display: 'flex', width: '100%', lineHeight: 'normal' }, _c[SmallScreenSelector] = { display: 'grid', gridTemplateColumns: 'auto 1fr auto', gridTemplateRows: '1fr auto', gridTemplateAreas: "\n \"icon text close\"\n \"action action action\"\n ", }, _c), ], iconContainer: [ classNames.iconContainer, (_d = { fontSize: Styling_1.IconFontSizes.medium, minWidth: 16, minHeight: 16, display: 'flex', flexShrink: 0, margin: '8px 0 8px 12px' }, _d[SmallScreenSelector] = { gridArea: 'icon', }, _d), ], icon: { color: semanticColors[iconColor[messageBarType]], selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), { color: 'WindowText' }), _e), }, text: [ classNames.text, tslib_1.__assign(tslib_1.__assign({ minWidth: 0, display: 'flex', flexGrow: 1, margin: 8 }, fonts.small), (_f = {}, _f[SmallScreenSelector] = { gridArea: 'text', }, _f.selectors = (_g = {}, _g[Styling_1.HighContrastSelector] = tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), _g), _f)), !onDismiss && { marginRight: 12, }, ], innerText: [ classNames.innerText, { lineHeight: 16, selectors: { '& span a:last-child': { paddingLeft: 4, }, }, }, truncated && { overflow: 'visible', whiteSpace: 'pre-wrap', }, !isMultiline && { // In high contrast this causes the top and bottom of links' focus outline to be clipped // (not sure of a good way around that while still maintaining text clipping) overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', }, !isMultiline && !truncated && { selectors: (_h = {}, _h[SmallScreenSelector] = { overflow: 'visible', whiteSpace: 'pre-wrap', }, _h), }, expandSingleLine && { overflow: 'visible', whiteSpace: 'pre-wrap', }, ], dismissSingleLine: [ classNames.dismissSingleLine, (_j = {}, _j[SmallScreenSelector] = { gridArea: 'close', }, _j), ], expandSingleLine: classNames.expandSingleLine, dismissal: [classNames.dismissal, dismissalAndExpandStyle], expand: [classNames.expand, dismissalAndExpandStyle], actions: [ isMultiline ? classNames.actions : classNames.actionsSingleline, (_k = { display: 'flex', flexGrow: 0, flexShrink: 0, flexBasis: 'auto', flexDirection: 'row-reverse', alignItems: 'center', margin: '0 12px 0 8px', // reset forced colors to browser control for inner actions forcedColorAdjust: 'auto', MsHighContrastAdjust: 'auto' }, _k[SmallScreenSelector] = { gridArea: 'action', marginRight: 8, marginBottom: 8, }, _k.selectors = { '& button:nth-child(n+2)': (_l = { marginLeft: 8 }, _l[SmallScreenSelector] = { marginBottom: 0, }, _l), }, _k), isMultiline && { marginBottom: 8, }, onDismiss && !isMultiline && { marginRight: 0, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=MessageBar.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MessageBarType = void 0; /** * {@docCategory MessageBar} */ var MessageBarType; (function (MessageBarType) { /** Info styled MessageBar */ MessageBarType[MessageBarType["info"] = 0] = "info"; /** Error styled MessageBar */ MessageBarType[MessageBarType["error"] = 1] = "error"; /** Blocked styled MessageBar */ MessageBarType[MessageBarType["blocked"] = 2] = "blocked"; /** SevereWarning styled MessageBar */ MessageBarType[MessageBarType["severeWarning"] = 3] = "severeWarning"; /** Success styled MessageBar */ MessageBarType[MessageBarType["success"] = 4] = "success"; /** Warning styled MessageBar */ MessageBarType[MessageBarType["warning"] = 5] = "warning"; })(MessageBarType = exports.MessageBarType || (exports.MessageBarType = {})); //# sourceMappingURL=MessageBar.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/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__(/*! ./MessageBar */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MessageBar.base */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MessageBar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/MessageBar.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ModalBase = 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 FocusTrapZone_1 = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); var Modal_styles_1 = __webpack_require__(/*! ./Modal.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.styles.js"); var Overlay_1 = __webpack_require__(/*! ../../Overlay */ "./node_modules/@fluentui/react/lib-commonjs/Overlay.js"); var Layer_1 = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); var Popup_1 = __webpack_require__(/*! ../../Popup */ "./node_modules/@fluentui/react/lib-commonjs/Popup.js"); var ResponsiveMode_1 = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var index_1 = __webpack_require__(/*! ../../utilities/DraggableZone/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/index.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var ZERO = { x: 0, y: 0 }; var DEFAULT_PROPS = { isOpen: false, isDarkOverlay: true, className: '', containerClassName: '', enableAriaHiddenSiblings: true, }; var getClassNames = (0, Utilities_1.classNamesFunction)(); var getMoveDelta = function (ev) { var delta = 10; if (ev.shiftKey) { if (!ev.ctrlKey) { delta = 50; } } else if (ev.ctrlKey) { delta = 1; } return delta; }; var useComponentRef = function (props, focusTrapZone) { React.useImperativeHandle(props.componentRef, function () { return ({ focus: function () { if (focusTrapZone.current) { focusTrapZone.current.focus(); } }, }); }, [focusTrapZone]); }; exports.ModalBase = React.forwardRef(function (propsWithoutDefaults, ref) { var _a, _b, _c, _d, _e; var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var allowTouchBodyScroll = props.allowTouchBodyScroll, className = props.className, children = props.children, containerClassName = props.containerClassName, scrollableContentClassName = props.scrollableContentClassName, elementToFocusOnDismiss = props.elementToFocusOnDismiss, firstFocusableSelector = props.firstFocusableSelector, focusTrapZoneProps = props.focusTrapZoneProps, forceFocusInsideTrap = props.forceFocusInsideTrap, // eslint-disable-next-line deprecation/deprecation _f = props.disableRestoreFocus, // eslint-disable-next-line deprecation/deprecation disableRestoreFocus = _f === void 0 ? props.ignoreExternalFocusing : _f, isBlocking = props.isBlocking, isAlert = props.isAlert, isClickableOutsideFocusTrap = props.isClickableOutsideFocusTrap, isDarkOverlay = props.isDarkOverlay, onDismiss = props.onDismiss, layerProps = props.layerProps, overlay = props.overlay, isOpen = props.isOpen, titleAriaId = props.titleAriaId, styles = props.styles, subtitleAriaId = props.subtitleAriaId, theme = props.theme, topOffsetFixed = props.topOffsetFixed, responsiveMode = props.responsiveMode, // eslint-disable-next-line deprecation/deprecation onLayerDidMount = props.onLayerDidMount, isModeless = props.isModeless, dragOptions = props.dragOptions, onDismissed = props.onDismissed, // eslint-disable-next-line deprecation/deprecation enableAriaHiddenSiblings = props.enableAriaHiddenSiblings, popupProps = props.popupProps; var rootRef = React.useRef(null); var focusTrapZone = React.useRef(null); var focusTrapZoneRef = (0, react_hooks_1.useMergedRefs)(focusTrapZone, focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.componentRef); var focusTrapZoneElm = React.useRef(null); var mergedRef = (0, react_hooks_1.useMergedRefs)(rootRef, ref); var modalResponsiveMode = (0, ResponsiveMode_1.useResponsiveMode)(mergedRef); var focusTrapZoneId = (0, react_hooks_1.useId)('ModalFocusTrapZone', focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.id); var win = (0, react_window_provider_1.useWindow)(); var _g = (0, react_hooks_1.useSetTimeout)(), setTimeout = _g.setTimeout, clearTimeout = _g.clearTimeout; var _h = React.useState(isOpen), isModalOpen = _h[0], setIsModalOpen = _h[1]; var _j = React.useState(isOpen), isVisible = _j[0], setIsVisible = _j[1]; var _k = React.useState(ZERO), coordinates = _k[0], setCoordinates = _k[1]; var _l = React.useState(), modalRectangleTop = _l[0], setModalRectangleTop = _l[1]; var _m = (0, react_hooks_1.useBoolean)(false), isModalMenuOpen = _m[0], _o = _m[1], toggleModalMenuOpen = _o.toggle, setModalMenuClose = _o.setFalse; var internalState = (0, react_hooks_1.useConst)(function () { return ({ onModalCloseTimer: 0, allowTouchBodyScroll: allowTouchBodyScroll, scrollableContent: null, lastSetCoordinates: ZERO, events: new Utilities_1.EventGroup({}), }); }); var keepInBounds = (dragOptions || {}).keepInBounds; var isAlertRole = isAlert !== null && isAlert !== void 0 ? isAlert : (isBlocking && !isModeless); var layerClassName = layerProps === undefined ? '' : layerProps.className; var classNames = getClassNames(styles, { theme: theme, className: className, containerClassName: containerClassName, scrollableContentClassName: scrollableContentClassName, isOpen: isOpen, isVisible: isVisible, hasBeenOpened: internalState.hasBeenOpened, modalRectangleTop: modalRectangleTop, topOffsetFixed: topOffsetFixed, isModeless: isModeless, layerClassName: layerClassName, windowInnerHeight: win === null || win === void 0 ? void 0 : win.innerHeight, isDefaultDragHandle: dragOptions && !dragOptions.dragHandleSelector, }); var mergedLayerProps = tslib_1.__assign(tslib_1.__assign({ eventBubblingEnabled: false }, layerProps), { onLayerDidMount: layerProps && layerProps.onLayerDidMount ? layerProps.onLayerDidMount : onLayerDidMount, insertFirst: (layerProps === null || layerProps === void 0 ? void 0 : layerProps.insertFirst) || isModeless, className: classNames.layer }); // Allow the user to scroll within the modal but not on the body var allowScrollOnModal = React.useCallback(function (elt) { if (elt) { if (internalState.allowTouchBodyScroll) { (0, Utilities_1.allowOverscrollOnElement)(elt, internalState.events); } else { (0, Utilities_1.allowScrollOnElement)(elt, internalState.events); } } else { internalState.events.off(internalState.scrollableContent); } internalState.scrollableContent = elt; }, [internalState]); var registerInitialModalPosition = function () { var dialogMain = focusTrapZoneElm.current; var modalRectangle = dialogMain === null || dialogMain === void 0 ? void 0 : dialogMain.getBoundingClientRect(); if (modalRectangle) { if (topOffsetFixed) { setModalRectangleTop(modalRectangle.top); } if (keepInBounds) { // x/y are unavailable in IE, so use the equivalent left/top internalState.minPosition = { x: -modalRectangle.left, y: -modalRectangle.top }; internalState.maxPosition = { x: modalRectangle.left, y: modalRectangle.top }; } } }; /** * Clamps an axis to a specified min and max position. * * @param axis A string that represents the axis (x/y). * @param position The position on the axis. */ var getClampedAxis = React.useCallback(function (axis, position) { var minPosition = internalState.minPosition, maxPosition = internalState.maxPosition; if (keepInBounds && minPosition && maxPosition) { position = Math.max(minPosition[axis], position); position = Math.min(maxPosition[axis], position); } return position; }, [keepInBounds, internalState]); var handleModalClose = function () { var _a; internalState.lastSetCoordinates = ZERO; setModalMenuClose(); internalState.isInKeyboardMoveMode = false; setIsModalOpen(false); setCoordinates(ZERO); (_a = internalState.disposeOnKeyUp) === null || _a === void 0 ? void 0 : _a.call(internalState); onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed(); }; var handleDragStart = React.useCallback(function () { setModalMenuClose(); internalState.isInKeyboardMoveMode = false; }, [internalState, setModalMenuClose]); var handleDrag = React.useCallback(function (ev, dragData) { setCoordinates(function (prevValue) { return ({ x: getClampedAxis('x', prevValue.x + dragData.delta.x), y: getClampedAxis('y', prevValue.y + dragData.delta.y), }); }); }, [getClampedAxis]); var handleDragStop = React.useCallback(function () { if (focusTrapZone.current) { focusTrapZone.current.focus(); } }, []); var handleEnterKeyboardMoveMode = function () { // We need a global handleKeyDown event when we are in the move mode so that we can // handle the key presses and the components inside the modal do not get the events var handleKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.altKey && ev.ctrlKey && ev.keyCode === Utilities_1.KeyCodes.space) { // CTRL + ALT + SPACE is handled during keyUp ev.preventDefault(); ev.stopPropagation(); return; } // eslint-disable-next-line deprecation/deprecation var newLocal = ev.altKey || ev.keyCode === Utilities_1.KeyCodes.escape; if (isModalMenuOpen && newLocal) { setModalMenuClose(); } // eslint-disable-next-line deprecation/deprecation if (internalState.isInKeyboardMoveMode && (ev.keyCode === Utilities_1.KeyCodes.escape || ev.keyCode === Utilities_1.KeyCodes.enter)) { internalState.isInKeyboardMoveMode = false; ev.preventDefault(); ev.stopPropagation(); } if (internalState.isInKeyboardMoveMode) { var handledEvent = true; var delta_1 = getMoveDelta(ev); // eslint-disable-next-line deprecation/deprecation switch (ev.keyCode) { /* eslint-disable no-fallthrough */ case Utilities_1.KeyCodes.escape: setCoordinates(internalState.lastSetCoordinates); case Utilities_1.KeyCodes.enter: { // TODO: determine if fallthrough was intentional /* eslint-enable no-fallthrough */ internalState.lastSetCoordinates = ZERO; // setIsInKeyboardMoveMode(false); break; } case Utilities_1.KeyCodes.up: { setCoordinates(function (prevValue) { return ({ x: prevValue.x, y: getClampedAxis('y', prevValue.y - delta_1) }); }); break; } case Utilities_1.KeyCodes.down: { setCoordinates(function (prevValue) { return ({ x: prevValue.x, y: getClampedAxis('y', prevValue.y + delta_1) }); }); break; } case Utilities_1.KeyCodes.left: { setCoordinates(function (prevValue) { return ({ x: getClampedAxis('x', prevValue.x - delta_1), y: prevValue.y }); }); break; } case Utilities_1.KeyCodes.right: { setCoordinates(function (prevValue) { return ({ x: getClampedAxis('x', prevValue.x + delta_1), y: prevValue.y }); }); break; } default: { handledEvent = false; } } if (handledEvent) { ev.preventDefault(); ev.stopPropagation(); } } }; internalState.lastSetCoordinates = coordinates; setModalMenuClose(); internalState.isInKeyboardMoveMode = true; internalState.events.on(win, 'keydown', handleKeyDown, true /* useCapture */); internalState.disposeOnKeyDown = function () { internalState.events.off(win, 'keydown', handleKeyDown, true /* useCapture */); internalState.disposeOnKeyDown = undefined; }; }; var handleExitKeyboardMoveMode = function (ev) { var _a, _b; (_a = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(focusTrapZoneProps, ev); internalState.lastSetCoordinates = ZERO; internalState.isInKeyboardMoveMode = false; (_b = internalState.disposeOnKeyDown) === null || _b === void 0 ? void 0 : _b.call(internalState); }; var registerForKeyUp = function () { var handleKeyUp = function (ev) { // Needs to handle the CTRL + ALT + SPACE key during keyup due to FireFox bug: // https://bugzilla.mozilla.org/show_bug.cgi?id=1220143 // eslint-disable-next-line deprecation/deprecation if (ev.altKey && ev.ctrlKey && ev.keyCode === Utilities_1.KeyCodes.space) { if ((0, Utilities_1.elementContains)(internalState.scrollableContent, ev.target)) { toggleModalMenuOpen(); ev.preventDefault(); ev.stopPropagation(); } } }; if (!internalState.disposeOnKeyUp) { internalState.events.on(win, 'keyup', handleKeyUp, true /* useCapture */); internalState.disposeOnKeyUp = function () { internalState.events.off(win, 'keyup', handleKeyUp, true /* useCapture */); internalState.disposeOnKeyUp = undefined; }; } }; React.useEffect(function () { clearTimeout(internalState.onModalCloseTimer); // Opening the dialog if (isOpen) { // This must be done after the modal content has rendered requestAnimationFrame(function () { return setTimeout(registerInitialModalPosition, 0); }); setIsModalOpen(true); // Add a keyUp handler for all key up events once the dialog is open. if (dragOptions) { registerForKeyUp(); } internalState.hasBeenOpened = true; setIsVisible(true); } // Closing the dialog if (!isOpen && isModalOpen) { internalState.onModalCloseTimer = setTimeout(handleModalClose, parseFloat(Modal_styles_1.animationDuration) * 1000); setIsVisible(false); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if isModalOpen or isOpen mutates. }, [isModalOpen, isOpen]); (0, react_hooks_1.useUnmount)(function () { internalState.events.dispose(); }); useComponentRef(props, focusTrapZone); useDebugWarnings(props); var modalContent = (React.createElement(FocusTrapZone_1.FocusTrapZone, tslib_1.__assign({}, focusTrapZoneProps, { id: focusTrapZoneId, ref: focusTrapZoneElm, componentRef: focusTrapZoneRef, className: (0, Utilities_1.css)(classNames.main, focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.className), elementToFocusOnDismiss: (_a = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.elementToFocusOnDismiss) !== null && _a !== void 0 ? _a : elementToFocusOnDismiss, isClickableOutsideFocusTrap: (_b = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.isClickableOutsideFocusTrap) !== null && _b !== void 0 ? _b : (isModeless || isClickableOutsideFocusTrap || !isBlocking), disableRestoreFocus: (_c = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.disableRestoreFocus) !== null && _c !== void 0 ? _c : disableRestoreFocus, forceFocusInsideTrap: ((_d = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.forceFocusInsideTrap) !== null && _d !== void 0 ? _d : forceFocusInsideTrap) && !isModeless, // eslint-disable-next-line deprecation/deprecation firstFocusableSelector: (focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.firstFocusableSelector) || firstFocusableSelector, focusPreviouslyFocusedInnerElement: (_e = focusTrapZoneProps === null || focusTrapZoneProps === void 0 ? void 0 : focusTrapZoneProps.focusPreviouslyFocusedInnerElement) !== null && _e !== void 0 ? _e : true, onBlur: internalState.isInKeyboardMoveMode ? handleExitKeyboardMoveMode : undefined }), dragOptions && internalState.isInKeyboardMoveMode && (React.createElement("div", { className: classNames.keyboardMoveIconContainer }, dragOptions.keyboardMoveIconProps ? (React.createElement(Icon_1.Icon, tslib_1.__assign({}, dragOptions.keyboardMoveIconProps))) : (React.createElement(Icon_1.Icon, { iconName: "move", className: classNames.keyboardMoveIcon })))), React.createElement("div", { ref: allowScrollOnModal, className: classNames.scrollableContent, "data-is-scrollable": true }, dragOptions && isModalMenuOpen && (React.createElement(dragOptions.menu, { items: [ { key: 'move', text: dragOptions.moveMenuItemText, onClick: handleEnterKeyboardMoveMode }, { key: 'close', text: dragOptions.closeMenuItemText, onClick: handleModalClose }, ], onDismiss: setModalMenuClose, alignTargetEdge: true, coverTarget: true, directionalHint: DirectionalHint_1.DirectionalHint.topLeftEdge, directionalHintFixed: true, shouldFocusOnMount: true, target: internalState.scrollableContent })), children))); return ((isModalOpen && modalResponsiveMode >= (responsiveMode || ResponsiveMode_1.ResponsiveMode.small) && (React.createElement(Layer_1.Layer, tslib_1.__assign({ ref: mergedRef }, mergedLayerProps), React.createElement(Popup_1.Popup, tslib_1.__assign({ role: isAlertRole ? 'alertdialog' : 'dialog', ariaLabelledBy: titleAriaId, ariaDescribedBy: subtitleAriaId, onDismiss: onDismiss, shouldRestoreFocus: !disableRestoreFocus, // Modeless modals shouldn't hide siblings. // Popup will automatically handle this based on the aria-modal setting. enableAriaHiddenSiblings: enableAriaHiddenSiblings, "aria-modal": !isModeless }, popupProps), React.createElement("div", { className: classNames.root, role: !isModeless ? 'document' : undefined }, !isModeless && (React.createElement(Overlay_1.Overlay, tslib_1.__assign({ "aria-hidden": true, isDarkThemed: isDarkOverlay, onClick: isBlocking ? undefined : onDismiss, allowTouchBodyScroll: allowTouchBodyScroll }, overlay))), dragOptions ? (React.createElement(index_1.DraggableZone, { handleSelector: dragOptions.dragHandleSelector || "#".concat(focusTrapZoneId), preventDragSelector: "button", onStart: handleDragStart, onDragChange: handleDrag, onStop: handleDragStop, position: coordinates }, modalContent)) : (modalContent)))))) || null); }); exports.ModalBase.displayName = 'Modal'; function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'Modal', props: props, deprecations: { onLayerDidMount: 'layerProps.onLayerDidMount' }, }); } } //# sourceMappingURL=Modal.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Modal = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Modal_base_1 = __webpack_require__(/*! ./Modal.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.base.js"); var Modal_styles_1 = __webpack_require__(/*! ./Modal.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.styles.js"); exports.Modal = (0, Utilities_1.styled)(Modal_base_1.ModalBase, Modal_styles_1.getStyles, undefined, { scope: 'Modal', fields: ['theme', 'styles', 'enableAriaHiddenSiblings'], }); exports.Modal.displayName = 'Modal'; //# sourceMappingURL=Modal.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.styles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.animationDuration = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.animationDuration = Styling_1.AnimationVariables.durationValue2; var globalClassNames = { root: 'ms-Modal', main: 'ms-Dialog-main', scrollableContent: 'ms-Modal-scrollableContent', isOpen: 'is-open', layer: 'ms-Modal-Layer', }; var getStyles = function (props) { var _a; var className = props.className, containerClassName = props.containerClassName, scrollableContentClassName = props.scrollableContentClassName, isOpen = props.isOpen, isVisible = props.isVisible, hasBeenOpened = props.hasBeenOpened, modalRectangleTop = props.modalRectangleTop, theme = props.theme, topOffsetFixed = props.topOffsetFixed, isModeless = props.isModeless, layerClassName = props.layerClassName, isDefaultDragHandle = props.isDefaultDragHandle, windowInnerHeight = props.windowInnerHeight; var palette = theme.palette, effects = theme.effects, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(globalClassNames, theme); return { root: [ classNames.root, fonts.medium, { backgroundColor: 'transparent', position: 'fixed', height: '100%', width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', opacity: 0, pointerEvents: 'none', transition: "opacity ".concat(exports.animationDuration), }, topOffsetFixed && typeof modalRectangleTop === 'number' && hasBeenOpened && { alignItems: 'flex-start', }, isOpen && classNames.isOpen, isVisible && { opacity: 1, }, isVisible && !isModeless && { pointerEvents: 'auto', }, className, ], main: [ classNames.main, { boxShadow: effects.elevation64, borderRadius: effects.roundedCorner2, backgroundColor: palette.white, boxSizing: 'border-box', position: 'relative', textAlign: 'left', outline: '3px solid transparent', maxHeight: 'calc(100% - 32px)', maxWidth: 'calc(100% - 32px)', minHeight: '176px', minWidth: '288px', overflowY: 'auto', zIndex: isModeless ? Styling_1.ZIndexes.Layer : undefined, }, isModeless && { pointerEvents: 'auto', }, topOffsetFixed && typeof modalRectangleTop === 'number' && hasBeenOpened && { top: modalRectangleTop, }, isDefaultDragHandle && { cursor: 'move', }, containerClassName, ], scrollableContent: [ classNames.scrollableContent, { overflowY: 'auto', flexGrow: 1, maxHeight: '100vh', selectors: (_a = {}, _a['@supports (-webkit-overflow-scrolling: touch)'] = { maxHeight: windowInnerHeight, }, _a), }, scrollableContentClassName, ], layer: isModeless && [layerClassName, classNames.layer, { pointerEvents: 'none' }], keyboardMoveIconContainer: { position: 'absolute', display: 'flex', justifyContent: 'center', width: '100%', padding: '3px 0px', }, keyboardMoveIcon: { // eslint-disable-next-line deprecation/deprecation fontSize: fonts.xLargePlus.fontSize, width: '24px', }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Modal.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Modal.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Modal/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__(/*! ./Modal */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Modal.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Modal.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/Modal.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.base.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.base.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.NavBase = exports.isRelativeUrl = 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 Nav_styles_1 = __webpack_require__(/*! ./Nav.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.styles.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 utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); // The number pixels per indentation level for Nav links. var _indentationSize = 14; // The number of pixels of left margin var _baseIndent = 3; // global var used in _isLinkSelectedKey var _urlResolver; function isRelativeUrl(url) { // A URL is relative if it has no protocol. return !!url && !/^[a-z0-9+-.]+:\/\//i.test(url); } exports.isRelativeUrl = isRelativeUrl; var getClassNames = (0, Utilities_1.classNamesFunction)(); var NavBase = /** @class */ (function (_super) { tslib_1.__extends(NavBase, _super); function NavBase(props) { var _this = _super.call(this, props) || this; _this._focusZone = React.createRef(); _this._onRenderLink = function (link) { var _a = _this.props, styles = _a.styles, groups = _a.groups, theme = _a.theme; var classNames = getClassNames(styles, { theme: theme, groups: groups }); return React.createElement("div", { className: classNames.linkText }, link.name); }; _this._renderGroup = function (group, groupIndex) { var _a = _this.props, styles = _a.styles, groups = _a.groups, theme = _a.theme, _b = _a.onRenderGroupHeader, onRenderGroupHeader = _b === void 0 ? _this._renderGroupHeader : _b; var isExpanded = _this._isGroupExpanded(group); var classNames = getClassNames(styles, { theme: theme, isGroup: true, isExpanded: isExpanded, groups: groups, }); var finalOnHeaderClick = function (ev, isCollapsing) { _this._onGroupHeaderClicked(group, ev); }; var groupProps = tslib_1.__assign(tslib_1.__assign({}, group), { isExpanded: isExpanded, onHeaderClick: finalOnHeaderClick }); return (React.createElement("div", { key: groupIndex, className: classNames.group }, groupProps.name ? onRenderGroupHeader(groupProps, _this._renderGroupHeader) : null, React.createElement("div", { className: classNames.groupContent }, _this._renderLinks(groupProps.links, 0 /* nestingLevel */)))); }; _this._renderGroupHeader = function (group) { var _a; // eslint-disable-next-line deprecation/deprecation var _b = _this.props, styles = _b.styles, groups = _b.groups, theme = _b.theme, expandButtonAriaLabel = _b.expandButtonAriaLabel; var isExpanded = group.isExpanded; var classNames = getClassNames(styles, { theme: theme, isGroup: true, isExpanded: isExpanded, groups: groups, }); // respect deprecated collapseAriaLabel, but default to expandAriaLabel for both states // eslint-disable-next-line deprecation/deprecation var collapseAriaLabel = (_a = group.collapseAriaLabel) !== null && _a !== void 0 ? _a : group.expandAriaLabel; var label = (isExpanded ? collapseAriaLabel : group.expandAriaLabel) || expandButtonAriaLabel; var onHeaderClick = group.onHeaderClick; var onClick = onHeaderClick ? function (ev) { onHeaderClick(ev, isExpanded); } : undefined; return (React.createElement("button", { className: classNames.chevronButton, onClick: onClick, "aria-label": label, "aria-expanded": isExpanded }, React.createElement(Icon_1.Icon, { className: classNames.chevronIcon, iconName: "ChevronDown" }), group.name)); }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { isGroupCollapsed: {}, isLinkExpandStateChanged: false, selectedKey: props.initialSelectedKey || props.selectedKey, }; return _this; } NavBase.prototype.render = function () { var _a = this.props, styles = _a.styles, groups = _a.groups, className = _a.className, isOnTop = _a.isOnTop, _b = _a.role, role = _b === void 0 ? 'navigation' : _b, theme = _a.theme; if (!groups) { return null; } var groupElements = groups.map(this._renderGroup); var classNames = getClassNames(styles, { theme: theme, className: className, isOnTop: isOnTop, groups: groups }); return (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.vertical, componentRef: this._focusZone }, this.props.focusZoneProps), React.createElement("nav", { role: role, className: classNames.root, "aria-label": this.props.ariaLabel }, groupElements))); }; Object.defineProperty(NavBase.prototype, "selectedKey", { get: function () { return this.state.selectedKey; }, enumerable: false, configurable: true }); /** * 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. * @returns True if focus could be set to an active element, false if no operation was taken. */ NavBase.prototype.focus = function (forceIntoFirstElement) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } if (this._focusZone && this._focusZone.current) { return this._focusZone.current.focus(forceIntoFirstElement); } return false; }; NavBase.prototype._renderNavLink = function (link, linkIndex, nestingLevel) { var _a = this.props, styles = _a.styles, groups = _a.groups, theme = _a.theme; var isLinkWithIcon = link.icon || link.iconProps; var isSelectedLink = this._isLinkSelected(link); var _b = link.ariaCurrent, ariaCurrent = _b === void 0 ? 'page' : _b; var classNames = getClassNames(styles, { theme: theme, isSelected: isSelectedLink, isDisabled: link.disabled, isButtonEntry: link.onClick && !link.forceAnchor, leftPadding: _indentationSize * nestingLevel + _baseIndent + (isLinkWithIcon ? 0 : 24), groups: groups, }); // Prevent hijacking of the parent window if link.target is defined var rel = link.url && link.target && !isRelativeUrl(link.url) ? 'noopener noreferrer' : undefined; var LinkAs = this.props.linkAs ? (0, utilities_1.composeComponentAs)(this.props.linkAs, Button_1.ActionButton) : Button_1.ActionButton; var onRenderLink = this.props.onRenderLink ? (0, utilities_1.composeRenderFunction)(this.props.onRenderLink, this._onRenderLink) : this._onRenderLink; return (React.createElement(LinkAs, { className: classNames.link, styles: Nav_styles_1.buttonStyles, href: link.url || (link.forceAnchor ? '#' : undefined), iconProps: link.iconProps || { iconName: link.icon }, // eslint-disable-next-line react/jsx-no-bind onClick: link.onClick ? this._onNavButtonLinkClicked.bind(this, link) : this._onNavAnchorLinkClicked.bind(this, link), title: link.title !== undefined ? link.title : link.name, target: link.target, rel: rel, disabled: link.disabled, "aria-current": isSelectedLink ? ariaCurrent : undefined, "aria-label": link.ariaLabel ? link.ariaLabel : undefined, link: link }, onRenderLink(link))); }; NavBase.prototype._renderCompositeLink = function (link, linkIndex, nestingLevel) { var _a; var divProps = tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(link, Utilities_1.divProperties, ['onClick'])); // eslint-disable-next-line deprecation/deprecation var _b = this.props, expandButtonAriaLabel = _b.expandButtonAriaLabel, styles = _b.styles, groups = _b.groups, theme = _b.theme; var classNames = getClassNames(styles, { theme: theme, isExpanded: !!link.isExpanded, isSelected: this._isLinkSelected(link), isLink: true, isDisabled: link.disabled, position: _indentationSize * nestingLevel + 1, groups: groups, }); var finalExpandBtnAriaLabel = ''; if (link.links && link.links.length > 0) { if (link.collapseAriaLabel || link.expandAriaLabel) { // still respect link.collapseAriaLabel, even though it's deprecated in favor of expandAriaLabel var collapseAriaLabel = (_a = link.collapseAriaLabel) !== null && _a !== void 0 ? _a : link.expandAriaLabel; finalExpandBtnAriaLabel = link.isExpanded ? collapseAriaLabel : link.expandAriaLabel; } else { // TODO remove when `expandButtonAriaLabel` is removed. This is not an ideal concatenation for localization. finalExpandBtnAriaLabel = expandButtonAriaLabel ? "".concat(link.name, " ").concat(expandButtonAriaLabel) : link.name; } } return (React.createElement("div", tslib_1.__assign({}, divProps, { key: link.key || linkIndex, className: classNames.compositeLink }), link.links && link.links.length > 0 ? (React.createElement("button", { className: classNames.chevronButton, onClick: this._onLinkExpandClicked.bind(this, link), "aria-label": finalExpandBtnAriaLabel, "aria-expanded": link.isExpanded ? 'true' : 'false' }, React.createElement(Icon_1.Icon, { className: classNames.chevronIcon, iconName: "ChevronDown" }))) : null, this._renderNavLink(link, linkIndex, nestingLevel))); }; NavBase.prototype._renderLink = function (link, linkIndex, nestingLevel) { var _a = this.props, styles = _a.styles, groups = _a.groups, theme = _a.theme; var classNames = getClassNames(styles, { theme: theme, groups: groups }); return (React.createElement("li", { key: link.key || linkIndex, role: "listitem", className: classNames.navItem }, this._renderCompositeLink(link, linkIndex, nestingLevel), link.isExpanded ? this._renderLinks(link.links, ++nestingLevel) : null)); }; NavBase.prototype._renderLinks = function (links, nestingLevel) { var _this = this; if (!links || !links.length) { return null; } var linkElements = links.map(function (link, linkIndex) { return _this._renderLink(link, linkIndex, nestingLevel); }); var _a = this.props, styles = _a.styles, groups = _a.groups, theme = _a.theme; var classNames = getClassNames(styles, { theme: theme, groups: groups }); return (React.createElement("ul", { role: "list", className: classNames.navItems }, linkElements)); }; NavBase.prototype._onGroupHeaderClicked = function (group, ev) { if (group.onHeaderClick) { group.onHeaderClick(ev, this._isGroupExpanded(group)); } if (group.isExpanded === undefined) { this._toggleCollapsed(group); } if (ev) { ev.preventDefault(); ev.stopPropagation(); } }; NavBase.prototype._onLinkExpandClicked = function (link, ev) { var onLinkExpandClick = this.props.onLinkExpandClick; if (onLinkExpandClick) { onLinkExpandClick(ev, link); } if (!ev.defaultPrevented) { link.isExpanded = !link.isExpanded; this.setState({ isLinkExpandStateChanged: true }); } ev.preventDefault(); ev.stopPropagation(); }; NavBase.prototype._preventBounce = function (link, ev) { if (!link.url && link.forceAnchor) { ev.preventDefault(); } }; NavBase.prototype._onNavAnchorLinkClicked = function (link, ev) { // If the href is "#" we should call preventDefault to prevent scrolling to the top of the page this._preventBounce(link, ev); if (this.props.onLinkClick) { this.props.onLinkClick(ev, link); } if (!link.url && link.links && link.links.length > 0) { this._onLinkExpandClicked(link, ev); } this.setState({ selectedKey: link.key }); }; NavBase.prototype._onNavButtonLinkClicked = function (link, ev) { // If the href is "#" we should call preventDefault to prevent scrolling to the top of the page this._preventBounce(link, ev); if (link.onClick) { link.onClick(ev, link); } if (!link.url && link.links && link.links.length > 0) { this._onLinkExpandClicked(link, ev); } this.setState({ selectedKey: link.key }); }; NavBase.prototype._isLinkSelected = function (link) { // if caller passes in selectedKey, use it as first choice or // if current state.selectedKey (from addressbar) is match to the link or // check if URL is matching location.href (if link.url exists) if (this.props.selectedKey !== undefined) { return link.key === this.props.selectedKey; } else if (this.state.selectedKey !== undefined) { return link.key === this.state.selectedKey; } else if (typeof (0, Utilities_1.getWindow)() === 'undefined' || !link.url) { // resolve is not supported for ssr return false; } else { // If selectedKey is undefined in props and state, then check URL _urlResolver = _urlResolver || document.createElement('a'); _urlResolver.href = link.url || ''; var target = _urlResolver.href; if (location.href === target) { return true; } // If selectedKey is not defined in state, then check URL to determine link selected status if (location.protocol + '//' + location.host + location.pathname === target) { return true; } if (location.hash) { // Match the hash to the url. if (location.hash === link.url) { return true; } // Match a rebased url. (e.g. #foo becomes http://hostname/foo) _urlResolver.href = location.hash.substring(1); return _urlResolver.href === target; } } return false; }; NavBase.prototype._isGroupExpanded = function (group) { if (group.isExpanded !== undefined) { return group.isExpanded; } if (group.name && this.state.isGroupCollapsed.hasOwnProperty(group.name)) { return !this.state.isGroupCollapsed[group.name]; } if (group.collapseByDefault !== undefined) { return !group.collapseByDefault; } return true; }; NavBase.prototype._toggleCollapsed = function (group) { var _a; if (group.name) { var newGroupCollapsed = tslib_1.__assign(tslib_1.__assign({}, this.state.isGroupCollapsed), (_a = {}, _a[group.name] = this._isGroupExpanded(group), _a)); this.setState({ isGroupCollapsed: newGroupCollapsed }); } }; NavBase.defaultProps = { groups: null, }; return NavBase; }(React.Component)); exports.NavBase = NavBase; //# sourceMappingURL=Nav.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Nav = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Nav_base_1 = __webpack_require__(/*! ./Nav.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.base.js"); var Nav_styles_1 = __webpack_require__(/*! ./Nav.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.styles.js"); exports.Nav = (0, Utilities_1.styled)(Nav_base_1.NavBase, Nav_styles_1.getStyles, undefined, { scope: 'Nav', }); //# sourceMappingURL=Nav.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.styles.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.styles.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.buttonStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-Nav', linkText: 'ms-Nav-linkText', compositeLink: 'ms-Nav-compositeLink', link: 'ms-Nav-link', chevronButton: 'ms-Nav-chevronButton', chevronIcon: 'ms-Nav-chevron', navItem: 'ms-Nav-navItem', navItems: 'ms-Nav-navItems', group: 'ms-Nav-group', groupContent: 'ms-Nav-groupContent', }; exports.buttonStyles = { textContainer: { overflow: 'hidden', }, label: { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', }, }; var getStyles = function (props) { var _a; var className = props.className, theme = props.theme, isOnTop = props.isOnTop, isExpanded = props.isExpanded, isGroup = props.isGroup, isLink = props.isLink, isSelected = props.isSelected, isDisabled = props.isDisabled, isButtonEntry = props.isButtonEntry, _b = props.navHeight, navHeight = _b === void 0 ? 44 : _b, position = props.position, _c = props.leftPadding, leftPadding = _c === void 0 ? 20 : _c, _d = props.leftPaddingExpanded, leftPaddingExpanded = _d === void 0 ? 28 : _d, _e = props.rightPadding, rightPadding = _e === void 0 ? 20 : _e; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, className, fonts.medium, { overflowY: 'auto', userSelect: 'none', WebkitOverflowScrolling: 'touch', }, isOnTop && [ { position: 'absolute', }, Styling_1.AnimationClassNames.slideRightIn40, ], ], linkText: [ classNames.linkText, { margin: '0 4px', overflow: 'hidden', verticalAlign: 'middle', textAlign: 'left', textOverflow: 'ellipsis', }, ], compositeLink: [ classNames.compositeLink, { display: 'block', position: 'relative', color: semanticColors.bodyText, }, isExpanded && 'is-expanded', isSelected && 'is-selected', isDisabled && 'is-disabled', isDisabled && { color: semanticColors.disabledText, }, ], link: [ classNames.link, (0, Styling_1.getFocusStyle)(theme), { display: 'block', position: 'relative', height: navHeight, width: '100%', lineHeight: "".concat(navHeight, "px"), textDecoration: 'none', cursor: 'pointer', textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden', paddingLeft: leftPadding, paddingRight: rightPadding, color: semanticColors.bodyText, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: 0, selectors: { ':focus': { border: '1px solid WindowText', }, }, }, _a), }, !isDisabled && { selectors: { '.ms-Nav-compositeLink:hover &': { backgroundColor: semanticColors.bodyBackgroundHovered, }, }, }, isSelected && { color: semanticColors.bodyTextChecked, fontWeight: Styling_1.FontWeights.semibold, backgroundColor: semanticColors.bodyBackgroundChecked, selectors: { '&:after': { borderLeft: "2px solid ".concat(palette.themePrimary), content: '""', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, pointerEvents: 'none', }, }, }, isDisabled && { color: semanticColors.disabledText, }, isButtonEntry && { color: palette.themePrimary, }, ], chevronButton: [ classNames.chevronButton, (0, Styling_1.getFocusStyle)(theme), fonts.small, { display: 'block', textAlign: 'left', lineHeight: "".concat(navHeight, "px"), margin: '5px 0', padding: "0px, ".concat(rightPadding, "px, 0px, ").concat(leftPaddingExpanded, "px"), border: 'none', textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden', cursor: 'pointer', color: semanticColors.bodyText, backgroundColor: 'transparent', selectors: { '&:visited': { color: semanticColors.bodyText, }, }, }, isGroup && { fontSize: fonts.large.fontSize, width: '100%', height: navHeight, borderBottom: "1px solid ".concat(semanticColors.bodyDivider), }, isLink && { display: 'block', width: leftPaddingExpanded - 2, height: navHeight - 2, position: 'absolute', top: '1px', left: "".concat(position, "px"), zIndex: Styling_1.ZIndexes.Nav, padding: 0, margin: 0, }, ], chevronIcon: [ classNames.chevronIcon, { position: 'absolute', left: '8px', height: navHeight, // inline-flex prevents the chevron from shifting with custom line height styles display: 'inline-flex', alignItems: 'center', lineHeight: "".concat(navHeight, "px"), fontSize: fonts.small.fontSize, transition: 'transform .1s linear', }, isExpanded && { transform: 'rotate(-180deg)', }, isLink && { top: 0, }, ], navItem: [ classNames.navItem, { padding: 0, }, ], navItems: [ classNames.navItems, { listStyleType: 'none', padding: 0, margin: 0, // remove default styles }, ], group: [classNames.group, isExpanded && 'is-expanded'], groupContent: [ classNames.groupContent, { display: 'none', marginBottom: '40px', }, Styling_1.AnimationClassNames.slideDownIn20, isExpanded && { display: 'block', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Nav.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.types.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.types.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Nav.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/index.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Nav/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__(/*! ./Nav */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Nav.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Nav.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/Nav.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowButton.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowButton.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OverflowButton = 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 KeytipManager_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipManager */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var registerPersistedKeytips = function (keytipsToRegister, keytipManager, registeredPersistedKeytips) { for (var _i = 0, keytipsToRegister_1 = keytipsToRegister; _i < keytipsToRegister_1.length; _i++) { var keytip = keytipsToRegister_1[_i]; var uniqueID = keytipManager.register(keytip, true); // Update map registeredPersistedKeytips[uniqueID] = keytip; } }; var unregisterPersistedKeytips = function (keytipManager, registeredPersistedKeytips) { for (var _i = 0, _a = Object.keys(registeredPersistedKeytips); _i < _a.length; _i++) { var uniqueID = _a[_i]; keytipManager.unregister(registeredPersistedKeytips[uniqueID], uniqueID, true); delete registeredPersistedKeytips[uniqueID]; } }; var useKeytipRegistrations = function (registeredPersistedKeytips, keytipsToRegister, keytipManager) { var prevPersistedKeytips = (0, react_hooks_1.usePrevious)(registeredPersistedKeytips); // Update React.useEffect(function () { if (prevPersistedKeytips) { // Unregister old keytips unregisterPersistedKeytips(keytipManager, prevPersistedKeytips); // Register new keytips registerPersistedKeytips(keytipsToRegister, keytipManager, registeredPersistedKeytips); } }); // Mount/Unmount React.useEffect(function () { // Register on mount registerPersistedKeytips(keytipsToRegister, keytipManager, registeredPersistedKeytips); return function () { // Unregister on unmount unregisterPersistedKeytips(keytipManager, registeredPersistedKeytips); }; // eslint-disable-next-line react-hooks/exhaustive-deps }, []); }; var OverflowButton = function (props) { var keytipManager = KeytipManager_1.KeytipManager.getInstance(); var className = props.className, overflowItems = props.overflowItems, keytipSequences = props.keytipSequences, itemSubMenuProvider = props.itemSubMenuProvider, onRenderOverflowButton = props.onRenderOverflowButton; var persistedKeytips = (0, react_hooks_1.useConst)({}); // Gets the subMenu for an overflow item var getSubMenuForItem = React.useCallback(function (item) { // Checks if itemSubMenuProvider has been defined, if not defaults to subMenuProps if (itemSubMenuProvider) { return itemSubMenuProvider(item); } if (item.subMenuProps) { return item.subMenuProps.items; } return undefined; }, [itemSubMenuProvider]); var _a = React.useMemo(function () { var newKeytipsToRegister = []; var newOverflowItems = []; if (keytipSequences) { overflowItems === null || overflowItems === void 0 ? void 0 : overflowItems.forEach(function (overflowItem) { var _a; var keytip = overflowItem.keytipProps; if (keytip) { // Create persisted keytip var persistedKeytip = { content: keytip.content, keySequences: keytip.keySequences, disabled: keytip.disabled || !!(overflowItem.disabled || overflowItem.isDisabled), hasDynamicChildren: keytip.hasDynamicChildren, hasMenu: keytip.hasMenu, }; if (keytip.hasDynamicChildren || getSubMenuForItem(overflowItem)) { // If the keytip has a submenu or children nodes, change onExecute to persistedKeytipExecute persistedKeytip.onExecute = keytipManager.menuExecute.bind(keytipManager, keytipSequences, (_a = overflowItem === null || overflowItem === void 0 ? void 0 : overflowItem.keytipProps) === null || _a === void 0 ? void 0 : _a.keySequences); persistedKeytip.hasOverflowSubMenu = true; } else { // If the keytip doesn't have a submenu, just execute the original function persistedKeytip.onExecute = keytip.onExecute; } newKeytipsToRegister.push(persistedKeytip); // Add the overflow sequence to this item var newOverflowItem = tslib_1.__assign(tslib_1.__assign({}, overflowItem), { keytipProps: tslib_1.__assign(tslib_1.__assign({}, keytip), { overflowSetSequence: keytipSequences }) }); newOverflowItems === null || newOverflowItems === void 0 ? void 0 : newOverflowItems.push(newOverflowItem); } else { // Nothing to change, add overflowItem to list newOverflowItems === null || newOverflowItems === void 0 ? void 0 : newOverflowItems.push(overflowItem); } }); } else { newOverflowItems = overflowItems; } return { modifiedOverflowItems: newOverflowItems, keytipsToRegister: newKeytipsToRegister }; }, [overflowItems, getSubMenuForItem, keytipManager, keytipSequences]), modifiedOverflowItems = _a.modifiedOverflowItems, keytipsToRegister = _a.keytipsToRegister; useKeytipRegistrations(persistedKeytips, keytipsToRegister, keytipManager); return React.createElement("div", { className: className }, onRenderOverflowButton(modifiedOverflowItems)); }; exports.OverflowButton = OverflowButton; //# sourceMappingURL=OverflowButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OverflowSetBase = 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__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var OverflowButton_1 = __webpack_require__(/*! ./OverflowButton */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowButton.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'OverflowSet'; var useComponentRef = function (props, divContainer) { React.useImperativeHandle(props.componentRef, function () { return ({ focus: function (_forceIntoFirstElement, bypassHiddenElements) { var focusSucceeded = false; if (divContainer.current) { focusSucceeded = (0, Utilities_1.focusFirstChild)(divContainer.current, bypassHiddenElements); } return focusSucceeded; }, focusElement: function (childElement) { var focusSucceeded = false; if (!childElement) { return false; } if (divContainer.current && (0, Utilities_1.elementContains)(divContainer.current, childElement)) { childElement.focus(); focusSucceeded = document.activeElement === childElement; } return focusSucceeded; }, }); }, [divContainer]); }; exports.OverflowSetBase = React.forwardRef(function (props, forwardedRef) { var divContainer = React.useRef(null); var mergedRef = (0, react_hooks_1.useMergedRefs)(divContainer, forwardedRef); useComponentRef(props, divContainer); var items = props.items, overflowItems = props.overflowItems, className = props.className, styles = props.styles, vertical = props.vertical, role = props.role, _a = props.overflowSide, overflowSide = _a === void 0 ? 'end' : _a, onRenderItem = props.onRenderItem; var classNames = getClassNames(styles, { className: className, vertical: vertical }); var showOverflow = !!overflowItems && overflowItems.length > 0; return (React.createElement("div", tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties), { role: role || 'group', "aria-orientation": role === 'menubar' ? (vertical === true ? 'vertical' : 'horizontal') : undefined, className: classNames.root, ref: mergedRef }), overflowSide === 'start' && showOverflow && React.createElement(OverflowButton_1.OverflowButton, tslib_1.__assign({}, props, { className: classNames.overflowButton })), items && items.map(function (item, i) { return (React.createElement("div", { className: classNames.item, key: item.key, role: "none" }, onRenderItem(item))); }), overflowSide === 'end' && showOverflow && React.createElement(OverflowButton_1.OverflowButton, tslib_1.__assign({}, props, { className: classNames.overflowButton })))); }); exports.OverflowSetBase.displayName = COMPONENT_NAME; //# sourceMappingURL=OverflowSet.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OverflowSet = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var OverflowSet_base_1 = __webpack_require__(/*! ./OverflowSet.base */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.base.js"); var OverflowSet_styles_1 = __webpack_require__(/*! ./OverflowSet.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.styles.js"); exports.OverflowSet = (0, Utilities_1.styled)(OverflowSet_base_1.OverflowSetBase, OverflowSet_styles_1.getStyles, undefined, { scope: 'OverflowSet', }); //# sourceMappingURL=OverflowSet.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var overflowItemStyle = { flexShrink: 0, display: 'inherit', }; var getStyles = function (props) { var className = props.className, vertical = props.vertical; return { root: [ 'ms-OverflowSet', { position: 'relative', display: 'flex', flexWrap: 'nowrap', }, vertical && { flexDirection: 'column' }, className, ], item: ['ms-OverflowSet-item', overflowItemStyle], overflowButton: ['ms-OverflowSet-overflowButton', overflowItemStyle], }; }; exports.getStyles = getStyles; //# sourceMappingURL=OverflowSet.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=OverflowSet.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/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__(/*! ./OverflowSet */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./OverflowSet.base */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./OverflowSet.types */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/OverflowSet.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.base.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.base.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OverlayBase = 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 OverlayBase = /** @class */ (function (_super) { tslib_1.__extends(OverlayBase, _super); function OverlayBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); var _a = _this.props.allowTouchBodyScroll, allowTouchBodyScroll = _a === void 0 ? false : _a; _this._allowTouchBodyScroll = allowTouchBodyScroll; return _this; } OverlayBase.prototype.componentDidMount = function () { !this._allowTouchBodyScroll && (0, Utilities_1.disableBodyScroll)(); }; OverlayBase.prototype.componentWillUnmount = function () { !this._allowTouchBodyScroll && (0, Utilities_1.enableBodyScroll)(); }; OverlayBase.prototype.render = function () { var _a = this.props, isDark = _a.isDarkThemed, className = _a.className, theme = _a.theme, styles = _a.styles; var divProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties); var classNames = getClassNames(styles, { theme: theme, className: className, isDark: isDark, }); return React.createElement("div", tslib_1.__assign({}, divProps, { className: classNames.root })); }; return OverlayBase; }(React.Component)); exports.OverlayBase = OverlayBase; //# sourceMappingURL=Overlay.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Overlay = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Overlay_base_1 = __webpack_require__(/*! ./Overlay.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.base.js"); var Overlay_styles_1 = __webpack_require__(/*! ./Overlay.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.styles.js"); exports.Overlay = (0, Utilities_1.styled)(Overlay_base_1.OverlayBase, Overlay_styles_1.getStyles, undefined, { scope: 'Overlay', }); //# sourceMappingURL=Overlay.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.styles.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.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-Overlay', rootDark: 'ms-Overlay--dark', }; var getStyles = function (props) { var _a; var className = props.className, theme = props.theme, isNone = props.isNone, isDark = props.isDark; var palette = theme.palette; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, { backgroundColor: palette.whiteTranslucent40, top: 0, right: 0, bottom: 0, left: 0, position: 'absolute', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: '1px solid WindowText', opacity: 0, }, _a), }, isNone && { visibility: 'hidden', }, isDark && [ classNames.rootDark, { backgroundColor: palette.blackTranslucent40, }, ], className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Overlay.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Overlay.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Overlay/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__(/*! ./Overlay */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Overlay.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Overlay.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/Overlay.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PanelBase = 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 Layer_1 = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); var Overlay_1 = __webpack_require__(/*! ../../Overlay */ "./node_modules/@fluentui/react/lib-commonjs/Overlay.js"); var Popup_1 = __webpack_require__(/*! ../../Popup */ "./node_modules/@fluentui/react/lib-commonjs/Popup.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var index_1 = __webpack_require__(/*! ../FocusTrapZone/index */ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/index.js"); var Panel_types_1 = __webpack_require__(/*! ./Panel.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'Panel'; var PanelVisibilityState; (function (PanelVisibilityState) { PanelVisibilityState[PanelVisibilityState["closed"] = 0] = "closed"; PanelVisibilityState[PanelVisibilityState["animatingOpen"] = 1] = "animatingOpen"; PanelVisibilityState[PanelVisibilityState["open"] = 2] = "open"; PanelVisibilityState[PanelVisibilityState["animatingClosed"] = 3] = "animatingClosed"; })(PanelVisibilityState || (PanelVisibilityState = {})); var PanelBase = /** @class */ (function (_super) { tslib_1.__extends(PanelBase, _super); function PanelBase(props) { var _this = _super.call(this, props) || this; _this._panel = React.createRef(); _this._animationCallback = null; _this._hasCustomNavigation = !!(_this.props.onRenderNavigation || _this.props.onRenderNavigationContent); _this.dismiss = function (ev) { if (_this.props.onDismiss && _this.isActive) { _this.props.onDismiss(ev); } if (!ev || (ev && !ev.defaultPrevented)) { _this.close(); } }; // Allow the user to scroll within the panel but not on the body _this._allowScrollOnPanel = function (elt) { if (elt) { if (_this._allowTouchBodyScroll) { (0, Utilities_1.allowOverscrollOnElement)(elt, _this._events); } else { (0, Utilities_1.allowScrollOnElement)(elt, _this._events); } } else { _this._events.off(_this._scrollableContent); } _this._scrollableContent = elt; }; _this._onRenderNavigation = function (props) { if (!_this.props.onRenderNavigationContent && !_this.props.onRenderNavigation && !_this.props.hasCloseButton) { return null; } var _a = _this.props.onRenderNavigationContent, onRenderNavigationContent = _a === void 0 ? _this._onRenderNavigationContent : _a; return (React.createElement("div", { className: _this._classNames.navigation }, onRenderNavigationContent(props, _this._onRenderNavigationContent))); }; _this._onRenderNavigationContent = function (props) { var _a; var closeButtonAriaLabel = props.closeButtonAriaLabel, hasCloseButton = props.hasCloseButton, _b = props.onRenderHeader, onRenderHeader = _b === void 0 ? _this._onRenderHeader : _b; if (hasCloseButton) { var iconButtonStyles = (_a = _this._classNames.subComponentStyles) === null || _a === void 0 ? void 0 : _a.closeButton(); return (React.createElement(React.Fragment, null, !_this._hasCustomNavigation && onRenderHeader(_this.props, _this._onRenderHeader, _this._headerTextId), React.createElement(Button_1.IconButton, { styles: iconButtonStyles, className: _this._classNames.closeButton, onClick: _this._onPanelClick, ariaLabel: closeButtonAriaLabel, title: closeButtonAriaLabel, "data-is-visible": true, iconProps: { iconName: 'Cancel' } }))); } return null; }; _this._onRenderHeader = function (props, defaultRender, headerTextId) { var headerText = props.headerText, _a = props.headerTextProps, headerTextProps = _a === void 0 ? {} : _a; if (headerText) { return (React.createElement("div", { className: _this._classNames.header }, React.createElement("div", tslib_1.__assign({ id: headerTextId, role: "heading", "aria-level": 1 }, headerTextProps, { className: (0, Utilities_1.css)(_this._classNames.headerText, headerTextProps.className) }), headerText))); } return null; }; _this._onRenderBody = function (props) { return React.createElement("div", { className: _this._classNames.content }, props.children); }; _this._onRenderFooter = function (props) { var _a = _this.props.onRenderFooterContent, onRenderFooterContent = _a === void 0 ? null : _a; if (onRenderFooterContent) { return (React.createElement("div", { className: _this._classNames.footer }, React.createElement("div", { className: _this._classNames.footerInner }, onRenderFooterContent()))); } return null; }; _this._animateTo = function (newVisibilityState) { if (newVisibilityState === PanelVisibilityState.open && _this.props.onOpen) { _this.props.onOpen(); } _this._animationCallback = _this._async.setTimeout(function () { _this.setState({ visibility: newVisibilityState }); _this._onTransitionComplete(newVisibilityState); }, 200); }; _this._clearExistingAnimationTimer = function () { if (_this._animationCallback !== null) { _this._async.clearTimeout(_this._animationCallback); } }; _this._onPanelClick = function (ev) { _this.dismiss(ev); }; _this._onTransitionComplete = function (newVisibilityState) { _this._updateFooterPosition(); if (newVisibilityState === PanelVisibilityState.open && _this.props.onOpened) { _this.props.onOpened(); } if (newVisibilityState === PanelVisibilityState.closed && _this.props.onDismissed) { _this.props.onDismissed(); } }; var _a = _this.props.allowTouchBodyScroll, allowTouchBodyScroll = _a === void 0 ? false : _a; _this._allowTouchBodyScroll = allowTouchBodyScroll; (0, Utilities_1.initializeComponentRef)(_this); (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, { ignoreExternalFocusing: 'focusTrapZoneProps', forceFocusInsideTrap: 'focusTrapZoneProps', firstFocusableSelector: 'focusTrapZoneProps', }); _this.state = { isFooterSticky: false, // intentionally ignore props so animation takes place during componentDidMount visibility: PanelVisibilityState.closed, id: (0, Utilities_1.getId)('Panel'), }; return _this; } PanelBase.getDerivedStateFromProps = function (nextProps, prevState) { if (nextProps.isOpen === undefined) { return null; // no state update } if (nextProps.isOpen && (prevState.visibility === PanelVisibilityState.closed || prevState.visibility === PanelVisibilityState.animatingClosed)) { return { visibility: PanelVisibilityState.animatingOpen }; } if (!nextProps.isOpen && (prevState.visibility === PanelVisibilityState.open || prevState.visibility === PanelVisibilityState.animatingOpen)) { return { visibility: PanelVisibilityState.animatingClosed }; } return null; }; PanelBase.prototype.componentDidMount = function () { this._async = new Utilities_1.Async(this); this._events = new Utilities_1.EventGroup(this); this._events.on(window, 'resize', this._updateFooterPosition); if (this._shouldListenForOuterClick(this.props)) { this._events.on(document.body, 'mousedown', this._dismissOnOuterClick, true); } if (this.props.isOpen) { this.setState({ visibility: PanelVisibilityState.animatingOpen }); } }; PanelBase.prototype.componentDidUpdate = function (previousProps, previousState) { var shouldListenOnOuterClick = this._shouldListenForOuterClick(this.props); var previousShouldListenOnOuterClick = this._shouldListenForOuterClick(previousProps); if (this.state.visibility !== previousState.visibility) { this._clearExistingAnimationTimer(); if (this.state.visibility === PanelVisibilityState.animatingOpen) { this._animateTo(PanelVisibilityState.open); } else if (this.state.visibility === PanelVisibilityState.animatingClosed) { this._animateTo(PanelVisibilityState.closed); } } if (shouldListenOnOuterClick && !previousShouldListenOnOuterClick) { this._events.on(document.body, 'mousedown', this._dismissOnOuterClick, true); } else if (!shouldListenOnOuterClick && previousShouldListenOnOuterClick) { this._events.off(document.body, 'mousedown', this._dismissOnOuterClick, true); } }; PanelBase.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; PanelBase.prototype.render = function () { var _a = this.props, _b = _a.className, className = _b === void 0 ? '' : _b, elementToFocusOnDismiss = _a.elementToFocusOnDismiss, /* eslint-disable deprecation/deprecation */ firstFocusableSelector = _a.firstFocusableSelector, focusTrapZoneProps = _a.focusTrapZoneProps, forceFocusInsideTrap = _a.forceFocusInsideTrap, hasCloseButton = _a.hasCloseButton, headerText = _a.headerText, _c = _a.headerClassName, headerClassName = _c === void 0 ? '' : _c, ignoreExternalFocusing = _a.ignoreExternalFocusing, isBlocking = _a.isBlocking, isFooterAtBottom = _a.isFooterAtBottom, isLightDismiss = _a.isLightDismiss, isHiddenOnDismiss = _a.isHiddenOnDismiss, layerProps = _a.layerProps, overlayProps = _a.overlayProps, popupProps = _a.popupProps, type = _a.type, styles = _a.styles, theme = _a.theme, customWidth = _a.customWidth, _d = _a.onLightDismissClick, onLightDismissClick = _d === void 0 ? this._onPanelClick : _d, _e = _a.onRenderNavigation, onRenderNavigation = _e === void 0 ? this._onRenderNavigation : _e, _f = _a.onRenderHeader, onRenderHeader = _f === void 0 ? this._onRenderHeader : _f, _g = _a.onRenderBody, onRenderBody = _g === void 0 ? this._onRenderBody : _g, _h = _a.onRenderFooter, onRenderFooter = _h === void 0 ? this._onRenderFooter : _h; var _j = this.state, isFooterSticky = _j.isFooterSticky, visibility = _j.visibility, id = _j.id; var isLeft = type === Panel_types_1.PanelType.smallFixedNear || type === Panel_types_1.PanelType.customNear ? true : false; var isRTL = (0, Utilities_1.getRTL)(theme); var isOnRightSide = isRTL ? isLeft : !isLeft; var customWidthStyles = type === Panel_types_1.PanelType.custom || type === Panel_types_1.PanelType.customNear ? { width: customWidth } : {}; var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties); var isOpen = this.isActive; var isAnimating = visibility === PanelVisibilityState.animatingClosed || visibility === PanelVisibilityState.animatingOpen; this._headerTextId = headerText && id + '-headerText'; if (!isOpen && !isAnimating && !isHiddenOnDismiss) { return null; } this._classNames = getClassNames(styles, { theme: theme, className: className, focusTrapZoneClassName: focusTrapZoneProps ? focusTrapZoneProps.className : undefined, hasCloseButton: hasCloseButton, headerClassName: headerClassName, isAnimating: isAnimating, isFooterSticky: isFooterSticky, isFooterAtBottom: isFooterAtBottom, isOnRightSide: isOnRightSide, isOpen: isOpen, isHiddenOnDismiss: isHiddenOnDismiss, type: type, hasCustomNavigation: this._hasCustomNavigation, }); var _k = this, _classNames = _k._classNames, _allowTouchBodyScroll = _k._allowTouchBodyScroll; var overlay; if (isBlocking && isOpen) { overlay = (React.createElement(Overlay_1.Overlay, tslib_1.__assign({ className: _classNames.overlay, isDarkThemed: false, onClick: isLightDismiss ? onLightDismissClick : undefined, allowTouchBodyScroll: _allowTouchBodyScroll }, overlayProps))); } return (React.createElement(Layer_1.Layer, tslib_1.__assign({}, layerProps), React.createElement(Popup_1.Popup, tslib_1.__assign({ role: "dialog", "aria-modal": isBlocking ? 'true' : undefined, ariaLabelledBy: this._headerTextId ? this._headerTextId : undefined, onDismiss: this.dismiss, className: _classNames.hiddenPanel, enableAriaHiddenSiblings: isOpen ? true : false }, popupProps), React.createElement("div", tslib_1.__assign({ "aria-hidden": !isOpen && isAnimating }, nativeProps, { ref: this._panel, className: _classNames.root }), overlay, React.createElement(index_1.FocusTrapZone, tslib_1.__assign({ ignoreExternalFocusing: ignoreExternalFocusing, forceFocusInsideTrap: !isBlocking || (isHiddenOnDismiss && !isOpen) ? false : forceFocusInsideTrap, firstFocusableSelector: firstFocusableSelector, isClickableOutsideFocusTrap: true }, focusTrapZoneProps, { className: _classNames.main, style: customWidthStyles, elementToFocusOnDismiss: elementToFocusOnDismiss }), React.createElement("div", { className: _classNames.contentInner }, React.createElement("div", { ref: this._allowScrollOnPanel, className: _classNames.scrollableContent, "data-is-scrollable": true }, React.createElement("div", { className: _classNames.commands, "data-is-visible": true }, onRenderNavigation(this.props, this._onRenderNavigation)), (this._hasCustomNavigation || !hasCloseButton) && onRenderHeader(this.props, this._onRenderHeader, this._headerTextId), onRenderBody(this.props, this._onRenderBody), onRenderFooter(this.props, this._onRenderFooter)))))))); }; PanelBase.prototype.open = function () { if (this.props.isOpen !== undefined) { return; } if (this.isActive) { return; } this.setState({ visibility: PanelVisibilityState.animatingOpen }); }; PanelBase.prototype.close = function () { if (this.props.isOpen !== undefined) { return; } if (!this.isActive) { return; } this.setState({ visibility: PanelVisibilityState.animatingClosed }); }; Object.defineProperty(PanelBase.prototype, "isActive", { /** isActive is true when panel is open or opening. */ get: function () { return (this.state.visibility === PanelVisibilityState.open || this.state.visibility === PanelVisibilityState.animatingOpen); }, enumerable: false, configurable: true }); PanelBase.prototype._shouldListenForOuterClick = function (props) { return !!props.isBlocking && !!props.isOpen; }; PanelBase.prototype._updateFooterPosition = function () { var scrollableContent = this._scrollableContent; if (scrollableContent) { var height = scrollableContent.clientHeight; var innerHeight_1 = scrollableContent.scrollHeight; this.setState({ isFooterSticky: height < innerHeight_1 ? true : false, }); } }; PanelBase.prototype._dismissOnOuterClick = function (ev) { var panel = this._panel.current; if (this.isActive && panel && !ev.defaultPrevented) { if (!(0, Utilities_1.elementContains)(panel, ev.target)) { if (this.props.onOuterClick) { this.props.onOuterClick(ev); } else { this.dismiss(ev); } } } }; PanelBase.defaultProps = { isHiddenOnDismiss: false, isOpen: undefined, isBlocking: true, hasCloseButton: true, type: Panel_types_1.PanelType.smallFixedFar, }; return PanelBase; }(React.Component)); exports.PanelBase = PanelBase; //# sourceMappingURL=Panel.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Panel = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Panel_base_1 = __webpack_require__(/*! ./Panel.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.base.js"); var Panel_styles_1 = __webpack_require__(/*! ./Panel.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.styles.js"); /** * Panel description */ exports.Panel = (0, Utilities_1.styled)(Panel_base_1.PanelBase, Panel_styles_1.getStyles, undefined, { scope: 'Panel', }); //# sourceMappingURL=Panel.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.styles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a, _b, _c, _d, _e; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Panel_types_1 = __webpack_require__(/*! ./Panel.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.types.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-Panel', main: 'ms-Panel-main', commands: 'ms-Panel-commands', contentInner: 'ms-Panel-contentInner', scrollableContent: 'ms-Panel-scrollableContent', navigation: 'ms-Panel-navigation', closeButton: 'ms-Panel-closeButton ms-PanelAction-close', header: 'ms-Panel-header', headerText: 'ms-Panel-headerText', content: 'ms-Panel-content', footer: 'ms-Panel-footer', footerInner: 'ms-Panel-footerInner', isOpen: 'is-open', hasCloseButton: 'ms-Panel--hasCloseButton', smallFluid: 'ms-Panel--smFluid', smallFixedNear: 'ms-Panel--smLeft', smallFixedFar: 'ms-Panel--sm', medium: 'ms-Panel--md', large: 'ms-Panel--lg', largeFixed: 'ms-Panel--fixed', extraLarge: 'ms-Panel--xl', custom: 'ms-Panel--custom', customNear: 'ms-Panel--customLeft', }; var panelWidth = { full: '100%', auto: 'auto', xs: 272, sm: 340, md1: 592, md2: 644, lg: 940, }; var panelMargin = { auto: 'auto', none: 0, md: 48, lg: 428, xl: 176, }; // Following consts are used below in `getPanelBreakpoints()` function to provide // necessary fallbacks for different types of Panel in different breakpoints. var smallPanelSelectors = (_a = {}, _a["@media (min-width: ".concat(Styling_1.ScreenWidthMinMedium, "px)")] = { width: panelWidth.sm, }, _a); var mediumPanelSelectors = (_b = {}, _b["@media (min-width: ".concat(Styling_1.ScreenWidthMinLarge, "px)")] = { width: panelWidth.md1, }, _b["@media (min-width: ".concat(Styling_1.ScreenWidthMinXLarge, "px)")] = { width: panelWidth.md2, }, _b); var largePanelSelectors = (_c = {}, _c["@media (min-width: ".concat(Styling_1.ScreenWidthMinUhfMobile, "px)")] = { left: panelMargin.md, width: panelWidth.auto, }, _c["@media (min-width: ".concat(Styling_1.ScreenWidthMinXXLarge, "px)")] = { left: panelMargin.lg, }, _c); var largeFixedPanelSelectors = (_d = {}, _d["@media (min-width: ".concat(Styling_1.ScreenWidthMinXXLarge, "px)")] = { left: panelMargin.auto, width: panelWidth.lg, }, _d); var extraLargePanelSelectors = (_e = {}, _e["@media (min-width: ".concat(Styling_1.ScreenWidthMinXXLarge, "px)")] = { left: panelMargin.xl, }, _e); // Make sure Panels have fallbacks to different breakpoints by reusing same selectors. // This is done in the effort to follow design redlines. var getPanelBreakpoints = function (type) { var selectors; // Panel types `smallFluid`, `smallFixedNear`, `custom` and `customNear` // are not checked in here because they render the same in all the breakpoints // and have the checks done separately in the `getStyles` function below. switch (type) { case Panel_types_1.PanelType.smallFixedFar: selectors = tslib_1.__assign({}, smallPanelSelectors); break; case Panel_types_1.PanelType.medium: selectors = tslib_1.__assign(tslib_1.__assign({}, smallPanelSelectors), mediumPanelSelectors); break; case Panel_types_1.PanelType.large: selectors = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, smallPanelSelectors), mediumPanelSelectors), largePanelSelectors); break; case Panel_types_1.PanelType.largeFixed: selectors = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, smallPanelSelectors), mediumPanelSelectors), largePanelSelectors), largeFixedPanelSelectors); break; case Panel_types_1.PanelType.extraLarge: selectors = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, smallPanelSelectors), mediumPanelSelectors), largePanelSelectors), extraLargePanelSelectors); break; default: break; } return selectors; }; var commandBarHeight = '44px'; var sharedPaddingStyles = { paddingLeft: '24px', paddingRight: '24px', }; var getStyles = function (props) { var _a, _b, _c, _d; var className = props.className, focusTrapZoneClassName = props.focusTrapZoneClassName, hasCloseButton = props.hasCloseButton, headerClassName = props.headerClassName, isAnimating = props.isAnimating, isFooterSticky = props.isFooterSticky, isFooterAtBottom = props.isFooterAtBottom, isOnRightSide = props.isOnRightSide, isOpen = props.isOpen, isHiddenOnDismiss = props.isHiddenOnDismiss, hasCustomNavigation = props.hasCustomNavigation, theme = props.theme, _e = props.type, type = _e === void 0 ? Panel_types_1.PanelType.smallFixedFar : _e; var effects = theme.effects, fonts = theme.fonts, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var isCustomPanel = type === Panel_types_1.PanelType.custom || type === Panel_types_1.PanelType.customNear; return { root: [ classNames.root, theme.fonts.medium, isOpen && classNames.isOpen, hasCloseButton && classNames.hasCloseButton, { pointerEvents: 'none', position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, }, isCustomPanel && isOnRightSide && classNames.custom, isCustomPanel && !isOnRightSide && classNames.customNear, className, ], overlay: [ { pointerEvents: 'auto', cursor: 'pointer', }, isOpen && isAnimating && Styling_1.AnimationClassNames.fadeIn100, !isOpen && isAnimating && Styling_1.AnimationClassNames.fadeOut100, ], hiddenPanel: [ !isOpen && !isAnimating && isHiddenOnDismiss && { visibility: 'hidden', }, ], main: [ classNames.main, { backgroundColor: semanticColors.bodyBackground, boxShadow: effects.elevation64, pointerEvents: 'auto', position: 'absolute', display: 'flex', flexDirection: 'column', overflowX: 'hidden', overflowY: 'auto', WebkitOverflowScrolling: 'touch', bottom: 0, top: 0, // left, right, width are overridden depending on the type of the Panel and the screen breakpoint. left: panelMargin.auto, right: panelMargin.none, width: panelWidth.full, selectors: tslib_1.__assign((_a = {}, _a[Styling_1.HighContrastSelector] = { borderLeft: "3px solid ".concat(semanticColors.variantBorder), borderRight: "3px solid ".concat(semanticColors.variantBorder), }, _a), getPanelBreakpoints(type)), }, type === Panel_types_1.PanelType.smallFluid && { left: panelMargin.none, }, type === Panel_types_1.PanelType.smallFixedNear && { left: panelMargin.none, right: panelMargin.auto, width: panelWidth.xs, }, type === Panel_types_1.PanelType.customNear && { right: 'auto', left: 0, }, isCustomPanel && { maxWidth: '100vw', }, isOpen && isAnimating && !isOnRightSide && Styling_1.AnimationClassNames.slideRightIn40, isOpen && isAnimating && isOnRightSide && Styling_1.AnimationClassNames.slideLeftIn40, !isOpen && isAnimating && !isOnRightSide && Styling_1.AnimationClassNames.slideLeftOut40, !isOpen && isAnimating && isOnRightSide && Styling_1.AnimationClassNames.slideRightOut40, focusTrapZoneClassName, ], commands: [ classNames.commands, { // Ensures that the sticky header always has a background to prevent overlaps on scroll. backgroundColor: semanticColors.bodyBackground, paddingTop: 18, selectors: (_b = {}, _b["@media (min-height: ".concat(Styling_1.ScreenWidthMinMedium, "px)")] = { position: 'sticky', top: 0, zIndex: 1, }, _b), }, hasCustomNavigation && { paddingTop: 'inherit', }, ], navigation: [ classNames.navigation, { display: 'flex', justifyContent: 'flex-end', }, hasCustomNavigation && { height: commandBarHeight, }, ], contentInner: [ classNames.contentInner, { display: 'flex', flexDirection: 'column', flexGrow: 1, overflowY: 'hidden', }, ], header: [ classNames.header, sharedPaddingStyles, { alignSelf: 'flex-start', }, hasCloseButton && !hasCustomNavigation && { flexGrow: 1, }, hasCustomNavigation && { // Ensure that title doesn't shrink if screen is too small flexShrink: 0, }, ], headerText: [ classNames.headerText, fonts.xLarge, { color: semanticColors.bodyText, lineHeight: '27px', overflowWrap: 'break-word', wordWrap: 'break-word', wordBreak: 'break-word', hyphens: 'auto', }, headerClassName, ], scrollableContent: [ classNames.scrollableContent, { overflowY: 'auto', }, isFooterAtBottom && { flexGrow: 1, display: 'inherit', flexDirection: 'inherit', }, ], content: [ classNames.content, sharedPaddingStyles, { paddingBottom: 20, }, isFooterAtBottom && { selectors: (_c = {}, _c["@media (min-height: ".concat(Styling_1.ScreenWidthMinMedium, "px)")] = { flexGrow: 1, }, _c), }, ], footer: [ classNames.footer, { // Ensure that footer doesn't shrink if screen is too small flexShrink: 0, borderTop: '1px solid transparent', transition: "opacity ".concat(Styling_1.AnimationVariables.durationValue3, " ").concat(Styling_1.AnimationVariables.easeFunction2), selectors: (_d = {}, _d["@media (min-height: ".concat(Styling_1.ScreenWidthMinMedium, "px)")] = { position: 'sticky', bottom: 0, }, _d), }, isFooterSticky && { backgroundColor: semanticColors.bodyBackground, borderTopColor: semanticColors.variantBorder, }, ], footerInner: [ classNames.footerInner, sharedPaddingStyles, { paddingBottom: 16, paddingTop: 16, }, ], subComponentStyles: { closeButton: { root: [ classNames.closeButton, { marginRight: 14, color: theme.palette.neutralSecondary, fontSize: Styling_1.IconFontSizes.large, }, hasCustomNavigation && { marginRight: 0, height: 'auto', width: '44px', }, ], rootHovered: { color: theme.palette.neutralPrimary, }, }, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Panel.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PanelType = void 0; /** * {@docCategory Panel} */ var PanelType; (function (PanelType) { /** * Renders the Panel with a `fluid` (full screen) width. * Recommended for use on small screen breakpoints. * - Small (320-479): full screen width, 16px left/right padding * - Medium (480-639): full screen width, 16px left/right padding * - Large (640-1023): full screen width, 32px left/right padding * - XLarge (1024-1365): full screen width, 32px left/right padding * - XXLarge (1366-up): full screen width, 40px left/right padding */ PanelType[PanelType["smallFluid"] = 0] = "smallFluid"; /** * Renders the Panel in fixed-width `small` size, anchored to the far side (right in LTR mode). * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint * - Medium (480-639): 340px width, 16px left/right padding * - Large (640-1023): 340px width, 32px left/right padding * - XLarge (1024-1365): 340px width, 32px left/right padding * - XXLarge (1366-up): 340px width, 40px left/right padding */ PanelType[PanelType["smallFixedFar"] = 1] = "smallFixedFar"; /** * Renders the Panel in fixed-width `small` size, anchored to the near side (left in LTR mode). * - Small (320-479): 272px width, 16px left/right padding * - Medium (480-639): 272px width, 16px left/right padding * - Large (640-1023): 272px width, 32px left/right padding * - XLarge (1024-1365): 272px width, 32px left/right padding * - XXLarge (1366-up): 272px width, 40px left/right padding */ PanelType[PanelType["smallFixedNear"] = 2] = "smallFixedNear"; /** * Renders the Panel in `medium` size, anchored to the far side (right in LTR mode). * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint * - Large (640-1023): 592px width, 32px left/right padding * - XLarge (1024-1365): 644px width, 32px left/right padding * - XXLarge (1366-up): 644px width, 40px left/right padding */ PanelType[PanelType["medium"] = 3] = "medium"; /** * Renders the Panel in `large` size, anchored to the far side (right in LTR mode). * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint * - XLarge (1024-1365): 48px fixed left margin, fluid width, 32px left/right padding * - XXLarge (1366-up): 428px fixed left margin, fluid width, 40px left/right padding */ PanelType[PanelType["large"] = 4] = "large"; /** * Renders the Panel in `large` size, anchored to the far side (right in LTR mode), with a fixed width at * XX-Large breakpoint. * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint * - XLarge (1024-1365): 48px fixed left margin, fluid width, 32px left/right padding * - XXLarge (1366-up): 940px width, 40px left/right padding */ PanelType[PanelType["largeFixed"] = 5] = "largeFixed"; /** * Renders the Panel in `extra large` size, anchored to the far side (right in LTR mode). * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint * - XLarge (1024-1365): adapts to `PanelType.large` at this breakpoint * - XXLarge (1366-1919): 176px fixed left margin, fluid width, 40px left/right padding * - XXXLarge (1920-up): 176px fixed left margin, fluid width, 40px left/right padding */ PanelType[PanelType["extraLarge"] = 6] = "extraLarge"; /** * Renders the Panel in `custom` size using `customWidth`, anchored to the far side (right in LTR mode). * - Has a fixed width provided by the `customWidth` prop * - When screen width reaches the `customWidth` value it will behave like a fluid width Panel * taking up 100% of the viewport width */ PanelType[PanelType["custom"] = 7] = "custom"; /** * Renders the Panel in `custom` size using `customWidth`, anchored to the near side (left in LTR mode). * - Has a fixed width provided by the `customWidth` prop * - When screen width reaches the `customWidth` value it will behave like a fluid width Panel * taking up 100% of the viewport width */ PanelType[PanelType["customNear"] = 8] = "customNear"; })(PanelType = exports.PanelType || (exports.PanelType = {})); //# sourceMappingURL=Panel.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Panel/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__(/*! ./Panel */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Panel.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Panel.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/Panel.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.base.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.base.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaBase = 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 Tooltip_1 = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); var PersonaCoin_1 = __webpack_require__(/*! ./PersonaCoin/PersonaCoin */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.js"); var Persona_types_1 = __webpack_require__(/*! ./Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var DEFAULT_PROPS = { size: Persona_types_1.PersonaSize.size48, presence: Persona_types_1.PersonaPresence.none, imageAlt: '', showOverflowTooltip: true, }; function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'Persona', props: props, deprecations: { primaryText: 'text' }, }); } } /** * Persona with no default styles. * [Use the `styles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling) */ exports.PersonaBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); useDebugWarnings(props); var rootRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(forwardedRef, rootRef); /** * Deprecation helper for getting text. */ var getText = function () { // eslint-disable-next-line deprecation/deprecation return props.text || props.primaryText || ''; }; /** * Renders various types of Text (primaryText, secondaryText, etc) * based on the classNames passed * @param elementClassNames - element className * @param renderFunction - render function * @param defaultRenderFunction - default render function */ var renderElement = function (elementClassNames, renderFunction, defaultRenderFunction) { var content = renderFunction && renderFunction(props, defaultRenderFunction); return content ? (React.createElement("div", { dir: "auto", className: elementClassNames }, content)) : undefined; }; /** * using closure to wrap the default render behavior * to make it independent of the type of text passed * @param text - text to render */ var onRenderText = function (text, tooltip) { if (tooltip === void 0) { tooltip = true; } // return default render behavior for valid text or undefined return text ? tooltip ? function () { // default onRender behavior return (React.createElement(Tooltip_1.TooltipHost, { content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent, directionalHint: DirectionalHint_1.DirectionalHint.topLeftEdge }, text)); } : function () { return React.createElement(React.Fragment, null, text); } : undefined; }; var onInternalRenderPersonaCoin = function (providedCoinProps) { return React.createElement(PersonaCoin_1.PersonaCoin, tslib_1.__assign({}, providedCoinProps)); }; // wrapping default render behavior based on various props properties var onInternalRenderPrimaryText = onRenderText(getText(), props.showOverflowTooltip); var onInternalRenderSecondaryText = onRenderText(props.secondaryText, props.showOverflowTooltip); var onInternalRenderTertiaryText = onRenderText(props.tertiaryText, props.showOverflowTooltip); var onInternalRenderOptionalText = onRenderText(props.optionalText, props.showOverflowTooltip); var hidePersonaDetails = props.hidePersonaDetails, _a = props.onRenderOptionalText, onRenderOptionalText = _a === void 0 ? onInternalRenderOptionalText : _a, _b = props.onRenderPrimaryText, onRenderPrimaryText = _b === void 0 ? onInternalRenderPrimaryText : _b, _c = props.onRenderSecondaryText, onRenderSecondaryText = _c === void 0 ? onInternalRenderSecondaryText : _c, _d = props.onRenderTertiaryText, onRenderTertiaryText = _d === void 0 ? onInternalRenderTertiaryText : _d, _e = props.onRenderPersonaCoin, onRenderPersonaCoin = _e === void 0 ? onInternalRenderPersonaCoin : _e; var size = props.size; // These properties are to be explicitly passed into PersonaCoin because they are the only props directly used var allowPhoneInitials = props.allowPhoneInitials, className = props.className, coinProps = props.coinProps, showUnknownPersonaCoin = props.showUnknownPersonaCoin, coinSize = props.coinSize, styles = props.styles, imageAlt = props.imageAlt, imageInitials = props.imageInitials, imageShouldFadeIn = props.imageShouldFadeIn, imageShouldStartVisible = props.imageShouldStartVisible, imageUrl = props.imageUrl, initialsColor = props.initialsColor, initialsTextColor = props.initialsTextColor, isOutOfOffice = props.isOutOfOffice, onPhotoLoadingStateChange = props.onPhotoLoadingStateChange, // eslint-disable-next-line deprecation/deprecation onRenderCoin = props.onRenderCoin, onRenderInitials = props.onRenderInitials, presence = props.presence, presenceTitle = props.presenceTitle, presenceColors = props.presenceColors, showInitialsUntilImageLoads = props.showInitialsUntilImageLoads, showSecondaryText = props.showSecondaryText, theme = props.theme; var personaCoinProps = tslib_1.__assign({ allowPhoneInitials: allowPhoneInitials, showUnknownPersonaCoin: showUnknownPersonaCoin, coinSize: coinSize, imageAlt: imageAlt, imageInitials: imageInitials, imageShouldFadeIn: imageShouldFadeIn, imageShouldStartVisible: imageShouldStartVisible, imageUrl: imageUrl, initialsColor: initialsColor, initialsTextColor: initialsTextColor, onPhotoLoadingStateChange: onPhotoLoadingStateChange, onRenderCoin: onRenderCoin, onRenderInitials: onRenderInitials, presence: presence, presenceTitle: presenceTitle, showInitialsUntilImageLoads: showInitialsUntilImageLoads, size: size, text: getText(), isOutOfOffice: isOutOfOffice, presenceColors: presenceColors }, coinProps); var classNames = getClassNames(styles, { theme: theme, className: className, showSecondaryText: showSecondaryText, presence: presence, size: size, }); var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties); var personaDetails = (React.createElement("div", { className: classNames.details }, renderElement(classNames.primaryText, onRenderPrimaryText, onInternalRenderPrimaryText), renderElement(classNames.secondaryText, onRenderSecondaryText, onInternalRenderSecondaryText), renderElement(classNames.tertiaryText, onRenderTertiaryText, onInternalRenderTertiaryText), renderElement(classNames.optionalText, onRenderOptionalText, onInternalRenderOptionalText), props.children)); return (React.createElement("div", tslib_1.__assign({}, divProps, { ref: mergedRootRef, className: classNames.root, style: coinSize ? { height: coinSize, minWidth: coinSize } : undefined }), onRenderPersonaCoin(personaCoinProps, onRenderPersonaCoin), /* eslint-disable deprecation/deprecation */ (!hidePersonaDetails || size === Persona_types_1.PersonaSize.size8 || size === Persona_types_1.PersonaSize.size10 || size === Persona_types_1.PersonaSize.tiny) && personaDetails /* eslint-enable deprecation/deprecation */ )); }); exports.PersonaBase.displayName = 'PersonaBase'; //# sourceMappingURL=Persona.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Persona = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Persona_base_1 = __webpack_require__(/*! ./Persona.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.base.js"); var Persona_styles_1 = __webpack_require__(/*! ./Persona.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.styles.js"); /** * Personas are used for rendering an individual's avatar, presence and details. * They are used within the PeoplePicker components. */ exports.Persona = (0, Utilities_1.styled)(Persona_base_1.PersonaBase, Persona_styles_1.getStyles, undefined, { scope: 'Persona', }); //# sourceMappingURL=Persona.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.styles.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.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 PersonaConsts_1 = __webpack_require__(/*! ./PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js"); var GlobalClassNames = { root: 'ms-Persona', size8: 'ms-Persona--size8', size10: 'ms-Persona--size10', size16: 'ms-Persona--size16', size24: 'ms-Persona--size24', size28: 'ms-Persona--size28', size32: 'ms-Persona--size32', size40: 'ms-Persona--size40', size48: 'ms-Persona--size48', size56: 'ms-Persona--size56', size72: 'ms-Persona--size72', size100: 'ms-Persona--size100', size120: 'ms-Persona--size120', available: 'ms-Persona--online', away: 'ms-Persona--away', blocked: 'ms-Persona--blocked', busy: 'ms-Persona--busy', doNotDisturb: 'ms-Persona--donotdisturb', offline: 'ms-Persona--offline', details: 'ms-Persona-details', primaryText: 'ms-Persona-primaryText', secondaryText: 'ms-Persona-secondaryText', tertiaryText: 'ms-Persona-tertiaryText', optionalText: 'ms-Persona-optionalText', textContent: 'ms-Persona-textContent', }; var getStyles = function (props) { var className = props.className, showSecondaryText = props.showSecondaryText, theme = props.theme; var semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var size = (0, PersonaConsts_1.sizeBoolean)(props.size); var presence = (0, PersonaConsts_1.presenceBoolean)(props.presence); var showSecondaryTextDefaultHeight = '16px'; var sharedTextStyles = { color: semanticColors.bodySubtext, fontWeight: Styling_1.FontWeights.regular, fontSize: fonts.small.fontSize, }; return { root: [ classNames.root, theme.fonts.medium, Styling_1.normalize, { color: semanticColors.bodyText, position: 'relative', height: PersonaConsts_1.personaSize.size48, minWidth: PersonaConsts_1.personaSize.size48, display: 'flex', alignItems: 'center', selectors: { '.contextualHost': { display: 'none', }, }, }, size.isSize8 && [ classNames.size8, { height: PersonaConsts_1.personaSize.size8, minWidth: PersonaConsts_1.personaSize.size8, }, ], // TODO: Deprecated size and needs to be removed in a future major release. size.isSize10 && [ classNames.size10, { height: PersonaConsts_1.personaSize.size10, minWidth: PersonaConsts_1.personaSize.size10, }, ], // TODO: Deprecated size and needs to be removed in a future major release. size.isSize16 && [ classNames.size16, { height: PersonaConsts_1.personaSize.size16, minWidth: PersonaConsts_1.personaSize.size16, }, ], size.isSize24 && [ classNames.size24, { height: PersonaConsts_1.personaSize.size24, minWidth: PersonaConsts_1.personaSize.size24, }, ], size.isSize24 && showSecondaryText && { height: '36px', }, // TODO: Deprecated size and needs to be removed in a future major release. size.isSize28 && [ classNames.size28, { height: PersonaConsts_1.personaSize.size28, minWidth: PersonaConsts_1.personaSize.size28, }, ], size.isSize28 && showSecondaryText && { height: '32px', }, size.isSize32 && [ classNames.size32, { height: PersonaConsts_1.personaSize.size32, minWidth: PersonaConsts_1.personaSize.size32, }, ], size.isSize40 && [ classNames.size40, { height: PersonaConsts_1.personaSize.size40, minWidth: PersonaConsts_1.personaSize.size40, }, ], size.isSize48 && classNames.size48, size.isSize56 && [ classNames.size56, { height: PersonaConsts_1.personaSize.size56, minWidth: PersonaConsts_1.personaSize.size56, }, ], size.isSize72 && [ classNames.size72, { height: PersonaConsts_1.personaSize.size72, minWidth: PersonaConsts_1.personaSize.size72, }, ], size.isSize100 && [ classNames.size100, { height: PersonaConsts_1.personaSize.size100, minWidth: PersonaConsts_1.personaSize.size100, }, ], size.isSize120 && [ classNames.size120, { height: PersonaConsts_1.personaSize.size120, minWidth: PersonaConsts_1.personaSize.size120, }, ], /** * Modifiers: presence */ presence.isAvailable && classNames.available, presence.isAway && classNames.away, presence.isBlocked && classNames.blocked, presence.isBusy && classNames.busy, presence.isDoNotDisturb && classNames.doNotDisturb, presence.isOffline && classNames.offline, className, ], details: [ classNames.details, { padding: '0 24px 0 16px', minWidth: 0, width: '100%', textAlign: 'left', display: 'flex', flexDirection: 'column', justifyContent: 'space-around', }, (size.isSize8 || size.isSize10) && { paddingLeft: 17, // increased padding because we don't render a coin at this size }, (size.isSize24 || size.isSize28 || size.isSize32) && { padding: '0 8px', }, (size.isSize40 || size.isSize48) && { padding: '0 12px', }, ], primaryText: [ classNames.primaryText, Styling_1.noWrap, { color: semanticColors.bodyText, fontWeight: Styling_1.FontWeights.regular, fontSize: fonts.medium.fontSize, selectors: { ':hover': { color: semanticColors.inputTextHovered, }, }, }, showSecondaryText && { height: showSecondaryTextDefaultHeight, lineHeight: showSecondaryTextDefaultHeight, overflowX: 'hidden', }, (size.isSize8 || size.isSize10) && { fontSize: fonts.small.fontSize, lineHeight: PersonaConsts_1.personaSize.size8, }, size.isSize16 && { lineHeight: PersonaConsts_1.personaSize.size28, }, (size.isSize24 || size.isSize28 || size.isSize32 || size.isSize40 || size.isSize48) && showSecondaryText && { height: 18, }, (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && { fontSize: fonts.xLarge.fontSize, }, (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && showSecondaryText && { height: 22, }, ], secondaryText: [ classNames.secondaryText, Styling_1.noWrap, sharedTextStyles, (size.isSize8 || size.isSize10 || size.isSize16 || size.isSize24 || size.isSize28 || size.isSize32) && { display: 'none', }, showSecondaryText && { display: 'block', height: showSecondaryTextDefaultHeight, lineHeight: showSecondaryTextDefaultHeight, overflowX: 'hidden', }, size.isSize24 && showSecondaryText && { height: 18, }, (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && { fontSize: fonts.medium.fontSize, }, (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && showSecondaryText && { height: 18, }, ], tertiaryText: [ classNames.tertiaryText, Styling_1.noWrap, sharedTextStyles, { display: 'none', fontSize: fonts.medium.fontSize, }, (size.isSize72 || size.isSize100 || size.isSize120) && { display: 'block', }, ], optionalText: [ classNames.optionalText, Styling_1.noWrap, sharedTextStyles, { display: 'none', fontSize: fonts.medium.fontSize, }, (size.isSize100 || size.isSize120) && { display: 'block', }, ], textContent: [classNames.textContent, Styling_1.noWrap], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Persona.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaInitialsColor = exports.PersonaPresence = exports.PersonaSize = void 0; /** * {@docCategory Persona} */ var PersonaSize; (function (PersonaSize) { /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size8` instead. */ PersonaSize[PersonaSize["tiny"] = 0] = "tiny"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size24` instead. */ PersonaSize[PersonaSize["extraExtraSmall"] = 1] = "extraExtraSmall"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size32` instead. */ PersonaSize[PersonaSize["extraSmall"] = 2] = "extraSmall"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size40` instead. */ PersonaSize[PersonaSize["small"] = 3] = "small"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size48` instead. */ PersonaSize[PersonaSize["regular"] = 4] = "regular"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size72` instead. */ PersonaSize[PersonaSize["large"] = 5] = "large"; /** * Deprecated in favor of standardized numeric sizing. * @deprecated Use `size100` instead. */ PersonaSize[PersonaSize["extraLarge"] = 6] = "extraLarge"; /** * No `PersonaCoin` is rendered. */ PersonaSize[PersonaSize["size8"] = 17] = "size8"; /** * No `PersonaCoin` is rendered. Deprecated to align with design specifications. * @deprecated Use `size8` instead. */ PersonaSize[PersonaSize["size10"] = 9] = "size10"; /** * Renders a 16px `PersonaCoin`. * @deprecated Deprecated due to not being in the design specification. */ PersonaSize[PersonaSize["size16"] = 8] = "size16"; /** * Renders a 24px `PersonaCoin`. */ PersonaSize[PersonaSize["size24"] = 10] = "size24"; /** * Renders a 28px `PersonaCoin`. * @deprecated Deprecated due to not being in the design specification. */ PersonaSize[PersonaSize["size28"] = 7] = "size28"; /** * Renders a 32px `PersonaCoin`. */ PersonaSize[PersonaSize["size32"] = 11] = "size32"; /** * Renders a 40px `PersonaCoin`. */ PersonaSize[PersonaSize["size40"] = 12] = "size40"; /** * Renders a 48px `PersonaCoin`. */ PersonaSize[PersonaSize["size48"] = 13] = "size48"; /** * Renders a 56px `PersonaCoin`. */ PersonaSize[PersonaSize["size56"] = 16] = "size56"; /** * Renders a 72px `PersonaCoin`. */ PersonaSize[PersonaSize["size72"] = 14] = "size72"; /** * Renders a 100px `PersonaCoin`. */ PersonaSize[PersonaSize["size100"] = 15] = "size100"; /** * Renders a 120px `PersonaCoin`. */ PersonaSize[PersonaSize["size120"] = 18] = "size120"; })(PersonaSize = exports.PersonaSize || (exports.PersonaSize = {})); /** * {@docCategory Persona} */ var PersonaPresence; (function (PersonaPresence) { PersonaPresence[PersonaPresence["none"] = 0] = "none"; PersonaPresence[PersonaPresence["offline"] = 1] = "offline"; PersonaPresence[PersonaPresence["online"] = 2] = "online"; PersonaPresence[PersonaPresence["away"] = 3] = "away"; PersonaPresence[PersonaPresence["dnd"] = 4] = "dnd"; PersonaPresence[PersonaPresence["blocked"] = 5] = "blocked"; PersonaPresence[PersonaPresence["busy"] = 6] = "busy"; })(PersonaPresence = exports.PersonaPresence || (exports.PersonaPresence = {})); /** * {@docCategory Persona} */ var PersonaInitialsColor; (function (PersonaInitialsColor) { PersonaInitialsColor[PersonaInitialsColor["lightBlue"] = 0] = "lightBlue"; PersonaInitialsColor[PersonaInitialsColor["blue"] = 1] = "blue"; PersonaInitialsColor[PersonaInitialsColor["darkBlue"] = 2] = "darkBlue"; PersonaInitialsColor[PersonaInitialsColor["teal"] = 3] = "teal"; PersonaInitialsColor[PersonaInitialsColor["lightGreen"] = 4] = "lightGreen"; PersonaInitialsColor[PersonaInitialsColor["green"] = 5] = "green"; PersonaInitialsColor[PersonaInitialsColor["darkGreen"] = 6] = "darkGreen"; PersonaInitialsColor[PersonaInitialsColor["lightPink"] = 7] = "lightPink"; PersonaInitialsColor[PersonaInitialsColor["pink"] = 8] = "pink"; PersonaInitialsColor[PersonaInitialsColor["magenta"] = 9] = "magenta"; PersonaInitialsColor[PersonaInitialsColor["purple"] = 10] = "purple"; /** * @deprecated `black` is a color that can result in offensive persona coins with some initials combinations, * so it can only be set with overrides. Will be removed in a future major release. */ PersonaInitialsColor[PersonaInitialsColor["black"] = 11] = "black"; PersonaInitialsColor[PersonaInitialsColor["orange"] = 12] = "orange"; /** * @deprecated `red` is a color that often has a special meaning, so it is considered a reserved color and * can only be set with overrides. Will be removed in a future major release. */ PersonaInitialsColor[PersonaInitialsColor["red"] = 13] = "red"; PersonaInitialsColor[PersonaInitialsColor["darkRed"] = 14] = "darkRed"; /** * Transparent is not intended to be used with typical initials due to accessibility issues. * Its primary use is for overflow buttons, so it is considered a reserved color and can only be set with overrides. */ PersonaInitialsColor[PersonaInitialsColor["transparent"] = 15] = "transparent"; PersonaInitialsColor[PersonaInitialsColor["violet"] = 16] = "violet"; PersonaInitialsColor[PersonaInitialsColor["lightRed"] = 17] = "lightRed"; PersonaInitialsColor[PersonaInitialsColor["gold"] = 18] = "gold"; PersonaInitialsColor[PersonaInitialsColor["burgundy"] = 19] = "burgundy"; PersonaInitialsColor[PersonaInitialsColor["warmGray"] = 20] = "warmGray"; PersonaInitialsColor[PersonaInitialsColor["coolGray"] = 21] = "coolGray"; /** * `gray` is a color that can result in offensive persona coins with some initials combinations, * so it can only be set with overrides. */ PersonaInitialsColor[PersonaInitialsColor["gray"] = 22] = "gray"; PersonaInitialsColor[PersonaInitialsColor["cyan"] = 23] = "cyan"; PersonaInitialsColor[PersonaInitialsColor["rust"] = 24] = "rust"; })(PersonaInitialsColor = exports.PersonaInitialsColor || (exports.PersonaInitialsColor = {})); //# sourceMappingURL=Persona.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaCoinBase = 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 index_1 = __webpack_require__(/*! ../PersonaPresence/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/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 Persona_types_1 = __webpack_require__(/*! ../Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"); var PersonaInitialsColor_1 = __webpack_require__(/*! ../PersonaInitialsColor */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaInitialsColor.js"); var PersonaConsts_1 = __webpack_require__(/*! ../PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.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)({ // There can be many PersonaCoin rendered with different sizes. // Therefore setting a larger cache size. cacheSize: 100, }); var getInitialsStyles = (0, Utilities_1.memoizeFunction)(function (className, initialsColor, initialsTextColor, text, primaryText, showUnknownPersonaCoin) { return (0, Styling_1.mergeStyles)(className, !showUnknownPersonaCoin && { backgroundColor: (0, PersonaInitialsColor_1.getPersonaInitialsColor)({ text: text, initialsColor: initialsColor, primaryText: primaryText }), color: initialsTextColor, }); }); var DEFAULT_PROPS = { size: Persona_types_1.PersonaSize.size48, presence: Persona_types_1.PersonaPresence.none, imageAlt: '', }; function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'PersonaCoin', props: props, deprecations: { primaryText: 'text' }, }); } } function useImageLoadState(_a) { var onPhotoLoadingStateChange = _a.onPhotoLoadingStateChange, imageUrl = _a.imageUrl; var _b = React.useState(Image_1.ImageLoadState.notLoaded), imageLoadState = _b[0], setImageLoadstate = _b[1]; React.useEffect(function () { setImageLoadstate(Image_1.ImageLoadState.notLoaded); }, [imageUrl]); var onLoadingStateChange = function (loadState) { setImageLoadstate(loadState); onPhotoLoadingStateChange === null || onPhotoLoadingStateChange === void 0 ? void 0 : onPhotoLoadingStateChange(loadState); }; return [imageLoadState, onLoadingStateChange]; } /** * PersonaCoin with no default styles. * [Use the `getStyles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling) */ exports.PersonaCoinBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); useDebugWarnings(props); var _a = useImageLoadState(props), imageLoadState = _a[0], onLoadingStateChange = _a[1]; var renderCoin = getCoinRenderer(onLoadingStateChange); var className = props.className, coinProps = props.coinProps, showUnknownPersonaCoin = props.showUnknownPersonaCoin, coinSize = props.coinSize, styles = props.styles, imageUrl = props.imageUrl, initialsColor = props.initialsColor, initialsTextColor = props.initialsTextColor, isOutOfOffice = props.isOutOfOffice, // eslint-disable-next-line deprecation/deprecation _b = props.onRenderCoin, // eslint-disable-next-line deprecation/deprecation onRenderCoin = _b === void 0 ? renderCoin : _b, // eslint-disable-next-line deprecation/deprecation _c = props.onRenderPersonaCoin, // eslint-disable-next-line deprecation/deprecation onRenderPersonaCoin = _c === void 0 ? onRenderCoin : _c, _d = props.onRenderInitials, onRenderInitials = _d === void 0 ? renderPersonaCoinInitials : _d, presence = props.presence, presenceTitle = props.presenceTitle, presenceColors = props.presenceColors, // eslint-disable-next-line deprecation/deprecation primaryText = props.primaryText, showInitialsUntilImageLoads = props.showInitialsUntilImageLoads, text = props.text, theme = props.theme, size = props.size; var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties); var divCoinProps = (0, Utilities_1.getNativeProps)(coinProps || {}, Utilities_1.divProperties); var coinSizeStyle = coinSize ? { width: coinSize, height: coinSize } : undefined; var hideImage = showUnknownPersonaCoin; var personaPresenceProps = { coinSize: coinSize, isOutOfOffice: isOutOfOffice, presence: presence, presenceTitle: presenceTitle, presenceColors: presenceColors, size: size, theme: theme, }; // Use getStyles from props, or fall back to getStyles from styles file. var classNames = getClassNames(styles, { theme: theme, className: coinProps && coinProps.className ? coinProps.className : className, size: size, coinSize: coinSize, showUnknownPersonaCoin: showUnknownPersonaCoin, }); var shouldRenderInitials = Boolean(imageLoadState !== Image_1.ImageLoadState.loaded && ((showInitialsUntilImageLoads && imageUrl) || !imageUrl || imageLoadState === Image_1.ImageLoadState.error || hideImage)); return (React.createElement("div", tslib_1.__assign({ role: "presentation" }, divProps, { className: classNames.coin, ref: forwardedRef }), // Render PersonaCoin if size is not size8. size10 and tiny need to removed after a deprecation cleanup. // eslint-disable-next-line deprecation/deprecation size !== Persona_types_1.PersonaSize.size8 && size !== Persona_types_1.PersonaSize.size10 && size !== Persona_types_1.PersonaSize.tiny ? (React.createElement("div", tslib_1.__assign({ role: "presentation" }, divCoinProps, { className: classNames.imageArea, style: coinSizeStyle }), shouldRenderInitials && (React.createElement("div", { className: getInitialsStyles(classNames.initials, initialsColor, initialsTextColor, text, primaryText, showUnknownPersonaCoin), style: coinSizeStyle, "aria-hidden": "true" }, onRenderInitials(props, renderPersonaCoinInitials))), !hideImage && onRenderPersonaCoin(props, renderCoin), React.createElement(index_1.PersonaPresence, tslib_1.__assign({}, personaPresenceProps)))) : // Otherwise, render just PersonaPresence. props.presence ? (React.createElement(index_1.PersonaPresence, tslib_1.__assign({}, personaPresenceProps))) : ( // Just render Contact Icon if there isn't a Presence prop. React.createElement(Icon_1.Icon, { iconName: "Contact", className: classNames.size10WithoutPresenceIcon })), props.children)); }); exports.PersonaCoinBase.displayName = 'PersonaCoinBase'; var getCoinRenderer = function (onLoadingStateChange) { return function (_a) { var coinSize = _a.coinSize, styles = _a.styles, imageUrl = _a.imageUrl, imageAlt = _a.imageAlt, imageShouldFadeIn = _a.imageShouldFadeIn, imageShouldStartVisible = _a.imageShouldStartVisible, theme = _a.theme, showUnknownPersonaCoin = _a.showUnknownPersonaCoin, _b = _a.size, size = _b === void 0 ? DEFAULT_PROPS.size : _b; // Render the Image component only if an image URL is provided if (!imageUrl) { return null; } var classNames = getClassNames(styles, { theme: theme, size: size, showUnknownPersonaCoin: showUnknownPersonaCoin, }); var dimension = coinSize || PersonaConsts_1.sizeToPixels[size]; return (React.createElement(Image_1.Image, { className: classNames.image, imageFit: Image_1.ImageFit.cover, src: imageUrl, width: dimension, height: dimension, alt: imageAlt, shouldFadeIn: imageShouldFadeIn, shouldStartVisible: imageShouldStartVisible, onLoadingStateChange: onLoadingStateChange })); }; }; var renderPersonaCoinInitials = function (_a) { var imageInitials = _a.imageInitials, allowPhoneInitials = _a.allowPhoneInitials, showUnknownPersonaCoin = _a.showUnknownPersonaCoin, text = _a.text, // eslint-disable-next-line deprecation/deprecation primaryText = _a.primaryText, theme = _a.theme; if (showUnknownPersonaCoin) { return React.createElement(Icon_1.Icon, { iconName: "Help" }); } var isRTL = (0, Utilities_1.getRTL)(theme); imageInitials = imageInitials || (0, Utilities_1.getInitials)(text || primaryText || '', isRTL, allowPhoneInitials); return imageInitials !== '' ? React.createElement("span", null, imageInitials) : React.createElement(Icon_1.Icon, { iconName: "Contact" }); }; //# sourceMappingURL=PersonaCoin.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaCoin = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var PersonaCoin_base_1 = __webpack_require__(/*! ./PersonaCoin.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.base.js"); var PersonaCoin_styles_1 = __webpack_require__(/*! ./PersonaCoin.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.styles.js"); /** * PersonaCoin is used to render an individual's avatar and presence. */ exports.PersonaCoin = (0, Utilities_1.styled)(PersonaCoin_base_1.PersonaCoinBase, PersonaCoin_styles_1.getStyles, undefined, { scope: 'PersonaCoin', }); //# sourceMappingURL=PersonaCoin.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.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 PersonaConsts_1 = __webpack_require__(/*! ../PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js"); var GlobalClassNames = { coin: 'ms-Persona-coin', imageArea: 'ms-Persona-imageArea', image: 'ms-Persona-image', initials: 'ms-Persona-initials', size8: 'ms-Persona--size8', size10: 'ms-Persona--size10', size16: 'ms-Persona--size16', size24: 'ms-Persona--size24', size28: 'ms-Persona--size28', size32: 'ms-Persona--size32', size40: 'ms-Persona--size40', size48: 'ms-Persona--size48', size56: 'ms-Persona--size56', size72: 'ms-Persona--size72', size100: 'ms-Persona--size100', size120: 'ms-Persona--size120', }; var getStyles = function (props) { var _a; var className = props.className, theme = props.theme, coinSize = props.coinSize; var palette = theme.palette, fonts = theme.fonts; var size = (0, PersonaConsts_1.sizeBoolean)(props.size); var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // Static colors used when displaying 'unknown persona' coin var unknownPersonaBackgroundColor = 'rgb(234, 234, 234)'; var unknownPersonaFontColor = 'rgb(168, 0, 0)'; var dimension = coinSize || (props.size && PersonaConsts_1.sizeToPixels[props.size]) || 48; return { coin: [ classNames.coin, fonts.medium, size.isSize8 && classNames.size8, size.isSize10 && classNames.size10, size.isSize16 && classNames.size16, size.isSize24 && classNames.size24, size.isSize28 && classNames.size28, size.isSize32 && classNames.size32, size.isSize40 && classNames.size40, size.isSize48 && classNames.size48, size.isSize56 && classNames.size56, size.isSize72 && classNames.size72, size.isSize100 && classNames.size100, size.isSize120 && classNames.size120, className, ], size10WithoutPresenceIcon: { fontSize: fonts.xSmall.fontSize, position: 'absolute', top: '5px', right: 'auto', left: 0, }, imageArea: [ classNames.imageArea, { position: 'relative', textAlign: 'center', flex: '0 0 auto', height: dimension, width: dimension, }, dimension <= 10 && { overflow: 'visible', background: 'transparent', height: 0, width: 0, }, ], image: [ classNames.image, { marginRight: '10px', position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', border: 0, borderRadius: '50%', perspective: '1px', }, dimension <= 10 && { overflow: 'visible', background: 'transparent', height: 0, width: 0, }, dimension > 10 && { height: dimension, width: dimension, }, ], initials: [ classNames.initials, { borderRadius: '50%', color: props.showUnknownPersonaCoin ? unknownPersonaFontColor : palette.white, fontSize: fonts.large.fontSize, fontWeight: Styling_1.FontWeights.semibold, // copying the logic for the dimensions; defaulted to 46 for size48 lineHeight: dimension === 48 ? 46 : dimension, height: dimension, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({ border: '1px solid WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), { color: 'WindowText', boxSizing: 'border-box', backgroundColor: 'Window !important' }), _a.i = { fontWeight: Styling_1.FontWeights.semibold, }, _a), }, props.showUnknownPersonaCoin && { backgroundColor: unknownPersonaBackgroundColor, }, dimension < 32 && { fontSize: fonts.xSmall.fontSize, }, dimension >= 32 && dimension < 40 && { fontSize: fonts.medium.fontSize, }, dimension >= 40 && dimension < 56 && { fontSize: fonts.mediumPlus.fontSize, }, dimension >= 56 && dimension < 72 && { fontSize: fonts.xLarge.fontSize, }, dimension >= 72 && dimension < 100 && { fontSize: fonts.xxLarge.fontSize, }, dimension >= 100 && { fontSize: fonts.superLarge.fontSize, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=PersonaCoin.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/index.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/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__(/*! ./PersonaCoin */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PersonaCoin.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/PersonaCoin.base.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.presenceBoolean = exports.sizeToPixels = exports.sizeBoolean = exports.personaPresenceSize = exports.personaSize = void 0; var Persona_types_1 = __webpack_require__(/*! ./Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"); // Persona Sizes var personaSize; (function (personaSize) { personaSize.size8 = '20px'; // TODO: remove in a future major release as it's deprecated. personaSize.size10 = '20px'; // TODO: remove in a future major release as it's deprecated. personaSize.size16 = '16px'; personaSize.size24 = '24px'; // TODO: remove in a future major release as it's deprecated. personaSize.size28 = '28px'; personaSize.size32 = '32px'; personaSize.size40 = '40px'; personaSize.size48 = '48px'; personaSize.size56 = '56px'; personaSize.size72 = '72px'; personaSize.size100 = '100px'; personaSize.size120 = '120px'; })(personaSize = exports.personaSize || (exports.personaSize = {})); // Persona Presence Sizes var personaPresenceSize; (function (personaPresenceSize) { personaPresenceSize.size6 = '6px'; personaPresenceSize.size8 = '8px'; personaPresenceSize.size12 = '12px'; personaPresenceSize.size16 = '16px'; personaPresenceSize.size20 = '20px'; personaPresenceSize.size28 = '28px'; personaPresenceSize.size32 = '32px'; /** * @deprecated This is now unused */ personaPresenceSize.border = '2px'; })(personaPresenceSize = exports.personaPresenceSize || (exports.personaPresenceSize = {})); // TODO: remove the deprecated parts in a future major release. var sizeBoolean = function (size) { return ({ isSize8: size === Persona_types_1.PersonaSize.size8, /* eslint-disable deprecation/deprecation */ isSize10: size === Persona_types_1.PersonaSize.size10 || size === Persona_types_1.PersonaSize.tiny, isSize16: size === Persona_types_1.PersonaSize.size16, isSize24: size === Persona_types_1.PersonaSize.size24 || size === Persona_types_1.PersonaSize.extraExtraSmall, isSize28: size === Persona_types_1.PersonaSize.size28 || size === Persona_types_1.PersonaSize.extraSmall, isSize32: size === Persona_types_1.PersonaSize.size32, isSize40: size === Persona_types_1.PersonaSize.size40 || size === Persona_types_1.PersonaSize.small, isSize48: size === Persona_types_1.PersonaSize.size48 || size === Persona_types_1.PersonaSize.regular, isSize56: size === Persona_types_1.PersonaSize.size56, isSize72: size === Persona_types_1.PersonaSize.size72 || size === Persona_types_1.PersonaSize.large, isSize100: size === Persona_types_1.PersonaSize.size100 || size === Persona_types_1.PersonaSize.extraLarge, isSize120: size === Persona_types_1.PersonaSize.size120, }); }; exports.sizeBoolean = sizeBoolean; exports.sizeToPixels = (_a = {}, // Old deprecated sizes _a[Persona_types_1.PersonaSize.tiny] = 10, _a[Persona_types_1.PersonaSize.extraExtraSmall] = 24, _a[Persona_types_1.PersonaSize.extraSmall] = 28, _a[Persona_types_1.PersonaSize.small] = 40, _a[Persona_types_1.PersonaSize.regular] = 48, _a[Persona_types_1.PersonaSize.large] = 72, _a[Persona_types_1.PersonaSize.extraLarge] = 100, // New sizes _a[Persona_types_1.PersonaSize.size8] = 8, _a[Persona_types_1.PersonaSize.size10] = 10, _a[Persona_types_1.PersonaSize.size16] = 16, _a[Persona_types_1.PersonaSize.size24] = 24, _a[Persona_types_1.PersonaSize.size28] = 28, /* eslint-enable deprecation/deprecation */ _a[Persona_types_1.PersonaSize.size32] = 32, _a[Persona_types_1.PersonaSize.size40] = 40, _a[Persona_types_1.PersonaSize.size48] = 48, _a[Persona_types_1.PersonaSize.size56] = 56, _a[Persona_types_1.PersonaSize.size72] = 72, _a[Persona_types_1.PersonaSize.size100] = 100, _a[Persona_types_1.PersonaSize.size120] = 120, _a); var presenceBoolean = function (presence) { return ({ isAvailable: presence === Persona_types_1.PersonaPresence.online, isAway: presence === Persona_types_1.PersonaPresence.away, isBlocked: presence === Persona_types_1.PersonaPresence.blocked, isBusy: presence === Persona_types_1.PersonaPresence.busy, isDoNotDisturb: presence === Persona_types_1.PersonaPresence.dnd, isOffline: presence === Persona_types_1.PersonaPresence.offline, }); }; exports.presenceBoolean = presenceBoolean; //# sourceMappingURL=PersonaConsts.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaInitialsColor.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaInitialsColor.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPersonaInitialsColor = exports.initialsColorPropToColorCode = void 0; var Persona_types_1 = __webpack_require__(/*! ./Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"); /** * Following colors are considered reserved and can only be set with overrides, so they are excluded from this set: * - `gray` and `black` can result in offensive persona coins with some initials combinations * - `red` often has a special meaning * - `transparent` is not intended to be used with typical initials due to accessibility issues; * its primary use is for Facepile overflow buttons. */ var COLOR_SWATCHES_LOOKUP = [ Persona_types_1.PersonaInitialsColor.lightBlue, Persona_types_1.PersonaInitialsColor.blue, Persona_types_1.PersonaInitialsColor.darkBlue, Persona_types_1.PersonaInitialsColor.teal, Persona_types_1.PersonaInitialsColor.green, Persona_types_1.PersonaInitialsColor.darkGreen, Persona_types_1.PersonaInitialsColor.lightPink, Persona_types_1.PersonaInitialsColor.pink, Persona_types_1.PersonaInitialsColor.magenta, Persona_types_1.PersonaInitialsColor.purple, Persona_types_1.PersonaInitialsColor.orange, Persona_types_1.PersonaInitialsColor.lightRed, Persona_types_1.PersonaInitialsColor.darkRed, Persona_types_1.PersonaInitialsColor.violet, Persona_types_1.PersonaInitialsColor.gold, Persona_types_1.PersonaInitialsColor.burgundy, Persona_types_1.PersonaInitialsColor.warmGray, Persona_types_1.PersonaInitialsColor.cyan, Persona_types_1.PersonaInitialsColor.rust, Persona_types_1.PersonaInitialsColor.coolGray, ]; var COLOR_SWATCHES_NUM_ENTRIES = COLOR_SWATCHES_LOOKUP.length; function getInitialsColorFromName(displayName) { var color = Persona_types_1.PersonaInitialsColor.blue; if (!displayName) { return color; } var hashCode = 0; for (var iLen = displayName.length - 1; iLen >= 0; iLen--) { var ch = displayName.charCodeAt(iLen); var shift = iLen % 8; // eslint-disable-next-line no-bitwise hashCode ^= (ch << shift) + (ch >> (8 - shift)); } color = COLOR_SWATCHES_LOOKUP[hashCode % COLOR_SWATCHES_NUM_ENTRIES]; return color; } function personaInitialsColorToHexCode(personaInitialsColor) { switch (personaInitialsColor) { case Persona_types_1.PersonaInitialsColor.lightBlue: return '#4F6BED'; case Persona_types_1.PersonaInitialsColor.blue: return '#0078D4'; case Persona_types_1.PersonaInitialsColor.darkBlue: return '#004E8C'; case Persona_types_1.PersonaInitialsColor.teal: return '#038387'; case Persona_types_1.PersonaInitialsColor.lightGreen: case Persona_types_1.PersonaInitialsColor.green: return '#498205'; case Persona_types_1.PersonaInitialsColor.darkGreen: return '#0B6A0B'; case Persona_types_1.PersonaInitialsColor.lightPink: return '#C239B3'; case Persona_types_1.PersonaInitialsColor.pink: return '#E3008C'; case Persona_types_1.PersonaInitialsColor.magenta: return '#881798'; case Persona_types_1.PersonaInitialsColor.purple: return '#5C2E91'; case Persona_types_1.PersonaInitialsColor.orange: return '#CA5010'; // eslint-disable-next-line deprecation/deprecation case Persona_types_1.PersonaInitialsColor.red: return '#EE1111'; case Persona_types_1.PersonaInitialsColor.lightRed: return '#D13438'; case Persona_types_1.PersonaInitialsColor.darkRed: return '#A4262C'; case Persona_types_1.PersonaInitialsColor.transparent: return 'transparent'; case Persona_types_1.PersonaInitialsColor.violet: return '#8764B8'; case Persona_types_1.PersonaInitialsColor.gold: return '#986F0B'; case Persona_types_1.PersonaInitialsColor.burgundy: return '#750B1C'; case Persona_types_1.PersonaInitialsColor.warmGray: return '#7A7574'; case Persona_types_1.PersonaInitialsColor.cyan: return '#005B70'; case Persona_types_1.PersonaInitialsColor.rust: return '#8E562E'; case Persona_types_1.PersonaInitialsColor.coolGray: return '#69797E'; // eslint-disable-next-line deprecation/deprecation case Persona_types_1.PersonaInitialsColor.black: return '#1D1D1D'; case Persona_types_1.PersonaInitialsColor.gray: return '#393939'; } } /** @deprecated Use `getPersonaInitialsColor` */ function initialsColorPropToColorCode(props) { return getPersonaInitialsColor(props); } exports.initialsColorPropToColorCode = initialsColorPropToColorCode; /** * Gets the hex color string (prefixed with #) for the given persona props. * This is the logic used internally by the Persona control. * @param props - Current persona props * @returns Hex color string prefixed with # */ function getPersonaInitialsColor(props) { // eslint-disable-next-line deprecation/deprecation var primaryText = props.primaryText, text = props.text; var initialsColor = props.initialsColor; var initialsColorCode; if (typeof initialsColor === 'string') { initialsColorCode = initialsColor; } else { initialsColor = initialsColor !== undefined ? initialsColor : getInitialsColorFromName(text || primaryText); initialsColorCode = personaInitialsColorToHexCode(initialsColor); } return initialsColorCode; } exports.getPersonaInitialsColor = getPersonaInitialsColor; //# sourceMappingURL=PersonaInitialsColor.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.base.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.base.js ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaPresenceBase = 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 Icon_1 = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Persona_types_1 = __webpack_require__(/*! ../Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"); var PersonaConsts_1 = __webpack_require__(/*! ../PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var coinSizeFontScaleFactor = 6; var coinSizePresenceScaleFactor = 3; var presenceMaxSize = 40; var presenceFontMaxSize = 20; var getClassNames = (0, Utilities_1.classNamesFunction)({ // There can be many PersonaPresence rendered with different sizes. // Therefore setting a larger cache size. cacheSize: 100, }); /** * PersonaPresence with no default styles. * [Use the `getStyles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling) */ exports.PersonaPresenceBase = React.forwardRef(function (props, forwardedRef) { var coinSize = props.coinSize, isOutOfOffice = props.isOutOfOffice, styles = props.styles, // Use getStyles from props. presence = props.presence, theme = props.theme, presenceTitle = props.presenceTitle, presenceColors = props.presenceColors; var rootRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(forwardedRef, rootRef); var size = (0, PersonaConsts_1.sizeBoolean)(props.size); // Render Presence Icon if Persona is above size 32. var renderIcon = !(size.isSize8 || size.isSize10 || size.isSize16 || size.isSize24 || size.isSize28 || size.isSize32) && (coinSize ? coinSize > 32 : true); var presenceHeightWidth = coinSize ? coinSize / coinSizePresenceScaleFactor < presenceMaxSize ? coinSize / coinSizePresenceScaleFactor + 'px' : presenceMaxSize + 'px' : ''; var presenceFontSize = coinSize ? coinSize / coinSizeFontScaleFactor < presenceFontMaxSize ? coinSize / coinSizeFontScaleFactor + 'px' : presenceFontMaxSize + 'px' : ''; var coinSizeWithPresenceIconStyle = coinSize ? { fontSize: presenceFontSize, lineHeight: presenceHeightWidth } : undefined; var coinSizeWithPresenceStyle = coinSize ? { width: presenceHeightWidth, height: presenceHeightWidth } : undefined; // Use getStyles from props, or fall back to getStyles from styles file. var classNames = getClassNames(styles, { theme: theme, presence: presence, size: props.size, isOutOfOffice: isOutOfOffice, presenceColors: presenceColors, }); if (presence === Persona_types_1.PersonaPresence.none) { return null; } return (React.createElement("div", { role: "presentation", className: classNames.presence, style: coinSizeWithPresenceStyle, title: presenceTitle, ref: mergedRootRef }, renderIcon && (React.createElement(Icon_1.Icon, { className: classNames.presenceIcon, iconName: determineIcon(props.presence, props.isOutOfOffice), style: coinSizeWithPresenceIconStyle })))); }); exports.PersonaPresenceBase.displayName = 'PersonaPresenceBase'; function determineIcon(presence, isOutOfOffice) { if (!presence) { return undefined; } var oofIcon = 'SkypeArrow'; switch (Persona_types_1.PersonaPresence[presence]) { case 'online': return 'SkypeCheck'; case 'away': return isOutOfOffice ? oofIcon : 'SkypeClock'; case 'dnd': return 'SkypeMinus'; case 'offline': return isOutOfOffice ? oofIcon : ''; } return ''; } //# sourceMappingURL=PersonaPresence.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PersonaPresence = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var PersonaPresence_base_1 = __webpack_require__(/*! ./PersonaPresence.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.base.js"); var PersonaPresence_styles_1 = __webpack_require__(/*! ./PersonaPresence.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.styles.js"); /** * PersonaPresence is used to render an individual's presence. */ exports.PersonaPresence = (0, Utilities_1.styled)(PersonaPresence_base_1.PersonaPresenceBase, PersonaPresence_styles_1.getStyles, undefined, { scope: 'PersonaPresence' }); //# sourceMappingURL=PersonaPresence.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.styles.js": /*!****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.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 PersonaConsts_1 = __webpack_require__(/*! ../PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js"); var GlobalClassNames = { presence: 'ms-Persona-presence', presenceIcon: 'ms-Persona-presenceIcon', }; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f; var theme = props.theme, presenceColors = props.presenceColors; var semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var size = (0, PersonaConsts_1.sizeBoolean)(props.size); var presence = (0, PersonaConsts_1.presenceBoolean)(props.presence); // Presence colors var presenceColorAvailable = (presenceColors && presenceColors.available) || '#6BB700'; var presenceColorAway = (presenceColors && presenceColors.away) || '#FFAA44'; var presenceColorBusy = (presenceColors && presenceColors.busy) || '#C43148'; var presenceColorDnd = (presenceColors && presenceColors.dnd) || '#C50F1F'; var presenceColorOffline = (presenceColors && presenceColors.offline) || '#8A8886'; var presenceColorOof = (presenceColors && presenceColors.oof) || '#B4009E'; var presenceColorBackground = (presenceColors && presenceColors.background) || semanticColors.bodyBackground; var isOpenCirclePresence = presence.isOffline || (props.isOutOfOffice && (presence.isAvailable || presence.isBusy || presence.isAway || presence.isDoNotDisturb)); var borderSizeForSmallPersonas = '1px'; var borderSizeForLargePersonas = '2px'; var borderSize = size.isSize72 || size.isSize100 ? borderSizeForLargePersonas : borderSizeForSmallPersonas; return { presence: [ classNames.presence, tslib_1.__assign(tslib_1.__assign({ position: 'absolute', height: PersonaConsts_1.personaPresenceSize.size12, width: PersonaConsts_1.personaPresenceSize.size12, borderRadius: '50%', top: 'auto', right: '-2px', bottom: '-2px', border: "2px solid ".concat(presenceColorBackground), textAlign: 'center', boxSizing: 'content-box', backgroundClip: 'border-box' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), { selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Window', backgroundColor: 'WindowText', }, _a) }), (size.isSize8 || size.isSize10) && { right: 'auto', top: '7px', left: 0, border: 0, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { top: '9px', border: '1px solid WindowText', }, _b), }, (size.isSize8 || size.isSize10 || size.isSize24 || size.isSize28 || size.isSize32) && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size8), (size.isSize40 || size.isSize48) && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size12), size.isSize16 && { height: PersonaConsts_1.personaPresenceSize.size6, width: PersonaConsts_1.personaPresenceSize.size6, borderWidth: '1.5px', }, size.isSize56 && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size16), size.isSize72 && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size20), size.isSize100 && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size28), size.isSize120 && makeSizeStyle(PersonaConsts_1.personaPresenceSize.size32), presence.isAvailable && { backgroundColor: presenceColorAvailable, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = backgroundColor('Highlight'), _c), }, presence.isAway && backgroundColor(presenceColorAway), presence.isBlocked && [ { selectors: (_d = { // Only show :after at larger sizes ':after': size.isSize40 || size.isSize48 || size.isSize72 || size.isSize100 ? { content: '""', width: '100%', height: borderSize, backgroundColor: presenceColorBusy, transform: 'translateY(-50%) rotate(-45deg)', position: 'absolute', top: '50%', left: 0, } : undefined }, _d[Styling_1.HighContrastSelector] = { selectors: { ':after': { width: "calc(100% - 4px)", left: '2px', backgroundColor: 'Window', }, }, }, _d), }, ], presence.isBusy && backgroundColor(presenceColorBusy), presence.isDoNotDisturb && backgroundColor(presenceColorDnd), presence.isOffline && backgroundColor(presenceColorOffline), (isOpenCirclePresence || presence.isBlocked) && [ { backgroundColor: presenceColorBackground, selectors: (_e = { ':before': { content: '""', width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, border: "".concat(borderSize, " solid ").concat(presenceColorBusy), borderRadius: '50%', boxSizing: 'border-box', } }, _e[Styling_1.HighContrastSelector] = { backgroundColor: 'WindowText', selectors: { ':before': { width: "calc(100% - 2px)", height: "calc(100% - 2px)", top: '1px', left: '1px', borderColor: 'Window', }, }, }, _e), }, ], isOpenCirclePresence && presence.isAvailable && makeBeforeBorderStyle(borderSize, presenceColorAvailable), isOpenCirclePresence && presence.isBusy && makeBeforeBorderStyle(borderSize, presenceColorBusy), isOpenCirclePresence && presence.isAway && makeBeforeBorderStyle(borderSize, presenceColorOof), isOpenCirclePresence && presence.isDoNotDisturb && makeBeforeBorderStyle(borderSize, presenceColorDnd), isOpenCirclePresence && presence.isOffline && makeBeforeBorderStyle(borderSize, presenceColorOffline), isOpenCirclePresence && presence.isOffline && props.isOutOfOffice && makeBeforeBorderStyle(borderSize, presenceColorOof), ], presenceIcon: [ classNames.presenceIcon, { color: presenceColorBackground, fontSize: '6px', lineHeight: PersonaConsts_1.personaPresenceSize.size12, verticalAlign: 'top', selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = { color: 'Window', }, _f), }, size.isSize56 && { fontSize: '8px', lineHeight: PersonaConsts_1.personaPresenceSize.size16, }, size.isSize72 && { fontSize: fonts.small.fontSize, lineHeight: PersonaConsts_1.personaPresenceSize.size20, }, size.isSize100 && { fontSize: fonts.medium.fontSize, lineHeight: PersonaConsts_1.personaPresenceSize.size28, }, size.isSize120 && { fontSize: fonts.medium.fontSize, lineHeight: PersonaConsts_1.personaPresenceSize.size32, }, presence.isAway && { position: 'relative', left: isOpenCirclePresence ? undefined : '1px', }, isOpenCirclePresence && presence.isAvailable && makeOpenCircleIconStyle(presenceColorAvailable), isOpenCirclePresence && presence.isBusy && makeOpenCircleIconStyle(presenceColorBusy), isOpenCirclePresence && presence.isAway && makeOpenCircleIconStyle(presenceColorOof), isOpenCirclePresence && presence.isDoNotDisturb && makeOpenCircleIconStyle(presenceColorDnd), isOpenCirclePresence && presence.isOffline && makeOpenCircleIconStyle(presenceColorOffline), isOpenCirclePresence && presence.isOffline && props.isOutOfOffice && makeOpenCircleIconStyle(presenceColorOof), ], }; }; exports.getStyles = getStyles; function makeOpenCircleIconStyle(color) { return { color: color, borderColor: color, }; } function makeBeforeBorderStyle(borderSize, color) { return { selectors: { ':before': { border: "".concat(borderSize, " solid ").concat(color), }, }, }; } function makeSizeStyle(size) { return { height: size, width: size, }; } function backgroundColor(color) { return { backgroundColor: color }; } //# sourceMappingURL=PersonaPresence.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/index.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/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__(/*! ./PersonaPresence */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PersonaPresence.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaPresence/PersonaPresence.base.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Persona/index.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPersonaInitialsColor = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Persona */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Persona.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Persona.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/Persona.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PersonaCoin/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaCoin/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PersonaConsts */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaConsts.js"), exports); // Exporting in case someone would like to track the current color of a persona var PersonaInitialsColor_1 = __webpack_require__(/*! ./PersonaInitialsColor */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/PersonaInitialsColor.js"); Object.defineProperty(exports, "getPersonaInitialsColor", ({ enumerable: true, get: function () { return PersonaInitialsColor_1.getPersonaInitialsColor; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PivotBase = 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 Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var useOverflow_1 = __webpack_require__(/*! ../../utilities/useOverflow */ "./node_modules/@fluentui/react/lib-commonjs/utilities/useOverflow.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var ContextualMenu_types_1 = __webpack_require__(/*! ../ContextualMenu/ContextualMenu.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.types.js"); var Icon_1 = __webpack_require__(/*! ../Icon/Icon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.js"); var PivotItem_1 = __webpack_require__(/*! ./PivotItem */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'Pivot'; var getTabId = function (props, pivotId, itemKey, index) { if (props.getTabId) { return props.getTabId(itemKey, index); } return pivotId + "-Tab".concat(index); }; // Gets the set of PivotLinks as array of IPivotItemProps // The set of Links is determined by child components of type PivotItem var getLinkItems = function (props, pivotId) { var result = { links: [], keyToIndexMapping: {}, keyToTabIdMapping: {}, }; React.Children.forEach(React.Children.toArray(props.children), function (child, index) { if (isPivotItem(child)) { // eslint-disable-next-line deprecation/deprecation var _a = child.props, linkText = _a.linkText, pivotItemProps = tslib_1.__rest(_a, ["linkText"]); var itemKey = child.props.itemKey || index.toString(); result.links.push(tslib_1.__assign(tslib_1.__assign({ headerText: linkText }, pivotItemProps), { itemKey: itemKey })); result.keyToIndexMapping[itemKey] = index; result.keyToTabIdMapping[itemKey] = getTabId(props, pivotId, itemKey, index); } else if (child) { (0, utilities_1.warn)('The children of a Pivot component must be of type PivotItem to be rendered.'); } }); return result; }; var isPivotItem = function (item) { var _a; return React.isValidElement(item) && ((_a = item.type) === null || _a === void 0 ? void 0 : _a.name) === PivotItem_1.PivotItem.name; }; exports.PivotBase = React.forwardRef(function (props, ref) { var focusZoneRef = React.useRef(null); var overflowMenuButtonComponentRef = React.useRef(null); var pivotId = (0, react_hooks_1.useId)('Pivot'); var _a = (0, react_hooks_1.useControllableValue)(props.selectedKey, props.defaultSelectedKey), selectedKey = _a[0], setSelectedKey = _a[1]; var componentRef = props.componentRef, theme = props.theme, linkSize = props.linkSize, linkFormat = props.linkFormat, overflowBehavior = props.overflowBehavior, overflowAriaLabel = props.overflowAriaLabel, focusZoneProps = props.focusZoneProps, overflowButtonAs = props.overflowButtonAs; var classNames; var nameProps = { 'aria-label': props['aria-label'], 'aria-labelledby': props['aria-labelledby'], }; var divProps = (0, utilities_1.getNativeProps)(props, utilities_1.divProperties, [ 'aria-label', 'aria-labelledby', ]); var linkCollection = getLinkItems(props, pivotId); React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a; (_a = focusZoneRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, }); }); var renderLinkContent = function (link) { if (!link) { return null; } var itemCount = link.itemCount, itemIcon = link.itemIcon, headerText = link.headerText; return (React.createElement("span", { className: classNames.linkContent }, itemIcon !== undefined && (React.createElement("span", { className: classNames.icon }, React.createElement(Icon_1.Icon, { iconName: itemIcon }))), headerText !== undefined && React.createElement("span", { className: classNames.text }, " ", link.headerText), itemCount !== undefined && React.createElement("span", { className: classNames.count }, " (", itemCount, ")"))); }; var renderPivotLink = function (renderLinkCollection, link, renderPivotLinkSelectedKey, className) { var itemKey = link.itemKey, headerButtonProps = link.headerButtonProps, onRenderItemLink = link.onRenderItemLink; var tabId = renderLinkCollection.keyToTabIdMapping[itemKey]; var linkContent; var isSelected = renderPivotLinkSelectedKey === itemKey; if (onRenderItemLink) { linkContent = onRenderItemLink(link, renderLinkContent); } else { linkContent = renderLinkContent(link); } var contentString = link.headerText || ''; contentString += link.itemCount ? ' (' + link.itemCount + ')' : ''; // Adding space supplementary for icon contentString += link.itemIcon ? ' xx' : ''; var itemSemantics = link.role && link.role !== 'tab' ? { role: link.role, } : { role: 'tab', 'aria-selected': isSelected, }; return (React.createElement(Button_1.CommandButton, tslib_1.__assign({}, headerButtonProps, itemSemantics, { id: tabId, key: itemKey, className: (0, utilities_1.css)(className, isSelected && classNames.linkIsSelected), // eslint-disable-next-line react/jsx-no-bind onClick: function (ev) { return onLinkClick(itemKey, ev); }, // eslint-disable-next-line react/jsx-no-bind onKeyDown: function (ev) { return onKeyDown(itemKey, ev); }, "aria-label": link.ariaLabel, name: link.headerText, keytipProps: link.keytipProps, "data-content": contentString }), linkContent)); }; var onLinkClick = function (itemKey, ev) { ev.preventDefault(); updateSelectedItem(itemKey, ev); }; var onKeyDown = function (itemKey, ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === utilities_1.KeyCodes.enter) { ev.preventDefault(); updateSelectedItem(itemKey); } }; var updateSelectedItem = function (itemKey, ev) { var _a; setSelectedKey(itemKey); linkCollection = getLinkItems(props, pivotId); if (props.onLinkClick && linkCollection.keyToIndexMapping[itemKey] >= 0) { var selectedIndex = linkCollection.keyToIndexMapping[itemKey]; var item = React.Children.toArray(props.children)[selectedIndex]; if (isPivotItem(item)) { props.onLinkClick(item, ev); } } (_a = overflowMenuButtonComponentRef.current) === null || _a === void 0 ? void 0 : _a.dismissMenu(); }; var renderPivotItem = function (itemKey, isActive) { if (props.headersOnly || !itemKey) { return null; } var index = linkCollection.keyToIndexMapping[itemKey]; var selectedTabId = linkCollection.keyToTabIdMapping[itemKey]; return (React.createElement("div", { role: "tabpanel", hidden: !isActive, key: itemKey, "aria-hidden": !isActive, "aria-labelledby": selectedTabId, className: classNames.itemContainer }, React.Children.toArray(props.children)[index])); }; var isKeyValid = function (itemKey) { return itemKey === null || (itemKey !== undefined && linkCollection.keyToIndexMapping[itemKey] !== undefined); }; var getSelectedKey = function () { if (isKeyValid(selectedKey)) { return selectedKey; } if (linkCollection.links.length) { return linkCollection.links[0].itemKey; } return undefined; }; classNames = getClassNames(props.styles, { theme: theme, linkSize: linkSize, linkFormat: linkFormat, }); var renderedSelectedKey = getSelectedKey(); var renderedSelectedIndex = renderedSelectedKey ? linkCollection.keyToIndexMapping[renderedSelectedKey] : 0; var items = linkCollection.links.map(function (l) { return renderPivotLink(linkCollection, l, renderedSelectedKey, classNames.link); }); // The overflow menu starts empty and items[] is updated as the overflow items change var overflowMenuProps = React.useMemo(function () { return ({ items: [], alignTargetEdge: true, directionalHint: ContextualMenu_types_1.DirectionalHint.bottomRightEdge, }); }, []); var overflowMenuButtonRef = (0, useOverflow_1.useOverflow)({ onOverflowItemsChanged: function (overflowIndex, elements) { // Set data-is-overflowing on each item elements.forEach(function (_a) { var ele = _a.ele, isOverflowing = _a.isOverflowing; return (ele.dataset.isOverflowing = "".concat(isOverflowing)); }); // Update the menu items overflowMenuProps.items = linkCollection.links .slice(overflowIndex) .filter(function (link) { return link.itemKey !== renderedSelectedKey; }) .map(function (link, index) { link.role = 'menuitem'; return { key: link.itemKey || "".concat(overflowIndex + index), onRender: function () { return renderPivotLink(linkCollection, link, renderedSelectedKey, classNames.linkInMenu); }, }; }); }, rtl: (0, utilities_1.getRTL)(theme), pinnedIndex: renderedSelectedIndex, }).menuButtonRef; var OverflowButton = overflowButtonAs ? overflowButtonAs : Button_1.CommandButton; return (React.createElement("div", tslib_1.__assign({ ref: ref }, divProps), React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ componentRef: focusZoneRef, role: "tablist" }, nameProps, { direction: FocusZone_1.FocusZoneDirection.horizontal }, focusZoneProps, { className: (0, utilities_1.css)(classNames.root, focusZoneProps === null || focusZoneProps === void 0 ? void 0 : focusZoneProps.className) }), items, overflowBehavior === 'menu' && (React.createElement(OverflowButton, { className: (0, utilities_1.css)(classNames.link, classNames.overflowMenuButton), elementRef: overflowMenuButtonRef, componentRef: overflowMenuButtonComponentRef, menuProps: overflowMenuProps, menuIconProps: { iconName: 'More', style: { color: 'inherit' } }, ariaLabel: overflowAriaLabel, role: "tab" }))), renderedSelectedKey && linkCollection.links.map(function (link) { return (link.alwaysRender === true || renderedSelectedKey === link.itemKey) && renderPivotItem(link.itemKey, renderedSelectedKey === link.itemKey); }))); }); exports.PivotBase.displayName = COMPONENT_NAME; //# sourceMappingURL=Pivot.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Pivot = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Pivot_base_1 = __webpack_require__(/*! ./Pivot.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.base.js"); var Pivot_styles_1 = __webpack_require__(/*! ./Pivot.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.styles.js"); /** * The Pivot control and related tabs pattern are used for navigating frequently accessed, * distinct content categories. Pivots allow for navigation between two or more content * views and relies on text headers to articulate the different sections of content. */ exports.Pivot = (0, utilities_1.styled)(Pivot_base_1.PivotBase, Pivot_styles_1.getStyles, undefined, { scope: 'Pivot', }); //# sourceMappingURL=Pivot.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.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 = { count: 'ms-Pivot-count', icon: 'ms-Pivot-icon', linkIsSelected: 'is-selected', link: 'ms-Pivot-link', linkContent: 'ms-Pivot-linkContent', root: 'ms-Pivot', rootIsLarge: 'ms-Pivot--large', rootIsTabs: 'ms-Pivot--tabs', text: 'ms-Pivot-text', linkInMenu: 'ms-Pivot-linkInMenu', overflowMenuButton: 'ms-Pivot-overflowMenuButton', }; var getLinkStyles = function (props, classNames, isLinkInOverflowMenu) { var _a, _b, _c; if (isLinkInOverflowMenu === void 0) { isLinkInOverflowMenu = false; } var linkSize = props.linkSize, linkFormat = props.linkFormat; var _d = props.theme, semanticColors = _d.semanticColors, fonts = _d.fonts; var rootIsLarge = linkSize === 'large'; var rootIsTabs = linkFormat === 'tabs'; return [ fonts.medium, { color: semanticColors.actionLink, padding: '0 8px', position: 'relative', backgroundColor: 'transparent', border: 0, borderRadius: 0, selectors: { ':hover': { backgroundColor: semanticColors.buttonBackgroundHovered, color: semanticColors.buttonTextHovered, cursor: 'pointer', }, ':active': { backgroundColor: semanticColors.buttonBackgroundPressed, color: semanticColors.buttonTextHovered, }, ':focus': { outline: 'none', }, }, }, !isLinkInOverflowMenu && [ { display: 'inline-block', lineHeight: 44, height: 44, marginRight: 8, textAlign: 'center', selectors: (_a = {}, _a[".".concat(utilities_1.IsFocusVisibleClassName, " &:focus")] = { outline: "1px solid ".concat(semanticColors.focusBorder), }, _a[".".concat(utilities_1.IsFocusVisibleClassName, " &:focus:after")] = { content: 'attr(data-content)', position: 'relative', border: 0, }, _a[':before'] = { backgroundColor: 'transparent', bottom: 0, content: '""', height: 2, left: 8, position: 'absolute', right: 8, transition: "left ".concat(style_utilities_1.AnimationVariables.durationValue2, " ").concat(style_utilities_1.AnimationVariables.easeFunction2, ",\n right ").concat(style_utilities_1.AnimationVariables.durationValue2, " ").concat(style_utilities_1.AnimationVariables.easeFunction2), }, _a[':after'] = { color: 'transparent', content: 'attr(data-content)', display: 'block', fontWeight: style_utilities_1.FontWeights.bold, height: 1, overflow: 'hidden', visibility: 'hidden', }, _a), }, rootIsLarge && { fontSize: fonts.large.fontSize, }, rootIsTabs && [ { marginRight: 0, height: 44, lineHeight: 44, backgroundColor: semanticColors.buttonBackground, padding: '0 10px', verticalAlign: 'top', selectors: (_b = { ':focus': { outlineOffset: '-2px', } }, _b[".".concat(utilities_1.IsFocusVisibleClassName, " &:focus::before")] = { height: 'auto', background: 'transparent', transition: 'none', }, _b['&:hover, &:focus'] = { color: semanticColors.buttonTextCheckedHovered, }, _b['&:active, &:hover'] = { color: semanticColors.primaryButtonText, backgroundColor: semanticColors.primaryButtonBackground, }, _b["&.".concat(classNames.linkIsSelected)] = { backgroundColor: semanticColors.primaryButtonBackground, color: semanticColors.primaryButtonText, fontWeight: style_utilities_1.FontWeights.regular, selectors: (_c = { ':before': { backgroundColor: 'transparent', transition: 'none', position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, content: '""', height: 0, }, ':hover': { backgroundColor: semanticColors.primaryButtonBackgroundHovered, color: semanticColors.primaryButtonText, }, ':active': { backgroundColor: semanticColors.primaryButtonBackgroundPressed, color: semanticColors.primaryButtonText, } }, _c[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ fontWeight: style_utilities_1.FontWeights.semibold, color: 'HighlightText', background: 'Highlight' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _c), }, _b[".".concat(utilities_1.IsFocusVisibleClassName, " &.").concat(classNames.linkIsSelected, ":focus")] = { outlineColor: semanticColors.primaryButtonText, }, _b), }, ], ], ]; }; var getStyles = function (props) { var _a, _b, _c, _d; var className = props.className, linkSize = props.linkSize, linkFormat = props.linkFormat, theme = props.theme; var semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, style_utilities_1.getGlobalClassNames)(globalClassNames, theme); var rootIsLarge = linkSize === 'large'; var rootIsTabs = linkFormat === 'tabs'; return { root: [ classNames.root, fonts.medium, style_utilities_1.normalize, { position: 'relative', color: semanticColors.link, whiteSpace: 'nowrap', }, rootIsLarge && classNames.rootIsLarge, rootIsTabs && classNames.rootIsTabs, className, ], itemContainer: { selectors: { '&[hidden]': { display: 'none', }, }, }, link: tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.link ], getLinkStyles(props, classNames), true), [ (_a = {}, _a["&[data-is-overflowing='true']"] = { display: 'none', }, _a), ], false), overflowMenuButton: [ classNames.overflowMenuButton, (_b = { visibility: 'hidden', position: 'absolute', right: 0 }, _b[".".concat(classNames.link, "[data-is-overflowing='true'] ~ &")] = { visibility: 'visible', position: 'relative', }, _b), ], linkInMenu: tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.linkInMenu ], getLinkStyles(props, classNames, true), true), [ { textAlign: 'left', width: '100%', height: 36, lineHeight: 36, }, ], false), linkIsSelected: [ classNames.link, classNames.linkIsSelected, { fontWeight: style_utilities_1.FontWeights.semibold, selectors: (_c = { ':before': { backgroundColor: semanticColors.inputBackgroundChecked, selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Highlight', }, _d), }, ':hover::before': { left: 0, right: 0, } }, _c[style_utilities_1.HighContrastSelector] = { color: 'Highlight', }, _c), }, ], linkContent: [ classNames.linkContent, { flex: '0 1 100%', selectors: { '& > * ': { marginLeft: 4, }, '& > *:first-child': { marginLeft: 0, }, }, }, ], text: [ classNames.text, { display: 'inline-block', verticalAlign: 'top', }, ], count: [ classNames.count, { display: 'inline-block', verticalAlign: 'top', }, ], icon: classNames.icon, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Pivot.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PivotLinkSize = exports.PivotLinkFormat = void 0; /** * {@docCategory Pivot} * @deprecated Use strings 'links' or 'tabs' instead of this enum */ var PivotLinkFormat; (function (PivotLinkFormat) { /** * Display Pivot Links as links */ PivotLinkFormat["links"] = "links"; /** * Display Pivot Links as Tabs */ PivotLinkFormat["tabs"] = "tabs"; })(PivotLinkFormat = exports.PivotLinkFormat || (exports.PivotLinkFormat = {})); /** * {@docCategory Pivot} * @deprecated Use strings 'normal' or 'large' instead of this enum */ var PivotLinkSize; (function (PivotLinkSize) { /** * Display Link using normal font size */ PivotLinkSize["normal"] = "normal"; /** * Display links using large font size */ PivotLinkSize["large"] = "large"; })(PivotLinkSize = exports.PivotLinkSize || (exports.PivotLinkSize = {})); //# sourceMappingURL=Pivot.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PivotItem = 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 COMPONENT_NAME = 'PivotItem'; var PivotItem = /** @class */ (function (_super) { tslib_1.__extends(PivotItem, _super); function PivotItem(props) { var _this = _super.call(this, props) || this; (0, utilities_1.initializeComponentRef)(_this); (0, utilities_1.warnDeprecations)(COMPONENT_NAME, props, { linkText: 'headerText', }); return _this; } PivotItem.prototype.render = function () { return React.createElement("div", tslib_1.__assign({}, (0, utilities_1.getNativeProps)(this.props, utilities_1.divProperties)), this.props.children); }; return PivotItem; }(React.Component)); exports.PivotItem = PivotItem; //# sourceMappingURL=PivotItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PivotItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Pivot/index.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PivotItem = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Pivot */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Pivot.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.base.js"), exports); var PivotItem_1 = __webpack_require__(/*! ./PivotItem */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.js"); Object.defineProperty(exports, "PivotItem", ({ enumerable: true, get: function () { return PivotItem_1.PivotItem; } })); tslib_1.__exportStar(__webpack_require__(/*! ./Pivot.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/Pivot.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PivotItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/PivotItem.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Popup = 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 react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); function useScrollbarAsync(props, root) { var async = (0, react_hooks_1.useAsync)(); var _a = React.useState(false), needsVerticalScrollBarState = _a[0], setNeedsVerticalScrollBar = _a[1]; React.useEffect(function () { async.requestAnimationFrame(function () { var _a; // If overflowY is overridden, don't waste time calculating whether the scrollbar is necessary. if (props.style && props.style.overflowY) { return; } var needsVerticalScrollBar = false; if (root && root.current && ((_a = root.current) === null || _a === void 0 ? void 0 : _a.firstElementChild)) { // ClientHeight returns the client height of an element rounded to an // integer. On some browsers at different zoom levels this rounding // can generate different results for the root container and child even // though they are the same height. This causes us to show a scroll bar // when not needed. Ideally we would use BoundingClientRect().height // instead however seems that the API is 90% slower than using ClientHeight. // Therefore instead we will calculate the difference between heights and // allow for a 1px difference to still be considered ok and not show the // scroll bar. var rootHeight = root.current.clientHeight; var firstChildHeight = root.current.firstElementChild.clientHeight; if (rootHeight > 0 && firstChildHeight > rootHeight) { needsVerticalScrollBar = firstChildHeight - rootHeight > 1; } } if (needsVerticalScrollBarState !== needsVerticalScrollBar) { setNeedsVerticalScrollBar(needsVerticalScrollBar); } }); return function () { return async.dispose(); }; }); return needsVerticalScrollBarState; } function defaultFocusRestorer(options) { var originalElement = options.originalElement, containsFocus = options.containsFocus; if (originalElement && containsFocus && originalElement !== (0, Utilities_1.getWindow)()) { // 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. // This is wrapped in a setTimeout because of a React 16 bug that is resolved in 17. // Once we move to 17, the setTimeout should be removed (ref: https://github.com/facebook/react/issues/17894#issuecomment-656094405) setTimeout(function () { var _a; (_a = originalElement.focus) === null || _a === void 0 ? void 0 : _a.call(originalElement); }, 0); } } function useRestoreFocus(props, root) { var _a = props.onRestoreFocus, onRestoreFocus = _a === void 0 ? defaultFocusRestorer : _a; var originalFocusedElement = React.useRef(); var containsFocus = React.useRef(false); React.useEffect(function () { originalFocusedElement.current = (0, Utilities_1.getDocument)().activeElement; if ((0, Utilities_1.doesElementContainFocus)(root.current)) { containsFocus.current = true; } return function () { var _a; onRestoreFocus === null || onRestoreFocus === void 0 ? void 0 : onRestoreFocus({ originalElement: originalFocusedElement.current, containsFocus: containsFocus.current, documentContainsFocus: ((_a = (0, Utilities_1.getDocument)()) === null || _a === void 0 ? void 0 : _a.hasFocus()) || false, }); // De-reference DOM Node to avoid retainment via transpiled closure of _onKeyDown originalFocusedElement.current = undefined; }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on first render }, []); (0, react_hooks_1.useOnEvent)(root, 'focus', React.useCallback(function () { containsFocus.current = true; }, []), true); (0, react_hooks_1.useOnEvent)(root, 'blur', React.useCallback(function (ev) { /** The popup should update this._containsFocus when: * relatedTarget exists AND * the relatedTarget is not contained within the popup. * If the relatedTarget is within the popup, that means the popup still has focus * and focused moved from one element to another within the popup. * If relatedTarget is undefined or null that usually means that a * keyboard event occurred and focus didn't change */ if (root.current && ev.relatedTarget && !root.current.contains(ev.relatedTarget)) { containsFocus.current = false; } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on first render }, []), true); } function useHideSiblingNodes(props, root) { // eslint-disable-next-line deprecation/deprecation var shouldHideSiblings = String(props['aria-modal']).toLowerCase() === 'true' && props.enableAriaHiddenSiblings; React.useEffect(function () { if (!(shouldHideSiblings && root.current)) { return; } var unmodalize = (0, Utilities_1.modalize)(root.current); return unmodalize; }, [root, shouldHideSiblings]); } /** * This adds accessibility to Dialog and Panel controls */ exports.Popup = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)({ shouldRestoreFocus: true, enableAriaHiddenSiblings: true }, propsWithoutDefaults); var root = React.useRef(); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(root, forwardedRef); useHideSiblingNodes(props, root); useRestoreFocus(props, root); var role = props.role, className = props.className, ariaLabel = props.ariaLabel, ariaLabelledBy = props.ariaLabelledBy, ariaDescribedBy = props.ariaDescribedBy, style = props.style, children = props.children, onDismiss = props.onDismiss; var needsVerticalScrollBar = useScrollbarAsync(props, root); var onKeyDown = React.useCallback(function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.escape: if (onDismiss) { onDismiss(ev); ev.preventDefault(); ev.stopPropagation(); } break; } }, [onDismiss]); var win = (0, react_window_provider_1.useWindow)(); (0, react_hooks_1.useOnEvent)(win, 'keydown', onKeyDown); return (React.createElement("div", tslib_1.__assign({ ref: mergedRootRef }, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties), { className: className, role: role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, onKeyDown: onKeyDown, style: tslib_1.__assign({ overflowY: needsVerticalScrollBar ? 'scroll' : undefined, outline: 'none' }, style) }), children)); }); exports.Popup.displayName = 'Popup'; //# sourceMappingURL=Popup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Popup.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Popup/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__(/*! ./Popup */ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Popup.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/Popup.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.base.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.base.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ProgressIndicatorBase = 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)(); // if the percentComplete is near 0, don't animate it. // This prevents animations on reset to 0 scenarios var ZERO_THRESHOLD = 0.01; /** * ProgressIndicator with no default styles. * [Use the `styles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling) */ var ProgressIndicatorBase = /** @class */ (function (_super) { tslib_1.__extends(ProgressIndicatorBase, _super); function ProgressIndicatorBase(props) { var _this = _super.call(this, props) || this; _this._onRenderProgress = function (props) { var _a = _this.props, ariaLabel = _a.ariaLabel, ariaValueText = _a.ariaValueText, barHeight = _a.barHeight, className = _a.className, description = _a.description, // eslint-disable-next-line deprecation/deprecation _b = _a.label, // eslint-disable-next-line deprecation/deprecation label = _b === void 0 ? _this.props.title : _b, styles = _a.styles, theme = _a.theme; var percentComplete = typeof _this.props.percentComplete === 'number' ? Math.min(100, Math.max(0, _this.props.percentComplete * 100)) : undefined; var classNames = getClassNames(styles, { theme: theme, className: className, barHeight: barHeight, indeterminate: percentComplete === undefined ? true : false, }); var progressBarStyles = { width: percentComplete !== undefined ? percentComplete + '%' : undefined, transition: percentComplete !== undefined && percentComplete < ZERO_THRESHOLD ? 'none' : undefined, }; var ariaValueMin = percentComplete !== undefined ? 0 : undefined; var ariaValueMax = percentComplete !== undefined ? 100 : undefined; var ariaValueNow = percentComplete !== undefined ? Math.floor(percentComplete) : undefined; return (React.createElement("div", { className: classNames.itemProgress }, React.createElement("div", { className: classNames.progressTrack }), React.createElement("div", { className: classNames.progressBar, style: progressBarStyles, role: "progressbar", "aria-describedby": description ? _this._descriptionId : undefined, "aria-label": ariaLabel, "aria-labelledby": label ? _this._labelId : undefined, "aria-valuemin": ariaValueMin, "aria-valuemax": ariaValueMax, "aria-valuenow": ariaValueNow, "aria-valuetext": ariaValueText }))); }; var id = (0, Utilities_1.getId)('progress-indicator'); _this._labelId = id + '-label'; _this._descriptionId = id + '-description'; return _this; } ProgressIndicatorBase.prototype.render = function () { var _a = this.props, barHeight = _a.barHeight, className = _a.className, // eslint-disable-next-line deprecation/deprecation _b = _a.label, // eslint-disable-next-line deprecation/deprecation label = _b === void 0 ? this.props.title : _b, // Fall back to deprecated value. description = _a.description, styles = _a.styles, theme = _a.theme, progressHidden = _a.progressHidden, _c = _a.onRenderProgress, onRenderProgress = _c === void 0 ? this._onRenderProgress : _c; var percentComplete = typeof this.props.percentComplete === 'number' ? Math.min(100, Math.max(0, this.props.percentComplete * 100)) : undefined; var classNames = getClassNames(styles, { theme: theme, className: className, barHeight: barHeight, indeterminate: percentComplete === undefined ? true : false, }); return (React.createElement("div", { className: classNames.root }, label ? (React.createElement("div", { id: this._labelId, className: classNames.itemName }, label)) : null, !progressHidden ? onRenderProgress(tslib_1.__assign(tslib_1.__assign({}, this.props), { percentComplete: percentComplete }), this._onRenderProgress) : null, description ? (React.createElement("div", { id: this._descriptionId, className: classNames.itemDescription }, description)) : null)); }; ProgressIndicatorBase.defaultProps = { label: '', description: '', width: 180, }; return ProgressIndicatorBase; }(React.Component)); exports.ProgressIndicatorBase = ProgressIndicatorBase; //# sourceMappingURL=ProgressIndicator.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ProgressIndicator = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ProgressIndicator_base_1 = __webpack_require__(/*! ./ProgressIndicator.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.base.js"); var ProgressIndicator_styles_1 = __webpack_require__(/*! ./ProgressIndicator.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.styles.js"); /** * ProgressIndicator description */ exports.ProgressIndicator = (0, Utilities_1.styled)(ProgressIndicator_base_1.ProgressIndicatorBase, ProgressIndicator_styles_1.getStyles, undefined, { scope: 'ProgressIndicator' }); //# sourceMappingURL=ProgressIndicator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.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-ProgressIndicator', itemName: 'ms-ProgressIndicator-itemName', itemDescription: 'ms-ProgressIndicator-itemDescription', itemProgress: 'ms-ProgressIndicator-itemProgress', progressTrack: 'ms-ProgressIndicator-progressTrack', progressBar: 'ms-ProgressIndicator-progressBar', }; var IndeterminateProgress = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { left: '-30%', }, '100%': { left: '100%', }, }); }); var IndeterminateProgressRTL = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '100%': { right: '-30%', }, '0%': { right: '100%', }, }); }); var getStyles = function (props) { var _a, _b, _c; var isRTL = (0, Utilities_1.getRTL)(props.theme); var className = props.className, indeterminate = props.indeterminate, theme = props.theme, _d = props.barHeight, barHeight = _d === void 0 ? 2 : _d; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var marginBetweenText = 8; var textHeight = 18; var progressTrackColor = palette.neutralLight; return { root: [classNames.root, fonts.medium, className], itemName: [ classNames.itemName, Styling_1.noWrap, { color: semanticColors.bodyText, paddingTop: marginBetweenText / 2, lineHeight: textHeight + 2, }, ], itemDescription: [ classNames.itemDescription, { color: semanticColors.bodySubtext, fontSize: fonts.small.fontSize, lineHeight: textHeight, }, ], itemProgress: [ classNames.itemProgress, { position: 'relative', overflow: 'hidden', height: barHeight, padding: "".concat(marginBetweenText, "px 0"), }, ], progressTrack: [ classNames.progressTrack, { position: 'absolute', width: '100%', height: barHeight, backgroundColor: progressTrackColor, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderBottom: '1px solid WindowText', }, _a), }, ], progressBar: [ { backgroundColor: palette.themePrimary, height: barHeight, position: 'absolute', transition: 'width .3s ease', width: 0, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _b), }, indeterminate ? { position: 'absolute', minWidth: '33%', background: "linear-gradient(to right, ".concat(progressTrackColor, " 0%, ") + "".concat(palette.themePrimary, " 50%, ").concat(progressTrackColor, " 100%)"), animation: "".concat(isRTL ? IndeterminateProgressRTL() : IndeterminateProgress(), " 3s infinite"), selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { background: "highlight", }, _c), } : { transition: 'width .15s linear', }, classNames.progressBar, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ProgressIndicator.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ProgressIndicator.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/index.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/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__(/*! ./ProgressIndicator */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ProgressIndicator.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ProgressIndicator.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/ProgressIndicator.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.base.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RatingBase = 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 FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Rating_types_1 = __webpack_require__(/*! ./Rating.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.types.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 RatingStar = function (props) { return (React.createElement("div", { className: props.classNames.ratingStar }, React.createElement(Icon_1.Icon, { className: props.classNames.ratingStarBack, iconName: props.fillPercentage === 0 || props.fillPercentage === 100 ? props.icon : props.unselectedIcon }), !props.disabled && (React.createElement(Icon_1.Icon, { className: props.classNames.ratingStarFront, iconName: props.icon, style: { width: props.fillPercentage + '%' } })))); }; var useComponentRef = function (componentRef, rating) { React.useImperativeHandle(componentRef, function () { return ({ rating: rating, }); }, [rating]); }; var useDebugWarnings = function (props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'Rating', props: props, controlledUsage: { valueProp: 'rating', defaultValueProp: 'defaultRating', onChangeProp: 'onChange', readOnlyProp: 'readOnly', }, }); } }; var getClampedRating = function (rating, min, max) { return Math.min(Math.max(rating !== null && rating !== void 0 ? rating : min, min), max); }; var getFillingPercentage = function (starNum, displayRating) { var ceilValue = Math.ceil(displayRating); var fillPercentage = 100; if (starNum === displayRating) { fillPercentage = 100; } else if (starNum === ceilValue) { fillPercentage = 100 * (displayRating % 1); } else if (starNum > ceilValue) { fillPercentage = 0; } return fillPercentage; }; var getStarId = function (id, starNum) { return "".concat(id, "-star-").concat(starNum - 1); }; exports.RatingBase = React.forwardRef(function (props, forwardedRef) { var id = (0, react_hooks_1.useId)('Rating'); var labelId = (0, react_hooks_1.useId)('RatingLabel'); var ariaLabel = props.ariaLabel, ariaLabelFormat = props.ariaLabelFormat, disabled = props.disabled, getAriaLabel = props.getAriaLabel, styles = props.styles, // eslint-disable-next-line deprecation/deprecation _a = props.min, // eslint-disable-next-line deprecation/deprecation minFromProps = _a === void 0 ? props.allowZeroStars ? 0 : 1 : _a, _b = props.max, max = _b === void 0 ? 5 : _b, readOnly = props.readOnly, size = props.size, theme = props.theme, _c = props.icon, icon = _c === void 0 ? 'FavoriteStarFill' : _c, _d = props.unselectedIcon, unselectedIcon = _d === void 0 ? 'FavoriteStar' : _d, onRenderStar = props.onRenderStar; // Ensure min is >= 0 to avoid issues elsewhere var min = Math.max(minFromProps, 0); var _e = (0, react_hooks_1.useControllableValue)(props.rating, props.defaultRating, props.onChange), rating = _e[0], setRating = _e[1]; /** Rating clamped within valid range. Will be `min` if `rating` is undefined. */ var displayRating = getClampedRating(rating, min, max); useDebugWarnings(props); useComponentRef(props.componentRef, displayRating); var rootRef = React.useRef(null); var mergedRootRefs = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); (0, Utilities_1.useFocusRects)(rootRef); var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties); var classNames = getClassNames(styles, { disabled: disabled, readOnly: readOnly, theme: theme, }); var readOnlyAriaLabel = getAriaLabel === null || getAriaLabel === void 0 ? void 0 : getAriaLabel(displayRating, max); var normalModeAriaLabel = ariaLabel ? ariaLabel : readOnlyAriaLabel; var stars = []; var renderStar = function (starProps, renderer) { return renderer ? renderer(starProps) : React.createElement(RatingStar, tslib_1.__assign({}, starProps)); }; var _loop_1 = function (starNum) { var fillPercentage = getFillingPercentage(starNum, displayRating); var onSelectStar = function (ev) { // Use the actual rating (not display value) here, to ensure that we update if the actual // rating is undefined and the user clicks the first star. if (rating === undefined || Math.ceil(rating) !== starNum) { setRating(starNum, ev); } }; var onStarKeyDown = function (event) { // eslint-disable-next-line deprecation/deprecation var which = event.which; var newRating = starNum; switch (which) { case Utilities_1.KeyCodes.right: case Utilities_1.KeyCodes.down: newRating = Math.min(max, newRating + 1); break; case Utilities_1.KeyCodes.left: case Utilities_1.KeyCodes.up: newRating = Math.max(1, newRating - 1); break; case Utilities_1.KeyCodes.home: case Utilities_1.KeyCodes.pageUp: newRating = 1; break; case Utilities_1.KeyCodes.end: case Utilities_1.KeyCodes.pageDown: newRating = max; break; } if (newRating !== starNum && (rating === undefined || Math.ceil(rating) !== newRating)) { setRating(newRating, event); } }; stars.push(React.createElement("button", tslib_1.__assign({ className: (0, Utilities_1.css)(classNames.ratingButton, size === Rating_types_1.RatingSize.Large ? classNames.ratingStarIsLarge : classNames.ratingStarIsSmall), id: getStarId(id, starNum), key: starNum }, (starNum === Math.ceil(displayRating) && { 'data-is-current': true }), { onKeyDown: onStarKeyDown, onClick: onSelectStar, disabled: !!(disabled || readOnly), role: "radio", "aria-hidden": readOnly ? 'true' : undefined, type: "button", "aria-checked": starNum === Math.ceil(displayRating) }), React.createElement("span", { id: "".concat(labelId, "-").concat(starNum), className: classNames.labelText }, (0, Utilities_1.format)(ariaLabelFormat || '', starNum, max)), renderStar({ fillPercentage: fillPercentage, disabled: disabled, classNames: classNames, icon: fillPercentage > 0 ? icon : unselectedIcon, starNum: starNum, unselectedIcon: unselectedIcon, }, onRenderStar))); }; for (var starNum = 1; starNum <= max; starNum++) { _loop_1(starNum); } var rootSizeClass = size === Rating_types_1.RatingSize.Large ? classNames.rootIsLarge : classNames.rootIsSmall; return (React.createElement("div", tslib_1.__assign({ ref: mergedRootRefs, className: (0, Utilities_1.css)('ms-Rating-star', classNames.root, rootSizeClass), "aria-label": !readOnly ? normalModeAriaLabel : undefined, id: id, role: !readOnly ? 'radiogroup' : undefined }, divProps), React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.bidirectional, className: (0, Utilities_1.css)(classNames.ratingFocusZone, rootSizeClass), defaultActiveElement: '#' + getStarId(id, Math.ceil(displayRating)) }, (readOnly && { allowFocusRoot: true, disabled: true, role: 'textbox', 'aria-label': readOnlyAriaLabel, 'aria-readonly': true, 'data-is-focusable': true, tabIndex: 0, })), stars))); }); exports.RatingBase.displayName = 'RatingBase'; //# sourceMappingURL=Rating.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Rating = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Rating_styles_1 = __webpack_require__(/*! ./Rating.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.styles.js"); var Rating_base_1 = __webpack_require__(/*! ./Rating.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.base.js"); exports.Rating = (0, Utilities_1.styled)(Rating_base_1.RatingBase, Rating_styles_1.getStyles, undefined, { scope: 'Rating' }); //# sourceMappingURL=Rating.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.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-RatingStar-root', rootIsSmall: 'ms-RatingStar-root--small', rootIsLarge: 'ms-RatingStar-root--large', ratingStar: 'ms-RatingStar-container', ratingStarBack: 'ms-RatingStar-back', ratingStarFront: 'ms-RatingStar-front', ratingButton: 'ms-Rating-button', ratingStarIsSmall: 'ms-Rating--small', ratingStartIsLarge: 'ms-Rating--large', labelText: 'ms-Rating-labelText', ratingFocusZone: 'ms-Rating-focuszone', }; function _getColorWithHighContrast(color, highContrastColor) { var _a; return { color: color, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: highContrastColor, }, _a), }; } function getStyles(props) { var disabled = props.disabled, readOnly = props.readOnly, theme = props.theme; var semanticColors = theme.semanticColors, palette = theme.palette; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var ratingSmallIconSize = 16; var ratingLargeIconSize = 20; var ratingVerticalPadding = 8; var ratingHorizontalPadding = 2; var ratingStarUncheckedColor = palette.neutralSecondary; var ratingStarUncheckedHoverColor = palette.themePrimary; var ratingStarUncheckedHoverSelectedColor = palette.themeDark; var ratingStarCheckedColor = palette.neutralPrimary; var ratingStarDisabledColor = semanticColors.disabledBodySubtext; return { root: [ classNames.root, theme.fonts.medium, !disabled && !readOnly && { selectors: { // This is part 1 of highlighting all stars up to the one the user is hovering over '&:hover': { selectors: { '.ms-RatingStar-back': _getColorWithHighContrast(ratingStarCheckedColor, 'Highlight'), }, }, }, }, ], rootIsSmall: [ classNames.rootIsSmall, { height: ratingSmallIconSize + ratingVerticalPadding * 2 + 'px', }, ], rootIsLarge: [ classNames.rootIsLarge, { height: ratingLargeIconSize + ratingVerticalPadding * 2 + 'px', }, ], ratingStar: [ classNames.ratingStar, { display: 'inline-block', position: 'relative', height: 'inherit', }, ], ratingStarBack: [ classNames.ratingStarBack, { // TODO: Use a proper semantic color for this color: ratingStarUncheckedColor, width: '100%', }, disabled && _getColorWithHighContrast(ratingStarDisabledColor, 'GrayText'), ], ratingStarFront: [ classNames.ratingStarFront, { position: 'absolute', height: '100 %', left: '0', top: '0', textAlign: 'center', verticalAlign: 'middle', overflow: 'hidden', }, _getColorWithHighContrast(ratingStarCheckedColor, 'Highlight'), ], ratingButton: [ (0, Styling_1.getFocusStyle)(theme), classNames.ratingButton, { backgroundColor: 'transparent', padding: "".concat(ratingVerticalPadding, "px ").concat(ratingHorizontalPadding, "px"), boxSizing: 'content-box', margin: '0px', border: 'none', cursor: 'pointer', selectors: { '&:disabled': { cursor: 'default', }, '&[disabled]': { cursor: 'default', }, }, }, !disabled && !readOnly && { selectors: { // This is part 2 of highlighting all stars up to the one the user is hovering over '&:hover ~ .ms-Rating-button': { selectors: { '.ms-RatingStar-back': _getColorWithHighContrast(ratingStarUncheckedColor, 'WindowText'), '.ms-RatingStar-front': _getColorWithHighContrast(ratingStarUncheckedColor, 'WindowText'), }, }, '&:hover': { selectors: { '.ms-RatingStar-back': { color: ratingStarUncheckedHoverColor, }, '.ms-RatingStar-front': { color: ratingStarUncheckedHoverSelectedColor, }, }, }, }, }, disabled && { cursor: 'default', }, ], ratingStarIsSmall: [ classNames.ratingStarIsSmall, { fontSize: ratingSmallIconSize + 'px', lineHeight: ratingSmallIconSize + 'px', height: ratingSmallIconSize + 'px', }, ], ratingStarIsLarge: [ classNames.ratingStartIsLarge, { fontSize: ratingLargeIconSize + 'px', lineHeight: ratingLargeIconSize + 'px', height: ratingLargeIconSize + 'px', }, ], labelText: [classNames.labelText, Styling_1.hiddenContentStyle], ratingFocusZone: [ (0, Styling_1.getFocusStyle)(theme), classNames.ratingFocusZone, { display: 'inline-block', }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=Rating.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RatingSize = void 0; /** * {@docCategory Rating} */ var RatingSize; (function (RatingSize) { RatingSize[RatingSize["Small"] = 0] = "Small"; RatingSize[RatingSize["Large"] = 1] = "Large"; })(RatingSize = exports.RatingSize || (exports.RatingSize = {})); //# sourceMappingURL=Rating.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Rating/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__(/*! ./Rating */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Rating.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Rating.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/Rating.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ResizeGroupBase = exports.MeasuredContext = exports.getNextResizeGroupStateProvider = exports.getMeasurementCache = 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 ResizeGroup_types_1 = __webpack_require__(/*! ./ResizeGroup.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.types.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 RESIZE_DELAY = 16; /** * Returns a simple object is able to store measurements with a given key. */ var getMeasurementCache = function () { var measurementsCache = {}; return { /** * Checks if the provided data has a cacheKey. If it has a cacheKey and there is a * corresponding entry in the measurementsCache, then it will return that value. * Returns undefined otherwise. */ getCachedMeasurement: function (data) { if (data && data.cacheKey && measurementsCache.hasOwnProperty(data.cacheKey)) { return measurementsCache[data.cacheKey]; } return undefined; }, /** * Should be called whenever there is a new measurement associated with a given data object. * If the data has a cacheKey, store that measurement in the measurementsCache. */ addMeasurementToCache: function (data, measurement) { if (data.cacheKey) { measurementsCache[data.cacheKey] = measurement; } }, }; }; exports.getMeasurementCache = getMeasurementCache; /** * Returns a function that is able to compute the next state for the ResizeGroup given the current * state and any measurement updates. */ var getNextResizeGroupStateProvider = function (measurementCache) { if (measurementCache === void 0) { measurementCache = (0, exports.getMeasurementCache)(); } var _measurementCache = measurementCache; var _containerDimension; /** * Gets the width/height of the data rendered in a hidden div. * @param measuredData - The data corresponding to the measurement we wish to take. * @param getElementToMeasureDimension - A function that returns the measurement of the rendered data. * Only called when the measurement is not in the cache. */ function _getMeasuredDimension(measuredData, getElementToMeasureDimension) { var cachedDimension = _measurementCache.getCachedMeasurement(measuredData); if (cachedDimension !== undefined) { return cachedDimension; } var measuredDimension = getElementToMeasureDimension(); _measurementCache.addMeasurementToCache(measuredData, measuredDimension); return measuredDimension; } /** * Will get the next IResizeGroupState based on the current data while trying to shrink contents * to fit in the container. * @param data - The initial data point to start measuring. * @param onReduceData - Function that transforms the data into something that should render with less width/height. * @param getElementToMeasureDimension - A function that returns the measurement of the rendered data. * Only called when the measurement is not in the cache. */ function _shrinkContentsUntilTheyFit(data, onReduceData, getElementToMeasureDimension) { var dataToMeasure = data; var measuredDimension = _getMeasuredDimension(data, getElementToMeasureDimension); while (measuredDimension > _containerDimension) { var nextMeasuredData = onReduceData(dataToMeasure); // We don't want to get stuck in an infinite render loop when there are no more // scaling steps, so implementations of onReduceData should return undefined when // there are no more scaling states to apply. if (nextMeasuredData === undefined) { return { renderedData: dataToMeasure, resizeDirection: undefined, dataToMeasure: undefined, }; } measuredDimension = _measurementCache.getCachedMeasurement(nextMeasuredData); // If the measurement isn't in the cache, we need to re-render with some data in a hidden div if (measuredDimension === undefined) { return { dataToMeasure: nextMeasuredData, resizeDirection: 'shrink', }; } dataToMeasure = nextMeasuredData; } return { renderedData: dataToMeasure, resizeDirection: undefined, dataToMeasure: undefined, }; } /** * This function should be called when the state changes in a manner that might allow for more content to fit * on the screen, such as the window width/height growing. * @param data - The initial data point to start measuring. * @param onGrowData - Function that transforms the data into something that may take up more space when rendering. * @param getElementToMeasureDimension - A function that returns the measurement of the rendered data. * Only called when the measurement is not in the cache. */ function _growDataUntilItDoesNotFit(data, onGrowData, getElementToMeasureDimension, onReduceData) { var dataToMeasure = data; var measuredDimension = _getMeasuredDimension(data, getElementToMeasureDimension); while (measuredDimension < _containerDimension) { var nextMeasuredData = onGrowData(dataToMeasure); // We don't want to get stuck in an infinite render loop when there are no more // scaling steps, so implementations of onGrowData should return undefined when // there are no more scaling states to apply. if (nextMeasuredData === undefined) { return { renderedData: dataToMeasure, resizeDirection: undefined, dataToMeasure: undefined, }; } measuredDimension = _measurementCache.getCachedMeasurement(nextMeasuredData); // If the measurement isn't in the cache, we need to re-render with some data in a hidden div if (measuredDimension === undefined) { return { dataToMeasure: nextMeasuredData, }; } dataToMeasure = nextMeasuredData; } // Once the loop is done, we should now shrink until the contents fit. return tslib_1.__assign({ resizeDirection: 'shrink' }, _shrinkContentsUntilTheyFit(dataToMeasure, onReduceData, getElementToMeasureDimension)); } /** * Handles an update to the container width/height. * Should only be called when we knew the previous container width/height. * @param newDimension - The new width/height of the container. * @param fullDimensionData - The initial data passed in as a prop to resizeGroup. * @param renderedData - The data that was rendered prior to the container size changing. * @param onGrowData - Set to true if the Resize group has an onGrowData function. */ function _updateContainerDimension(newDimension, fullDimensionData, renderedData, onGrowData) { var nextState; if (newDimension > _containerDimension) { if (onGrowData) { nextState = { resizeDirection: 'grow', dataToMeasure: onGrowData(renderedData), }; } else { nextState = { resizeDirection: 'shrink', dataToMeasure: fullDimensionData, }; } } else { nextState = { resizeDirection: 'shrink', dataToMeasure: renderedData, }; } _containerDimension = newDimension; return tslib_1.__assign(tslib_1.__assign({}, nextState), { measureContainer: false }); } function getNextState(props, currentState, getElementToMeasureDimension, newContainerDimension) { // If there is no new container width/height or data to measure, there is no need for a new state update if (newContainerDimension === undefined && currentState.dataToMeasure === undefined) { return undefined; } if (newContainerDimension) { // If we know the last container size and we rendered data at that width/height, we can do an optimized render if (_containerDimension && currentState.renderedData && !currentState.dataToMeasure) { return tslib_1.__assign(tslib_1.__assign({}, currentState), _updateContainerDimension(newContainerDimension, props.data, currentState.renderedData, props.onGrowData)); } // If we are just setting the container width/height for the first time, we can't do any optimizations _containerDimension = newContainerDimension; } var nextState = tslib_1.__assign(tslib_1.__assign({}, currentState), { measureContainer: false }); if (currentState.dataToMeasure) { if (currentState.resizeDirection === 'grow' && props.onGrowData) { nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), _growDataUntilItDoesNotFit(currentState.dataToMeasure, props.onGrowData, getElementToMeasureDimension, props.onReduceData)); } else { nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), _shrinkContentsUntilTheyFit(currentState.dataToMeasure, props.onReduceData, getElementToMeasureDimension)); } } return nextState; } /** Function that determines if we need to render content for measurement based on the measurement cache contents. */ function shouldRenderDataForMeasurement(dataToMeasure) { if (!dataToMeasure || _measurementCache.getCachedMeasurement(dataToMeasure) !== undefined) { return false; } return true; } function getInitialResizeGroupState(data) { return { dataToMeasure: tslib_1.__assign({}, data), resizeDirection: 'grow', measureContainer: true, }; } return { getNextState: getNextState, shouldRenderDataForMeasurement: shouldRenderDataForMeasurement, getInitialResizeGroupState: getInitialResizeGroupState, }; }; exports.getNextResizeGroupStateProvider = getNextResizeGroupStateProvider; // Provides a context property that (if true) tells any child components that // they are only being used for measurement purposes and will not be visible. exports.MeasuredContext = React.createContext({ isMeasured: false }); // Styles for the hidden div used for measurement var hiddenDivStyles = { position: 'fixed', visibility: 'hidden' }; var hiddenParentStyles = { position: 'relative' }; var COMPONENT_NAME = 'ResizeGroup'; /** * Use useReducer instead of userState because React is not batching the state updates * when state is set in callbacks of setTimeout or requestAnimationFrame. * See issue: https://github.com/facebook/react/issues/14259 */ function resizeDataReducer(state, action) { var _a; switch (action.type) { case 'resizeData': return tslib_1.__assign({}, action.value); case 'dataToMeasure': return tslib_1.__assign(tslib_1.__assign({}, state), { dataToMeasure: action.value, resizeDirection: 'grow', measureContainer: true }); default: return tslib_1.__assign(tslib_1.__assign({}, state), (_a = {}, _a[action.type] = action.value, _a)); } } function useResizeState(props, nextResizeGroupStateProvider, rootRef) { var initialStateData = (0, react_hooks_1.useConst)(function () { return nextResizeGroupStateProvider.getInitialResizeGroupState(props.data); }); var _a = React.useReducer(resizeDataReducer, initialStateData), resizeData = _a[0], dispatchResizeDataAction = _a[1]; // Reset state when new data is provided React.useEffect(function () { dispatchResizeDataAction({ type: 'dataToMeasure', value: props.data, }); }, [props.data]); // Because it's possible that we may force more than one re-render per animation frame, we // want to make sure that the RAF request is using the most recent data. var stateRef = React.useRef(initialStateData); stateRef.current = tslib_1.__assign({}, resizeData); var updateResizeState = React.useCallback(function (nextState) { if (nextState) { dispatchResizeDataAction({ type: 'resizeData', value: nextState, }); } }, []); var remeasure = React.useCallback(function () { if (rootRef.current) { dispatchResizeDataAction({ type: 'measureContainer', value: true, }); } }, [rootRef]); return [stateRef, updateResizeState, remeasure]; } function useResizingBehavior(props, rootRef) { var nextResizeGroupStateProvider = (0, react_hooks_1.useConst)(exports.getNextResizeGroupStateProvider); // A div that can be used for the initial measurement so that we can avoid mounting a second instance // of the component being measured for the initial render. var initialHiddenDiv = React.useRef(null); // A hidden div that is used for mounting a new instance of the component for measurement in a hidden // div without unmounting the currently visible content. var updateHiddenDiv = React.useRef(null); // Tracks if any content has been rendered to the user. This enables us to do some performance optimizations // for the initial render. var hasRenderedContent = React.useRef(false); var async = (0, react_hooks_1.useAsync)(); var _a = useResizeState(props, nextResizeGroupStateProvider, rootRef), stateRef = _a[0], updateResizeState = _a[1], remeasure = _a[2]; React.useEffect(function () { var _a; if (stateRef.current.renderedData) { hasRenderedContent.current = true; (_a = props.dataDidRender) === null || _a === void 0 ? void 0 : _a.call(props, stateRef.current.renderedData); } }); React.useEffect(function () { async.requestAnimationFrame(function () { var containerDimension = undefined; if (stateRef.current.measureContainer && rootRef.current) { var boundingRect = rootRef.current.getBoundingClientRect(); containerDimension = props.direction === ResizeGroup_types_1.ResizeGroupDirection.vertical ? boundingRect.height : boundingRect.width; } var nextState = nextResizeGroupStateProvider.getNextState(props, stateRef.current, function () { var refToMeasure = !hasRenderedContent.current ? initialHiddenDiv : updateHiddenDiv; if (!refToMeasure.current) { return 0; } var measuredBoundingRect = refToMeasure.current.getBoundingClientRect(); return props.direction === ResizeGroup_types_1.ResizeGroupDirection.vertical ? measuredBoundingRect.height : measuredBoundingRect.width; }, containerDimension); updateResizeState(nextState); }, rootRef.current); }); var win = (0, WindowProvider_1.useWindow)(); (0, react_hooks_1.useOnEvent)(win, 'resize', async.debounce(remeasure, RESIZE_DELAY, { leading: true })); var dataNeedsMeasuring = nextResizeGroupStateProvider.shouldRenderDataForMeasurement(stateRef.current.dataToMeasure); var isInitialMeasure = !hasRenderedContent.current && dataNeedsMeasuring; return [ stateRef.current.dataToMeasure, stateRef.current.renderedData, remeasure, initialHiddenDiv, updateHiddenDiv, dataNeedsMeasuring, isInitialMeasure, ]; } 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, deprecations: { styles: 'className' }, }); } } var measuredContextValue = { isMeasured: true }; exports.ResizeGroupBase = React.forwardRef(function (props, forwardedRef) { var rootRef = React.useRef(null); // The root div which is the container inside of which we are trying to fit content. var mergedRootRef = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); var _a = useResizingBehavior(props, rootRef), dataToMeasure = _a[0], renderedData = _a[1], remeasure = _a[2], initialHiddenDiv = _a[3], updateHiddenDiv = _a[4], dataNeedsMeasuring = _a[5], isInitialMeasure = _a[6]; React.useImperativeHandle(props.componentRef, function () { return ({ remeasure: remeasure }); }, [remeasure]); useDebugWarnings(props); var className = props.className, onRenderData = props.onRenderData; var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties, ['data']); // We only ever render the final content to the user. All measurements are done in a hidden div. // For the initial render, we want this to be as fast as possible, so we need to make sure that we only mount one // version of the component for measurement and the final render. For renders that update what is on screen, we // want to make sure that there are no jarring effects such as the screen flashing as we apply scaling steps for // measurement. In the update case, we mount a second version of the component just for measurement purposes and // leave the rendered content untouched until we know the next state to show to the user. return (React.createElement("div", tslib_1.__assign({}, divProps, { className: className, ref: mergedRootRef }), React.createElement("div", { style: hiddenParentStyles }, dataNeedsMeasuring && !isInitialMeasure && (React.createElement("div", { style: hiddenDivStyles, ref: updateHiddenDiv }, React.createElement(exports.MeasuredContext.Provider, { value: measuredContextValue }, onRenderData(dataToMeasure)))), React.createElement("div", { ref: initialHiddenDiv, style: isInitialMeasure ? hiddenDivStyles : undefined, "data-automation-id": "visibleContent" }, isInitialMeasure ? onRenderData(dataToMeasure) : renderedData && onRenderData(renderedData))))); }); exports.ResizeGroupBase.displayName = 'ResizeGroupBase'; //# sourceMappingURL=ResizeGroup.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ResizeGroup = void 0; var ResizeGroup_base_1 = __webpack_require__(/*! ./ResizeGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.base.js"); exports.ResizeGroup = ResizeGroup_base_1.ResizeGroupBase; //# sourceMappingURL=ResizeGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ResizeGroupDirection = void 0; /** * {@docCategory ResizeGroup} */ var ResizeGroupDirection; (function (ResizeGroupDirection) { ResizeGroupDirection[ResizeGroupDirection["horizontal"] = 0] = "horizontal"; ResizeGroupDirection[ResizeGroupDirection["vertical"] = 1] = "vertical"; })(ResizeGroupDirection = exports.ResizeGroupDirection || (exports.ResizeGroupDirection = {})); //# sourceMappingURL=ResizeGroup.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/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__(/*! ./ResizeGroup */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ResizeGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ResizeGroup.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/ResizeGroup.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ScrollablePaneBase = 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 ScrollablePane_types_1 = __webpack_require__(/*! ./ScrollablePane.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var ScrollablePaneBase = /** @class */ (function (_super) { tslib_1.__extends(ScrollablePaneBase, _super); function ScrollablePaneBase(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._stickyAboveRef = React.createRef(); _this._stickyBelowRef = React.createRef(); _this._contentContainer = React.createRef(); _this.subscribe = function (handler) { _this._subscribers.add(handler); }; _this.unsubscribe = function (handler) { _this._subscribers.delete(handler); }; _this.addSticky = function (sticky) { _this._stickies.add(sticky); // If ScrollablePane is mounted, then sort sticky in correct place if (_this.contentContainer) { sticky.setDistanceFromTop(_this.contentContainer); _this.sortSticky(sticky); } }; _this.removeSticky = function (sticky) { _this._stickies.delete(sticky); _this._removeStickyFromContainers(sticky); _this.notifySubscribers(); }; _this.sortSticky = function (sticky, sortAgain) { if (_this.stickyAbove && _this.stickyBelow) { if (sortAgain) { _this._removeStickyFromContainers(sticky); } if (sticky.canStickyTop && sticky.stickyContentTop) { _this._addToStickyContainer(sticky, _this.stickyAbove, sticky.stickyContentTop); } if (sticky.canStickyBottom && sticky.stickyContentBottom) { _this._addToStickyContainer(sticky, _this.stickyBelow, sticky.stickyContentBottom); } } }; _this.updateStickyRefHeights = function () { var stickyItems = _this._stickies; var stickyTopHeight = 0; var stickyBottomHeight = 0; stickyItems.forEach(function (sticky) { var _a = sticky.state, isStickyTop = _a.isStickyTop, isStickyBottom = _a.isStickyBottom; if (sticky.nonStickyContent) { if (isStickyTop) { stickyTopHeight += sticky.nonStickyContent.offsetHeight; } if (isStickyBottom) { stickyBottomHeight += sticky.nonStickyContent.offsetHeight; } _this._checkStickyStatus(sticky); } }); _this.setState({ stickyTopHeight: stickyTopHeight, stickyBottomHeight: stickyBottomHeight, }); }; _this.notifySubscribers = function () { if (_this.contentContainer) { _this._subscribers.forEach(function (handle) { // this.stickyBelow is passed in for calculating distance to determine Sticky status handle(_this.contentContainer, _this.stickyBelow); }); } }; _this.getScrollPosition = function () { if (_this.contentContainer) { return _this.contentContainer.scrollTop; } return 0; }; _this.syncScrollSticky = function (sticky) { if (sticky && _this.contentContainer) { sticky.syncScroll(_this.contentContainer); } }; _this._getScrollablePaneContext = function () { return { scrollablePane: { subscribe: _this.subscribe, unsubscribe: _this.unsubscribe, addSticky: _this.addSticky, removeSticky: _this.removeSticky, updateStickyRefHeights: _this.updateStickyRefHeights, sortSticky: _this.sortSticky, notifySubscribers: _this.notifySubscribers, syncScrollSticky: _this.syncScrollSticky, }, }; }; _this._addToStickyContainer = function (sticky, stickyContainer, stickyContentToAdd) { // If there's no children, append child to list, otherwise, sort though array and append at correct position if (!stickyContainer.children.length) { stickyContainer.appendChild(stickyContentToAdd); } else { // If stickyContentToAdd isn't a child element of target container, then append if (!stickyContainer.contains(stickyContentToAdd)) { var stickyChildrenElements_1 = [].slice.call(stickyContainer.children); var stickyList_1 = []; // Get stickies. Filter by canStickyTop/Bottom, then sort by distance from top, and then // filter by elements that are in the stickyContainer already. _this._stickies.forEach(function (stickyItem) { if (stickyContainer === _this.stickyAbove && sticky.canStickyTop) { stickyList_1.push(stickyItem); } else if (sticky.canStickyBottom) { stickyList_1.push(stickyItem); } }); var stickyListSorted = stickyList_1 .sort(function (a, b) { return (a.state.distanceFromTop || 0) - (b.state.distanceFromTop || 0); }) .filter(function (item) { var stickyContent = stickyContainer === _this.stickyAbove ? item.stickyContentTop : item.stickyContentBottom; if (stickyContent) { return stickyChildrenElements_1.indexOf(stickyContent) > -1; } return false; }); // Get first element that has a distance from top that is further than our sticky that is being added var targetStickyToAppendBefore = undefined; for (var _i = 0, stickyListSorted_1 = stickyListSorted; _i < stickyListSorted_1.length; _i++) { var stickyListItem = stickyListSorted_1[_i]; if ((stickyListItem.state.distanceFromTop || 0) >= (sticky.state.distanceFromTop || 0)) { targetStickyToAppendBefore = stickyListItem; break; } } // If target element to append before is known, grab respective stickyContentTop/Bottom element // and insert before var targetContainer = null; if (targetStickyToAppendBefore) { targetContainer = stickyContainer === _this.stickyAbove ? targetStickyToAppendBefore.stickyContentTop : targetStickyToAppendBefore.stickyContentBottom; } stickyContainer.insertBefore(stickyContentToAdd, targetContainer); } } }; _this._removeStickyFromContainers = function (sticky) { if (_this.stickyAbove && sticky.stickyContentTop && _this.stickyAbove.contains(sticky.stickyContentTop)) { _this.stickyAbove.removeChild(sticky.stickyContentTop); } if (_this.stickyBelow && sticky.stickyContentBottom && _this.stickyBelow.contains(sticky.stickyContentBottom)) { _this.stickyBelow.removeChild(sticky.stickyContentBottom); } }; _this._onWindowResize = function () { var scrollbarWidth = _this._getScrollbarWidth(); var scrollbarHeight = _this._getScrollbarHeight(); _this.setState({ scrollbarWidth: scrollbarWidth, scrollbarHeight: scrollbarHeight, }); _this.notifySubscribers(); }; _this._getStickyContainerStyle = function (height, isTop) { return tslib_1.__assign(tslib_1.__assign({ height: height }, ((0, Utilities_1.getRTL)(_this.props.theme) ? { right: '0', left: "".concat(_this.state.scrollbarWidth || _this._getScrollbarWidth() || 0, "px"), } : { left: '0', right: "".concat(_this.state.scrollbarWidth || _this._getScrollbarWidth() || 0, "px"), })), (isTop ? { top: '0', } : { bottom: "".concat(_this.state.scrollbarHeight || _this._getScrollbarHeight() || 0, "px"), })); }; _this._onScroll = function () { var contentContainer = _this.contentContainer; if (contentContainer) { _this._stickies.forEach(function (sticky) { sticky.syncScroll(contentContainer); }); } _this._notifyThrottled(); }; _this._subscribers = new Set(); _this._stickies = new Set(); (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this.state = { stickyTopHeight: 0, stickyBottomHeight: 0, scrollbarWidth: 0, scrollbarHeight: 0, }; _this._notifyThrottled = _this._async.throttle(_this.notifySubscribers, 50); return _this; } Object.defineProperty(ScrollablePaneBase.prototype, "root", { get: function () { return this._root.current; }, enumerable: false, configurable: true }); Object.defineProperty(ScrollablePaneBase.prototype, "stickyAbove", { get: function () { return this._stickyAboveRef.current; }, enumerable: false, configurable: true }); Object.defineProperty(ScrollablePaneBase.prototype, "stickyBelow", { get: function () { return this._stickyBelowRef.current; }, enumerable: false, configurable: true }); Object.defineProperty(ScrollablePaneBase.prototype, "contentContainer", { get: function () { return this._contentContainer.current; }, enumerable: false, configurable: true }); ScrollablePaneBase.prototype.componentDidMount = function () { var _this = this; var initialScrollPosition = this.props.initialScrollPosition; this._events.on(this.contentContainer, 'scroll', this._onScroll); this._events.on(window, 'resize', this._onWindowResize); if (this.contentContainer && initialScrollPosition) { this.contentContainer.scrollTop = initialScrollPosition; } // Set sticky distances from top property, then sort in correct order and notify subscribers this.setStickiesDistanceFromTop(); this._stickies.forEach(function (sticky) { _this.sortSticky(sticky); }); this.notifySubscribers(); if ('MutationObserver' in window) { this._mutationObserver = new MutationObserver(function (mutation) { // Function to check if mutation is occuring in stickyAbove or stickyBelow function checkIfMutationIsSticky(mutationRecord) { if (this.stickyAbove !== null && this.stickyBelow !== null) { return this.stickyAbove.contains(mutationRecord.target) || this.stickyBelow.contains(mutationRecord.target); } return false; } // Compute the scrollbar height, which might have changed if the content's width changed and caused overflow var scrollbarHeight = _this._getScrollbarHeight(); // If the scrollbar height changed, update state so it's postioned correctly below sticky footer if (scrollbarHeight !== _this.state.scrollbarHeight) { _this.setState({ scrollbarHeight: scrollbarHeight, }); } // Notify subscribers again to re-check whether Sticky should be Sticky'd or not _this.notifySubscribers(); // If mutation occurs in sticky header or footer, then update sticky top/bottom heights if (mutation.some(checkIfMutationIsSticky.bind(_this))) { _this.updateStickyRefHeights(); } else { // If mutation occurs in scrollable region, then find Sticky it belongs to and force update var stickyList_2 = []; _this._stickies.forEach(function (sticky) { if (sticky.root && sticky.root.contains(mutation[0].target)) { stickyList_2.push(sticky); } }); if (stickyList_2.length) { stickyList_2.forEach(function (sticky) { sticky.forceUpdate(); }); } } }); if (this.root) { this._mutationObserver.observe(this.root, { childList: true, attributes: true, subtree: true, characterData: true, }); } } }; ScrollablePaneBase.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); if (this._mutationObserver) { this._mutationObserver.disconnect(); } }; // Only updates if props/state change, just to prevent excessive setState with updateStickyRefHeights ScrollablePaneBase.prototype.shouldComponentUpdate = function (nextProps, nextState) { return (this.props.children !== nextProps.children || this.props.initialScrollPosition !== nextProps.initialScrollPosition || this.props.className !== nextProps.className || this.state.stickyTopHeight !== nextState.stickyTopHeight || this.state.stickyBottomHeight !== nextState.stickyBottomHeight || this.state.scrollbarWidth !== nextState.scrollbarWidth || this.state.scrollbarHeight !== nextState.scrollbarHeight); }; ScrollablePaneBase.prototype.componentDidUpdate = function (prevProps, prevState) { var initialScrollPosition = this.props.initialScrollPosition; if (this.contentContainer && typeof initialScrollPosition === 'number' && prevProps.initialScrollPosition !== initialScrollPosition) { this.contentContainer.scrollTop = initialScrollPosition; } // Update subscribers when stickyTopHeight/stickyBottomHeight changes if (prevState.stickyTopHeight !== this.state.stickyTopHeight || prevState.stickyBottomHeight !== this.state.stickyBottomHeight) { this.notifySubscribers(); } this._async.setTimeout(this._onWindowResize, 0); }; ScrollablePaneBase.prototype.render = function () { var _a = this.props, className = _a.className, scrollContainerFocus = _a.scrollContainerFocus, scrollContainerAriaLabel = _a.scrollContainerAriaLabel, theme = _a.theme, styles = _a.styles, onScroll = _a.onScroll; var _b = this.state, stickyTopHeight = _b.stickyTopHeight, stickyBottomHeight = _b.stickyBottomHeight; var classNames = getClassNames(styles, { theme: theme, className: className, scrollbarVisibility: this.props.scrollbarVisibility, }); var scrollContainerProps = scrollContainerFocus ? { role: 'group', tabIndex: 0, 'aria-label': scrollContainerAriaLabel, onScroll: onScroll, } : { onScroll: onScroll, }; return (React.createElement("div", tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(tslib_1.__assign({}, this.props), Utilities_1.divProperties, // on React 17 onScroll is not being invoked on root element, // as a fix this method will be provided to the container element ['onScroll']), { ref: this._root, className: classNames.root }), React.createElement("div", { ref: this._stickyAboveRef, className: classNames.stickyAbove, style: this._getStickyContainerStyle(stickyTopHeight, true) }), React.createElement("div", tslib_1.__assign({ ref: this._contentContainer }, scrollContainerProps, { className: classNames.contentContainer, "data-is-scrollable": true }), React.createElement(ScrollablePane_types_1.ScrollablePaneContext.Provider, { value: this._getScrollablePaneContext() }, this.props.children)), React.createElement("div", { className: classNames.stickyBelow, style: this._getStickyContainerStyle(stickyBottomHeight, false) }, React.createElement("div", { ref: this._stickyBelowRef, className: classNames.stickyBelowItems })))); }; ScrollablePaneBase.prototype.setStickiesDistanceFromTop = function () { var _this = this; if (this.contentContainer) { this._stickies.forEach(function (sticky) { sticky.setDistanceFromTop(_this.contentContainer); }); } }; ScrollablePaneBase.prototype.forceLayoutUpdate = function () { this._onWindowResize(); }; ScrollablePaneBase.prototype._checkStickyStatus = function (sticky) { if (this.stickyAbove && this.stickyBelow && this.contentContainer && sticky.nonStickyContent) { // If sticky is sticky, then append content to appropriate container if (sticky.state.isStickyTop || sticky.state.isStickyBottom) { if (sticky.state.isStickyTop && !this.stickyAbove.contains(sticky.nonStickyContent) && sticky.stickyContentTop) { sticky.addSticky(sticky.stickyContentTop); } if (sticky.state.isStickyBottom && !this.stickyBelow.contains(sticky.nonStickyContent) && sticky.stickyContentBottom) { sticky.addSticky(sticky.stickyContentBottom); } } else if (!this.contentContainer.contains(sticky.nonStickyContent)) { // Reset sticky if it's not sticky and not in the contentContainer element sticky.resetSticky(); } } }; ScrollablePaneBase.prototype._getScrollbarWidth = function () { var contentContainer = this.contentContainer; return contentContainer ? contentContainer.offsetWidth - contentContainer.clientWidth : 0; }; ScrollablePaneBase.prototype._getScrollbarHeight = function () { var contentContainer = this.contentContainer; return contentContainer ? contentContainer.offsetHeight - contentContainer.clientHeight : 0; }; return ScrollablePaneBase; }(React.Component)); exports.ScrollablePaneBase = ScrollablePaneBase; //# sourceMappingURL=ScrollablePane.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ScrollablePane = void 0; var ScrollablePane_styles_1 = __webpack_require__(/*! ./ScrollablePane.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.styles.js"); var ScrollablePane_base_1 = __webpack_require__(/*! ./ScrollablePane.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.base.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.ScrollablePane = (0, Utilities_1.styled)(ScrollablePane_base_1.ScrollablePaneBase, ScrollablePane_styles_1.getStyles, undefined, { scope: 'ScrollablePane' }); //# sourceMappingURL=ScrollablePane.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.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-ScrollablePane', contentContainer: 'ms-ScrollablePane--contentContainer', }; var getStyles = function (props) { var _a, _b; var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var AboveAndBelowStyles = { position: 'absolute', pointerEvents: 'none', }; var positioningStyle = { position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, WebkitOverflowScrolling: 'touch', }; return { root: [classNames.root, theme.fonts.medium, positioningStyle, className], contentContainer: [ classNames.contentContainer, { overflowY: props.scrollbarVisibility === 'always' ? 'scroll' : 'auto', }, positioningStyle, ], stickyAbove: [ { top: 0, zIndex: 1, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderBottom: '1px solid WindowText', }, _a), }, AboveAndBelowStyles, ], stickyBelow: [ { bottom: 0, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderTop: '1px solid WindowText', }, _b), }, AboveAndBelowStyles, ], stickyBelowItems: [ { bottom: 0, }, AboveAndBelowStyles, { width: '100%', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ScrollablePane.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ScrollablePaneContext = exports.ScrollbarVisibility = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * {@docCategory ScrollablePane} */ exports.ScrollbarVisibility = { auto: 'auto', always: 'always', }; exports.ScrollablePaneContext = React.createContext({ scrollablePane: undefined }); //# sourceMappingURL=ScrollablePane.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/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__(/*! ./ScrollablePane */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ScrollablePane.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ScrollablePane.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SearchBoxBase = 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 Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var COMPONENT_NAME = 'SearchBox'; var iconButtonStyles = { root: { height: 'auto' }, icon: { fontSize: '12px' } }; var iconButtonProps = { iconName: 'Clear' }; var defaultClearButtonProps = { ariaLabel: 'Clear text' }; var getClassNames = (0, Utilities_1.classNamesFunction)(); var useComponentRef = function (componentRef, inputElementRef, hasFocus) { React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a; return (_a = inputElementRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, blur: function () { var _a; return (_a = inputElementRef.current) === null || _a === void 0 ? void 0 : _a.blur(); }, hasFocus: function () { return hasFocus; }, }); }, [inputElementRef, hasFocus]); }; exports.SearchBoxBase = React.forwardRef(function (props, forwardedRef) { var ariaLabel = props.ariaLabel, className = props.className, _a = props.defaultValue, defaultValue = _a === void 0 ? '' : _a, disabled = props.disabled, underlined = props.underlined, styles = props.styles, // eslint-disable-next-line deprecation/deprecation labelText = props.labelText, // eslint-disable-next-line deprecation/deprecation _b = props.placeholder, // eslint-disable-next-line deprecation/deprecation placeholder = _b === void 0 ? labelText : _b, theme = props.theme, _c = props.clearButtonProps, clearButtonProps = _c === void 0 ? defaultClearButtonProps : _c, _d = props.disableAnimation, disableAnimation = _d === void 0 ? false : _d, _e = props.showIcon, showIcon = _e === void 0 ? false : _e, customOnClear = props.onClear, customOnBlur = props.onBlur, customOnEscape = props.onEscape, customOnSearch = props.onSearch, customOnKeyDown = props.onKeyDown, iconProps = props.iconProps, role = props.role, onChange = props.onChange, // eslint-disable-next-line deprecation/deprecation onChanged = props.onChanged; var _f = React.useState(false), hasFocus = _f[0], setHasFocus = _f[1]; var prevChangeTimestamp = React.useRef(); var _g = (0, react_hooks_1.useControllableValue)(props.value, defaultValue, function (ev, newValue) { if (ev && ev.timeStamp === prevChangeTimestamp.current) { // For historical reasons, SearchBox handles both onInput and onChange (we can't modify this // outside a major version due to potential to break partners' tests and possibly apps). // Only call props.onChange for one of the events. return; } prevChangeTimestamp.current = ev === null || ev === void 0 ? void 0 : ev.timeStamp; onChange === null || onChange === void 0 ? void 0 : onChange(ev, newValue); onChanged === null || onChanged === void 0 ? void 0 : onChanged(newValue); }), uncastValue = _g[0], setValue = _g[1]; var value = String(uncastValue); var rootElementRef = React.useRef(null); var inputElementRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(rootElementRef, forwardedRef); var id = (0, react_hooks_1.useId)(COMPONENT_NAME, props.id); var customOnClearClick = clearButtonProps.onClick; var classNames = getClassNames(styles, { theme: theme, className: className, underlined: underlined, hasFocus: hasFocus, disabled: disabled, hasInput: value.length > 0, disableAnimation: disableAnimation, showIcon: showIcon, }); var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.inputProperties, [ 'className', 'placeholder', 'onFocus', 'onBlur', 'value', 'role', ]); var onClear = React.useCallback(function (ev) { var _a; customOnClear === null || customOnClear === void 0 ? void 0 : customOnClear(ev); if (!ev.defaultPrevented) { setValue(''); (_a = inputElementRef.current) === null || _a === void 0 ? void 0 : _a.focus(); ev.stopPropagation(); ev.preventDefault(); } }, [customOnClear, setValue]); var onClearClick = React.useCallback(function (ev) { customOnClearClick === null || customOnClearClick === void 0 ? void 0 : customOnClearClick(ev); if (!ev.defaultPrevented) { onClear(ev); } }, [customOnClearClick, onClear]); var onFocusCapture = function (ev) { var _a; setHasFocus(true); (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, ev); }; var onClickFocus = function () { if (inputElementRef.current) { inputElementRef.current.focus(); inputElementRef.current.selectionStart = inputElementRef.current.selectionEnd = 0; } }; var onBlur = React.useCallback(function (ev) { setHasFocus(false); customOnBlur === null || customOnBlur === void 0 ? void 0 : customOnBlur(ev); }, [customOnBlur]); var onInputChange = function (ev) { setValue(ev.target.value, ev); }; var onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.escape: customOnEscape === null || customOnEscape === void 0 ? void 0 : customOnEscape(ev); // Only call onClear if the search box has a value to clear. Otherwise, allow the Esc key // to propagate from the empty search box to a parent element such as a dialog, etc. if (value && !ev.defaultPrevented) { onClear(ev); } break; case Utilities_1.KeyCodes.enter: if (customOnSearch) { customOnSearch(value); ev.preventDefault(); ev.stopPropagation(); } break; default: // REVIEW: Why aren't we calling customOnKeyDown for Escape or Enter? customOnKeyDown === null || customOnKeyDown === void 0 ? void 0 : customOnKeyDown(ev); // REVIEW: Why are we calling stopPropagation if customOnKeyDown called preventDefault? // customOnKeyDown should call stopPropagation if it needs it. if (ev.defaultPrevented) { ev.stopPropagation(); } break; } }; useDebugWarning(props); useComponentRef(props.componentRef, inputElementRef, hasFocus); return (React.createElement("div", { role: role, ref: mergedRootRef, className: classNames.root, onFocusCapture: onFocusCapture }, React.createElement("div", { className: classNames.iconContainer, onClick: onClickFocus, "aria-hidden": true }, React.createElement(Icon_1.Icon, tslib_1.__assign({ iconName: "Search" }, iconProps, { className: classNames.icon }))), React.createElement("input", tslib_1.__assign({}, nativeProps, { id: id, className: classNames.field, placeholder: placeholder, onChange: onInputChange, onInput: onInputChange, onBlur: onBlur, onKeyDown: onKeyDown, value: value, disabled: disabled, role: "searchbox", "aria-label": ariaLabel, ref: inputElementRef })), value.length > 0 && (React.createElement("div", { className: classNames.clearButton }, React.createElement(Button_1.IconButton, tslib_1.__assign({ onBlur: onBlur, styles: iconButtonStyles, iconProps: iconButtonProps }, clearButtonProps, { onClick: onClearClick })))))); }); exports.SearchBoxBase.displayName = COMPONENT_NAME; function useDebugWarning(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: { labelText: 'placeholder' }, }); } } //# sourceMappingURL=SearchBox.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SearchBox = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var SearchBox_base_1 = __webpack_require__(/*! ./SearchBox.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.base.js"); var SearchBox_styles_1 = __webpack_require__(/*! ./SearchBox.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.styles.js"); exports.SearchBox = (0, Utilities_1.styled)(SearchBox_base_1.SearchBoxBase, SearchBox_styles_1.getStyles, undefined, { scope: 'SearchBox' }); //# sourceMappingURL=SearchBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.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 GlobalClassNames = { root: 'ms-SearchBox', iconContainer: 'ms-SearchBox-iconContainer', icon: 'ms-SearchBox-icon', clearButton: 'ms-SearchBox-clearButton', field: 'ms-SearchBox-field', }; function getStyles(props) { var _a, _b, _c, _d, _e; var theme = props.theme, underlined = props.underlined, disabled = props.disabled, hasFocus = props.hasFocus, className = props.className, hasInput = props.hasInput, disableAnimation = props.disableAnimation, showIcon = props.showIcon; var palette = theme.palette, fonts = theme.fonts, semanticColors = theme.semanticColors, effects = theme.effects; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // placeholder style constants var placeholderStyles = { color: semanticColors.inputPlaceholderText, opacity: 1, }; var inputIconAlt = palette.neutralSecondary; var inputIconAltHovered = palette.neutralPrimary; var inputBorderDisabled = palette.neutralLighter; var inputBackgroundHovered = palette.neutralLighter; var inputBackgroundDisabled = palette.neutralLighter; return { root: [ classNames.root, fonts.medium, Styling_1.normalize, { color: semanticColors.inputText, backgroundColor: semanticColors.inputBackground, display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', alignItems: 'stretch', // The 1px top and bottom padding ensure the input field does not overlap the border padding: '1px 0 1px 4px', borderRadius: effects.roundedCorner2, border: "1px solid ".concat(semanticColors.inputBorder), height: 32, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'WindowText', }, _a[':hover'] = { borderColor: semanticColors.inputBorderHovered, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', }, _b), }, _a[":hover .".concat(classNames.iconContainer)] = { color: semanticColors.inputIconHovered, }, _a), }, !hasFocus && hasInput && { selectors: (_c = {}, _c[":hover .".concat(classNames.iconContainer)] = { width: 4, }, _c[":hover .".concat(classNames.icon)] = { opacity: 0, pointerEvents: 'none', }, _c), }, hasFocus && [ 'is-active', { position: 'relative', }, (0, Styling_1.getInputFocusStyle)(semanticColors.inputFocusBorderAlt, underlined ? 0 : effects.roundedCorner2, underlined ? 'borderBottom' : 'border'), ], showIcon && [ { selectors: (_d = {}, _d[":hover .".concat(classNames.iconContainer)] = { width: 32, }, _d[":hover .".concat(classNames.icon)] = { opacity: 1, }, _d), }, ], disabled && [ 'is-disabled', { borderColor: inputBorderDisabled, backgroundColor: inputBackgroundDisabled, pointerEvents: 'none', cursor: 'default', selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', }, _e), }, ], underlined && [ 'is-underlined', { borderWidth: '0 0 1px 0', borderRadius: 0, // Underlined SearchBox has a larger padding left to vertically align with the waffle in product padding: '1px 0 1px 8px', }, ], underlined && disabled && { backgroundColor: 'transparent', }, hasInput && 'can-clear', className, ], iconContainer: [ classNames.iconContainer, { display: 'flex', flexDirection: 'column', justifyContent: 'center', flexShrink: 0, fontSize: 16, width: 32, textAlign: 'center', color: semanticColors.inputIcon, cursor: 'text', }, hasFocus && { width: 4, }, disabled && { color: semanticColors.inputIconDisabled, }, !disableAnimation && { transition: "width ".concat(Styling_1.AnimationVariables.durationValue1), }, showIcon && hasFocus && { width: 32, }, ], icon: [ classNames.icon, { opacity: 1, }, hasFocus && { opacity: 0, pointerEvents: 'none', }, !disableAnimation && { transition: "opacity ".concat(Styling_1.AnimationVariables.durationValue1, " 0s"), }, showIcon && hasFocus && { opacity: 1, }, ], clearButton: [ classNames.clearButton, { display: 'flex', flexDirection: 'row', alignItems: 'stretch', cursor: 'pointer', flexBasis: '32px', flexShrink: 0, padding: 0, margin: '-1px 0px', selectors: { '&:hover .ms-Button': { backgroundColor: inputBackgroundHovered, }, '&:hover .ms-Button-icon': { color: inputIconAltHovered, }, '.ms-Button': { borderRadius: (0, Utilities_1.getRTL)(theme) ? '1px 0 0 1px' : '0 1px 1px 0', }, '.ms-Button-icon': { color: inputIconAlt, }, }, }, ], field: [ classNames.field, Styling_1.normalize, (0, Styling_1.getPlaceholderStyles)(placeholderStyles), { backgroundColor: 'transparent', border: 'none', outline: 'none', fontWeight: 'inherit', fontFamily: 'inherit', fontSize: 'inherit', color: semanticColors.inputText, flex: '1 1 0px', // The default implicit value of 'auto' prevents the input from shrinking. Setting min-width to // 0px allows the input element to shrink to fit the container. minWidth: '0px', overflow: 'hidden', textOverflow: 'ellipsis', // This padding forces the text placement to round up. paddingBottom: 0.5, // This removes the IE specific clear button in the input since we implemented our own selectors: { '::-ms-clear': { display: 'none', }, }, }, disabled && { color: semanticColors.disabledText, }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=SearchBox.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SearchBox.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/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__(/*! ./SearchBox */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SearchBox.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SearchBox.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/SearchBox.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseSelectedItemsList = 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 Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseSelectedItemsList = /** @class */ (function (_super) { tslib_1.__extends(BaseSelectedItemsList, _super); function BaseSelectedItemsList(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; _this.addItems = function (items) { var processedItems = _this.props.onItemSelected ? _this.props.onItemSelected(items) : items; var processedItemObjects = processedItems; var processedItemPromiseLikes = processedItems; if (processedItemPromiseLikes && processedItemPromiseLikes.then) { processedItemPromiseLikes.then(function (resolvedProcessedItems) { var newItems = _this.state.items.concat(resolvedProcessedItems); _this.updateItems(newItems); }); } else { var newItems = _this.state.items.concat(processedItemObjects); _this.updateItems(newItems); } }; _this.removeItemAt = function (index) { var items = _this.state.items; if (_this._canRemoveItem(items[index])) { if (index > -1) { if (_this.props.onItemsDeleted) { _this.props.onItemsDeleted([items[index]]); } var newItems = items.slice(0, index).concat(items.slice(index + 1)); _this.updateItems(newItems); } } }; _this.removeItem = function (item) { var items = _this.state.items; var index = items.indexOf(item); _this.removeItemAt(index); }; _this.replaceItem = function (itemToReplace, itemsToReplaceWith) { var items = _this.state.items; var index = items.indexOf(itemToReplace); if (index > -1) { var newItems = items .slice(0, index) .concat(itemsToReplaceWith) .concat(items.slice(index + 1)); _this.updateItems(newItems); } }; _this.removeItems = function (itemsToRemove) { var items = _this.state.items; var itemsCanRemove = itemsToRemove.filter(function (item) { return _this._canRemoveItem(item); }); var newItems = items.filter(function (item) { return itemsCanRemove.indexOf(item) === -1; }); var firstItemToRemove = itemsCanRemove[0]; var index = items.indexOf(firstItemToRemove); if (_this.props.onItemsDeleted) { _this.props.onItemsDeleted(itemsCanRemove); } _this.updateItems(newItems, index); }; _this.onCopy = function (ev) { if (_this.props.onCopyItems && _this.selection.getSelectedCount() > 0) { var selectedItems = _this.selection.getSelection(); _this.copyItems(selectedItems); } }; _this.renderItems = function () { var removeButtonAriaLabel = _this.props.removeButtonAriaLabel; var onRenderItem = _this.props.onRenderItem; var items = _this.state.items; return items.map(function (item, index) { return onRenderItem({ item: item, index: index, key: item.key ? item.key : index, selected: _this.selection.isIndexSelected(index), onRemoveItem: function () { return _this.removeItem(item); }, onItemChange: _this.onItemChange, removeButtonAriaLabel: removeButtonAriaLabel, onCopyItem: function (itemToCopy) { return _this.copyItems([itemToCopy]); }, }); }); }; _this.onSelectionChanged = function () { _this.forceUpdate(); }; _this.onItemChange = function (changedItem, index) { var items = _this.state.items; if (index >= 0) { var newItems = items; newItems[index] = changedItem; _this.updateItems(newItems); } }; (0, Utilities_1.initializeComponentRef)(_this); var items = basePickerProps.selectedItems || basePickerProps.defaultSelectedItems || []; _this.state = { items: items, }; // Create a new selection if one is not specified _this._defaultSelection = new Selection_1.Selection({ onSelectionChanged: _this.onSelectionChanged }); return _this; } BaseSelectedItemsList.getDerivedStateFromProps = function (newProps) { if (newProps.selectedItems) { return { items: newProps.selectedItems }; } return null; }; Object.defineProperty(BaseSelectedItemsList.prototype, "items", { get: function () { return this.state.items; }, enumerable: false, configurable: true }); BaseSelectedItemsList.prototype.removeSelectedItems = function () { if (this.state.items.length && this.selection.getSelectedCount() > 0) { this.removeItems(this.selection.getSelection()); } }; /** * Controls what happens whenever there is an action that impacts the selected items. * If selectedItems is provided, this will act as a controlled component and will not update its own state. */ BaseSelectedItemsList.prototype.updateItems = function (items, focusIndex) { var _this = this; if (this.props.selectedItems) { // If the component is a controlled component then the controlling component will need to pass the new props this.onChange(items); } else { this.setState({ items: items }, function () { _this._onSelectedItemsUpdated(items, focusIndex); }); } }; BaseSelectedItemsList.prototype.hasSelectedItems = function () { return this.selection.getSelectedCount() > 0; }; BaseSelectedItemsList.prototype.componentDidUpdate = function (oldProps, oldState) { if (this.state.items && this.state.items !== oldState.items) { this.selection.setItems(this.state.items); } }; BaseSelectedItemsList.prototype.unselectAll = function () { this.selection.setAllSelected(false); }; BaseSelectedItemsList.prototype.highlightedItems = function () { return this.selection.getSelection(); }; BaseSelectedItemsList.prototype.componentDidMount = function () { this.selection.setItems(this.state.items); }; Object.defineProperty(BaseSelectedItemsList.prototype, "selection", { get: function () { var _a; return (_a = this.props.selection) !== null && _a !== void 0 ? _a : this._defaultSelection; }, enumerable: false, configurable: true }); BaseSelectedItemsList.prototype.render = function () { return this.renderItems(); }; BaseSelectedItemsList.prototype.onChange = function (items) { if (this.props.onChange) { this.props.onChange(items); } }; BaseSelectedItemsList.prototype.copyItems = function (items) { if (this.props.onCopyItems) { var copyText = this.props.onCopyItems(items); var copyInput = document.createElement('input'); document.body.appendChild(copyInput); try { // Try to copy the text directly to the clipboard copyInput.value = copyText; copyInput.select(); // eslint-disable-next-line deprecation/deprecation if (!document.execCommand('copy')) { // The command failed. Fallback to the method below. throw new Error(); } } catch (err) { // no op } finally { document.body.removeChild(copyInput); } } }; BaseSelectedItemsList.prototype._onSelectedItemsUpdated = function (items, focusIndex) { this.onChange(items); }; BaseSelectedItemsList.prototype._canRemoveItem = function (item) { return !this.props.canRemoveItem || this.props.canRemoveItem(item); }; return BaseSelectedItemsList; }(React.Component)); exports.BaseSelectedItemsList = BaseSelectedItemsList; //# sourceMappingURL=BaseSelectedItemsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.types.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.types.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=BaseSelectedItemsList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.js": /*!************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.js ***! \************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EditingItem = 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 EditingItem_styles_1 = __webpack_require__(/*! ./EditingItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.styles.js"); var EditingItem = /** @class */ (function (_super) { tslib_1.__extends(EditingItem, _super); function EditingItem(props) { var _this = _super.call(this, props) || this; _this._editingFloatingPicker = React.createRef(); _this._renderEditingSuggestions = function () { var FloatingPicker = _this.props.onRenderFloatingPicker; var floatingPickerProps = _this.props.floatingPickerProps; if (!FloatingPicker || !floatingPickerProps) { return React.createElement(React.Fragment, null); } return (React.createElement(FloatingPicker, tslib_1.__assign({ componentRef: _this._editingFloatingPicker, onChange: _this._onSuggestionSelected, inputElement: _this._editingInput, selectedItems: [] }, floatingPickerProps))); }; _this._resolveInputRef = function (ref) { _this._editingInput = ref; _this.forceUpdate(function () { _this._editingInput.focus(); }); }; _this._onInputClick = function () { _this._editingFloatingPicker.current && _this._editingFloatingPicker.current.showPicker(true /*updatevalue*/); }; _this._onInputBlur = function (ev) { if (_this._editingFloatingPicker.current && ev.relatedTarget !== null) { var target = ev.relatedTarget; if (target.className.indexOf('ms-Suggestions-itemButton') === -1 && target.className.indexOf('ms-Suggestions-sectionButton') === -1) { _this._editingFloatingPicker.current.forceResolveSuggestion(); } } }; _this._onInputChange = function (ev) { var value = ev.target.value; if (value === '') { if (_this.props.onRemoveItem) { _this.props.onRemoveItem(); } } else { _this._editingFloatingPicker.current && _this._editingFloatingPicker.current.onQueryStringChanged(value); } }; _this._onSuggestionSelected = function (item) { _this.props.onEditingComplete(_this.props.item, item); }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { contextualMenuVisible: false }; return _this; } EditingItem.prototype.componentDidMount = function () { var getEditingItemText = this.props.getEditingItemText; var itemText = getEditingItemText(this.props.item); this._editingFloatingPicker.current && this._editingFloatingPicker.current.onQueryStringChanged(itemText); this._editingInput.value = itemText; this._editingInput.focus(); }; EditingItem.prototype.render = function () { var itemId = (0, Utilities_1.getId)(); var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.inputProperties); var getClassNames = (0, Utilities_1.classNamesFunction)(); var classNames = getClassNames(EditingItem_styles_1.getStyles); return (React.createElement("div", { "aria-labelledby": 'editingItemPersona-' + itemId, className: classNames.root }, React.createElement("input", tslib_1.__assign({ autoCapitalize: 'off', autoComplete: 'off' }, nativeProps, { ref: this._resolveInputRef, onChange: this._onInputChange, onKeyDown: this._onInputKeyDown, onBlur: this._onInputBlur, onClick: this._onInputClick, "data-lpignore": true, className: classNames.input, id: itemId })), this._renderEditingSuggestions())); }; EditingItem.prototype._onInputKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.backspace || ev.which === Utilities_1.KeyCodes.del) { ev.stopPropagation(); } }; return EditingItem; }(React.Component)); exports.EditingItem = EditingItem; //# sourceMappingURL=EditingItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.styles.js": /*!*******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.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-EditingItem', input: 'ms-EditingItem-input', }; var getStyles = function (prop) { var theme = (0, Styling_1.getTheme)(); if (!theme) { throw new Error('theme is undefined or null in Editing item getStyles function.'); } var semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { margin: '4px', }, ], input: [ classNames.input, { border: '0px', outline: 'none', width: '100%', backgroundColor: semanticColors.inputBackground, color: semanticColors.inputText, selectors: { '::-ms-clear': { display: 'none', }, }, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=EditingItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.types.js": /*!******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.types.js ***! \******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=EditingItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.js": /*!*********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.js ***! \*********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ExtendedSelectedItem = 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 Persona_1 = __webpack_require__(/*! ../../../../Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); var stylesImport = __webpack_require__(/*! ./ExtendedSelectedItem.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.scss.js"); var styles = stylesImport; var ExtendedSelectedItem = /** @class */ (function (_super) { tslib_1.__extends(ExtendedSelectedItem, _super); function ExtendedSelectedItem(props) { var _this = _super.call(this, props) || this; _this.persona = React.createRef(); (0, Utilities_1.initializeComponentRef)(_this); _this.state = { contextualMenuVisible: false }; return _this; } ExtendedSelectedItem.prototype.render = function () { var _a, _b; var _c = this.props, item = _c.item, onExpandItem = _c.onExpandItem, onRemoveItem = _c.onRemoveItem, removeButtonAriaLabel = _c.removeButtonAriaLabel, index = _c.index, selected = _c.selected; var itemId = (0, Utilities_1.getId)(); return (React.createElement("div", { ref: this.persona, className: (0, Utilities_1.css)('ms-PickerPersona-container', styles.personaContainer, (_a = {}, _a['is-selected ' + styles.personaContainerIsSelected] = selected, _a), (_b = {}, _b['is-invalid ' + styles.validationError] = !item.isValid, _b)), "data-is-focusable": true, "data-is-sub-focuszone": true, "data-selection-index": index, role: 'listitem', "aria-labelledby": 'selectedItemPersona-' + itemId }, React.createElement("div", { hidden: !item.canExpand || onExpandItem === undefined }, React.createElement(Button_1.IconButton, { onClick: this._onClickIconButton(onExpandItem), iconProps: { iconName: 'Add', style: { fontSize: '14px' } }, className: (0, Utilities_1.css)('ms-PickerItem-removeButton', styles.expandButton, styles.actionButton), ariaLabel: removeButtonAriaLabel })), React.createElement("div", { className: (0, Utilities_1.css)(styles.personaWrapper) }, React.createElement("div", { className: (0, Utilities_1.css)('ms-PickerItem-content', styles.itemContent), id: 'selectedItemPersona-' + itemId }, React.createElement(Persona_1.Persona, tslib_1.__assign({}, item, { onRenderCoin: this.props.renderPersonaCoin, onRenderPrimaryText: this.props.renderPrimaryText, size: Persona_1.PersonaSize.size32 }))), React.createElement(Button_1.IconButton, { onClick: this._onClickIconButton(onRemoveItem), iconProps: { iconName: 'Cancel', style: { fontSize: '14px' } }, className: (0, Utilities_1.css)('ms-PickerItem-removeButton', styles.removeButton, styles.actionButton), ariaLabel: removeButtonAriaLabel })))); }; ExtendedSelectedItem.prototype._onClickIconButton = function (action) { return function (ev) { ev.stopPropagation(); ev.preventDefault(); if (action) { action(); } }; }; return ExtendedSelectedItem; }(React.Component)); exports.ExtendedSelectedItem = ExtendedSelectedItem; //# sourceMappingURL=ExtendedSelectedItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.scss.js": /*!**************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.scss.js ***! \**************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.itemContainer = exports.personaDetails = exports.personaWrapper = exports.expandButton = exports.removeButton = exports.itemContent = exports.validationError = exports.personaContainerIsSelected = exports.actionButton = exports.hover = exports.personaContainer = 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": ".personaContainer_6625fd9a{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:" }, { "theme": "themeLighterAlt", "defaultValue": "#eff6fc" }, { "rawString": ";margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_6625fd9a::-moz-focus-inner{border:0}.personaContainer_6625fd9a{outline:transparent}.personaContainer_6625fd9a{position:relative}.ms-Fabric--isFocusVisible .personaContainer_6625fd9a:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:\"\";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid " }, { "theme": "focusBorder", "defaultValue": "#605e5c" }, { "rawString": ";border-radius:0}.personaContainer_6625fd9a .ms-Persona-primaryText{color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": ";font-size:14px;font-weight:400}.personaContainer_6625fd9a .ms-Persona-primaryText.hover_6625fd9a{color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a .actionButton_6625fd9a:hover{background:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}.personaContainer_6625fd9a:hover{background:" }, { "theme": "themeLighter", "defaultValue": "#deecf9" }, { "rawString": "}.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": ";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{background:" }, { "theme": "themePrimary", "defaultValue": "#0078d4" }, { "rawString": "}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:" }, { "theme": "white", "defaultValue": "#ffffff" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a{color:" }, { "theme": "white", "defaultValue": "#ffffff" }, { "rawString": "}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": "}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon:hover{background:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-primaryText{color:" }, { "theme": "red", "defaultValue": "#e81123" }, { "rawString": "}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a{border:1px solid WindowText}}.personaContainer_6625fd9a .itemContent_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_6625fd9a .removeButton_6625fd9a{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_6625fd9a .expandButton_6625fd9a{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_6625fd9a .personaWrapper_6625fd9a{position:relative;display:inherit}.personaContainer_6625fd9a .personaWrapper_6625fd9a .ms-Persona-details{padding:0 8px}.personaContainer_6625fd9a .personaDetails_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_6625fd9a{display:inline-block;vertical-align:top}" }]); exports.personaContainer = "personaContainer_6625fd9a"; exports.hover = "hover_6625fd9a"; exports.actionButton = "actionButton_6625fd9a"; exports.personaContainerIsSelected = "personaContainerIsSelected_6625fd9a"; exports.validationError = "validationError_6625fd9a"; exports.itemContent = "itemContent_6625fd9a"; exports.removeButton = "removeButton_6625fd9a"; exports.expandButton = "expandButton_6625fd9a"; exports.personaWrapper = "personaWrapper_6625fd9a"; exports.personaDetails = "personaDetails_6625fd9a"; exports.itemContainer = "itemContainer_6625fd9a"; //# sourceMappingURL=ExtendedSelectedItem.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/SelectedItemWithContextMenu.js": /*!****************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/SelectedItemWithContextMenu.js ***! \****************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectedItemWithContextMenu = 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_1 = __webpack_require__(/*! ../../../../ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js"); var SelectedItemWithContextMenu = /** @class */ (function (_super) { tslib_1.__extends(SelectedItemWithContextMenu, _super); function SelectedItemWithContextMenu(props) { var _this = _super.call(this, props) || this; _this.itemElement = React.createRef(); _this._onClick = function (ev) { ev.preventDefault(); if (_this.props.beginEditing && !_this.props.item.isValid) { _this.props.beginEditing(_this.props.item); } else { _this.setState({ contextualMenuVisible: true }); } }; _this._onCloseContextualMenu = function (ev) { _this.setState({ contextualMenuVisible: false }); }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { contextualMenuVisible: false }; return _this; } SelectedItemWithContextMenu.prototype.render = function () { return (React.createElement("div", { ref: this.itemElement, onContextMenu: this._onClick }, this.props.renderedItem, this.state.contextualMenuVisible ? (React.createElement(ContextualMenu_1.ContextualMenu, { items: this.props.menuItems, shouldFocusOnMount: true, target: this.itemElement.current, onDismiss: this._onCloseContextualMenu, directionalHint: ContextualMenu_1.DirectionalHint.bottomLeftEdge })) : null)); }; return SelectedItemWithContextMenu; }(React.Component)); exports.SelectedItemWithContextMenu = SelectedItemWithContextMenu; //# sourceMappingURL=SelectedItemWithContextMenu.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/SelectedPeopleList.js": /*!*************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/SelectedPeopleList.js ***! \*************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectedPeopleList = exports.BasePeopleSelectedItemsList = 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 BaseSelectedItemsList_1 = __webpack_require__(/*! ../BaseSelectedItemsList */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.js"); var ExtendedSelectedItem_1 = __webpack_require__(/*! ./Items/ExtendedSelectedItem */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.js"); var SelectedItemWithContextMenu_1 = __webpack_require__(/*! ./Items/SelectedItemWithContextMenu */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/SelectedItemWithContextMenu.js"); var EditingItem_1 = __webpack_require__(/*! ./Items/EditingItem */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.js"); /** * {@docCategory SelectedPeopleList} */ var BasePeopleSelectedItemsList = /** @class */ (function (_super) { tslib_1.__extends(BasePeopleSelectedItemsList, _super); function BasePeopleSelectedItemsList() { return _super !== null && _super.apply(this, arguments) || this; } return BasePeopleSelectedItemsList; }(BaseSelectedItemsList_1.BaseSelectedItemsList)); exports.BasePeopleSelectedItemsList = BasePeopleSelectedItemsList; /** * Standard People Picker. */ var SelectedPeopleList = /** @class */ (function (_super) { tslib_1.__extends(SelectedPeopleList, _super); function SelectedPeopleList() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.renderItems = function () { var items = _this.state.items; return items.map(function (item, index) { return _this._renderItem(item, index); }); }; _this._beginEditing = function (item) { item.isEditing = true; _this.forceUpdate(); }; _this._completeEditing = function (oldItem, newItem) { oldItem.isEditing = false; _this.replaceItem(oldItem, newItem); }; return _this; } SelectedPeopleList.prototype._renderItem = function (item, index) { var _this = this; var removeButtonAriaLabel = this.props.removeButtonAriaLabel; var expandGroup = this.props.onExpandGroup; var props = { item: item, index: index, key: item.key ? item.key : index, selected: this.selection.isIndexSelected(index), onRemoveItem: function () { return _this.removeItem(item); }, onItemChange: this.onItemChange, removeButtonAriaLabel: removeButtonAriaLabel, onCopyItem: function (itemToCopy) { return _this.copyItems([itemToCopy]); }, onExpandItem: expandGroup ? function () { return expandGroup(item); } : undefined, menuItems: this._createMenuItems(item), }; var hasContextMenu = props.menuItems.length > 0; if (item.isEditing && hasContextMenu) { return (React.createElement(EditingItem_1.EditingItem, tslib_1.__assign({}, props, { onRenderFloatingPicker: this.props.onRenderFloatingPicker, floatingPickerProps: this.props.floatingPickerProps, onEditingComplete: this._completeEditing, getEditingItemText: this.props.getEditingItemText }))); } else { // This cast is here because we are guaranteed that onRenderItem is set // from static defaultProps // TODO: Move this component to composition with required onRenderItem to remove // this cast. var onRenderItem = this.props.onRenderItem; var renderedItem = onRenderItem(props); return hasContextMenu ? (React.createElement(SelectedItemWithContextMenu_1.SelectedItemWithContextMenu, { key: props.key, renderedItem: renderedItem, beginEditing: this._beginEditing, menuItems: this._createMenuItems(props.item), item: props.item })) : (renderedItem); } }; SelectedPeopleList.prototype._createMenuItems = function (item) { var _this = this; var menuItems = []; if (this.props.editMenuItemText && this.props.getEditingItemText) { menuItems.push({ key: 'Edit', text: this.props.editMenuItemText, onClick: function (ev, menuItem) { _this._beginEditing(menuItem.data); }, data: item, }); } if (this.props.removeMenuItemText) { menuItems.push({ key: 'Remove', text: this.props.removeMenuItemText, onClick: function (ev, menuItem) { _this.removeItem(menuItem.data); }, data: item, }); } if (this.props.copyMenuItemText) { menuItems.push({ key: 'Copy', text: this.props.copyMenuItemText, onClick: function (ev, menuItem) { if (_this.props.onCopyItems) { _this.copyItems([menuItem.data]); } }, data: item, }); } return menuItems; }; SelectedPeopleList.defaultProps = { onRenderItem: function (props) { return React.createElement(ExtendedSelectedItem_1.ExtendedSelectedItem, tslib_1.__assign({}, props)); }, }; return SelectedPeopleList; }(BasePeopleSelectedItemsList)); exports.SelectedPeopleList = SelectedPeopleList; //# sourceMappingURL=SelectedPeopleList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/index.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/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__(/*! ./BaseSelectedItemsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./BaseSelectedItemsList */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/BaseSelectedItemsList.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectedPeopleList/SelectedPeopleList */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/SelectedPeopleList.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectedPeopleList/Items/ExtendedSelectedItem */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectedPeopleList/Items/EditingItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/SelectedPeopleList/Items/EditingItem.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SeparatorBase = 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.SeparatorBase = React.forwardRef(function (props, ref) { var styles = props.styles, theme = props.theme, className = props.className, vertical = props.vertical, alignContent = props.alignContent, children = props.children; var classNames = getClassNames(styles, { theme: theme, className: className, alignContent: alignContent, vertical: vertical, }); return (React.createElement("div", { className: classNames.root, ref: ref }, React.createElement("div", { className: classNames.content, role: "separator", "aria-orientation": vertical ? 'vertical' : 'horizontal' }, children))); }); //# sourceMappingURL=Separator.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Separator = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Separator_styles_1 = __webpack_require__(/*! ./Separator.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.styles.js"); var Separator_base_1 = __webpack_require__(/*! ./Separator.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.base.js"); exports.Separator = (0, Utilities_1.styled)(Separator_base_1.SeparatorBase, Separator_styles_1.getStyles, undefined, { scope: 'Separator', }); exports.Separator.displayName = 'Separator'; //# sourceMappingURL=Separator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.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) { var _a, _b; var theme = props.theme, alignContent = props.alignContent, vertical = props.vertical, className = props.className; var alignStart = alignContent === 'start'; var alignCenter = alignContent === 'center'; var alignEnd = alignContent === 'end'; return { root: [ theme.fonts.medium, { position: 'relative', }, alignContent && { textAlign: alignContent, }, !alignContent && { textAlign: 'center', }, vertical && (alignCenter || !alignContent) && { verticalAlign: 'middle', }, vertical && alignStart && { verticalAlign: 'top', }, vertical && alignEnd && { verticalAlign: 'bottom', }, vertical && { padding: '0 4px', height: 'inherit', display: 'table-cell', zIndex: 1, selectors: { ':after': (_a = { backgroundColor: theme.palette.neutralLighter, width: '1px', content: '""', position: 'absolute', top: '0', bottom: '0', left: '50%', right: '0', zIndex: -1 }, _a[Styling_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _a), }, }, !vertical && { padding: '4px 0', selectors: { ':before': (_b = { backgroundColor: theme.palette.neutralLighter, height: '1px', content: '""', display: 'block', position: 'absolute', top: '50%', bottom: '0', left: '0', right: '0' }, _b[Styling_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _b), }, }, className, ], content: [ { position: 'relative', display: 'inline-block', padding: '0 12px', color: theme.semanticColors.bodyText, background: theme.semanticColors.bodyBackground, }, vertical && { padding: '12px 0', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Separator.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Separator.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Separator/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__(/*! ./Separator.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Separator */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Separator.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/Separator.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.base.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.base.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerBase = 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 ShimmerElementsGroup_1 = __webpack_require__(/*! ./ShimmerElementsGroup/ShimmerElementsGroup */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var TRANSITION_ANIMATION_INTERVAL = 200; /* ms */ var COMPONENT_NAME = 'Shimmer'; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory Shimmer} */ exports.ShimmerBase = React.forwardRef(function (props, ref) { var styles = props.styles, shimmerElements = props.shimmerElements, children = props.children, width = props.width, className = props.className, customElementsGroup = props.customElementsGroup, theme = props.theme, ariaLabel = props.ariaLabel, shimmerColors = props.shimmerColors, _a = props.isDataLoaded, isDataLoaded = _a === void 0 ? false : _a, improveCSSPerformance = props.improveCSSPerformance; var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties); var classNames = getClassNames(styles, { theme: theme, isDataLoaded: isDataLoaded, className: className, transitionAnimationInterval: TRANSITION_ANIMATION_INTERVAL, shimmerColor: shimmerColors && shimmerColors.shimmer, shimmerWaveColor: shimmerColors && shimmerColors.shimmerWave, improveCSSPerformance: improveCSSPerformance || !customElementsGroup, }); var internalState = (0, react_hooks_1.useConst)({ lastTimeoutId: 0, }); var _b = (0, react_hooks_1.useSetTimeout)(), setTimeout = _b.setTimeout, clearTimeout = _b.clearTimeout; /** * Flag for knowing when to remove the shimmerWrapper from the DOM. */ var _c = React.useState(isDataLoaded), contentLoaded = _c[0], setContentLoaded = _c[1]; var divStyleProp = { width: width ? width : '100%' }; React.useEffect(function () { if (isDataLoaded !== contentLoaded) { if (isDataLoaded) { internalState.lastTimeoutId = setTimeout(function () { setContentLoaded(true); }, TRANSITION_ANIMATION_INTERVAL); return function () { return clearTimeout(internalState.lastTimeoutId); }; } else { setContentLoaded(false); } } // eslint-disable-next-line react-hooks/exhaustive-deps -- Should only run when isDataLoaded changes. }, [isDataLoaded]); return (React.createElement("div", tslib_1.__assign({}, divProps, { className: classNames.root, ref: ref }), !contentLoaded && (React.createElement("div", { style: divStyleProp, className: classNames.shimmerWrapper }, React.createElement("div", { className: classNames.shimmerGradient }), customElementsGroup ? (customElementsGroup) : (React.createElement(ShimmerElementsGroup_1.ShimmerElementsGroup, { shimmerElements: shimmerElements, backgroundColor: shimmerColors && shimmerColors.background })))), children && React.createElement("div", { className: classNames.dataWrapper }, children), ariaLabel && !isDataLoaded && (React.createElement("div", { role: "status", "aria-live": "polite" }, React.createElement(Utilities_1.DelayedRender, null, React.createElement("div", { className: classNames.screenReaderText }, ariaLabel)))))); }); exports.ShimmerBase.displayName = COMPONENT_NAME; //# sourceMappingURL=Shimmer.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Shimmer = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Shimmer_styles_1 = __webpack_require__(/*! ./Shimmer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.styles.js"); var Shimmer_base_1 = __webpack_require__(/*! ./Shimmer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.base.js"); exports.Shimmer = (0, Utilities_1.styled)(Shimmer_base_1.ShimmerBase, Shimmer_styles_1.getStyles, undefined, { scope: 'Shimmer', }); //# sourceMappingURL=Shimmer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.styles.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.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-Shimmer-container', shimmerWrapper: 'ms-Shimmer-shimmerWrapper', shimmerGradient: 'ms-Shimmer-shimmerGradient', dataWrapper: 'ms-Shimmer-dataWrapper', }; var BACKGROUND_OFF_SCREEN_POSITION = '100%'; var shimmerAnimation = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { transform: "translateX(-".concat(BACKGROUND_OFF_SCREEN_POSITION, ")"), }, '100%': { transform: "translateX(".concat(BACKGROUND_OFF_SCREEN_POSITION, ")"), }, }); }); var shimmerAnimationRTL = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '100%': { transform: "translateX(-".concat(BACKGROUND_OFF_SCREEN_POSITION, ")"), }, '0%': { transform: "translateX(".concat(BACKGROUND_OFF_SCREEN_POSITION, ")"), }, }); }); function getStyles(props) { var _a; var isDataLoaded = props.isDataLoaded, className = props.className, theme = props.theme, transitionAnimationInterval = props.transitionAnimationInterval, shimmerColor = props.shimmerColor, shimmerWaveColor = props.shimmerWaveColor, improveCSSPerformance = props.improveCSSPerformance; var semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var isRTL = (0, Utilities_1.getRTL)(theme); return { root: [ classNames.root, theme.fonts.medium, { position: 'relative', height: 'auto', }, className, ], shimmerWrapper: [ classNames.shimmerWrapper, { position: 'relative', overflow: 'hidden', transform: 'translateZ(0)', backgroundColor: shimmerColor || semanticColors.disabledBackground, transition: "opacity ".concat(transitionAnimationInterval, "ms"), selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ background: "WindowText\n linear-gradient(\n to right,\n transparent 0%,\n Window 50%,\n transparent 100%)\n 0 0 / 90% 100%\n no-repeat" }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }, isDataLoaded && { opacity: '0', position: 'absolute', top: '0', bottom: '0', left: '0', right: '0', }, improveCSSPerformance ? { selectors: { '> div:last-child': { transform: 'translateZ(0)', }, }, } : { selectors: { '> *': { transform: 'translateZ(0)', }, }, }, ], shimmerGradient: [ classNames.shimmerGradient, { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', background: "".concat(shimmerColor || semanticColors.disabledBackground, "\n linear-gradient(\n to right,\n ").concat(shimmerColor || semanticColors.disabledBackground, " 0%,\n ").concat(shimmerWaveColor || semanticColors.bodyDivider, " 50%,\n ").concat(shimmerColor || semanticColors.disabledBackground, " 100%)\n 0 0 / 90% 100%\n no-repeat"), transform: "translateX(-".concat(BACKGROUND_OFF_SCREEN_POSITION, ")"), animationDuration: '2s', animationTimingFunction: 'ease-in-out', animationDirection: 'normal', animationIterationCount: 'infinite', animationName: isRTL ? shimmerAnimationRTL() : shimmerAnimation(), }, ], dataWrapper: [ classNames.dataWrapper, { position: 'absolute', top: '0', bottom: '0', left: '0', right: '0', opacity: '0', background: 'none', backgroundColor: 'transparent', border: 'none', transition: "opacity ".concat(transitionAnimationInterval, "ms"), }, isDataLoaded && { opacity: '1', position: 'static', }, ], screenReaderText: Styling_1.hiddenContentStyle, }; } exports.getStyles = getStyles; //# sourceMappingURL=Shimmer.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerElementsDefaultHeights = exports.ShimmerElementType = void 0; /** * Describes the possible types for shimmer elements used. * {@docCategory Shimmer} */ var ShimmerElementType; (function (ShimmerElementType) { /** * Line element type */ ShimmerElementType[ShimmerElementType["line"] = 1] = "line"; /** * Circle element type */ ShimmerElementType[ShimmerElementType["circle"] = 2] = "circle"; /** * Gap element type */ ShimmerElementType[ShimmerElementType["gap"] = 3] = "gap"; })(ShimmerElementType = exports.ShimmerElementType || (exports.ShimmerElementType = {})); /** * Describes the default heights for shimmer elements when omitted in implementation. * {@docCategory Shimmer} */ var ShimmerElementsDefaultHeights; (function (ShimmerElementsDefaultHeights) { /** * Default height of the line element when not provided by user: 16px */ ShimmerElementsDefaultHeights[ShimmerElementsDefaultHeights["line"] = 16] = "line"; /** * Default height of the gap element when not provided by user: 16px */ ShimmerElementsDefaultHeights[ShimmerElementsDefaultHeights["gap"] = 16] = "gap"; /** * Default height of the circle element when not provided by user: 24px */ ShimmerElementsDefaultHeights[ShimmerElementsDefaultHeights["circle"] = 24] = "circle"; })(ShimmerElementsDefaultHeights = exports.ShimmerElementsDefaultHeights || (exports.ShimmerElementsDefaultHeights = {})); //# sourceMappingURL=Shimmer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.base.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.base.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerCircleBase = 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)(); var ShimmerCircleBase = function (props) { // eslint-disable-next-line deprecation/deprecation var height = props.height, styles = props.styles, borderStyle = props.borderStyle, theme = props.theme; var classNames = getClassNames(styles, { theme: theme, height: height, borderStyle: borderStyle, }); return (React.createElement("div", { className: classNames.root }, React.createElement("svg", { viewBox: "0 0 10 10", width: height, height: height, className: classNames.svg }, React.createElement("path", { d: "M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z" })))); }; exports.ShimmerCircleBase = ShimmerCircleBase; //# sourceMappingURL=ShimmerCircle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerCircle = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ShimmerCircle_styles_1 = __webpack_require__(/*! ./ShimmerCircle.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.styles.js"); var ShimmerCircle_base_1 = __webpack_require__(/*! ./ShimmerCircle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.base.js"); exports.ShimmerCircle = (0, Utilities_1.styled)(ShimmerCircle_base_1.ShimmerCircleBase, ShimmerCircle_styles_1.getStyles, undefined, { scope: 'ShimmerCircle' }); //# sourceMappingURL=ShimmerCircle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.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-ShimmerCircle-root', svg: 'ms-ShimmerCircle-svg', }; function getStyles(props) { var _a, _b; // eslint-disable-next-line deprecation/deprecation var height = props.height, borderStyle = props.borderStyle, theme = props.theme; var semanticColors = theme.semanticColors; var globalClassNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var borderStyles = borderStyle || {}; return { root: [ globalClassNames.root, theme.fonts.medium, { width: "".concat(height, "px"), height: "".concat(height, "px"), minWidth: "".concat(height, "px"), boxSizing: 'content-box', borderTopStyle: 'solid', borderBottomStyle: 'solid', borderColor: semanticColors.bodyBackground, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Window', }, _a), }, borderStyles, ], svg: [ globalClassNames.svg, { display: 'block', fill: semanticColors.bodyBackground, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { fill: 'Window', }, _b), }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=ShimmerCircle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ShimmerCircle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.base.js": /*!************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.base.js ***! \************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerElementsGroupBase = 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 Shimmer_types_1 = __webpack_require__(/*! ../Shimmer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.types.js"); var ShimmerLine_1 = __webpack_require__(/*! ../ShimmerLine/ShimmerLine */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.js"); var ShimmerGap_1 = __webpack_require__(/*! ../ShimmerGap/ShimmerGap */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.js"); var ShimmerCircle_1 = __webpack_require__(/*! ../ShimmerCircle/ShimmerCircle */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory Shimmer} */ var ShimmerElementsGroupBase = function (props) { var styles = props.styles, _a = props.width, width = _a === void 0 ? 'auto' : _a, shimmerElements = props.shimmerElements, _b = props.rowHeight, rowHeight = _b === void 0 ? findMaxElementHeight(shimmerElements || []) : _b, _c = props.flexWrap, flexWrap = _c === void 0 ? false : _c, theme = props.theme, backgroundColor = props.backgroundColor; var classNames = getClassNames(styles, { theme: theme, flexWrap: flexWrap, }); return (React.createElement("div", { style: { width: width }, className: classNames.root }, getRenderedElements(shimmerElements, backgroundColor, rowHeight))); }; exports.ShimmerElementsGroupBase = ShimmerElementsGroupBase; function getRenderedElements(shimmerElements, backgroundColor, rowHeight) { var renderedElements = shimmerElements ? (shimmerElements.map( // false positive // eslint-disable-next-line array-callback-return function (element, index) { var type = element.type, filteredElem = tslib_1.__rest(element, ["type"]); var verticalAlign = filteredElem.verticalAlign, height = filteredElem.height; var styles = getElementStyles(verticalAlign, type, height, backgroundColor, rowHeight); switch (element.type) { case Shimmer_types_1.ShimmerElementType.circle: return React.createElement(ShimmerCircle_1.ShimmerCircle, tslib_1.__assign({ key: index }, filteredElem, { styles: styles })); case Shimmer_types_1.ShimmerElementType.gap: return React.createElement(ShimmerGap_1.ShimmerGap, tslib_1.__assign({ key: index }, filteredElem, { styles: styles })); case Shimmer_types_1.ShimmerElementType.line: return React.createElement(ShimmerLine_1.ShimmerLine, tslib_1.__assign({ key: index }, filteredElem, { styles: styles })); } })) : (React.createElement(ShimmerLine_1.ShimmerLine, { height: Shimmer_types_1.ShimmerElementsDefaultHeights.line })); return renderedElements; } var getElementStyles = (0, Utilities_1.memoizeFunction)(function (verticalAlign, elementType, elementHeight, backgroundColor, rowHeight) { var dif = rowHeight && elementHeight ? rowHeight - elementHeight : 0; var borderStyle; if (!verticalAlign || verticalAlign === 'center') { borderStyle = { borderBottomWidth: "".concat(dif ? Math.floor(dif / 2) : 0, "px"), borderTopWidth: "".concat(dif ? Math.ceil(dif / 2) : 0, "px"), }; } else if (verticalAlign && verticalAlign === 'top') { borderStyle = { borderBottomWidth: "".concat(dif, "px"), borderTopWidth: "0px", }; } else if (verticalAlign && verticalAlign === 'bottom') { borderStyle = { borderBottomWidth: "0px", borderTopWidth: "".concat(dif, "px"), }; } if (backgroundColor) { switch (elementType) { case Shimmer_types_1.ShimmerElementType.circle: return { root: tslib_1.__assign(tslib_1.__assign({}, borderStyle), { borderColor: backgroundColor }), svg: { fill: backgroundColor }, }; case Shimmer_types_1.ShimmerElementType.gap: return { root: tslib_1.__assign(tslib_1.__assign({}, borderStyle), { borderColor: backgroundColor, backgroundColor: backgroundColor }), }; case Shimmer_types_1.ShimmerElementType.line: return { root: tslib_1.__assign(tslib_1.__assign({}, borderStyle), { borderColor: backgroundColor }), topLeftCorner: { fill: backgroundColor }, topRightCorner: { fill: backgroundColor }, bottomLeftCorner: { fill: backgroundColor }, bottomRightCorner: { fill: backgroundColor }, }; } } return { root: borderStyle, }; }); /** * User should not worry to provide which of the elements is the highest so we do the calculation for him. * Plus if user forgot to specify the height we assign their defaults. */ function findMaxElementHeight(shimmerElements) { var shimmerElementsDefaulted = shimmerElements.map(function (element) { switch (element.type) { case Shimmer_types_1.ShimmerElementType.circle: if (!element.height) { element.height = Shimmer_types_1.ShimmerElementsDefaultHeights.circle; } break; case Shimmer_types_1.ShimmerElementType.line: if (!element.height) { element.height = Shimmer_types_1.ShimmerElementsDefaultHeights.line; } break; case Shimmer_types_1.ShimmerElementType.gap: if (!element.height) { element.height = Shimmer_types_1.ShimmerElementsDefaultHeights.gap; } break; } return element; }); var rowHeight = shimmerElementsDefaulted.reduce(function (acc, next) { return next.height ? (next.height > acc ? next.height : acc) : acc; }, 0); return rowHeight; } //# sourceMappingURL=ShimmerElementsGroup.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.js": /*!*******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.js ***! \*******************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerElementsGroup = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ShimmerElementsGroup_base_1 = __webpack_require__(/*! ./ShimmerElementsGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.base.js"); var ShimmerElementsGroup_styles_1 = __webpack_require__(/*! ./ShimmerElementsGroup.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.styles.js"); exports.ShimmerElementsGroup = (0, Utilities_1.styled)(ShimmerElementsGroup_base_1.ShimmerElementsGroupBase, ShimmerElementsGroup_styles_1.getStyles, undefined, { scope: 'ShimmerElementsGroup' }); //# sourceMappingURL=ShimmerElementsGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.styles.js": /*!**************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.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-ShimmerElementsGroup-root', }; function getStyles(props) { var flexWrap = props.flexWrap, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, { display: 'flex', alignItems: 'center', flexWrap: flexWrap ? 'wrap' : 'nowrap', position: 'relative', }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=ShimmerElementsGroup.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.types.js": /*!*************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.types.js ***! \*************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ShimmerElementsGroup.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerGapBase = 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)(); /** * {@docCategory Shimmer} */ var ShimmerGapBase = function (props) { // eslint-disable-next-line deprecation/deprecation var height = props.height, styles = props.styles, _a = props.width, width = _a === void 0 ? '10px' : _a, borderStyle = props.borderStyle, theme = props.theme; var classNames = getClassNames(styles, { theme: theme, height: height, borderStyle: borderStyle, }); return (React.createElement("div", { style: { width: width, minWidth: typeof width === 'number' ? "".concat(width, "px") : 'auto' }, className: classNames.root })); }; exports.ShimmerGapBase = ShimmerGapBase; //# sourceMappingURL=ShimmerGap.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerGap = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ShimmerGap_base_1 = __webpack_require__(/*! ./ShimmerGap.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.base.js"); var ShimmerGap_styles_1 = __webpack_require__(/*! ./ShimmerGap.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.styles.js"); exports.ShimmerGap = (0, Utilities_1.styled)(ShimmerGap_base_1.ShimmerGapBase, ShimmerGap_styles_1.getStyles, undefined, { scope: 'ShimmerGap', }); //# sourceMappingURL=ShimmerGap.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.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-ShimmerGap-root', }; function getStyles(props) { var _a; // eslint-disable-next-line deprecation/deprecation var height = props.height, borderStyle = props.borderStyle, theme = props.theme; var semanticColors = theme.semanticColors; var globalClassNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var borderStyles = borderStyle || {}; return { root: [ globalClassNames.root, theme.fonts.medium, { backgroundColor: semanticColors.bodyBackground, height: "".concat(height, "px"), boxSizing: 'content-box', borderTopStyle: 'solid', borderBottomStyle: 'solid', borderColor: semanticColors.bodyBackground, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { backgroundColor: 'Window', borderColor: 'Window', }, _a), }, borderStyles, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=ShimmerGap.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ShimmerGap.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerLineBase = 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)(); /** * {@docCategory Shimmer} */ var ShimmerLineBase = function (props) { // eslint-disable-next-line deprecation/deprecation var height = props.height, styles = props.styles, _a = props.width, width = _a === void 0 ? '100%' : _a, borderStyle = props.borderStyle, theme = props.theme; var classNames = getClassNames(styles, { theme: theme, height: height, borderStyle: borderStyle, }); return (React.createElement("div", { style: { width: width, minWidth: typeof width === 'number' ? "".concat(width, "px") : 'auto' }, className: classNames.root }, React.createElement("svg", { width: "2", height: "2", className: classNames.topLeftCorner }, React.createElement("path", { d: "M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z" })), React.createElement("svg", { width: "2", height: "2", className: classNames.topRightCorner }, React.createElement("path", { d: "M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z" })), React.createElement("svg", { width: "2", height: "2", className: classNames.bottomRightCorner }, React.createElement("path", { d: "M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z" })), React.createElement("svg", { width: "2", height: "2", className: classNames.bottomLeftCorner }, React.createElement("path", { d: "M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z" })))); }; exports.ShimmerLineBase = ShimmerLineBase; //# sourceMappingURL=ShimmerLine.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmerLine = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ShimmerLine_base_1 = __webpack_require__(/*! ./ShimmerLine.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.base.js"); var ShimmerLine_styles_1 = __webpack_require__(/*! ./ShimmerLine.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.styles.js"); exports.ShimmerLine = (0, Utilities_1.styled)(ShimmerLine_base_1.ShimmerLineBase, ShimmerLine_styles_1.getStyles, undefined, { scope: 'ShimmerLine', }); //# sourceMappingURL=ShimmerLine.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.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-ShimmerLine-root', topLeftCorner: 'ms-ShimmerLine-topLeftCorner', topRightCorner: 'ms-ShimmerLine-topRightCorner', bottomLeftCorner: 'ms-ShimmerLine-bottomLeftCorner', bottomRightCorner: 'ms-ShimmerLine-bottomRightCorner', }; function getStyles(props) { var _a; // eslint-disable-next-line deprecation/deprecation var height = props.height, borderStyle = props.borderStyle, theme = props.theme; var semanticColors = theme.semanticColors; var globalClassNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var borderStyles = borderStyle || {}; var sharedCornerStyles = { position: 'absolute', fill: semanticColors.bodyBackground, }; return { root: [ globalClassNames.root, theme.fonts.medium, { height: "".concat(height, "px"), boxSizing: 'content-box', position: 'relative', borderTopStyle: 'solid', borderBottomStyle: 'solid', borderColor: semanticColors.bodyBackground, borderWidth: 0, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Window', selectors: { '> *': { fill: 'Window', }, }, }, _a), }, borderStyles, ], topLeftCorner: [ globalClassNames.topLeftCorner, { top: '0', left: '0', }, sharedCornerStyles, ], topRightCorner: [ globalClassNames.topRightCorner, { top: '0', right: '0', }, sharedCornerStyles, ], bottomRightCorner: [ globalClassNames.bottomRightCorner, { bottom: '0', right: '0', }, sharedCornerStyles, ], bottomLeftCorner: [ globalClassNames.bottomLeftCorner, { bottom: '0', left: '0', }, sharedCornerStyles, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=ShimmerLine.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ShimmerLine.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/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__(/*! ./Shimmer */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Shimmer.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Shimmer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/Shimmer.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerLine/ShimmerLine */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerLine/ShimmerLine.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerLine/ShimmerLine.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerLine/ShimmerLine.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerCircle/ShimmerCircle */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerCircle/ShimmerCircle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerCircle/ShimmerCircle.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerCircle/ShimmerCircle.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerGap/ShimmerGap */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerGap/ShimmerGap.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerGap/ShimmerGap.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerGap/ShimmerGap.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerElementsGroup/ShimmerElementsGroup */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerElementsGroup/ShimmerElementsGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ShimmerElementsGroup/ShimmerElementsGroup.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.base.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SliderBase = 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 Label_1 = __webpack_require__(/*! ../Label/Label */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.js"); var useSlider_1 = __webpack_require__(/*! ./useSlider */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/useSlider.js"); var COMPONENT_NAME = 'SliderBase'; exports.SliderBase = React.forwardRef(function (props, ref) { var slotProps = (0, useSlider_1.useSlider)(props, ref); 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: { value: 'defaultValue' }, }); } return (React.createElement("div", tslib_1.__assign({}, slotProps.root), slotProps && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.label)), React.createElement("div", tslib_1.__assign({}, slotProps.container), props.ranged && (props.vertical ? slotProps.valueLabel && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.valueLabel)) : slotProps.lowerValueLabel && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.lowerValueLabel))), React.createElement("div", tslib_1.__assign({}, slotProps.sliderBox), React.createElement("div", tslib_1.__assign({}, slotProps.sliderLine), props.ranged && React.createElement("span", tslib_1.__assign({}, slotProps.lowerValueThumb)), React.createElement("span", tslib_1.__assign({}, slotProps.thumb)), slotProps.zeroTick && React.createElement("span", tslib_1.__assign({}, slotProps.zeroTick)), React.createElement("span", tslib_1.__assign({}, slotProps.bottomInactiveTrack)), React.createElement("span", tslib_1.__assign({}, slotProps.activeTrack)), React.createElement("span", tslib_1.__assign({}, slotProps.topInactiveTrack)))), props.ranged && props.vertical ? slotProps.lowerValueLabel && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.lowerValueLabel)) : slotProps.valueLabel && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.valueLabel))), React.createElement(utilities_1.FocusRects, null))); }); exports.SliderBase.displayName = COMPONENT_NAME; //# sourceMappingURL=Slider.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Slider = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Slider_base_1 = __webpack_require__(/*! ./Slider.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.base.js"); var Slider_styles_1 = __webpack_require__(/*! ./Slider.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.styles.js"); exports.Slider = (0, utilities_1.styled)(Slider_base_1.SliderBase, Slider_styles_1.getStyles, undefined, { scope: 'Slider', }); //# sourceMappingURL=Slider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.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-Slider', enabled: 'ms-Slider-enabled', disabled: 'ms-Slider-disabled', row: 'ms-Slider-row', column: 'ms-Slider-column', container: 'ms-Slider-container', slideBox: 'ms-Slider-slideBox', line: 'ms-Slider-line', thumb: 'ms-Slider-thumb', activeSection: 'ms-Slider-active', inactiveSection: 'ms-Slider-inactive', valueLabel: 'ms-Slider-value', showValue: 'ms-Slider-showValue', showTransitions: 'ms-Slider-showTransitions', zeroTick: 'ms-Slider-zeroTick', }; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; var className = props.className, titleLabelClassName = props.titleLabelClassName, theme = props.theme, vertical = props.vertical, disabled = props.disabled, showTransitions = props.showTransitions, showValue = props.showValue, ranged = props.ranged; var semanticColors = theme.semanticColors, palette = theme.palette; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); /** Tokens: * The word "active" in the token refers to the selected section of the slider * The word "inactive" in the token refers to the unselected section of the slider */ var pressedActiveSectionColor = semanticColors.inputBackgroundCheckedHovered; var hoveredActiveSectionColor = semanticColors.inputBackgroundChecked; var hoveredPressedinactiveSectionColor = palette.neutralSecondaryAlt; var restActiveSectionColor = palette.neutralPrimary; var restInactiveSectionColor = palette.neutralSecondaryAlt; var disabledActiveSectionColor = semanticColors.disabledText; var disabledInactiveSectionColor = semanticColors.disabledBackground; var thumbBackgroundColor = semanticColors.inputBackground; var thumbBorderColor = semanticColors.smallInputBorder; var thumbDisabledBorderColor = semanticColors.disabledBorder; var slideBoxActiveSectionStyles = !disabled && { backgroundColor: pressedActiveSectionColor, selectors: (_a = {}, _a[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Highlight', }, _a), }; var slideBoxInactiveSectionStyles = !disabled && { backgroundColor: hoveredPressedinactiveSectionColor, selectors: (_b = {}, _b[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', }, _b), }; var slideHoverSectionStyles = !disabled && { backgroundColor: hoveredActiveSectionColor, selectors: (_c = {}, _c[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Highlight', }, _c), }; var slideBoxActiveThumbStyles = !disabled && { border: "2px solid ".concat(pressedActiveSectionColor), selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', }, _d), }; var slideBoxActiveZeroTickStyles = !props.disabled && { backgroundColor: semanticColors.inputPlaceholderBackgroundChecked, selectors: (_e = {}, _e[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Highlight', }, _e), }; return { root: tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.root, theme.fonts.medium, { userSelect: 'none', }, vertical && { marginRight: 8, } ], [!disabled ? classNames.enabled : undefined], false), [disabled ? classNames.disabled : undefined], false), [!vertical ? classNames.row : undefined], false), [vertical ? classNames.column : undefined], false), [ className, ], false), titleLabel: [ { padding: 0, }, titleLabelClassName, ], container: [ classNames.container, { display: 'flex', flexWrap: 'nowrap', alignItems: 'center', }, vertical && { flexDirection: 'column', height: '100%', textAlign: 'center', margin: '8px 0', }, ], slideBox: tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.slideBox, !ranged && (0, style_utilities_1.getFocusStyle)(theme), { background: 'transparent', border: 'none', flexGrow: 1, lineHeight: 28, display: 'flex', alignItems: 'center', selectors: (_f = {}, _f[":active .".concat(classNames.activeSection)] = slideBoxActiveSectionStyles, _f[":hover .".concat(classNames.activeSection)] = slideHoverSectionStyles, _f[":active .".concat(classNames.inactiveSection)] = slideBoxInactiveSectionStyles, _f[":hover .".concat(classNames.inactiveSection)] = slideBoxInactiveSectionStyles, _f[":active .".concat(classNames.thumb)] = slideBoxActiveThumbStyles, _f[":hover .".concat(classNames.thumb)] = slideBoxActiveThumbStyles, _f[":active .".concat(classNames.zeroTick)] = slideBoxActiveZeroTickStyles, _f[":hover .".concat(classNames.zeroTick)] = slideBoxActiveZeroTickStyles, _f[style_utilities_1.HighContrastSelector] = { forcedColorAdjust: 'none', }, _f), }, vertical ? { height: '100%', width: 28, padding: '8px 0', // Make room for thumb at bottom of line } : { height: 28, width: 'auto', padding: '0 8px', // Make room for thumb at ends of line } ], [showValue ? classNames.showValue : undefined], false), [showTransitions ? classNames.showTransitions : undefined], false), thumb: [ classNames.thumb, ranged && (0, style_utilities_1.getFocusStyle)(theme, { inset: -4 }), { borderWidth: 2, borderStyle: 'solid', borderColor: thumbBorderColor, borderRadius: 10, boxSizing: 'border-box', background: thumbBackgroundColor, display: 'block', width: 16, height: 16, position: 'absolute', }, vertical ? { left: -6, margin: '0 auto', transform: 'translateY(8px)', } : { top: -6, transform: (0, utilities_1.getRTL)(theme) ? 'translateX(50%)' : 'translateX(-50%)', }, showTransitions && { transition: "left ".concat(style_utilities_1.AnimationVariables.durationValue3, " ").concat(style_utilities_1.AnimationVariables.easeFunction1), }, disabled && { borderColor: thumbDisabledBorderColor, selectors: (_g = {}, _g[style_utilities_1.HighContrastSelector] = { borderColor: 'GrayText', }, _g), }, ], line: [ classNames.line, { display: 'flex', position: 'relative', }, vertical ? { height: '100%', width: 4, margin: '0 auto', flexDirection: 'column-reverse', } : { width: '100%', }, ], lineContainer: [ { borderRadius: 4, boxSizing: 'border-box', }, vertical ? { width: 4, height: '100%', } : { height: 4, width: '100%', }, ], activeSection: [ classNames.activeSection, { background: restActiveSectionColor, selectors: (_h = {}, _h[style_utilities_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _h), }, showTransitions && { transition: "width ".concat(style_utilities_1.AnimationVariables.durationValue3, " ").concat(style_utilities_1.AnimationVariables.easeFunction1), }, disabled && { background: disabledActiveSectionColor, selectors: (_j = {}, _j[style_utilities_1.HighContrastSelector] = { backgroundColor: 'GrayText', borderColor: 'GrayText', }, _j), }, ], inactiveSection: [ classNames.inactiveSection, { background: restInactiveSectionColor, selectors: (_k = {}, _k[style_utilities_1.HighContrastSelector] = { border: '1px solid WindowText', }, _k), }, showTransitions && { transition: "width ".concat(style_utilities_1.AnimationVariables.durationValue3, " ").concat(style_utilities_1.AnimationVariables.easeFunction1), }, disabled && { background: disabledInactiveSectionColor, selectors: (_l = {}, _l[style_utilities_1.HighContrastSelector] = { borderColor: 'GrayText', }, _l), }, ], zeroTick: [ classNames.zeroTick, { position: 'absolute', background: semanticColors.disabledBorder, selectors: (_m = {}, _m[style_utilities_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _m), }, props.disabled && { background: semanticColors.disabledBackground, selectors: (_o = {}, _o[style_utilities_1.HighContrastSelector] = { backgroundColor: 'GrayText', }, _o), }, props.vertical ? { width: '16px', height: '1px', transform: (0, utilities_1.getRTL)(theme) ? 'translateX(6px)' : 'translateX(-6px)', } : { width: '1px', height: '16px', transform: 'translateY(-6px)', }, ], valueLabel: [ classNames.valueLabel, { flexShrink: 1, width: 30, lineHeight: '1', // using a string here meaning it's relative to the size of the font }, vertical ? { margin: '0 auto', whiteSpace: 'nowrap', width: 40, } : { margin: '0 8px', whiteSpace: 'nowrap', width: 40, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Slider.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Slider.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/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__(/*! ./Slider */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Slider.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Slider.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/Slider.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/useSlider.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Slider/useSlider.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useSlider = exports.ONKEYDOWN_TIMEOUT_DURATION = 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"); exports.ONKEYDOWN_TIMEOUT_DURATION = 1000; var getClassNames = (0, utilities_1.classNamesFunction)(); var getSlotStyleFn = function (sty) { return function (value) { var _a; return _a = {}, _a[sty] = "".concat(value, "%"), _a; }; }; var getPercent = function (value, sliderMin, sliderMax) { return sliderMax === sliderMin ? 0 : ((value - sliderMin) / (sliderMax - sliderMin)) * 100; }; var useComponentRef = function (props, sliderBoxRef, value, range) { React.useImperativeHandle(props.componentRef, function () { return ({ get value() { return value; }, get range() { return range; }, focus: function () { var _a; (_a = sliderBoxRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, }); }, [range, sliderBoxRef, value]); }; var useSlider = function (props, ref) { var _a = props.step, step = _a === void 0 ? 1 : _a, className = props.className, _b = props.disabled, disabled = _b === void 0 ? false : _b, label = props.label, _c = props.max, max = _c === void 0 ? 10 : _c, _d = props.min, min = _d === void 0 ? 0 : _d, _e = props.showValue, showValue = _e === void 0 ? true : _e, _f = props.buttonProps, buttonProps = _f === void 0 ? {} : _f, _g = props.vertical, vertical = _g === void 0 ? false : _g, snapToStep = props.snapToStep, valueFormat = props.valueFormat, styles = props.styles, theme = props.theme, originFromZero = props.originFromZero, ariaLabelledBy = props["aria-labelledby"], _h = props.ariaLabel, ariaLabel = _h === void 0 ? props['aria-label'] : _h, ranged = props.ranged, onChange = props.onChange, onChanged = props.onChanged; var disposables = React.useRef([]); var _j = (0, react_hooks_1.useSetTimeout)(), setTimeout = _j.setTimeout, clearTimeout = _j.clearTimeout; var sliderLine = React.useRef(null); // Casting here is necessary because useControllableValue expects the event for the change callback // to extend React.SyntheticEvent, when in fact for Slider, the event could be either a React event // or a native browser event depending on the context. var _k = (0, react_hooks_1.useControllableValue)(props.value, props.defaultValue, function (ev, v) { return onChange === null || onChange === void 0 ? void 0 : onChange(v, ranged ? [internalState.latestLowerValue, v] : undefined, ev); }), unclampedValue = _k[0], setValue = _k[1]; var _l = (0, react_hooks_1.useControllableValue)(props.lowerValue, props.defaultLowerValue, function (ev, lv) { return onChange === null || onChange === void 0 ? void 0 : onChange(internalState.latestValue, [lv, internalState.latestValue], ev); }), unclampedLowerValue = _l[0], setLowerValue = _l[1]; // Ensure that value is always a number and is clamped by min/max. var value = Math.max(min, Math.min(max, unclampedValue || 0)); var lowerValue = Math.max(min, Math.min(value, unclampedLowerValue || 0)); var internalState = (0, react_hooks_1.useConst)({ onKeyDownTimer: -1, isAdjustingLowerValue: false, latestValue: value, latestLowerValue: lowerValue, }); // On each render, update this saved value used by callbacks. (This should be safe even if render // is called multiple times, because an event handler or timeout callback will only run once.) internalState.latestValue = value; internalState.latestLowerValue = lowerValue; var id = (0, react_hooks_1.useId)('Slider', props.id || (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id)); var classNames = getClassNames(styles, { className: className, disabled: disabled, vertical: vertical, showTransitions: !snapToStep && !internalState.isBetweenSteps, showValue: showValue, ranged: ranged, theme: theme, }); var steps = (max - min) / step; var clearOnKeyDownTimer = function () { clearTimeout(internalState.onKeyDownTimer); internalState.onKeyDownTimer = -1; }; var setOnKeyDownTimer = function (event) { clearOnKeyDownTimer(); if (onChanged) { internalState.onKeyDownTimer = setTimeout(function () { onChanged(event, internalState.latestValue, ranged ? [internalState.latestLowerValue, internalState.latestValue] : undefined); }, exports.ONKEYDOWN_TIMEOUT_DURATION); } }; var getAriaValueText = function (valueProps) { var ariaValueText = props.ariaValueText; if (valueProps !== undefined) { return ariaValueText ? ariaValueText(valueProps) : valueProps.toString(); } return undefined; }; /** * Update `value` or `lowerValue`, including clamping between min/max and rounding to * appropriate precision. * @param newValue - New current value of the slider, possibly rounded to a whole step. * @param newUnroundedValue - Like `newValue` but without the rounding to a step. If this is * provided and not equal to `newValue`, `internalState.isBetweenSteps` will be set, which * may cause thumb movement animations to be disabled. */ var updateValue = function (ev, newValue, newUnroundedValue) { newValue = Math.min(max, Math.max(min, newValue)); newUnroundedValue = newUnroundedValue !== undefined ? Math.min(max, Math.max(min, newUnroundedValue)) : undefined; var numDec = 0; if (isFinite(step)) { while (Math.round(step * Math.pow(10, numDec)) / Math.pow(10, numDec) !== step) { numDec++; } } // Make sure value has correct number of decimal places based on number of decimals in step var roundedValue = parseFloat(newValue.toFixed(numDec)); internalState.isBetweenSteps = newUnroundedValue !== undefined && newUnroundedValue !== roundedValue; if (ranged) { // decided which thumb value to change if (internalState.isAdjustingLowerValue && (originFromZero ? roundedValue <= 0 : roundedValue <= internalState.latestValue)) { setLowerValue(roundedValue, ev); } else if (!internalState.isAdjustingLowerValue && (originFromZero ? roundedValue >= 0 : roundedValue >= internalState.latestLowerValue)) { setValue(roundedValue, ev); } } else { setValue(roundedValue, ev); } }; var onKeyDown = function (event) { var newCurrentValue = internalState.isAdjustingLowerValue ? internalState.latestLowerValue : internalState.latestValue; var diff = 0; // eslint-disable-next-line deprecation/deprecation switch (event.which) { case (0, utilities_1.getRTLSafeKeyCode)(utilities_1.KeyCodes.left, props.theme): case utilities_1.KeyCodes.down: diff = -step; clearOnKeyDownTimer(); setOnKeyDownTimer(event); break; case (0, utilities_1.getRTLSafeKeyCode)(utilities_1.KeyCodes.right, props.theme): case utilities_1.KeyCodes.up: diff = step; clearOnKeyDownTimer(); setOnKeyDownTimer(event); break; case utilities_1.KeyCodes.home: newCurrentValue = min; clearOnKeyDownTimer(); setOnKeyDownTimer(event); break; case utilities_1.KeyCodes.end: newCurrentValue = max; clearOnKeyDownTimer(); setOnKeyDownTimer(event); break; default: return; } updateValue(event, newCurrentValue + diff); event.preventDefault(); event.stopPropagation(); }; var getPosition = function (event, verticalProp) { var currentPosition = 0; switch (event.type) { case 'mousedown': case 'mousemove': currentPosition = !verticalProp ? event.clientX : event.clientY; break; case 'touchstart': case 'touchmove': currentPosition = !verticalProp ? event.touches[0].clientX : event.touches[0].clientY; break; } return currentPosition; }; var calculateCurrentSteps = function (event) { // eslint-disable-next-line deprecation/deprecation var sliderPositionRect = sliderLine.current.getBoundingClientRect(); var sliderLength = !props.vertical ? sliderPositionRect.width : sliderPositionRect.height; var stepLength = sliderLength / steps; var currentSteps; var distance; if (!props.vertical) { var left = getPosition(event, props.vertical); distance = (0, utilities_1.getRTL)(props.theme) ? sliderPositionRect.right - left : left - sliderPositionRect.left; currentSteps = distance / stepLength; } else { var bottom = getPosition(event, props.vertical); distance = sliderPositionRect.bottom - bottom; currentSteps = distance / stepLength; } return currentSteps; }; var onMouseMoveOrTouchMove = function (event, suppressEventCancelation) { var currentSteps = calculateCurrentSteps(event); var newUnroundedValue = min + step * currentSteps; var newCurrentValue = min + step * Math.round(currentSteps); updateValue(event, newCurrentValue, newUnroundedValue); if (!suppressEventCancelation) { event.preventDefault(); event.stopPropagation(); } }; var onMouseDownOrTouchStart = function (event) { if (ranged) { var currentSteps = calculateCurrentSteps(event); var newValue = min + step * currentSteps; internalState.isAdjustingLowerValue = newValue <= internalState.latestLowerValue || newValue - internalState.latestLowerValue <= internalState.latestValue - newValue; } if (event.type === 'mousedown') { disposables.current.push((0, utilities_1.on)(window, 'mousemove', onMouseMoveOrTouchMove, true), (0, utilities_1.on)(window, 'mouseup', onMouseUpOrTouchEnd, true)); } else if (event.type === 'touchstart') { disposables.current.push((0, utilities_1.on)(window, 'touchmove', onMouseMoveOrTouchMove, true), (0, utilities_1.on)(window, 'touchend', onMouseUpOrTouchEnd, true)); } onMouseMoveOrTouchMove(event, true); }; var onMouseUpOrTouchEnd = function (event) { // Done adjusting, so clear this value internalState.isBetweenSteps = undefined; onChanged === null || onChanged === void 0 ? void 0 : onChanged(event, internalState.latestValue, ranged ? [internalState.latestLowerValue, internalState.latestValue] : undefined); disposeListeners(); }; var onThumbFocus = function (event) { internalState.isAdjustingLowerValue = event.target === lowerValueThumbRef.current; }; var disposeListeners = React.useCallback(function () { disposables.current.forEach(function (dispose) { return dispose(); }); disposables.current = []; }, []); React.useEffect(function () { return disposeListeners; }, [disposeListeners]); var lowerValueThumbRef = React.useRef(null); var thumbRef = React.useRef(null); var sliderBoxRef = React.useRef(null); useComponentRef(props, sliderBoxRef, value, ranged ? [lowerValue, value] : undefined); var getPositionStyles = getSlotStyleFn(vertical ? 'bottom' : (0, utilities_1.getRTL)(props.theme) ? 'right' : 'left'); var getTrackStyles = getSlotStyleFn(vertical ? 'height' : 'width'); var originValue = originFromZero ? 0 : min; var valuePercent = getPercent(value, min, max); var lowerValuePercent = getPercent(lowerValue, min, max); var originPercentOfLine = getPercent(originValue, min, max); var activeSectionWidth = ranged ? valuePercent - lowerValuePercent : Math.abs(originPercentOfLine - valuePercent); var topSectionWidth = Math.min(100 - valuePercent, 100 - originPercentOfLine); var bottomSectionWidth = ranged ? lowerValuePercent : Math.min(valuePercent, originPercentOfLine); var rootProps = { className: classNames.root, ref: ref, }; var labelProps = { className: classNames.titleLabel, children: label, disabled: disabled, htmlFor: ariaLabel ? undefined : id, }; var valueLabelProps = showValue ? { className: classNames.valueLabel, children: valueFormat ? valueFormat(value) : value, disabled: disabled, htmlFor: disabled ? id : undefined, } : undefined; var lowerValueLabelProps = ranged && showValue ? { className: classNames.valueLabel, children: valueFormat ? valueFormat(lowerValue) : lowerValue, disabled: disabled, } : undefined; var zeroTickProps = originFromZero ? { className: classNames.zeroTick, style: getPositionStyles(originPercentOfLine), } : undefined; var trackActiveProps = { className: (0, utilities_1.css)(classNames.lineContainer, classNames.activeSection), style: getTrackStyles(activeSectionWidth), }; var trackTopInactiveProps = { className: (0, utilities_1.css)(classNames.lineContainer, classNames.inactiveSection), style: getTrackStyles(topSectionWidth), }; var trackBottomInactiveProps = { className: (0, utilities_1.css)(classNames.lineContainer, classNames.inactiveSection), style: getTrackStyles(bottomSectionWidth), }; var sliderProps = tslib_1.__assign({ 'aria-disabled': disabled, role: 'slider', tabIndex: disabled ? undefined : 0 }, { 'data-is-focusable': !disabled }); var sliderBoxProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ id: id, className: (0, utilities_1.css)(classNames.slideBox, buttonProps.className), ref: sliderBoxRef }, (!disabled && { onMouseDown: onMouseDownOrTouchStart, onTouchStart: onMouseDownOrTouchStart, onKeyDown: onKeyDown, })), (buttonProps && (0, utilities_1.getNativeProps)(buttonProps, utilities_1.divProperties, ['id', 'className']))), (!ranged && tslib_1.__assign(tslib_1.__assign({}, sliderProps), { 'aria-valuemin': min, 'aria-valuemax': max, 'aria-valuenow': value, 'aria-valuetext': getAriaValueText(value), 'aria-label': ariaLabel || label, 'aria-labelledby': ariaLabelledBy }))); var onFocusProp = disabled ? {} : { onFocus: onThumbFocus }; var thumbProps = tslib_1.__assign({ ref: thumbRef, className: classNames.thumb, style: getPositionStyles(valuePercent) }, (ranged && tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, sliderProps), onFocusProp), { id: "max-".concat(id), 'aria-valuemin': lowerValue, 'aria-valuemax': max, 'aria-valuenow': value, 'aria-valuetext': getAriaValueText(value), 'aria-label': "max ".concat(ariaLabel || label) }))); var lowerValueThumbProps = ranged ? tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ ref: lowerValueThumbRef, className: classNames.thumb, style: getPositionStyles(lowerValuePercent) }, sliderProps), onFocusProp), { id: "min-".concat(id), 'aria-valuemin': min, 'aria-valuemax': value, 'aria-valuenow': lowerValue, 'aria-valuetext': getAriaValueText(lowerValue), 'aria-label': "min ".concat(ariaLabel || label) }) : undefined; var containerProps = { className: classNames.container, }; var sliderLineProps = { ref: sliderLine, className: classNames.line, }; return { root: rootProps, label: labelProps, sliderBox: sliderBoxProps, container: containerProps, valueLabel: valueLabelProps, lowerValueLabel: lowerValueLabelProps, thumb: thumbProps, lowerValueThumb: lowerValueThumbProps, zeroTick: zeroTickProps, activeTrack: trackActiveProps, topInactiveTrack: trackTopInactiveProps, bottomInactiveTrack: trackBottomInactiveProps, sliderLine: sliderLineProps, }; }; exports.useSlider = useSlider; //# sourceMappingURL=useSlider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.base.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpinButtonBase = 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 Label_1 = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.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 SpinButton_styles_1 = __webpack_require__(/*! ./SpinButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.styles.js"); var SpinButton_types_1 = __webpack_require__(/*! ./SpinButton.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.types.js"); var Positioning_1 = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.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 = 'SpinButton'; var DEFAULT_PROPS = { disabled: false, label: '', step: 1, labelPosition: Positioning_1.Position.start, incrementButtonIcon: { iconName: 'ChevronUpSmall' }, decrementButtonIcon: { iconName: 'ChevronDownSmall' }, }; var INITIAL_STEP_DELAY = 400; var STEP_DELAY = 75; var useComponentRef = function (props, input, value) { React.useImperativeHandle(props.componentRef, function () { return ({ get value() { return value; }, focus: function () { if (input.current) { input.current.focus(); } }, }); }, [input, value]); }; var noOp = function () { /** * A noop input change handler. Using onInput instead of onChange was meant to address an issue * which apparently has been resolved in React 16 (https://github.com/facebook/react/issues/7027). * The no-op onChange handler was still needed because React gives console errors if an input * doesn't have onChange. * * TODO (Fabric 8?) - switch to just calling onChange (this is a breaking change for any tests, * ours or 3rd-party, which simulate entering text in a SpinButton) */ }; /** Clamp the value to the provided min and/or max */ var clampValue = function (value, _a) { var min = _a.min, max = _a.max; if (typeof max === 'number') { value = Math.min(value, max); } if (typeof min === 'number') { value = Math.max(value, min); } return value; }; exports.SpinButtonBase = React.forwardRef(function (propsWithoutDefaults, ref) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var disabled = props.disabled, label = props.label, min = props.min, max = props.max, step = props.step, defaultValue = props.defaultValue, valueFromProps = props.value, precisionFromProps = props.precision, labelPosition = props.labelPosition, iconProps = props.iconProps, incrementButtonIcon = props.incrementButtonIcon, incrementButtonAriaLabel = props.incrementButtonAriaLabel, decrementButtonIcon = props.decrementButtonIcon, decrementButtonAriaLabel = props.decrementButtonAriaLabel, ariaLabel = props.ariaLabel, ariaDescribedBy = props.ariaDescribedBy, customUpArrowButtonStyles = props.upArrowButtonStyles, customDownArrowButtonStyles = props.downArrowButtonStyles, theme = props.theme, ariaPositionInSet = props.ariaPositionInSet, ariaSetSize = props.ariaSetSize, ariaValueNow = props.ariaValueNow, ariaValueText = props.ariaValueText, className = props.className, inputProps = props.inputProps, onDecrement = props.onDecrement, onIncrement = props.onIncrement, iconButtonProps = props.iconButtonProps, onValidate = props.onValidate, onChange = props.onChange, styles = props.styles; var input = React.useRef(null); var inputId = (0, react_hooks_1.useId)('input'); var labelId = (0, react_hooks_1.useId)('Label'); var _a = React.useState(false), isFocused = _a[0], setIsFocused = _a[1]; var _b = React.useState(SpinButton_types_1.KeyboardSpinDirection.notSpinning), keyboardSpinDirection = _b[0], setKeyboardSpinDirection = _b[1]; var async = (0, react_hooks_1.useAsync)(); var precision = React.useMemo(function () { return precisionFromProps !== null && precisionFromProps !== void 0 ? precisionFromProps : Math.max((0, Utilities_1.calculatePrecision)(step), 0); }, [precisionFromProps, step]); /** * Actual current value. If `props.value` is provided (controlled), it will always be used. * If not (uncontrolled), this tracks the current value based on user modifications. * Note that while the user is editing text in the field, this will not be updated until "commit" * (blur or press enter). */ var _c = (0, react_hooks_1.useControllableValue)(valueFromProps, defaultValue !== null && defaultValue !== void 0 ? defaultValue : String(min || 0), onChange), value = _c[0], setValue = _c[1]; /** * "Uncommitted" internal value while the user is editing text in the field. This lets us wait to * call `onChange` (and possibly update the real value) until the user "commits" the value by * pressing enter or blurring the field. */ var _d = React.useState(), intermediateValue = _d[0], setIntermediateValue = _d[1]; var internalState = React.useRef({ stepTimeoutHandle: -1, latestValue: undefined, latestIntermediateValue: undefined, }).current; // On each render, update this saved value used by callbacks. (This should be safe even if render // is called multiple times, because an event handler or timeout callback will only run once.) internalState.latestValue = value; internalState.latestIntermediateValue = intermediateValue; var previousValueFromProps = (0, react_hooks_1.usePrevious)(valueFromProps); React.useEffect(function () { // If props.value changes while editing, clear the intermediate value if (valueFromProps !== previousValueFromProps && intermediateValue !== undefined) { setIntermediateValue(undefined); } }, [valueFromProps, previousValueFromProps, intermediateValue]); var classNames = getClassNames(styles, { theme: theme, disabled: disabled, isFocused: isFocused, keyboardSpinDirection: keyboardSpinDirection, labelPosition: labelPosition, className: className, }); var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties, [ 'onBlur', 'onFocus', 'className', 'onChange', ]); /** Validate (commit) function called on blur or enter keypress. */ var validate = React.useCallback(function (ev) { // Only run validation if the value changed var enteredValue = internalState.latestIntermediateValue; if (enteredValue !== undefined && enteredValue !== internalState.latestValue) { var newValue = void 0; if (onValidate) { newValue = onValidate(enteredValue, ev); } else if (enteredValue && enteredValue.trim().length && !isNaN(Number(enteredValue))) { // default validation handling newValue = String(clampValue(Number(enteredValue), { min: min, max: max })); } if (newValue !== undefined && newValue !== internalState.latestValue) { // Commit the value if it changed setValue(newValue, ev); } } // Done validating, so clear the intermediate typed value (if any) setIntermediateValue(undefined); }, [internalState, max, min, onValidate, setValue]); /** * Stop spinning (clear any currently pending update and set spinning to false) */ var stop = React.useCallback(function () { if (internalState.stepTimeoutHandle >= 0) { async.clearTimeout(internalState.stepTimeoutHandle); internalState.stepTimeoutHandle = -1; } if (internalState.spinningByMouse || keyboardSpinDirection !== SpinButton_types_1.KeyboardSpinDirection.notSpinning) { internalState.spinningByMouse = false; setKeyboardSpinDirection(SpinButton_types_1.KeyboardSpinDirection.notSpinning); } }, [internalState, keyboardSpinDirection, async]); /** * Update the value with the given stepFunction. * Also starts spinning for mousedown events by scheduling another update with setTimeout. * @param stepFunction - function to use to step by * @param event - The event that triggered the updateValue */ var updateValue = React.useCallback(function (stepFunction, ev) { ev.persist(); if (internalState.latestIntermediateValue !== undefined) { // Edge case: if intermediateValue is set, this means that the user was editing the input // text and then started spinning (either with mouse or keyboard). We need to validate and // call onChange before starting to spin. if (ev.type === 'keydown' || ev.type === 'mousedown') { // For the arrow keys, we have to manually trigger validation. // (For the buttons, validation will happen automatically since the input's onBlur will // be triggered after mousedown on the button completes.) validate(ev); } async.requestAnimationFrame(function () { // After handling any value updates, do the spinning update updateValue(stepFunction, ev); }); return; } // Call the step function and update the value. // (Note: we access the latest value via internalState (not directly) to ensure we don't use // a stale captured value. This is mainly important for spinning by mouse, where we trigger // additional calls to the original updateValue function via setTimeout. It also lets us // avoid useCallback deps on frequently changing values.) var newValue = stepFunction(internalState.latestValue || '', ev); if (newValue !== undefined && newValue !== internalState.latestValue) { setValue(newValue, ev); } // Schedule the next spin if applicable // (will be canceled if there's a mouseup before the timeout runs) var wasSpinning = internalState.spinningByMouse; internalState.spinningByMouse = ev.type === 'mousedown'; if (internalState.spinningByMouse) { internalState.stepTimeoutHandle = async.setTimeout(function () { updateValue(stepFunction, ev); }, wasSpinning ? STEP_DELAY : INITIAL_STEP_DELAY); } }, [internalState, async, validate, setValue]); /** Composed increment handler (uses `props.onIncrement` or default) */ var handleIncrement = React.useCallback(function (newValue) { if (onIncrement) { return onIncrement(newValue); } else { var numericValue = clampValue(Number(newValue) + Number(step), { max: max }); numericValue = (0, Utilities_1.precisionRound)(numericValue, precision); return String(numericValue); } }, [precision, max, onIncrement, step]); /** Composed decrement handler (uses `props.onDecrement` or default) */ var handleDecrement = React.useCallback(function (newValue) { if (onDecrement) { return onDecrement(newValue); } else { var numericValue = clampValue(Number(newValue) - Number(step), { min: min }); numericValue = (0, Utilities_1.precisionRound)(numericValue, precision); return String(numericValue); } }, [precision, min, onDecrement, step]); /** Handles when the user types in the input */ var handleInputChange = function (ev) { setIntermediateValue(ev.target.value); }; /** Composed focus handler (does internal stuff and calls `props.onFocus`) */ var handleFocus = function (ev) { var _a; // We can't set focus on a non-existing element if (!input.current) { return; } if (internalState.spinningByMouse || keyboardSpinDirection !== SpinButton_types_1.KeyboardSpinDirection.notSpinning) { stop(); } input.current.select(); setIsFocused(true); (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, ev); }; /** Composed blur handler (does internal stuff and calls `props.onBlur`) */ var handleBlur = function (ev) { var _a; validate(ev); setIsFocused(false); (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, ev); }; /** Update value when arrow keys are pressed, commit on enter, or revert on escape */ var handleKeyDown = function (ev) { // eat the up and down arrow keys to keep focus in the spinButton // (especially when a spinButton is inside of a FocusZone) // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.up || ev.which === Utilities_1.KeyCodes.down || ev.which === Utilities_1.KeyCodes.enter) { ev.preventDefault(); ev.stopPropagation(); } if (disabled) { stop(); return; } var spinDirection = SpinButton_types_1.KeyboardSpinDirection.notSpinning; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.up: spinDirection = SpinButton_types_1.KeyboardSpinDirection.up; updateValue(handleIncrement, ev); break; case Utilities_1.KeyCodes.down: spinDirection = SpinButton_types_1.KeyboardSpinDirection.down; updateValue(handleDecrement, ev); break; case Utilities_1.KeyCodes.enter: // Commit the edited value validate(ev); break; case Utilities_1.KeyCodes.escape: // Revert to previous value setIntermediateValue(undefined); break; } // style the increment/decrement button to look active // when the corresponding up/down arrow keys trigger a step if (keyboardSpinDirection !== spinDirection) { setKeyboardSpinDirection(spinDirection); } }; /** Stop spinning on keyUp if the up or down arrow key fired this event */ var handleKeyUp = React.useCallback(function (ev) { // eslint-disable-next-line deprecation/deprecation if (disabled || ev.which === Utilities_1.KeyCodes.up || ev.which === Utilities_1.KeyCodes.down) { stop(); return; } }, [disabled, stop]); var handleIncrementMouseDown = React.useCallback(function (ev) { updateValue(handleIncrement, ev); }, [handleIncrement, updateValue]); var handleDecrementMouseDown = React.useCallback(function (ev) { updateValue(handleDecrement, ev); }, [handleDecrement, updateValue]); useComponentRef(props, input, value); useDebugWarnings(props); var valueIsNumber = !!value && !isNaN(Number(value)); // Number('') is 0 which may not be desirable var labelContent = (iconProps || label) && (React.createElement("div", { className: classNames.labelWrapper }, iconProps && React.createElement(Icon_1.Icon, tslib_1.__assign({}, iconProps, { className: classNames.icon, "aria-hidden": "true" })), label && (React.createElement(Label_1.Label, { id: labelId, htmlFor: inputId, className: classNames.label, disabled: disabled }, label)))); return (React.createElement("div", { className: classNames.root, ref: ref }, labelPosition !== Positioning_1.Position.bottom && labelContent, React.createElement("div", tslib_1.__assign({}, nativeProps, { className: classNames.spinButtonWrapper, "aria-label": ariaLabel && ariaLabel, "aria-posinset": ariaPositionInSet, "aria-setsize": ariaSetSize, "data-ktp-target": true }), React.createElement("input", tslib_1.__assign({ // Display intermediateValue while editing the text (before commit) value: intermediateValue !== null && intermediateValue !== void 0 ? intermediateValue : value, id: inputId, onChange: noOp, onInput: handleInputChange, className: classNames.input, type: "text", autoComplete: "off", role: "spinbutton", "aria-labelledby": label && labelId, "aria-valuenow": ariaValueNow !== null && ariaValueNow !== void 0 ? ariaValueNow : (valueIsNumber ? Number(value) : undefined), "aria-valuetext": ariaValueText !== null && ariaValueText !== void 0 ? ariaValueText : (valueIsNumber ? undefined : value), "aria-valuemin": min, "aria-valuemax": max, "aria-describedby": ariaDescribedBy, onBlur: handleBlur, ref: input, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, disabled: disabled, "aria-disabled": disabled, "data-lpignore": true, "data-ktp-execute-target": true }, inputProps)), React.createElement("span", { className: classNames.arrowButtonsContainer }, React.createElement(Button_1.IconButton, tslib_1.__assign({ styles: (0, SpinButton_styles_1.getArrowButtonStyles)(theme, true, customUpArrowButtonStyles), className: 'ms-UpButton', checked: keyboardSpinDirection === SpinButton_types_1.KeyboardSpinDirection.up, disabled: disabled, iconProps: incrementButtonIcon, onMouseDown: handleIncrementMouseDown, onMouseLeave: stop, onMouseUp: stop, tabIndex: -1, ariaLabel: incrementButtonAriaLabel, "data-is-focusable": false }, iconButtonProps)), React.createElement(Button_1.IconButton, tslib_1.__assign({ styles: (0, SpinButton_styles_1.getArrowButtonStyles)(theme, false, customDownArrowButtonStyles), className: 'ms-DownButton', checked: keyboardSpinDirection === SpinButton_types_1.KeyboardSpinDirection.down, disabled: disabled, iconProps: decrementButtonIcon, onMouseDown: handleDecrementMouseDown, onMouseLeave: stop, onMouseUp: stop, tabIndex: -1, ariaLabel: decrementButtonAriaLabel, "data-is-focusable": false }, iconButtonProps)))), labelPosition === Positioning_1.Position.bottom && labelContent)); }); exports.SpinButtonBase.displayName = COMPONENT_NAME; var useDebugWarnings = function (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: { value: 'defaultValue' }, }); } }; //# sourceMappingURL=SpinButton.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpinButton = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var SpinButton_base_1 = __webpack_require__(/*! ./SpinButton.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.base.js"); var SpinButton_styles_1 = __webpack_require__(/*! ./SpinButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.styles.js"); /** * The SpinButton control and related tabs pattern are used for navigating frequently accessed, * distinct content categories. SpinButtons allow for navigation between two or more content * views and relies on text headers to articulate the different sections of content. */ exports.SpinButton = (0, Utilities_1.styled)(SpinButton_base_1.SpinButtonBase, SpinButton_styles_1.getStyles, undefined, { scope: 'SpinButton', }); //# sourceMappingURL=SpinButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.styles.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.getArrowButtonStyles = 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 Positioning_1 = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); var ARROW_BUTTON_WIDTH = 23; var ARROW_BUTTON_ICON_SIZE = 8; var DEFAULT_HEIGHT = 32; var DEFAULT_MIN_WIDTH = 86; var LABEL_MARGIN = 10; var getDisabledStyles = (0, Utilities_1.memoizeFunction)(function (theme) { var _a; var semanticColors = theme.semanticColors; var SpinButtonTextColorDisabled = semanticColors.disabledText; var SpinButtonBackgroundColorDisabled = semanticColors.disabledBackground; return { backgroundColor: SpinButtonBackgroundColorDisabled, pointerEvents: 'none', cursor: 'default', color: SpinButtonTextColorDisabled, selectors: (_a = { ':after': { borderColor: SpinButtonBackgroundColorDisabled, } }, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _a), }; }); exports.getArrowButtonStyles = (0, Utilities_1.memoizeFunction)(function (theme, isUpArrow, customSpecificArrowStyles) { var _a, _b, _c; var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects; // TODO: after updating the semanticColor slots all this need to be reevaluated. var ArrowButtonTextColor = palette.neutralSecondary; var ArrowButtonTextColorHovered = semanticColors.buttonText; var ArrowButtonTextColorPressed = semanticColors.buttonText; var ArrowButtonBackgroundHovered = semanticColors.buttonBackgroundHovered; var ArrowButtonBackgroundPressed = semanticColors.buttonBackgroundPressed; var defaultArrowButtonStyles = { root: { outline: 'none', display: 'block', height: '50%', width: ARROW_BUTTON_WIDTH, padding: 0, backgroundColor: 'transparent', textAlign: 'center', cursor: 'default', color: ArrowButtonTextColor, selectors: { '&.ms-DownButton': { borderRadius: "0 0 ".concat(effects.roundedCorner2, " 0"), }, '&.ms-UpButton': { borderRadius: "0 ".concat(effects.roundedCorner2, " 0 0"), }, }, }, rootHovered: { backgroundColor: ArrowButtonBackgroundHovered, color: ArrowButtonTextColorHovered, }, rootChecked: { backgroundColor: ArrowButtonBackgroundPressed, color: ArrowButtonTextColorPressed, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { backgroundColor: 'Highlight', color: 'HighlightText', }, _a), }, rootPressed: { backgroundColor: ArrowButtonBackgroundPressed, color: ArrowButtonTextColorPressed, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { backgroundColor: 'Highlight', color: 'HighlightText', }, _b), }, rootDisabled: { opacity: 0.5, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', opacity: 1, }, _c), }, icon: { fontSize: ARROW_BUTTON_ICON_SIZE, marginTop: 0, marginRight: 0, marginBottom: 0, marginLeft: 0, }, }; // No specific styles needed as of now. var defaultUpArrowButtonStyles = {}; var defaultDownArrowButtonStyles = {}; return (0, Styling_1.concatStyleSets)(defaultArrowButtonStyles, isUpArrow ? defaultUpArrowButtonStyles : defaultDownArrowButtonStyles, customSpecificArrowStyles); }); var getStyles = function (props) { var _a, _b, _c, _d; var theme = props.theme, className = props.className, labelPosition = props.labelPosition, disabled = props.disabled, isFocused = props.isFocused; var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var SpinButtonRootBorderColor = semanticColors.inputBorder; var SpinButtonRootBackgroundColor = semanticColors.inputBackground; var SpinButtonRootBorderColorHovered = semanticColors.inputBorderHovered; var SpinButtonRootBorderColorFocused = semanticColors.inputFocusBorderAlt; var SpinButtonInputTextColor = semanticColors.inputText; var SpinButtonInputTextColorSelected = palette.white; var SpinButtonInputBackgroundColorSelected = semanticColors.inputBackgroundChecked; var SpinButtonIconDisabledColor = semanticColors.disabledText; return { root: [ fonts.medium, { outline: 'none', width: '100%', minWidth: DEFAULT_MIN_WIDTH, }, className, ], labelWrapper: [ { display: 'inline-flex', alignItems: 'center', }, labelPosition === Positioning_1.Position.start && { height: DEFAULT_HEIGHT, float: 'left', marginRight: LABEL_MARGIN, }, labelPosition === Positioning_1.Position.end && { height: DEFAULT_HEIGHT, float: 'right', marginLeft: LABEL_MARGIN, }, labelPosition === Positioning_1.Position.top && { // Due to the lineHeight set on the label (below), the height of the wrapper (contains icon+label) // ends up 1px taller than a standard label height, causing the vertical alignment to be off when // the SpinButton is displayed with the label on top next to other form fields. // Decrease the wrapper's effective height slightly to compensate. marginBottom: -1, }, ], icon: [ { padding: '0 5px', fontSize: Styling_1.IconFontSizes.large, }, disabled && { color: SpinButtonIconDisabledColor, }, ], label: { pointerEvents: 'none', // centering the label with the icon by forcing the exact same height as the icon. lineHeight: Styling_1.IconFontSizes.large, }, spinButtonWrapper: [ tslib_1.__assign(tslib_1.__assign({ display: 'flex', position: 'relative', boxSizing: 'border-box', height: DEFAULT_HEIGHT, minWidth: DEFAULT_MIN_WIDTH }, (0, Styling_1.getInputFocusStyle)(SpinButtonRootBorderColor, effects.roundedCorner2, 'border', 0)), { ':after': (_a = { borderWidth: '1px' }, _a[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', }, _a) }), (labelPosition === Positioning_1.Position.top || labelPosition === Positioning_1.Position.bottom) && { width: '100%', }, !disabled && [ { ':hover:after': (_b = { borderColor: SpinButtonRootBorderColorHovered }, _b[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', }, _b), }, isFocused && { ':hover:after, :after': (_c = { borderColor: SpinButtonRootBorderColorFocused, borderWidth: '2px' }, _c[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', }, _c), }, ], disabled && getDisabledStyles(theme), ], input: [ 'ms-spinButton-input', { boxSizing: 'border-box', boxShadow: 'none', borderStyle: 'none', flex: 1, margin: 0, fontSize: fonts.medium.fontSize, fontFamily: 'inherit', color: SpinButtonInputTextColor, backgroundColor: SpinButtonRootBackgroundColor, height: '100%', padding: '0 8px 0 9px', outline: 0, display: 'block', minWidth: DEFAULT_MIN_WIDTH - ARROW_BUTTON_WIDTH - 2, whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', cursor: 'text', userSelect: 'text', borderRadius: "".concat(effects.roundedCorner2, " 0 0 ").concat(effects.roundedCorner2), }, !disabled && { selectors: { '::selection': { backgroundColor: SpinButtonInputBackgroundColorSelected, color: SpinButtonInputTextColorSelected, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText', }, _d), }, }, }, disabled && getDisabledStyles(theme), ], arrowButtonsContainer: [ { display: 'block', height: '100%', cursor: 'default', }, disabled && getDisabledStyles(theme), ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=SpinButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeyboardSpinDirection = void 0; /** * {@docCategory SpinButton} */ var KeyboardSpinDirection; (function (KeyboardSpinDirection) { KeyboardSpinDirection[KeyboardSpinDirection["down"] = -1] = "down"; KeyboardSpinDirection[KeyboardSpinDirection["notSpinning"] = 0] = "notSpinning"; KeyboardSpinDirection[KeyboardSpinDirection["up"] = 1] = "up"; })(KeyboardSpinDirection = exports.KeyboardSpinDirection || (exports.KeyboardSpinDirection = {})); //# sourceMappingURL=SpinButton.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/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__(/*! ./SpinButton */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SpinButton.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/SpinButton.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.base.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.base.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpinnerBase = 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 Spinner_types_1 = __webpack_require__(/*! ./Spinner.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.types.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var SpinnerBase = /** @class */ (function (_super) { tslib_1.__extends(SpinnerBase, _super); function SpinnerBase() { return _super !== null && _super.apply(this, arguments) || this; } SpinnerBase.prototype.render = function () { // eslint-disable-next-line deprecation/deprecation var _a = this.props, type = _a.type, size = _a.size, ariaLabel = _a.ariaLabel, ariaLive = _a.ariaLive, styles = _a.styles, label = _a.label, theme = _a.theme, className = _a.className, labelPosition = _a.labelPosition; var statusMessage = ariaLabel; var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, ['size']); // SpinnerType is deprecated. If someone is still using this property, rather than putting the SpinnerType into the // ISpinnerStyleProps, we'll map SpinnerType to its equivalent SpinnerSize and pass that in. Once SpinnerType // finally goes away we should delete this. var styleSize = size; if (styleSize === undefined && type !== undefined) { // eslint-disable-next-line deprecation/deprecation styleSize = type === Spinner_types_1.SpinnerType.large ? Spinner_types_1.SpinnerSize.large : Spinner_types_1.SpinnerSize.medium; } var classNames = getClassNames(styles, { theme: theme, size: styleSize, className: className, labelPosition: labelPosition, }); return (React.createElement("div", tslib_1.__assign({}, nativeProps, { className: classNames.root }), React.createElement("div", { className: classNames.circle }), label && React.createElement("div", { className: classNames.label }, label), statusMessage && (React.createElement("div", { role: "status", "aria-live": ariaLive }, React.createElement(Utilities_1.DelayedRender, null, React.createElement("div", { className: classNames.screenReaderText }, statusMessage)))))); }; SpinnerBase.defaultProps = { size: Spinner_types_1.SpinnerSize.medium, ariaLive: 'polite', labelPosition: 'bottom', }; return SpinnerBase; }(React.Component)); exports.SpinnerBase = SpinnerBase; //# sourceMappingURL=Spinner.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Spinner = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Spinner_base_1 = __webpack_require__(/*! ./Spinner.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.base.js"); var Spinner_styles_1 = __webpack_require__(/*! ./Spinner.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.styles.js"); exports.Spinner = (0, Utilities_1.styled)(Spinner_base_1.SpinnerBase, Spinner_styles_1.getStyles, undefined, { scope: 'Spinner' }); //# sourceMappingURL=Spinner.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.styles.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.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 Spinner_types_1 = __webpack_require__(/*! ./Spinner.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.types.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 GlobalClassNames = { root: 'ms-Spinner', circle: 'ms-Spinner-circle', label: 'ms-Spinner-label', }; var spinAnimation = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { transform: 'rotate(0deg)', }, '100%': { transform: 'rotate(360deg)', }, }); }); var getStyles = function (props) { var _a; var theme = props.theme, size = props.size, className = props.className, labelPosition = props.labelPosition; var palette = theme.palette; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', }, labelPosition === 'top' && { flexDirection: 'column-reverse', }, labelPosition === 'right' && { flexDirection: 'row', }, labelPosition === 'left' && { flexDirection: 'row-reverse', }, className, ], circle: [ classNames.circle, { boxSizing: 'border-box', borderRadius: '50%', border: '1.5px solid ' + palette.themeLight, borderTopColor: palette.themePrimary, animationName: spinAnimation(), animationDuration: '1.3s', animationIterationCount: 'infinite', animationTimingFunction: 'cubic-bezier(.53,.21,.29,.67)', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderTopColor: 'Highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }, size === Spinner_types_1.SpinnerSize.xSmall && [ 'ms-Spinner--xSmall', { width: 12, height: 12, }, ], size === Spinner_types_1.SpinnerSize.small && [ 'ms-Spinner--small', { width: 16, height: 16, }, ], size === Spinner_types_1.SpinnerSize.medium && [ 'ms-Spinner--medium', { width: 20, height: 20, }, ], size === Spinner_types_1.SpinnerSize.large && [ 'ms-Spinner--large', { width: 28, height: 28, }, ], ], label: [ classNames.label, theme.fonts.small, { color: palette.themePrimary, margin: '8px 0 0', textAlign: 'center', }, labelPosition === 'top' && { margin: '0 0 8px', }, labelPosition === 'right' && { margin: '0 0 0 8px', }, labelPosition === 'left' && { margin: '0 8px 0 0', }, ], screenReaderText: Styling_1.hiddenContentStyle, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Spinner.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpinnerType = exports.SpinnerSize = void 0; /** * Possible variations of the spinner circle size. * {@docCategory Spinner} */ var SpinnerSize; (function (SpinnerSize) { /** * 12px Spinner diameter */ SpinnerSize[SpinnerSize["xSmall"] = 0] = "xSmall"; /** * 16px Spinner diameter */ SpinnerSize[SpinnerSize["small"] = 1] = "small"; /** * 20px Spinner diameter */ SpinnerSize[SpinnerSize["medium"] = 2] = "medium"; /** * 28px Spinner diameter */ SpinnerSize[SpinnerSize["large"] = 3] = "large"; })(SpinnerSize = exports.SpinnerSize || (exports.SpinnerSize = {})); /** * @deprecated Use `SpinnerSize` instead. Will be removed at \>= 2.0.0. * {@docCategory Spinner} */ var SpinnerType; (function (SpinnerType) { /** * @deprecated Use `SpinnerSize.medium` instead. Will be removed at \>= 2.0.0. */ SpinnerType[SpinnerType["normal"] = 0] = "normal"; /** * @deprecated Use `SpinnerSize.large` instead. Will be removed at \>= 2.0.0. */ SpinnerType[SpinnerType["large"] = 1] = "large"; })(SpinnerType = exports.SpinnerType || (exports.SpinnerType = {})); //# sourceMappingURL=Spinner.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Spinner/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__(/*! ./Spinner */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Spinner.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Spinner.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/Spinner.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Stack = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** @jsxRuntime classic */ /** @jsx withSlots */ var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var foundation_legacy_1 = __webpack_require__(/*! @fluentui/foundation-legacy */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Stack_styles_1 = __webpack_require__(/*! ./Stack.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.styles.js"); var StackItem_1 = __webpack_require__(/*! ./StackItem/StackItem */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.js"); var StackView = function (props) { var _a = props.as, RootType = _a === void 0 ? 'div' : _a, _b = props.disableShrink, disableShrink = _b === void 0 ? false : _b, // eslint-disable-next-line deprecation/deprecation _c = props.doNotRenderFalsyValues, // eslint-disable-next-line deprecation/deprecation doNotRenderFalsyValues = _c === void 0 ? false : _c, _d = props.enableScopedSelectors, enableScopedSelectors = _d === void 0 ? false : _d, wrap = props.wrap, rest = tslib_1.__rest(props, ["as", "disableShrink", "doNotRenderFalsyValues", "enableScopedSelectors", "wrap"]); (0, Utilities_1.warnDeprecations)('Stack', props, { gap: 'tokens.childrenGap', maxHeight: 'tokens.maxHeight', maxWidth: 'tokens.maxWidth', padding: 'tokens.padding', }); var stackChildren = _processStackChildren(props.children, { disableShrink: disableShrink, enableScopedSelectors: enableScopedSelectors, doNotRenderFalsyValues: doNotRenderFalsyValues, }); var nativeProps = (0, Utilities_1.getNativeProps)(rest, Utilities_1.htmlElementProperties); var Slots = (0, foundation_legacy_1.getSlots)(props, { root: RootType, inner: 'div', }); if (wrap) { return ((0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, nativeProps), (0, foundation_legacy_1.withSlots)(Slots.inner, null, stackChildren))); } return (0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, nativeProps), stackChildren); }; function _processStackChildren(children, _a) { var disableShrink = _a.disableShrink, enableScopedSelectors = _a.enableScopedSelectors, doNotRenderFalsyValues = _a.doNotRenderFalsyValues; var childrenArray = React.Children.toArray(children); childrenArray = React.Children.map(childrenArray, function (child) { if (!child || !React.isValidElement(child)) { return doNotRenderFalsyValues ? null : child; } if (child.type === React.Fragment) { return child.props.children ? _processStackChildren(child.props.children, { disableShrink: disableShrink, enableScopedSelectors: enableScopedSelectors, doNotRenderFalsyValues: doNotRenderFalsyValues }) : null; } var childAsReactElement = child; var defaultItemProps = {}; if (_isStackItem(child)) { defaultItemProps = { shrink: !disableShrink }; } var childClassName = childAsReactElement.props.className; return React.cloneElement(childAsReactElement, tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, defaultItemProps), childAsReactElement.props), (childClassName && { className: childClassName })), (enableScopedSelectors && { className: (0, Utilities_1.css)(Stack_styles_1.GlobalClassNames.child, childClassName) }))); }); return childrenArray; } function _isStackItem(item) { // In theory, we should be able to just check item.type === StackItem. // However, under certain unclear circumstances (see https://github.com/microsoft/fluentui/issues/10785), // the object identity is different despite the function implementation being the same. return (!!item && typeof item === 'object' && !!item.type && // StackItem is generated by createComponent, so we need to check its displayName instead of name item.type.displayName === StackItem_1.StackItem.displayName); } var StackStatics = { Item: StackItem_1.StackItem, }; exports.Stack = (0, foundation_legacy_1.createComponent)(StackView, { displayName: 'Stack', styles: Stack_styles_1.styles, statics: StackStatics, }); exports["default"] = exports.Stack; //# sourceMappingURL=Stack.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.styles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = exports.GlobalClassNames = 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 StackItem_styles_1 = __webpack_require__(/*! ./StackItem/StackItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.styles.js"); var StackUtils_1 = __webpack_require__(/*! ./StackUtils */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackUtils.js"); var nameMap = { start: 'flex-start', end: 'flex-end', }; exports.GlobalClassNames = { root: 'ms-Stack', inner: 'ms-Stack-inner', child: 'ms-Stack-child', }; var styles = function (props, theme, tokens) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; var className = props.className, disableShrink = props.disableShrink, enableScopedSelectors = props.enableScopedSelectors, grow = props.grow, horizontal = props.horizontal, horizontalAlign = props.horizontalAlign, reversed = props.reversed, verticalAlign = props.verticalAlign, verticalFill = props.verticalFill, wrap = props.wrap; var classNames = (0, Styling_1.getGlobalClassNames)(exports.GlobalClassNames, theme); /* eslint-disable deprecation/deprecation */ var childrenGap = tokens && tokens.childrenGap ? tokens.childrenGap : props.gap; var maxHeight = tokens && tokens.maxHeight ? tokens.maxHeight : props.maxHeight; var maxWidth = tokens && tokens.maxWidth ? tokens.maxWidth : props.maxWidth; var padding = tokens && tokens.padding ? tokens.padding : props.padding; /* eslint-enable deprecation/deprecation */ var _p = (0, StackUtils_1.parseGap)(childrenGap, theme), rowGap = _p.rowGap, columnGap = _p.columnGap; var horizontalMargin = "".concat(-0.5 * columnGap.value).concat(columnGap.unit); var verticalMargin = "".concat(-0.5 * rowGap.value).concat(rowGap.unit); // styles to be applied to all direct children regardless of wrap or direction var childStyles = { textOverflow: 'ellipsis', }; var childSelector = '> ' + (enableScopedSelectors ? '.' + exports.GlobalClassNames.child : '*'); var disableShrinkStyles = (_a = {}, // flexShrink styles are applied by the StackItem _a["".concat(childSelector, ":not(.").concat(StackItem_styles_1.GlobalClassNames.root, ")")] = { flexShrink: 0, }, _a); if (wrap) { return { root: [ classNames.root, { flexWrap: 'wrap', maxWidth: maxWidth, maxHeight: maxHeight, width: 'auto', overflow: 'visible', height: '100%', }, horizontalAlign && (_b = {}, _b[horizontal ? 'justifyContent' : 'alignItems'] = nameMap[horizontalAlign] || horizontalAlign, _b), verticalAlign && (_c = {}, _c[horizontal ? 'alignItems' : 'justifyContent'] = nameMap[verticalAlign] || verticalAlign, _c), className, { // not allowed to be overridden by className // since this is necessary in order to prevent collapsing margins display: 'flex', }, horizontal && { height: verticalFill ? '100%' : 'auto', }, ], inner: [ classNames.inner, (_d = { display: 'flex', flexWrap: 'wrap', marginLeft: horizontalMargin, marginRight: horizontalMargin, marginTop: verticalMargin, marginBottom: verticalMargin, overflow: 'visible', boxSizing: 'border-box', padding: (0, StackUtils_1.parsePadding)(padding, theme), // avoid unnecessary calc() calls if horizontal gap is 0 width: columnGap.value === 0 ? '100%' : "calc(100% + ".concat(columnGap.value).concat(columnGap.unit, ")"), maxWidth: '100vw' }, _d[childSelector] = tslib_1.__assign({ margin: "".concat(0.5 * rowGap.value).concat(rowGap.unit, " ").concat(0.5 * columnGap.value).concat(columnGap.unit) }, childStyles), _d), disableShrink && disableShrinkStyles, horizontalAlign && (_e = {}, _e[horizontal ? 'justifyContent' : 'alignItems'] = nameMap[horizontalAlign] || horizontalAlign, _e), verticalAlign && (_f = {}, _f[horizontal ? 'alignItems' : 'justifyContent'] = nameMap[verticalAlign] || verticalAlign, _f), horizontal && (_g = { flexDirection: reversed ? 'row-reverse' : 'row', // avoid unnecessary calc() calls if vertical gap is 0 height: rowGap.value === 0 ? '100%' : "calc(100% + ".concat(rowGap.value).concat(rowGap.unit, ")") }, _g[childSelector] = { maxWidth: columnGap.value === 0 ? '100%' : "calc(100% - ".concat(columnGap.value).concat(columnGap.unit, ")"), }, _g), !horizontal && (_h = { flexDirection: reversed ? 'column-reverse' : 'column', height: "calc(100% + ".concat(rowGap.value).concat(rowGap.unit, ")") }, _h[childSelector] = { maxHeight: rowGap.value === 0 ? '100%' : "calc(100% - ".concat(rowGap.value).concat(rowGap.unit, ")"), }, _h), ], }; } return { root: [ classNames.root, (_j = { display: 'flex', flexDirection: horizontal ? (reversed ? 'row-reverse' : 'row') : reversed ? 'column-reverse' : 'column', flexWrap: 'nowrap', width: 'auto', height: verticalFill ? '100%' : 'auto', maxWidth: maxWidth, maxHeight: maxHeight, padding: (0, StackUtils_1.parsePadding)(padding, theme), boxSizing: 'border-box' }, _j[childSelector] = childStyles, _j), disableShrink && disableShrinkStyles, grow && { flexGrow: grow === true ? 1 : grow, }, horizontalAlign && (_k = {}, _k[horizontal ? 'justifyContent' : 'alignItems'] = nameMap[horizontalAlign] || horizontalAlign, _k), verticalAlign && (_l = {}, _l[horizontal ? 'alignItems' : 'justifyContent'] = nameMap[verticalAlign] || verticalAlign, _l), horizontal && columnGap.value > 0 && (_m = {}, // apply gap margin to every direct child except the first direct child if the direction is not reversed, // and the last direct one if it is _m[reversed ? "".concat(childSelector, ":not(:last-child)") : "".concat(childSelector, ":not(:first-child)")] = { marginLeft: "".concat(columnGap.value).concat(columnGap.unit), }, _m), !horizontal && rowGap.value > 0 && (_o = {}, // apply gap margin to every direct child except the first direct child if the direction is not reversed, // and the last direct one if it is _o[reversed ? "".concat(childSelector, ":not(:last-child)") : "".concat(childSelector, ":not(:first-child)")] = { marginTop: "".concat(rowGap.value).concat(rowGap.unit), }, _o), className, ], // TODO: this cast may be hiding some potential issues with styling and name // lookups and should be removed }; }; exports.styles = styles; //# sourceMappingURL=Stack.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Stack.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.StackItem = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var foundation_legacy_1 = __webpack_require__(/*! @fluentui/foundation-legacy */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var StackItem_styles_1 = __webpack_require__(/*! ./StackItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.styles.js"); var StackItemView = function (props) { var children = props.children; var nativeProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties); // eslint-disable-next-line eqeqeq if (children == null) { return null; } var Slots = (0, foundation_legacy_1.getSlots)(props, { root: 'div', }); return (0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, nativeProps), children); }; exports.StackItem = (0, foundation_legacy_1.createComponent)(StackItemView, { displayName: 'StackItem', styles: StackItem_styles_1.StackItemStyles, }); exports["default"] = exports.StackItem; //# sourceMappingURL=StackItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.styles.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.StackItemStyles = exports.GlobalClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.GlobalClassNames = { root: 'ms-StackItem', }; var alignMap = { start: 'flex-start', end: 'flex-end', }; var StackItemStyles = function (props, theme, tokens) { var grow = props.grow, shrink = props.shrink, disableShrink = props.disableShrink, align = props.align, verticalFill = props.verticalFill, order = props.order, className = props.className, _a = props.basis, basis = _a === void 0 ? 'auto' : _a; var classNames = (0, Styling_1.getGlobalClassNames)(exports.GlobalClassNames, theme); return { root: [ theme.fonts.medium, classNames.root, { flexBasis: basis, margin: tokens.margin, padding: tokens.padding, height: verticalFill ? '100%' : 'auto', width: 'auto', }, grow && { flexGrow: grow === true ? 1 : grow, }, (disableShrink || (!grow && !shrink)) && { flexShrink: 0, }, shrink && !disableShrink && { flexShrink: 1, }, align && { alignSelf: alignMap[align] || align, }, order && { order: order, }, className, ], // TODO: this cast may be hiding some potential issues with styling and name // lookups and should be removed }; }; exports.StackItemStyles = StackItemStyles; //# sourceMappingURL=StackItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=StackItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackUtils.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackUtils.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.parsePadding = exports.parseGap = void 0; // Helper function that converts a themed spacing key (if given) to the corresponding themed spacing value. var _getThemedSpacing = function (space, theme) { if (theme.spacing.hasOwnProperty(space)) { return theme.spacing[space]; } return space; }; // Helper function that takes a gap as a string and converts it into a { value, unit } representation. var _getValueUnitGap = function (gap) { var numericalPart = parseFloat(gap); var numericalValue = isNaN(numericalPart) ? 0 : numericalPart; var numericalString = isNaN(numericalPart) ? '' : numericalPart.toString(); var unitPart = gap.substring(numericalString.toString().length); return { value: numericalValue, unit: unitPart || 'px', }; }; /** * Takes in a gap size in either a CSS-style format (e.g. 10 or "10px") * or a key of a themed spacing value (e.g. "s1"). * Returns the separate numerical value of the padding (e.g. 10) * and the CSS unit (e.g. "px"). */ var parseGap = function (gap, theme) { if (gap === undefined || gap === '') { return { rowGap: { value: 0, unit: 'px', }, columnGap: { value: 0, unit: 'px', }, }; } if (typeof gap === 'number') { return { rowGap: { value: gap, unit: 'px', }, columnGap: { value: gap, unit: 'px', }, }; } var splitGap = gap.split(' '); // If the array has more than two values, then return 0px. if (splitGap.length > 2) { return { rowGap: { value: 0, unit: 'px', }, columnGap: { value: 0, unit: 'px', }, }; } // If the array has two values, then parse each one. if (splitGap.length === 2) { return { rowGap: _getValueUnitGap(_getThemedSpacing(splitGap[0], theme)), columnGap: _getValueUnitGap(_getThemedSpacing(splitGap[1], theme)), }; } // Else, parse the numerical value and pass it as both the vertical and horizontal gap. var calculatedGap = _getValueUnitGap(_getThemedSpacing(gap, theme)); return { rowGap: calculatedGap, columnGap: calculatedGap, }; }; exports.parseGap = parseGap; /** * Takes in a padding in a CSS-style format (e.g. 10, "10px", "10px 10px", etc.) * where the separate padding values can also be the key of a themed spacing value * (e.g. "s1 m", "10px l1 20px l2", etc.). * Returns a CSS-style padding. */ var parsePadding = function (padding, theme) { if (padding === undefined || typeof padding === 'number' || padding === '') { return padding; } var paddingValues = padding.split(' '); if (paddingValues.length < 2) { return _getThemedSpacing(padding, theme); } return paddingValues.reduce(function (padding1, padding2) { return _getThemedSpacing(padding1, theme) + ' ' + _getThemedSpacing(padding2, theme); }); }; exports.parsePadding = parsePadding; //# sourceMappingURL=StackUtils.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Stack/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__(/*! ./StackItem/StackItem */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./StackItem/StackItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/StackItem/StackItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Stack */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Stack.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/Stack.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Sticky = 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 ScrollablePane_types_1 = __webpack_require__(/*! ../ScrollablePane/ScrollablePane.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/ScrollablePane.types.js"); var Sticky_types_1 = __webpack_require__(/*! ./Sticky.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.types.js"); var Sticky = /** @class */ (function (_super) { tslib_1.__extends(Sticky, _super); function Sticky(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._stickyContentTop = React.createRef(); _this._stickyContentBottom = React.createRef(); _this._nonStickyContent = React.createRef(); _this._placeHolder = React.createRef(); _this.syncScroll = function (container) { var nonStickyContent = _this.nonStickyContent; if (nonStickyContent && _this.props.isScrollSynced) { nonStickyContent.scrollLeft = container.scrollLeft; } }; _this._getContext = function () { return _this.context; }; _this._onScrollEvent = function (container, footerStickyContainer) { if (_this.root && _this.nonStickyContent) { var distanceFromTop = _this._getNonStickyDistanceFromTop(container); var isStickyTop = false; var isStickyBottom = false; if (_this.canStickyTop) { var distanceToStickTop = distanceFromTop - _this._getStickyDistanceFromTop(); isStickyTop = distanceToStickTop < container.scrollTop; } // Can sticky bottom if the scrollablePane - total sticky footer height is smaller than the sticky's distance // from the top of the pane if (_this.canStickyBottom && container.clientHeight - footerStickyContainer.offsetHeight <= distanceFromTop) { isStickyBottom = distanceFromTop - Math.floor(container.scrollTop) >= _this._getStickyDistanceFromTopForFooter(container, footerStickyContainer); } if (document.activeElement && _this.nonStickyContent.contains(document.activeElement) && (_this.state.isStickyTop !== isStickyTop || _this.state.isStickyBottom !== isStickyBottom)) { _this._activeElement = document.activeElement; } else { _this._activeElement = undefined; } _this.setState({ isStickyTop: _this.canStickyTop && isStickyTop, isStickyBottom: isStickyBottom, distanceFromTop: distanceFromTop, }); } }; _this._getStickyDistanceFromTop = function () { var distance = 0; if (_this.stickyContentTop) { distance = _this.stickyContentTop.offsetTop; } return distance; }; _this._getStickyDistanceFromTopForFooter = function (container, footerStickyVisibleContainer) { var distance = 0; if (_this.stickyContentBottom) { distance = container.clientHeight - footerStickyVisibleContainer.offsetHeight + _this.stickyContentBottom.offsetTop; } return distance; }; _this._getNonStickyDistanceFromTop = function (container) { var distance = 0; var currElem = _this.root; if (currElem) { while (currElem && currElem.offsetParent !== container) { distance += currElem.offsetTop; currElem = currElem.offsetParent; } if (currElem && currElem.offsetParent === container) { distance += currElem.offsetTop; } } return distance; }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { isStickyTop: false, isStickyBottom: false, distanceFromTop: undefined, }; _this._activeElement = undefined; return _this; } Object.defineProperty(Sticky.prototype, "root", { get: function () { return this._root.current; }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "placeholder", { get: function () { return this._placeHolder.current; }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "stickyContentTop", { get: function () { return this._stickyContentTop.current; }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "stickyContentBottom", { get: function () { return this._stickyContentBottom.current; }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "nonStickyContent", { get: function () { return this._nonStickyContent.current; }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "canStickyTop", { get: function () { return (this.props.stickyPosition === Sticky_types_1.StickyPositionType.Both || this.props.stickyPosition === Sticky_types_1.StickyPositionType.Header); }, enumerable: false, configurable: true }); Object.defineProperty(Sticky.prototype, "canStickyBottom", { get: function () { return (this.props.stickyPosition === Sticky_types_1.StickyPositionType.Both || this.props.stickyPosition === Sticky_types_1.StickyPositionType.Footer); }, enumerable: false, configurable: true }); Sticky.prototype.componentDidMount = function () { var scrollablePane = this._getContext().scrollablePane; if (!scrollablePane) { return; } scrollablePane.subscribe(this._onScrollEvent); scrollablePane.addSticky(this); }; Sticky.prototype.componentWillUnmount = function () { var scrollablePane = this._getContext().scrollablePane; if (!scrollablePane) { return; } scrollablePane.unsubscribe(this._onScrollEvent); scrollablePane.removeSticky(this); }; Sticky.prototype.componentDidUpdate = function (prevProps, prevState) { var scrollablePane = this._getContext().scrollablePane; if (!scrollablePane) { return; } var _a = this.state, isStickyBottom = _a.isStickyBottom, isStickyTop = _a.isStickyTop, distanceFromTop = _a.distanceFromTop; var syncScroll = false; if (prevState.distanceFromTop !== distanceFromTop) { scrollablePane.sortSticky(this, true /*sortAgain*/); syncScroll = true; } if (prevState.isStickyTop !== isStickyTop || prevState.isStickyBottom !== isStickyBottom) { if (this._activeElement) { this._activeElement.focus(); } scrollablePane.updateStickyRefHeights(); syncScroll = true; } if (syncScroll) { // Sync Sticky scroll position with content container on each update scrollablePane.syncScrollSticky(this); } }; Sticky.prototype.shouldComponentUpdate = function (nextProps, nextState) { if (!this.context.scrollablePane) { return true; } var _a = this.state, isStickyTop = _a.isStickyTop, isStickyBottom = _a.isStickyBottom, distanceFromTop = _a.distanceFromTop; return (isStickyTop !== nextState.isStickyTop || isStickyBottom !== nextState.isStickyBottom || this.props.stickyPosition !== nextProps.stickyPosition || this.props.children !== nextProps.children || distanceFromTop !== nextState.distanceFromTop || _isOffsetHeightDifferent(this._nonStickyContent, this._stickyContentTop) || _isOffsetHeightDifferent(this._nonStickyContent, this._stickyContentBottom) || _isOffsetHeightDifferent(this._nonStickyContent, this._placeHolder)); }; Sticky.prototype.render = function () { var _a = this.state, isStickyTop = _a.isStickyTop, isStickyBottom = _a.isStickyBottom; var _b = this.props, stickyClassName = _b.stickyClassName, children = _b.children; if (!this.context.scrollablePane) { return React.createElement("div", null, this.props.children); } return (React.createElement("div", { ref: this._root }, this.canStickyTop && (React.createElement("div", { ref: this._stickyContentTop, style: { pointerEvents: isStickyTop ? 'auto' : 'none' } }, React.createElement("div", { style: this._getStickyPlaceholderHeight(isStickyTop) }))), this.canStickyBottom && (React.createElement("div", { ref: this._stickyContentBottom, style: { pointerEvents: isStickyBottom ? 'auto' : 'none' } }, React.createElement("div", { style: this._getStickyPlaceholderHeight(isStickyBottom) }))), React.createElement("div", { style: this._getNonStickyPlaceholderHeightAndWidth(), ref: this._placeHolder }, (isStickyTop || isStickyBottom) && React.createElement("span", { style: Styling_1.hiddenContentStyle }, children), React.createElement("div", { ref: this._nonStickyContent, className: isStickyTop || isStickyBottom ? stickyClassName : undefined, style: this._getContentStyles(isStickyTop || isStickyBottom) }, children)))); }; Sticky.prototype.addSticky = function (stickyContent) { if (this.nonStickyContent) { stickyContent.appendChild(this.nonStickyContent); } }; Sticky.prototype.resetSticky = function () { if (this.nonStickyContent && this.placeholder) { this.placeholder.appendChild(this.nonStickyContent); } }; Sticky.prototype.setDistanceFromTop = function (container) { var distanceFromTop = this._getNonStickyDistanceFromTop(container); this.setState({ distanceFromTop: distanceFromTop }); }; Sticky.prototype._getContentStyles = function (isSticky) { return { backgroundColor: this.props.stickyBackgroundColor || this._getBackground(), overflow: isSticky ? 'hidden' : '', }; }; Sticky.prototype._getStickyPlaceholderHeight = function (isSticky) { var height = this.nonStickyContent ? this.nonStickyContent.offsetHeight : 0; return { visibility: isSticky ? 'hidden' : 'visible', height: isSticky ? 0 : height, }; }; Sticky.prototype._getNonStickyPlaceholderHeightAndWidth = function () { var _a = this.state, isStickyTop = _a.isStickyTop, isStickyBottom = _a.isStickyBottom; if (isStickyTop || isStickyBottom) { var height = 0; var width = 0; // Why is placeholder width needed? // ScrollablePane's content container is reponsible for providing scrollbars depending on content overflow. // - If the overflow is caused by content of sticky component when it is in non-sticky state, the container will // provide horizontal scrollbar. // - If the component becomes sticky, i.e., when state.isStickyTop || state.isStickyBottom becomes true, // its actual content is no longer inside the container, so the container will see no need for horizontal // scrollbar (assuming no other content is causing overflow). The complete content of sticky component will // not be viewable. So it is necessary to provide a placeholder of a certain width (height is already being set) // in the container, to get a horizontal scrollbar & be able to view the complete content of sticky component. if (this.nonStickyContent && this.nonStickyContent.firstElementChild) { height = this.nonStickyContent.offsetHeight; // What value should be substituted for placeholder width? // Assumptions: // 1. Content inside should always be wrapped in a single div. // {intended_content} // 2. -ve padding, margin, etc. are not be used. // 3. scrollWidth of a parent is greater than or equal to max of scrollWidths of its children, and same holds // for children. // placeholder width should be computed in the best possible way to prevent overscroll/underscroll. width = this.nonStickyContent.firstElementChild.scrollWidth + (this.nonStickyContent.firstElementChild.offsetWidth - this.nonStickyContent.firstElementChild.clientWidth); } return { height: height, width: width, }; } else { return {}; } }; // Gets background of nearest parent element that has a declared background-color attribute Sticky.prototype._getBackground = function () { if (!this.root) { return undefined; } var curr = this.root; while (window.getComputedStyle(curr).getPropertyValue('background-color') === 'rgba(0, 0, 0, 0)' || window.getComputedStyle(curr).getPropertyValue('background-color') === 'transparent') { if (curr.tagName === 'HTML') { // Fallback color if no element has a declared background-color attribute return undefined; } if (curr.parentElement) { curr = curr.parentElement; } } return window.getComputedStyle(curr).getPropertyValue('background-color'); }; Sticky.defaultProps = { stickyPosition: Sticky_types_1.StickyPositionType.Both, isScrollSynced: true, }; Sticky.contextType = ScrollablePane_types_1.ScrollablePaneContext; return Sticky; }(React.Component)); exports.Sticky = Sticky; function _isOffsetHeightDifferent(a, b) { return (a && b && a.current && b.current && a.current.offsetHeight !== b.current.offsetHeight); } //# sourceMappingURL=Sticky.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.StickyPositionType = void 0; var StickyPositionType; (function (StickyPositionType) { StickyPositionType[StickyPositionType["Both"] = 0] = "Both"; StickyPositionType[StickyPositionType["Header"] = 1] = "Header"; StickyPositionType[StickyPositionType["Footer"] = 2] = "Footer"; })(StickyPositionType = exports.StickyPositionType || (exports.StickyPositionType = {})); //# sourceMappingURL=Sticky.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Sticky/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__(/*! ./Sticky */ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Sticky.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/Sticky.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.base.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.base.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorPickerGridCellBase = 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 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 Color_1 = __webpack_require__(/*! ../../Color */ "./node_modules/@fluentui/react/lib-commonjs/Color.js"); var ButtonGridCell_1 = __webpack_require__(/*! ../../utilities/ButtonGrid/ButtonGridCell */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js"); var ActionButton_styles_1 = __webpack_require__(/*! ../Button/ActionButton/ActionButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** Validate if the cell's color is white or not to apply whiteCell style */ var isWhiteCell = function (inputColor) { var currentColor = (0, Color_1.getColorFromString)(inputColor); return (currentColor === null || currentColor === void 0 ? void 0 : currentColor.hex) === 'ffffff'; }; var getColorPickerGridCellButtonClassNames = (0, Utilities_1.memoizeFunction)(function (theme, className, variantClassName, iconClassName, menuIconClassName, disabled, checked, expanded, isSplit) { var styles = (0, ActionButton_styles_1.getStyles)(theme); return (0, Styling_1.mergeStyleSets)({ root: [ 'ms-Button', styles.root, variantClassName, className, checked && ['is-checked', styles.rootChecked], disabled && ['is-disabled', styles.rootDisabled], !disabled && !checked && { selectors: { ':hover': styles.rootHovered, ':focus': styles.rootFocused, ':active': styles.rootPressed, }, }, disabled && checked && [styles.rootCheckedDisabled], !disabled && checked && { selectors: { ':hover': styles.rootCheckedHovered, ':active': styles.rootCheckedPressed, }, }, ], flexContainer: ['ms-Button-flexContainer', styles.flexContainer], }); }); var ColorPickerGridCellBase = function (props) { var item = props.item, // eslint-disable-next-line deprecation/deprecation _a = props.idPrefix, // eslint-disable-next-line deprecation/deprecation idPrefix = _a === void 0 ? props.id : _a, isRadio = props.isRadio, _b = props.selected, selected = _b === void 0 ? false : _b, _c = props.disabled, disabled = _c === void 0 ? false : _c, styles = props.styles, _d = props.circle, circle = _d === void 0 ? true : _d, color = props.color, onClick = props.onClick, onHover = props.onHover, onFocus = props.onFocus, onMouseEnter = props.onMouseEnter, onMouseMove = props.onMouseMove, onMouseLeave = props.onMouseLeave, onWheel = props.onWheel, onKeyDown = props.onKeyDown, height = props.height, width = props.width, borderWidth = props.borderWidth; var classNames = getClassNames(styles, { theme: props.theme, disabled: disabled, selected: selected, circle: circle, isWhite: isWhiteCell(color), height: height, width: width, borderWidth: borderWidth, }); // Render the core of a color cell var renderColorOption = function (colorOption) { var _a; var svgClassName = classNames.svg; // Build an SVG for the cell with the given shape and color properties // Include role="img" and aria-label here for better virtual cursor accessibility, // and for a VoiceOver bug where it skips grid cells that lack inner content return (React.createElement("svg", { className: svgClassName, role: "img", "aria-label": colorOption.label, viewBox: "0 0 20 20", fill: (_a = (0, Color_1.getColorFromString)(colorOption.color)) === null || _a === void 0 ? void 0 : _a.str }, circle ? React.createElement("circle", { cx: "50%", cy: "50%", r: "50%" }) : React.createElement("rect", { width: "100%", height: "100%" }))); }; var onRenderItem = function (option) { var _a = props.onRenderColorCellContent, onRenderColorCellContent = _a === void 0 ? renderColorOption : _a; return onRenderColorCellContent(option, renderColorOption); }; var cellSemantics = isRadio ? { role: 'radio', 'aria-checked': selected, selected: undefined, } : { role: 'gridcell', selected: selected, }; return (React.createElement(ButtonGridCell_1.ButtonGridCell, tslib_1.__assign({ item: item, id: "".concat(idPrefix, "-").concat(item.id, "-").concat(item.index), key: item.id, disabled: disabled }, cellSemantics, { // eslint-disable-next-line react/jsx-no-bind onRenderItem: onRenderItem, onClick: onClick, onHover: onHover, onFocus: onFocus, label: item.label, className: classNames.colorCell, getClassNames: getColorPickerGridCellButtonClassNames, index: item.index, onMouseEnter: onMouseEnter, onMouseMove: onMouseMove, onMouseLeave: onMouseLeave, onWheel: onWheel, onKeyDown: onKeyDown }))); }; exports.ColorPickerGridCellBase = ColorPickerGridCellBase; //# sourceMappingURL=ColorPickerGridCell.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorPickerGridCell = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ColorPickerGridCell_base_1 = __webpack_require__(/*! ./ColorPickerGridCell.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.base.js"); var ColorPickerGridCell_styles_1 = __webpack_require__(/*! ./ColorPickerGridCell.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.styles.js"); exports.ColorPickerGridCell = (0, Utilities_1.styled)(ColorPickerGridCell_base_1.ColorPickerGridCellBase, ColorPickerGridCell_styles_1.getStyles, undefined, { scope: 'ColorPickerGridCell' }, true); //# sourceMappingURL=ColorPickerGridCell.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.styles.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.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"); // Size breakpoint when the default border width changes from 2px to 4px. var CELL_BORDER_BREAKPOINT = 24; var LARGE_BORDER = 4; var SMALL_BORDER = 2; var DIVIDING_PADDING = 2; var DEFAULT_CELL_SIZE = 20; var cellHighContrastFocus = { left: -2, top: -2, bottom: -2, right: -2, border: 'none', outlineColor: 'ButtonText', }; var getStyles = function (props) { var _a, _b, _c, _d, _e; var theme = props.theme, disabled = props.disabled, selected = props.selected, circle = props.circle, isWhite = props.isWhite, _f = props.height, height = _f === void 0 ? DEFAULT_CELL_SIZE : _f, _g = props.width, width = _g === void 0 ? DEFAULT_CELL_SIZE : _g, borderWidth = props.borderWidth; var semanticColors = theme.semanticColors, palette = theme.palette; var buttonBorderHovered = palette.neutralLighter; var buttonBorderChecked = palette.neutralLight; var buttonBorderCheckedHovered = palette.neutralSecondary; var buttonBorderIsWhite = palette.neutralTertiary; // If user provided a value, use it. If not, then we decide depending on the 24px size breakpoint. var calculatedBorderWidth = borderWidth ? borderWidth : width < CELL_BORDER_BREAKPOINT ? SMALL_BORDER : LARGE_BORDER; return { // this is a button that wraps the color colorCell: [ (0, Styling_1.getFocusStyle)(theme, { inset: -1, position: 'relative', highContrastStyle: cellHighContrastFocus }), { backgroundColor: semanticColors.bodyBackground, padding: 0, position: 'relative', boxSizing: 'border-box', display: 'inline-block', cursor: 'pointer', userSelect: 'none', borderRadius: 0, border: 'none', height: height, width: width, verticalAlign: 'top', }, !circle && { selectors: (_a = {}, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus::after")] = { // -1px so that we don't increase visually the size of the cell. outlineOffset: "".concat(calculatedBorderWidth - 1, "px"), }, _a), }, // In focus state for circle we want a round border which is not possible with outline. circle && { borderRadius: '50%', selectors: (_b = {}, _b[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus::after")] = { outline: 'none', borderColor: semanticColors.focusBorder, borderRadius: '50%', left: -calculatedBorderWidth, right: -calculatedBorderWidth, top: -calculatedBorderWidth, bottom: -calculatedBorderWidth, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { outline: "1px solid ButtonText", }, _c), }, _b), }, selected && { padding: DIVIDING_PADDING, border: "".concat(calculatedBorderWidth, "px solid ").concat(buttonBorderChecked), selectors: (_d = {}, _d['&:hover::before'] = { content: '""', height: height, width: width, position: 'absolute', top: -calculatedBorderWidth, left: -calculatedBorderWidth, borderRadius: circle ? '50%' : 'default', boxShadow: "inset 0 0 0 1px ".concat(buttonBorderCheckedHovered), }, _d), }, !selected && { selectors: (_e = {}, _e['&:hover, &:active, &:focus'] = { backgroundColor: semanticColors.bodyBackground, padding: DIVIDING_PADDING, border: "".concat(calculatedBorderWidth, "px solid ").concat(buttonBorderHovered), }, _e['&:focus'] = { borderColor: semanticColors.bodyBackground, padding: 0, selectors: { ':hover': { borderColor: theme.palette.neutralLight, padding: DIVIDING_PADDING, }, }, }, _e), }, disabled && { color: semanticColors.disabledBodyText, pointerEvents: 'none', opacity: 0.3, }, isWhite && !selected && { // fake a border for white backgroundColor: buttonBorderIsWhite, padding: 1, }, ], // the that holds the color svg: [ { width: '100%', height: '100%', }, circle && { borderRadius: '50%', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ColorPickerGridCell.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.types.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.types.js ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ColorPickerGridCell.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.base.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.base.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SwatchColorPickerBase = 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 ButtonGrid_1 = __webpack_require__(/*! ../../utilities/ButtonGrid/ButtonGrid */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js"); var ColorPickerGridCell_1 = __webpack_require__(/*! ./ColorPickerGridCell */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.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 = 'SwatchColorPicker'; 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: { focusOnHover: 'onHover', selectedId: 'defaultSelectedId' }, deprecations: { isControlled: "selectedId' or 'defaultSelectedId", onColorChanged: 'onChange' }, }); } } exports.SwatchColorPickerBase = React.forwardRef(function (props, ref) { var defaultId = (0, react_hooks_1.useId)('swatchColorPicker'); var id = props.id || defaultId; var internalState = (0, react_hooks_1.useConst)({ isNavigationIdle: true, cellFocused: false, navigationIdleTimeoutId: undefined, navigationIdleDelay: 250, }); var _a = (0, react_hooks_1.useSetTimeout)(), setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout; useDebugWarnings(props); var colorCells = props.colorCells, _b = props.cellShape, cellShape = _b === void 0 ? 'circle' : _b, columnCount = props.columnCount, _c = props.shouldFocusCircularNavigate, shouldFocusCircularNavigate = _c === void 0 ? true : _c, className = props.className, _d = props.disabled, disabled = _d === void 0 ? false : _d, doNotContainWithinFocusZone = props.doNotContainWithinFocusZone, styles = props.styles, _e = props.cellMargin, cellMargin = _e === void 0 ? 10 : _e, defaultSelectedId = props.defaultSelectedId, focusOnHover = props.focusOnHover, mouseLeaveParentSelector = props.mouseLeaveParentSelector, onChange = props.onChange, // eslint-disable-next-line deprecation/deprecation onColorChanged = props.onColorChanged, onCellHovered = props.onCellHovered, onCellFocused = props.onCellFocused, getColorGridCellStyles = props.getColorGridCellStyles, cellHeight = props.cellHeight, cellWidth = props.cellWidth, cellBorderWidth = props.cellBorderWidth, onRenderColorCellContent = props.onRenderColorCellContent; /** * Add an index to each color cells. Memoizes this so that color cells do not re-render on every update. */ var itemsWithIndex = React.useMemo(function () { return colorCells.map(function (item, index) { return tslib_1.__assign(tslib_1.__assign({}, item), { index: index }); }); }, [colorCells]); var mergedOnChange = React.useCallback(function (ev, newSelectedId) { var _a; // Call both new and old change handlers, and add the extra `color` parameter var newColor = (_a = colorCells.filter(function (c) { return c.id === newSelectedId; })[0]) === null || _a === void 0 ? void 0 : _a.color; onChange === null || onChange === void 0 ? void 0 : onChange(ev, newSelectedId, newColor); onColorChanged === null || onColorChanged === void 0 ? void 0 : onColorChanged(newSelectedId, newColor); }, [onChange, onColorChanged, colorCells]); var _f = (0, react_hooks_1.useControllableValue)(props.selectedId, defaultSelectedId, mergedOnChange), selectedId = _f[0], setSelectedId = _f[1]; var classNames = getClassNames(styles, { theme: props.theme, className: className, cellMargin: cellMargin, }); var gridStyles = { root: classNames.root, tableCell: classNames.tableCell, focusedContainer: classNames.focusedContainer, }; /** * If there is only one row of cells, they should use radio semantics, * multi-row swatch cells should use grid semantics. * There are two reasons for this: * 1. Radios are a more simple and understandable control, and a better fit for a single-dimensional picker. * 2. Multiple browsers use heuristics to strip table and grid roles from single-row tables with no column headers. */ var isSemanticRadio = colorCells.length <= columnCount; /** * When the whole swatchColorPicker is blurred, * make sure to clear the pending focused stated */ var onSwatchColorPickerBlur = React.useCallback(function (event) { if (onCellFocused) { internalState.cellFocused = false; onCellFocused(undefined, undefined, event); } }, [internalState, onCellFocused]); /** * Callback passed to the GridCell that will manage triggering the onCellHovered callback for mouseEnter */ var onMouseEnter = React.useCallback(function (ev) { if (!focusOnHover) { return !internalState.isNavigationIdle || !!disabled; } if (internalState.isNavigationIdle && !disabled) { ev.currentTarget.focus(); } return true; }, [focusOnHover, internalState, disabled]); /** * Callback passed to the GridCell that will manage Hover/Focus updates */ var onMouseMove = React.useCallback(function (ev) { if (!focusOnHover) { return !internalState.isNavigationIdle || !!disabled; } var targetElement = ev.currentTarget; // If navigation is idle and the targetElement is the focused element bail out if (internalState.isNavigationIdle && !(document && targetElement === document.activeElement)) { targetElement.focus(); } return true; }, [focusOnHover, internalState, disabled]); /** * Callback passed to the GridCell that will manage Hover/Focus updates */ var onMouseLeave = React.useCallback(function (ev) { var parentSelector = mouseLeaveParentSelector; if (!focusOnHover || !parentSelector || !internalState.isNavigationIdle || disabled) { return; } // Get the elements that math the given selector var elements = document.querySelectorAll(parentSelector); // iterate over the elements return to make sure it is a parent of the target and focus it for (var index = 0; index < elements.length; index += 1) { if (elements[index].contains(ev.currentTarget)) { /** * 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 (elements[index].setActive) { try { elements[index].setActive(); } catch (e) { /* no-op */ } } else { elements[index].focus(); } break; } } }, [disabled, focusOnHover, internalState, mouseLeaveParentSelector]); /** * Callback passed to the GridCell class that will trigger the onCellHovered callback of the SwatchColorPicker * NOTE: This will not be triggered if shouldFocusOnHover === true */ var onGridCellHovered = React.useCallback(function (item, event) { if (onCellHovered) { item ? onCellHovered(item.id, item.color, event) : onCellHovered(undefined, undefined, event); } }, [onCellHovered]); /** * Callback passed to the GridCell class that will trigger the onCellFocus callback of the SwatchColorPicker */ var onGridCellFocused = React.useCallback(function (item, event) { if (onCellFocused) { if (item) { internalState.cellFocused = true; return onCellFocused(item.id, item.color, event); } else { internalState.cellFocused = false; return onCellFocused(undefined, undefined, event); } } }, [internalState, onCellFocused]); /** * Handle the click on a cell */ var onCellClick = React.useCallback(function (item, event) { if (disabled || item.disabled) { return; } if (item.id !== selectedId) { if (onCellFocused && internalState.cellFocused) { internalState.cellFocused = false; onCellFocused(undefined, undefined, event); } setSelectedId(item.id, event); } }, [disabled, internalState, onCellFocused, selectedId, setSelectedId]); /** * Sets a timeout so we won't process any mouse "hover" events * while navigating (via mouseWheel or arrowKeys) */ var setNavigationTimeout = React.useCallback(function () { if (!internalState.isNavigationIdle && internalState.navigationIdleTimeoutId !== undefined) { clearTimeout(internalState.navigationIdleTimeoutId); internalState.navigationIdleTimeoutId = undefined; } else { internalState.isNavigationIdle = false; } internalState.navigationIdleTimeoutId = setTimeout(function () { internalState.isNavigationIdle = true; }, internalState.navigationIdleDelay); }, [clearTimeout, internalState, setTimeout]); /** * Callback used to handle KeyCode events */ var onKeyDown = React.useCallback(function (ev) { if ( // eslint-disable-next-line deprecation/deprecation ev.which === Utilities_1.KeyCodes.up || // eslint-disable-next-line deprecation/deprecation ev.which === Utilities_1.KeyCodes.down || // eslint-disable-next-line deprecation/deprecation ev.which === Utilities_1.KeyCodes.left || // eslint-disable-next-line deprecation/deprecation ev.which === Utilities_1.KeyCodes.right) { setNavigationTimeout(); } }, [setNavigationTimeout]); /** * Render a color cell * @param item - The item to render * @returns - Element representing the item */ var renderOption = function (item) { return (React.createElement(ColorPickerGridCell_1.ColorPickerGridCell, { item: item, idPrefix: id, color: item.color, styles: getColorGridCellStyles, disabled: disabled || item.disabled, onClick: onCellClick, onHover: onGridCellHovered, onFocus: onGridCellFocused, selected: selectedId === item.id, circle: cellShape === 'circle', label: item.label, onMouseEnter: onMouseEnter, onMouseMove: onMouseMove, onMouseLeave: onMouseLeave, onWheel: setNavigationTimeout, onKeyDown: onKeyDown, onRenderColorCellContent: onRenderColorCellContent, height: cellHeight, width: cellWidth, borderWidth: cellBorderWidth, isRadio: isSemanticRadio })); }; if (colorCells.length < 1 || columnCount < 1) { return null; } var onRenderItem = function (item, index) { var _a = props.onRenderColorCell, onRenderColorCell = _a === void 0 ? renderOption : _a; return onRenderColorCell(item, renderOption); }; return (React.createElement(ButtonGrid_1.ButtonGrid, tslib_1.__assign({}, props, { ref: ref, id: id, items: itemsWithIndex, columnCount: columnCount, isSemanticRadio: isSemanticRadio, // eslint-disable-next-line react/jsx-no-bind onRenderItem: onRenderItem, shouldFocusCircularNavigate: shouldFocusCircularNavigate, doNotContainWithinFocusZone: doNotContainWithinFocusZone, onBlur: onSwatchColorPickerBlur, theme: props.theme, styles: gridStyles }))); }); exports.SwatchColorPickerBase.displayName = COMPONENT_NAME; //# sourceMappingURL=SwatchColorPicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SwatchColorPicker = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var SwatchColorPicker_base_1 = __webpack_require__(/*! ./SwatchColorPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.base.js"); var SwatchColorPicker_styles_1 = __webpack_require__(/*! ./SwatchColorPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.styles.js"); exports.SwatchColorPicker = (0, Utilities_1.styled)(SwatchColorPicker_base_1.SwatchColorPickerBase, SwatchColorPicker_styles_1.getStyles, undefined, { scope: 'SwatchColorPicker' }); //# sourceMappingURL=SwatchColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.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 = { focusedContainer: 'ms-swatchColorPickerBodyContainer', }; var getStyles = function (props) { var className = props.className, theme = props.theme, cellMargin = props.cellMargin; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: { margin: '8px 0', borderCollapse: 'collapse', }, tableCell: { padding: cellMargin / 2, }, focusedContainer: [ classNames.focusedContainer, { clear: 'both', display: 'block', minWidth: '180px', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=SwatchColorPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SwatchColorPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/index.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/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__(/*! ./SwatchColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SwatchColorPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SwatchColorPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/SwatchColorPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPickerGridCell */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPickerGridCell.base */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPickerGridCell.types */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/ColorPickerGridCell.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TeachingBubbleBase = 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 TeachingBubbleContent_1 = __webpack_require__(/*! ./TeachingBubbleContent */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var COMPONENT_NAME = 'TeachingBubble'; var defaultCalloutProps = { beakWidth: 16, gapSpace: 0, setInitialFocus: true, doNotLayer: false, directionalHint: DirectionalHint_1.DirectionalHint.rightCenter, }; var getClassNames = (0, Utilities_1.classNamesFunction)(); var useComponentRef = function (componentRef, rootElementRef) { React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a; return (_a = rootElementRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, }); }, [rootElementRef]); }; exports.TeachingBubbleBase = React.forwardRef(function (props, forwardedRef) { var rootElementRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(rootElementRef, forwardedRef); var setCalloutProps = props.calloutProps, // eslint-disable-next-line deprecation/deprecation targetElement = props.targetElement, onDismiss = props.onDismiss, // eslint-disable-next-line deprecation/deprecation _a = props.hasCloseButton, // eslint-disable-next-line deprecation/deprecation hasCloseButton = _a === void 0 ? props.hasCloseIcon : _a, isWide = props.isWide, styles = props.styles, theme = props.theme, target = props.target; var calloutProps = React.useMemo(function () { return (tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, defaultCalloutProps), setCalloutProps), { theme: theme })); }, [setCalloutProps, theme]); var stylesProps = { theme: theme, isWide: isWide, calloutProps: calloutProps, hasCloseButton: hasCloseButton, }; var classNames = getClassNames(styles, stylesProps); var calloutStyles = classNames.subComponentStyles ? classNames.subComponentStyles.callout : undefined; useComponentRef(props.componentRef, rootElementRef); return (React.createElement(Callout_1.Callout, tslib_1.__assign({ target: target || targetElement, onDismiss: onDismiss }, calloutProps, { className: classNames.root, styles: calloutStyles, hideOverflow: true }), React.createElement("div", { ref: mergedRootRef }, React.createElement(TeachingBubbleContent_1.TeachingBubbleContent, tslib_1.__assign({}, props))))); }); exports.TeachingBubbleBase.displayName = COMPONENT_NAME; //# sourceMappingURL=TeachingBubble.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TeachingBubble = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TeachingBubble_base_1 = __webpack_require__(/*! ./TeachingBubble.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.base.js"); var TeachingBubble_styles_1 = __webpack_require__(/*! ./TeachingBubble.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.styles.js"); exports.TeachingBubble = (0, Utilities_1.styled)(TeachingBubble_base_1.TeachingBubbleBase, TeachingBubble_styles_1.getStyles, undefined, { scope: 'TeachingBubble' }); //# sourceMappingURL=TeachingBubble.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.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-TeachingBubble', body: 'ms-TeachingBubble-body', bodyContent: 'ms-TeachingBubble-bodycontent', closeButton: 'ms-TeachingBubble-closebutton', content: 'ms-TeachingBubble-content', footer: 'ms-TeachingBubble-footer', header: 'ms-TeachingBubble-header', headerIsCondensed: 'ms-TeachingBubble-header--condensed', headerIsSmall: 'ms-TeachingBubble-header--small', headerIsLarge: 'ms-TeachingBubble-header--large', headline: 'ms-TeachingBubble-headline', image: 'ms-TeachingBubble-image', primaryButton: 'ms-TeachingBubble-primaryButton', secondaryButton: 'ms-TeachingBubble-secondaryButton', subText: 'ms-TeachingBubble-subText', // TODO: Button global class name usage should be converted to a styles function once // Button supports JS styling, which means these button names can be removed. button: 'ms-Button', buttonLabel: 'ms-Button-label', }; var opacityFadeIn = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { opacity: 0, animationTimingFunction: Styling_1.AnimationVariables.easeFunction1, transform: 'scale3d(.90,.90,.90)', }, '100%': { opacity: 1, transform: 'scale3d(1,1,1)', }, }); }); var rootStyle = function (isWide, calloutProps) { var _a = calloutProps || {}, calloutWidth = _a.calloutWidth, calloutMaxWidth = _a.calloutMaxWidth; return [ { display: 'block', maxWidth: 364, border: 0, outline: 'transparent', width: calloutWidth || 'calc(100% + 1px)', animationName: "".concat(opacityFadeIn()), animationDuration: '300ms', animationTimingFunction: 'linear', animationFillMode: 'both', }, isWide && { maxWidth: calloutMaxWidth || 456, }, ]; }; var headerStyle = function (classNames, hasCondensedHeadline, hasSmallHeadline) { if (hasCondensedHeadline) { return [ classNames.headerIsCondensed, { marginBottom: 14, }, ]; } return [ hasSmallHeadline && classNames.headerIsSmall, !hasSmallHeadline && classNames.headerIsLarge, { selectors: { ':not(:last-child)': { marginBottom: 14, }, }, }, ]; }; var getStyles = function (props) { var _a, _b, _c; var hasCondensedHeadline = props.hasCondensedHeadline, hasSmallHeadline = props.hasSmallHeadline, hasCloseButton = props.hasCloseButton, hasHeadline = props.hasHeadline, isWide = props.isWide, primaryButtonClassName = props.primaryButtonClassName, secondaryButtonClassName = props.secondaryButtonClassName, theme = props.theme, _d = props.calloutProps, calloutProps = _d === void 0 ? { className: undefined, theme: theme } : _d; var hasLargeHeadline = !hasCondensedHeadline && !hasSmallHeadline; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(globalClassNames, theme); var hideDefaultFocusRing = (0, Styling_1.getFocusStyle)(theme, { outlineColor: 'transparent', borderColor: 'transparent', }); return { root: [classNames.root, fonts.medium, calloutProps.className], body: [ classNames.body, hasCloseButton && !hasHeadline && { marginRight: 24 }, { selectors: { ':not(:last-child)': { marginBottom: 20, }, }, }, ], bodyContent: [ classNames.bodyContent, { padding: '20px 24px 20px 24px', }, ], closeButton: [ classNames.closeButton, { position: 'absolute', right: 0, top: 0, margin: '15px 15px 0 0', borderRadius: 0, color: palette.white, fontSize: fonts.small.fontSize, selectors: { ':hover': { background: palette.themeDarkAlt, color: palette.white, }, ':active': { background: palette.themeDark, color: palette.white, }, ':focus': { border: "1px solid ".concat(semanticColors.variantBorder), }, }, }, ], content: tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.content ], rootStyle(isWide), true), [ isWide && { display: 'flex', }, ], false), footer: [ classNames.footer, { display: 'flex', flex: 'auto', alignItems: 'center', color: palette.white, selectors: (_a = {}, // TODO: global class name usage should be converted to a styles function once Button supports JS styling _a[".".concat(classNames.button, ":not(:first-child)")] = { marginLeft: 10, }, _a), }, ], header: tslib_1.__spreadArray(tslib_1.__spreadArray([ classNames.header ], headerStyle(classNames, hasCondensedHeadline, hasSmallHeadline), true), [ hasCloseButton && { marginRight: 24 }, (hasCondensedHeadline || hasSmallHeadline) && [ fonts.medium, { fontWeight: Styling_1.FontWeights.semibold, }, ], ], false), headline: [ classNames.headline, { margin: 0, color: palette.white, fontWeight: Styling_1.FontWeights.semibold, overflowWrap: 'break-word', }, hasLargeHeadline && [ { fontSize: fonts.xLarge.fontSize, }, ], ], imageContent: [ classNames.header, classNames.image, isWide && { display: 'flex', alignItems: 'center', maxWidth: 154, }, ], primaryButton: [ classNames.primaryButton, primaryButtonClassName, hideDefaultFocusRing, { backgroundColor: palette.white, borderColor: palette.white, color: palette.themePrimary, whiteSpace: 'nowrap', selectors: (_b = {}, // TODO: global class name usage should be converted to a styles function once Button supports JS styling _b[".".concat(classNames.buttonLabel)] = fonts.medium, _b[':hover'] = { backgroundColor: palette.themeLighter, borderColor: palette.themeLighter, color: palette.themeDark, }, _b[':focus'] = { backgroundColor: palette.themeLighter, border: "1px solid ".concat(palette.black), color: palette.themeDark, outline: "1px solid ".concat(palette.white), outlineOffset: '-2px', }, _b[':active'] = { backgroundColor: palette.white, borderColor: palette.white, color: palette.themePrimary, }, _b), }, ], secondaryButton: [ classNames.secondaryButton, secondaryButtonClassName, hideDefaultFocusRing, { backgroundColor: palette.themePrimary, borderColor: palette.white, whiteSpace: 'nowrap', selectors: (_c = {}, // TODO: global class name usage should be converted to a styles function once Button supports JS styling _c[".".concat(classNames.buttonLabel)] = [ fonts.medium, { color: palette.white, }, ], _c[':hover'] = { backgroundColor: palette.themeDarkAlt, borderColor: palette.white, }, _c[':focus'] = { backgroundColor: palette.themeDark, border: "1px solid ".concat(palette.black), outline: "1px solid ".concat(palette.white), outlineOffset: '-2px', }, _c[':active'] = { backgroundColor: palette.themePrimary, borderColor: palette.white, }, _c), }, ], subText: [ classNames.subText, { margin: 0, fontSize: fonts.medium.fontSize, color: palette.white, fontWeight: Styling_1.FontWeights.regular, }, ], subComponentStyles: { callout: { root: tslib_1.__spreadArray(tslib_1.__spreadArray([], rootStyle(isWide, calloutProps), true), [fonts.medium], false), beak: [ { background: palette.themePrimary, }, ], calloutMain: [ { background: palette.themePrimary, }, ], }, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=TeachingBubble.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=TeachingBubble.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.base.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.base.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TeachingBubbleContentBase = 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_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Stack_1 = __webpack_require__(/*! ../../Stack */ "./node_modules/@fluentui/react/lib-commonjs/Stack.js"); var FocusTrapZone_1 = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); var Image_1 = __webpack_require__(/*! ../../Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.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 getClassNames = (0, Utilities_1.classNamesFunction)(); var useComponentRef = function (componentRef, rootElementRef) { React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a; return (_a = rootElementRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }, }); }, [rootElementRef]); }; exports.TeachingBubbleContentBase = React.forwardRef(function (props, forwardedRef) { var _a, _b; var rootElementRef = React.useRef(null); var documentRef = (0, WindowProvider_1.useDocument)(); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(rootElementRef, forwardedRef); var ariaDescribedById = (0, react_hooks_1.useId)('teaching-bubble-content-'); var ariaLabelledById = (0, react_hooks_1.useId)('teaching-bubble-title-'); var ariaDescribedBy = (_a = props.ariaDescribedBy) !== null && _a !== void 0 ? _a : ariaDescribedById; var ariaLabelledBy = (_b = props.ariaLabelledBy) !== null && _b !== void 0 ? _b : ariaLabelledById; var illustrationImage = props.illustrationImage, primaryButtonProps = props.primaryButtonProps, secondaryButtonProps = props.secondaryButtonProps, headline = props.headline, hasCondensedHeadline = props.hasCondensedHeadline, // eslint-disable-next-line deprecation/deprecation _c = props.hasCloseButton, // eslint-disable-next-line deprecation/deprecation hasCloseButton = _c === void 0 ? props.hasCloseIcon : _c, onDismiss = props.onDismiss, closeButtonAriaLabel = props.closeButtonAriaLabel, hasSmallHeadline = props.hasSmallHeadline, isWide = props.isWide, styles = props.styles, theme = props.theme, customFooterContent = props.footerContent, focusTrapZoneProps = props.focusTrapZoneProps; var classNames = getClassNames(styles, { theme: theme, hasCondensedHeadline: hasCondensedHeadline, hasSmallHeadline: hasSmallHeadline, hasCloseButton: hasCloseButton, hasHeadline: !!headline, isWide: isWide, primaryButtonClassName: primaryButtonProps ? primaryButtonProps.className : undefined, secondaryButtonClassName: secondaryButtonProps ? secondaryButtonProps.className : undefined, }); var onKeyDown = React.useCallback(function (ev) { if (onDismiss) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.escape) { onDismiss(ev); } } }, [onDismiss]); (0, react_hooks_1.useOnEvent)(documentRef, 'keydown', onKeyDown); var imageContent; var headerContent; var bodyContent; var footerContent; var closeButton; if (illustrationImage && illustrationImage.src) { imageContent = (React.createElement("div", { className: classNames.imageContent }, React.createElement(Image_1.Image, tslib_1.__assign({}, illustrationImage)))); } if (headline) { var HeaderWrapperAs = typeof headline === 'string' ? 'p' : 'div'; headerContent = (React.createElement("div", { className: classNames.header }, React.createElement(HeaderWrapperAs, { role: "heading", "aria-level": 3, className: classNames.headline, id: ariaLabelledBy }, headline))); } if (props.children) { var BodyContentWrapperAs = typeof props.children === 'string' ? 'p' : 'div'; bodyContent = (React.createElement("div", { className: classNames.body }, React.createElement(BodyContentWrapperAs, { className: classNames.subText, id: ariaDescribedBy }, props.children))); } if (primaryButtonProps || secondaryButtonProps || customFooterContent) { footerContent = (React.createElement(Stack_1.Stack, { className: classNames.footer, horizontal: true, horizontalAlign: customFooterContent ? 'space-between' : 'end' }, React.createElement(Stack_1.Stack.Item, { align: "center" }, React.createElement("span", null, customFooterContent)), React.createElement(Stack_1.Stack.Item, null, primaryButtonProps && React.createElement(Button_1.PrimaryButton, tslib_1.__assign({}, primaryButtonProps, { className: classNames.primaryButton })), secondaryButtonProps && React.createElement(Button_1.DefaultButton, tslib_1.__assign({}, secondaryButtonProps, { className: classNames.secondaryButton }))))); } if (hasCloseButton) { closeButton = (React.createElement(Button_1.IconButton, { className: classNames.closeButton, iconProps: { iconName: 'Cancel' }, ariaLabel: closeButtonAriaLabel, onClick: onDismiss })); } useComponentRef(props.componentRef, rootElementRef); return (React.createElement("div", { className: classNames.content, ref: mergedRootRef, role: 'dialog', tabIndex: -1, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "data-is-focusable": true }, imageContent, React.createElement(FocusTrapZone_1.FocusTrapZone, tslib_1.__assign({ isClickableOutsideFocusTrap: true }, focusTrapZoneProps), React.createElement("div", { className: classNames.bodyContent }, headerContent, bodyContent, footerContent, closeButton)))); }); //# sourceMappingURL=TeachingBubbleContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TeachingBubbleContent = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TeachingBubbleContent_base_1 = __webpack_require__(/*! ./TeachingBubbleContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.base.js"); var TeachingBubble_styles_1 = __webpack_require__(/*! ./TeachingBubble.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.styles.js"); exports.TeachingBubbleContent = (0, Utilities_1.styled)(TeachingBubbleContent_base_1.TeachingBubbleContentBase, TeachingBubble_styles_1.getStyles, undefined, { scope: 'TeachingBubbleContent' }); //# sourceMappingURL=TeachingBubbleContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/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__(/*! ./TeachingBubble */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TeachingBubble.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TeachingBubble.types */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubble.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TeachingBubbleContent */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TeachingBubbleContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/TeachingBubbleContent.base.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Text = void 0; var foundation_legacy_1 = __webpack_require__(/*! @fluentui/foundation-legacy */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js"); var Text_view_1 = __webpack_require__(/*! ./Text.view */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.view.js"); var Text_styles_1 = __webpack_require__(/*! ./Text.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.styles.js"); exports.Text = (0, foundation_legacy_1.createComponent)(Text_view_1.TextView, { displayName: 'Text', styles: Text_styles_1.TextStyles, }); exports["default"] = exports.Text; //# sourceMappingURL=Text.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.styles.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.styles.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TextStyles = void 0; var TextStyles = function (props, theme) { var as = props.as, className = props.className, block = props.block, nowrap = props.nowrap, variant = props.variant; var fonts = theme.fonts, semanticColors = theme.semanticColors; var variantObject = fonts[variant || 'medium']; return { root: [ variantObject, { color: variantObject.color || semanticColors.bodyText, display: block ? (as === 'td' ? 'table-cell' : 'block') : 'inline', mozOsxFontSmoothing: variantObject.MozOsxFontSmoothing, webkitFontSmoothing: variantObject.WebkitFontSmoothing, }, nowrap && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', }, className, ], }; }; exports.TextStyles = TextStyles; //# sourceMappingURL=Text.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.types.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.types.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Text.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.view.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.view.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TextView = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** @jsxRuntime classic */ /** @jsx withSlots */ var foundation_legacy_1 = __webpack_require__(/*! @fluentui/foundation-legacy */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TextView = function (props) { // eslint-disable-next-line eqeqeq if (props.children == null) { return null; } var block = props.block, className = props.className, _a = props.as, RootType = _a === void 0 ? 'span' : _a, variant = props.variant, nowrap = props.nowrap, rest = tslib_1.__rest(props, ["block", "className", "as", "variant", "nowrap"]); var Slots = (0, foundation_legacy_1.getSlots)(props, { root: RootType, }); return (0, foundation_legacy_1.withSlots)(Slots.root, tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(rest, Utilities_1.htmlElementProperties))); }; exports.TextView = TextView; //# sourceMappingURL=Text.view.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Text/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Text/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__(/*! ./Text */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Text.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Text.view */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.view.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Text.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/Text.styles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/MaskedTextField.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/MaskedTextField.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MaskedTextField = exports.DEFAULT_MASK_CHAR = 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 TextField_1 = __webpack_require__(/*! ../TextField */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var inputMask_1 = __webpack_require__(/*! ./inputMask */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/inputMask.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var COMPONENT_NAME = 'MaskedTextField'; var useComponentRef = function (componentRef, internalState, textField) { React.useImperativeHandle(componentRef, function () { return ({ get value() { var value = ''; for (var i = 0; i < internalState.maskCharData.length; i++) { if (!internalState.maskCharData[i].value) { return undefined; } value += internalState.maskCharData[i].value; } return value; }, get selectionStart() { return textField.current && textField.current.selectionStart !== null ? textField.current.selectionStart : -1; }, get selectionEnd() { return textField.current && textField.current.selectionEnd ? textField.current.selectionEnd : -1; }, focus: function () { textField.current && textField.current.focus(); }, blur: function () { textField.current && textField.current.blur(); }, select: function () { textField.current && textField.current.select(); }, setSelectionStart: function (value) { textField.current && textField.current.setSelectionStart(value); }, setSelectionEnd: function (value) { textField.current && textField.current.setSelectionEnd(value); }, setSelectionRange: function (start, end) { textField.current && textField.current.setSelectionRange(start, end); }, }); }, [internalState, textField]); }; exports.DEFAULT_MASK_CHAR = '_'; exports.MaskedTextField = React.forwardRef(function (props, ref) { var textField = React.useRef(null); var componentRef = props.componentRef, onFocus = props.onFocus, onBlur = props.onBlur, onMouseDown = props.onMouseDown, onMouseUp = props.onMouseUp, onChange = props.onChange, onPaste = props.onPaste, onKeyDown = props.onKeyDown, mask = props.mask, _a = props.maskChar, maskChar = _a === void 0 ? exports.DEFAULT_MASK_CHAR : _a, _b = props.maskFormat, maskFormat = _b === void 0 ? inputMask_1.DEFAULT_MASK_FORMAT_CHARS : _b, value = props.value; var internalState = (0, react_hooks_1.useConst)(function () { return ({ maskCharData: (0, inputMask_1.parseMask)(mask, maskFormat), isFocused: false, moveCursorOnMouseUp: false, changeSelectionData: null, }); }); /** The index into the rendered value of the first unfilled format character */ var _c = React.useState(), maskCursorPosition = _c[0], setMaskCursorPosition = _c[1]; /** * The mask string formatted with the input value. * This is what is displayed inside the TextField * @example * `Phone Number: 12_ - 4___` */ var _d = React.useState(function () { return (0, inputMask_1.getMaskDisplay)(mask, internalState.maskCharData, maskChar); }), displayValue = _d[0], setDisplayValue = _d[1]; var setValue = React.useCallback(function (newValue) { var valueIndex = 0; var charDataIndex = 0; while (valueIndex < newValue.length && charDataIndex < internalState.maskCharData.length) { // Test if the next character in the new value fits the next format character var testVal = newValue[valueIndex]; if (internalState.maskCharData[charDataIndex].format.test(testVal)) { internalState.maskCharData[charDataIndex].value = testVal; charDataIndex++; } valueIndex++; } }, [internalState]); var handleFocus = React.useCallback(function (ev) { onFocus === null || onFocus === void 0 ? void 0 : onFocus(ev); internalState.isFocused = true; // Move the cursor position to the leftmost unfilled position for (var i = 0; i < internalState.maskCharData.length; i++) { if (!internalState.maskCharData[i].value) { setMaskCursorPosition(internalState.maskCharData[i].displayIndex); break; } } }, [internalState, onFocus]); var handleBlur = React.useCallback(function (ev) { onBlur === null || onBlur === void 0 ? void 0 : onBlur(ev); internalState.isFocused = false; internalState.moveCursorOnMouseUp = true; }, [internalState, onBlur]); var handleMouseDown = React.useCallback(function (ev) { onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(ev); if (!internalState.isFocused) { internalState.moveCursorOnMouseUp = true; } }, [internalState, onMouseDown]); var handleMouseUp = React.useCallback(function (ev) { onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(ev); // Move the cursor on mouseUp after focusing the textField if (internalState.moveCursorOnMouseUp) { internalState.moveCursorOnMouseUp = false; // Move the cursor position to the rightmost unfilled position for (var i = 0; i < internalState.maskCharData.length; i++) { if (!internalState.maskCharData[i].value) { setMaskCursorPosition(internalState.maskCharData[i].displayIndex); break; } } } }, [internalState, onMouseUp]); var handleInputChange = React.useCallback(function (ev, inputValue) { if (internalState.changeSelectionData === null && textField.current) { internalState.changeSelectionData = { changeType: 'default', selectionStart: textField.current.selectionStart !== null ? textField.current.selectionStart : -1, selectionEnd: textField.current.selectionEnd !== null ? textField.current.selectionEnd : -1, }; } if (!internalState.changeSelectionData) { return; } // The initial value of cursorPos does not matter var cursorPos = 0; var _a = internalState.changeSelectionData, changeType = _a.changeType, selectionStart = _a.selectionStart, selectionEnd = _a.selectionEnd; if (changeType === 'textPasted') { var charsSelected = selectionEnd - selectionStart; var charCount = inputValue.length + charsSelected - displayValue.length; var startPos = selectionStart; // eslint-disable-next-line deprecation/deprecation var pastedString = inputValue.substr(startPos, charCount); // Clear any selected characters if (charsSelected) { internalState.maskCharData = (0, inputMask_1.clearRange)(internalState.maskCharData, selectionStart, charsSelected); } cursorPos = (0, inputMask_1.insertString)(internalState.maskCharData, startPos, pastedString); } else if (changeType === 'delete' || changeType === 'backspace') { // isDel is true If the characters are removed LTR, otherwise RTL var isDel = changeType === 'delete'; var charCount = selectionEnd - selectionStart; if (charCount) { // charCount is > 0 if range was deleted internalState.maskCharData = (0, inputMask_1.clearRange)(internalState.maskCharData, selectionStart, charCount); cursorPos = (0, inputMask_1.getRightFormatIndex)(internalState.maskCharData, selectionStart); } else { // If charCount === 0, there was no selection and a single character was deleted if (isDel) { internalState.maskCharData = (0, inputMask_1.clearNext)(internalState.maskCharData, selectionStart); cursorPos = (0, inputMask_1.getRightFormatIndex)(internalState.maskCharData, selectionStart); } else { internalState.maskCharData = (0, inputMask_1.clearPrev)(internalState.maskCharData, selectionStart); cursorPos = (0, inputMask_1.getLeftFormatIndex)(internalState.maskCharData, selectionStart); } } } else if (inputValue.length > displayValue.length) { // This case is if the user added characters var charCount = inputValue.length - displayValue.length; var startPos = selectionEnd - charCount; // eslint-disable-next-line deprecation/deprecation var enteredString = inputValue.substr(startPos, charCount); cursorPos = (0, inputMask_1.insertString)(internalState.maskCharData, startPos, enteredString); } else if (inputValue.length <= displayValue.length) { /** * This case is reached only if the user has selected a block of 1 or more * characters and input a character replacing the characters they've selected. */ var charCount = 1; var selectCount = displayValue.length + charCount - inputValue.length; var startPos = selectionEnd - charCount; // eslint-disable-next-line deprecation/deprecation var enteredString = inputValue.substr(startPos, charCount); // Clear the selected range internalState.maskCharData = (0, inputMask_1.clearRange)(internalState.maskCharData, startPos, selectCount); // Insert the printed character cursorPos = (0, inputMask_1.insertString)(internalState.maskCharData, startPos, enteredString); } internalState.changeSelectionData = null; var newValue = (0, inputMask_1.getMaskDisplay)(mask, internalState.maskCharData, maskChar); setDisplayValue(newValue); setMaskCursorPosition(cursorPos); // Perform onChange after input has been processed. Return value is expected to be the displayed text onChange === null || onChange === void 0 ? void 0 : onChange(ev, newValue); }, [displayValue.length, internalState, mask, maskChar, onChange]); var handleKeyDown = React.useCallback(function (ev) { onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(ev); internalState.changeSelectionData = null; if (textField.current && textField.current.value) { // eslint-disable-next-line deprecation/deprecation var keyCode = ev.keyCode, ctrlKey = ev.ctrlKey, metaKey = ev.metaKey; // Ignore ctrl and meta keydown if (ctrlKey || metaKey) { return; } // On backspace or delete, store the selection and the keyCode if (keyCode === Utilities_1.KeyCodes.backspace || keyCode === Utilities_1.KeyCodes.del) { var selectionStart = ev.target.selectionStart; var selectionEnd = ev.target.selectionEnd; // Check if backspace or delete press is valid. if (!(keyCode === Utilities_1.KeyCodes.backspace && selectionEnd && selectionEnd > 0) && !(keyCode === Utilities_1.KeyCodes.del && selectionStart !== null && selectionStart < textField.current.value.length)) { return; } internalState.changeSelectionData = { changeType: keyCode === Utilities_1.KeyCodes.backspace ? 'backspace' : 'delete', selectionStart: selectionStart !== null ? selectionStart : -1, selectionEnd: selectionEnd !== null ? selectionEnd : -1, }; } } }, [internalState, onKeyDown]); var handlePaste = React.useCallback(function (ev) { onPaste === null || onPaste === void 0 ? void 0 : onPaste(ev); var selectionStart = ev.target.selectionStart; var selectionEnd = ev.target.selectionEnd; // Store the paste selection range internalState.changeSelectionData = { changeType: 'textPasted', selectionStart: selectionStart !== null ? selectionStart : -1, selectionEnd: selectionEnd !== null ? selectionEnd : -1, }; }, [internalState, onPaste]); // Updates the display value if mask or value props change. React.useEffect(function () { internalState.maskCharData = (0, inputMask_1.parseMask)(mask, maskFormat); value !== undefined && setValue(value); setDisplayValue((0, inputMask_1.getMaskDisplay)(mask, internalState.maskCharData, maskChar)); // eslint-disable-next-line react-hooks/exhaustive-deps -- Should only update when mask or value changes. }, [mask, value]); // Run before browser paint to avoid flickering from selection reset. (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { // Move the cursor to position before paint. if (maskCursorPosition !== undefined && textField.current) { textField.current.setSelectionRange(maskCursorPosition, maskCursorPosition); } }, [maskCursorPosition]); // Run after browser paint. React.useEffect(function () { // Move the cursor to the start of the mask format after values update. if (internalState.isFocused && maskCursorPosition !== undefined && textField.current) { textField.current.setSelectionRange(maskCursorPosition, maskCursorPosition); } }); useComponentRef(componentRef, internalState, textField); return (React.createElement(TextField_1.TextField, tslib_1.__assign({}, props, { elementRef: ref, onFocus: handleFocus, onBlur: handleBlur, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onChange: handleInputChange, onKeyDown: handleKeyDown, onPaste: handlePaste, value: displayValue || '', componentRef: textField }))); }); exports.MaskedTextField.displayName = COMPONENT_NAME; //# sourceMappingURL=MaskedTextField.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/inputMask.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/inputMask.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.insertString = exports.clearPrev = exports.clearNext = exports.clearRange = exports.getLeftFormatIndex = exports.getRightFormatIndex = exports.getMaskDisplay = exports.parseMask = exports.DEFAULT_MASK_FORMAT_CHARS = void 0; exports.DEFAULT_MASK_FORMAT_CHARS = { '9': /[0-9]/, a: /[a-zA-Z]/, '*': /[a-zA-Z0-9]/, }; /** * Takes in the mask string and the formatCharacters and returns an array of MaskValues * Example: * mask = 'Phone Number: (999) - 9999' * return = [ * { value: undefined, displayIndex: 16, format: /[0-9]/ }, * { value: undefined, displayIndex: 17, format: /[0-9]/ }, * { value: undefined, displayIndex: 18, format: /[0-9]/ }, * { value: undefined, displayIndex: 22, format: /[0-9]/ }, * ] * * @param mask The string use to define the format of the displayed maskedValue. * @param formatChars An object defining how certain characters in the mask should accept input. */ function parseMask(mask, formatChars) { if (formatChars === void 0) { formatChars = exports.DEFAULT_MASK_FORMAT_CHARS; } if (!mask) { return []; } var maskCharData = []; // Count the escape characters in the mask string. var escapedChars = 0; for (var i = 0; i + escapedChars < mask.length; i++) { var maskChar = mask.charAt(i + escapedChars); if (maskChar === '\\') { escapedChars++; } else { // Check if the maskChar is a format character. var maskFormat = formatChars[maskChar]; if (maskFormat) { maskCharData.push({ /** * Do not add escapedChars to the displayIndex. * The index refers to a position in the mask's displayValue. * Since the backslashes don't appear in the displayValue, * we do not add them to the charData displayIndex. */ displayIndex: i, format: maskFormat, }); } } } return maskCharData; } exports.parseMask = parseMask; /** * Takes in the mask string, an array of MaskValues, and the maskCharacter * returns the mask string formatted with the input values and maskCharacter. * If the maskChar is undefined, the maskDisplay is truncated to the last filled format character. * Example: * mask = 'Phone Number: (999) 999 - 9999' * maskCharData = '12345' * maskChar = '_' * return = 'Phone Number: (123) 45_ - ___' * * Example: * mask = 'Phone Number: (999) 999 - 9999' * value = '12345' * maskChar = undefined * return = 'Phone Number: (123) 45' * * @param mask The string use to define the format of the displayed maskedValue. * @param maskCharData The input values to insert into the mask string for displaying. * @param maskChar? A character to display in place of unfilled mask format characters. */ function getMaskDisplay(mask, maskCharData, maskChar) { var maskDisplay = mask; if (!maskDisplay) { return ''; } // Remove all backslashes maskDisplay = maskDisplay.replace(/\\/g, ''); // lastDisplayIndex is is used to truncate the string if necessary. var lastDisplayIndex = 0; if (maskCharData.length > 0) { lastDisplayIndex = maskCharData[0].displayIndex - 1; } /** * For each input value, replace the character in the maskDisplay with the value. * If there is no value set for the format character, use the maskChar. */ for (var _i = 0, maskCharData_1 = maskCharData; _i < maskCharData_1.length; _i++) { var charData = maskCharData_1[_i]; var nextChar = ' '; if (charData.value) { nextChar = charData.value; if (charData.displayIndex > lastDisplayIndex) { lastDisplayIndex = charData.displayIndex; } } else { if (maskChar) { nextChar = maskChar; } } // Insert the character into the maskdisplay at its corresponding index maskDisplay = maskDisplay.slice(0, charData.displayIndex) + nextChar + maskDisplay.slice(charData.displayIndex + 1); } // Cut off all mask characters after the last filled format value if (!maskChar) { maskDisplay = maskDisplay.slice(0, lastDisplayIndex + 1); } return maskDisplay; } exports.getMaskDisplay = getMaskDisplay; /** * Get the next format index right of or at a specified index. * If no index exists, returns the rightmost index. * @param maskCharData * @param index */ function getRightFormatIndex(maskCharData, index) { for (var i = 0; i < maskCharData.length; i++) { if (maskCharData[i].displayIndex >= index) { return maskCharData[i].displayIndex; } } return maskCharData[maskCharData.length - 1].displayIndex; } exports.getRightFormatIndex = getRightFormatIndex; /** * Get the next format index left of a specified index. * If no index exists, returns the leftmost index. * @param maskCharData * @param index */ function getLeftFormatIndex(maskCharData, index) { for (var i = maskCharData.length - 1; i >= 0; i--) { if (maskCharData[i].displayIndex < index) { return maskCharData[i].displayIndex; } } return maskCharData[0].displayIndex; } exports.getLeftFormatIndex = getLeftFormatIndex; /** * Deletes all values in maskCharData with a displayIndex that falls inside the specified range. * maskCharData is modified inline and also returned. * @param maskCharData * @param selectionStart * @param selectionCount */ function clearRange(maskCharData, selectionStart, selectionCount) { for (var i = 0; i < maskCharData.length; i++) { if (maskCharData[i].displayIndex >= selectionStart) { if (maskCharData[i].displayIndex >= selectionStart + selectionCount) { break; } maskCharData[i].value = undefined; } } return maskCharData; } exports.clearRange = clearRange; /** * Deletes the input character at or after a specified index and returns the new array of charData * maskCharData is modified inline and also returned. * @param maskCharData * @param selectionStart */ function clearNext(maskCharData, selectionStart) { for (var i = 0; i < maskCharData.length; i++) { if (maskCharData[i].displayIndex >= selectionStart) { maskCharData[i].value = undefined; break; } } return maskCharData; } exports.clearNext = clearNext; /** * Deletes the input character before a specified index and returns the new array of charData * maskCharData is modified inline and also returned. * @param maskCharData * @param selectionStart */ function clearPrev(maskCharData, selectionStart) { for (var i = maskCharData.length - 1; i >= 0; i--) { if (maskCharData[i].displayIndex < selectionStart) { maskCharData[i].value = undefined; break; } } return maskCharData; } exports.clearPrev = clearPrev; /** * Deletes all values in maskCharData with a displayIndex that falls inside the specified range. * Modifies the maskCharData inplace with the passed string and returns the display index of the * next format character after the inserted string. * @param maskCharData * @param selectionStart * @param selectionCount * @return The displayIndex of the next format character */ function insertString(maskCharData, selectionStart, newString) { var stringIndex = 0; var nextIndex = 0; var isStringInserted = false; // Iterate through _maskCharData finding values with a displayIndex after the specified range start for (var i = 0; i < maskCharData.length && stringIndex < newString.length; i++) { if (maskCharData[i].displayIndex >= selectionStart) { isStringInserted = true; nextIndex = maskCharData[i].displayIndex; // Find the next character in the newString that matches the format while (stringIndex < newString.length) { // If the character matches the format regexp, set the maskCharData to the new character if (maskCharData[i].format.test(newString.charAt(stringIndex))) { maskCharData[i].value = newString.charAt(stringIndex++); // Set the nextIndex to the display index of the next mask format character. if (i + 1 < maskCharData.length) { nextIndex = maskCharData[i + 1].displayIndex; } else { nextIndex++; } break; } stringIndex++; } } } return isStringInserted ? nextIndex : selectionStart; } exports.insertString = insertString; //# sourceMappingURL=inputMask.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TextFieldBase = 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 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 DEFAULT_STATE_VALUE = ''; var COMPONENT_NAME = 'TextField'; var REVEAL_ICON_NAME = 'RedEye'; var HIDE_ICON_NAME = 'Hide'; var TextFieldBase = /** @class */ (function (_super) { tslib_1.__extends(TextFieldBase, _super); function TextFieldBase(props) { var _this = _super.call(this, props) || this; _this._textElement = React.createRef(); _this._onFocus = function (ev) { if (_this.props.onFocus) { _this.props.onFocus(ev); } _this.setState({ isFocused: true }, function () { if (_this.props.validateOnFocusIn) { _this._validate(_this.value); } }); }; _this._onBlur = function (ev) { if (_this.props.onBlur) { _this.props.onBlur(ev); } _this.setState({ isFocused: false }, function () { if (_this.props.validateOnFocusOut) { _this._validate(_this.value); } }); }; _this._onRenderLabel = function (props) { var label = props.label, required = props.required; // IProcessedStyleSet definition requires casting for what Label expects as its styles prop var labelStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.label : undefined; if (label) { return (React.createElement(Label_1.Label, { required: required, htmlFor: _this._id, styles: labelStyles, disabled: props.disabled, id: _this._labelId }, props.label)); } return null; }; _this._onRenderDescription = function (props) { if (props.description) { return React.createElement("span", { className: _this._classNames.description }, props.description); } return null; }; _this._onRevealButtonClick = function (event) { _this.setState(function (prevState) { return ({ isRevealingPassword: !prevState.isRevealingPassword }); }); }; _this._onInputChange = function (event) { // Previously, we needed to call both onInput and onChange due to some weird IE/React issues, // which have *probably* been fixed now: // - https://github.com/microsoft/fluentui/issues/744 (likely fixed) // - https://github.com/microsoft/fluentui/issues/824 (confirmed fixed) var _a, _b; // TODO (Fabric 8?) - Switch to calling only onChange. This switch is pretty disruptive for // tests (ours and maybe consumers' too), so it seemed best to do the switch in a major bump. var element = event.target; var value = element.value; // Ignore this event if any of the following are true: // - the value is undefined (in case one of the IE bugs comes back) // - it's a duplicate event (important since onInputChange is called twice per actual user event) // - it's the same as the previous value var previousValue = _getValue(_this.props, _this.state) || ''; if (value === undefined || value === _this._lastChangeValue || value === previousValue) { _this._lastChangeValue = undefined; return; } _this._lastChangeValue = value; (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, event, value); if (!_this._isControlled) { // ONLY if this is an uncontrolled component, update the displayed value. // (Controlled components must update the `value` prop from `onChange`.) _this.setState({ uncontrolledValue: value }); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); if (true) { (0, Utilities_1.warnMutuallyExclusive)(COMPONENT_NAME, props, { errorMessage: 'onGetErrorMessage', }); } _this._fallbackId = (0, Utilities_1.getId)(COMPONENT_NAME); _this._descriptionId = (0, Utilities_1.getId)(COMPONENT_NAME + 'Description'); _this._labelId = (0, Utilities_1.getId)(COMPONENT_NAME + 'Label'); _this._prefixId = (0, Utilities_1.getId)(COMPONENT_NAME + 'Prefix'); _this._suffixId = (0, Utilities_1.getId)(COMPONENT_NAME + 'Suffix'); _this._warnControlledUsage(); var _a = props.defaultValue, defaultValue = _a === void 0 ? DEFAULT_STATE_VALUE : _a; if (typeof defaultValue === 'number') { // This isn't allowed per the props, but happens anyway. defaultValue = String(defaultValue); } _this.state = { uncontrolledValue: _this._isControlled ? undefined : defaultValue, isFocused: false, errorMessage: '', }; _this._delayedValidate = _this._async.debounce(_this._validate, _this.props.deferredValidationTime); _this._lastValidation = 0; return _this; } Object.defineProperty(TextFieldBase.prototype, "value", { /** * Gets the current value of the text field. */ get: function () { return _getValue(this.props, this.state); }, enumerable: false, configurable: true }); TextFieldBase.prototype.componentDidMount = function () { this._adjustInputHeight(); if (this.props.validateOnLoad) { this._validate(this.value); } }; TextFieldBase.prototype.componentWillUnmount = function () { this._async.dispose(); }; TextFieldBase.prototype.getSnapshotBeforeUpdate = function (prevProps, prevState) { return { selection: [this.selectionStart, this.selectionEnd], }; }; TextFieldBase.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) { var props = this.props; var _a = (snapshot || {}).selection, selection = _a === void 0 ? [null, null] : _a; var start = selection[0], end = selection[1]; if (!!prevProps.multiline !== !!props.multiline && prevState.isFocused) { // The text field has just changed between single- and multi-line, so we need to reset focus // and selection/cursor. this.focus(); if (start !== null && end !== null && start >= 0 && end >= 0) { this.setSelectionRange(start, end); } } if (prevProps.value !== props.value) { // Only if the value in props changed, reset the record of the last value seen by a // change/input event (don't do this if the value in state changed, since at least in tests // the state update may happen before the second event in a series) this._lastChangeValue = undefined; } var prevValue = _getValue(prevProps, prevState); var value = this.value; if (prevValue !== value) { // Handle controlled/uncontrolled warnings and status this._warnControlledUsage(prevProps); // Clear error message if needed // TODO: is there any way to do this without an extra render? if (this.state.errorMessage && !props.errorMessage) { this.setState({ errorMessage: '' }); } // Adjust height if needed based on new value this._adjustInputHeight(); // TODO: #5875 added logic to trigger validation in componentWillReceiveProps and other places. // This seems a bit odd and hard to integrate with the new approach. // (Starting to think we should just put the validation logic in a separate wrapper component...?) if (_shouldValidateAllChanges(props)) { this._delayedValidate(value); } } }; TextFieldBase.prototype.render = function () { var _a = this.props, borderless = _a.borderless, className = _a.className, disabled = _a.disabled, invalid = _a.invalid, iconProps = _a.iconProps, inputClassName = _a.inputClassName, label = _a.label, multiline = _a.multiline, required = _a.required, underlined = _a.underlined, prefix = _a.prefix, resizable = _a.resizable, suffix = _a.suffix, theme = _a.theme, styles = _a.styles, autoAdjustHeight = _a.autoAdjustHeight, canRevealPassword = _a.canRevealPassword, revealPasswordAriaLabel = _a.revealPasswordAriaLabel, type = _a.type, _b = _a.onRenderPrefix, onRenderPrefix = _b === void 0 ? this._onRenderPrefix : _b, _c = _a.onRenderSuffix, onRenderSuffix = _c === void 0 ? this._onRenderSuffix : _c, _d = _a.onRenderLabel, onRenderLabel = _d === void 0 ? this._onRenderLabel : _d, _e = _a.onRenderDescription, onRenderDescription = _e === void 0 ? this._onRenderDescription : _e; var _f = this.state, isFocused = _f.isFocused, isRevealingPassword = _f.isRevealingPassword; var errorMessage = this._errorMessage; var isInvalid = typeof invalid === 'boolean' ? invalid : !!errorMessage; var hasRevealButton = !!canRevealPassword && type === 'password' && _browserNeedsRevealButton(); var classNames = (this._classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, focused: isFocused, required: required, multiline: multiline, hasLabel: !!label, hasErrorMessage: isInvalid, borderless: borderless, resizable: resizable, hasIcon: !!iconProps, underlined: underlined, inputClassName: inputClassName, autoAdjustHeight: autoAdjustHeight, hasRevealButton: hasRevealButton, })); return ( // eslint-disable-next-line deprecation/deprecation React.createElement("div", { ref: this.props.elementRef, className: classNames.root }, React.createElement("div", { className: classNames.wrapper }, onRenderLabel(this.props, this._onRenderLabel), React.createElement("div", { className: classNames.fieldGroup }, (prefix !== undefined || this.props.onRenderPrefix) && (React.createElement("div", { className: classNames.prefix, id: this._prefixId }, onRenderPrefix(this.props, this._onRenderPrefix))), multiline ? this._renderTextArea() : this._renderInput(), iconProps && React.createElement(Icon_1.Icon, tslib_1.__assign({ className: classNames.icon }, iconProps)), hasRevealButton && ( // Explicitly set type="button" since the default button type within a form is "submit" React.createElement("button", { "aria-label": revealPasswordAriaLabel, className: classNames.revealButton, onClick: this._onRevealButtonClick, "aria-pressed": !!isRevealingPassword, type: "button" }, React.createElement("span", { className: classNames.revealSpan }, React.createElement(Icon_1.Icon, { className: classNames.revealIcon, iconName: isRevealingPassword ? HIDE_ICON_NAME : REVEAL_ICON_NAME })))), (suffix !== undefined || this.props.onRenderSuffix) && (React.createElement("div", { className: classNames.suffix, id: this._suffixId }, onRenderSuffix(this.props, this._onRenderSuffix))))), this._isDescriptionAvailable && (React.createElement("span", { id: this._descriptionId }, onRenderDescription(this.props, this._onRenderDescription), errorMessage && (React.createElement("div", { role: "alert" }, React.createElement(Utilities_1.DelayedRender, null, this._renderErrorMessage()))))))); }; /** * Sets focus on the text field */ TextFieldBase.prototype.focus = function () { if (this._textElement.current) { this._textElement.current.focus(); } }; /** * Blurs the text field. */ TextFieldBase.prototype.blur = function () { if (this._textElement.current) { this._textElement.current.blur(); } }; /** * Selects the text field */ TextFieldBase.prototype.select = function () { if (this._textElement.current) { this._textElement.current.select(); } }; /** * Sets the selection start of the text field to a specified value */ TextFieldBase.prototype.setSelectionStart = function (value) { if (this._textElement.current) { this._textElement.current.selectionStart = value; } }; /** * Sets the selection end of the text field to a specified value */ TextFieldBase.prototype.setSelectionEnd = function (value) { if (this._textElement.current) { this._textElement.current.selectionEnd = value; } }; Object.defineProperty(TextFieldBase.prototype, "selectionStart", { /** * Gets the selection start of the text field */ get: function () { return this._textElement.current ? this._textElement.current.selectionStart : -1; }, enumerable: false, configurable: true }); Object.defineProperty(TextFieldBase.prototype, "selectionEnd", { /** * Gets the selection end of the text field */ get: function () { return this._textElement.current ? this._textElement.current.selectionEnd : -1; }, enumerable: false, configurable: true }); /** * Sets the start and end positions of a selection in a text field. * @param start - Index of the start of the selection. * @param end - Index of the end of the selection. */ TextFieldBase.prototype.setSelectionRange = function (start, end) { if (this._textElement.current) { this._textElement.current.setSelectionRange(start, end); } }; TextFieldBase.prototype._warnControlledUsage = function (prevProps) { // Show warnings if props are being used in an invalid way (0, Utilities_1.warnControlledUsage)({ componentId: this._id, componentName: COMPONENT_NAME, props: this.props, oldProps: prevProps, valueProp: 'value', defaultValueProp: 'defaultValue', onChangeProp: 'onChange', readOnlyProp: 'readOnly', }); if (this.props.value === null && !this._hasWarnedNullValue) { this._hasWarnedNullValue = true; (0, Utilities_1.warn)("Warning: 'value' prop on '".concat(COMPONENT_NAME, "' should not be null. Consider using an ") + 'empty string to clear the component or undefined to indicate an uncontrolled component.'); } }; Object.defineProperty(TextFieldBase.prototype, "_id", { /** Returns `props.id` if available, or a fallback if not. */ get: function () { return this.props.id || this._fallbackId; }, enumerable: false, configurable: true }); Object.defineProperty(TextFieldBase.prototype, "_isControlled", { get: function () { return (0, Utilities_1.isControlled)(this.props, 'value'); }, enumerable: false, configurable: true }); TextFieldBase.prototype._onRenderPrefix = function (props) { var prefix = props.prefix; return React.createElement("span", { style: { paddingBottom: '1px' } }, prefix); }; TextFieldBase.prototype._onRenderSuffix = function (props) { var suffix = props.suffix; return React.createElement("span", { style: { paddingBottom: '1px' } }, suffix); }; Object.defineProperty(TextFieldBase.prototype, "_errorMessage", { /** * Current error message from either `props.errorMessage` or the result of `props.onGetErrorMessage`. * * - If there is no validation error or we have not validated the input value, errorMessage is an empty string. * - If we have done the validation and there is validation error, errorMessage is the validation error message. */ get: function () { var _a = this.props.errorMessage, errorMessage = _a === void 0 ? this.state.errorMessage : _a; return errorMessage || ''; }, enumerable: false, configurable: true }); /** * Renders error message based on the type of the message. * * - If error message is string, it will render using the built in styles. * - If error message is an element, user has full control over how it's rendered. */ TextFieldBase.prototype._renderErrorMessage = function () { var errorMessage = this._errorMessage; return errorMessage ? (typeof errorMessage === 'string' ? (React.createElement("p", { className: this._classNames.errorMessage }, React.createElement("span", { "data-automation-id": "error-message" }, errorMessage))) : (React.createElement("div", { className: this._classNames.errorMessage, "data-automation-id": "error-message" }, errorMessage))) : null; }; Object.defineProperty(TextFieldBase.prototype, "_isDescriptionAvailable", { /** * If a custom description render function is supplied then treat description as always available. * Otherwise defer to the presence of description or error message text. */ get: function () { var props = this.props; return !!(props.onRenderDescription || props.description || this._errorMessage); }, enumerable: false, configurable: true }); TextFieldBase.prototype._renderTextArea = function () { var _a = this.props.invalid, invalid = _a === void 0 ? !!this._errorMessage : _a; var textAreaProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.textAreaProperties, ['defaultValue']); var ariaLabelledBy = this.props['aria-labelledby'] || (this.props.label ? this._labelId : undefined); return (React.createElement("textarea", tslib_1.__assign({ id: this._id }, textAreaProps, { ref: this._textElement, value: this.value || '', onInput: this._onInputChange, onChange: this._onInputChange, className: this._classNames.field, "aria-labelledby": ariaLabelledBy, "aria-describedby": this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'], "aria-invalid": invalid, "aria-label": this.props.ariaLabel, readOnly: this.props.readOnly, onFocus: this._onFocus, onBlur: this._onBlur }))); }; TextFieldBase.prototype._renderInput = function () { var _a = this.props, ariaLabel = _a.ariaLabel, _b = _a.invalid, invalid = _b === void 0 ? !!this._errorMessage : _b, onRenderPrefix = _a.onRenderPrefix, onRenderSuffix = _a.onRenderSuffix, prefix = _a.prefix, suffix = _a.suffix, _c = _a.type, type = _c === void 0 ? 'text' : _c, label = _a.label; // build aria-labelledby list from label, prefix, and suffix var labelIds = []; label && labelIds.push(this._labelId); (prefix !== undefined || onRenderPrefix) && labelIds.push(this._prefixId); (suffix !== undefined || onRenderSuffix) && labelIds.push(this._suffixId); var inputProps = tslib_1.__assign(tslib_1.__assign({ type: this.state.isRevealingPassword ? 'text' : type, id: this._id }, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.inputProperties, ['defaultValue', 'type'])), { 'aria-labelledby': this.props['aria-labelledby'] || (labelIds.length > 0 ? labelIds.join(' ') : undefined), ref: this._textElement, value: this.value || '', onInput: this._onInputChange, onChange: this._onInputChange, className: this._classNames.field, 'aria-label': ariaLabel, 'aria-describedby': this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'], 'aria-invalid': invalid, onFocus: this._onFocus, onBlur: this._onBlur }); var defaultRender = function (updatedInputProps) { return React.createElement("input", tslib_1.__assign({}, updatedInputProps)); }; var onRenderInput = this.props.onRenderInput || defaultRender; return onRenderInput(inputProps, defaultRender); }; TextFieldBase.prototype._validate = function (value) { var _this = this; // In case _validate is called again while validation promise is executing if (this._latestValidateValue === value && _shouldValidateAllChanges(this.props)) { return; } this._latestValidateValue = value; var onGetErrorMessage = this.props.onGetErrorMessage; var result = onGetErrorMessage && onGetErrorMessage(value || ''); if (result !== undefined) { if (typeof result === 'string' || !('then' in result)) { this.setState({ errorMessage: result }); this._notifyAfterValidate(value, result); } else { var currentValidation_1 = ++this._lastValidation; result.then(function (errorMessage) { if (currentValidation_1 === _this._lastValidation) { _this.setState({ errorMessage: errorMessage }); } _this._notifyAfterValidate(value, errorMessage); }); } } else { this._notifyAfterValidate(value, ''); } }; TextFieldBase.prototype._notifyAfterValidate = function (value, errorMessage) { if (value === this.value && this.props.onNotifyValidationResult) { this.props.onNotifyValidationResult(errorMessage, value); } }; TextFieldBase.prototype._adjustInputHeight = function () { if (this._textElement.current && this.props.autoAdjustHeight && this.props.multiline) { var textField = this._textElement.current; textField.style.height = ''; textField.style.height = textField.scrollHeight + 'px'; } }; TextFieldBase.defaultProps = { resizable: true, deferredValidationTime: 200, validateOnLoad: true, }; return TextFieldBase; }(React.Component)); exports.TextFieldBase = TextFieldBase; /** Get the value from the given state and props (converting from number to string if needed) */ function _getValue(props, state) { var _a = props.value, value = _a === void 0 ? state.uncontrolledValue : _a; if (typeof value === 'number') { // not allowed per typings, but happens anyway return String(value); } return value; } /** * If `validateOnFocusIn` or `validateOnFocusOut` is true, validation should run **only** on that event. * Otherwise, validation should run on every change. */ function _shouldValidateAllChanges(props) { return !(props.validateOnFocusIn || props.validateOnFocusOut); } // Only calculate this once across all TextFields, since will stay the same var __browserNeedsRevealButton; function _browserNeedsRevealButton() { if (typeof __browserNeedsRevealButton !== 'boolean') { var win = (0, Utilities_1.getWindow)(); if (win === null || win === void 0 ? void 0 : win.navigator) { // Edge, Chromium Edge var isEdge = /Edg/.test(win.navigator.userAgent || ''); __browserNeedsRevealButton = !((0, Utilities_1.isIE11)() || isEdge); } else { __browserNeedsRevealButton = true; } } return __browserNeedsRevealButton; } //# sourceMappingURL=TextField.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TextField = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TextField_base_1 = __webpack_require__(/*! ./TextField.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.base.js"); var TextField_styles_1 = __webpack_require__(/*! ./TextField.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.styles.js"); exports.TextField = (0, Utilities_1.styled)(TextField_base_1.TextFieldBase, TextField_styles_1.getStyles, undefined, { scope: 'TextField', }); //# sourceMappingURL=TextField.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.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 globalClassNames = { root: 'ms-TextField', description: 'ms-TextField-description', errorMessage: 'ms-TextField-errorMessage', field: 'ms-TextField-field', fieldGroup: 'ms-TextField-fieldGroup', prefix: 'ms-TextField-prefix', suffix: 'ms-TextField-suffix', wrapper: 'ms-TextField-wrapper', revealButton: 'ms-TextField-reveal', multiline: 'ms-TextField--multiline', borderless: 'ms-TextField--borderless', underlined: 'ms-TextField--underlined', unresizable: 'ms-TextField--unresizable', required: 'is-required', disabled: 'is-disabled', active: 'is-active', }; function getLabelStyles(props) { var underlined = props.underlined, disabled = props.disabled, focused = props.focused, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; return function () { var _a; return ({ root: [ underlined && disabled && { color: palette.neutralTertiary, }, underlined && { fontSize: fonts.medium.fontSize, marginRight: 8, paddingLeft: 12, paddingRight: 0, lineHeight: '22px', height: 32, }, underlined && focused && { selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { height: 31, // -1px to prevent jumpiness in HC with the increased border-width to 2px }, _a), }, ], }); }; } function getStyles(props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; var theme = props.theme, className = props.className, disabled = props.disabled, focused = props.focused, required = props.required, multiline = props.multiline, hasLabel = props.hasLabel, borderless = props.borderless, underlined = props.underlined, hasIcon = props.hasIcon, resizable = props.resizable, hasErrorMessage = props.hasErrorMessage, inputClassName = props.inputClassName, autoAdjustHeight = props.autoAdjustHeight, hasRevealButton = props.hasRevealButton; var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(globalClassNames, theme); var fieldPrefixSuffix = { // Suffix/Prefix are not editable so the disabled slot perfectly fits. background: semanticColors.disabledBackground, color: !disabled ? semanticColors.inputPlaceholderText : semanticColors.disabledText, display: 'flex', alignItems: 'center', padding: '0 10px', lineHeight: 1, whiteSpace: 'nowrap', flexShrink: 0, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { background: 'Window', color: disabled ? 'GrayText' : 'WindowText', }, _a), }; // placeholder style constants var placeholderStyles = [ { color: semanticColors.inputPlaceholderText, opacity: 1, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _b), }, ]; var disabledPlaceholderStyles = { color: semanticColors.disabledText, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }; return { root: [ classNames.root, fonts.medium, required && classNames.required, disabled && classNames.disabled, focused && classNames.active, multiline && classNames.multiline, borderless && classNames.borderless, underlined && classNames.underlined, Styling_1.normalize, { position: 'relative', }, className, ], wrapper: [ classNames.wrapper, underlined && [ { display: 'flex', borderBottom: "1px solid ".concat(!hasErrorMessage ? semanticColors.inputBorder : semanticColors.errorText), width: '100%', }, disabled && { borderBottomColor: semanticColors.disabledBackground, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, !disabled && { selectors: { ':hover': { borderBottomColor: !hasErrorMessage ? semanticColors.inputBorderHovered : semanticColors.errorText, selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderBottomColor: 'Highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _e), }, }, }, focused && [ { position: 'relative', }, (0, Styling_1.getInputFocusStyle)(!hasErrorMessage ? semanticColors.inputFocusBorderAlt : semanticColors.errorText, 0, 'borderBottom'), ], ], ], fieldGroup: [ classNames.fieldGroup, Styling_1.normalize, { border: "1px solid ".concat(semanticColors.inputBorder), borderRadius: effects.roundedCorner2, background: semanticColors.inputBackground, cursor: 'text', height: 32, display: 'flex', flexDirection: 'row', alignItems: 'stretch', position: 'relative', }, multiline && { minHeight: '60px', height: 'auto', display: 'flex', }, !focused && !disabled && { selectors: { ':hover': { borderColor: semanticColors.inputBorderHovered, selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'Highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _f), }, }, }, focused && !underlined && (0, Styling_1.getInputFocusStyle)(!hasErrorMessage ? semanticColors.inputFocusBorderAlt : semanticColors.errorText, effects.roundedCorner2), disabled && { borderColor: semanticColors.disabledBackground, selectors: (_g = {}, _g[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _g), cursor: 'default', }, borderless && { border: 'none', }, borderless && focused && { border: 'none', selectors: { ':after': { border: 'none', }, }, }, underlined && { flex: '1 1 0px', border: 'none', textAlign: 'left', }, underlined && disabled && { backgroundColor: 'transparent', }, hasErrorMessage && !underlined && { borderColor: semanticColors.errorText, selectors: { '&:hover': { borderColor: semanticColors.errorText, }, }, }, !hasLabel && required && { selectors: (_h = { ':before': { content: "'*'", color: semanticColors.errorText, position: 'absolute', top: -5, right: -10, } }, _h[Styling_1.HighContrastSelector] = { selectors: { ':before': { color: 'WindowText', right: -14, // moving the * 4 pixel to right to alleviate border clipping in HC mode. }, }, }, _h), }, ], field: [ fonts.medium, classNames.field, Styling_1.normalize, { borderRadius: 0, border: 'none', background: 'none', backgroundColor: 'transparent', color: semanticColors.inputText, padding: '0 8px', width: '100%', minWidth: 0, textOverflow: 'ellipsis', outline: 0, selectors: (_j = { '&:active, &:focus, &:hover': { outline: 0 }, '::-ms-clear': { display: 'none', } }, _j[Styling_1.HighContrastSelector] = { background: 'Window', color: disabled ? 'GrayText' : 'WindowText', }, _j), }, (0, Styling_1.getPlaceholderStyles)(placeholderStyles), multiline && !resizable && [ classNames.unresizable, { resize: 'none', }, ], multiline && { minHeight: 'inherit', lineHeight: 17, flexGrow: 1, paddingTop: 6, paddingBottom: 6, overflow: 'auto', width: '100%', }, multiline && autoAdjustHeight && { overflow: 'hidden', }, hasIcon && !hasRevealButton && { paddingRight: 24, }, multiline && hasIcon && { paddingRight: 40, }, disabled && [ { backgroundColor: semanticColors.disabledBackground, color: semanticColors.disabledText, borderColor: semanticColors.disabledBackground, }, (0, Styling_1.getPlaceholderStyles)(disabledPlaceholderStyles), ], underlined && { textAlign: 'left', }, focused && !borderless && { selectors: (_k = {}, _k[Styling_1.HighContrastSelector] = { paddingLeft: 11, paddingRight: 11, }, _k), }, focused && multiline && !borderless && { selectors: (_l = {}, _l[Styling_1.HighContrastSelector] = { paddingTop: 4, // take into consideration the 2px increased border-width (not when borderless). }, _l), }, inputClassName, ], icon: [ multiline && { paddingRight: 24, alignItems: 'flex-end', }, { pointerEvents: 'none', position: 'absolute', bottom: 6, right: 8, top: 'auto', fontSize: Styling_1.IconFontSizes.medium, lineHeight: 18, }, disabled && { color: semanticColors.disabledText, }, ], description: [ classNames.description, { color: semanticColors.bodySubtext, fontSize: fonts.xSmall.fontSize, }, ], errorMessage: [ classNames.errorMessage, Styling_1.AnimationClassNames.slideDownIn20, fonts.small, { color: semanticColors.errorText, margin: 0, paddingTop: 5, display: 'flex', alignItems: 'center', }, ], prefix: [classNames.prefix, fieldPrefixSuffix], suffix: [classNames.suffix, fieldPrefixSuffix], revealButton: [ classNames.revealButton, 'ms-Button', 'ms-Button--icon', (0, Styling_1.getFocusStyle)(theme, { inset: 1 }), { height: 30, width: 32, border: 'none', padding: '0px 4px', backgroundColor: 'transparent', color: semanticColors.link, selectors: { ':hover': { outline: 0, color: semanticColors.primaryButtonBackgroundHovered, backgroundColor: semanticColors.buttonBackgroundHovered, selectors: (_m = {}, _m[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', color: 'Highlight', }, _m), }, ':focus': { outline: 0 }, }, }, hasIcon && { marginRight: 28, }, ], revealSpan: { display: 'flex', height: '100%', alignItems: 'center', }, revealIcon: { margin: '0px 4px', pointerEvents: 'none', bottom: 6, right: 8, top: 'auto', fontSize: Styling_1.IconFontSizes.medium, lineHeight: 18, }, subComponentStyles: { label: getLabelStyles(props), }, }; } exports.getStyles = getStyles; //# sourceMappingURL=TextField.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=TextField.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TextField/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getTextFieldStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./TextField */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TextField.base */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.base.js"), exports); var TextField_styles_1 = __webpack_require__(/*! ./TextField.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.styles.js"); Object.defineProperty(exports, "getTextFieldStyles", ({ enumerable: true, get: function () { return TextField_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./TextField.types */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/TextField.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MaskedTextField/MaskedTextField */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/MaskedTextField/MaskedTextField.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeRules.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeRules.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=IThemeRules.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeSlotRule.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeSlotRule.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=IThemeSlotRule.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeGenerator.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeGenerator.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeGenerator = void 0; var getColorFromString_1 = __webpack_require__(/*! ../../utilities/color/getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"); var shades_1 = __webpack_require__(/*! ../../utilities/color/shades */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ThemeGenerator = /** @class */ (function () { function ThemeGenerator() { } /** * Sets an IThemeSlotRule to the given color and cascades it to the rest of the theme, updating other IThemeSlotRules * in the theme that inherit from that color. * @param isInverted - whether it's a dark theme or not, which affects the algorithm used to generate shades * @param isCustomization - should be true only if it's a user action, and indicates overwriting the slot's * inheritance (if any) * @param overwriteCustomColor - A slot could have a generated color based on its inheritance rules (isCustomized * is false), or a custom color based on user input (isCustomized is true). This bool tells us whether to override * existing customized colors. */ ThemeGenerator.setSlot = function (rule, color, isInverted, isCustomization, overwriteCustomColor) { if (isInverted === void 0) { isInverted = false; } if (isCustomization === void 0) { isCustomization = false; } if (overwriteCustomColor === void 0) { overwriteCustomColor = true; } if (!rule.color && rule.value) { // not a color rule return; } if (overwriteCustomColor) { var colorAsIColor = void 0; if (typeof color === 'string') { colorAsIColor = (0, getColorFromString_1.getColorFromString)(color); // the ! is a lie here but we'll verify it in the next line if (!colorAsIColor) { throw new Error('color is invalid in setSlot(): ' + color); } } else { colorAsIColor = color; } ThemeGenerator._setSlot(rule, colorAsIColor, isInverted, isCustomization, overwriteCustomColor); } else if (rule.color) { ThemeGenerator._setSlot(rule, rule.color, isInverted, isCustomization, overwriteCustomColor); } }; /** * Sets the color of each slot based on its rule. Slots that don't inherit must have a color already. * If this completes without error, then the theme is ready to use. (All slots will have a color.) * setSlot() can be called before this, but this must be called before getThemeAs*(). * Does not override colors of rules where isCustomized is true (i.e. doesn't override existing customizations). */ ThemeGenerator.insureSlots = function (slotRules, isInverted) { // Get all the "root" rules, the ones which don't inherit. Then "set" them to trigger updating dependent slots. for (var ruleName in slotRules) { if (slotRules.hasOwnProperty(ruleName)) { var rule = slotRules[ruleName]; if (!rule.inherits && !rule.value) { if (!rule.color) { throw new Error('A color slot rule that does not inherit must provide its own color.'); } ThemeGenerator._setSlot(rule, rule.color, isInverted, false, false); } } } }; /** * Gets the JSON-formatted blob that describes the theme, usable with the REST request endpoints: * ``` * { [theme slot name as string] : [color as string], * "tokenName": "#f00f00", * "tokenName2": "#ba2ba2", * ... } * ``` */ ThemeGenerator.getThemeAsJson = function (slotRules) { var theme = {}; for (var ruleName in slotRules) { if (slotRules.hasOwnProperty(ruleName)) { var rule = slotRules[ruleName]; theme[rule.name] = rule.color ? rule.color.str : rule.value || ''; } } return theme; }; /** * Gets code-formatted load theme blob that can be copy and pasted. * Only used for the old theme designer, where loadTheme usage is acceptable, * unlike in the new theme designer. */ ThemeGenerator.getThemeAsCode = function (slotRules) { var output = 'loadTheme({\n palette: {\n'; return ThemeGenerator._makeRemainingCode(output, slotRules); }; /** * Gets code-formatted load theme blob, specifically for the new theme designer, * aka.ms/themedesigner. Shouldn't use loadTheme like the old theme designer since it's deprecated. * We want to use the theme object from createTheme and use the Customizations.applySettings API instead. */ ThemeGenerator.getThemeAsCodeWithCreateTheme = function (slotRules) { var output = 'const myTheme = createTheme({\n palette: {\n'; return ThemeGenerator._makeRemainingCode(output, slotRules); }; /** * Gets the theme as a list of SASS variables that can be used in code * ``` * $tokenName: "[theme:tokenName, default:#f00f00]"; * $tokenName2: "[theme:tokenName2, default:#ba2ba2]"; * ... * ``` */ ThemeGenerator.getThemeAsSass = function (slotRules) { var sassVarTemplate = '${0}Color: "[theme: {1}, default: {2}]";\n'; var output = ''; for (var ruleName in slotRules) { if (slotRules.hasOwnProperty(ruleName)) { var rule = slotRules[ruleName]; var camelCasedName = rule.name.charAt(0).toLowerCase() + rule.name.slice(1); output += (0, Utilities_1.format)(sassVarTemplate, camelCasedName, camelCasedName, rule.color ? rule.color.str : rule.value || ''); } } return output; }; /** * Gets the theme formatted for PowerShell scripts * ``` * @{ * "tokenName" = "#f00f00"; * "tokenName2" = "#ba2ba2"; * ... * } * ``` */ ThemeGenerator.getThemeForPowerShell = function (slotRules) { var psVarTemplate = '"{0}" = "{1}";\n'; var output = ''; for (var ruleName in slotRules) { if (slotRules.hasOwnProperty(ruleName)) { var rule = slotRules[ruleName]; if (rule.value) { // skip this one, it's not a color continue; } var camelCasedName = rule.name.charAt(0).toLowerCase() + rule.name.slice(1); var outputColor = rule.color ? '#' + rule.color.hex : rule.value || ''; // powershell endpoint uses the RGBA format if (rule.color && rule.color.a && rule.color.a !== 100) { outputColor += String(rule.color.a.toString(16)); } output += (0, Utilities_1.format)(psVarTemplate, camelCasedName, outputColor); } } return '@{\n' + output + '}'; }; /** * Sets the given slot's color to the appropriate color, shading it if necessary. * Then, iterates through all other rules (that are this rule's dependents) to update them accordingly. * @param isCustomization - If true, it's a user-provided color, which should be to that raw color. * If false, the rule it's inheriting from changed, so updated using asShade. */ ThemeGenerator._setSlot = function (rule, color, isInverted, isCustomization, overwriteCustomColor) { if (overwriteCustomColor === void 0) { overwriteCustomColor = true; } if (!rule.color && rule.value) { // not a color rule return; } if (overwriteCustomColor || !rule.color || !rule.isCustomized || !rule.inherits) { // set the rule's color under these conditions if ((overwriteCustomColor || !rule.isCustomized) && !isCustomization && rule.inherits && (0, shades_1.isValidShade)(rule.asShade)) { // it's inheriting by shade if (rule.isBackgroundShade) { rule.color = (0, shades_1.getBackgroundShade)(color, rule.asShade, isInverted); } else { rule.color = (0, shades_1.getShade)(color, rule.asShade, isInverted); } rule.isCustomized = false; } else { rule.color = color; rule.isCustomized = true; } // then update dependent colors for (var _i = 0, _a = rule.dependentRules; _i < _a.length; _i++) { var ruleToUpdate = _a[_i]; ThemeGenerator._setSlot(ruleToUpdate, rule.color, isInverted, false, overwriteCustomColor); } } }; /** * Makes the rest of the code that's used for the load theme blob in the exported codepens of * both the older sharepoint-specific theme designer and the new theme designer. Takes in * theme rules and converts them to format fitting a list of palette colors and their values. * Resulting output looks like: * ``` * const _theme = createTheme({ * palette: { * themePrimary: '#0078d4', * themeLighterAlt: '#f3f9fd', * ... * }}); * ``` * The first line is loadTheme instead of createTheme for the old sharepoint theme designer. */ ThemeGenerator._makeRemainingCode = function (output, slotRules) { var attributeTemplate = " {0}: '{1}',\n"; for (var ruleName in slotRules) { if (slotRules.hasOwnProperty(ruleName)) { var rule = slotRules[ruleName]; var camelCasedName = rule.name.charAt(0).toLowerCase() + rule.name.slice(1); var outputColor = rule.color ? '#' + rule.color.hex : rule.value || ''; output += (0, Utilities_1.format)(attributeTemplate, camelCasedName, outputColor); } } output += ' }});'; return output; }; return ThemeGenerator; }()); exports.ThemeGenerator = ThemeGenerator; //# sourceMappingURL=ThemeGenerator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeRulesStandard.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeRulesStandard.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.themeRulesStandardCreator = exports.SemanticColorSlots = exports.FabricSlots = exports.BaseSlots = void 0; var shades_1 = __webpack_require__(/*! ../../utilities/color/shades */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js"); var getColorFromString_1 = __webpack_require__(/*! ../../utilities/color/getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); /* This is the set of rules for our default theme. We start with three base slots, defining the background, foreground (text), and primary color (sometimes called theme color). Each Fabric slot is generated from shades (or tints) of one of those three, creating the Fabric palette. Then, we have semantic slots, the new thing intended to eventually replace the Fabric palette. The semantic slots inherit from the Fabric palette. */ /* The most minimal set of slots we start with. All other ones can be generated based on rules. * This is not so much an enum as it is a list. The enum is used to insure "type"-safety. * For now, we are only dealing with color. */ var BaseSlots; (function (BaseSlots) { BaseSlots[BaseSlots["primaryColor"] = 0] = "primaryColor"; BaseSlots[BaseSlots["backgroundColor"] = 1] = "backgroundColor"; BaseSlots[BaseSlots["foregroundColor"] = 2] = "foregroundColor"; })(BaseSlots = exports.BaseSlots || (exports.BaseSlots = {})); /* The original Fabric palette, only for back-compat. */ var FabricSlots; (function (FabricSlots) { FabricSlots[FabricSlots["themePrimary"] = 0] = "themePrimary"; FabricSlots[FabricSlots["themeLighterAlt"] = 1] = "themeLighterAlt"; FabricSlots[FabricSlots["themeLighter"] = 2] = "themeLighter"; FabricSlots[FabricSlots["themeLight"] = 3] = "themeLight"; FabricSlots[FabricSlots["themeTertiary"] = 4] = "themeTertiary"; FabricSlots[FabricSlots["themeSecondary"] = 5] = "themeSecondary"; FabricSlots[FabricSlots["themeDarkAlt"] = 6] = "themeDarkAlt"; FabricSlots[FabricSlots["themeDark"] = 7] = "themeDark"; FabricSlots[FabricSlots["themeDarker"] = 8] = "themeDarker"; FabricSlots[FabricSlots["neutralLighterAlt"] = 9] = "neutralLighterAlt"; FabricSlots[FabricSlots["neutralLighter"] = 10] = "neutralLighter"; FabricSlots[FabricSlots["neutralLight"] = 11] = "neutralLight"; FabricSlots[FabricSlots["neutralQuaternaryAlt"] = 12] = "neutralQuaternaryAlt"; FabricSlots[FabricSlots["neutralQuaternary"] = 13] = "neutralQuaternary"; FabricSlots[FabricSlots["neutralTertiaryAlt"] = 14] = "neutralTertiaryAlt"; FabricSlots[FabricSlots["neutralTertiary"] = 15] = "neutralTertiary"; FabricSlots[FabricSlots["neutralSecondaryAlt"] = 16] = "neutralSecondaryAlt"; FabricSlots[FabricSlots["neutralSecondary"] = 17] = "neutralSecondary"; FabricSlots[FabricSlots["neutralPrimaryAlt"] = 18] = "neutralPrimaryAlt"; FabricSlots[FabricSlots["neutralPrimary"] = 19] = "neutralPrimary"; FabricSlots[FabricSlots["neutralDark"] = 20] = "neutralDark"; FabricSlots[FabricSlots["black"] = 21] = "black"; FabricSlots[FabricSlots["white"] = 22] = "white"; })(FabricSlots = exports.FabricSlots || (exports.FabricSlots = {})); /* List of all the semantic color slots for this theme. * This is not so much an enum as it is a list. The enum is used to insure "type"-safety. */ var SemanticColorSlots; (function (SemanticColorSlots) { SemanticColorSlots[SemanticColorSlots["bodyBackground"] = 0] = "bodyBackground"; SemanticColorSlots[SemanticColorSlots["bodyText"] = 1] = "bodyText"; SemanticColorSlots[SemanticColorSlots["disabledBackground"] = 2] = "disabledBackground"; SemanticColorSlots[SemanticColorSlots["disabledText"] = 3] = "disabledText"; })(SemanticColorSlots = exports.SemanticColorSlots || (exports.SemanticColorSlots = {})); function themeRulesStandardCreator() { var slotRules = {}; /*** BASE COLORS and their SHADES */ // iterate through each base slot and make the SlotRules for those (0, Utilities_1.mapEnumByName)(BaseSlots, function (baseSlot) { // first make the SlotRule for the unshaded base Color slotRules[baseSlot] = { name: baseSlot, isCustomized: true, dependentRules: [], }; // then make a rule for each shade of this base color, but skip unshaded (0, Utilities_1.mapEnumByName)(shades_1.Shade, function (shadeName, shadeValue) { if (shadeName === shades_1.Shade[shades_1.Shade.Unshaded]) { return; } var inherits = slotRules[baseSlot]; var thisSlotRule = { name: baseSlot + shadeName, inherits: slotRules[baseSlot], asShade: shadeValue, isCustomized: false, isBackgroundShade: baseSlot === BaseSlots[BaseSlots.backgroundColor] ? true : false, dependentRules: [], }; slotRules[baseSlot + shadeName] = thisSlotRule; inherits.dependentRules.push(thisSlotRule); return undefined; }); return undefined; }); // set default colors for the base colors slotRules[BaseSlots[BaseSlots.primaryColor]].color = (0, getColorFromString_1.getColorFromString)('#0078d4'); slotRules[BaseSlots[BaseSlots.backgroundColor]].color = (0, getColorFromString_1.getColorFromString)('#ffffff'); slotRules[BaseSlots[BaseSlots.foregroundColor]].color = (0, getColorFromString_1.getColorFromString)('#323130'); function _makeFabricSlotRule(slotName, inheritedBase, inheritedShade, isBackgroundShade) { if (isBackgroundShade === void 0) { isBackgroundShade = false; } var inherits = slotRules[BaseSlots[inheritedBase]]; var thisSlotRule = { name: slotName, inherits: inherits, asShade: inheritedShade, isCustomized: false, isBackgroundShade: isBackgroundShade, dependentRules: [], }; slotRules[slotName] = thisSlotRule; inherits.dependentRules.push(thisSlotRule); } _makeFabricSlotRule(FabricSlots[FabricSlots.themePrimary], BaseSlots.primaryColor, shades_1.Shade.Unshaded); _makeFabricSlotRule(FabricSlots[FabricSlots.themeLighterAlt], BaseSlots.primaryColor, shades_1.Shade.Shade1); _makeFabricSlotRule(FabricSlots[FabricSlots.themeLighter], BaseSlots.primaryColor, shades_1.Shade.Shade2); _makeFabricSlotRule(FabricSlots[FabricSlots.themeLight], BaseSlots.primaryColor, shades_1.Shade.Shade3); _makeFabricSlotRule(FabricSlots[FabricSlots.themeTertiary], BaseSlots.primaryColor, shades_1.Shade.Shade4); _makeFabricSlotRule(FabricSlots[FabricSlots.themeSecondary], BaseSlots.primaryColor, shades_1.Shade.Shade5); _makeFabricSlotRule(FabricSlots[FabricSlots.themeDarkAlt], BaseSlots.primaryColor, shades_1.Shade.Shade6); _makeFabricSlotRule(FabricSlots[FabricSlots.themeDark], BaseSlots.primaryColor, shades_1.Shade.Shade7); _makeFabricSlotRule(FabricSlots[FabricSlots.themeDarker], BaseSlots.primaryColor, shades_1.Shade.Shade8); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralLighterAlt], BaseSlots.backgroundColor, shades_1.Shade.Shade1, true); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralLighter], BaseSlots.backgroundColor, shades_1.Shade.Shade2, true); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralLight], BaseSlots.backgroundColor, shades_1.Shade.Shade3, true); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralQuaternaryAlt], BaseSlots.backgroundColor, shades_1.Shade.Shade4, true); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralQuaternary], BaseSlots.backgroundColor, shades_1.Shade.Shade5, true); // bg6 or fg2 _makeFabricSlotRule(FabricSlots[FabricSlots.neutralTertiaryAlt], BaseSlots.backgroundColor, shades_1.Shade.Shade6, true); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralTertiary], BaseSlots.foregroundColor, shades_1.Shade.Shade3); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralSecondary], BaseSlots.foregroundColor, shades_1.Shade.Shade4); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralSecondaryAlt], BaseSlots.foregroundColor, shades_1.Shade.Shade4); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralPrimaryAlt], BaseSlots.foregroundColor, shades_1.Shade.Shade5); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralPrimary], BaseSlots.foregroundColor, shades_1.Shade.Unshaded); _makeFabricSlotRule(FabricSlots[FabricSlots.neutralDark], BaseSlots.foregroundColor, shades_1.Shade.Shade7); _makeFabricSlotRule(FabricSlots[FabricSlots.black], BaseSlots.foregroundColor, shades_1.Shade.Shade8); _makeFabricSlotRule(FabricSlots[FabricSlots.white], BaseSlots.backgroundColor, shades_1.Shade.Unshaded, true); slotRules[FabricSlots[FabricSlots.neutralLighterAlt]].color = (0, getColorFromString_1.getColorFromString)('#faf9f8'); slotRules[FabricSlots[FabricSlots.neutralLighter]].color = (0, getColorFromString_1.getColorFromString)('#f3f2f1'); slotRules[FabricSlots[FabricSlots.neutralLight]].color = (0, getColorFromString_1.getColorFromString)('#edebe9'); slotRules[FabricSlots[FabricSlots.neutralQuaternaryAlt]].color = (0, getColorFromString_1.getColorFromString)('#e1dfdd'); slotRules[FabricSlots[FabricSlots.neutralDark]].color = (0, getColorFromString_1.getColorFromString)('#201f1e'); slotRules[FabricSlots[FabricSlots.neutralTertiaryAlt]].color = (0, getColorFromString_1.getColorFromString)('#c8c6c4'); slotRules[FabricSlots[FabricSlots.black]].color = (0, getColorFromString_1.getColorFromString)('#000000'); slotRules[FabricSlots[FabricSlots.neutralDark]].color = (0, getColorFromString_1.getColorFromString)('#201f1e'); slotRules[FabricSlots[FabricSlots.neutralPrimaryAlt]].color = (0, getColorFromString_1.getColorFromString)('#3b3a39'); slotRules[FabricSlots[FabricSlots.neutralSecondary]].color = (0, getColorFromString_1.getColorFromString)('#605e5c'); slotRules[FabricSlots[FabricSlots.neutralSecondaryAlt]].color = (0, getColorFromString_1.getColorFromString)('#8a8886'); slotRules[FabricSlots[FabricSlots.neutralTertiary]].color = (0, getColorFromString_1.getColorFromString)('#a19f9d'); slotRules[FabricSlots[FabricSlots.white]].color = (0, getColorFromString_1.getColorFromString)('#ffffff'); slotRules[FabricSlots[FabricSlots.themeDarker]].color = (0, getColorFromString_1.getColorFromString)('#004578'); slotRules[FabricSlots[FabricSlots.themeDark]].color = (0, getColorFromString_1.getColorFromString)('#005a9e'); slotRules[FabricSlots[FabricSlots.themeDarkAlt]].color = (0, getColorFromString_1.getColorFromString)('#106ebe'); slotRules[FabricSlots[FabricSlots.themeSecondary]].color = (0, getColorFromString_1.getColorFromString)('#2b88d8'); slotRules[FabricSlots[FabricSlots.themeTertiary]].color = (0, getColorFromString_1.getColorFromString)('#71afe5'); slotRules[FabricSlots[FabricSlots.themeLight]].color = (0, getColorFromString_1.getColorFromString)('#c7e0f4'); slotRules[FabricSlots[FabricSlots.themeLighter]].color = (0, getColorFromString_1.getColorFromString)('#deecf9'); slotRules[FabricSlots[FabricSlots.themeLighterAlt]].color = (0, getColorFromString_1.getColorFromString)('#eff6fc'); slotRules[FabricSlots[FabricSlots.neutralLighterAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralLighter]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralLight]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralQuaternaryAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralDark]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralTertiaryAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.black]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralDark]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralPrimaryAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralSecondary]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralSecondaryAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.neutralTertiary]].isCustomized = true; slotRules[FabricSlots[FabricSlots.white]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeDarker]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeDark]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeDarkAlt]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themePrimary]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeSecondary]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeTertiary]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeLight]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeLighter]].isCustomized = true; slotRules[FabricSlots[FabricSlots.themeLighterAlt]].isCustomized = true; return slotRules; } exports.themeRulesStandardCreator = themeRulesStandardCreator; //# sourceMappingURL=ThemeRulesStandard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/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__(/*! ./ThemeGenerator */ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeGenerator.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./IThemeSlotRule */ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeSlotRule.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./IThemeRules */ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/IThemeRules.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ThemeRulesStandard */ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/ThemeRulesStandard.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TimePicker = 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 date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var ComboBox_1 = __webpack_require__(/*! ../../ComboBox */ "./node_modules/@fluentui/react/lib-commonjs/ComboBox.js"); var Utilities_2 = __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 REGEX_SHOW_SECONDS_HOUR_12 = /^((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/; var REGEX_HIDE_SECONDS_HOUR_12 = /^((1[0-2]|0?[1-9]):[0-5][0-9]\s([AaPp][Mm]))$/; var REGEX_SHOW_SECONDS_HOUR_24 = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/; var REGEX_HIDE_SECONDS_HOUR_24 = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/; var TIME_LOWER_BOUND = 0; var TIME_UPPER_BOUND = 23; var getDefaultStrings = function (useHour12, showSeconds) { var hourUnits = useHour12 ? '12-hour' : '24-hour'; var timeFormat = "hh:mm".concat(showSeconds ? ':ss' : '').concat(useHour12 ? ' AP' : ''); var invalidInputErrorMessage = "Enter a valid time in the ".concat(hourUnits, " format: ").concat(timeFormat); var timeOutOfBoundsErrorMessage = "Please enter a time within the range of {0} and {1}"; return { invalidInputErrorMessage: invalidInputErrorMessage, timeOutOfBoundsErrorMessage: timeOutOfBoundsErrorMessage, }; }; /** * {@docCategory TimePicker} */ var TimePicker = function (_a) { var label = _a.label, _b = _a.increments, increments = _b === void 0 ? 30 : _b, _c = _a.showSeconds, showSeconds = _c === void 0 ? false : _c, _d = _a.allowFreeform, allowFreeform = _d === void 0 ? true : _d, _e = _a.useHour12, useHour12 = _e === void 0 ? false : _e, timeRange = _a.timeRange, _f = _a.strings, strings = _f === void 0 ? getDefaultStrings(useHour12, showSeconds) : _f, defaultValue = _a.defaultValue, value = _a.value, dateAnchor = _a.dateAnchor, onChange = _a.onChange, onFormatDate = _a.onFormatDate, onValidateUserInput = _a.onValidateUserInput, onValidationResult = _a.onValidationResult, rest = tslib_1.__rest(_a, ["label", "increments", "showSeconds", "allowFreeform", "useHour12", "timeRange", "strings", "defaultValue", "value", "dateAnchor", "onChange", "onFormatDate", "onValidateUserInput", "onValidationResult"]); var _g = React.useState(''), comboBoxText = _g[0], setComboBoxText = _g[1]; var _h = React.useState(), selectedKey = _h[0], setSelectedKey = _h[1]; var _j = React.useState(''), errorMessage = _j[0], setErrorMessage = _j[1]; var fallbackDateAnchor = (0, react_hooks_1.useConst)(new Date()); var _k = (0, react_hooks_1.useControllableValue)(value, defaultValue), selectedTime = _k[0], setSelectedTime = _k[1]; var optionsCount = getDropdownOptionsCount(increments, timeRange); var internalDateAnchor = dateAnchor || value || defaultValue || fallbackDateAnchor; var dateStartAnchor = React.useMemo(function () { return getDateAnchor(internalDateAnchor, 'start', increments, timeRange); }, [internalDateAnchor, increments, timeRange]); var dateEndAnchor = React.useMemo(function () { return getDateAnchor(internalDateAnchor, 'end', increments, timeRange); }, [internalDateAnchor, increments, timeRange]); var timePickerOptions = React.useMemo(function () { var optionsList = Array(optionsCount); for (var i = 0; i < optionsCount; i++) { optionsList[i] = 0; } return optionsList.map(function (_, index) { var option = (0, date_time_utilities_1.addMinutes)(dateStartAnchor, increments * index); option.setSeconds(0); var formattedTimeString = (0, date_time_utilities_1.formatTimeString)(option, showSeconds, useHour12); var optionText = onFormatDate ? onFormatDate(option) : formattedTimeString; return { key: formattedTimeString, text: optionText, data: option, }; }); }, [dateStartAnchor, increments, optionsCount, showSeconds, onFormatDate, useHour12]); React.useEffect(function () { if (selectedTime && !isNaN(selectedTime.valueOf())) { var formattedTimeString_1 = (0, date_time_utilities_1.formatTimeString)(selectedTime, showSeconds, useHour12); var comboboxOption = timePickerOptions.find(function (option) { return option.key === formattedTimeString_1; }); setSelectedKey(comboboxOption === null || comboboxOption === void 0 ? void 0 : comboboxOption.key); setComboBoxText(comboboxOption ? comboboxOption.text : formattedTimeString_1); } else { setSelectedKey(null); } }, [selectedTime, timePickerOptions, onFormatDate, showSeconds, useHour12]); var onInputChange = React.useCallback(function (ev, option, _index, input) { var validateUserInput = function (userInput) { var errorMessageToDisplay = ''; var regex; if (useHour12) { regex = showSeconds ? REGEX_SHOW_SECONDS_HOUR_12 : REGEX_HIDE_SECONDS_HOUR_12; } else { regex = showSeconds ? REGEX_SHOW_SECONDS_HOUR_24 : REGEX_HIDE_SECONDS_HOUR_24; } if (!regex.test(userInput)) { errorMessageToDisplay = strings.invalidInputErrorMessage; } else if (timeRange && strings.timeOutOfBoundsErrorMessage) { var optionDate = (0, date_time_utilities_1.getDateFromTimeSelection)(useHour12, dateStartAnchor, userInput); if (optionDate < dateStartAnchor || optionDate > dateEndAnchor) { errorMessageToDisplay = (0, Utilities_2.format)(strings.timeOutOfBoundsErrorMessage, dateStartAnchor.toString(), dateEndAnchor.toString()); } } return errorMessageToDisplay; }; var errorMessageToDisplay = ''; if (input) { if (allowFreeform && !option) { if (!onFormatDate) { // Validate only if user did not add onFormatDate errorMessageToDisplay = validateUserInput(input); } else { // Use user provided validation if onFormatDate is provided if (onValidateUserInput) { errorMessageToDisplay = onValidateUserInput(input); } } } } if (onValidationResult && errorMessage !== errorMessageToDisplay) { // only call onValidationResult if stored errorMessage state value is different from latest error message onValidationResult(ev, { errorMessage: errorMessageToDisplay }); } var changedTime; if (errorMessageToDisplay || (input !== undefined && !input.length)) { var timeSelection = input || (option === null || option === void 0 ? void 0 : option.text) || ''; setComboBoxText(timeSelection); setSelectedTime(errorMessageToDisplay ? new Date('invalid') : undefined); changedTime = new Date('invalid'); } else { var updatedTime = void 0; if ((option === null || option === void 0 ? void 0 : option.data) instanceof Date) { updatedTime = option.data; } else { var timeSelection = (option === null || option === void 0 ? void 0 : option.key) || input || ''; updatedTime = (0, date_time_utilities_1.getDateFromTimeSelection)(useHour12, dateStartAnchor, timeSelection); } setSelectedTime(updatedTime); changedTime = updatedTime; } onChange === null || onChange === void 0 ? void 0 : onChange(ev, changedTime); setErrorMessage(errorMessageToDisplay); }, [ timeRange, dateStartAnchor, dateEndAnchor, allowFreeform, onFormatDate, onValidateUserInput, showSeconds, useHour12, strings.invalidInputErrorMessage, strings.timeOutOfBoundsErrorMessage, setSelectedTime, onValidationResult, onChange, errorMessage, ]); var evaluatePressedKey = function (event) { // eslint-disable-next-line deprecation/deprecation var charCode = event.charCode; if (!onFormatDate && // Only permit input of digits, space, colon, A/P/M characters !((charCode >= Utilities_1.KeyCodes.zero && charCode <= Utilities_1.KeyCodes.colon) || charCode === Utilities_1.KeyCodes.space || charCode === Utilities_1.KeyCodes.a || charCode === Utilities_1.KeyCodes.m || charCode === Utilities_1.KeyCodes.p)) { event.preventDefault(); } }; return (React.createElement(ComboBox_1.ComboBox, tslib_1.__assign({}, rest, { allowFreeform: allowFreeform, selectedKey: selectedKey, label: label, errorMessage: errorMessage, options: timePickerOptions, onChange: onInputChange, text: comboBoxText, //eslint-disable-next-line onKeyPress: evaluatePressedKey, useComboBoxAsMenuWidth: true }))); }; exports.TimePicker = TimePicker; exports.TimePicker.displayName = 'TimePicker'; var getDateAnchor = function (internalDateAnchor, startEnd, increments, timeRange) { var clampedDateAnchor = new Date(internalDateAnchor.getTime()); if (timeRange) { var clampedTimeRange = clampTimeRange(timeRange); var timeRangeHours = startEnd === 'start' ? clampedTimeRange.start : clampedTimeRange.end; if (clampedDateAnchor.getHours() !== timeRangeHours) { clampedDateAnchor.setHours(timeRangeHours); } } else if (startEnd === 'end') { clampedDateAnchor.setDate(clampedDateAnchor.getDate() + 1); } clampedDateAnchor.setMinutes(0); clampedDateAnchor.setSeconds(0); clampedDateAnchor.setMilliseconds(0); return (0, date_time_utilities_1.ceilMinuteToIncrement)(clampedDateAnchor, increments); }; var clampTimeRange = function (timeRange) { return { start: Math.min(Math.max(timeRange.start, TIME_LOWER_BOUND), TIME_UPPER_BOUND), end: Math.min(Math.max(timeRange.end, TIME_LOWER_BOUND), TIME_UPPER_BOUND), }; }; var getHoursInRange = function (timeRange) { var hoursInRange = date_time_utilities_1.TimeConstants.HoursInOneDay; if (timeRange) { var clampedTimeRange = clampTimeRange(timeRange); if (clampedTimeRange.start > clampedTimeRange.end) { hoursInRange = date_time_utilities_1.TimeConstants.HoursInOneDay - timeRange.start - timeRange.end; } else if (timeRange.end > timeRange.start) { hoursInRange = timeRange.end - timeRange.start; } } return hoursInRange; }; var getDropdownOptionsCount = function (increments, timeRange) { var hoursInRange = getHoursInRange(timeRange); return Math.floor((date_time_utilities_1.TimeConstants.MinutesInOneHour * hoursInRange) / increments); }; //# sourceMappingURL=TimePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=TimePicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/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__(/*! ./TimePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TimePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/TimePicker.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.base.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ToggleBase = 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 Label_1 = __webpack_require__(/*! ../Label/Label */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/Label.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'Toggle'; exports.ToggleBase = React.forwardRef(function (props, forwardedRef) { var _a = props.as, RootType = _a === void 0 ? 'div' : _a, ariaLabel = props.ariaLabel, controlledChecked = props.checked, className = props.className, _b = props.defaultChecked, defaultChecked = _b === void 0 ? false : _b, disabled = props.disabled, inlineLabel = props.inlineLabel, label = props.label, // eslint-disable-next-line deprecation/deprecation offAriaLabel = props.offAriaLabel, offText = props.offText, // eslint-disable-next-line deprecation/deprecation onAriaLabel = props.onAriaLabel, onChange = props.onChange, // eslint-disable-next-line deprecation/deprecation onChanged = props.onChanged, onToggleClick = props.onClick, onText = props.onText, role = props.role, styles = props.styles, theme = props.theme; var _c = (0, react_hooks_1.useControllableValue)(controlledChecked, defaultChecked, React.useCallback(function (ev, isChecked) { onChange === null || onChange === void 0 ? void 0 : onChange(ev, isChecked); onChanged === null || onChanged === void 0 ? void 0 : onChanged(isChecked); }, [onChange, onChanged])), checked = _c[0], setChecked = _c[1]; var classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, checked: checked, inlineLabel: inlineLabel, onOffMissing: !onText && !offText, }); var badAriaLabel = checked ? onAriaLabel : offAriaLabel; var id = (0, react_hooks_1.useId)(COMPONENT_NAME, props.id); var labelId = "".concat(id, "-label"); var stateTextId = "".concat(id, "-stateText"); var stateText = checked ? onText : offText; var toggleNativeProps = (0, utilities_1.getNativeProps)(props, utilities_1.inputProperties, [ 'defaultChecked', ]); // The following properties take priority for what Narrator should read: // 1. ariaLabel // 2. onAriaLabel (if checked) or offAriaLabel (if not checked) // 3. label, if existent var labelledById = undefined; if (!ariaLabel && !badAriaLabel) { if (label) { labelledById = labelId; } if (stateText && !labelledById) { labelledById = stateTextId; } } var toggleButton = React.useRef(null); (0, utilities_1.useFocusRects)(toggleButton); useComponentRef(props, checked, toggleButton); 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: { offAriaLabel: undefined, onAriaLabel: 'ariaLabel', onChanged: 'onChange', }, mutuallyExclusive: { checked: 'defaultChecked' }, }); } var onClick = function (ev) { if (!disabled) { setChecked(!checked, ev); if (onToggleClick) { onToggleClick(ev); } } }; var slotProps = { root: { className: classNames.root, hidden: toggleNativeProps.hidden, }, label: { children: label, className: classNames.label, htmlFor: id, id: labelId, }, container: { className: classNames.container, }, pill: tslib_1.__assign(tslib_1.__assign({}, toggleNativeProps), { 'aria-disabled': disabled, 'aria-checked': checked, 'aria-label': ariaLabel ? ariaLabel : badAriaLabel, 'aria-labelledby': labelledById, className: classNames.pill, 'data-is-focusable': true, 'data-ktp-target': true, disabled: disabled, id: id, onClick: onClick, ref: toggleButton, role: role ? role : 'switch', type: 'button' }), thumb: { className: classNames.thumb, }, stateText: { children: stateText, className: classNames.text, htmlFor: id, id: stateTextId, }, }; return (React.createElement(RootType, tslib_1.__assign({ ref: forwardedRef }, slotProps.root), label && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.label)), React.createElement("div", tslib_1.__assign({}, slotProps.container), React.createElement("button", tslib_1.__assign({}, slotProps.pill), React.createElement("span", tslib_1.__assign({}, slotProps.thumb))), ((checked && onText) || offText) && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.stateText))))); }); exports.ToggleBase.displayName = COMPONENT_NAME + 'Base'; var useComponentRef = function (props, isChecked, toggleButtonRef) { React.useImperativeHandle(props.componentRef, function () { return ({ get checked() { return !!isChecked; }, focus: function () { if (toggleButtonRef.current) { toggleButtonRef.current.focus(); } }, }); }, [isChecked, toggleButtonRef]); }; //# sourceMappingURL=Toggle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Toggle = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Toggle_base_1 = __webpack_require__(/*! ./Toggle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.base.js"); var Toggle_styles_1 = __webpack_require__(/*! ./Toggle.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.styles.js"); exports.Toggle = (0, utilities_1.styled)(Toggle_base_1.ToggleBase, Toggle_styles_1.getStyles, undefined, { scope: 'Toggle', }); //# sourceMappingURL=Toggle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.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 DEFAULT_PILL_WIDTH = 40; var DEFAULT_PILL_HEIGHT = 20; var DEFAULT_THUMB_SIZE = 12; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g; var theme = props.theme, className = props.className, disabled = props.disabled, checked = props.checked, inlineLabel = props.inlineLabel, onOffMissing = props.onOffMissing; var semanticColors = theme.semanticColors, palette = theme.palette; // Tokens var pillUncheckedBackground = semanticColors.bodyBackground; var pillCheckedBackground = semanticColors.inputBackgroundChecked; var pillCheckedHoveredBackground = semanticColors.inputBackgroundCheckedHovered; var thumbUncheckedHoveredBackground = palette.neutralDark; var pillCheckedDisabledBackground = semanticColors.disabledBodySubtext; var thumbBackground = semanticColors.smallInputBorder; var thumbCheckedBackground = semanticColors.inputForegroundChecked; var thumbDisabledBackground = semanticColors.disabledBodySubtext; var thumbCheckedDisabledBackground = semanticColors.disabledBackground; var pillBorderColor = semanticColors.smallInputBorder; var pillBorderHoveredColor = semanticColors.inputBorderHovered; var pillBorderDisabledColor = semanticColors.disabledBodySubtext; var textDisabledColor = semanticColors.disabledText; return { root: [ 'ms-Toggle', checked && 'is-checked', !disabled && 'is-enabled', disabled && 'is-disabled', theme.fonts.medium, { marginBottom: '8px', }, inlineLabel && { display: 'flex', alignItems: 'center', }, className, ], label: [ 'ms-Toggle-label', { display: 'inline-block' }, disabled && { color: textDisabledColor, selectors: (_a = {}, _a[style_utilities_1.HighContrastSelector] = { color: 'GrayText', }, _a), }, inlineLabel && !onOffMissing && { marginRight: 16, }, onOffMissing && inlineLabel && { order: 1, marginLeft: 16, }, inlineLabel && { wordBreak: 'break-word' }, ], container: [ 'ms-Toggle-innerContainer', { display: 'flex', position: 'relative', }, ], pill: [ 'ms-Toggle-background', (0, style_utilities_1.getFocusStyle)(theme, { inset: -3 }), { fontSize: '20px', boxSizing: 'border-box', width: DEFAULT_PILL_WIDTH, height: DEFAULT_PILL_HEIGHT, borderRadius: DEFAULT_PILL_HEIGHT / 2, transition: 'all 0.1s ease', border: "1px solid ".concat(pillBorderColor), background: pillUncheckedBackground, cursor: 'pointer', display: 'flex', alignItems: 'center', padding: '0 3px', overflow: 'visible', }, !disabled && [ !checked && { selectors: { ':hover': [ { borderColor: pillBorderHoveredColor, }, ], ':hover .ms-Toggle-thumb': [ { backgroundColor: thumbUncheckedHoveredBackground, selectors: (_b = {}, _b[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', }, _b), }, ], }, }, checked && [ { background: pillCheckedBackground, borderColor: 'transparent', justifyContent: 'flex-end', }, { selectors: (_c = { ':hover': [ { backgroundColor: pillCheckedHoveredBackground, borderColor: 'transparent', selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Highlight', }, _d), }, ] }, _c[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _c), }, ], ], disabled && [ { cursor: 'default', }, !checked && [ { borderColor: pillBorderDisabledColor, }, ], checked && [ { backgroundColor: pillCheckedDisabledBackground, borderColor: 'transparent', justifyContent: 'flex-end', }, ], ], !disabled && { selectors: { '&:hover': { selectors: (_e = {}, _e[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', }, _e), }, }, }, ], thumb: [ 'ms-Toggle-thumb', { display: 'block', width: DEFAULT_THUMB_SIZE, height: DEFAULT_THUMB_SIZE, borderRadius: '50%', transition: 'all 0.1s ease', backgroundColor: thumbBackground, /* Border is added to handle high contrast mode for Firefox */ borderColor: 'transparent', borderWidth: DEFAULT_THUMB_SIZE / 2, borderStyle: 'solid', boxSizing: 'border-box', }, !disabled && checked && [ { backgroundColor: thumbCheckedBackground, selectors: (_f = {}, _f[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Window', borderColor: 'Window', }, _f), }, ], disabled && [ !checked && [ { backgroundColor: thumbDisabledBackground, }, ], checked && [ { backgroundColor: thumbCheckedDisabledBackground, }, ], ], ], text: [ 'ms-Toggle-stateText', { selectors: { // Workaround: make rules more specific than Label rules. '&&': { padding: '0', margin: '0 8px', userSelect: 'none', fontWeight: style_utilities_1.FontWeights.regular, }, }, }, disabled && { selectors: { '&&': { color: textDisabledColor, selectors: (_g = {}, _g[style_utilities_1.HighContrastSelector] = { color: 'GrayText', }, _g), }, }, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Toggle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Toggle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Toggle/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__(/*! ./Toggle */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Toggle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Toggle.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/Toggle.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.base.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.base.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipBase = 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 DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var TooltipBase = /** @class */ (function (_super) { tslib_1.__extends(TooltipBase, _super); function TooltipBase() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._onRenderContent = function (props) { if (typeof props.content === 'string') { return React.createElement("p", { className: _this._classNames.subText }, props.content); } else { return React.createElement("div", { className: _this._classNames.subText }, props.content); } }; return _this; } TooltipBase.prototype.render = function () { var _a = this.props, className = _a.className, calloutProps = _a.calloutProps, directionalHint = _a.directionalHint, directionalHintForRTL = _a.directionalHintForRTL, styles = _a.styles, id = _a.id, maxWidth = _a.maxWidth, _b = _a.onRenderContent, onRenderContent = _b === void 0 ? this._onRenderContent : _b, targetElement = _a.targetElement, theme = _a.theme; this._classNames = getClassNames(styles, { theme: theme, className: className || (calloutProps && calloutProps.className), beakWidth: calloutProps && calloutProps.isBeakVisible ? calloutProps.beakWidth : 0, gapSpace: calloutProps && calloutProps.gapSpace, maxWidth: maxWidth, }); return (React.createElement(Callout_1.Callout, tslib_1.__assign({ target: targetElement, directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL }, calloutProps, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, ['id']), { className: this._classNames.root }), React.createElement("div", { className: this._classNames.content, id: id, onFocus: this.props.onFocus, onMouseEnter: this.props.onMouseEnter, onMouseLeave: this.props.onMouseLeave }, onRenderContent(this.props, this._onRenderContent)))); }; // Specify default props values TooltipBase.defaultProps = { directionalHint: DirectionalHint_1.DirectionalHint.topCenter, maxWidth: '364px', calloutProps: { isBeakVisible: true, beakWidth: 16, gapSpace: 0, setInitialFocus: true, doNotLayer: false, }, }; return TooltipBase; }(React.Component)); exports.TooltipBase = TooltipBase; //# sourceMappingURL=Tooltip.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Tooltip = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Tooltip_base_1 = __webpack_require__(/*! ./Tooltip.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.base.js"); var Tooltip_styles_1 = __webpack_require__(/*! ./Tooltip.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.styles.js"); exports.Tooltip = (0, Utilities_1.styled)(Tooltip_base_1.TooltipBase, Tooltip_styles_1.getStyles, undefined, { scope: 'Tooltip', }); //# sourceMappingURL=Tooltip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.styles.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.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) { var className = props.className, _a = props.beakWidth, beakWidth = _a === void 0 ? 16 : _a, _b = props.gapSpace, gapSpace = _b === void 0 ? 0 : _b, maxWidth = props.maxWidth, theme = props.theme; var semanticColors = theme.semanticColors, fonts = theme.fonts, effects = theme.effects; // The math here is done to account for the 45 degree rotation of the beak // and sub-pixel rounding that differs across browsers, which is more noticeable when // the device pixel ratio is larger var tooltipGapSpace = -(Math.sqrt((beakWidth * beakWidth) / 2) + gapSpace) + 1 / window.devicePixelRatio; return { root: [ 'ms-Tooltip', theme.fonts.medium, Styling_1.AnimationClassNames.fadeIn200, { background: semanticColors.menuBackground, boxShadow: effects.elevation8, padding: '8px', maxWidth: maxWidth, selectors: { ':after': { content: "''", position: 'absolute', bottom: tooltipGapSpace, left: tooltipGapSpace, right: tooltipGapSpace, top: tooltipGapSpace, zIndex: 0, }, }, }, className, ], content: [ 'ms-Tooltip-content', fonts.small, { position: 'relative', zIndex: 1, color: semanticColors.menuItemText, wordWrap: 'break-word', overflowWrap: 'break-word', overflow: 'hidden', }, ], subText: [ 'ms-Tooltip-subtext', { // Using inherit here to avoid unintentional global overrides of the tag. fontSize: 'inherit', fontWeight: 'inherit', color: 'inherit', margin: 0, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Tooltip.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipDelay = void 0; /** * {@docCategory Tooltip} */ var TooltipDelay; (function (TooltipDelay) { TooltipDelay[TooltipDelay["zero"] = 0] = "zero"; /** 300 ms delay before showing the tooltip */ TooltipDelay[TooltipDelay["medium"] = 1] = "medium"; /** 500 ms delay before showing the tooltip */ TooltipDelay[TooltipDelay["long"] = 2] = "long"; })(TooltipDelay = exports.TooltipDelay || (exports.TooltipDelay = {})); //# sourceMappingURL=Tooltip.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipHostBase = 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 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 TooltipHost_types_1 = __webpack_require__(/*! ./TooltipHost.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js"); var Tooltip_1 = __webpack_require__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js"); var Tooltip_types_1 = __webpack_require__(/*! ./Tooltip.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var TooltipHostBase = /** @class */ (function (_super) { tslib_1.__extends(TooltipHostBase, _super); // Constructor function TooltipHostBase(props) { var _this = _super.call(this, props) || this; // The wrapping div that gets the hover events _this._tooltipHost = React.createRef(); _this._defaultTooltipId = (0, Utilities_1.getId)('tooltip'); _this.show = function () { _this._toggleTooltip(true); }; _this.dismiss = function () { _this._hideTooltip(); }; _this._getTargetElement = function () { if (!_this._tooltipHost.current) { return undefined; } var overflowMode = _this.props.overflowMode; // Select target element based on overflow mode. For parent mode, you want to position the tooltip relative // to the parent element, otherwise it might look off. if (overflowMode !== undefined) { switch (overflowMode) { case TooltipHost_types_1.TooltipOverflowMode.Parent: return _this._tooltipHost.current.parentElement; case TooltipHost_types_1.TooltipOverflowMode.Self: return _this._tooltipHost.current; } } return _this._tooltipHost.current; }; _this._onTooltipFocus = function (ev) { if (_this._ignoreNextFocusEvent) { _this._ignoreNextFocusEvent = false; return; } _this._onTooltipMouseEnter(ev); }; _this._onTooltipContentFocus = function (ev) { if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== _this) { TooltipHostBase._currentVisibleTooltip.dismiss(); } TooltipHostBase._currentVisibleTooltip = _this; _this._clearDismissTimer(); _this._clearOpenTimer(); }; _this._onTooltipBlur = function (ev) { // The focused element gets a blur event when the document loses focus // (e.g. switching tabs in the browser), but we don't want to show the // tooltip again when the document gets focus back. Handle this case by // checking if the blurred element is still the document's activeElement, // and ignoring when it next gets focus back. // See https://github.com/microsoft/fluentui/issues/13541 _this._ignoreNextFocusEvent = (document === null || document === void 0 ? void 0 : document.activeElement) === ev.target; _this._dismissTimerId = _this._async.setTimeout(function () { _this._hideTooltip(); }, 0); }; // Show Tooltip _this._onTooltipMouseEnter = function (ev) { var _a = _this.props, overflowMode = _a.overflowMode, delay = _a.delay; if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== _this) { TooltipHostBase._currentVisibleTooltip.dismiss(); } TooltipHostBase._currentVisibleTooltip = _this; if (overflowMode !== undefined) { var overflowElement = _this._getTargetElement(); if (overflowElement && !(0, Utilities_1.hasOverflow)(overflowElement)) { return; } } if (ev.target && (0, Utilities_1.portalContainsElement)(ev.target, _this._getTargetElement())) { // Do not show tooltip when target is inside a portal relative to TooltipHost. return; } _this._clearDismissTimer(); _this._clearOpenTimer(); if (delay !== Tooltip_types_1.TooltipDelay.zero) { var delayTime = _this._getDelayTime(delay); // non-null assertion because we set it in `defaultProps` _this._openTimerId = _this._async.setTimeout(function () { _this._toggleTooltip(true); }, delayTime); } else { _this._toggleTooltip(true); } }; // Hide Tooltip _this._onTooltipMouseLeave = function (ev) { var closeDelay = _this.props.closeDelay; _this._clearDismissTimer(); _this._clearOpenTimer(); if (closeDelay) { _this._dismissTimerId = _this._async.setTimeout(function () { _this._toggleTooltip(false); }, closeDelay); } else { _this._toggleTooltip(false); } if (TooltipHostBase._currentVisibleTooltip === _this) { TooltipHostBase._currentVisibleTooltip = undefined; } }; _this._onTooltipKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if ((ev.which === Utilities_1.KeyCodes.escape || ev.ctrlKey) && _this.state.isTooltipVisible) { _this._hideTooltip(); ev.stopPropagation(); } }; _this._clearDismissTimer = function () { _this._async.clearTimeout(_this._dismissTimerId); }; _this._clearOpenTimer = function () { _this._async.clearTimeout(_this._openTimerId); }; // Hide Tooltip _this._hideTooltip = function () { _this._clearOpenTimer(); _this._clearDismissTimer(); _this._toggleTooltip(false); }; _this._toggleTooltip = function (isTooltipVisible) { if (_this.state.isTooltipVisible !== isTooltipVisible) { _this.setState({ isTooltipVisible: isTooltipVisible }, function () { return _this.props.onTooltipToggle && _this.props.onTooltipToggle(isTooltipVisible); }); } }; _this._getDelayTime = function (delay) { switch (delay) { case Tooltip_types_1.TooltipDelay.medium: return 300; case Tooltip_types_1.TooltipDelay.long: return 500; default: return 0; } }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { isAriaPlaceholderRendered: false, isTooltipVisible: false, }; _this._async = new Utilities_1.Async(_this); return _this; } // Render TooltipHostBase.prototype.render = function () { var _a = this.props, calloutProps = _a.calloutProps, children = _a.children, content = _a.content, directionalHint = _a.directionalHint, directionalHintForRTL = _a.directionalHintForRTL, className = _a.hostClassName, id = _a.id, // eslint-disable-next-line deprecation/deprecation _b = _a.setAriaDescribedBy, // eslint-disable-next-line deprecation/deprecation setAriaDescribedBy = _b === void 0 ? true : _b, tooltipProps = _a.tooltipProps, styles = _a.styles, theme = _a.theme; this._classNames = getClassNames(styles, { theme: theme, className: className, }); var isTooltipVisible = this.state.isTooltipVisible; var tooltipId = id || this._defaultTooltipId; var tooltipRenderProps = tslib_1.__assign(tslib_1.__assign({ id: "".concat(tooltipId, "--tooltip"), content: content, targetElement: this._getTargetElement(), directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, calloutProps: (0, Utilities_1.assign)({}, calloutProps, { onDismiss: this._hideTooltip, onFocus: this._onTooltipContentFocus, onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave, }), onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave }, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, ['id'])), tooltipProps); // Get the content of the tooltip for use in the hidden div used for screen readers var tooltipContent = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.onRenderContent) ? tooltipProps.onRenderContent(tooltipRenderProps, function (props) { return ((props === null || props === void 0 ? void 0 : props.content) ? React.createElement(React.Fragment, null, props.content) : null); }) : content; var showTooltip = isTooltipVisible && !!tooltipContent; var ariaDescribedBy = setAriaDescribedBy && isTooltipVisible && !!tooltipContent ? tooltipId : undefined; return (React.createElement("div", tslib_1.__assign({ className: this._classNames.root, ref: this._tooltipHost }, { onFocusCapture: this._onTooltipFocus }, { onBlurCapture: this._onTooltipBlur }, { onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave, onKeyDown: this._onTooltipKeyDown, role: "none", "aria-describedby": ariaDescribedBy }), children, showTooltip && React.createElement(Tooltip_1.Tooltip, tslib_1.__assign({}, tooltipRenderProps)), React.createElement("div", { hidden: true, id: tooltipId, style: Styling_1.hiddenContentStyle }, tooltipContent))); }; TooltipHostBase.prototype.componentWillUnmount = function () { if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip === this) { TooltipHostBase._currentVisibleTooltip = undefined; } this._async.dispose(); }; TooltipHostBase.defaultProps = { delay: Tooltip_types_1.TooltipDelay.medium, }; return TooltipHostBase; }(React.Component)); exports.TooltipHostBase = TooltipHostBase; //# sourceMappingURL=TooltipHost.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipHost = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TooltipHost_base_1 = __webpack_require__(/*! ./TooltipHost.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js"); var TooltipHost_styles_1 = __webpack_require__(/*! ./TooltipHost.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.styles.js"); exports.TooltipHost = (0, Utilities_1.styled)(TooltipHost_base_1.TooltipHostBase, TooltipHost_styles_1.getStyles, undefined, { scope: 'TooltipHost', }); //# sourceMappingURL=TooltipHost.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.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-TooltipHost', ariaPlaceholder: 'ms-TooltipHost-aria-placeholder', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { display: 'inline', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=TooltipHost.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipOverflowMode = void 0; /** * {@docCategory Tooltip} */ var TooltipOverflowMode; (function (TooltipOverflowMode) { /** Only show tooltip if parent DOM element is overflowing */ TooltipOverflowMode[TooltipOverflowMode["Parent"] = 0] = "Parent"; /** * Only show tooltip if tooltip host's content is overflowing. * Note that this does not check the children for overflow, only the TooltipHost root. */ TooltipOverflowMode[TooltipOverflowMode["Self"] = 1] = "Self"; })(TooltipOverflowMode = exports.TooltipOverflowMode || (exports.TooltipOverflowMode = {})); //# sourceMappingURL=TooltipHost.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/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__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Tooltip.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Tooltip.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WeeklyDayPickerBase = 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_types_1 = __webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"); var CalendarDayGrid_1 = __webpack_require__(/*! ../CalendarDayGrid/CalendarDayGrid */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.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 defaults_1 = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var WeeklyDayPickerBase = /** @class */ (function (_super) { tslib_1.__extends(WeeklyDayPickerBase, _super); function WeeklyDayPickerBase(props) { var _this = _super.call(this, props) || this; _this._dayGrid = React.createRef(); _this._onSelectDate = function (date) { var onSelectDate = _this.props.onSelectDate; // don't set the navigated date on selection because selection never causes navigation _this.setState({ selectedDate: date, }); _this._focusOnUpdate = true; if (onSelectDate) { onSelectDate(date); } }; _this._onNavigateDate = function (date, focusOnNavigatedDay) { var onNavigateDate = _this.props.onNavigateDate; _this.setState({ navigatedDate: date, }); _this._focusOnUpdate = focusOnNavigatedDay; if (onNavigateDate) { onNavigateDate(date); } }; _this._renderPreviousWeekNavigationButton = function (classNames) { var _a; var _b = _this.props, minDate = _b.minDate, firstDayOfWeek = _b.firstDayOfWeek, navigationIcons = _b.navigationIcons; var navigatedDate = _this.state.navigatedDate; var leftNavigationIcon = (0, utilities_1.getRTL)() ? navigationIcons.rightNavigation : navigationIcons.leftNavigation; // determine if previous week in bounds var prevWeekInBounds = minDate ? (0, date_time_utilities_1.compareDatePart)(minDate, (0, date_time_utilities_1.getStartDateOfWeek)(navigatedDate, firstDayOfWeek)) < 0 : true; return (React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationIconButton, (_a = {}, _a[classNames.disabledStyle] = !prevWeekInBounds, _a)), disabled: !prevWeekInBounds, "aria-disabled": !prevWeekInBounds, onClick: prevWeekInBounds ? _this._onSelectPrevDateRange : undefined, onKeyDown: prevWeekInBounds ? _this._onButtonKeyDown(_this._onSelectPrevDateRange) : undefined, title: _this._createPreviousWeekAriaLabel(), type: "button" }, React.createElement(Icon_1.Icon, { iconName: leftNavigationIcon }))); }; _this._renderNextWeekNavigationButton = function (classNames) { var _a; var _b = _this.props, maxDate = _b.maxDate, firstDayOfWeek = _b.firstDayOfWeek, navigationIcons = _b.navigationIcons; var navigatedDate = _this.state.navigatedDate; var rightNavigationIcon = (0, utilities_1.getRTL)() ? navigationIcons.leftNavigation : navigationIcons.rightNavigation; // determine if next week in bounds var nextWeekInBounds = maxDate ? (0, date_time_utilities_1.compareDatePart)((0, date_time_utilities_1.addDays)((0, date_time_utilities_1.getStartDateOfWeek)(navigatedDate, firstDayOfWeek), 7), maxDate) < 0 : true; return (React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationIconButton, (_a = {}, _a[classNames.disabledStyle] = !nextWeekInBounds, _a)), disabled: !nextWeekInBounds, "aria-disabled": !nextWeekInBounds, onClick: nextWeekInBounds ? _this._onSelectNextDateRange : undefined, onKeyDown: nextWeekInBounds ? _this._onButtonKeyDown(_this._onSelectNextDateRange) : undefined, title: _this._createNextWeekAriaLabel(), type: "button" }, React.createElement(Icon_1.Icon, { iconName: rightNavigationIcon }))); }; _this._onSelectPrevDateRange = function () { if (_this.props.showFullMonth) { _this._navigateDate((0, date_time_utilities_1.addMonths)(_this.state.navigatedDate, -1)); } else { _this._navigateDate((0, date_time_utilities_1.addDays)(_this.state.navigatedDate, -7)); } }; _this._onSelectNextDateRange = function () { if (_this.props.showFullMonth) { _this._navigateDate((0, date_time_utilities_1.addMonths)(_this.state.navigatedDate, 1)); } else { _this._navigateDate((0, date_time_utilities_1.addDays)(_this.state.navigatedDate, 7)); } }; _this._navigateDate = function (date) { _this.setState({ navigatedDate: date, }); if (_this.props.onNavigateDate) { _this.props.onNavigateDate(date); } }; _this._onWrapperKeyDown = function (ev) { // 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; default: break; } }; _this._onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: callback(); break; } }; }; _this._onTouchStart = function (ev) { var touch = ev.touches[0]; if (touch) { _this._initialTouchX = touch.clientX; } }; _this._onTouchMove = function (ev) { var isRtl = (0, utilities_1.getRTL)(); var touch = ev.touches[0]; if (touch && _this._initialTouchX !== undefined && touch.clientX !== _this._initialTouchX) { if ((touch.clientX - _this._initialTouchX) * (isRtl ? -1 : 1) < 0) { // swipe right _this._onSelectNextDateRange(); } else { // swipe left _this._onSelectPrevDateRange(); } _this._initialTouchX = undefined; } }; _this._createPreviousWeekAriaLabel = function () { var _a = _this.props, strings = _a.strings, showFullMonth = _a.showFullMonth, firstDayOfWeek = _a.firstDayOfWeek; var navigatedDate = _this.state.navigatedDate; var ariaLabel = undefined; if (showFullMonth && strings.prevMonthAriaLabel) { ariaLabel = strings.prevMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, -1).getMonth()]; } else if (!showFullMonth && strings.prevWeekAriaLabel) { var firstDayOfPreviousWeek = (0, date_time_utilities_1.getStartDateOfWeek)((0, date_time_utilities_1.addDays)(navigatedDate, -7), firstDayOfWeek); var lastDayOfPreviousWeek = (0, date_time_utilities_1.addDays)(firstDayOfPreviousWeek, 6); ariaLabel = strings.prevWeekAriaLabel + ' ' + _this._formatDateRange(firstDayOfPreviousWeek, lastDayOfPreviousWeek); } return ariaLabel; }; _this._createNextWeekAriaLabel = function () { var _a = _this.props, strings = _a.strings, showFullMonth = _a.showFullMonth, firstDayOfWeek = _a.firstDayOfWeek; var navigatedDate = _this.state.navigatedDate; var ariaLabel = undefined; if (showFullMonth && strings.nextMonthAriaLabel) { ariaLabel = strings.nextMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, 1).getMonth()]; } else if (!showFullMonth && strings.nextWeekAriaLabel) { var firstDayOfNextWeek = (0, date_time_utilities_1.getStartDateOfWeek)((0, date_time_utilities_1.addDays)(navigatedDate, 7), firstDayOfWeek); var lastDayOfNextWeek = (0, date_time_utilities_1.addDays)(firstDayOfNextWeek, 6); ariaLabel = strings.nextWeekAriaLabel + ' ' + _this._formatDateRange(firstDayOfNextWeek, lastDayOfNextWeek); } return ariaLabel; }; _this._formatDateRange = function (startDate, endDate) { var _a = _this.props, dateTimeFormatter = _a.dateTimeFormatter, strings = _a.strings; return "".concat(dateTimeFormatter === null || dateTimeFormatter === void 0 ? void 0 : dateTimeFormatter.formatMonthDayYear(startDate, strings), " - ").concat(dateTimeFormatter === null || dateTimeFormatter === void 0 ? void 0 : dateTimeFormatter.formatMonthDayYear(endDate, strings)); }; (0, utilities_1.initializeComponentRef)(_this); var currentDate = props.initialDate && !isNaN(props.initialDate.getTime()) ? props.initialDate : props.today || new Date(); _this.state = { selectedDate: currentDate, navigatedDate: currentDate, previousShowFullMonth: !!props.showFullMonth, animationDirection: props.animationDirection, }; _this._focusOnUpdate = false; return _this; } WeeklyDayPickerBase.getDerivedStateFromProps = function (nextProps, prevState) { var currentDate = nextProps.initialDate && !isNaN(nextProps.initialDate.getTime()) ? nextProps.initialDate : nextProps.today || new Date(); var showFullMonth = !!nextProps.showFullMonth; var newAnimationDirection = showFullMonth !== prevState.previousShowFullMonth ? Calendar_types_1.AnimationDirection.Vertical : Calendar_types_1.AnimationDirection.Horizontal; if (!(0, date_time_utilities_1.compareDates)(currentDate, prevState.selectedDate)) { return { selectedDate: currentDate, navigatedDate: currentDate, previousShowFullMonth: showFullMonth, animationDirection: newAnimationDirection, }; } return { selectedDate: currentDate, navigatedDate: prevState.navigatedDate, previousShowFullMonth: showFullMonth, animationDirection: newAnimationDirection, }; }; WeeklyDayPickerBase.prototype.focus = function () { if (this._dayGrid && this._dayGrid.current) { this._dayGrid.current.focus(); } }; WeeklyDayPickerBase.prototype.render = function () { var _a = this.props, strings = _a.strings, dateTimeFormatter = _a.dateTimeFormatter, firstDayOfWeek = _a.firstDayOfWeek, minDate = _a.minDate, maxDate = _a.maxDate, restrictedDates = _a.restrictedDates, today = _a.today, styles = _a.styles, theme = _a.theme, className = _a.className, showFullMonth = _a.showFullMonth, weeksToShow = _a.weeksToShow, calendarDayGridProps = tslib_1.__rest(_a, ["strings", "dateTimeFormatter", "firstDayOfWeek", "minDate", "maxDate", "restrictedDates", "today", "styles", "theme", "className", "showFullMonth", "weeksToShow"]); var classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: classNames.root, onKeyDown: this._onWrapperKeyDown, onTouchStart: this._onTouchStart, onTouchMove: this._onTouchMove, "aria-expanded": showFullMonth }, this._renderPreviousWeekNavigationButton(classNames), React.createElement(CalendarDayGrid_1.CalendarDayGrid, tslib_1.__assign({ styles: styles, componentRef: this._dayGrid, strings: strings, selectedDate: this.state.selectedDate, navigatedDate: this.state.navigatedDate, firstDayOfWeek: firstDayOfWeek, firstWeekOfYear: date_time_utilities_1.FirstWeekOfYear.FirstDay, dateRangeType: date_time_utilities_1.DateRangeType.Day, weeksToShow: showFullMonth ? weeksToShow : 1, dateTimeFormatter: dateTimeFormatter, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, onSelectDate: this._onSelectDate, onNavigateDate: this._onNavigateDate, today: today, lightenDaysOutsideNavigatedMonth: showFullMonth, animationDirection: this.state.animationDirection }, calendarDayGridProps)), this._renderNextWeekNavigationButton(classNames))); }; WeeklyDayPickerBase.prototype.componentDidUpdate = function () { if (this._focusOnUpdate) { this.focus(); this._focusOnUpdate = false; } }; WeeklyDayPickerBase.defaultProps = { onSelectDate: undefined, initialDate: undefined, today: new Date(), firstDayOfWeek: date_time_utilities_1.DayOfWeek.Sunday, strings: defaults_1.defaultWeeklyDayPickerStrings, navigationIcons: defaults_1.defaultWeeklyDayPickerNavigationIcons, dateTimeFormatter: date_time_utilities_1.DEFAULT_DATE_FORMATTING, animationDirection: Calendar_types_1.AnimationDirection.Horizontal, }; return WeeklyDayPickerBase; }(React.Component)); exports.WeeklyDayPickerBase = WeeklyDayPickerBase; //# sourceMappingURL=WeeklyDayPicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WeeklyDayPicker = void 0; var WeeklyDayPicker_base_1 = __webpack_require__(/*! ./WeeklyDayPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js"); var WeeklyDayPicker_styles_1 = __webpack_require__(/*! ./WeeklyDayPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.WeeklyDayPicker = (0, Utilities_1.styled)(WeeklyDayPicker_base_1.WeeklyDayPickerBase, WeeklyDayPicker_styles_1.styles, undefined, { scope: 'WeeklyDayPicker' }); //# sourceMappingURL=WeeklyDayPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.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 utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var GlobalClassNames = { root: 'ms-WeeklyDayPicker-root', }; var styles = function (props) { var _a; var className = props.className, theme = props.theme; var palette = theme.palette; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, style_utilities_1.normalize, { width: 220, padding: 12, boxSizing: 'content-box', display: 'flex', alignItems: 'center', flexDirection: 'row', }, className, ], dayButton: { borderRadius: '100%', }, dayIsToday: {}, dayCell: { borderRadius: '100%!important', }, daySelected: {}, navigationIconButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: 0 }), { width: 12, minWidth: 12, height: 0, overflow: 'hidden', padding: 0, margin: 0, border: 'none', display: 'flex', alignItems: 'center', backgroundColor: palette.neutralLighter, fontSize: style_utilities_1.FontSizes.small, fontFamily: 'inherit', selectors: (_a = {}, _a[".".concat(classNames.root, ":hover &, .").concat(utilities_1.IsFocusVisibleClassName, " .").concat(classNames.root, ":focus &, ") + ".".concat(utilities_1.IsFocusVisibleClassName, " &:focus")] = { height: 53, minHeight: 12, overflow: 'initial', }, _a[".".concat(utilities_1.IsFocusVisibleClassName, " .").concat(classNames.root, ":focus-within &")] = { // edge does not recognize focus-within, so separate it out height: 53, minHeight: 12, overflow: 'initial', }, _a['&:hover'] = { cursor: 'pointer', backgroundColor: palette.neutralLight, }, _a['&:active'] = { backgroundColor: palette.neutralTertiary, }, _a), }, ], disabledStyle: { selectors: { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }, }; }; exports.styles = styles; //# sourceMappingURL=WeeklyDayPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=WeeklyDayPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultWeeklyDayPickerNavigationIcons = exports.defaultWeeklyDayPickerStrings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); exports.defaultWeeklyDayPickerStrings = tslib_1.__assign(tslib_1.__assign({}, date_time_utilities_1.DEFAULT_CALENDAR_STRINGS), { prevWeekAriaLabel: 'Previous week', nextWeekAriaLabel: 'Next week', prevMonthAriaLabel: 'Go to previous month', nextMonthAriaLabel: 'Go to next month', prevYearAriaLabel: 'Go to previous year', nextYearAriaLabel: 'Go to next year', closeButtonAriaLabel: 'Close date picker' }); exports.defaultWeeklyDayPickerNavigationIcons = { leftNavigation: 'ChevronLeft', rightNavigation: 'ChevronRight', }; //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/index.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/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__(/*! ./WeeklyDayPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./WeeklyDayPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.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"); // Deprecated, import directly from the component folder now. tslib_1.__exportStar(__webpack_require__(/*! ../../Autofill/Autofill */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.js"), exports); //# sourceMappingURL=BaseAutoFill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.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"); // Deprecated, import directly from the component folder now. tslib_1.__exportStar(__webpack_require__(/*! ../../Autofill/Autofill.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.types.js"), exports); //# sourceMappingURL=BaseAutoFill.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BasePickerListBelow = exports.BasePicker = 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 index_1 = __webpack_require__(/*! ../../utilities/selection/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Suggestions_1 = __webpack_require__(/*! ./Suggestions/Suggestions */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js"); var Suggestions_styles_1 = __webpack_require__(/*! ./Suggestions/Suggestions.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js"); var SuggestionsController_1 = __webpack_require__(/*! ./Suggestions/SuggestionsController */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js"); var BasePicker_types_1 = __webpack_require__(/*! ./BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var index_2 = __webpack_require__(/*! ../Autofill/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/index.js"); var stylesImport = __webpack_require__(/*! ./BasePicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js"); var legacyStyles = stylesImport; var EXTENDED_LOAD_TIME = 3000; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * Should be removed once new picker without inheritance is created */ function getStyledSuggestions(suggestionsType) { return (0, Utilities_1.styled)(suggestionsType, Suggestions_styles_1.getStyles, undefined, { scope: 'Suggestions', }); } /** * {@docCategory Pickers} */ var BasePicker = /** @class */ (function (_super) { tslib_1.__extends(BasePicker, _super); function BasePicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; // Refs _this.root = React.createRef(); _this.input = React.createRef(); _this.suggestionElement = React.createRef(); /** * @deprecated this is no longer necessary as typescript now supports generic elements */ _this.SuggestionOfProperType = Suggestions_1.Suggestions; // eslint-disable-next-line deprecation/deprecation _this._styledSuggestions = getStyledSuggestions(_this.SuggestionOfProperType); _this._overrideScrollDismiss = false; _this.dismissSuggestions = function (ev) { var selectItemFunction = function () { var addItemOnDismiss = true; if (_this.props.onDismiss) { addItemOnDismiss = _this.props.onDismiss(ev, _this.suggestionStore.currentSuggestion ? _this.suggestionStore.currentSuggestion.item : undefined); } if (!ev || (ev && !ev.defaultPrevented)) { // Select the first suggestion if one is available and permitted by onDismiss when user leaves. if (addItemOnDismiss !== false && _this.canAddItems() && _this.suggestionStore.hasSelectedSuggestion() && _this.state.suggestedDisplayValue) { _this.addItemByIndex(0); } } }; if (_this.currentPromise) { _this.currentPromise.then(function () { return selectItemFunction(); }); } else { selectItemFunction(); } _this.setState({ suggestionsVisible: false }); }; _this.refocusSuggestions = function (keyCode) { _this.resetFocus(); if (_this.suggestionStore.suggestions && _this.suggestionStore.suggestions.length > 0) { if (keyCode === Utilities_1.KeyCodes.up) { _this.suggestionStore.setSelectedSuggestion(_this.suggestionStore.suggestions.length - 1); } else if (keyCode === Utilities_1.KeyCodes.down) { _this.suggestionStore.setSelectedSuggestion(0); } } }; _this.onInputChange = function (value) { _this.updateValue(value); _this.setState({ moreSuggestionsAvailable: true, isMostRecentlyUsedVisible: false, }); }; _this.onSuggestionClick = function (ev, item, index) { _this.addItemByIndex(index); }; _this.onSuggestionRemove = function (ev, item, index) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(item); } _this.suggestionStore.removeSuggestion(index); }; _this.onInputFocus = function (ev) { _this.selection.setAllSelected(false); // Only trigger all of the focus if this component isn't already focused. // For example when an item is selected or removed from the selected list it should be treated // as though the input is still focused. if (!_this.state.isFocused) { _this._userTriggeredSuggestions(); if (_this.props.inputProps && _this.props.inputProps.onFocus) { _this.props.inputProps.onFocus(ev); } } }; _this.onInputBlur = function (ev) { if (_this.props.inputProps && _this.props.inputProps.onBlur) { _this.props.inputProps.onBlur(ev); } }; _this.onBlur = function (ev) { if (_this.state.isFocused) { // Only blur the entire component if an unrelated element gets focus. // Otherwise treat it as though it still has focus. // Do nothing if the blur is coming from something // inside the comboBox root or the comboBox menu since // it we are not really bluring from the whole comboBox 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 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 && !(0, Utilities_1.elementContains)(_this.root.current, relatedTarget)) { _this.setState({ isFocused: false }); if (_this.props.onBlur) { _this.props.onBlur(ev); } } } }; /** * Resets focus to last element in wrapper div if clicking back into Picker that has hit item limit */ _this.onWrapperClick = function (ev) { if (_this.state.items.length && !_this.canAddItems()) { _this.resetFocus(_this.state.items.length - 1); } }; /** * Reveals suggestions any time the user clicks on the input element * without shifting focus. */ _this.onClick = function (ev) { if (_this.props.inputProps !== undefined && _this.props.inputProps.onClick !== undefined) { _this.props.inputProps.onClick(ev); } // Only primary (left) clicks show suggestions. if (ev.button === 0) { _this._userTriggeredSuggestions(); } }; _this.onFocus = function () { if (!_this.state.isFocused) { _this.setState({ isFocused: true }); } }; _this.onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation var keyCode = ev.which; switch (keyCode) { case Utilities_1.KeyCodes.escape: if (_this.state.suggestionsVisible) { _this.setState({ suggestionsVisible: false }); ev.preventDefault(); ev.stopPropagation(); } break; case Utilities_1.KeyCodes.tab: case Utilities_1.KeyCodes.enter: if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedActionSelected()) { _this.suggestionElement.current.executeSelectedAction(); } else if (!ev.shiftKey && _this.suggestionStore.hasSelectedSuggestion() && _this.state.suggestionsVisible) { _this.completeSuggestion(); ev.preventDefault(); ev.stopPropagation(); } else { _this._completeGenericSuggestion(); } break; case Utilities_1.KeyCodes.backspace: if (!_this.props.disabled) { _this.onBackspace(ev); } ev.stopPropagation(); break; case Utilities_1.KeyCodes.del: if (!_this.props.disabled) { if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible && _this.suggestionStore.currentIndex !== -1) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(_this.suggestionStore.currentSuggestion.item); } _this.suggestionStore.removeSuggestion(_this.suggestionStore.currentIndex); _this.forceUpdate(); } else { _this.onBackspace(ev); } } ev.stopPropagation(); break; case Utilities_1.KeyCodes.up: if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible) { if (_this.suggestionElement.current && _this.suggestionElement.current.tryHandleKeyDown(keyCode, _this.suggestionStore.currentIndex)) { ev.preventDefault(); ev.stopPropagation(); _this.forceUpdate(); } else { if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedAction() && _this.suggestionStore.currentIndex === 0) { ev.preventDefault(); ev.stopPropagation(); _this.suggestionElement.current.focusAboveSuggestions(); _this.suggestionStore.deselectAllSuggestions(); _this.forceUpdate(); } else { if (_this.suggestionStore.previousSuggestion()) { ev.preventDefault(); ev.stopPropagation(); _this.onSuggestionSelect(); } } } } break; case Utilities_1.KeyCodes.down: if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible) { if (_this.suggestionElement.current && _this.suggestionElement.current.tryHandleKeyDown(keyCode, _this.suggestionStore.currentIndex)) { ev.preventDefault(); ev.stopPropagation(); _this.forceUpdate(); } else { if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedAction() && _this.suggestionStore.currentIndex + 1 === _this.suggestionStore.suggestions.length) { ev.preventDefault(); ev.stopPropagation(); _this.suggestionElement.current.focusBelowSuggestions(); _this.suggestionStore.deselectAllSuggestions(); _this.forceUpdate(); } else { if (_this.suggestionStore.nextSuggestion()) { ev.preventDefault(); ev.stopPropagation(); _this.onSuggestionSelect(); } } } } break; } }; _this.onItemChange = function (changedItem, index) { var items = _this.state.items; if (index >= 0) { var newItems = items; newItems[index] = changedItem; _this._updateSelectedItems(newItems); } }; _this.onGetMoreResults = function () { _this.setState({ isSearching: true, }, function () { if (_this.props.onGetMoreResults && _this.input.current) { var suggestions = _this.props.onGetMoreResults(_this.input.current.value, _this.state.items); var suggestionsArray = suggestions; var suggestionsPromiseLike = suggestions; if (Array.isArray(suggestionsArray)) { _this.updateSuggestions(suggestionsArray); _this.setState({ isSearching: false }); } else if (suggestionsPromiseLike.then) { suggestionsPromiseLike.then(function (newSuggestions) { _this.updateSuggestions(newSuggestions); _this.setState({ isSearching: false }); }); } } else { _this.setState({ isSearching: false }); } if (_this.input.current) { _this.input.current.focus(); } _this.setState({ moreSuggestionsAvailable: false, isResultsFooterVisible: true, }); }); }; _this.completeSelection = function (item) { _this.addItem(item); _this.updateValue(''); if (_this.input.current) { _this.input.current.clear(); } _this.setState({ suggestionsVisible: false }); }; _this.addItemByIndex = function (index) { _this.completeSelection(_this.suggestionStore.getSuggestionAtIndex(index).item); }; _this.addItem = function (item) { var processedItem = _this.props.onItemSelected ? _this.props.onItemSelected(item) : item; if (processedItem === null) { return; } var processedItemObject = processedItem; var processedItemPromiseLike = processedItem; if (processedItemPromiseLike && processedItemPromiseLike.then) { processedItemPromiseLike.then(function (resolvedProcessedItem) { var newItems = _this.state.items.concat([resolvedProcessedItem]); _this._updateSelectedItems(newItems); }); } else { var newItems = _this.state.items.concat([processedItemObject]); _this._updateSelectedItems(newItems); } _this.setState({ suggestedDisplayValue: '', selectionRemoved: undefined }); }; _this.removeItem = function (item) { var items = _this.state.items; var index = items.indexOf(item); if (index >= 0) { var newItems = items.slice(0, index).concat(items.slice(index + 1)); _this.setState({ selectionRemoved: item }); _this._updateSelectedItems(newItems); // reset selection removed text after a timeout so it isn't reached by screen reader virtual cursor. // the exact timing isn't important, the live region will fully read even if the text is removed. _this._async.setTimeout(function () { _this.setState({ selectionRemoved: undefined }); }, 1000); } }; _this.removeItems = function (itemsToRemove) { var items = _this.state.items; var newItems = items.filter(function (item) { return itemsToRemove.indexOf(item) === -1; }); _this._updateSelectedItems(newItems); }; /** * @deprecated this is no longer necessary as focuszone has been removed */ _this._shouldFocusZoneEnterInnerZone = function (ev) { // If suggestions are shown const up/down keys control them, otherwise allow them through to control the focusZone. if (_this.state.suggestionsVisible) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.up: case Utilities_1.KeyCodes.down: return true; } } // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { return true; } return false; }; _this._onResolveSuggestions = function (updatedValue) { var suggestions = _this.props.onResolveSuggestions(updatedValue, _this.state.items); if (suggestions !== null) { _this.updateSuggestionsList(suggestions, updatedValue); } }; _this._completeGenericSuggestion = function () { if (_this.props.onValidateInput && _this.input.current && _this.props.onValidateInput(_this.input.current.value) !== BasePicker_types_1.ValidationState.invalid && _this.props.createGenericItem) { var itemToConvert = _this.props.createGenericItem(_this.input.current.value, _this.props.onValidateInput(_this.input.current.value)); _this.suggestionStore.createGenericSuggestion(itemToConvert); _this.completeSuggestion(); } }; /** * This should be called when the user does something other than use text entry to trigger suggestions. * */ _this._userTriggeredSuggestions = function () { if (!_this.state.suggestionsVisible) { var input = _this.input.current ? _this.input.current.value : ''; if (!input) { _this.onEmptyInputFocus(); } else { if (_this.suggestionStore.suggestions.length === 0) { _this._onResolveSuggestions(input); } else { _this.setState({ isMostRecentlyUsedVisible: false, suggestionsVisible: true, }); } } } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); var items = basePickerProps.selectedItems || basePickerProps.defaultSelectedItems || []; _this._id = (0, Utilities_1.getId)(); _this._ariaMap = { selectedItems: "selected-items-".concat(_this._id), selectedSuggestionAlert: "selected-suggestion-alert-".concat(_this._id), suggestionList: "suggestion-list-".concat(_this._id), combobox: "combobox-".concat(_this._id), }; _this.suggestionStore = new SuggestionsController_1.SuggestionsController(); _this.selection = new index_1.Selection({ onSelectionChanged: function () { return _this.onSelectionChange(); } }); _this.selection.setItems(items); _this.state = { items: items, suggestedDisplayValue: '', isMostRecentlyUsedVisible: false, moreSuggestionsAvailable: false, isFocused: false, isSearching: false, selectedIndices: [], selectionRemoved: undefined, }; return _this; } BasePicker.getDerivedStateFromProps = function (newProps) { if (newProps.selectedItems) { return { items: newProps.selectedItems }; } return null; }; Object.defineProperty(BasePicker.prototype, "items", { get: function () { return this.state.items; }, enumerable: false, configurable: true }); BasePicker.prototype.componentDidMount = function () { this.selection.setItems(this.state.items); this._onResolveSuggestions = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay); }; BasePicker.prototype.componentDidUpdate = function (oldProps, oldState) { var _this = this; if (this.state.items && this.state.items !== oldState.items) { var currentSelectedIndex = this.selection.getSelectedIndices()[0]; this.selection.setItems(this.state.items); if (this.state.isFocused) { // Reset focus and selection so that selected item stays in sync if something // has been removed if (this.state.items.length < oldState.items.length) { this.selection.setIndexSelected(currentSelectedIndex, false, true); this.resetFocus(currentSelectedIndex); } // Reset focus to last item if the input is removed else if (this.state.items.length > oldState.items.length && !this.canAddItems()) { this.resetFocus(this.state.items.length - 1); } } } // handle dismiss buffer after suggestions are opened if (this.state.suggestionsVisible && !oldState.suggestionsVisible) { this._overrideScrollDismiss = true; this._async.clearTimeout(this._overrideScrollDimissTimeout); this._overrideScrollDimissTimeout = this._async.setTimeout(function () { _this._overrideScrollDismiss = false; }, 100); } }; BasePicker.prototype.componentWillUnmount = function () { if (this.currentPromise) { this.currentPromise = undefined; } this._async.dispose(); }; BasePicker.prototype.focus = function () { if (this.input.current) { this.input.current.focus(); } }; BasePicker.prototype.focusInput = function () { if (this.input.current) { this.input.current.focus(); } }; BasePicker.prototype.completeSuggestion = function (forceComplete) { if (this.suggestionStore.hasSelectedSuggestion() && this.input.current) { this.completeSelection(this.suggestionStore.currentSuggestion.item); } else if (forceComplete) { this._completeGenericSuggestion(); } }; BasePicker.prototype.render = function () { var _a = this.state, suggestedDisplayValue = _a.suggestedDisplayValue, isFocused = _a.isFocused, items = _a.items; var _b = this.props, className = _b.className, inputProps = _b.inputProps, disabled = _b.disabled, selectionAriaLabel = _b.selectionAriaLabel, _c = _b.selectionRole, selectionRole = _c === void 0 ? 'list' : _c, theme = _b.theme, styles = _b.styles; var suggestionsVisible = !!this.state.suggestionsVisible; var suggestionsAvailable = suggestionsVisible ? this._ariaMap.suggestionList : undefined; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from BasePicker class because it // might be used by consumers who created custom pickers from extending from // this base class and have not used the new 'styles' prop. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // for every other already existing picker variant (PeoplePicker, TagPicker) // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, isFocused: isFocused, disabled: disabled, inputClassName: inputProps && inputProps.className, }) : { root: (0, Utilities_1.css)('ms-BasePicker', className ? className : ''), text: (0, Utilities_1.css)('ms-BasePicker-text', legacyStyles.pickerText, this.state.isFocused && legacyStyles.inputFocused), itemsWrapper: legacyStyles.pickerItems, input: (0, Utilities_1.css)('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className), screenReaderText: legacyStyles.screenReaderOnly, }; var comboLabel = this.props['aria-label'] || (inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label']); // selectionAriaLabel is contained in a separate rather than an aria-label on the items list // because if the items list has an aria-label, the aria-describedby on the input will only read // that label instead of all the selected items. Using aria-labelledby instead fixes this, since // aria-describedby and aria-labelledby will not follow a second aria-labelledby return (React.createElement("div", { ref: this.root, className: classNames.root, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onWrapperClick }, this.renderCustomAlert(classNames.screenReaderText), React.createElement("span", { id: "".concat(this._ariaMap.selectedItems, "-label"), hidden: true }, selectionAriaLabel || comboLabel), React.createElement(index_1.SelectionZone, { selection: this.selection, selectionMode: index_1.SelectionMode.multiple }, React.createElement("div", { className: classNames.text, "aria-owns": suggestionsAvailable }, items.length > 0 && (React.createElement("span", { id: this._ariaMap.selectedItems, className: classNames.itemsWrapper, role: selectionRole, "aria-labelledby": "".concat(this._ariaMap.selectedItems, "-label") }, this.renderItems())), this.canAddItems() && (React.createElement(index_2.Autofill, tslib_1.__assign({ spellCheck: false }, inputProps, { className: classNames.input, componentRef: this.input, id: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) ? inputProps.id : this._ariaMap.combobox, onClick: this.onClick, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onInputValueChange: this.onInputChange, suggestedDisplayValue: suggestedDisplayValue, "aria-activedescendant": suggestionsVisible ? this.getActiveDescendant() : undefined, "aria-controls": suggestionsAvailable, "aria-describedby": items.length > 0 ? this._ariaMap.selectedItems : undefined, "aria-expanded": suggestionsVisible, "aria-haspopup": "listbox", "aria-label": comboLabel, role: "combobox", disabled: disabled, onInputChange: this.props.onInputChange }))))), this.renderSuggestions())); }; BasePicker.prototype.canAddItems = function () { var items = this.state.items; var itemLimit = this.props.itemLimit; return itemLimit === undefined || items.length < itemLimit; }; BasePicker.prototype.renderSuggestions = function () { var _this = this; var StyledTypedSuggestions = this._styledSuggestions; return this.state.suggestionsVisible && this.input ? (React.createElement(Callout_1.Callout, tslib_1.__assign({ isBeakVisible: false, gapSpace: 5, target: this.input.current ? this.input.current.inputElement : undefined, onDismiss: this.dismissSuggestions, directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint_1.DirectionalHint.bottomRightEdge, // eslint-disable-next-line react/jsx-no-bind preventDismissOnEvent: function (ev) { return _this._preventDismissOnScrollOrResize(ev); } }, this.props.pickerCalloutProps), React.createElement(StyledTypedSuggestions // Assumed to set in derived component's defaultProps , tslib_1.__assign({ // Assumed to set in derived component's defaultProps onRenderSuggestion: this.props.onRenderSuggestionsItem, onSuggestionClick: this.onSuggestionClick, onSuggestionRemove: this.onSuggestionRemove, suggestions: this.suggestionStore.getSuggestions(), componentRef: this.suggestionElement, onGetMoreResults: this.onGetMoreResults, moreSuggestionsAvailable: this.state.moreSuggestionsAvailable, isLoading: this.state.suggestionsLoading, isExtendedLoading: this.state.suggestionsExtendedLoading, isSearching: this.state.isSearching, isMostRecentlyUsedVisible: this.state.isMostRecentlyUsedVisible, isResultsFooterVisible: this.state.isResultsFooterVisible, refocusSuggestions: this.refocusSuggestions, removeSuggestionAriaLabel: this.props.removeButtonAriaLabel, suggestionsListId: this._ariaMap.suggestionList, createGenericItem: this._completeGenericSuggestion }, this.props.pickerSuggestionsProps)))) : null; }; BasePicker.prototype.renderItems = function () { var _this = this; var _a = this.props, disabled = _a.disabled, removeButtonAriaLabel = _a.removeButtonAriaLabel, removeButtonIconProps = _a.removeButtonIconProps; var onRenderItem = this.props.onRenderItem; var _b = this.state, items = _b.items, selectedIndices = _b.selectedIndices; return items.map(function (item, index) { return onRenderItem({ item: item, index: index, key: item.key ? item.key : index, selected: selectedIndices.indexOf(index) !== -1, onRemoveItem: function () { return _this.removeItem(item); }, disabled: disabled, onItemChange: _this.onItemChange, removeButtonAriaLabel: removeButtonAriaLabel, removeButtonIconProps: removeButtonIconProps, }); }); }; BasePicker.prototype.resetFocus = function (index) { var items = this.state.items; if (items.length) { // default to focusing the last item index = index !== null && index !== void 0 ? index : items.length - 1; var newEl = this.root.current && this.root.current.querySelectorAll('[data-selection-index] > button')[Math.min(index, items.length - 1)]; if (newEl) { newEl.focus(); } } else { if (this.input.current) { this.input.current.focus(); } } }; BasePicker.prototype.onSuggestionSelect = function () { if (this.suggestionStore.currentSuggestion) { var currentValue = this.input.current ? this.input.current.value : ''; var itemValue = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, currentValue); this.setState({ suggestedDisplayValue: itemValue }); } }; BasePicker.prototype.onSelectionChange = function () { this.setState({ selectedIndices: this.selection.getSelectedIndices(), }); }; BasePicker.prototype.updateSuggestions = function (suggestions) { var _a; var maxSuggestionsCount = (_a = this.props.pickerSuggestionsProps) === null || _a === void 0 ? void 0 : _a.resultsMaximumNumber; this.suggestionStore.updateSuggestions(suggestions, 0, maxSuggestionsCount); this.forceUpdate(); }; /** * Only to be called when there is nothing in the input. Checks to see if the consumer has * provided a function to resolve suggestions */ BasePicker.prototype.onEmptyInputFocus = function () { var emptyResolveSuggestions = this.props.onEmptyResolveSuggestions ? this.props.onEmptyResolveSuggestions : // eslint-disable-next-line deprecation/deprecation this.props.onEmptyInputFocus; // Only attempt to resolve suggestions if it exists if (emptyResolveSuggestions) { var suggestions = emptyResolveSuggestions(this.state.items); this.updateSuggestionsList(suggestions); this.setState({ isMostRecentlyUsedVisible: true, suggestionsVisible: true, moreSuggestionsAvailable: false, }); } }; BasePicker.prototype.updateValue = function (updatedValue) { this._onResolveSuggestions(updatedValue); }; BasePicker.prototype.updateSuggestionsList = function (suggestions, updatedValue) { 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._updateAndResolveValue(updatedValue, suggestions); } else if (suggestions && suggestions.then) { this.setState({ suggestionsLoading: true, }); this._startLoadTimer(); // Clear suggestions this.suggestionStore.updateSuggestions([]); if (updatedValue !== undefined) { this.setState({ suggestionsVisible: this._getShowSuggestions(), }); } else { this.setState({ suggestionsVisible: this.input.current && this.input.current.inputElement === document.activeElement, }); } // Ensure that the promise will only use the callback if it was the most recent one. this.currentPromise = suggestions; suggestions.then(function (newSuggestions) { if (suggestions === _this.currentPromise) { _this._updateAndResolveValue(updatedValue, newSuggestions); } }); } }; BasePicker.prototype.resolveNewValue = function (updatedValue, suggestions) { var _this = this; this.updateSuggestions(suggestions); var itemValue = undefined; if (this.suggestionStore.currentSuggestion) { itemValue = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, updatedValue); } // Only set suggestionloading to false after there has been time for the new suggestions to flow // to the suggestions list. This is to ensure that the suggestions are available before aria-activedescendant // is set so that screen readers will read out the first selected option. this.setState({ suggestedDisplayValue: itemValue, suggestionsVisible: this._getShowSuggestions(), }, function () { return _this.setState({ suggestionsLoading: false, suggestionsExtendedLoading: false }); }); }; BasePicker.prototype.onChange = function (items) { if (this.props.onChange) { this.props.onChange(items); } }; // 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 BasePicker.prototype.onBackspace = function (ev) { if ((this.state.items.length && !this.input.current) || (this.input.current && !this.input.current.isValueSelected && this.input.current.cursorLocation === 0)) { if (this.selection.getSelectedCount() > 0) { this.removeItems(this.selection.getSelection()); } else { this.removeItem(this.state.items[this.state.items.length - 1]); } } }; BasePicker.prototype.getActiveDescendant = function () { var _a; if (this.state.suggestionsLoading) { return undefined; } var currentIndex = this.suggestionStore.currentIndex; if (currentIndex < 0) { // if the suggestions element has actions and the currentIndex does not point to a suggestion, // return the action id if ((_a = this.suggestionElement.current) === null || _a === void 0 ? void 0 : _a.hasSuggestedAction()) { return 'sug-selectedAction'; } // If there are no suggestions and no action suggested, then return the ID for the no results found. if (this.suggestionStore.suggestions.length === 0) { return 'sug-noResultsFound'; } return undefined; } else { return "sug-".concat(currentIndex); } }; /** @deprecated use renderCustomAlert instead */ BasePicker.prototype.getSuggestionsAlert = function (suggestionAlertClassName) { if (suggestionAlertClassName === void 0) { suggestionAlertClassName = legacyStyles.screenReaderOnly; } var currentIndex = this.suggestionStore.currentIndex; if (this.props.enableSelectedSuggestionAlert) { var selectedSuggestion = currentIndex > -1 ? this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex) : undefined; var selectedSuggestionAlertText = selectedSuggestion ? selectedSuggestion.ariaLabel : undefined; // keeping the id/className here for legacy support return (React.createElement("div", { id: this._ariaMap.selectedSuggestionAlert, className: suggestionAlertClassName }, "".concat(selectedSuggestionAlertText, " "))); } }; BasePicker.prototype.renderCustomAlert = function (alertClassName) { if (alertClassName === void 0) { alertClassName = legacyStyles.screenReaderOnly; } var _a = this.props.suggestionRemovedText, suggestionRemovedText = _a === void 0 ? 'removed {0}' : _a; var removedItemText = ''; if (this.state.selectionRemoved) { var itemName = this._getTextFromItem(this.state.selectionRemoved, ''); removedItemText = (0, Utilities_1.format)(suggestionRemovedText, itemName); } return (React.createElement("div", { className: alertClassName, id: this._ariaMap.selectedSuggestionAlert, "aria-live": "assertive" }, // eslint-disable-next-line deprecation/deprecation this.getSuggestionsAlert(alertClassName), removedItemText)); }; // 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 BasePicker.prototype._preventDismissOnScrollOrResize = function (ev) { if (this._overrideScrollDismiss && (ev.type === 'scroll' || ev.type === 'resize')) { return true; } return false; }; /** If suggestions are still loading after a predefined amount of time, set state to show user alert */ BasePicker.prototype._startLoadTimer = function () { var _this = this; this._async.setTimeout(function () { if (_this.state.suggestionsLoading) { _this.setState({ suggestionsExtendedLoading: true }); } }, EXTENDED_LOAD_TIME); }; /** * Takes in the current updated value and either resolves it with the new suggestions * or if updated value is undefined then it clears out currently suggested items */ BasePicker.prototype._updateAndResolveValue = function (updatedValue, newSuggestions) { var _a; if (updatedValue !== undefined) { this.resolveNewValue(updatedValue, newSuggestions); } else { var maxSuggestionsCount = (_a = this.props.pickerSuggestionsProps) === null || _a === void 0 ? void 0 : _a.resultsMaximumNumber; this.suggestionStore.updateSuggestions(newSuggestions, -1, maxSuggestionsCount); if (this.state.suggestionsLoading) { this.setState({ suggestionsLoading: false, suggestionsExtendedLoading: false, }); } } }; /** * Controls what happens whenever there is an action that impacts the selected items. * If `selectedItems` is provided, this will act as a controlled component and it will not update its own state. */ BasePicker.prototype._updateSelectedItems = function (items) { var _this = this; if (this.props.selectedItems) { // If the component is a controlled component then the controlling component will need to add or remove the items. this.onChange(items); } else { this.setState({ items: items }, function () { _this._onSelectedItemsUpdated(items); }); } }; BasePicker.prototype._onSelectedItemsUpdated = function (items) { this.onChange(items); }; /** * Suggestions are normally shown after the user updates text and the text * is non-empty, but also when the user clicks on the input element. * @returns True if suggestions should be shown. */ BasePicker.prototype._getShowSuggestions = function () { var areSuggestionsVisible = this.input.current !== undefined && this.input.current !== null && this.input.current.inputElement === document.activeElement && this.input.current.value !== ''; return areSuggestionsVisible; }; BasePicker.prototype._getTextFromItem = function (item, currentValue) { if (this.props.getTextFromItem) { return this.props.getTextFromItem(item, currentValue); } else { return ''; } }; return BasePicker; }(React.Component)); exports.BasePicker = BasePicker; var BasePickerListBelow = /** @class */ (function (_super) { tslib_1.__extends(BasePickerListBelow, _super); function BasePickerListBelow() { return _super !== null && _super.apply(this, arguments) || this; } BasePickerListBelow.prototype.render = function () { var _a = this.state, suggestedDisplayValue = _a.suggestedDisplayValue, isFocused = _a.isFocused; var _b = this.props, className = _b.className, inputProps = _b.inputProps, disabled = _b.disabled, selectionAriaLabel = _b.selectionAriaLabel, _c = _b.selectionRole, selectionRole = _c === void 0 ? 'list' : _c, theme = _b.theme, styles = _b.styles; var suggestionsVisible = !!this.state.suggestionsVisible; var suggestionsAvailable = suggestionsVisible ? this._ariaMap.suggestionList : undefined; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from BasePicker class because it // might be used by consumers who created custom pickers from extending from // this base class and have not used the new 'styles' prop. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // for every other already existing picker variant (PeoplePicker, TagPicker) // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, isFocused: isFocused, inputClassName: inputProps && inputProps.className, }) : { root: (0, Utilities_1.css)('ms-BasePicker', legacyStyles.picker, className ? className : ''), text: (0, Utilities_1.css)('ms-BasePicker-text', legacyStyles.pickerText, this.state.isFocused && legacyStyles.inputFocused, disabled && legacyStyles.inputDisabled), itemsWrapper: legacyStyles.pickerItems, input: (0, Utilities_1.css)('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className), screenReaderText: legacyStyles.screenReaderOnly, }; var comboLabel = this.props['aria-label'] || (inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label']); return (React.createElement("div", { ref: this.root, onBlur: this.onBlur, onFocus: this.onFocus }, React.createElement("div", { className: classNames.root, onKeyDown: this.onKeyDown }, this.renderCustomAlert(classNames.screenReaderText), React.createElement("span", { id: "".concat(this._ariaMap.selectedItems, "-label"), hidden: true }, selectionAriaLabel || comboLabel), React.createElement("div", { className: classNames.text, "aria-owns": suggestionsAvailable }, React.createElement(index_2.Autofill, tslib_1.__assign({}, inputProps, { className: classNames.input, componentRef: this.input, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onClick: this.onClick, onInputValueChange: this.onInputChange, suggestedDisplayValue: suggestedDisplayValue, "aria-activedescendant": suggestionsVisible ? this.getActiveDescendant() : undefined, "aria-controls": suggestionsAvailable, "aria-expanded": suggestionsVisible, "aria-haspopup": "listbox", "aria-label": comboLabel, "aria-describedby": this.state.items.length > 0 ? this._ariaMap.selectedItems : undefined, role: "combobox", id: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) ? inputProps.id : this._ariaMap.combobox, disabled: disabled, onInputChange: this.props.onInputChange })))), this.renderSuggestions(), React.createElement(index_1.SelectionZone, { selection: this.selection, selectionMode: index_1.SelectionMode.single }, React.createElement("div", { id: this._ariaMap.selectedItems, className: "ms-BasePicker-selectedItems" // just a className hook without any styles applied to it. , role: selectionRole, "aria-labelledby": "".concat(this._ariaMap.selectedItems, "-label") }, this.renderItems())))); }; BasePickerListBelow.prototype.onBackspace = function (ev) { // override the existing backspace method to not do anything because the list items appear below. }; return BasePickerListBelow; }(BasePicker)); exports.BasePickerListBelow = BasePickerListBelow; //# sourceMappingURL=BasePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.screenReaderOnly = exports.pickerItems = exports.pickerInput = exports.inputDisabled = exports.inputFocused = exports.pickerText = exports.picker = 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": ".picker_94f06b16{position:relative}.pickerText_94f06b16{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;min-height:30px}.pickerText_94f06b16:hover{border-color:" }, { "theme": "inputBorderHovered", "defaultValue": "#323130" }, { "rawString": "}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:" }, { "theme": "inputFocusBorderAlt", "defaultValue": "#0078d4" }, { "rawString": "}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:\"\";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid " }, { "theme": "inputFocusBorderAlt", "defaultValue": "#0078d4" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:\"\";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); exports.picker = "picker_94f06b16"; exports.pickerText = "pickerText_94f06b16"; exports.inputFocused = "inputFocused_94f06b16"; exports.inputDisabled = "inputDisabled_94f06b16"; exports.pickerInput = "pickerInput_94f06b16"; exports.pickerItems = "pickerItems_94f06b16"; exports.screenReaderOnly = "screenReaderOnly_94f06b16"; //# sourceMappingURL=BasePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.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-BasePicker', text: 'ms-BasePicker-text', itemsWrapper: 'ms-BasePicker-itemsWrapper', input: 'ms-BasePicker-input', }; function getStyles(props) { var _a, _b, _c; var className = props.className, theme = props.theme, isFocused = props.isFocused, inputClassName = props.inputClassName, disabled = props.disabled; if (!theme) { throw new Error('theme is undefined or null in base BasePicker getStyles function.'); } var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var inputBorder = semanticColors.inputBorder, inputBorderHovered = semanticColors.inputBorderHovered, inputFocusBorderAlt = semanticColors.inputFocusBorderAlt; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // placeholder style constants var placeholderStyles = [ fonts.medium, { color: semanticColors.inputPlaceholderText, opacity: 1, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _a), }, ]; var disabledPlaceholderStyles = { color: semanticColors.disabledText, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _b), }; // The following lines are to create a semi-transparent color overlay for the disabled state with designer's approval. // @todo: investigate the performance cost of the calculation below and apply if negligible. // Replacing with a static color for now. // const rgbColor: IRGB | undefined = cssColor(palette.neutralQuaternaryAlt); // const disabledOverlayColor = rgbColor ? `rgba(${rgbColor.r}, ${rgbColor.g}, ${rgbColor.b}, 0.29)` : 'transparent'; var disabledOverlayColor = 'rgba(218, 218, 218, 0.29)'; return { root: [classNames.root, className, { position: 'relative' }], text: [ classNames.text, { display: 'flex', position: 'relative', flexWrap: 'wrap', alignItems: 'center', boxSizing: 'border-box', minWidth: 180, minHeight: 30, border: "1px solid ".concat(inputBorder), borderRadius: effects.roundedCorner2, }, !isFocused && !disabled && { selectors: { ':hover': { borderColor: inputBorderHovered, }, }, }, isFocused && !disabled && (0, Styling_1.getInputFocusStyle)(inputFocusBorderAlt, effects.roundedCorner2), disabled && { borderColor: disabledOverlayColor, selectors: (_c = { ':after': { content: '""', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, background: disabledOverlayColor, } }, _c[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', selectors: { ':after': { background: 'none', }, }, }, _c), }, ], itemsWrapper: [ classNames.itemsWrapper, { display: 'flex', flexWrap: 'wrap', maxWidth: '100%', }, ], input: [ classNames.input, fonts.medium, { height: 30, border: 'none', flexGrow: 1, outline: 'none', padding: '0 6px 0', alignSelf: 'flex-end', borderRadius: effects.roundedCorner2, backgroundColor: 'transparent', color: semanticColors.inputText, selectors: { '::-ms-clear': { display: 'none', }, '&:placeholder-shown': { textOverflow: 'ellipsis', }, }, }, (0, Styling_1.getPlaceholderStyles)(placeholderStyles), disabled && (0, Styling_1.getPlaceholderStyles)(disabledPlaceholderStyles), inputClassName, ], screenReaderText: Styling_1.hiddenContentStyle, }; } exports.getStyles = getStyles; //# sourceMappingURL=BasePicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ValidationState = void 0; /** * Validation state of the user's input. * {@docCategory Pickers} */ var ValidationState; (function (ValidationState) { /** User input is valid. */ ValidationState[ValidationState["valid"] = 0] = "valid"; /** User input could be valid or invalid, its state is not known yet. */ ValidationState[ValidationState["warning"] = 1] = "warning"; /** User input is invalid. */ ValidationState[ValidationState["invalid"] = 2] = "invalid"; })(ValidationState = exports.ValidationState || (exports.ValidationState = {})); //# sourceMappingURL=BasePicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ListPeoplePicker = exports.CompactPeoplePicker = exports.NormalPeoplePicker = exports.createGenericItem = exports.ListPeoplePickerBase = exports.CompactPeoplePickerBase = exports.NormalPeoplePickerBase = exports.MemberListPeoplePicker = exports.BasePeoplePicker = 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 BasePicker_1 = __webpack_require__(/*! ../BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"); var BasePicker_types_1 = __webpack_require__(/*! ../BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var PeoplePickerItem_1 = __webpack_require__(/*! ./PeoplePickerItems/PeoplePickerItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js"); var PeoplePickerItemSuggestion_1 = __webpack_require__(/*! ./PeoplePickerItems/PeoplePickerItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js"); var BasePicker_styles_1 = __webpack_require__(/*! ../BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); /** * {@docCategory PeoplePicker} */ var BasePeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(BasePeoplePicker, _super); function BasePeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BasePeoplePicker; }(BasePicker_1.BasePicker)); exports.BasePeoplePicker = BasePeoplePicker; /** * {@docCategory PeoplePicker} */ var MemberListPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(MemberListPeoplePicker, _super); function MemberListPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return MemberListPeoplePicker; }(BasePicker_1.BasePickerListBelow)); exports.MemberListPeoplePicker = MemberListPeoplePicker; /** * Standard People Picker. * {@docCategory PeoplePicker} */ var NormalPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(NormalPeoplePickerBase, _super); function NormalPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for NormalPeoplePicker. */ NormalPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps })); }, createGenericItem: createGenericItem, }; return NormalPeoplePickerBase; }(BasePeoplePicker)); exports.NormalPeoplePickerBase = NormalPeoplePickerBase; /** * Compact layout. It uses personas without secondary text when displaying search results. * {@docCategory PeoplePicker} */ var CompactPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(CompactPeoplePickerBase, _super); function CompactPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for CompactPeoplePicker. */ CompactPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps, compact: true })); }, createGenericItem: createGenericItem, }; return CompactPeoplePickerBase; }(BasePeoplePicker)); exports.CompactPeoplePickerBase = CompactPeoplePickerBase; /** * MemberList layout. The selected people show up below the search box. * {@docCategory PeoplePicker} */ var ListPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(ListPeoplePickerBase, _super); function ListPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for ListPeoplePicker. */ ListPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps })); }, createGenericItem: createGenericItem, }; return ListPeoplePickerBase; }(MemberListPeoplePicker)); exports.ListPeoplePickerBase = ListPeoplePickerBase; /** * {@docCategory PeoplePicker} */ function createGenericItem(name, currentValidationState) { var personaToConvert = { key: name, primaryText: name, imageInitials: '!', ValidationState: currentValidationState, }; if (currentValidationState !== BasePicker_types_1.ValidationState.warning) { personaToConvert.imageInitials = (0, Utilities_1.getInitials)(name, (0, Utilities_1.getRTL)()); } return personaToConvert; } exports.createGenericItem = createGenericItem; exports.NormalPeoplePicker = (0, Utilities_1.styled)(NormalPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'NormalPeoplePicker', }); exports.CompactPeoplePicker = (0, Utilities_1.styled)(CompactPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'CompactPeoplePicker', }); exports.ListPeoplePicker = (0, Utilities_1.styled)(ListPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'ListPeoplePickerBase', }); //# sourceMappingURL=PeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js": /*!*************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js ***! \*************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PeoplePickerItem = exports.PeoplePickerItemBase = 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 Button_1 = __webpack_require__(/*! ../../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var BasePicker_types_1 = __webpack_require__(/*! ../../BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var PeoplePickerItem_styles_1 = __webpack_require__(/*! ./PeoplePickerItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var PeoplePickerItemBase = function (props) { var item = props.item, onRemoveItem = props.onRemoveItem, index = props.index, selected = props.selected, removeButtonAriaLabel = props.removeButtonAriaLabel, styles = props.styles, theme = props.theme, className = props.className, disabled = props.disabled, removeButtonIconProps = props.removeButtonIconProps; var buttonRef = React.createRef(); var handleClick = function () { var _a; (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }; var itemId = (0, Utilities_1.getId)(); var classNames = getClassNames(styles, { theme: theme, className: className, selected: selected, disabled: disabled, invalid: item.ValidationState === BasePicker_types_1.ValidationState.warning, }); var personaStyles = classNames.subComponentStyles ? classNames.subComponentStyles.persona : undefined; var personaCoinStyles = classNames.subComponentStyles ? classNames.subComponentStyles.personaCoin : undefined; return (React.createElement("div", { "data-selection-index": index, className: classNames.root, role: 'listitem', key: index, onClick: handleClick }, React.createElement("div", { className: classNames.itemContent, id: 'selectedItemPersona-' + itemId }, React.createElement(Persona_1.Persona, tslib_1.__assign({ size: Persona_1.PersonaSize.size24, styles: personaStyles, coinProps: { styles: personaCoinStyles } }, item))), React.createElement(Button_1.IconButton, { componentRef: buttonRef, id: itemId, onClick: onRemoveItem, disabled: disabled, iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, className: classNames.removeButton, ariaLabel: removeButtonAriaLabel, "aria-labelledby": "".concat(itemId, " selectedItemPersona-").concat(itemId) }))); }; exports.PeoplePickerItemBase = PeoplePickerItemBase; exports.PeoplePickerItem = (0, Utilities_1.styled)(exports.PeoplePickerItemBase, PeoplePickerItem_styles_1.getStyles, undefined, { scope: 'PeoplePickerItem' }); //# sourceMappingURL=PeoplePickerItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js": /*!********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.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 BaseButton_classNames_1 = __webpack_require__(/*! ../../../Button/BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); var GlobalClassNames = { root: 'ms-PickerPersona-container', itemContent: 'ms-PickerItem-content', removeButton: 'ms-PickerItem-removeButton', isSelected: 'is-selected', isInvalid: 'is-invalid', }; var REMOVE_BUTTON_SIZE = 24; var PICKER_PERSONA_RADIUS = 15; function getStyles(props) { var _a, _b, _c, _d, _e, _f, _g, _h; var className = props.className, theme = props.theme, selected = props.selected, invalid = props.invalid, disabled = props.disabled; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var personaPrimaryTextStyles = [ selected && !invalid && !disabled && { color: palette.white, selectors: (_a = { ':hover': { color: palette.white, } }, _a[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _a), }, ((invalid && !selected) || (invalid && selected && disabled)) && { color: palette.redDark, borderBottom: "2px dotted ".concat(palette.redDark), selectors: (_b = {}, _b[".".concat(classNames.root, ":hover &")] = { // override Persona root:hover selector color: palette.redDark, }, _b), }, invalid && selected && !disabled && { color: palette.white, borderBottom: "2px dotted ".concat(palette.white), }, disabled && { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }, ]; var personaSecondaryTextStyles = [ selected && !invalid && !disabled && { color: palette.white, selectors: (_d = { ':hover': { color: palette.white, } }, _d[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _d), }, ]; var personaCoinInitialsStyles = [ invalid && { fontSize: fonts.xLarge.fontSize, }, ]; return { root: [ classNames.root, (0, Styling_1.getFocusStyle)(theme, { inset: -2 }), { borderRadius: PICKER_PERSONA_RADIUS, display: 'inline-flex', alignItems: 'center', background: palette.neutralLighter, margin: '1px 2px', cursor: 'default', userSelect: 'none', maxWidth: 300, verticalAlign: 'middle', minWidth: 0, selectors: (_e = { ':hover': { background: !selected && !disabled ? palette.neutralLight : '', } }, _e[Styling_1.HighContrastSelector] = [{ border: '1px solid WindowText' }, disabled && { borderColor: 'GrayText' }], _e), }, selected && !disabled && [ classNames.isSelected, { background: palette.themePrimary, selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'HighLight', background: 'Highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _f), }, ], invalid && [classNames.isInvalid], invalid && selected && !disabled && { background: palette.redDark, }, className, ], itemContent: [ classNames.itemContent, { flex: '0 1 auto', minWidth: 0, // CSS below is needed for IE 11 to properly truncate long persona names in the picker // and to clip the presence indicator (in all browsers) maxWidth: '100%', overflow: 'hidden', }, ], removeButton: [ classNames.removeButton, { borderRadius: PICKER_PERSONA_RADIUS, color: palette.neutralPrimary, flex: '0 0 auto', width: REMOVE_BUTTON_SIZE, height: REMOVE_BUTTON_SIZE, selectors: { ':hover': { background: palette.neutralTertiaryAlt, color: palette.neutralDark, }, }, }, selected && [ (0, Styling_1.getFocusStyle)(theme, { inset: 2, borderColor: 'transparent', highContrastStyle: { inset: 2, left: 1, top: 1, bottom: 1, right: 1, outlineColor: 'ButtonText' }, outlineColor: palette.white, borderRadius: PICKER_PERSONA_RADIUS, }), { color: palette.white, selectors: (_g = { ':hover': { color: palette.white, background: palette.themeDark, }, ':active': { color: palette.white, background: palette.themeDarker, } }, _g[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _g), }, invalid && { selectors: { ':hover': { background: palette.red, }, ':active': { background: palette.redDark, }, }, }, ], disabled && { selectors: (_h = {}, _h[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: semanticColors.buttonText, }, _h), }, ], subComponentStyles: { persona: { primaryText: personaPrimaryTextStyles, secondaryText: personaSecondaryTextStyles, }, personaCoin: { initials: personaCoinInitialsStyles, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=PeoplePickerItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js": /*!*******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PeoplePickerItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js": /*!***********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js ***! \***********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PeoplePickerItemSuggestion = exports.PeoplePickerItemSuggestionBase = 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 PeoplePickerItemSuggestion_styles_1 = __webpack_require__(/*! ./PeoplePickerItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var PeoplePickerItemSuggestionBase = function (props) { var personaProps = props.personaProps, suggestionsProps = props.suggestionsProps, compact = props.compact, styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: (suggestionsProps && suggestionsProps.suggestionsItemClassName) || className, }); var personaStyles = classNames.subComponentStyles && classNames.subComponentStyles.persona ? classNames.subComponentStyles.persona : undefined; return (React.createElement("div", { className: classNames.root }, React.createElement(Persona_1.Persona, tslib_1.__assign({ size: Persona_1.PersonaSize.size24, styles: personaStyles, className: classNames.personaWrapper, showSecondaryText: !compact, showOverflowTooltip: false }, personaProps)))); }; exports.PeoplePickerItemSuggestionBase = PeoplePickerItemSuggestionBase; exports.PeoplePickerItemSuggestion = (0, Utilities_1.styled)(exports.PeoplePickerItemSuggestionBase, PeoplePickerItemSuggestion_styles_1.getStyles, undefined, { scope: 'PeoplePickerItemSuggestion' }); //# sourceMappingURL=PeoplePickerItemSuggestion.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js": /*!******************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.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 SuggestionsItem_styles_1 = __webpack_require__(/*! ../../Suggestions/SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); var GlobalClassNames = { root: 'ms-PeoplePicker-personaContent', personaWrapper: 'ms-PeoplePicker-Persona', }; function getStyles(props) { var _a, _b, _c; var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var textSelectorsStyles = { selectors: (_a = {}, _a[".".concat(SuggestionsItem_styles_1.SuggestionsItemGlobalClassNames.isSuggested, " &")] = { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _b), }, _a[".".concat(classNames.root, ":hover &")] = { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _c), }, _a), }; return { root: [ classNames.root, { width: '100%', padding: '4px 12px', }, className, ], personaWrapper: [ classNames.personaWrapper, { width: 180, }, ], subComponentStyles: { persona: { primaryText: textSelectorsStyles, secondaryText: textSelectorsStyles, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=PeoplePickerItemSuggestion.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PickerItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Suggestions = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Spinner_1 = __webpack_require__(/*! ../../../Spinner */ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js"); var Announced_1 = __webpack_require__(/*! ../../../Announced */ "./node_modules/@fluentui/react/lib-commonjs/Announced.js"); var Suggestions_types_1 = __webpack_require__(/*! ./Suggestions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js"); var SuggestionsItem_1 = __webpack_require__(/*! ./SuggestionsItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js"); var SuggestionsItem_styles_1 = __webpack_require__(/*! ./SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); var stylesImport = __webpack_require__(/*! ./Suggestions.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js"); var legacyStyles = stylesImport; var getClassNames = (0, Utilities_1.classNamesFunction)(); var StyledSuggestionsItem = (0, Utilities_1.styled)(SuggestionsItem_1.SuggestionsItem, SuggestionsItem_styles_1.getStyles, undefined, { scope: 'SuggestionItem', }); /** * {@docCategory Pickers} */ var Suggestions = /** @class */ (function (_super) { tslib_1.__extends(Suggestions, _super); function Suggestions(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._forceResolveButton = React.createRef(); _this._searchForMoreButton = React.createRef(); _this._selectedElement = React.createRef(); _this._scrollContainer = React.createRef(); /** * Returns true if the event was handled, false otherwise */ _this.tryHandleKeyDown = function (keyCode, currentSuggestionIndex) { var isEventHandled = false; var newSelectedActionType = null; var currentSelectedAction = _this.state.selectedActionType; var suggestionLength = _this.props.suggestions.length; if (keyCode === Utilities_1.KeyCodes.down) { switch (currentSelectedAction) { case Suggestions_types_1.SuggestionActionType.forceResolve: if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else if (_this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } else { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; case Suggestions_types_1.SuggestionActionType.searchMore: if (_this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } else if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } break; case Suggestions_types_1.SuggestionActionType.none: if (currentSuggestionIndex === -1 && _this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; } } else if (keyCode === Utilities_1.KeyCodes.up) { switch (currentSelectedAction) { case Suggestions_types_1.SuggestionActionType.forceResolve: if (_this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } else if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } break; case Suggestions_types_1.SuggestionActionType.searchMore: if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else if (_this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; case Suggestions_types_1.SuggestionActionType.none: if (currentSuggestionIndex === -1 && _this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } break; } } if (newSelectedActionType !== null) { _this.setState({ selectedActionType: newSelectedActionType }); isEventHandled = true; } return isEventHandled; }; _this._getAlertText = function () { var _a = _this.props, isLoading = _a.isLoading, isSearching = _a.isSearching, suggestions = _a.suggestions, suggestionsAvailableAlertText = _a.suggestionsAvailableAlertText, noResultsFoundText = _a.noResultsFoundText, isExtendedLoading = _a.isExtendedLoading, loadingText = _a.loadingText; if (!isLoading && !isSearching) { if (suggestions.length > 0) { return suggestionsAvailableAlertText || ''; } if (noResultsFoundText) { return noResultsFoundText; } } else if (isLoading && isExtendedLoading) { return loadingText || ''; } return ''; }; _this._getMoreResults = function () { if (_this.props.onGetMoreResults) { _this.props.onGetMoreResults(); // Reset selected action type as it will be of type SuggestionActionType.none after more results are gotten _this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.none }); } }; _this._forceResolve = function () { if (_this.props.createGenericItem) { _this.props.createGenericItem(); } }; _this._shouldShowForceResolve = function () { return _this.props.showForceResolve ? _this.props.showForceResolve() : false; }; _this._onClickTypedSuggestionsItem = function (item, index) { return function (ev) { _this.props.onSuggestionClick(ev, item, index); }; }; _this._refocusOnSuggestions = function (keyCode) { if (typeof _this.props.refocusSuggestions === 'function') { _this.props.refocusSuggestions(keyCode); } }; _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.state = { selectedActionType: Suggestions_types_1.SuggestionActionType.none, }; return _this; } Suggestions.prototype.componentDidMount = function () { this.scrollSelected(); this.activeSelectedElement = this._selectedElement ? this._selectedElement.current : null; }; Suggestions.prototype.componentDidUpdate = function () { // Only scroll to selected element if the selected element has changed. Otherwise do nothing. // This prevents some odd behavior where scrolling the active element out of view and clicking on a selected element // will trigger a focus event and not give the clicked element the click. if (this._selectedElement.current && this.activeSelectedElement !== this._selectedElement.current) { this.scrollSelected(); this.activeSelectedElement = this._selectedElement.current; } }; Suggestions.prototype.render = function () { var _a, _b; var _this = this; var _c = this.props, forceResolveText = _c.forceResolveText, mostRecentlyUsedHeaderText = _c.mostRecentlyUsedHeaderText, searchForMoreIcon = _c.searchForMoreIcon, searchForMoreText = _c.searchForMoreText, className = _c.className, moreSuggestionsAvailable = _c.moreSuggestionsAvailable, noResultsFoundText = _c.noResultsFoundText, suggestions = _c.suggestions, isLoading = _c.isLoading, isSearching = _c.isSearching, loadingText = _c.loadingText, onRenderNoResultFound = _c.onRenderNoResultFound, searchingText = _c.searchingText, isMostRecentlyUsedVisible = _c.isMostRecentlyUsedVisible, resultsMaximumNumber = _c.resultsMaximumNumber, resultsFooterFull = _c.resultsFooterFull, resultsFooter = _c.resultsFooter, _d = _c.isResultsFooterVisible, isResultsFooterVisible = _d === void 0 ? true : _d, suggestionsHeaderText = _c.suggestionsHeaderText, suggestionsClassName = _c.suggestionsClassName, theme = _c.theme, styles = _c.styles, suggestionsListId = _c.suggestionsListId, suggestionsContainerAriaLabel = _c.suggestionsContainerAriaLabel; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from Suggestions class because it // might be used by consumers separately from pickers extending from BasePicker // and have not used the new 'styles' prop. Because it's expecting a type parameter, // we can not use the 'styled' function without adding some helpers which can break // downstream consumers who did not use the new helpers. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // in BasePicker when the typed Suggestions class is ready to be rendered. If the check // passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. this._classNames = styles ? getClassNames(styles, { theme: theme, className: className, suggestionsClassName: suggestionsClassName, forceResolveButtonSelected: this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve, searchForMoreButtonSelected: this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore, }) : { root: (0, Utilities_1.css)('ms-Suggestions', className, legacyStyles.root), title: (0, Utilities_1.css)('ms-Suggestions-title', legacyStyles.suggestionsTitle), searchForMoreButton: (0, Utilities_1.css)('ms-SearchMore-button', legacyStyles.actionButton, (_a = {}, _a['is-selected ' + legacyStyles.buttonSelected] = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore, _a)), forceResolveButton: (0, Utilities_1.css)('ms-forceResolve-button', legacyStyles.actionButton, (_b = {}, _b['is-selected ' + legacyStyles.buttonSelected] = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve, _b)), suggestionsAvailable: (0, Utilities_1.css)('ms-Suggestions-suggestionsAvailable', legacyStyles.suggestionsAvailable), suggestionsContainer: (0, Utilities_1.css)('ms-Suggestions-container', legacyStyles.suggestionsContainer, suggestionsClassName), noSuggestions: (0, Utilities_1.css)('ms-Suggestions-none', legacyStyles.suggestionsNone), }; var spinnerStyles = this._classNames.subComponentStyles ? this._classNames.subComponentStyles.spinner : undefined; // TODO: cleanup after refactor of pickers to composition pattern and remove SASS support. var spinnerClassNameOrStyles = styles ? { styles: spinnerStyles } : { className: (0, Utilities_1.css)('ms-Suggestions-spinner', legacyStyles.suggestionsSpinner), }; var noResults = function () { var defaultRender = function () { return React.createElement("div", { className: _this._classNames.noSuggestions }, noResultsFoundText); }; return ( // This ID can be used by the parent to set aria-activedescendant to this React.createElement("div", { id: "sug-noResultsFound", role: "option" }, onRenderNoResultFound ? onRenderNoResultFound(undefined, defaultRender) : defaultRender())); }; // MostRecently Used text should supercede the header text if it's there and available. var headerText = suggestionsHeaderText; if (isMostRecentlyUsedVisible && mostRecentlyUsedHeaderText) { headerText = mostRecentlyUsedHeaderText; } var footerTitle = undefined; if (isResultsFooterVisible) { footerTitle = suggestions.length >= resultsMaximumNumber ? resultsFooterFull : resultsFooter; } var hasNoSuggestions = (!suggestions || !suggestions.length) && !isLoading; var forceResolveId = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve ? 'sug-selectedAction' : undefined; var searchForMoreId = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore ? 'sug-selectedAction' : undefined; return (React.createElement("div", { className: this._classNames.root, "aria-label": suggestionsContainerAriaLabel || headerText, id: suggestionsListId, role: "listbox" }, React.createElement(Announced_1.Announced, { message: this._getAlertText(), "aria-live": "polite" }), headerText ? React.createElement("div", { className: this._classNames.title }, headerText) : null, forceResolveText && this._shouldShowForceResolve() && (React.createElement(Button_1.CommandButton, { componentRef: this._forceResolveButton, className: this._classNames.forceResolveButton, id: forceResolveId, onClick: this._forceResolve, "data-automationid": 'sug-forceResolve' }, forceResolveText)), isLoading && React.createElement(Spinner_1.Spinner, tslib_1.__assign({}, spinnerClassNameOrStyles, { ariaLabel: loadingText, label: loadingText })), hasNoSuggestions ? noResults() : this._renderSuggestions(), searchForMoreText && moreSuggestionsAvailable && (React.createElement(Button_1.CommandButton, { componentRef: this._searchForMoreButton, className: this._classNames.searchForMoreButton, iconProps: searchForMoreIcon || { iconName: 'Search' }, id: searchForMoreId, onClick: this._getMoreResults, "data-automationid": 'sug-searchForMore', role: 'option' }, searchForMoreText)), isSearching ? React.createElement(Spinner_1.Spinner, tslib_1.__assign({}, spinnerClassNameOrStyles, { ariaLabel: searchingText, label: searchingText })) : null, footerTitle && !moreSuggestionsAvailable && !isMostRecentlyUsedVisible && !isSearching ? (React.createElement("div", { className: this._classNames.title }, footerTitle(this.props))) : null)); }; Suggestions.prototype.hasSuggestedAction = function () { return !!this._searchForMoreButton.current || !!this._forceResolveButton.current; }; Suggestions.prototype.hasSuggestedActionSelected = function () { return this.state.selectedActionType !== Suggestions_types_1.SuggestionActionType.none; }; Suggestions.prototype.executeSelectedAction = function () { switch (this.state.selectedActionType) { case Suggestions_types_1.SuggestionActionType.forceResolve: this._forceResolve(); break; case Suggestions_types_1.SuggestionActionType.searchMore: this._getMoreResults(); break; } }; Suggestions.prototype.focusAboveSuggestions = function () { if (this._forceResolveButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.forceResolve }); } else if (this._searchForMoreButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.searchMore }); } }; Suggestions.prototype.focusBelowSuggestions = function () { if (this._searchForMoreButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.searchMore }); } else if (this._forceResolveButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.forceResolve }); } }; Suggestions.prototype.focusSearchForMoreButton = function () { if (this._searchForMoreButton.current) { this._searchForMoreButton.current.focus(); } }; Suggestions.prototype.scrollSelected = function () { if (this._selectedElement.current && this._scrollContainer.current && this._scrollContainer.current.scrollTo !== undefined) { var _a = this._selectedElement.current, offsetHeight = _a.offsetHeight, offsetTop = _a.offsetTop; var _b = this._scrollContainer.current, parentOffsetHeight = _b.offsetHeight, scrollTop = _b.scrollTop; var isAbove = offsetTop < scrollTop; var isBelow = offsetTop + offsetHeight > scrollTop + parentOffsetHeight; if (isAbove) { this._scrollContainer.current.scrollTo(0, offsetTop); } else if (isBelow) { this._scrollContainer.current.scrollTo(0, offsetTop - parentOffsetHeight + offsetHeight); } } }; Suggestions.prototype._renderSuggestions = function () { var _this = this; var _a = this.props, onRenderSuggestion = _a.onRenderSuggestion, removeSuggestionAriaLabel = _a.removeSuggestionAriaLabel, suggestionsItemClassName = _a.suggestionsItemClassName, resultsMaximumNumber = _a.resultsMaximumNumber, showRemoveButtons = _a.showRemoveButtons, removeButtonIconProps = _a.removeButtonIconProps; var suggestions = this.props.suggestions; var StyledTypedSuggestionsItem = StyledSuggestionsItem; var selectedIndex = -1; suggestions.some(function (element, index) { if (element.selected) { selectedIndex = index; return true; } return false; }); if (resultsMaximumNumber) { suggestions = selectedIndex >= resultsMaximumNumber ? suggestions.slice(selectedIndex - resultsMaximumNumber + 1, selectedIndex + 1) : suggestions.slice(0, resultsMaximumNumber); } if (suggestions.length === 0) { return null; } return (React.createElement("div", { className: this._classNames.suggestionsContainer, ref: this._scrollContainer, role: "presentation" }, suggestions.map(function (suggestion, index) { return (React.createElement("div", { ref: suggestion.selected ? _this._selectedElement : undefined, key: suggestion.item.key ? suggestion.item.key : index, role: "presentation" }, React.createElement(StyledTypedSuggestionsItem, { suggestionModel: suggestion, RenderSuggestion: onRenderSuggestion, onClick: _this._onClickTypedSuggestionsItem(suggestion.item, index), className: suggestionsItemClassName, showRemoveButton: showRemoveButtons, removeButtonAriaLabel: removeSuggestionAriaLabel, onRemoveItem: _this._onRemoveTypedSuggestionsItem(suggestion.item, index), id: 'sug-' + index, removeButtonIconProps: removeButtonIconProps }))); }))); }; return Suggestions; }(React.Component)); exports.Suggestions = Suggestions; //# sourceMappingURL=Suggestions.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.suggestionsAvailable = exports.suggestionsSpinner = exports.suggestionsNone = exports.suggestionsContainer = exports.suggestionsTitle = exports.buttonSelected = exports.actionButton = exports.itemButton = exports.suggestionsItemIsSuggested = exports.closeButton = exports.suggestionsItem = 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_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": "}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:" }, { "theme": "neutralTertiaryAlt", "defaultValue": "#c8c6c4" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:" }, { "theme": "neutralTertiary", "defaultValue": "#a19f9d" }, { "rawString": ";color:" }, { "theme": "neutralPrimary", "defaultValue": "#323130" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:" }, { "theme": "neutralSecondary", "defaultValue": "#605e5c" }, { "rawString": "}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": ";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": ";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.suggestionsTitle_8c91000a{padding:0 12px;color:" }, { "theme": "themePrimary", "defaultValue": "#0078d4" }, { "rawString": ";font-size:12px;line-height:40px;border-bottom:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:" }, { "theme": "neutralDark", "defaultValue": "#201f1e" }, { "rawString": "}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:" }, { "theme": "neutralTertiaryAlt", "defaultValue": "#c8c6c4" }, { "rawString": ";color:" }, { "theme": "neutralDark", "defaultValue": "#201f1e" }, { "rawString": "}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); exports.root = "root_8c91000a"; exports.suggestionsItem = "suggestionsItem_8c91000a"; exports.closeButton = "closeButton_8c91000a"; exports.suggestionsItemIsSuggested = "suggestionsItemIsSuggested_8c91000a"; exports.itemButton = "itemButton_8c91000a"; exports.actionButton = "actionButton_8c91000a"; exports.buttonSelected = "buttonSelected_8c91000a"; exports.suggestionsTitle = "suggestionsTitle_8c91000a"; exports.suggestionsContainer = "suggestionsContainer_8c91000a"; exports.suggestionsNone = "suggestionsNone_8c91000a"; exports.suggestionsSpinner = "suggestionsSpinner_8c91000a"; exports.suggestionsAvailable = "suggestionsAvailable_8c91000a"; //# sourceMappingURL=Suggestions.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.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 GlobalClassNames = { root: 'ms-Suggestions', suggestionsContainer: 'ms-Suggestions-container', title: 'ms-Suggestions-title', forceResolveButton: 'ms-forceResolve-button', searchForMoreButton: 'ms-SearchMore-button', spinner: 'ms-Suggestions-spinner', noSuggestions: 'ms-Suggestions-none', suggestionsAvailable: 'ms-Suggestions-suggestionsAvailable', isSelected: 'is-selected', }; function getStyles(props) { var _a; var className = props.className, suggestionsClassName = props.suggestionsClassName, theme = props.theme, forceResolveButtonSelected = props.forceResolveButtonSelected, searchForMoreButtonSelected = props.searchForMoreButtonSelected; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var actionButtonStyles = { backgroundColor: 'transparent', border: 0, cursor: 'pointer', margin: 0, paddingLeft: 8, position: 'relative', borderTop: "1px solid ".concat(palette.neutralLight), height: 40, textAlign: 'left', width: '100%', fontSize: fonts.small.fontSize, selectors: { ':hover': { backgroundColor: semanticColors.menuItemBackgroundPressed, cursor: 'pointer', }, ':focus, :active': { backgroundColor: palette.themeLight, }, '.ms-Button-icon': { fontSize: fonts.mediumPlus.fontSize, width: 25, }, '.ms-Button-label': { margin: '0 4px 0 9px', }, }, }; var actionButtonSelectedStyles = { backgroundColor: palette.themeLight, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }; return { root: [ classNames.root, { minWidth: 260, }, className, ], suggestionsContainer: [ classNames.suggestionsContainer, { overflowY: 'auto', overflowX: 'hidden', maxHeight: 300, transform: 'translate3d(0,0,0)', }, suggestionsClassName, ], title: [ classNames.title, { padding: '0 12px', fontSize: fonts.small.fontSize, color: palette.themePrimary, lineHeight: 40, borderBottom: "1px solid ".concat(semanticColors.menuItemBackgroundPressed), }, ], forceResolveButton: [ classNames.forceResolveButton, actionButtonStyles, forceResolveButtonSelected && [classNames.isSelected, actionButtonSelectedStyles], ], searchForMoreButton: [ classNames.searchForMoreButton, actionButtonStyles, searchForMoreButtonSelected && [classNames.isSelected, actionButtonSelectedStyles], ], noSuggestions: [ classNames.noSuggestions, { textAlign: 'center', color: palette.neutralSecondary, fontSize: fonts.small.fontSize, lineHeight: 30, }, ], suggestionsAvailable: [classNames.suggestionsAvailable, Styling_1.hiddenContentStyle], subComponentStyles: { spinner: { root: [ classNames.spinner, { margin: '5px 0', paddingLeft: 14, textAlign: 'left', whiteSpace: 'nowrap', lineHeight: 20, fontSize: fonts.small.fontSize, }, ], circle: { display: 'inline-block', verticalAlign: 'middle', }, label: { display: 'inline-block', verticalAlign: 'middle', margin: '0 10px 0 16px', }, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=Suggestions.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionActionType = void 0; /** * Enum to help identify which suggestions action button is selected. * {@docCategory Pickers} */ var SuggestionActionType; (function (SuggestionActionType) { /** None of the actions is selected. */ SuggestionActionType[SuggestionActionType["none"] = 0] = "none"; /** ForceResolve action is selected. */ SuggestionActionType[SuggestionActionType["forceResolve"] = 1] = "forceResolve"; /** SearchMore action is selected. */ SuggestionActionType[SuggestionActionType["searchMore"] = 2] = "searchMore"; })(SuggestionActionType = exports.SuggestionActionType || (exports.SuggestionActionType = {})); //# sourceMappingURL=Suggestions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsController = void 0; /** * {@docCategory Pickers} */ var SuggestionsController = /** @class */ (function () { function SuggestionsController() { 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: suggestion.name || suggestion.primaryText, }; } }; this.suggestions = []; this.currentIndex = -1; } SuggestionsController.prototype.updateSuggestions = function (newSuggestions, selectedIndex, maxCount) { if (newSuggestions && newSuggestions.length > 0) { if (maxCount && newSuggestions.length > maxCount) { var startIndex = selectedIndex && selectedIndex > maxCount ? selectedIndex + 1 - maxCount : 0; newSuggestions = newSuggestions.slice(startIndex, startIndex + maxCount - 1); } this.suggestions = this.convertSuggestionsToSuggestionItems(newSuggestions); this.currentIndex = selectedIndex ? selectedIndex : 0; if (selectedIndex === -1) { this.currentSuggestion = undefined; } else if (selectedIndex !== undefined) { this.suggestions[selectedIndex].selected = true; this.currentSuggestion = this.suggestions[selectedIndex]; } } else { this.suggestions = []; this.currentIndex = -1; this.currentSuggestion = undefined; } }; /** * Increments the suggestion index and gets the next suggestion in the list. */ SuggestionsController.prototype.nextSuggestion = function () { if (this.suggestions && this.suggestions.length) { if (this.currentIndex < this.suggestions.length - 1) { this.setSelectedSuggestion(this.currentIndex + 1); return true; } else if (this.currentIndex === this.suggestions.length - 1) { this.setSelectedSuggestion(0); return true; } } return false; }; /** * Decrements the suggestion index and gets the previous suggestion in the list. */ SuggestionsController.prototype.previousSuggestion = function () { if (this.suggestions && this.suggestions.length) { if (this.currentIndex > 0) { this.setSelectedSuggestion(this.currentIndex - 1); return true; } else if (this.currentIndex === 0) { this.setSelectedSuggestion(this.suggestions.length - 1); return true; } } return false; }; SuggestionsController.prototype.getSuggestions = function () { return this.suggestions; }; SuggestionsController.prototype.getCurrentItem = function () { return this.currentSuggestion; }; SuggestionsController.prototype.getSuggestionAtIndex = function (index) { return this.suggestions[index]; }; SuggestionsController.prototype.hasSelectedSuggestion = function () { return this.currentSuggestion ? true : false; }; SuggestionsController.prototype.removeSuggestion = function (index) { this.suggestions.splice(index, 1); }; SuggestionsController.prototype.createGenericSuggestion = function (itemToConvert) { var itemToAdd = this.convertSuggestionsToSuggestionItems([itemToConvert])[0]; this.currentSuggestion = itemToAdd; }; SuggestionsController.prototype.convertSuggestionsToSuggestionItems = function (suggestions) { return Array.isArray(suggestions) ? suggestions.map(this._ensureSuggestionModel) : []; }; SuggestionsController.prototype.deselectAllSuggestions = function () { if (this.currentIndex > -1) { this.suggestions[this.currentIndex].selected = false; this.currentIndex = -1; } }; SuggestionsController.prototype.setSelectedSuggestion = function (index) { if (index > this.suggestions.length - 1 || index < 0) { this.currentIndex = 0; this.currentSuggestion.selected = false; this.currentSuggestion = this.suggestions[0]; this.currentSuggestion.selected = true; } else { if (this.currentIndex > -1) { this.suggestions[this.currentIndex].selected = false; } this.suggestions[index].selected = true; this.currentIndex = index; this.currentSuggestion = this.suggestions[index]; } }; return SuggestionsController; }()); exports.SuggestionsController = SuggestionsController; //# sourceMappingURL=SuggestionsController.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsItem = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var stylesImport = __webpack_require__(/*! ./Suggestions.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js"); var legacyStyles = stylesImport; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory Pickers} */ var SuggestionsItem = /** @class */ (function (_super) { tslib_1.__extends(SuggestionsItem, _super); function SuggestionsItem(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } SuggestionsItem.prototype.render = function () { var _a; var _b = this.props, suggestionModel = _b.suggestionModel, RenderSuggestion = _b.RenderSuggestion, onClick = _b.onClick, className = _b.className, id = _b.id, onRemoveItem = _b.onRemoveItem, isSelectedOverride = _b.isSelectedOverride, removeButtonAriaLabel = _b.removeButtonAriaLabel, styles = _b.styles, theme = _b.theme, removeButtonIconProps = _b.removeButtonIconProps; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from SuggestionsItem class because it // might be used by consumers separately from pickers extending from BasePicker // and have not used the new 'styles' prop. Because it's expecting a type parameter, // we can not use the 'styled' function without adding some helpers which can break // downstream consumers who did not use the new helpers. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // in Suggestions when the typed SuggestionsItem class is ready to be rendered. If the // check passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, suggested: suggestionModel.selected || isSelectedOverride, }) : { root: (0, Utilities_1.css)('ms-Suggestions-item', legacyStyles.suggestionsItem, (_a = {}, _a['is-suggested ' + legacyStyles.suggestionsItemIsSuggested] = suggestionModel.selected || isSelectedOverride, _a), className), itemButton: (0, Utilities_1.css)('ms-Suggestions-itemButton', legacyStyles.itemButton), closeButton: (0, Utilities_1.css)('ms-Suggestions-closeButton', legacyStyles.closeButton), }; return (React.createElement("div", { className: classNames.root, role: "presentation" }, React.createElement(Button_1.CommandButton, { onClick: onClick, className: classNames.itemButton, id: id, "aria-selected": suggestionModel.selected, role: "option", "aria-label": suggestionModel.ariaLabel }, RenderSuggestion(suggestionModel.item, this.props)), this.props.showRemoveButton ? (React.createElement(Button_1.IconButton, { iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, title: removeButtonAriaLabel, ariaLabel: removeButtonAriaLabel, onClick: onRemoveItem, className: classNames.closeButton })) : null)); }; return SuggestionsItem; }(React.Component)); exports.SuggestionsItem = SuggestionsItem; //# sourceMappingURL=SuggestionsItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.SuggestionsItemGlobalClassNames = 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.SuggestionsItemGlobalClassNames = { root: 'ms-Suggestions-item', itemButton: 'ms-Suggestions-itemButton', closeButton: 'ms-Suggestions-closeButton', isSuggested: 'is-suggested', }; function getStyles(props) { var _a, _b, _c, _d, _e, _f; var className = props.className, theme = props.theme, suggested = props.suggested; var palette = theme.palette, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(exports.SuggestionsItemGlobalClassNames, theme); return { root: [ classNames.root, { display: 'flex', alignItems: 'stretch', boxSizing: 'border-box', width: '100%', position: 'relative', selectors: { '&:hover': { background: semanticColors.menuItemBackgroundHovered, }, '&:hover .ms-Suggestions-closeButton': { display: 'block', }, }, }, suggested && { selectors: (_a = {}, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &")] = { selectors: (_b = {}, _b[".".concat(classNames.closeButton)] = { display: 'block', background: semanticColors.menuItemBackgroundPressed, }, _b), }, _a[':after'] = { pointerEvents: 'none', content: '""', position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, border: "1px solid ".concat(theme.semanticColors.focusBorder), }, _a), }, className, ], itemButton: [ classNames.itemButton, { width: '100%', padding: 0, border: 'none', height: '100%', // Force the item button to be collapsible so it can always shrink // to accommodate the close button as a peer in its flex container. minWidth: 0, // Require for IE11 to truncate the component. overflow: 'hidden', selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'WindowText', selectors: { ':hover': tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), }, }, _c[':hover'] = { color: semanticColors.menuItemTextHovered, }, _c), }, suggested && [ classNames.isSuggested, { background: semanticColors.menuItemBackgroundPressed, selectors: (_d = { ':hover': { background: semanticColors.menuDivider, } }, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, ], ], closeButton: [ classNames.closeButton, { display: 'none', color: palette.neutralSecondary, padding: '0 4px', height: 'auto', width: 32, selectors: (_e = { ':hover, :active': { background: palette.neutralTertiaryAlt, color: palette.neutralDark, } }, _e[Styling_1.HighContrastSelector] = { color: 'WindowText', }, _e), }, suggested && (_f = {}, _f[".".concat(Utilities_1.IsFocusVisibleClassName, " &")] = { selectors: { ':hover, :active': { background: palette.neutralTertiary, }, }, }, _f.selectors = { ':hover, :active': { background: palette.neutralTertiary, color: palette.neutralPrimary, }, }, _f), ], }; } exports.getStyles = getStyles; //# sourceMappingURL=SuggestionsItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SuggestionsItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagItem = exports.TagItemBase = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var TagItem_styles_1 = __webpack_require__(/*! ./TagItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.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)(); /** * {@docCategory TagPicker} */ var TagItemBase = function (props) { var theme = props.theme, styles = props.styles, selected = props.selected, disabled = props.disabled, enableTagFocusInDisabledPicker = props.enableTagFocusInDisabledPicker, children = props.children, className = props.className, index = props.index, onRemoveItem = props.onRemoveItem, removeButtonAriaLabel = props.removeButtonAriaLabel, _a = props.title, title = _a === void 0 ? typeof props.children === 'string' ? props.children : props.item.name : _a, removeButtonIconProps = props.removeButtonIconProps; var buttonRef = React.createRef(); var handleClick = function () { var _a; (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }; var classNames = getClassNames(styles, { theme: theme, className: className, selected: selected, disabled: disabled, }); var itemId = (0, react_hooks_1.useId)(); var disabledAttrs = enableTagFocusInDisabledPicker ? { 'aria-disabled': disabled, tabindex: 0, } : { disabled: disabled, }; return (React.createElement("div", { "data-selection-index": index, className: classNames.root, role: 'listitem', key: index, onClick: handleClick }, React.createElement("span", { className: classNames.text, title: title, id: "".concat(itemId, "-text") }, children), React.createElement(Button_1.IconButton, tslib_1.__assign({ componentRef: buttonRef, id: itemId, onClick: onRemoveItem }, disabledAttrs, { iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, className: classNames.close, "aria-labelledby": "".concat(itemId, "-removeLabel ").concat(itemId, "-text") })), React.createElement("span", { id: "".concat(itemId, "-removeLabel"), hidden: true }, removeButtonAriaLabel))); }; exports.TagItemBase = TagItemBase; exports.TagItem = (0, Utilities_1.styled)(exports.TagItemBase, TagItem_styles_1.getStyles, undefined, { scope: 'TagItem', }); //# sourceMappingURL=TagItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.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 BaseButton_classNames_1 = __webpack_require__(/*! ../../Button/BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GlobalClassNames = { root: 'ms-TagItem', text: 'ms-TagItem-text', close: 'ms-TagItem-close', isSelected: 'is-selected', }; var TAG_HEIGHT = 26; function getStyles(props) { var _a, _b, _c, _d, _e; var className = props.className, theme = props.theme, selected = props.selected, disabled = props.disabled; var palette = theme.palette, effects = theme.effects, fonts = theme.fonts, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, fonts.medium, (0, Styling_1.getFocusStyle)(theme), { boxSizing: 'content-box', flexShrink: '1', margin: 2, height: TAG_HEIGHT, lineHeight: TAG_HEIGHT, cursor: 'default', userSelect: 'none', display: 'flex', flexWrap: 'nowrap', maxWidth: 300, minWidth: 0, borderRadius: effects.roundedCorner2, color: semanticColors.inputText, background: palette.neutralLighter, selectors: (_a = { ':hover': [ !disabled && !selected && { color: palette.neutralDark, background: palette.neutralLight, selectors: { '.ms-TagItem-close': { color: palette.neutralPrimary, }, }, }, disabled && { background: palette.neutralLighter }, ] }, _a[Styling_1.HighContrastSelector] = { border: "1px solid ".concat(!selected ? 'WindowText' : 'WindowFrame'), }, _a), }, disabled && { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', }, _b), }, selected && !disabled && [ classNames.isSelected, { background: palette.themePrimary, color: palette.white, }, ], className, ], text: [ classNames.text, { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', minWidth: 30, margin: '0 8px', }, disabled && { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }, ], close: [ classNames.close, (0, Styling_1.getFocusStyle)(theme, { borderColor: 'transparent', inset: 1, outlineColor: palette.white }), { color: palette.neutralSecondary, width: 30, height: '100%', flex: '0 0 auto', borderRadius: (0, Utilities_1.getRTL)(theme) ? "".concat(effects.roundedCorner2, " 0 0 ").concat(effects.roundedCorner2) : "0 ".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2, " 0"), selectors: (_d = { ':hover': { background: palette.neutralQuaternaryAlt, color: palette.neutralPrimary, } }, _d[".".concat(classNames.isSelected, " &, :focus")] = { color: palette.white, background: palette.themePrimary, }, _d[':focus:hover'] = { color: palette.white, background: palette.themeDark, }, _d[':active'] = { color: palette.white, backgroundColor: palette.themeDark, }, _d), }, disabled && { selectors: (_e = {}, _e[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: palette.neutralSecondary, }, _e), }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=TagItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagItemSuggestion = exports.TagItemSuggestionBase = 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 TagItemSuggestion_styles_1 = __webpack_require__(/*! ./TagItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory TagPicker} */ var TagItemSuggestionBase = function (props) { var styles = props.styles, theme = props.theme, children = props.children; var classNames = getClassNames(styles, { theme: theme, }); return React.createElement("div", { className: classNames.suggestionTextOverflow }, " ", children, " "); }; exports.TagItemSuggestionBase = TagItemSuggestionBase; exports.TagItemSuggestion = (0, Utilities_1.styled)(exports.TagItemSuggestionBase, TagItemSuggestion_styles_1.getStyles, undefined, { scope: 'TagItemSuggestion' }); //# sourceMappingURL=TagItemSuggestion.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.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 = { suggestionTextOverflow: 'ms-TagItem-TextOverflow', }; function getStyles(props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { suggestionTextOverflow: [ classNames.suggestionTextOverflow, { overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: '60vw', padding: '6px 12px 7px', whiteSpace: 'nowrap', }, className, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=TagItemSuggestion.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagPicker = exports.TagPickerBase = 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 BasePicker_1 = __webpack_require__(/*! ../BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"); var BasePicker_styles_1 = __webpack_require__(/*! ../BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); var TagItem_1 = __webpack_require__(/*! ./TagItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js"); var TagItemSuggestion_1 = __webpack_require__(/*! ./TagItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js"); /** * {@docCategory TagPicker} */ var TagPickerBase = /** @class */ (function (_super) { tslib_1.__extends(TagPickerBase, _super); function TagPickerBase() { return _super !== null && _super.apply(this, arguments) || this; } TagPickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(TagItem_1.TagItem, tslib_1.__assign({}, props), props.item.name); }, onRenderSuggestionsItem: function (props) { return React.createElement(TagItemSuggestion_1.TagItemSuggestion, null, props.name); }, }; return TagPickerBase; }(BasePicker_1.BasePicker)); exports.TagPickerBase = TagPickerBase; exports.TagPicker = (0, Utilities_1.styled)(TagPickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'TagPicker', }); //# sourceMappingURL=TagPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=TagPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/index.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getTagItemSuggestionStyles = exports.getTagItemStyles = exports.getPeoplePickerItemSuggestionStyles = exports.getPeoplePickerItemStyles = exports.getBasePickerStyles = exports.getSuggestionsItemStyles = exports.getSuggestionsStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/Suggestions */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js"), exports); var Suggestions_styles_1 = __webpack_require__(/*! ./Suggestions/Suggestions.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js"); Object.defineProperty(exports, "getSuggestionsStyles", ({ enumerable: true, get: function () { return Suggestions_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/Suggestions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js"), exports); var SuggestionsItem_styles_1 = __webpack_require__(/*! ./Suggestions/SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); Object.defineProperty(exports, "getSuggestionsItemStyles", ({ enumerable: true, get: function () { return SuggestionsItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsController */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AutoFill/BaseAutoFill */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AutoFill/BaseAutoFill.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"), exports); var BasePicker_styles_1 = __webpack_require__(/*! ./BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); Object.defineProperty(exports, "getBasePickerStyles", ({ enumerable: true, get: function () { return BasePicker_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PickerItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js"), exports); var PeoplePickerItem_styles_1 = __webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js"); Object.defineProperty(exports, "getPeoplePickerItemStyles", ({ enumerable: true, get: function () { return PeoplePickerItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js"), exports); var PeoplePickerItemSuggestion_styles_1 = __webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js"); Object.defineProperty(exports, "getPeoplePickerItemSuggestionStyles", ({ enumerable: true, get: function () { return PeoplePickerItemSuggestion_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js"), exports); var TagItem_styles_1 = __webpack_require__(/*! ./TagPicker/TagItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.js"); Object.defineProperty(exports, "getTagItemStyles", ({ enumerable: true, get: function () { return TagItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js"), exports); var TagItemSuggestion_styles_1 = __webpack_require__(/*! ./TagPicker/TagItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js"); Object.defineProperty(exports, "getTagItemSuggestionStyles", ({ enumerable: true, get: function () { return TagItemSuggestion_styles_1.getStyles; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/index.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/index.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MAX_COLOR_HUE = exports.MAX_COLOR_ALPHA = exports.HEX_REGEX = exports.CoachmarkBase = exports.Coachmark = exports.COACHMARK_ATTRIBUTE_NAME = exports.ChoiceGroupOption = exports.ChoiceGroupBase = exports.ChoiceGroup = exports.CheckboxBase = exports.Checkbox = exports.CheckBase = exports.Check = exports.FocusTrapCallout = exports.DirectionalHint = exports.CalloutContentBase = exports.CalloutContent = exports.Callout = exports.defaultDayPickerStrings = exports.defaultCalendarStrings = exports.defaultCalendarNavigationIcons = exports.FirstWeekOfYear = exports.DayOfWeek = exports.DateRangeType = exports.Calendar = exports.AnimationDirection = exports.ButtonGridCell = exports.ButtonGrid = exports.getSplitButtonClassNames = exports.PrimaryButton = exports.MessageBarButton = exports.IconButton = exports.ElementType = exports.DefaultButton = exports.CompoundButton = exports.CommandButton = exports.CommandBarButton = exports.ButtonType = exports.ButtonGlobalClassNames = exports.Button = exports.BaseButton = exports.ActionButton = exports.BreadcrumbBase = exports.Breadcrumb = exports.AnnouncedBase = exports.Announced = exports.Autofill = exports.getActivityItemStyles = exports.getActivityItemClassNames = exports.ActivityItem = void 0; exports.canAnyMenuItemsCheck = exports.ContextualMenuItemType = exports.ContextualMenuItemBase = exports.ContextualMenuItem = exports.ContextualMenuBase = exports.ContextualMenu = exports.getCommandButtonStyles = exports.getCommandBarStyles = exports.CommandBarBase = exports.CommandBar = exports.VirtualizedComboBox = exports.ComboBox = exports.ColorPickerBase = exports.ColorPicker = exports.updateT = exports.updateSV = exports.updateRGB = exports.updateH = exports.updateA = exports.rgb2hsv = exports.rgb2hex = exports.isValidShade = exports.isDark = exports.hsv2rgb = exports.hsv2hsl = exports.hsv2hex = exports.hsl2rgb = exports.hsl2hsv = exports.getShade = exports.getFullColorString = exports.getContrastRatio = exports.getColorFromString = exports.getColorFromRGBA = exports.getColorFromHSV = exports.getBackgroundShade = exports.cssColor = exports.correctRGB = exports.correctHex = exports.correctHSV = exports.clamp = exports.Shade = exports.RGBA_REGEX = exports.MIN_RGBA_LENGTH = exports.MIN_HEX_LENGTH = exports.MAX_RGBA_LENGTH = exports.MAX_HEX_LENGTH = exports.MAX_COLOR_VALUE = exports.MAX_COLOR_SATURATION = exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB = void 0; exports.SELECTION_CHANGE = exports.HEADER_HEIGHT = exports.DetailsRowGlobalClassNames = exports.DetailsRowFields = exports.DetailsRowCheck = exports.DetailsRowBase = exports.DetailsRow = exports.DetailsListLayoutMode = exports.DetailsListBase = exports.DetailsList = exports.DetailsHeaderBase = exports.DetailsHeader = exports.DetailsColumnBase = exports.DetailsColumn = exports.DEFAULT_ROW_HEIGHTS = exports.DEFAULT_CELL_STYLE_PROPS = exports.ConstrainMode = exports.ColumnDragEndLocation = exports.ColumnActionsMode = exports.CollapseAllVisibility = exports.CheckboxVisibility = exports.CHECK_CELL_WIDTH = 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 = exports.TimeConstants = exports.MonthOfYear = exports.DAYS_IN_WEEK = exports.defaultDatePickerStrings = exports.DatePickerBase = exports.DatePicker = exports.getSubmenuItems = exports.getMenuItemStyles = exports.getContextualMenuItemStyles = exports.getContextualMenuItemClassNames = void 0; exports.SuggestionsHeaderFooterItem = exports.SuggestionsCore = exports.SuggestionsControl = exports.SuggestionItemType = exports.FloatingPeoplePicker = exports.BaseFloatingPicker = exports.BaseFloatingPeoplePicker = exports.OverflowButtonType = exports.FacepileBase = exports.Facepile = exports.FabricBase = exports.Fabric = exports.ExtendedPeoplePicker = exports.BaseExtendedPicker = exports.BaseExtendedPeoplePicker = exports.DropdownMenuItemType = exports.DropdownBase = exports.Dropdown = exports.DragDropHelper = exports.DocumentCardType = exports.DocumentCardTitle = exports.DocumentCardStatus = exports.DocumentCardPreview = exports.DocumentCardLogo = exports.DocumentCardLocation = exports.DocumentCardImage = exports.DocumentCardDetails = exports.DocumentCardActivity = exports.DocumentCardActions = exports.DocumentCard = exports.VerticalDivider = exports.DialogType = exports.DialogFooterBase = exports.DialogFooter = exports.DialogContentBase = exports.DialogContent = exports.DialogBase = exports.Dialog = exports.getDetailsRowStyles = exports.getDetailsRowCheckStyles = exports.getDetailsListStyles = exports.getDetailsHeaderStyles = exports.getDetailsColumnStyles = exports.getCellStyles = exports.buildColumns = exports.SelectionZone = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SelectAllVisibility = void 0; exports.KeytipLayerBase = exports.KeytipLayer = exports.KeytipEvents = exports.KeytipData = exports.Keytip = exports.KTP_SEPARATOR = exports.KTP_PREFIX = exports.KTP_LAYER_ID = exports.KTP_FULL_PREFIX = exports.KTP_ARIA_SEPARATOR = exports.DATAKTP_TARGET = exports.DATAKTP_EXECUTE_TARGET = exports.DATAKTP_ARIA_TARGET = exports.ImageLoadState = exports.ImageFit = exports.ImageCoverStyle = exports.ImageBase = exports.Image = exports.initializeIcons = exports.getIconContent = exports.getFontIcon = exports.ImageIcon = exports.IconType = exports.IconBase = exports.Icon = exports.FontIcon = exports.PlainCardBase = exports.PlainCard = exports.OpenCardMode = exports.HoverCardType = exports.HoverCardBase = exports.HoverCard = exports.ExpandingCardMode = exports.ExpandingCardBase = exports.ExpandingCard = exports.GroupedListV2_unstable = exports.GroupedListSection = exports.GroupedListBase = exports.GroupedList = exports.GroupSpacer = exports.GroupShowAll = exports.GroupHeader = exports.GroupFooter = exports.GetGroupCount = exports.FocusZoneTabbableElements = exports.FocusZoneDirection = exports.FocusZone = exports.FocusTrapZone = exports.createItem = exports.SuggestionsStore = void 0; exports.PersonaBase = exports.Persona = exports.PanelType = exports.PanelBase = exports.Panel = exports.OverlayBase = exports.Overlay = exports.OverflowSetBase = exports.OverflowSet = exports.isRelativeUrl = exports.NavBase = exports.Nav = exports.ModalBase = exports.Modal = exports.MessageBarType = exports.MessageBarBase = exports.MessageBar = exports.MarqueeSelection = exports.ScrollToMode = exports.List = exports.LinkBase = exports.Link = exports.unregisterLayerHost = exports.unregisterLayer = exports.setLayerHostSelector = exports.registerLayerHost = exports.registerLayer = exports.notifyHostChanged = exports.getLayerStyles = exports.getLayerHostSelector = exports.getLayerHost = exports.getLayerCount = exports.createDefaultLayerHost = exports.cleanupDefaultLayerHost = exports.LayerHost = exports.LayerBase = exports.Layer = exports.LabelBase = exports.Label = exports.useKeytipRef = exports.transitionKeysContain = exports.transitionKeysAreEqual = exports.sequencesToID = exports.mergeOverflows = exports.ktpTargetFromSequences = exports.ktpTargetFromId = exports.getAriaDescribedBy = exports.constructKeytip = exports.buildKeytipConfigMap = exports.KeytipManager = void 0; exports.Popup = exports.PivotLinkSize = exports.PivotLinkFormat = exports.PivotItem = exports.PivotBase = exports.Pivot = exports.getTagItemSuggestionStyles = exports.getTagItemStyles = exports.getSuggestionsStyles = exports.getSuggestionsItemStyles = exports.getPeoplePickerItemSuggestionStyles = exports.getPeoplePickerItemStyles = exports.getBasePickerStyles = exports.createGenericItem = exports.ValidationState = exports.TagPickerBase = exports.TagPicker = exports.TagItemSuggestionBase = exports.TagItemSuggestion = exports.TagItemBase = exports.TagItem = exports.SuggestionsItem = exports.SuggestionsController = exports.Suggestions = exports.SuggestionActionType = exports.PeoplePickerItemSuggestionBase = exports.PeoplePickerItemSuggestion = exports.PeoplePickerItemBase = exports.PeoplePickerItem = exports.NormalPeoplePickerBase = exports.NormalPeoplePicker = exports.MemberListPeoplePicker = exports.ListPeoplePickerBase = exports.ListPeoplePicker = exports.CompactPeoplePickerBase = exports.CompactPeoplePicker = exports.BasePickerListBelow = exports.BasePicker = exports.BasePeoplePicker = exports.sizeToPixels = exports.sizeBoolean = exports.presenceBoolean = exports.personaSize = exports.personaPresenceSize = exports.getPersonaInitialsColor = exports.PersonaSize = exports.PersonaPresence = exports.PersonaInitialsColor = exports.PersonaCoinBase = exports.PersonaCoin = void 0; exports.ShimmerElementsGroupBase = exports.ShimmerElementsGroup = exports.ShimmerElementsDefaultHeights = exports.ShimmerElementType = exports.ShimmerCircleBase = exports.ShimmerCircle = exports.ShimmerBase = exports.Shimmer = exports.SeparatorBase = exports.Separator = exports.SelectedPeopleList = exports.ExtendedSelectedItem = exports.BaseSelectedItemsList = exports.BasePeopleSelectedItemsList = exports.getAllSelectedOptions = exports.SelectableOptionMenuItemType = exports.SearchBoxBase = exports.SearchBox = exports.ScrollbarVisibility = exports.ScrollablePaneContext = exports.ScrollablePaneBase = exports.ScrollablePane = exports.withResponsiveMode = exports.useResponsiveMode = exports.setResponsiveMode = exports.initializeResponsiveMode = exports.getResponsiveMode = exports.getInitialResponsiveMode = exports.ResponsiveMode = exports.getNextResizeGroupStateProvider = exports.getMeasurementCache = exports.ResizeGroupDirection = exports.ResizeGroupBase = exports.ResizeGroup = exports.MeasuredContext = exports.RatingSize = exports.RatingBase = exports.Rating = exports.ProgressIndicatorBase = exports.ProgressIndicator = exports.useHeightOffset = exports.PositioningContainer = exports.positionElement = exports.positionCard = exports.positionCallout = exports.getOppositeEdge = exports.getMaxHeight = exports.getBoundsFromTargetWindow = exports.RectangleEdge = exports.Position = void 0; 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 = exports.StickyPositionType = exports.Sticky = exports.StackItem = exports.Stack = exports.SpinnerType = exports.SpinnerSize = exports.SpinnerBase = exports.Spinner = exports.SpinButton = exports.KeyboardSpinDirection = exports.SliderBase = exports.Slider = exports.getShimmeredDetailsListStyles = exports.ShimmeredDetailsListBase = exports.ShimmeredDetailsList = exports.ShimmerLineBase = exports.ShimmerLine = exports.ShimmerGapBase = exports.ShimmerGap = void 0; exports.TextFieldBase = exports.TextField = exports.MaskedTextField = exports.DEFAULT_MASK_CHAR = exports.TextView = exports.TextStyles = exports.Text = exports.TeachingBubbleContentBase = exports.TeachingBubbleContent = exports.TeachingBubbleBase = exports.TeachingBubble = exports.SwatchColorPickerBase = exports.SwatchColorPicker = exports.ColorPickerGridCellBase = exports.ColorPickerGridCell = exports.unregisterIcons = exports.setIconOptions = exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.registerIcons = exports.registerIconAlias = exports.registerDefaultFontFaces = exports.normalize = exports.noWrap = exports.mergeStyles = exports.mergeStyleSets = exports.loadTheme = exports.keyframes = exports.hiddenContentStyle = exports.getThemedContext = 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.createTheme = exports.createFontStyles = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.buildClassMap = exports.ZIndexes = void 0; 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.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 = exports.TooltipOverflowMode = exports.TooltipHostBase = exports.TooltipHost = exports.TooltipDelay = exports.TooltipBase = exports.Tooltip = exports.ToggleBase = exports.Toggle = exports.TimePicker = exports.themeRulesStandardCreator = exports.ThemeGenerator = exports.SemanticColorSlots = exports.FabricSlots = exports.BaseSlots = exports.getTextFieldStyles = void 0; 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 = exports.divProperties = exports.disableBodyScroll = exports.customizable = exports.css = exports.createMergedRef = exports.createMemoizer = exports.createArray = exports.composeRenderFunction = exports.composeComponentAs = exports.colProperties = exports.colGroupProperties = void 0; 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 = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.hoistStatics = exports.hoistMethods = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.getWindow = exports.getVirtualParent = exports.getScrollbarWidth = void 0; exports.LocalizedFontNames = exports.LocalizedFontFamilies = exports.FluentTheme = exports.Depths = exports.DefaultSpacing = exports.CommunicationColors = exports.useTheme = exports.makeStyles = exports.ThemeProvider = exports.ThemeContext = exports.useWindow = exports.useDocument = exports.WindowProvider = exports.WindowContext = exports.defaultWeeklyDayPickerStrings = exports.defaultWeeklyDayPickerNavigationIcons = exports.WeeklyDayPicker = exports.withViewport = 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 = exports.setSSR = exports.setRTL = exports.setPortalAttribute = exports.setMemoizeWeakMap = exports.setLanguage = exports.setFocusVisibility = exports.setBaseUrl = exports.selectProperties = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.resetMemoizations = void 0; exports.SharedColors = exports.NeutralColors = exports.MotionAnimations = exports.MotionTimings = exports.MotionDurations = exports.mergeThemes = void 0; var ActivityItem_1 = __webpack_require__(/*! ./ActivityItem */ "./node_modules/@fluentui/react/lib-commonjs/ActivityItem.js"); Object.defineProperty(exports, "ActivityItem", ({ enumerable: true, get: function () { return ActivityItem_1.ActivityItem; } })); Object.defineProperty(exports, "getActivityItemClassNames", ({ enumerable: true, get: function () { return ActivityItem_1.getActivityItemClassNames; } })); Object.defineProperty(exports, "getActivityItemStyles", ({ enumerable: true, get: function () { return ActivityItem_1.getActivityItemStyles; } })); var Autofill_1 = __webpack_require__(/*! ./Autofill */ "./node_modules/@fluentui/react/lib-commonjs/Autofill.js"); Object.defineProperty(exports, "Autofill", ({ enumerable: true, get: function () { return Autofill_1.Autofill; } })); var Announced_1 = __webpack_require__(/*! ./Announced */ "./node_modules/@fluentui/react/lib-commonjs/Announced.js"); Object.defineProperty(exports, "Announced", ({ enumerable: true, get: function () { return Announced_1.Announced; } })); Object.defineProperty(exports, "AnnouncedBase", ({ enumerable: true, get: function () { return Announced_1.AnnouncedBase; } })); var Breadcrumb_1 = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/@fluentui/react/lib-commonjs/Breadcrumb.js"); Object.defineProperty(exports, "Breadcrumb", ({ enumerable: true, get: function () { return Breadcrumb_1.Breadcrumb; } })); Object.defineProperty(exports, "BreadcrumbBase", ({ enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbBase; } })); var Button_1 = __webpack_require__(/*! ./Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); Object.defineProperty(exports, "ActionButton", ({ enumerable: true, get: function () { return Button_1.ActionButton; } })); Object.defineProperty(exports, "BaseButton", ({ enumerable: true, get: function () { return Button_1.BaseButton; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Button", ({ enumerable: true, get: function () { return Button_1.Button; } })); Object.defineProperty(exports, "ButtonGlobalClassNames", ({ enumerable: true, get: function () { return Button_1.ButtonGlobalClassNames; } })); Object.defineProperty(exports, "ButtonType", ({ enumerable: true, get: function () { return Button_1.ButtonType; } })); Object.defineProperty(exports, "CommandBarButton", ({ enumerable: true, get: function () { return Button_1.CommandBarButton; } })); Object.defineProperty(exports, "CommandButton", ({ enumerable: true, get: function () { return Button_1.CommandButton; } })); Object.defineProperty(exports, "CompoundButton", ({ enumerable: true, get: function () { return Button_1.CompoundButton; } })); Object.defineProperty(exports, "DefaultButton", ({ enumerable: true, get: function () { return Button_1.DefaultButton; } })); Object.defineProperty(exports, "ElementType", ({ enumerable: true, get: function () { return Button_1.ElementType; } })); Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function () { return Button_1.IconButton; } })); Object.defineProperty(exports, "MessageBarButton", ({ enumerable: true, get: function () { return Button_1.MessageBarButton; } })); Object.defineProperty(exports, "PrimaryButton", ({ enumerable: true, get: function () { return Button_1.PrimaryButton; } })); Object.defineProperty(exports, "getSplitButtonClassNames", ({ enumerable: true, get: function () { return Button_1.getSplitButtonClassNames; } })); var ButtonGrid_1 = __webpack_require__(/*! ./ButtonGrid */ "./node_modules/@fluentui/react/lib-commonjs/ButtonGrid.js"); Object.defineProperty(exports, "ButtonGrid", ({ enumerable: true, get: function () { return ButtonGrid_1.ButtonGrid; } })); Object.defineProperty(exports, "ButtonGridCell", ({ enumerable: true, get: function () { return ButtonGrid_1.ButtonGridCell; } })); var Calendar_1 = __webpack_require__(/*! ./Calendar */ "./node_modules/@fluentui/react/lib-commonjs/Calendar.js"); Object.defineProperty(exports, "AnimationDirection", ({ enumerable: true, get: function () { return Calendar_1.AnimationDirection; } })); Object.defineProperty(exports, "Calendar", ({ enumerable: true, get: function () { return Calendar_1.Calendar; } })); Object.defineProperty(exports, "DateRangeType", ({ enumerable: true, get: function () { return Calendar_1.DateRangeType; } })); Object.defineProperty(exports, "DayOfWeek", ({ enumerable: true, get: function () { return Calendar_1.DayOfWeek; } })); Object.defineProperty(exports, "FirstWeekOfYear", ({ enumerable: true, get: function () { return Calendar_1.FirstWeekOfYear; } })); Object.defineProperty(exports, "defaultCalendarNavigationIcons", ({ enumerable: true, get: function () { return Calendar_1.defaultCalendarNavigationIcons; } })); Object.defineProperty(exports, "defaultCalendarStrings", ({ enumerable: true, get: function () { return Calendar_1.defaultCalendarStrings; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "defaultDayPickerStrings", ({ enumerable: true, get: function () { return Calendar_1.defaultDayPickerStrings; } })); var Callout_1 = __webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); Object.defineProperty(exports, "Callout", ({ enumerable: true, get: function () { return Callout_1.Callout; } })); Object.defineProperty(exports, "CalloutContent", ({ enumerable: true, get: function () { return Callout_1.CalloutContent; } })); Object.defineProperty(exports, "CalloutContentBase", ({ enumerable: true, get: function () { return Callout_1.CalloutContentBase; } })); Object.defineProperty(exports, "DirectionalHint", ({ enumerable: true, get: function () { return Callout_1.DirectionalHint; } })); Object.defineProperty(exports, "FocusTrapCallout", ({ enumerable: true, get: function () { return Callout_1.FocusTrapCallout; } })); var Check_1 = __webpack_require__(/*! ./Check */ "./node_modules/@fluentui/react/lib-commonjs/Check.js"); Object.defineProperty(exports, "Check", ({ enumerable: true, get: function () { return Check_1.Check; } })); Object.defineProperty(exports, "CheckBase", ({ enumerable: true, get: function () { return Check_1.CheckBase; } })); var Checkbox_1 = __webpack_require__(/*! ./Checkbox */ "./node_modules/@fluentui/react/lib-commonjs/Checkbox.js"); Object.defineProperty(exports, "Checkbox", ({ enumerable: true, get: function () { return Checkbox_1.Checkbox; } })); Object.defineProperty(exports, "CheckboxBase", ({ enumerable: true, get: function () { return Checkbox_1.CheckboxBase; } })); var ChoiceGroup_1 = __webpack_require__(/*! ./ChoiceGroup */ "./node_modules/@fluentui/react/lib-commonjs/ChoiceGroup.js"); Object.defineProperty(exports, "ChoiceGroup", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroup; } })); Object.defineProperty(exports, "ChoiceGroupBase", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroupBase; } })); Object.defineProperty(exports, "ChoiceGroupOption", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroupOption; } })); // export * from './ChoiceGroupOption'; // exported by ChoiceGroup var Coachmark_1 = __webpack_require__(/*! ./Coachmark */ "./node_modules/@fluentui/react/lib-commonjs/Coachmark.js"); Object.defineProperty(exports, "COACHMARK_ATTRIBUTE_NAME", ({ enumerable: true, get: function () { return Coachmark_1.COACHMARK_ATTRIBUTE_NAME; } })); Object.defineProperty(exports, "Coachmark", ({ enumerable: true, get: function () { return Coachmark_1.Coachmark; } })); Object.defineProperty(exports, "CoachmarkBase", ({ enumerable: true, get: function () { return Coachmark_1.CoachmarkBase; } })); var Color_1 = __webpack_require__(/*! ./Color */ "./node_modules/@fluentui/react/lib-commonjs/Color.js"); Object.defineProperty(exports, "HEX_REGEX", ({ enumerable: true, get: function () { return Color_1.HEX_REGEX; } })); Object.defineProperty(exports, "MAX_COLOR_ALPHA", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_ALPHA; } })); Object.defineProperty(exports, "MAX_COLOR_HUE", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_HUE; } })); Object.defineProperty(exports, "MAX_COLOR_RGB", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_RGB; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "MAX_COLOR_RGBA", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_RGBA; } })); Object.defineProperty(exports, "MAX_COLOR_SATURATION", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_SATURATION; } })); Object.defineProperty(exports, "MAX_COLOR_VALUE", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_VALUE; } })); Object.defineProperty(exports, "MAX_HEX_LENGTH", ({ enumerable: true, get: function () { return Color_1.MAX_HEX_LENGTH; } })); Object.defineProperty(exports, "MAX_RGBA_LENGTH", ({ enumerable: true, get: function () { return Color_1.MAX_RGBA_LENGTH; } })); Object.defineProperty(exports, "MIN_HEX_LENGTH", ({ enumerable: true, get: function () { return Color_1.MIN_HEX_LENGTH; } })); Object.defineProperty(exports, "MIN_RGBA_LENGTH", ({ enumerable: true, get: function () { return Color_1.MIN_RGBA_LENGTH; } })); Object.defineProperty(exports, "RGBA_REGEX", ({ enumerable: true, get: function () { return Color_1.RGBA_REGEX; } })); Object.defineProperty(exports, "Shade", ({ enumerable: true, get: function () { return Color_1.Shade; } })); Object.defineProperty(exports, "clamp", ({ enumerable: true, get: function () { return Color_1.clamp; } })); Object.defineProperty(exports, "correctHSV", ({ enumerable: true, get: function () { return Color_1.correctHSV; } })); Object.defineProperty(exports, "correctHex", ({ enumerable: true, get: function () { return Color_1.correctHex; } })); Object.defineProperty(exports, "correctRGB", ({ enumerable: true, get: function () { return Color_1.correctRGB; } })); Object.defineProperty(exports, "cssColor", ({ enumerable: true, get: function () { return Color_1.cssColor; } })); Object.defineProperty(exports, "getBackgroundShade", ({ enumerable: true, get: function () { return Color_1.getBackgroundShade; } })); Object.defineProperty(exports, "getColorFromHSV", ({ enumerable: true, get: function () { return Color_1.getColorFromHSV; } })); Object.defineProperty(exports, "getColorFromRGBA", ({ enumerable: true, get: function () { return Color_1.getColorFromRGBA; } })); Object.defineProperty(exports, "getColorFromString", ({ enumerable: true, get: function () { return Color_1.getColorFromString; } })); Object.defineProperty(exports, "getContrastRatio", ({ enumerable: true, get: function () { return Color_1.getContrastRatio; } })); Object.defineProperty(exports, "getFullColorString", ({ enumerable: true, get: function () { return Color_1.getFullColorString; } })); Object.defineProperty(exports, "getShade", ({ enumerable: true, get: function () { return Color_1.getShade; } })); Object.defineProperty(exports, "hsl2hsv", ({ enumerable: true, get: function () { return Color_1.hsl2hsv; } })); Object.defineProperty(exports, "hsl2rgb", ({ enumerable: true, get: function () { return Color_1.hsl2rgb; } })); Object.defineProperty(exports, "hsv2hex", ({ enumerable: true, get: function () { return Color_1.hsv2hex; } })); Object.defineProperty(exports, "hsv2hsl", ({ enumerable: true, get: function () { return Color_1.hsv2hsl; } })); Object.defineProperty(exports, "hsv2rgb", ({ enumerable: true, get: function () { return Color_1.hsv2rgb; } })); Object.defineProperty(exports, "isDark", ({ enumerable: true, get: function () { return Color_1.isDark; } })); Object.defineProperty(exports, "isValidShade", ({ enumerable: true, get: function () { return Color_1.isValidShade; } })); Object.defineProperty(exports, "rgb2hex", ({ enumerable: true, get: function () { return Color_1.rgb2hex; } })); Object.defineProperty(exports, "rgb2hsv", ({ enumerable: true, get: function () { return Color_1.rgb2hsv; } })); Object.defineProperty(exports, "updateA", ({ enumerable: true, get: function () { return Color_1.updateA; } })); Object.defineProperty(exports, "updateH", ({ enumerable: true, get: function () { return Color_1.updateH; } })); Object.defineProperty(exports, "updateRGB", ({ enumerable: true, get: function () { return Color_1.updateRGB; } })); Object.defineProperty(exports, "updateSV", ({ enumerable: true, get: function () { return Color_1.updateSV; } })); Object.defineProperty(exports, "updateT", ({ enumerable: true, get: function () { return Color_1.updateT; } })); var ColorPicker_1 = __webpack_require__(/*! ./ColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/ColorPicker.js"); Object.defineProperty(exports, "ColorPicker", ({ enumerable: true, get: function () { return ColorPicker_1.ColorPicker; } })); Object.defineProperty(exports, "ColorPickerBase", ({ enumerable: true, get: function () { return ColorPicker_1.ColorPickerBase; } })); var ComboBox_1 = __webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib-commonjs/ComboBox.js"); Object.defineProperty(exports, "ComboBox", ({ enumerable: true, get: function () { return ComboBox_1.ComboBox; } })); Object.defineProperty(exports, "VirtualizedComboBox", ({ enumerable: true, get: function () { return ComboBox_1.VirtualizedComboBox; } })); var CommandBar_1 = __webpack_require__(/*! ./CommandBar */ "./node_modules/@fluentui/react/lib-commonjs/CommandBar.js"); Object.defineProperty(exports, "CommandBar", ({ enumerable: true, get: function () { return CommandBar_1.CommandBar; } })); Object.defineProperty(exports, "CommandBarBase", ({ enumerable: true, get: function () { return CommandBar_1.CommandBarBase; } })); Object.defineProperty(exports, "getCommandBarStyles", ({ enumerable: true, get: function () { return CommandBar_1.getCommandBarStyles; } })); Object.defineProperty(exports, "getCommandButtonStyles", ({ enumerable: true, get: function () { return CommandBar_1.getCommandButtonStyles; } })); var ContextualMenu_1 = __webpack_require__(/*! ./ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js"); Object.defineProperty(exports, "ContextualMenu", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenu; } })); Object.defineProperty(exports, "ContextualMenuBase", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuBase; } })); Object.defineProperty(exports, "ContextualMenuItem", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItem; } })); Object.defineProperty(exports, "ContextualMenuItemBase", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItemBase; } })); Object.defineProperty(exports, "ContextualMenuItemType", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItemType; } })); Object.defineProperty(exports, "canAnyMenuItemsCheck", ({ enumerable: true, get: function () { return ContextualMenu_1.canAnyMenuItemsCheck; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getContextualMenuItemClassNames", ({ enumerable: true, get: function () { return ContextualMenu_1.getContextualMenuItemClassNames; } })); Object.defineProperty(exports, "getContextualMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_1.getContextualMenuItemStyles; } })); Object.defineProperty(exports, "getMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_1.getMenuItemStyles; } })); Object.defineProperty(exports, "getSubmenuItems", ({ enumerable: true, get: function () { return ContextualMenu_1.getSubmenuItems; } })); var DatePicker_1 = __webpack_require__(/*! ./DatePicker */ "./node_modules/@fluentui/react/lib-commonjs/DatePicker.js"); Object.defineProperty(exports, "DatePicker", ({ enumerable: true, get: function () { return DatePicker_1.DatePicker; } })); Object.defineProperty(exports, "DatePickerBase", ({ enumerable: true, get: function () { return DatePicker_1.DatePickerBase; } })); Object.defineProperty(exports, "defaultDatePickerStrings", ({ enumerable: true, get: function () { return DatePicker_1.defaultDatePickerStrings; } })); var DateTimeUtilities_1 = __webpack_require__(/*! ./DateTimeUtilities */ "./node_modules/@fluentui/react/lib-commonjs/DateTimeUtilities.js"); Object.defineProperty(exports, "DAYS_IN_WEEK", ({ enumerable: true, get: function () { return DateTimeUtilities_1.DAYS_IN_WEEK; } })); Object.defineProperty(exports, "MonthOfYear", ({ enumerable: true, get: function () { return DateTimeUtilities_1.MonthOfYear; } })); Object.defineProperty(exports, "TimeConstants", ({ enumerable: true, get: function () { return DateTimeUtilities_1.TimeConstants; } })); Object.defineProperty(exports, "addDays", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addDays; } })); Object.defineProperty(exports, "addMonths", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addMonths; } })); Object.defineProperty(exports, "addWeeks", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addWeeks; } })); Object.defineProperty(exports, "addYears", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addYears; } })); Object.defineProperty(exports, "compareDatePart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.compareDatePart; } })); Object.defineProperty(exports, "compareDates", ({ enumerable: true, get: function () { return DateTimeUtilities_1.compareDates; } })); Object.defineProperty(exports, "getDatePartHashValue", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getDatePartHashValue; } })); Object.defineProperty(exports, "getDateRangeArray", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getDateRangeArray; } })); Object.defineProperty(exports, "getEndDateOfWeek", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getEndDateOfWeek; } })); Object.defineProperty(exports, "getMonthEnd", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getMonthEnd; } })); Object.defineProperty(exports, "getMonthStart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getMonthStart; } })); Object.defineProperty(exports, "getStartDateOfWeek", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getStartDateOfWeek; } })); Object.defineProperty(exports, "getWeekNumber", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getWeekNumber; } })); Object.defineProperty(exports, "getWeekNumbersInMonth", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getWeekNumbersInMonth; } })); Object.defineProperty(exports, "getYearEnd", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getYearEnd; } })); Object.defineProperty(exports, "getYearStart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getYearStart; } })); Object.defineProperty(exports, "isInDateRangeArray", ({ enumerable: true, get: function () { return DateTimeUtilities_1.isInDateRangeArray; } })); Object.defineProperty(exports, "setMonth", ({ enumerable: true, get: function () { return DateTimeUtilities_1.setMonth; } })); var DetailsList_1 = __webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib-commonjs/DetailsList.js"); Object.defineProperty(exports, "CHECK_CELL_WIDTH", ({ enumerable: true, get: function () { return DetailsList_1.CHECK_CELL_WIDTH; } })); Object.defineProperty(exports, "CheckboxVisibility", ({ enumerable: true, get: function () { return DetailsList_1.CheckboxVisibility; } })); Object.defineProperty(exports, "CollapseAllVisibility", ({ enumerable: true, get: function () { return DetailsList_1.CollapseAllVisibility; } })); Object.defineProperty(exports, "ColumnActionsMode", ({ enumerable: true, get: function () { return DetailsList_1.ColumnActionsMode; } })); Object.defineProperty(exports, "ColumnDragEndLocation", ({ enumerable: true, get: function () { return DetailsList_1.ColumnDragEndLocation; } })); Object.defineProperty(exports, "ConstrainMode", ({ enumerable: true, get: function () { return DetailsList_1.ConstrainMode; } })); Object.defineProperty(exports, "DEFAULT_CELL_STYLE_PROPS", ({ enumerable: true, get: function () { return DetailsList_1.DEFAULT_CELL_STYLE_PROPS; } })); Object.defineProperty(exports, "DEFAULT_ROW_HEIGHTS", ({ enumerable: true, get: function () { return DetailsList_1.DEFAULT_ROW_HEIGHTS; } })); Object.defineProperty(exports, "DetailsColumn", ({ enumerable: true, get: function () { return DetailsList_1.DetailsColumn; } })); Object.defineProperty(exports, "DetailsColumnBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsColumnBase; } })); Object.defineProperty(exports, "DetailsHeader", ({ enumerable: true, get: function () { return DetailsList_1.DetailsHeader; } })); Object.defineProperty(exports, "DetailsHeaderBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsHeaderBase; } })); Object.defineProperty(exports, "DetailsList", ({ enumerable: true, get: function () { return DetailsList_1.DetailsList; } })); Object.defineProperty(exports, "DetailsListBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsListBase; } })); Object.defineProperty(exports, "DetailsListLayoutMode", ({ enumerable: true, get: function () { return DetailsList_1.DetailsListLayoutMode; } })); Object.defineProperty(exports, "DetailsRow", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRow; } })); Object.defineProperty(exports, "DetailsRowBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowBase; } })); Object.defineProperty(exports, "DetailsRowCheck", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowCheck; } })); Object.defineProperty(exports, "DetailsRowFields", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowFields; } })); Object.defineProperty(exports, "DetailsRowGlobalClassNames", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowGlobalClassNames; } })); Object.defineProperty(exports, "HEADER_HEIGHT", ({ enumerable: true, get: function () { return DetailsList_1.HEADER_HEIGHT; } })); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return DetailsList_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SelectAllVisibility", ({ enumerable: true, get: function () { return DetailsList_1.SelectAllVisibility; } })); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return DetailsList_1.Selection; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return DetailsList_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return DetailsList_1.SelectionMode; } })); Object.defineProperty(exports, "SelectionZone", ({ enumerable: true, get: function () { return DetailsList_1.SelectionZone; } })); Object.defineProperty(exports, "buildColumns", ({ enumerable: true, get: function () { return DetailsList_1.buildColumns; } })); Object.defineProperty(exports, "getCellStyles", ({ enumerable: true, get: function () { return DetailsList_1.getCellStyles; } })); Object.defineProperty(exports, "getDetailsColumnStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsColumnStyles; } })); Object.defineProperty(exports, "getDetailsHeaderStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsHeaderStyles; } })); Object.defineProperty(exports, "getDetailsListStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsListStyles; } })); Object.defineProperty(exports, "getDetailsRowCheckStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsRowCheckStyles; } })); Object.defineProperty(exports, "getDetailsRowStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsRowStyles; } })); var Dialog_1 = __webpack_require__(/*! ./Dialog */ "./node_modules/@fluentui/react/lib-commonjs/Dialog.js"); Object.defineProperty(exports, "Dialog", ({ enumerable: true, get: function () { return Dialog_1.Dialog; } })); Object.defineProperty(exports, "DialogBase", ({ enumerable: true, get: function () { return Dialog_1.DialogBase; } })); Object.defineProperty(exports, "DialogContent", ({ enumerable: true, get: function () { return Dialog_1.DialogContent; } })); Object.defineProperty(exports, "DialogContentBase", ({ enumerable: true, get: function () { return Dialog_1.DialogContentBase; } })); Object.defineProperty(exports, "DialogFooter", ({ enumerable: true, get: function () { return Dialog_1.DialogFooter; } })); Object.defineProperty(exports, "DialogFooterBase", ({ enumerable: true, get: function () { return Dialog_1.DialogFooterBase; } })); Object.defineProperty(exports, "DialogType", ({ enumerable: true, get: function () { return Dialog_1.DialogType; } })); var Divider_1 = __webpack_require__(/*! ./Divider */ "./node_modules/@fluentui/react/lib-commonjs/Divider.js"); Object.defineProperty(exports, "VerticalDivider", ({ enumerable: true, get: function () { return Divider_1.VerticalDivider; } })); var DocumentCard_1 = __webpack_require__(/*! ./DocumentCard */ "./node_modules/@fluentui/react/lib-commonjs/DocumentCard.js"); Object.defineProperty(exports, "DocumentCard", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCard; } })); Object.defineProperty(exports, "DocumentCardActions", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardActions; } })); Object.defineProperty(exports, "DocumentCardActivity", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardActivity; } })); Object.defineProperty(exports, "DocumentCardDetails", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardDetails; } })); Object.defineProperty(exports, "DocumentCardImage", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardImage; } })); Object.defineProperty(exports, "DocumentCardLocation", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardLocation; } })); Object.defineProperty(exports, "DocumentCardLogo", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardLogo; } })); Object.defineProperty(exports, "DocumentCardPreview", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardPreview; } })); Object.defineProperty(exports, "DocumentCardStatus", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardStatus; } })); Object.defineProperty(exports, "DocumentCardTitle", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardTitle; } })); Object.defineProperty(exports, "DocumentCardType", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardType; } })); var DragDrop_1 = __webpack_require__(/*! ./DragDrop */ "./node_modules/@fluentui/react/lib-commonjs/DragDrop.js"); Object.defineProperty(exports, "DragDropHelper", ({ enumerable: true, get: function () { return DragDrop_1.DragDropHelper; } })); var Dropdown_1 = __webpack_require__(/*! ./Dropdown */ "./node_modules/@fluentui/react/lib-commonjs/Dropdown.js"); Object.defineProperty(exports, "Dropdown", ({ enumerable: true, get: function () { return Dropdown_1.Dropdown; } })); Object.defineProperty(exports, "DropdownBase", ({ enumerable: true, get: function () { return Dropdown_1.DropdownBase; } })); Object.defineProperty(exports, "DropdownMenuItemType", ({ enumerable: true, get: function () { return Dropdown_1.DropdownMenuItemType; } })); var ExtendedPicker_1 = __webpack_require__(/*! ./ExtendedPicker */ "./node_modules/@fluentui/react/lib-commonjs/ExtendedPicker.js"); Object.defineProperty(exports, "BaseExtendedPeoplePicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.BaseExtendedPeoplePicker; } })); Object.defineProperty(exports, "BaseExtendedPicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.BaseExtendedPicker; } })); Object.defineProperty(exports, "ExtendedPeoplePicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.ExtendedPeoplePicker; } })); var Fabric_1 = __webpack_require__(/*! ./Fabric */ "./node_modules/@fluentui/react/lib-commonjs/Fabric.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Fabric", ({ enumerable: true, get: function () { return Fabric_1.Fabric; } })); Object.defineProperty(exports, "FabricBase", ({ enumerable: true, get: function () { return Fabric_1.FabricBase; } })); var Facepile_1 = __webpack_require__(/*! ./Facepile */ "./node_modules/@fluentui/react/lib-commonjs/Facepile.js"); Object.defineProperty(exports, "Facepile", ({ enumerable: true, get: function () { return Facepile_1.Facepile; } })); Object.defineProperty(exports, "FacepileBase", ({ enumerable: true, get: function () { return Facepile_1.FacepileBase; } })); Object.defineProperty(exports, "OverflowButtonType", ({ enumerable: true, get: function () { return Facepile_1.OverflowButtonType; } })); var FloatingPicker_1 = __webpack_require__(/*! ./FloatingPicker */ "./node_modules/@fluentui/react/lib-commonjs/FloatingPicker.js"); Object.defineProperty(exports, "BaseFloatingPeoplePicker", ({ enumerable: true, get: function () { return FloatingPicker_1.BaseFloatingPeoplePicker; } })); Object.defineProperty(exports, "BaseFloatingPicker", ({ enumerable: true, get: function () { return FloatingPicker_1.BaseFloatingPicker; } })); Object.defineProperty(exports, "FloatingPeoplePicker", ({ enumerable: true, get: function () { return FloatingPicker_1.FloatingPeoplePicker; } })); Object.defineProperty(exports, "SuggestionItemType", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionItemType; } })); Object.defineProperty(exports, "SuggestionsControl", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsControl; } })); Object.defineProperty(exports, "SuggestionsCore", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsCore; } })); Object.defineProperty(exports, "SuggestionsHeaderFooterItem", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsHeaderFooterItem; } })); Object.defineProperty(exports, "SuggestionsStore", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsStore; } })); Object.defineProperty(exports, "createItem", ({ enumerable: true, get: function () { return FloatingPicker_1.createItem; } })); var FocusTrapZone_1 = __webpack_require__(/*! ./FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); Object.defineProperty(exports, "FocusTrapZone", ({ enumerable: true, get: function () { return FocusTrapZone_1.FocusTrapZone; } })); var FocusZone_1 = __webpack_require__(/*! ./FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); Object.defineProperty(exports, "FocusZone", ({ enumerable: true, get: function () { return FocusZone_1.FocusZone; } })); Object.defineProperty(exports, "FocusZoneDirection", ({ enumerable: true, get: function () { return FocusZone_1.FocusZoneDirection; } })); Object.defineProperty(exports, "FocusZoneTabbableElements", ({ enumerable: true, get: function () { return FocusZone_1.FocusZoneTabbableElements; } })); var GroupedList_1 = __webpack_require__(/*! ./GroupedList */ "./node_modules/@fluentui/react/lib-commonjs/GroupedList.js"); Object.defineProperty(exports, "GetGroupCount", ({ enumerable: true, get: function () { return GroupedList_1.GetGroupCount; } })); Object.defineProperty(exports, "GroupFooter", ({ enumerable: true, get: function () { return GroupedList_1.GroupFooter; } })); Object.defineProperty(exports, "GroupHeader", ({ enumerable: true, get: function () { return GroupedList_1.GroupHeader; } })); Object.defineProperty(exports, "GroupShowAll", ({ enumerable: true, get: function () { return GroupedList_1.GroupShowAll; } })); Object.defineProperty(exports, "GroupSpacer", ({ enumerable: true, get: function () { return GroupedList_1.GroupSpacer; } })); Object.defineProperty(exports, "GroupedList", ({ enumerable: true, get: function () { return GroupedList_1.GroupedList; } })); Object.defineProperty(exports, "GroupedListBase", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListBase; } })); Object.defineProperty(exports, "GroupedListSection", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListSection; } })); Object.defineProperty(exports, "GroupedListV2_unstable", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListV2_unstable; } })); var HoverCard_1 = __webpack_require__(/*! ./HoverCard */ "./node_modules/@fluentui/react/lib-commonjs/HoverCard.js"); Object.defineProperty(exports, "ExpandingCard", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCard; } })); Object.defineProperty(exports, "ExpandingCardBase", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCardBase; } })); Object.defineProperty(exports, "ExpandingCardMode", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCardMode; } })); Object.defineProperty(exports, "HoverCard", ({ enumerable: true, get: function () { return HoverCard_1.HoverCard; } })); Object.defineProperty(exports, "HoverCardBase", ({ enumerable: true, get: function () { return HoverCard_1.HoverCardBase; } })); Object.defineProperty(exports, "HoverCardType", ({ enumerable: true, get: function () { return HoverCard_1.HoverCardType; } })); Object.defineProperty(exports, "OpenCardMode", ({ enumerable: true, get: function () { return HoverCard_1.OpenCardMode; } })); Object.defineProperty(exports, "PlainCard", ({ enumerable: true, get: function () { return HoverCard_1.PlainCard; } })); Object.defineProperty(exports, "PlainCardBase", ({ enumerable: true, get: function () { return HoverCard_1.PlainCardBase; } })); var Icon_1 = __webpack_require__(/*! ./Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); Object.defineProperty(exports, "FontIcon", ({ enumerable: true, get: function () { return Icon_1.FontIcon; } })); Object.defineProperty(exports, "Icon", ({ enumerable: true, get: function () { return Icon_1.Icon; } })); Object.defineProperty(exports, "IconBase", ({ enumerable: true, get: function () { return Icon_1.IconBase; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "IconType", ({ enumerable: true, get: function () { return Icon_1.IconType; } })); Object.defineProperty(exports, "ImageIcon", ({ enumerable: true, get: function () { return Icon_1.ImageIcon; } })); Object.defineProperty(exports, "getFontIcon", ({ enumerable: true, get: function () { return Icon_1.getFontIcon; } })); Object.defineProperty(exports, "getIconContent", ({ enumerable: true, get: function () { return Icon_1.getIconContent; } })); var Icons_1 = __webpack_require__(/*! ./Icons */ "./node_modules/@fluentui/react/lib-commonjs/Icons.js"); Object.defineProperty(exports, "initializeIcons", ({ enumerable: true, get: function () { return Icons_1.initializeIcons; } })); var Image_1 = __webpack_require__(/*! ./Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.js"); Object.defineProperty(exports, "Image", ({ enumerable: true, get: function () { return Image_1.Image; } })); Object.defineProperty(exports, "ImageBase", ({ enumerable: true, get: function () { return Image_1.ImageBase; } })); Object.defineProperty(exports, "ImageCoverStyle", ({ enumerable: true, get: function () { return Image_1.ImageCoverStyle; } })); Object.defineProperty(exports, "ImageFit", ({ enumerable: true, get: function () { return Image_1.ImageFit; } })); Object.defineProperty(exports, "ImageLoadState", ({ enumerable: true, get: function () { return Image_1.ImageLoadState; } })); var Keytips_1 = __webpack_require__(/*! ./Keytips */ "./node_modules/@fluentui/react/lib-commonjs/Keytips.js"); Object.defineProperty(exports, "DATAKTP_ARIA_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_ARIA_TARGET; } })); Object.defineProperty(exports, "DATAKTP_EXECUTE_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_EXECUTE_TARGET; } })); Object.defineProperty(exports, "DATAKTP_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_TARGET; } })); Object.defineProperty(exports, "KTP_ARIA_SEPARATOR", ({ enumerable: true, get: function () { return Keytips_1.KTP_ARIA_SEPARATOR; } })); Object.defineProperty(exports, "KTP_FULL_PREFIX", ({ enumerable: true, get: function () { return Keytips_1.KTP_FULL_PREFIX; } })); Object.defineProperty(exports, "KTP_LAYER_ID", ({ enumerable: true, get: function () { return Keytips_1.KTP_LAYER_ID; } })); Object.defineProperty(exports, "KTP_PREFIX", ({ enumerable: true, get: function () { return Keytips_1.KTP_PREFIX; } })); Object.defineProperty(exports, "KTP_SEPARATOR", ({ enumerable: true, get: function () { return Keytips_1.KTP_SEPARATOR; } })); Object.defineProperty(exports, "Keytip", ({ enumerable: true, get: function () { return Keytips_1.Keytip; } })); Object.defineProperty(exports, "KeytipData", ({ enumerable: true, get: function () { return Keytips_1.KeytipData; } })); Object.defineProperty(exports, "KeytipEvents", ({ enumerable: true, get: function () { return Keytips_1.KeytipEvents; } })); Object.defineProperty(exports, "KeytipLayer", ({ enumerable: true, get: function () { return Keytips_1.KeytipLayer; } })); Object.defineProperty(exports, "KeytipLayerBase", ({ enumerable: true, get: function () { return Keytips_1.KeytipLayerBase; } })); Object.defineProperty(exports, "KeytipManager", ({ enumerable: true, get: function () { return Keytips_1.KeytipManager; } })); Object.defineProperty(exports, "buildKeytipConfigMap", ({ enumerable: true, get: function () { return Keytips_1.buildKeytipConfigMap; } })); Object.defineProperty(exports, "constructKeytip", ({ enumerable: true, get: function () { return Keytips_1.constructKeytip; } })); Object.defineProperty(exports, "getAriaDescribedBy", ({ enumerable: true, get: function () { return Keytips_1.getAriaDescribedBy; } })); Object.defineProperty(exports, "ktpTargetFromId", ({ enumerable: true, get: function () { return Keytips_1.ktpTargetFromId; } })); Object.defineProperty(exports, "ktpTargetFromSequences", ({ enumerable: true, get: function () { return Keytips_1.ktpTargetFromSequences; } })); Object.defineProperty(exports, "mergeOverflows", ({ enumerable: true, get: function () { return Keytips_1.mergeOverflows; } })); Object.defineProperty(exports, "sequencesToID", ({ enumerable: true, get: function () { return Keytips_1.sequencesToID; } })); Object.defineProperty(exports, "transitionKeysAreEqual", ({ enumerable: true, get: function () { return Keytips_1.transitionKeysAreEqual; } })); Object.defineProperty(exports, "transitionKeysContain", ({ enumerable: true, get: function () { return Keytips_1.transitionKeysContain; } })); Object.defineProperty(exports, "useKeytipRef", ({ enumerable: true, get: function () { return Keytips_1.useKeytipRef; } })); var Label_1 = __webpack_require__(/*! ./Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.js"); Object.defineProperty(exports, "Label", ({ enumerable: true, get: function () { return Label_1.Label; } })); Object.defineProperty(exports, "LabelBase", ({ enumerable: true, get: function () { return Label_1.LabelBase; } })); var Layer_1 = __webpack_require__(/*! ./Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); Object.defineProperty(exports, "Layer", ({ enumerable: true, get: function () { return Layer_1.Layer; } })); Object.defineProperty(exports, "LayerBase", ({ enumerable: true, get: function () { return Layer_1.LayerBase; } })); Object.defineProperty(exports, "LayerHost", ({ enumerable: true, get: function () { return Layer_1.LayerHost; } })); Object.defineProperty(exports, "cleanupDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_1.cleanupDefaultLayerHost; } })); Object.defineProperty(exports, "createDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_1.createDefaultLayerHost; } })); Object.defineProperty(exports, "getLayerCount", ({ enumerable: true, get: function () { return Layer_1.getLayerCount; } })); Object.defineProperty(exports, "getLayerHost", ({ enumerable: true, get: function () { return Layer_1.getLayerHost; } })); Object.defineProperty(exports, "getLayerHostSelector", ({ enumerable: true, get: function () { return Layer_1.getLayerHostSelector; } })); Object.defineProperty(exports, "getLayerStyles", ({ enumerable: true, get: function () { return Layer_1.getLayerStyles; } })); Object.defineProperty(exports, "notifyHostChanged", ({ enumerable: true, get: function () { return Layer_1.notifyHostChanged; } })); Object.defineProperty(exports, "registerLayer", ({ enumerable: true, get: function () { return Layer_1.registerLayer; } })); Object.defineProperty(exports, "registerLayerHost", ({ enumerable: true, get: function () { return Layer_1.registerLayerHost; } })); Object.defineProperty(exports, "setLayerHostSelector", ({ enumerable: true, get: function () { return Layer_1.setLayerHostSelector; } })); Object.defineProperty(exports, "unregisterLayer", ({ enumerable: true, get: function () { return Layer_1.unregisterLayer; } })); Object.defineProperty(exports, "unregisterLayerHost", ({ enumerable: true, get: function () { return Layer_1.unregisterLayerHost; } })); var Link_1 = __webpack_require__(/*! ./Link */ "./node_modules/@fluentui/react/lib-commonjs/Link.js"); Object.defineProperty(exports, "Link", ({ enumerable: true, get: function () { return Link_1.Link; } })); Object.defineProperty(exports, "LinkBase", ({ enumerable: true, get: function () { return Link_1.LinkBase; } })); var List_1 = __webpack_require__(/*! ./List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); Object.defineProperty(exports, "List", ({ enumerable: true, get: function () { return List_1.List; } })); Object.defineProperty(exports, "ScrollToMode", ({ enumerable: true, get: function () { return List_1.ScrollToMode; } })); var MarqueeSelection_1 = __webpack_require__(/*! ./MarqueeSelection */ "./node_modules/@fluentui/react/lib-commonjs/MarqueeSelection.js"); Object.defineProperty(exports, "MarqueeSelection", ({ enumerable: true, get: function () { return MarqueeSelection_1.MarqueeSelection; } })); var MessageBar_1 = __webpack_require__(/*! ./MessageBar */ "./node_modules/@fluentui/react/lib-commonjs/MessageBar.js"); Object.defineProperty(exports, "MessageBar", ({ enumerable: true, get: function () { return MessageBar_1.MessageBar; } })); Object.defineProperty(exports, "MessageBarBase", ({ enumerable: true, get: function () { return MessageBar_1.MessageBarBase; } })); Object.defineProperty(exports, "MessageBarType", ({ enumerable: true, get: function () { return MessageBar_1.MessageBarType; } })); var Modal_1 = __webpack_require__(/*! ./Modal */ "./node_modules/@fluentui/react/lib-commonjs/Modal.js"); Object.defineProperty(exports, "Modal", ({ enumerable: true, get: function () { return Modal_1.Modal; } })); Object.defineProperty(exports, "ModalBase", ({ enumerable: true, get: function () { return Modal_1.ModalBase; } })); var Nav_1 = __webpack_require__(/*! ./Nav */ "./node_modules/@fluentui/react/lib-commonjs/Nav.js"); Object.defineProperty(exports, "Nav", ({ enumerable: true, get: function () { return Nav_1.Nav; } })); Object.defineProperty(exports, "NavBase", ({ enumerable: true, get: function () { return Nav_1.NavBase; } })); Object.defineProperty(exports, "isRelativeUrl", ({ enumerable: true, get: function () { return Nav_1.isRelativeUrl; } })); var OverflowSet_1 = __webpack_require__(/*! ./OverflowSet */ "./node_modules/@fluentui/react/lib-commonjs/OverflowSet.js"); Object.defineProperty(exports, "OverflowSet", ({ enumerable: true, get: function () { return OverflowSet_1.OverflowSet; } })); Object.defineProperty(exports, "OverflowSetBase", ({ enumerable: true, get: function () { return OverflowSet_1.OverflowSetBase; } })); var Overlay_1 = __webpack_require__(/*! ./Overlay */ "./node_modules/@fluentui/react/lib-commonjs/Overlay.js"); Object.defineProperty(exports, "Overlay", ({ enumerable: true, get: function () { return Overlay_1.Overlay; } })); Object.defineProperty(exports, "OverlayBase", ({ enumerable: true, get: function () { return Overlay_1.OverlayBase; } })); var Panel_1 = __webpack_require__(/*! ./Panel */ "./node_modules/@fluentui/react/lib-commonjs/Panel.js"); Object.defineProperty(exports, "Panel", ({ enumerable: true, get: function () { return Panel_1.Panel; } })); Object.defineProperty(exports, "PanelBase", ({ enumerable: true, get: function () { return Panel_1.PanelBase; } })); Object.defineProperty(exports, "PanelType", ({ enumerable: true, get: function () { return Panel_1.PanelType; } })); var Persona_1 = __webpack_require__(/*! ./Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); Object.defineProperty(exports, "Persona", ({ enumerable: true, get: function () { return Persona_1.Persona; } })); Object.defineProperty(exports, "PersonaBase", ({ enumerable: true, get: function () { return Persona_1.PersonaBase; } })); Object.defineProperty(exports, "PersonaCoin", ({ enumerable: true, get: function () { return Persona_1.PersonaCoin; } })); Object.defineProperty(exports, "PersonaCoinBase", ({ enumerable: true, get: function () { return Persona_1.PersonaCoinBase; } })); Object.defineProperty(exports, "PersonaInitialsColor", ({ enumerable: true, get: function () { return Persona_1.PersonaInitialsColor; } })); Object.defineProperty(exports, "PersonaPresence", ({ enumerable: true, get: function () { return Persona_1.PersonaPresence; } })); Object.defineProperty(exports, "PersonaSize", ({ enumerable: true, get: function () { return Persona_1.PersonaSize; } })); Object.defineProperty(exports, "getPersonaInitialsColor", ({ enumerable: true, get: function () { return Persona_1.getPersonaInitialsColor; } })); Object.defineProperty(exports, "personaPresenceSize", ({ enumerable: true, get: function () { return Persona_1.personaPresenceSize; } })); Object.defineProperty(exports, "personaSize", ({ enumerable: true, get: function () { return Persona_1.personaSize; } })); Object.defineProperty(exports, "presenceBoolean", ({ enumerable: true, get: function () { return Persona_1.presenceBoolean; } })); Object.defineProperty(exports, "sizeBoolean", ({ enumerable: true, get: function () { return Persona_1.sizeBoolean; } })); Object.defineProperty(exports, "sizeToPixels", ({ enumerable: true, get: function () { return Persona_1.sizeToPixels; } })); var Pickers_1 = __webpack_require__(/*! ./Pickers */ "./node_modules/@fluentui/react/lib-commonjs/Pickers.js"); Object.defineProperty(exports, "BasePeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.BasePeoplePicker; } })); Object.defineProperty(exports, "BasePicker", ({ enumerable: true, get: function () { return Pickers_1.BasePicker; } })); Object.defineProperty(exports, "BasePickerListBelow", ({ enumerable: true, get: function () { return Pickers_1.BasePickerListBelow; } })); Object.defineProperty(exports, "CompactPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.CompactPeoplePicker; } })); Object.defineProperty(exports, "CompactPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.CompactPeoplePickerBase; } })); Object.defineProperty(exports, "ListPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.ListPeoplePicker; } })); Object.defineProperty(exports, "ListPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.ListPeoplePickerBase; } })); Object.defineProperty(exports, "MemberListPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.MemberListPeoplePicker; } })); Object.defineProperty(exports, "NormalPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.NormalPeoplePicker; } })); Object.defineProperty(exports, "NormalPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.NormalPeoplePickerBase; } })); Object.defineProperty(exports, "PeoplePickerItem", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItem; } })); Object.defineProperty(exports, "PeoplePickerItemBase", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemBase; } })); Object.defineProperty(exports, "PeoplePickerItemSuggestion", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemSuggestion; } })); Object.defineProperty(exports, "PeoplePickerItemSuggestionBase", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemSuggestionBase; } })); Object.defineProperty(exports, "SuggestionActionType", ({ enumerable: true, get: function () { return Pickers_1.SuggestionActionType; } })); Object.defineProperty(exports, "Suggestions", ({ enumerable: true, get: function () { return Pickers_1.Suggestions; } })); Object.defineProperty(exports, "SuggestionsController", ({ enumerable: true, get: function () { return Pickers_1.SuggestionsController; } })); Object.defineProperty(exports, "SuggestionsItem", ({ enumerable: true, get: function () { return Pickers_1.SuggestionsItem; } })); Object.defineProperty(exports, "TagItem", ({ enumerable: true, get: function () { return Pickers_1.TagItem; } })); Object.defineProperty(exports, "TagItemBase", ({ enumerable: true, get: function () { return Pickers_1.TagItemBase; } })); Object.defineProperty(exports, "TagItemSuggestion", ({ enumerable: true, get: function () { return Pickers_1.TagItemSuggestion; } })); Object.defineProperty(exports, "TagItemSuggestionBase", ({ enumerable: true, get: function () { return Pickers_1.TagItemSuggestionBase; } })); Object.defineProperty(exports, "TagPicker", ({ enumerable: true, get: function () { return Pickers_1.TagPicker; } })); Object.defineProperty(exports, "TagPickerBase", ({ enumerable: true, get: function () { return Pickers_1.TagPickerBase; } })); Object.defineProperty(exports, "ValidationState", ({ enumerable: true, get: function () { return Pickers_1.ValidationState; } })); Object.defineProperty(exports, "createGenericItem", ({ enumerable: true, get: function () { return Pickers_1.createGenericItem; } })); Object.defineProperty(exports, "getBasePickerStyles", ({ enumerable: true, get: function () { return Pickers_1.getBasePickerStyles; } })); Object.defineProperty(exports, "getPeoplePickerItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getPeoplePickerItemStyles; } })); Object.defineProperty(exports, "getPeoplePickerItemSuggestionStyles", ({ enumerable: true, get: function () { return Pickers_1.getPeoplePickerItemSuggestionStyles; } })); Object.defineProperty(exports, "getSuggestionsItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getSuggestionsItemStyles; } })); Object.defineProperty(exports, "getSuggestionsStyles", ({ enumerable: true, get: function () { return Pickers_1.getSuggestionsStyles; } })); Object.defineProperty(exports, "getTagItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getTagItemStyles; } })); Object.defineProperty(exports, "getTagItemSuggestionStyles", ({ enumerable: true, get: function () { return Pickers_1.getTagItemSuggestionStyles; } })); var Pivot_1 = __webpack_require__(/*! ./Pivot */ "./node_modules/@fluentui/react/lib-commonjs/Pivot.js"); Object.defineProperty(exports, "Pivot", ({ enumerable: true, get: function () { return Pivot_1.Pivot; } })); Object.defineProperty(exports, "PivotBase", ({ enumerable: true, get: function () { return Pivot_1.PivotBase; } })); Object.defineProperty(exports, "PivotItem", ({ enumerable: true, get: function () { return Pivot_1.PivotItem; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "PivotLinkFormat", ({ enumerable: true, get: function () { return Pivot_1.PivotLinkFormat; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "PivotLinkSize", ({ enumerable: true, get: function () { return Pivot_1.PivotLinkSize; } })); var Popup_1 = __webpack_require__(/*! ./Popup */ "./node_modules/@fluentui/react/lib-commonjs/Popup.js"); Object.defineProperty(exports, "Popup", ({ enumerable: true, get: function () { return Popup_1.Popup; } })); var Positioning_1 = __webpack_require__(/*! ./Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); Object.defineProperty(exports, "Position", ({ enumerable: true, get: function () { return Positioning_1.Position; } })); Object.defineProperty(exports, "RectangleEdge", ({ enumerable: true, get: function () { return Positioning_1.RectangleEdge; } })); Object.defineProperty(exports, "getBoundsFromTargetWindow", ({ enumerable: true, get: function () { return Positioning_1.getBoundsFromTargetWindow; } })); Object.defineProperty(exports, "getMaxHeight", ({ enumerable: true, get: function () { return Positioning_1.getMaxHeight; } })); Object.defineProperty(exports, "getOppositeEdge", ({ enumerable: true, get: function () { return Positioning_1.getOppositeEdge; } })); Object.defineProperty(exports, "positionCallout", ({ enumerable: true, get: function () { return Positioning_1.positionCallout; } })); Object.defineProperty(exports, "positionCard", ({ enumerable: true, get: function () { return Positioning_1.positionCard; } })); Object.defineProperty(exports, "positionElement", ({ enumerable: true, get: function () { return Positioning_1.positionElement; } })); var PositioningContainer_1 = __webpack_require__(/*! ./PositioningContainer */ "./node_modules/@fluentui/react/lib-commonjs/PositioningContainer.js"); Object.defineProperty(exports, "PositioningContainer", ({ enumerable: true, get: function () { return PositioningContainer_1.PositioningContainer; } })); Object.defineProperty(exports, "useHeightOffset", ({ enumerable: true, get: function () { return PositioningContainer_1.useHeightOffset; } })); var ProgressIndicator_1 = __webpack_require__(/*! ./ProgressIndicator */ "./node_modules/@fluentui/react/lib-commonjs/ProgressIndicator.js"); Object.defineProperty(exports, "ProgressIndicator", ({ enumerable: true, get: function () { return ProgressIndicator_1.ProgressIndicator; } })); Object.defineProperty(exports, "ProgressIndicatorBase", ({ enumerable: true, get: function () { return ProgressIndicator_1.ProgressIndicatorBase; } })); var Rating_1 = __webpack_require__(/*! ./Rating */ "./node_modules/@fluentui/react/lib-commonjs/Rating.js"); Object.defineProperty(exports, "Rating", ({ enumerable: true, get: function () { return Rating_1.Rating; } })); Object.defineProperty(exports, "RatingBase", ({ enumerable: true, get: function () { return Rating_1.RatingBase; } })); Object.defineProperty(exports, "RatingSize", ({ enumerable: true, get: function () { return Rating_1.RatingSize; } })); var ResizeGroup_1 = __webpack_require__(/*! ./ResizeGroup */ "./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js"); Object.defineProperty(exports, "MeasuredContext", ({ enumerable: true, get: function () { return ResizeGroup_1.MeasuredContext; } })); Object.defineProperty(exports, "ResizeGroup", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroup; } })); Object.defineProperty(exports, "ResizeGroupBase", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroupBase; } })); Object.defineProperty(exports, "ResizeGroupDirection", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroupDirection; } })); Object.defineProperty(exports, "getMeasurementCache", ({ enumerable: true, get: function () { return ResizeGroup_1.getMeasurementCache; } })); Object.defineProperty(exports, "getNextResizeGroupStateProvider", ({ enumerable: true, get: function () { return ResizeGroup_1.getNextResizeGroupStateProvider; } })); var ResponsiveMode_1 = __webpack_require__(/*! ./ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); Object.defineProperty(exports, "ResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.ResponsiveMode; } })); Object.defineProperty(exports, "getInitialResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.getInitialResponsiveMode; } })); Object.defineProperty(exports, "getResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.getResponsiveMode; } })); Object.defineProperty(exports, "initializeResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.initializeResponsiveMode; } })); Object.defineProperty(exports, "setResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.setResponsiveMode; } })); Object.defineProperty(exports, "useResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.useResponsiveMode; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "withResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.withResponsiveMode; } })); var ScrollablePane_1 = __webpack_require__(/*! ./ScrollablePane */ "./node_modules/@fluentui/react/lib-commonjs/ScrollablePane.js"); Object.defineProperty(exports, "ScrollablePane", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePane; } })); Object.defineProperty(exports, "ScrollablePaneBase", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePaneBase; } })); Object.defineProperty(exports, "ScrollablePaneContext", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePaneContext; } })); Object.defineProperty(exports, "ScrollbarVisibility", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollbarVisibility; } })); var SearchBox_1 = __webpack_require__(/*! ./SearchBox */ "./node_modules/@fluentui/react/lib-commonjs/SearchBox.js"); Object.defineProperty(exports, "SearchBox", ({ enumerable: true, get: function () { return SearchBox_1.SearchBox; } })); Object.defineProperty(exports, "SearchBoxBase", ({ enumerable: true, get: function () { return SearchBox_1.SearchBoxBase; } })); var SelectableOption_1 = __webpack_require__(/*! ./SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js"); Object.defineProperty(exports, "SelectableOptionMenuItemType", ({ enumerable: true, get: function () { return SelectableOption_1.SelectableOptionMenuItemType; } })); Object.defineProperty(exports, "getAllSelectedOptions", ({ enumerable: true, get: function () { return SelectableOption_1.getAllSelectedOptions; } })); var SelectedItemsList_1 = __webpack_require__(/*! ./SelectedItemsList */ "./node_modules/@fluentui/react/lib-commonjs/SelectedItemsList.js"); Object.defineProperty(exports, "BasePeopleSelectedItemsList", ({ enumerable: true, get: function () { return SelectedItemsList_1.BasePeopleSelectedItemsList; } })); Object.defineProperty(exports, "BaseSelectedItemsList", ({ enumerable: true, get: function () { return SelectedItemsList_1.BaseSelectedItemsList; } })); Object.defineProperty(exports, "ExtendedSelectedItem", ({ enumerable: true, get: function () { return SelectedItemsList_1.ExtendedSelectedItem; } })); Object.defineProperty(exports, "SelectedPeopleList", ({ enumerable: true, get: function () { return SelectedItemsList_1.SelectedPeopleList; } })); var Separator_1 = __webpack_require__(/*! ./Separator */ "./node_modules/@fluentui/react/lib-commonjs/Separator.js"); Object.defineProperty(exports, "Separator", ({ enumerable: true, get: function () { return Separator_1.Separator; } })); Object.defineProperty(exports, "SeparatorBase", ({ enumerable: true, get: function () { return Separator_1.SeparatorBase; } })); var Shimmer_1 = __webpack_require__(/*! ./Shimmer */ "./node_modules/@fluentui/react/lib-commonjs/Shimmer.js"); Object.defineProperty(exports, "Shimmer", ({ enumerable: true, get: function () { return Shimmer_1.Shimmer; } })); Object.defineProperty(exports, "ShimmerBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerBase; } })); Object.defineProperty(exports, "ShimmerCircle", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerCircle; } })); Object.defineProperty(exports, "ShimmerCircleBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerCircleBase; } })); Object.defineProperty(exports, "ShimmerElementType", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementType; } })); Object.defineProperty(exports, "ShimmerElementsDefaultHeights", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsDefaultHeights; } })); Object.defineProperty(exports, "ShimmerElementsGroup", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsGroup; } })); Object.defineProperty(exports, "ShimmerElementsGroupBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsGroupBase; } })); Object.defineProperty(exports, "ShimmerGap", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerGap; } })); Object.defineProperty(exports, "ShimmerGapBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerGapBase; } })); Object.defineProperty(exports, "ShimmerLine", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerLine; } })); Object.defineProperty(exports, "ShimmerLineBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerLineBase; } })); var ShimmeredDetailsList_1 = __webpack_require__(/*! ./ShimmeredDetailsList */ "./node_modules/@fluentui/react/lib-commonjs/ShimmeredDetailsList.js"); Object.defineProperty(exports, "ShimmeredDetailsList", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.ShimmeredDetailsList; } })); Object.defineProperty(exports, "ShimmeredDetailsListBase", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.ShimmeredDetailsListBase; } })); Object.defineProperty(exports, "getShimmeredDetailsListStyles", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.getShimmeredDetailsListStyles; } })); var Slider_1 = __webpack_require__(/*! ./Slider */ "./node_modules/@fluentui/react/lib-commonjs/Slider.js"); Object.defineProperty(exports, "Slider", ({ enumerable: true, get: function () { return Slider_1.Slider; } })); Object.defineProperty(exports, "SliderBase", ({ enumerable: true, get: function () { return Slider_1.SliderBase; } })); var SpinButton_1 = __webpack_require__(/*! ./SpinButton */ "./node_modules/@fluentui/react/lib-commonjs/SpinButton.js"); Object.defineProperty(exports, "KeyboardSpinDirection", ({ enumerable: true, get: function () { return SpinButton_1.KeyboardSpinDirection; } })); Object.defineProperty(exports, "SpinButton", ({ enumerable: true, get: function () { return SpinButton_1.SpinButton; } })); var Spinner_1 = __webpack_require__(/*! ./Spinner */ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js"); Object.defineProperty(exports, "Spinner", ({ enumerable: true, get: function () { return Spinner_1.Spinner; } })); Object.defineProperty(exports, "SpinnerBase", ({ enumerable: true, get: function () { return Spinner_1.SpinnerBase; } })); Object.defineProperty(exports, "SpinnerSize", ({ enumerable: true, get: function () { return Spinner_1.SpinnerSize; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "SpinnerType", ({ enumerable: true, get: function () { return Spinner_1.SpinnerType; } })); var Stack_1 = __webpack_require__(/*! ./Stack */ "./node_modules/@fluentui/react/lib-commonjs/Stack.js"); Object.defineProperty(exports, "Stack", ({ enumerable: true, get: function () { return Stack_1.Stack; } })); Object.defineProperty(exports, "StackItem", ({ enumerable: true, get: function () { return Stack_1.StackItem; } })); var Sticky_1 = __webpack_require__(/*! ./Sticky */ "./node_modules/@fluentui/react/lib-commonjs/Sticky.js"); Object.defineProperty(exports, "Sticky", ({ enumerable: true, get: function () { return Sticky_1.Sticky; } })); Object.defineProperty(exports, "StickyPositionType", ({ enumerable: true, get: function () { return Sticky_1.StickyPositionType; } })); var Styling_1 = __webpack_require__(/*! ./Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); Object.defineProperty(exports, "AnimationClassNames", ({ enumerable: true, get: function () { return Styling_1.AnimationClassNames; } })); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return Styling_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return Styling_1.AnimationVariables; } })); Object.defineProperty(exports, "ColorClassNames", ({ enumerable: true, get: function () { return Styling_1.ColorClassNames; } })); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return Styling_1.DefaultEffects; } })); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return Styling_1.DefaultFontStyles; } })); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return Styling_1.DefaultPalette; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "EdgeChromiumHighContrastSelector", ({ enumerable: true, get: function () { return Styling_1.EdgeChromiumHighContrastSelector; } })); Object.defineProperty(exports, "FontClassNames", ({ enumerable: true, get: function () { return Styling_1.FontClassNames; } })); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return Styling_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return Styling_1.FontWeights; } })); Object.defineProperty(exports, "HighContrastSelector", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelector; } })); Object.defineProperty(exports, "HighContrastSelectorBlack", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelectorBlack; } })); Object.defineProperty(exports, "HighContrastSelectorWhite", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelectorWhite; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return Styling_1.IconFontSizes; } })); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return Styling_1.InjectionMode; } })); Object.defineProperty(exports, "PulsingBeaconAnimationStyles", ({ enumerable: true, get: function () { return Styling_1.PulsingBeaconAnimationStyles; } })); Object.defineProperty(exports, "ScreenWidthMaxLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxMedium", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxMedium; } })); Object.defineProperty(exports, "ScreenWidthMaxSmall", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxSmall; } })); Object.defineProperty(exports, "ScreenWidthMaxXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxXLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinLarge; } })); Object.defineProperty(exports, "ScreenWidthMinMedium", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinMedium; } })); Object.defineProperty(exports, "ScreenWidthMinSmall", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinSmall; } })); Object.defineProperty(exports, "ScreenWidthMinUhfMobile", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinUhfMobile; } })); Object.defineProperty(exports, "ScreenWidthMinXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXXXLarge; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return Styling_1.Stylesheet; } })); Object.defineProperty(exports, "ThemeSettingName", ({ enumerable: true, get: function () { return Styling_1.ThemeSettingName; } })); Object.defineProperty(exports, "ZIndexes", ({ enumerable: true, get: function () { return Styling_1.ZIndexes; } })); Object.defineProperty(exports, "buildClassMap", ({ enumerable: true, get: function () { return Styling_1.buildClassMap; } })); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return Styling_1.concatStyleSets; } })); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return Styling_1.concatStyleSetsWithProps; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return Styling_1.createFontStyles; } })); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return Styling_1.createTheme; } })); Object.defineProperty(exports, "focusClear", ({ enumerable: true, get: function () { return Styling_1.focusClear; } })); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return Styling_1.fontFace; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getEdgeChromiumNoHighContrastAdjustSelector", ({ enumerable: true, get: function () { return Styling_1.getEdgeChromiumNoHighContrastAdjustSelector; } })); Object.defineProperty(exports, "getFadedOverflowStyle", ({ enumerable: true, get: function () { return Styling_1.getFadedOverflowStyle; } })); Object.defineProperty(exports, "getFocusOutlineStyle", ({ enumerable: true, get: function () { return Styling_1.getFocusOutlineStyle; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getFocusStyle", ({ enumerable: true, get: function () { return Styling_1.getFocusStyle; } })); Object.defineProperty(exports, "getGlobalClassNames", ({ enumerable: true, get: function () { return Styling_1.getGlobalClassNames; } })); Object.defineProperty(exports, "getHighContrastNoAdjustStyle", ({ enumerable: true, get: function () { return Styling_1.getHighContrastNoAdjustStyle; } })); Object.defineProperty(exports, "getIcon", ({ enumerable: true, get: function () { return Styling_1.getIcon; } })); Object.defineProperty(exports, "getIconClassName", ({ enumerable: true, get: function () { return Styling_1.getIconClassName; } })); Object.defineProperty(exports, "getInputFocusStyle", ({ enumerable: true, get: function () { return Styling_1.getInputFocusStyle; } })); Object.defineProperty(exports, "getPlaceholderStyles", ({ enumerable: true, get: function () { return Styling_1.getPlaceholderStyles; } })); Object.defineProperty(exports, "getScreenSelector", ({ enumerable: true, get: function () { return Styling_1.getScreenSelector; } })); Object.defineProperty(exports, "getTheme", ({ enumerable: true, get: function () { return Styling_1.getTheme; } })); Object.defineProperty(exports, "getThemedContext", ({ enumerable: true, get: function () { return Styling_1.getThemedContext; } })); Object.defineProperty(exports, "hiddenContentStyle", ({ enumerable: true, get: function () { return Styling_1.hiddenContentStyle; } })); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return Styling_1.keyframes; } })); Object.defineProperty(exports, "loadTheme", ({ enumerable: true, get: function () { return Styling_1.loadTheme; } })); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return Styling_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return Styling_1.mergeStyles; } })); Object.defineProperty(exports, "noWrap", ({ enumerable: true, get: function () { return Styling_1.noWrap; } })); Object.defineProperty(exports, "normalize", ({ enumerable: true, get: function () { return Styling_1.normalize; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return Styling_1.registerDefaultFontFaces; } })); Object.defineProperty(exports, "registerIconAlias", ({ enumerable: true, get: function () { return Styling_1.registerIconAlias; } })); Object.defineProperty(exports, "registerIcons", ({ enumerable: true, get: function () { return Styling_1.registerIcons; } })); Object.defineProperty(exports, "registerOnThemeChangeCallback", ({ enumerable: true, get: function () { return Styling_1.registerOnThemeChangeCallback; } })); Object.defineProperty(exports, "removeOnThemeChangeCallback", ({ enumerable: true, get: function () { return Styling_1.removeOnThemeChangeCallback; } })); Object.defineProperty(exports, "setIconOptions", ({ enumerable: true, get: function () { return Styling_1.setIconOptions; } })); Object.defineProperty(exports, "unregisterIcons", ({ enumerable: true, get: function () { return Styling_1.unregisterIcons; } })); var SwatchColorPicker_1 = __webpack_require__(/*! ./SwatchColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/SwatchColorPicker.js"); Object.defineProperty(exports, "ColorPickerGridCell", ({ enumerable: true, get: function () { return SwatchColorPicker_1.ColorPickerGridCell; } })); Object.defineProperty(exports, "ColorPickerGridCellBase", ({ enumerable: true, get: function () { return SwatchColorPicker_1.ColorPickerGridCellBase; } })); Object.defineProperty(exports, "SwatchColorPicker", ({ enumerable: true, get: function () { return SwatchColorPicker_1.SwatchColorPicker; } })); Object.defineProperty(exports, "SwatchColorPickerBase", ({ enumerable: true, get: function () { return SwatchColorPicker_1.SwatchColorPickerBase; } })); var TeachingBubble_1 = __webpack_require__(/*! ./TeachingBubble */ "./node_modules/@fluentui/react/lib-commonjs/TeachingBubble.js"); Object.defineProperty(exports, "TeachingBubble", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubble; } })); Object.defineProperty(exports, "TeachingBubbleBase", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleBase; } })); Object.defineProperty(exports, "TeachingBubbleContent", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleContent; } })); Object.defineProperty(exports, "TeachingBubbleContentBase", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleContentBase; } })); var Text_1 = __webpack_require__(/*! ./Text */ "./node_modules/@fluentui/react/lib-commonjs/Text.js"); Object.defineProperty(exports, "Text", ({ enumerable: true, get: function () { return Text_1.Text; } })); Object.defineProperty(exports, "TextStyles", ({ enumerable: true, get: function () { return Text_1.TextStyles; } })); Object.defineProperty(exports, "TextView", ({ enumerable: true, get: function () { return Text_1.TextView; } })); var TextField_1 = __webpack_require__(/*! ./TextField */ "./node_modules/@fluentui/react/lib-commonjs/TextField.js"); Object.defineProperty(exports, "DEFAULT_MASK_CHAR", ({ enumerable: true, get: function () { return TextField_1.DEFAULT_MASK_CHAR; } })); Object.defineProperty(exports, "MaskedTextField", ({ enumerable: true, get: function () { return TextField_1.MaskedTextField; } })); Object.defineProperty(exports, "TextField", ({ enumerable: true, get: function () { return TextField_1.TextField; } })); Object.defineProperty(exports, "TextFieldBase", ({ enumerable: true, get: function () { return TextField_1.TextFieldBase; } })); Object.defineProperty(exports, "getTextFieldStyles", ({ enumerable: true, get: function () { return TextField_1.getTextFieldStyles; } })); var ThemeGenerator_1 = __webpack_require__(/*! ./ThemeGenerator */ "./node_modules/@fluentui/react/lib-commonjs/ThemeGenerator.js"); Object.defineProperty(exports, "BaseSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.BaseSlots; } })); Object.defineProperty(exports, "FabricSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.FabricSlots; } })); Object.defineProperty(exports, "SemanticColorSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.SemanticColorSlots; } })); Object.defineProperty(exports, "ThemeGenerator", ({ enumerable: true, get: function () { return ThemeGenerator_1.ThemeGenerator; } })); Object.defineProperty(exports, "themeRulesStandardCreator", ({ enumerable: true, get: function () { return ThemeGenerator_1.themeRulesStandardCreator; } })); var TimePicker_1 = __webpack_require__(/*! ./TimePicker */ "./node_modules/@fluentui/react/lib-commonjs/TimePicker.js"); Object.defineProperty(exports, "TimePicker", ({ enumerable: true, get: function () { return TimePicker_1.TimePicker; } })); var Toggle_1 = __webpack_require__(/*! ./Toggle */ "./node_modules/@fluentui/react/lib-commonjs/Toggle.js"); Object.defineProperty(exports, "Toggle", ({ enumerable: true, get: function () { return Toggle_1.Toggle; } })); Object.defineProperty(exports, "ToggleBase", ({ enumerable: true, get: function () { return Toggle_1.ToggleBase; } })); var Tooltip_1 = __webpack_require__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); Object.defineProperty(exports, "Tooltip", ({ enumerable: true, get: function () { return Tooltip_1.Tooltip; } })); Object.defineProperty(exports, "TooltipBase", ({ enumerable: true, get: function () { return Tooltip_1.TooltipBase; } })); Object.defineProperty(exports, "TooltipDelay", ({ enumerable: true, get: function () { return Tooltip_1.TooltipDelay; } })); Object.defineProperty(exports, "TooltipHost", ({ enumerable: true, get: function () { return Tooltip_1.TooltipHost; } })); Object.defineProperty(exports, "TooltipHostBase", ({ enumerable: true, get: function () { return Tooltip_1.TooltipHostBase; } })); Object.defineProperty(exports, "TooltipOverflowMode", ({ enumerable: true, get: function () { return Tooltip_1.TooltipOverflowMode; } })); var Utilities_1 = __webpack_require__(/*! ./Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.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, "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; } })); var Viewport_1 = __webpack_require__(/*! ./Viewport */ "./node_modules/@fluentui/react/lib-commonjs/Viewport.js"); Object.defineProperty(exports, "withViewport", ({ enumerable: true, get: function () { return Viewport_1.withViewport; } })); var WeeklyDayPicker_1 = __webpack_require__(/*! ./WeeklyDayPicker */ "./node_modules/@fluentui/react/lib-commonjs/WeeklyDayPicker.js"); Object.defineProperty(exports, "WeeklyDayPicker", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.WeeklyDayPicker; } })); Object.defineProperty(exports, "defaultWeeklyDayPickerNavigationIcons", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.defaultWeeklyDayPickerNavigationIcons; } })); Object.defineProperty(exports, "defaultWeeklyDayPickerStrings", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.defaultWeeklyDayPickerStrings; } })); var WindowProvider_1 = __webpack_require__(/*! ./WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); Object.defineProperty(exports, "WindowContext", ({ enumerable: true, get: function () { return WindowProvider_1.WindowContext; } })); Object.defineProperty(exports, "WindowProvider", ({ enumerable: true, get: function () { return WindowProvider_1.WindowProvider; } })); Object.defineProperty(exports, "useDocument", ({ enumerable: true, get: function () { return WindowProvider_1.useDocument; } })); Object.defineProperty(exports, "useWindow", ({ enumerable: true, get: function () { return WindowProvider_1.useWindow; } })); /** * Now explicitly declaring Theme exports that are NOT already being exported from Styles. * Styles and Theme both exported the same names which causes conflicting * star exports with webpack5. See here: https://github.com/microsoft/fluentui/issues/21601. */ var index_1 = __webpack_require__(/*! ./utilities/ThemeProvider/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js"); Object.defineProperty(exports, "ThemeContext", ({ enumerable: true, get: function () { return index_1.ThemeContext; } })); Object.defineProperty(exports, "ThemeProvider", ({ enumerable: true, get: function () { return index_1.ThemeProvider; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "makeStyles", ({ enumerable: true, get: function () { return index_1.makeStyles; } })); Object.defineProperty(exports, "useTheme", ({ enumerable: true, get: function () { return index_1.useTheme; } })); var Theme_1 = __webpack_require__(/*! ./Theme */ "./node_modules/@fluentui/react/lib-commonjs/Theme.js"); Object.defineProperty(exports, "CommunicationColors", ({ enumerable: true, get: function () { return Theme_1.CommunicationColors; } })); 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, "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; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGridBase = 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 react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); exports.ButtonGridBase = React.forwardRef(function (props, forwardedRef) { var id = (0, react_hooks_1.useId)(undefined, props.id); var items = props.items, columnCount = props.columnCount, onRenderItem = props.onRenderItem, isSemanticRadio = props.isSemanticRadio, // eslint-disable-next-line deprecation/deprecation _a = props.ariaPosInSet, // eslint-disable-next-line deprecation/deprecation ariaPosInSet = _a === void 0 ? props.positionInSet : _a, // eslint-disable-next-line deprecation/deprecation _b = props.ariaSetSize, // eslint-disable-next-line deprecation/deprecation ariaSetSize = _b === void 0 ? props.setSize : _b, styles = props.styles, doNotContainWithinFocusZone = props.doNotContainWithinFocusZone; var htmlProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties, // avoid applying onBlur on the table if it's being used in the FocusZone doNotContainWithinFocusZone ? [] : ['onBlur']); var classNames = getClassNames(styles, { theme: props.theme }); // Array to store the cells in the correct row index var rowsOfItems = (0, Utilities_1.toMatrix)(items, columnCount); var content = (React.createElement("table", tslib_1.__assign({ "aria-posinset": ariaPosInSet, "aria-setsize": ariaSetSize, id: id, role: isSemanticRadio ? 'radiogroup' : 'grid' }, htmlProps, { className: classNames.root }), React.createElement("tbody", { role: isSemanticRadio ? 'presentation' : 'rowgroup' }, rowsOfItems.map(function (rows, rowIndex) { return (React.createElement("tr", { role: isSemanticRadio ? 'presentation' : 'row', key: rowIndex }, rows.map(function (cell, cellIndex) { return (React.createElement("td", { role: "presentation", key: cellIndex + '-cell', className: classNames.tableCell }, onRenderItem(cell, cellIndex))); }))); })))); return doNotContainWithinFocusZone ? (content) : (React.createElement(FocusZone_1.FocusZone, { elementRef: forwardedRef, isCircularNavigation: props.shouldFocusCircularNavigate, className: classNames.focusedContainer, onBlur: props.onBlur }, content)); }); //# sourceMappingURL=ButtonGrid.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGrid = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ButtonGrid_base_1 = __webpack_require__(/*! ./ButtonGrid.base */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js"); var ButtonGrid_styles_1 = __webpack_require__(/*! ./ButtonGrid.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js"); exports.ButtonGrid = (0, Utilities_1.styled)(ButtonGrid_base_1.ButtonGridBase, ButtonGrid_styles_1.getStyles); exports.ButtonGrid.displayName = 'ButtonGrid'; //# sourceMappingURL=ButtonGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var getStyles = function (props) { return { root: { padding: 2, outline: 'none', }, tableCell: { padding: 0, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=ButtonGrid.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ButtonGrid.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGridCell = 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_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 ButtonGridCell = function (props) { var _a; var defaultId = (0, react_hooks_1.useId)('gridCell'); var item = props.item, _b = props.id, id = _b === void 0 ? defaultId : _b, className = props.className, selected = props.selected, _c = props.disabled, disabled = _c === void 0 ? false : _c, onRenderItem = props.onRenderItem, cellDisabledStyle = props.cellDisabledStyle, cellIsSelectedStyle = props.cellIsSelectedStyle, index = props.index, label = props.label, getClassNames = props.getClassNames, onClick = props.onClick, onHover = props.onHover, onMouseMove = props.onMouseMove, onMouseLeave = props.onMouseLeave, onMouseEnter = props.onMouseEnter, onFocus = props.onFocus; var buttonProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.buttonProperties); var handleClick = React.useCallback(function (event) { if (onClick && !disabled) { onClick(item, event); } }, [disabled, item, onClick]); var handleMouseEnter = React.useCallback(function (ev) { var didUpdateOnEnter = onMouseEnter && onMouseEnter(ev); if (!didUpdateOnEnter && onHover && !disabled) { onHover(item, ev); } }, [disabled, item, onHover, onMouseEnter]); var handleMouseMove = React.useCallback(function (ev) { var didUpdateOnMove = onMouseMove && onMouseMove(ev); if (!didUpdateOnMove && onHover && !disabled) { onHover(item, ev); } }, [disabled, item, onHover, onMouseMove]); var handleMouseLeave = React.useCallback(function (ev) { var didUpdateOnLeave = onMouseLeave && onMouseLeave(ev); if (!didUpdateOnLeave && onHover && !disabled) { onHover(undefined, ev); } }, [disabled, onHover, onMouseLeave]); var handleFocus = React.useCallback(function (event) { if (onFocus && !disabled) { onFocus(item, event); } }, [disabled, item, onFocus]); return (React.createElement(Button_1.CommandButton, tslib_1.__assign({ id: id, "data-index": index, "data-is-focusable": true, "aria-selected": selected, ariaLabel: label, title: label }, buttonProps, { className: (0, Utilities_1.css)(className, (_a = {}, _a['' + cellIsSelectedStyle] = selected, _a['' + cellDisabledStyle] = disabled, _a)), onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseMove: handleMouseMove, onMouseLeave: handleMouseLeave, onFocus: handleFocus, getClassNames: getClassNames }), onRenderItem(item))); }; exports.ButtonGridCell = ButtonGridCell; //# sourceMappingURL=ButtonGridCell.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ButtonGridCell.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/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__(/*! ./ButtonGrid */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGrid.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGridCell */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGridCell.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DraggableZone = 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 DraggableZone_styles_1 = __webpack_require__(/*! ./DraggableZone.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var eventMapping = { touch: { start: 'touchstart', move: 'touchmove', stop: 'touchend', }, mouse: { start: 'mousedown', move: 'mousemove', stop: 'mouseup', }, }; var DraggableZone = /** @class */ (function (_super) { tslib_1.__extends(DraggableZone, _super); function DraggableZone(props) { var _this = _super.call(this, props) || this; _this._currentEventType = eventMapping.mouse; _this._events = []; _this._onMouseDown = function (event) { var onMouseDown = React.Children.only(_this.props.children).props.onMouseDown; if (onMouseDown) { onMouseDown(event); } _this._currentEventType = eventMapping.mouse; return _this._onDragStart(event); }; _this._onMouseUp = function (event) { var onMouseUp = React.Children.only(_this.props.children).props.onMouseUp; if (onMouseUp) { onMouseUp(event); } _this._currentEventType = eventMapping.mouse; return _this._onDragStop(event); }; _this._onTouchStart = function (event) { var onTouchStart = React.Children.only(_this.props.children).props.onTouchStart; if (onTouchStart) { onTouchStart(event); } _this._currentEventType = eventMapping.touch; return _this._onDragStart(event); }; _this._onTouchEnd = function (event) { var onTouchEnd = React.Children.only(_this.props.children).props.onTouchEnd; if (onTouchEnd) { onTouchEnd(event); } _this._currentEventType = eventMapping.touch; _this._onDragStop(event); }; _this._onDragStart = function (event) { // Only handle left click for dragging if (typeof event.button === 'number' && event.button !== 0) { return false; } // If the target doesn't match the handleSelector OR // if the target does match the preventDragSelector, bail out if ((_this.props.handleSelector && !_this._matchesSelector(event.target, _this.props.handleSelector)) || (_this.props.preventDragSelector && _this._matchesSelector(event.target, _this.props.preventDragSelector))) { return; } // Remember the touch identifier if this is a touch event so we can // distinguish between individual touches in multitouch scenarios // by remembering which touch point we were given _this._touchId = _this._getTouchId(event); var position = _this._getControlPosition(event); if (position === undefined) { return; } var dragData = _this._createDragDataFromPosition(position); _this.props.onStart && _this.props.onStart(event, dragData); _this.setState({ isDragging: true, lastPosition: position, }); // hook up the appropriate mouse/touch events to the body to ensure // smooth dragging _this._events = [ (0, Utilities_1.on)(document.body, _this._currentEventType.move, _this._onDrag, true /* use capture phase */), (0, Utilities_1.on)(document.body, _this._currentEventType.stop, _this._onDragStop, true /* use capture phase */), ]; }; _this._onDrag = function (event) { // Prevent scrolling on mobile devices if (event.type === 'touchmove') { event.preventDefault(); } var position = _this._getControlPosition(event); if (!position) { return; } // create the updated drag data from the position data var updatedData = _this._createUpdatedDragData(_this._createDragDataFromPosition(position)); var updatedPosition = updatedData.position; _this.props.onDragChange && _this.props.onDragChange(event, updatedData); _this.setState({ position: updatedPosition, lastPosition: position, }); }; _this._onDragStop = function (event) { if (!_this.state.isDragging) { return; } var position = _this._getControlPosition(event); if (!position) { return; } var baseDragData = _this._createDragDataFromPosition(position); // Set dragging to false and reset the lastPosition _this.setState({ isDragging: false, lastPosition: undefined, }); _this.props.onStop && _this.props.onStop(event, baseDragData); if (_this.props.position) { _this.setState({ position: _this.props.position, }); } // Remove event handlers _this._events.forEach(function (dispose) { return dispose(); }); }; _this.state = { isDragging: false, position: _this.props.position || { x: 0, y: 0 }, lastPosition: undefined, }; return _this; } DraggableZone.prototype.componentDidUpdate = function (prevProps) { if (this.props.position && (!prevProps.position || this.props.position !== prevProps.position)) { this.setState({ position: this.props.position }); } }; DraggableZone.prototype.componentWillUnmount = function () { this._events.forEach(function (dispose) { return dispose(); }); }; DraggableZone.prototype.render = function () { var child = React.Children.only(this.props.children); var props = child.props; var position = this.props.position; var _a = this.state, statePosition = _a.position, isDragging = _a.isDragging; var x = statePosition.x; var y = statePosition.y; if (position && !isDragging) { x = position.x; y = position.y; } return React.cloneElement(child, { style: tslib_1.__assign(tslib_1.__assign({}, props.style), { transform: "translate(".concat(x, "px, ").concat(y, "px)") }), className: (0, DraggableZone_styles_1.getClassNames)(props.className, this.state.isDragging).root, onMouseDown: this._onMouseDown, onMouseUp: this._onMouseUp, onTouchStart: this._onTouchStart, onTouchEnd: this._onTouchEnd, }); }; /** * Get the control position based off the event that fired * @param event - The event to get offsets from */ DraggableZone.prototype._getControlPosition = function (event) { var touchObj = this._getActiveTouch(event); // did we get the right touch? if (this._touchId !== undefined && !touchObj) { return undefined; } var eventToGetOffset = touchObj || event; return { x: eventToGetOffset.clientX, y: eventToGetOffset.clientY, }; }; /** * Get the active touch point that we have saved from the event's TouchList * @param event - The event used to get the TouchList for the active touch point */ DraggableZone.prototype._getActiveTouch = function (event) { return ((event.targetTouches && this._findTouchInTouchList(event.targetTouches)) || (event.changedTouches && this._findTouchInTouchList(event.changedTouches))); }; /** * Get the initial touch identifier associated with the given event * @param event - The event that contains the TouchList */ DraggableZone.prototype._getTouchId = function (event) { var touch = (event.targetTouches && event.targetTouches[0]) || (event.changedTouches && event.changedTouches[0]); if (touch) { return touch.identifier; } }; /** * Returns if an element (or any of the element's parents) match the given selector */ DraggableZone.prototype._matchesSelector = function (element, selector) { if (!element || element === document.body) { return false; } var matchesSelectorFn = // eslint-disable-next-line deprecation/deprecation element.matches || element.webkitMatchesSelector || element.msMatchesSelector; /* for IE */ if (!matchesSelectorFn) { return false; } return matchesSelectorFn.call(element, selector) || this._matchesSelector(element.parentElement, selector); }; /** * Attempts to find the Touch that matches the identifier we stored in dragStart * @param touchList The TouchList to look for the stored identifier from dragStart */ DraggableZone.prototype._findTouchInTouchList = function (touchList) { if (this._touchId === undefined) { return; } for (var i = 0; i < touchList.length; i++) { if (touchList[i].identifier === this._touchId) { return touchList[i]; } } return undefined; }; /** * Create DragData based off of the last known position and the new position passed in * @param position The new position as part of the drag */ DraggableZone.prototype._createDragDataFromPosition = function (position) { var lastPosition = this.state.lastPosition; // If we have no lastPosition, use the given position // for last position if (lastPosition === undefined) { return { delta: { x: 0, y: 0 }, lastPosition: position, position: position, }; } return { delta: { x: position.x - lastPosition.x, y: position.y - lastPosition.y, }, lastPosition: lastPosition, position: position, }; }; /** * Creates an updated DragData based off the current position and given baseDragData * @param baseDragData The base DragData (from _createDragDataFromPosition) used to calculate the updated positions */ DraggableZone.prototype._createUpdatedDragData = function (baseDragData) { var position = this.state.position; return { position: { x: position.x + baseDragData.delta.x, y: position.y + baseDragData.delta.y, }, delta: baseDragData.delta, lastPosition: position, }; }; return DraggableZone; }(React.Component)); exports.DraggableZone = DraggableZone; //# sourceMappingURL=DraggableZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.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 (className, isDragging) { return { root: (0, Styling_1.mergeStyles)(className, isDragging && { touchAction: 'none', selectors: { '& *': { userSelect: 'none', }, }, }), }; }); //# sourceMappingURL=DraggableZone.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DraggableZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/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__(/*! ./DraggableZone */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DraggableZone.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DraggableZone.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useMenuContext = exports.MenuContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.MenuContext = React.createContext({}); var useMenuContext = function () { return React.useContext(exports.MenuContext); }; exports.useMenuContext = useMenuContext; //# sourceMappingURL=MenuContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/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__(/*! ./MenuContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.ThemeContext = React.createContext(undefined); //# sourceMappingURL=ThemeContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeProvider = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useThemeProviderClasses_1 = __webpack_require__(/*! ./useThemeProviderClasses */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js"); var useThemeProvider_1 = __webpack_require__(/*! ./useThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); /** * ThemeProvider, used for providing css variables and registering stylesheets. */ exports.ThemeProvider = React.forwardRef(function (props, ref) { var rootRef = (0, react_hooks_1.useMergedRefs)(ref, React.useRef(null)); var _a = (0, useThemeProvider_1.useThemeProvider)(props, { ref: rootRef, as: 'div', applyTo: 'element', }), render = _a.render, state = _a.state; // Render styles. (0, useThemeProviderClasses_1.useThemeProviderClasses)(state); // Return the rendered content. return render(state); }); exports.ThemeProvider.displayName = 'ThemeProvider'; //# sourceMappingURL=ThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeContext = exports.useTheme = exports.ThemeProvider = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var ThemeProvider_1 = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js"); Object.defineProperty(exports, "ThemeProvider", ({ enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } })); var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); Object.defineProperty(exports, "useTheme", ({ enumerable: true, get: function () { return useTheme_1.useTheme; } })); var ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); Object.defineProperty(exports, "ThemeContext", ({ enumerable: true, get: function () { return ThemeContext_1.ThemeContext; } })); tslib_1.__exportStar(__webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.makeStyles = void 0; var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var mergeStylesRenderer_1 = __webpack_require__(/*! ./styleRenderers/mergeStylesRenderer */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js"); var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var graphGet = function (graphNode, _a) { var _b, _c, _d; var windowId = _a[0], id = _a[1], theme = _a[2]; return (_d = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme)) === null || _d === void 0 ? void 0 : _d.classMap; }; var graphSet = function (graphNode, _a, classMap) { var _b, _c; var windowId = _a[0], id = _a[1], theme = _a[2]; var windowNode = (_b = graphNode.get(windowId)) !== null && _b !== void 0 ? _b : new Map(); graphNode.set(windowId, windowNode); var idNode = (_c = windowNode.get(id)) !== null && _c !== void 0 ? _c : new Map(); windowNode.set(id, idNode); idNode.set(theme, { classMap: classMap, refCount: 0 }); }; function graphRef(graphNode, _a) { var _b, _c; var windowId = _a[0], id = _a[1], theme = _a[2]; var node = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme); if (node) { node.refCount++; } } function graphDeref(graphNode, _a) { var _b, _c, _d, _e, _f, _g, _h, _j; var windowId = _a[0], id = _a[1], theme = _a[2]; var node = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme); if (node) { node.refCount--; if (node.refCount === 0) { (_e = (_d = graphNode.get(windowId)) === null || _d === void 0 ? void 0 : _d.get(id)) === null || _e === void 0 ? void 0 : _e.delete(theme); if (((_g = (_f = graphNode.get(windowId)) === null || _f === void 0 ? void 0 : _f.get(id)) === null || _g === void 0 ? void 0 : _g.size) === 0) { (_h = graphNode.get(windowId)) === null || _h === void 0 ? void 0 : _h.delete(id); if (((_j = graphNode.get(windowId)) === null || _j === void 0 ? void 0 : _j.size) === 0) { graphNode.delete(windowId); } } } } } /** * Registers a css object, optionally as a function of the theme. * * @param styleOrFunction - Either a css javascript object, or a function which takes in `ITheme` * and returns a css javascript object. * * @deprecated Use `mergeStyles` instead for v8 related code. We will be using a new implementation of `makeStyles` in * future versions of the library. */ function makeStyles(styleOrFunction) { // Create graph of inputs to map to output. var graph = new Map(); // Retain a dictionary of window ids we're tracking var allWindows = new Set(); // cleanupMapEntries will // 1. remove all the graph branches for the window, // 2. remove the event listener, // 3. delete the allWindows entry. var cleanupMapEntries = function (ev) { var win = ev.currentTarget; var winId = win.__id__; graph.delete(winId); win.removeEventListener('unload', cleanupMapEntries); allWindows.delete(winId); }; // eslint-disable-next-line deprecation/deprecation return function (options) { if (options === void 0) { options = {}; } var theme = options.theme; var winId; var win = (0, react_window_provider_1.useWindow)(); if (win) { win.__id__ = win.__id__ || (0, utilities_1.getId)(); winId = win.__id__; if (!allWindows.has(winId)) { allWindows.add(winId); win.addEventListener('unload', cleanupMapEntries); } } var contextualTheme = (0, useTheme_1.useTheme)(); theme = theme || contextualTheme; var renderer = mergeStylesRenderer_1.mergeStylesRenderer; var id = renderer.getId(); var path = [winId, id, theme]; var value = graphGet(graph, path); // Don't keep around unused styles (0, react_1.useEffect)(function () { graphRef(graph, [winId, id, theme]); return function () { return graphDeref(graph, [winId, id, theme]); }; }, [winId, id, theme]); if (!value) { var styles = isStyleFunction(styleOrFunction) ? styleOrFunction(theme) : styleOrFunction; value = mergeStylesRenderer_1.mergeStylesRenderer.renderStyles(styles, { targetWindow: win, rtl: !!theme.rtl }); graphSet(graph, path, value); } return value; }; } exports.makeStyles = makeStyles; function isStyleFunction(styleOrFunction) { return typeof styleOrFunction === 'function'; } //# sourceMappingURL=makeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.renderThemeProvider = 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 ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); var renderThemeProvider = function (state) { var customizerContext = state.customizerContext, ref = state.ref, theme = state.theme; var Root = state.as || 'div'; var rootProps = typeof state.as === 'string' ? (0, utilities_1.getNativeElementProps)(state.as, state) : state.as === React.Fragment ? { children: state.children } : (0, utilities_1.omit)(state, ['as']); return (React.createElement(ThemeContext_1.ThemeContext.Provider, { value: theme }, React.createElement(utilities_1.CustomizerContext.Provider, { value: customizerContext }, React.createElement(utilities_1.FocusRectsProvider, { providerRef: ref }, React.createElement(Root, tslib_1.__assign({}, rootProps)))))); }; exports.renderThemeProvider = renderThemeProvider; //# sourceMappingURL=renderThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeStylesRenderer = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var _seed = 0; exports.mergeStylesRenderer = { reset: function () { // If the stylesheet reset call is made, invalidate the cache keys. merge_styles_1.Stylesheet.getInstance().onReset(function () { return _seed++; }); }, getId: function () { return _seed; }, renderStyles: function (styleSet, options) { return (0, merge_styles_1.mergeCssSets)((Array.isArray(styleSet) ? styleSet : [styleSet]), options); }, renderFontFace: function (fontFace, options) { return (0, merge_styles_1.fontFace)(fontFace); }, renderKeyframes: function (keyframes) { return (0, merge_styles_1.keyframes)(keyframes); }, }; //# sourceMappingURL=mergeStylesRenderer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useTheme = void 0; var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); /** * Get theme from CustomizerContext or Customizations singleton. */ function useCompatTheme() { return (0, utilities_1.useCustomizationSettings)(['theme']).theme; } /** * React hook for programmatically accessing the theme. */ var useTheme = function () { var theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext); var legacyTheme = useCompatTheme(); return theme || legacyTheme || (0, theme_1.createTheme)({}); }; exports.useTheme = useTheme; //# sourceMappingURL=useTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProvider = void 0; var renderThemeProvider_1 = __webpack_require__(/*! ./renderThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js"); var useThemeProviderState_1 = __webpack_require__(/*! ./useThemeProviderState */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Returns the ThemeProvider render function and calculated state, given user input, ref, and * a set of default prop values. */ var useThemeProvider = function (props, defaultProps) { var state = (0, utilities_1.getPropsWithDefaults)(defaultProps, props); // Apply changes to state. (0, useThemeProviderState_1.useThemeProviderState)(state); return { state: state, render: renderThemeProvider_1.renderThemeProvider, }; }; exports.useThemeProvider = useThemeProvider; //# sourceMappingURL=useThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProviderClasses = 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 react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var makeStyles_1 = __webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js"); // eslint-disable-next-line deprecation/deprecation var useThemeProviderStyles = (0, makeStyles_1.makeStyles)(function (theme) { var semanticColors = theme.semanticColors, fonts = theme.fonts; return { body: [ { color: semanticColors.bodyText, background: semanticColors.bodyBackground, fontFamily: fonts.medium.fontFamily, fontWeight: fonts.medium.fontWeight, fontSize: fonts.medium.fontSize, MozOsxFontSmoothing: fonts.medium.MozOsxFontSmoothing, WebkitFontSmoothing: fonts.medium.WebkitFontSmoothing, }, ], }; }); /** * Hook to add class to body element. */ function useApplyClassToBody(state, classesToApply) { var _a; var applyTo = state.applyTo; var applyToBody = applyTo === 'body'; var body = (_a = (0, react_window_provider_1.useDocument)()) === null || _a === void 0 ? void 0 : _a.body; React.useEffect(function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_1 = classesToApply; _i < classesToApply_1.length; _i++) { var classToApply = classesToApply_1[_i]; if (classToApply) { body.classList.add(classToApply); } } return function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_2 = classesToApply; _i < classesToApply_2.length; _i++) { var classToApply = classesToApply_2[_i]; if (classToApply) { body.classList.remove(classToApply); } } }; }, [applyToBody, body, classesToApply]); } function useThemeProviderClasses(state) { var classes = useThemeProviderStyles(state); var className = state.className, applyTo = state.applyTo; useApplyClassToBody(state, [classes.root, classes.body]); state.className = (0, utilities_1.css)(className, classes.root, applyTo === 'element' && classes.body); } exports.useThemeProviderClasses = useThemeProviderClasses; //# sourceMappingURL=useThemeProviderClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProviderState = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var themeToIdMap = new Map(); var getThemeId = function () { var themes = []; for (var _i = 0; _i < arguments.length; _i++) { themes[_i] = arguments[_i]; } var ids = []; for (var _a = 0, themes_1 = themes; _a < themes_1.length; _a++) { var theme = themes_1[_a]; if (theme) { var id = theme.id || themeToIdMap.get(theme); if (!id) { id = (0, utilities_1.getId)(''); themeToIdMap.set(theme, id); } ids.push(id); } } return ids.join('-'); }; var useThemeProviderState = function (draftState) { var userTheme = draftState.theme; // Pull contextual theme. var parentTheme = (0, useTheme_1.useTheme)(); // Update the incoming theme with a memoized version of the merged theme. var theme = (draftState.theme = React.useMemo(function () { var mergedTheme = (0, theme_1.mergeThemes)(parentTheme, userTheme); mergedTheme.id = getThemeId(parentTheme, userTheme); return mergedTheme; }, [parentTheme, userTheme])); draftState.customizerContext = React.useMemo(function () { return ({ customizations: { inCustomizerContext: true, settings: { theme: theme }, scopedSettings: theme.components || {}, }, }); }, [theme]); if (draftState.theme.rtl !== parentTheme.rtl) { draftState.dir = draftState.theme.rtl ? 'rtl' : 'ltr'; } }; exports.useThemeProviderState = useThemeProviderState; //# sourceMappingURL=useThemeProviderState.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports._rgbaOrHexString = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * @internal * Get a CSS color string from some color components. * If `a` is specified and not 100, returns an `rgba()` string. * Otherwise returns `hex` prefixed with #. */ function _rgbaOrHexString(r, g, b, a, hex) { return a === consts_1.MAX_COLOR_ALPHA || typeof a !== 'number' ? "#".concat(hex) : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(a / consts_1.MAX_COLOR_ALPHA, ")"); } exports._rgbaOrHexString = _rgbaOrHexString; //# sourceMappingURL=_rgbaOrHexString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.clamp = void 0; /** Clamp a value to ensure it falls within a given range. */ function clamp(value, max, min) { if (min === void 0) { min = 0; } return value < min ? min : value > max ? max : value; } exports.clamp = clamp; //# sourceMappingURL=clamp.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.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__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFullColorString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateH */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js"), exports); //# sourceMappingURL=colors.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RGBA_REGEX = exports.HEX_REGEX = exports.MAX_RGBA_LENGTH = exports.MIN_RGBA_LENGTH = exports.MAX_HEX_LENGTH = exports.MIN_HEX_LENGTH = exports.MAX_COLOR_ALPHA = exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB = exports.MAX_COLOR_VALUE = exports.MAX_COLOR_HUE = exports.MAX_COLOR_SATURATION = void 0; exports.MAX_COLOR_SATURATION = 100; exports.MAX_COLOR_HUE = 359; exports.MAX_COLOR_VALUE = 100; exports.MAX_COLOR_RGB = 255; /** @deprecated Use MAX_COLOR_RGB (255) or MAX_COLOR_ALPHA (100) */ exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB; exports.MAX_COLOR_ALPHA = 100; /** Minimum length for a hexadecimal color string (not including the #) */ exports.MIN_HEX_LENGTH = 3; /** Maximum length for a hexadecimal color string (not including the #) */ exports.MAX_HEX_LENGTH = 6; /** Minimum length for a string of an RGBA color component */ exports.MIN_RGBA_LENGTH = 1; /** Maximum length for a string of an RGBA color component */ exports.MAX_RGBA_LENGTH = 3; /** Regular expression matching only valid hexadecimal chars */ exports.HEX_REGEX = /^[\da-f]{0,6}$/i; /** Regular expression matching only numbers */ exports.RGBA_REGEX = /^\d{0,3}$/; //# sourceMappingURL=consts.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctHSV = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Corrects an HSV color to fall within the valid range. */ function correctHSV(color) { return { h: (0, clamp_1.clamp)(color.h, consts_1.MAX_COLOR_HUE), s: (0, clamp_1.clamp)(color.s, consts_1.MAX_COLOR_SATURATION), v: (0, clamp_1.clamp)(color.v, consts_1.MAX_COLOR_VALUE), }; } exports.correctHSV = correctHSV; //# sourceMappingURL=correctHSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctHex = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Corrects a hex color to have length 3 or 6. Defaults to white if too short. * Does NOT check anything besides the length (such as valid characters) and does NOT handle * hex values starting with # sign. */ function correctHex(hex) { if (!hex || hex.length < consts_1.MIN_HEX_LENGTH) { return 'ffffff'; // not a valid color--default to white } if (hex.length >= consts_1.MAX_HEX_LENGTH) { return hex.substring(0, consts_1.MAX_HEX_LENGTH); } return hex.substring(0, consts_1.MIN_HEX_LENGTH); } exports.correctHex = correctHex; //# sourceMappingURL=correctHex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctRGB = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Corrects an RGB color to fall within the valid range. */ function correctRGB(color) { return { r: (0, clamp_1.clamp)(color.r, consts_1.MAX_COLOR_RGB), g: (0, clamp_1.clamp)(color.g, consts_1.MAX_COLOR_RGB), b: (0, clamp_1.clamp)(color.b, consts_1.MAX_COLOR_RGB), a: typeof color.a === 'number' ? (0, clamp_1.clamp)(color.a, consts_1.MAX_COLOR_ALPHA) : color.a, }; } exports.correctRGB = correctRGB; //# sourceMappingURL=correctRGB.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.cssColor = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsl2rgb_1 = __webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"); /** * Converts a valid CSS color string to an RGB color. * Note that hex colors *must* be prefixed with # to be considered valid. * Alpha in returned color defaults to 100. * Four and eight digit hex values (with alpha) are supported if the current browser supports them. */ function cssColor(color) { if (!color) { return undefined; } // Need to check the following valid color formats: RGB(A), HSL(A), hex, named color // First check for well formatted RGB(A), HSL(A), and hex formats at the start. // This is for perf (no creating an element) and catches the intentional "transparent" color // case early on. var easyColor = _rgba(color) || _hex6(color) || _hex3(color) || _hsla(color); if (easyColor) { return easyColor; } // if the above fails, do the more expensive catch-all return _browserCompute(color); } exports.cssColor = cssColor; /** * Uses the browser's getComputedStyle() to determine what the passed-in color is. * This assumes _rgba, _hex6, _hex3, and _hsla have already been tried and all failed. * This works by attaching an element to the DOM, which may fail in server-side rendering * or with headless browsers. */ function _browserCompute(str) { if (typeof document === 'undefined') { // don't throw an error when used server-side return undefined; } var elem = document.createElement('div'); elem.style.backgroundColor = str; // This element must be attached to the DOM for getComputedStyle() to have a value elem.style.position = 'absolute'; elem.style.top = '-9999px'; elem.style.left = '-9999px'; elem.style.height = '1px'; elem.style.width = '1px'; document.body.appendChild(elem); var eComputedStyle = getComputedStyle(elem); var computedColor = eComputedStyle && eComputedStyle.backgroundColor; document.body.removeChild(elem); // computedColor is always an RGB(A) string, except for invalid colors in IE/Edge which return 'transparent' // browsers return one of these if the color string is invalid, // so need to differentiate between an actual error and intentionally passing in this color if (computedColor === 'rgba(0, 0, 0, 0)' || computedColor === 'transparent') { switch (str.trim()) { // RGB and HSL were already checked at the start of the function case 'transparent': case '#0000': case '#00000000': return { r: 0, g: 0, b: 0, a: 0 }; } return undefined; } return _rgba(computedColor); } /** * If `str` is in valid `rgb()` or `rgba()` format, returns an RGB color (alpha defaults to 100). * Otherwise returns undefined. */ function _rgba(str) { if (!str) { return undefined; } var match = str.match(/^rgb(a?)\(([\d., ]+)\)$/); if (match) { var hasAlpha = !!match[1]; var expectedPartCount = hasAlpha ? 4 : 3; var parts = match[2].split(/ *, */).map(Number); if (parts.length === expectedPartCount) { return { r: parts[0], g: parts[1], b: parts[2], a: hasAlpha ? parts[3] * 100 : consts_1.MAX_COLOR_ALPHA, }; } } } /** * If `str` is in `hsl()` or `hsla()` format, returns an RGB color (alpha defaults to 100). * Otherwise returns undefined. */ function _hsla(str) { var match = str.match(/^hsl(a?)\(([\d., ]+)\)$/); if (match) { var hasAlpha = !!match[1]; var expectedPartCount = hasAlpha ? 4 : 3; var parts = match[2].split(/ *, */).map(Number); if (parts.length === expectedPartCount) { var rgba = (0, hsl2rgb_1.hsl2rgb)(parts[0], parts[1], parts[2]); rgba.a = hasAlpha ? parts[3] * 100 : consts_1.MAX_COLOR_ALPHA; return rgba; } } } /** * If `str` is in valid 6-digit hex format *with* # prefix, returns an RGB color (with alpha 100). * Otherwise returns undefined. */ function _hex6(str) { if (str[0] === '#' && str.length === 7 && /^#[\da-fA-F]{6}$/.test(str)) { return { r: parseInt(str.slice(1, 3), 16), g: parseInt(str.slice(3, 5), 16), b: parseInt(str.slice(5, 7), 16), a: consts_1.MAX_COLOR_ALPHA, }; } } /** * If `str` is in valid 3-digit hex format *with* # prefix, returns an RGB color (with alpha 100). * Otherwise returns undefined. */ function _hex3(str) { if (str[0] === '#' && str.length === 4 && /^#[\da-fA-F]{3}$/.test(str)) { return { r: parseInt(str[1] + str[1], 16), g: parseInt(str[2] + str[2], 16), b: parseInt(str[3] + str[3], 16), a: consts_1.MAX_COLOR_ALPHA, }; } } //# sourceMappingURL=cssColor.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromHSV = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var hsv2hex_1 = __webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Converts an HSV color (and optional alpha value) to a color object. * If `a` is not given, a default of 100 is used. * Hex in the returned value will *not* be prefixed with #. * If `a` is unspecified or 100, the result's `str` property will contain a hex value * (*not* prefixed with #) */ function getColorFromHSV(hsv, a) { var h = hsv.h, s = hsv.s, v = hsv.v; a = typeof a === 'number' ? a : consts_1.MAX_COLOR_ALPHA; var _a = (0, hsv2rgb_1.hsv2rgb)(h, s, v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, hsv2hex_1.hsv2hex)(h, s, v); var str = (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, a, hex); var t = consts_1.MAX_COLOR_ALPHA - a; return { a: a, b: b, g: g, h: h, hex: hex, r: r, s: s, str: str, v: v, t: t }; } exports.getColorFromHSV = getColorFromHSV; //# sourceMappingURL=getColorFromHSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromRGBA = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var rgb2hsv_1 = __webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** Converts an RGBA color to a color object (alpha defaults to 100). */ function getColorFromRGBA(rgba) { var _a = rgba.a, a = _a === void 0 ? consts_1.MAX_COLOR_ALPHA : _a, b = rgba.b, g = rgba.g, r = rgba.r; var _b = (0, rgb2hsv_1.rgb2hsv)(r, g, b), h = _b.h, s = _b.s, v = _b.v; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); var str = (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, a, hex); var t = consts_1.MAX_COLOR_ALPHA - a; return { a: a, b: b, g: g, h: h, hex: hex, r: r, s: s, str: str, v: v, t: t }; } exports.getColorFromRGBA = getColorFromRGBA; //# sourceMappingURL=getColorFromRGBA.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromString = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var cssColor_1 = __webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"); var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); /** * Converts a CSS color string to a color object. * Note that hex colors *must* be prefixed with # to be considered valid. * * `inputColor` will be used unmodified as the `str` property of the returned object. * Alpha defaults to 100 if not specified in `inputColor`. * Returns undefined if the color string is invalid/not recognized. */ function getColorFromString(inputColor) { var color = (0, cssColor_1.cssColor)(inputColor); if (!color) { return; } return tslib_1.__assign(tslib_1.__assign({}, (0, getColorFromRGBA_1.getColorFromRGBA)(color)), { str: inputColor }); } exports.getColorFromString = getColorFromString; //# sourceMappingURL=getColorFromString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFullColorString = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsv2hex_1 = __webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"); /** * Converts a color hue to an HTML color string (with # prefix). * This implementation ignores all components of `color` except hue. */ function getFullColorString(color) { return "#".concat((0, hsv2hex_1.hsv2hex)(color.h, consts_1.MAX_COLOR_SATURATION, consts_1.MAX_COLOR_VALUE)); } exports.getFullColorString = getFullColorString; //# sourceMappingURL=getFullColorString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsl2hsv = void 0; /** Converts HSL components to an HSV color. */ function hsl2hsv(h, s, l) { s *= (l < 50 ? l : 100 - l) / 100; var v = l + s; return { h: h, s: v === 0 ? 0 : ((2 * s) / v) * 100, v: v, }; } exports.hsl2hsv = hsl2hsv; //# sourceMappingURL=hsl2hsv.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsl2rgb = void 0; var hsl2hsv_1 = __webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); /** Converts HSL components to an RGB color. Does not set the alpha value. */ function hsl2rgb(h, s, l) { var hsv = (0, hsl2hsv_1.hsl2hsv)(h, s, l); return (0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v); } exports.hsl2rgb = hsl2rgb; //# sourceMappingURL=hsl2rgb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2hex = void 0; var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); /** Converts HSV components to a hex color string (without # prefix). */ function hsv2hex(h, s, v) { var _a = (0, hsv2rgb_1.hsv2rgb)(h, s, v), r = _a.r, g = _a.g, b = _a.b; return (0, rgb2hex_1.rgb2hex)(r, g, b); } exports.hsv2hex = hsv2hex; //# sourceMappingURL=hsv2hex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2hsl = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts HSV components to an HSL color. */ function hsv2hsl(h, s, v) { s /= consts_1.MAX_COLOR_SATURATION; v /= consts_1.MAX_COLOR_VALUE; var l = (2 - s) * v; var sl = s * v; sl /= l <= 1 ? l : 2 - l; sl = sl || 0; l /= 2; return { h: h, s: sl * 100, l: l * 100 }; } exports.hsv2hsl = hsv2hsl; //# sourceMappingURL=hsv2hsl.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2rgb = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts HSV components to an RGB color. Does not set the alpha value. */ function hsv2rgb(h, s, v) { s = s / 100; v = v / 100; var rgb = []; var c = v * s; var hh = h / 60; var x = c * (1 - Math.abs((hh % 2) - 1)); var m = v - c; switch (Math.floor(hh)) { case 0: rgb = [c, x, 0]; break; case 1: rgb = [x, c, 0]; break; case 2: rgb = [0, c, x]; break; case 3: rgb = [0, x, c]; break; case 4: rgb = [x, 0, c]; break; case 5: rgb = [c, 0, x]; break; } return { r: Math.round(consts_1.MAX_COLOR_RGB * (rgb[0] + m)), g: Math.round(consts_1.MAX_COLOR_RGB * (rgb[1] + m)), b: Math.round(consts_1.MAX_COLOR_RGB * (rgb[2] + m)), }; } exports.hsv2rgb = hsv2rgb; //# sourceMappingURL=hsv2rgb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/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__(/*! ./colors */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./shades */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFullColorString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateH */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateT */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.rgb2hex = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Converts RGB components to a hex color string (without # prefix). */ function rgb2hex(r, g, b) { return [_rgbToPaddedHex(r), _rgbToPaddedHex(g), _rgbToPaddedHex(b)].join(''); } exports.rgb2hex = rgb2hex; /** Converts an RGB component to a 0-padded hex component of length 2. */ function _rgbToPaddedHex(num) { num = (0, clamp_1.clamp)(num, consts_1.MAX_COLOR_RGB); var hex = num.toString(16); return hex.length === 1 ? '0' + hex : hex; } //# sourceMappingURL=rgb2hex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.rgb2hsv = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts RGB components to an HSV color. */ function rgb2hsv(r, g, b) { var h = NaN; var max = Math.max(r, g, b); var min = Math.min(r, g, b); var delta = max - min; // hue if (delta === 0) { h = 0; } else if (r === max) { h = ((g - b) / delta) % 6; } else if (g === max) { h = (b - r) / delta + 2; } else if (b === max) { h = (r - g) / delta + 4; } h = Math.round(h * 60); if (h < 0) { h += 360; } // saturation var s = Math.round((max === 0 ? 0 : delta / max) * 100); // value var v = Math.round((max / consts_1.MAX_COLOR_RGB) * 100); return { h: h, s: s, v: v }; } exports.rgb2hsv = rgb2hsv; //# sourceMappingURL=rgb2hsv.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getContrastRatio = exports.getBackgroundShade = exports.getShade = exports.isDark = exports.isValidShade = exports.Shade = void 0; // Technically this should be shades and tints, but for simplicity we'll call everything a shade. /* * This utility module is used with theming. Given a color to shade, whether the theme is inverted * (i.e. is a dark color), and the desired shade enum, this will return an appropriate shade of that color. */ var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); var hsv2hsl_1 = __webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); // Soften: to get closer to the background color's luminance // (softening with a white background would be lightening, with black it'd be darkening) // Strongen: opposite of soften // Luminance multiplier constants for generating shades of a given color var WhiteShadeTableBG = [0.027, 0.043, 0.082, 0.145, 0.184, 0.216, 0.349, 0.537]; // white bg var BlackTintTableBG = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black bg var WhiteShadeTable = [0.537, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043, 0.027]; // white fg var BlackTintTable = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black fg var LumTintTable = [0.88, 0.77, 0.66, 0.55, 0.44, 0.33, 0.22, 0.11]; // light (strongen all) var LumShadeTable = [0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88]; // dark (soften all) var ColorTintTable = [0.96, 0.84, 0.7, 0.4, 0.12]; // default soften var ColorShadeTable = [0.1, 0.24, 0.44]; // default strongen // If the given shade's luminance is below/above these values, we'll swap to using the White/Black tables above var LowLuminanceThreshold = 0.2; var HighLuminanceThreshold = 0.8; /** Shades of a given color, from softest to strongest. */ var Shade; (function (Shade) { Shade[Shade["Unshaded"] = 0] = "Unshaded"; Shade[Shade["Shade1"] = 1] = "Shade1"; Shade[Shade["Shade2"] = 2] = "Shade2"; Shade[Shade["Shade3"] = 3] = "Shade3"; Shade[Shade["Shade4"] = 4] = "Shade4"; Shade[Shade["Shade5"] = 5] = "Shade5"; Shade[Shade["Shade6"] = 6] = "Shade6"; Shade[Shade["Shade7"] = 7] = "Shade7"; Shade[Shade["Shade8"] = 8] = "Shade8"; // remember to update isValidShade()! })(Shade = exports.Shade || (exports.Shade = {})); /** * Returns true if the argument is a valid Shade value * @param shade - The Shade value to validate. */ function isValidShade(shade) { return typeof shade === 'number' && shade >= Shade.Unshaded && shade <= Shade.Shade8; } exports.isValidShade = isValidShade; function _isBlack(color) { return color.r === 0 && color.g === 0 && color.b === 0; } function _isWhite(color) { return color.r === consts_1.MAX_COLOR_RGB && color.g === consts_1.MAX_COLOR_RGB && color.b === consts_1.MAX_COLOR_RGB; } function _darken(hsv, factor) { return { h: hsv.h, s: hsv.s, v: (0, clamp_1.clamp)(hsv.v - hsv.v * factor, 100, 0), }; } function _lighten(hsv, factor) { return { h: hsv.h, s: (0, clamp_1.clamp)(hsv.s - hsv.s * factor, 100, 0), v: (0, clamp_1.clamp)(hsv.v + (100 - hsv.v) * factor, 100, 0), }; } function isDark(color) { return (0, hsv2hsl_1.hsv2hsl)(color.h, color.s, color.v).l < 50; } exports.isDark = isDark; /** * Given a color and a shade specification, generates the requested shade of the color. * Logic: * if white * darken via tables defined above * if black * lighten * if light * strongen * if dark * soften * else default * soften or strongen depending on shade# * @param color - The base color whose shade is to be computed * @param shade - The shade of the base color to compute * @param isInverted - Default false. Whether the given theme is inverted (reverse strongen/soften logic) */ function getShade(color, shade, isInverted) { if (isInverted === void 0) { isInverted = false; } if (!color) { return null; } if (shade === Shade.Unshaded || !isValidShade(shade)) { return color; } var hsl = (0, hsv2hsl_1.hsv2hsl)(color.h, color.s, color.v); var hsv = { h: color.h, s: color.s, v: color.v }; var tableIndex = shade - 1; var _soften = _lighten; var _strongen = _darken; if (isInverted) { _soften = _darken; _strongen = _lighten; } if (_isWhite(color)) { // white hsv = _darken(hsv, WhiteShadeTable[tableIndex]); } else if (_isBlack(color)) { // black hsv = _lighten(hsv, BlackTintTable[tableIndex]); } else if (hsl.l / 100 > HighLuminanceThreshold) { // light hsv = _strongen(hsv, LumShadeTable[tableIndex]); } else if (hsl.l / 100 < LowLuminanceThreshold) { // dark hsv = _soften(hsv, LumTintTable[tableIndex]); } else { // default if (tableIndex < ColorTintTable.length) { hsv = _soften(hsv, ColorTintTable[tableIndex]); } else { hsv = _strongen(hsv, ColorShadeTable[tableIndex - ColorTintTable.length]); } } return (0, getColorFromRGBA_1.getColorFromRGBA)((0, Utilities_1.assign)((0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v), { a: color.a })); } exports.getShade = getShade; // Background shades/tints are generated differently. The provided color will be guaranteed // to be the darkest or lightest one. If it is <50% luminance, it will always be the darkest, // otherwise it will always be the lightest. function getBackgroundShade(color, shade, isInverted) { if (isInverted === void 0) { isInverted = false; } if (!color) { return null; } if (shade === Shade.Unshaded || !isValidShade(shade)) { return color; } var hsv = { h: color.h, s: color.s, v: color.v }; var tableIndex = shade - 1; if (!isInverted) { // lightish hsv = _darken(hsv, WhiteShadeTableBG[tableIndex]); } else { // default: if (hsl.l / 100 < .5) { // darkish hsv = _lighten(hsv, BlackTintTableBG[BlackTintTable.length - 1 - tableIndex]); } return (0, getColorFromRGBA_1.getColorFromRGBA)((0, Utilities_1.assign)((0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v), { a: color.a })); } exports.getBackgroundShade = getBackgroundShade; /* Calculates the contrast ratio between two colors. Used for verifying * color pairs meet minimum accessibility requirements. * See: https://www.w3.org/TR/WCAG20/ section 1.4.3 */ function getContrastRatio(color1, color2) { // Formula defined by: http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html#contrast-ratiodef // relative luminance: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef /* calculate the intermediate value needed to calculating relative luminance */ function _getThing(x) { if (x <= 0.03928) { return x / 12.92; } else { return Math.pow((x + 0.055) / 1.055, 2.4); } } var r1 = _getThing(color1.r / consts_1.MAX_COLOR_RGB); var g1 = _getThing(color1.g / consts_1.MAX_COLOR_RGB); var b1 = _getThing(color1.b / consts_1.MAX_COLOR_RGB); var L1 = 0.2126 * r1 + 0.7152 * g1 + 0.0722 * b1; // relative luminance of first color L1 += 0.05; var r2 = _getThing(color2.r / consts_1.MAX_COLOR_RGB); var g2 = _getThing(color2.g / consts_1.MAX_COLOR_RGB); var b2 = _getThing(color2.b / consts_1.MAX_COLOR_RGB); var L2 = 0.2126 * r2 + 0.7152 * g2 + 0.0722 * b2; // relative luminance of second color L2 += 0.05; // return the lighter color divided by darker return L1 / L2 > 1 ? L1 / L2 : L2 / L1; } exports.getContrastRatio = getContrastRatio; //# sourceMappingURL=shades.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateA = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Gets a color with the given alpha value and the same other components as `color`. * Does not modify the original color. */ function updateA(color, a) { return tslib_1.__assign(tslib_1.__assign({}, color), { a: a, t: consts_1.MAX_COLOR_ALPHA - a, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(color.r, color.g, color.b, a, color.hex) }); } exports.updateA = updateA; //# sourceMappingURL=updateA.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateH = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Gets a color with the same saturation and value as `color` and the other components updated * to match the given hue. * * Does not modify the original `color` and does not supply a default alpha value. */ function updateH(color, h) { var _a = (0, hsv2rgb_1.hsv2rgb)(h, color.s, color.v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); return tslib_1.__assign(tslib_1.__assign({}, color), { h: h, r: r, g: g, b: b, hex: hex, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, color.a, hex) }); } exports.updateH = updateH; //# sourceMappingURL=updateH.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateRGB = void 0; var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); /** * Gets a color with a single RGBA component updated to a new value. * Does not modify the original `color`. Alpha defaults to 100 if not set. */ function updateRGB(color, component, value) { var _a; return (0, getColorFromRGBA_1.getColorFromRGBA)((_a = { r: color.r, g: color.g, b: color.b, a: color.a }, _a[component] = value, _a)); } exports.updateRGB = updateRGB; //# sourceMappingURL=updateRGB.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateSV = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Gets a color with the same hue as `color` and other components updated to match the given * saturation and value. * * Does not modify the original `color` and does not supply a default alpha value. */ function updateSV(color, s, v) { var _a = (0, hsv2rgb_1.hsv2rgb)(color.h, s, v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); return tslib_1.__assign(tslib_1.__assign({}, color), { s: s, v: v, r: r, g: g, b: b, hex: hex, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, color.a, hex) }); } exports.updateSV = updateSV; //# sourceMappingURL=updateSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateT = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Gets a color with the given transparency value and the same other components as `color`. * Does not modify the original color. */ function updateT(color, t) { var a = consts_1.MAX_COLOR_ALPHA - t; return tslib_1.__assign(tslib_1.__assign({}, color), { t: t, a: a, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(color.r, color.g, color.b, a, color.hex) }); } exports.updateT = updateT; //# sourceMappingURL=updateT.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getMenuItemAriaRole = exports.isItemDisabled = exports.hasSubmenu = exports.getIsChecked = void 0; /** * Determines the effective checked state of a menu item. * * @param item {IContextualMenuItem} to get the check state of. * @returns {true} if the item is checked. * @returns {false} if the item is unchecked. * @returns {null} if the item is not checkable. */ function getIsChecked(item) { if (item.canCheck) { return !!(item.isChecked || item.checked); } if (typeof item.isChecked === 'boolean') { return item.isChecked; } if (typeof item.checked === 'boolean') { return item.checked; } // Item is not checkable. return null; } exports.getIsChecked = getIsChecked; function hasSubmenu(item) { // eslint-disable-next-line deprecation/deprecation return !!(item.subMenuProps || item.items); } exports.hasSubmenu = hasSubmenu; function isItemDisabled(item) { return !!(item.isDisabled || item.disabled); } exports.isItemDisabled = isItemDisabled; function getMenuItemAriaRole(item) { var isChecked = getIsChecked(item); var canCheck = isChecked !== null; return canCheck ? 'menuitemcheckbox' : 'menuitem'; } exports.getMenuItemAriaRole = getMenuItemAriaRole; //# sourceMappingURL=contextualMenuUtility.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/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__(/*! ./contextualMenuUtility */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseDecorator = 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 BaseDecorator = /** @class */ (function (_super) { tslib_1.__extends(BaseDecorator, _super); function BaseDecorator(props) { var _this = _super.call(this, props) || this; _this._updateComposedComponentRef = _this._updateComposedComponentRef.bind(_this); return _this; } /** * Updates the ref to the component composed by the decorator, which will also take care of hoisting * (and unhoisting as appropriate) methods from said component. * * Pass this method as the argument to the 'ref' property of the composed component. */ BaseDecorator.prototype._updateComposedComponentRef = function (composedComponentInstance) { this._composedComponentInstance = composedComponentInstance; if (composedComponentInstance) { this._hoisted = (0, Utilities_1.hoistMethods)(this, composedComponentInstance); } else if (this._hoisted) { (0, Utilities_1.unhoistMethods)(this, this._hoisted); } }; return BaseDecorator; }(React.Component)); exports.BaseDecorator = BaseDecorator; //# sourceMappingURL=BaseDecorator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getResponsiveMode = exports.withResponsiveMode = exports.getInitialResponsiveMode = exports.initializeResponsiveMode = exports.setResponsiveMode = exports.ResponsiveMode = 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 BaseDecorator_1 = __webpack_require__(/*! ./BaseDecorator */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var WindowProvider_1 = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); var ResponsiveMode; (function (ResponsiveMode) { /** Width \<= 479px */ ResponsiveMode[ResponsiveMode["small"] = 0] = "small"; /** Width \> 479px and \<= 639px */ ResponsiveMode[ResponsiveMode["medium"] = 1] = "medium"; /** Width \> 639px and \<= 1023px */ ResponsiveMode[ResponsiveMode["large"] = 2] = "large"; /** Width \> 1023px and \<= 1365px */ ResponsiveMode[ResponsiveMode["xLarge"] = 3] = "xLarge"; /** Width \> 1365px and \<= 1919px */ ResponsiveMode[ResponsiveMode["xxLarge"] = 4] = "xxLarge"; /** Width \> 1919px */ ResponsiveMode[ResponsiveMode["xxxLarge"] = 5] = "xxxLarge"; ResponsiveMode[ResponsiveMode["unknown"] = 999] = "unknown"; })(ResponsiveMode = exports.ResponsiveMode || (exports.ResponsiveMode = {})); var RESPONSIVE_MAX_CONSTRAINT = [479, 639, 1023, 1365, 1919, 99999999]; /** * User specified mode to default to, useful for server side rendering scenarios. */ var _defaultMode; /** * Tracking the last mode we successfully rendered, which allows us to * paint initial renders with the correct size. */ var _lastMode; /** * Allows a server rendered scenario to provide a **default** responsive mode. * This WILL NOT trigger any updates to components that have already consumed the responsive mode! */ function setResponsiveMode(responsiveMode) { _defaultMode = responsiveMode; } exports.setResponsiveMode = setResponsiveMode; /** * Initializes the responsive mode to the current window size. This can be used to avoid * a re-render during first component mount since the window would otherwise not be measured * until after mounting. * * This WILL NOT trigger any updates to components that have already consumed the responsive mode! */ function initializeResponsiveMode(element) { var currentWindow = (0, Utilities_1.getWindow)(element); if (currentWindow) { getResponsiveMode(currentWindow); } } exports.initializeResponsiveMode = initializeResponsiveMode; function getInitialResponsiveMode() { var _a; return (_a = _defaultMode !== null && _defaultMode !== void 0 ? _defaultMode : _lastMode) !== null && _a !== void 0 ? _a : ResponsiveMode.large; } exports.getInitialResponsiveMode = getInitialResponsiveMode; /** * @deprecated Decorator usage is deprecated. Either call `getResponsiveMode` manually, or * use the `useResponsiveMode` hook within a function component. */ function withResponsiveMode(ComposedComponent) { var _a; // eslint-disable-next-line deprecation/deprecation var resultClass = (_a = /** @class */ (function (_super) { tslib_1.__extends(WithResponsiveMode, _super); function WithResponsiveMode(props) { var _this = _super.call(this, props) || this; _this._onResize = function () { var responsiveMode = getResponsiveMode(_this.context.window); if (responsiveMode !== _this.state.responsiveMode) { _this.setState({ responsiveMode: responsiveMode, }); } }; _this._events = new Utilities_1.EventGroup(_this); _this._updateComposedComponentRef = _this._updateComposedComponentRef.bind(_this); _this.state = { responsiveMode: getInitialResponsiveMode(), }; return _this; } WithResponsiveMode.prototype.componentDidMount = function () { this._events.on(this.context.window, 'resize', this._onResize); this._onResize(); }; WithResponsiveMode.prototype.componentWillUnmount = function () { this._events.dispose(); }; WithResponsiveMode.prototype.render = function () { var responsiveMode = this.state.responsiveMode; return responsiveMode === ResponsiveMode.unknown ? null : (React.createElement(ComposedComponent, tslib_1.__assign({ ref: this._updateComposedComponentRef, responsiveMode: responsiveMode }, this.props))); }; return WithResponsiveMode; }(BaseDecorator_1.BaseDecorator)), _a.contextType = WindowProvider_1.WindowContext, _a); return (0, Utilities_1.hoistStatics)(ComposedComponent, resultClass); } exports.withResponsiveMode = withResponsiveMode; function getWidthOfCurrentWindow(currentWindow) { try { return currentWindow.document.documentElement.clientWidth; } catch (e) { return currentWindow.innerWidth; } } /** * Hook to get the current responsive mode (window size category). * @param currentWindow - Use this window when determining the responsive mode. */ function getResponsiveMode(currentWindow) { var responsiveMode = ResponsiveMode.small; if (currentWindow) { try { while (getWidthOfCurrentWindow(currentWindow) > RESPONSIVE_MAX_CONSTRAINT[responsiveMode]) { responsiveMode++; } } catch (e) { // Return a best effort result in cases where we're in the browser but it throws on getting innerWidth. responsiveMode = getInitialResponsiveMode(); } // Tracking last mode just gives us a better default in future renders, // which avoids starting with the wrong value if we've measured once. _lastMode = responsiveMode; } else { if (_defaultMode !== undefined) { responsiveMode = _defaultMode; } else { throw new Error('Content was rendered in a server environment without providing a default responsive mode. ' + 'Call setResponsiveMode to define what the responsive mode is.'); } } return responsiveMode; } exports.getResponsiveMode = getResponsiveMode; //# sourceMappingURL=withResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.withViewport = 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 BaseDecorator_1 = __webpack_require__(/*! ./BaseDecorator */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var RESIZE_DELAY = 500; var MAX_RESIZE_ATTEMPTS = 3; /** * A decorator to update decorated component on viewport or window resize events. * * @param ComposedComponent - decorated React component reference. */ function withViewport(ComposedComponent) { return /** @class */ (function (_super) { tslib_1.__extends(WithViewportComponent, _super); function WithViewportComponent(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._registerResizeObserver = function () { var win = (0, Utilities_1.getWindow)(_this._root.current); _this._viewportResizeObserver = new win.ResizeObserver(_this._onAsyncResize); _this._viewportResizeObserver.observe(_this._root.current); }; _this._unregisterResizeObserver = function () { if (_this._viewportResizeObserver) { _this._viewportResizeObserver.disconnect(); delete _this._viewportResizeObserver; } }; /* Note: using lambda here because decorators don't seem to work in decorators. */ _this._updateViewport = function (withForceUpdate) { var viewport = _this.state.viewport; var viewportElement = _this._root.current; var scrollElement = (0, Utilities_1.findScrollableParent)(viewportElement); var scrollRect = (0, Utilities_1.getRect)(scrollElement); var clientRect = (0, Utilities_1.getRect)(viewportElement); var updateComponent = function () { if (withForceUpdate && _this._composedComponentInstance) { _this._composedComponentInstance.forceUpdate(); } }; var isSizeChanged = (clientRect && clientRect.width) !== viewport.width || (scrollRect && scrollRect.height) !== viewport.height; if (isSizeChanged && _this._resizeAttempts < MAX_RESIZE_ATTEMPTS && clientRect && scrollRect) { _this._resizeAttempts++; _this.setState({ viewport: { width: clientRect.width, height: scrollRect.height, }, }, function () { _this._updateViewport(withForceUpdate); }); } else { _this._resizeAttempts = 0; updateComponent(); } }; _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._resizeAttempts = 0; _this.state = { viewport: { width: 0, height: 0, }, }; return _this; } WithViewportComponent.prototype.componentDidMount = function () { var _this = this; var _a = this.props, delayFirstMeasure = _a.delayFirstMeasure, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures; var win = (0, Utilities_1.getWindow)(this._root.current); this._onAsyncResize = this._async.debounce(this._onAsyncResize, RESIZE_DELAY, { leading: false, }); if (!skipViewportMeasures) { if (!disableResizeObserver && this._isResizeObserverAvailable()) { this._registerResizeObserver(); } else { this._events.on(win, 'resize', this._onAsyncResize); } if (delayFirstMeasure) { this._async.setTimeout(function () { _this._updateViewport(); }, RESIZE_DELAY); } else { this._updateViewport(); } } }; WithViewportComponent.prototype.componentDidUpdate = function (previousProps) { var previousSkipViewportMeasures = previousProps.skipViewportMeasures; var _a = this.props, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures; var win = (0, Utilities_1.getWindow)(this._root.current); if (skipViewportMeasures !== previousSkipViewportMeasures) { if (!skipViewportMeasures) { if (!disableResizeObserver && this._isResizeObserverAvailable()) { if (!this._viewportResizeObserver) { this._registerResizeObserver(); } } else { this._events.on(win, 'resize', this._onAsyncResize); } this._updateViewport(); } else { this._unregisterResizeObserver(); this._events.off(win, 'resize', this._onAsyncResize); } } }; WithViewportComponent.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); this._unregisterResizeObserver(); }; WithViewportComponent.prototype.render = function () { var viewport = this.state.viewport; var newViewport = viewport.width > 0 && viewport.height > 0 ? viewport : undefined; return (React.createElement("div", { className: "ms-Viewport", ref: this._root, style: { minWidth: 1, minHeight: 1 } }, React.createElement(ComposedComponent, tslib_1.__assign({ ref: this._updateComposedComponentRef, viewport: newViewport }, this.props)))); }; WithViewportComponent.prototype.forceUpdate = function () { this._updateViewport(true); }; WithViewportComponent.prototype._onAsyncResize = function () { this._updateViewport(); }; WithViewportComponent.prototype._isResizeObserverAvailable = function () { var win = (0, Utilities_1.getWindow)(this._root.current); return win && win.ResizeObserver; }; return WithViewportComponent; }(BaseDecorator_1.BaseDecorator)); } exports.withViewport = withViewport; //# sourceMappingURL=withViewport.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DragDropHelper = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); 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 DragDropHelper = /** @class */ (function () { function DragDropHelper(params) { this._selection = params.selection; this._dragEnterCounts = {}; this._activeTargets = {}; this._lastId = 0; // To make this class cheap to create, which allows simplifying some logic elsewhere, // only initialize the event group and global event handlers as needed. this._initialized = false; } DragDropHelper.prototype.dispose = function () { if (this._events) { this._events.dispose(); } }; DragDropHelper.prototype.subscribe = function (root, events, dragDropOptions) { var _this = this; if (!this._initialized) { this._events = new Utilities_1.EventGroup(this); var doc = (0, Utilities_1.getDocument)(); // clear drag data when mouse up, use capture event to ensure it will be run if (doc) { this._events.on(doc.body, 'mouseup', this._onMouseUp.bind(this), true); this._events.on(doc, 'mouseup', this._onDocumentMouseUp.bind(this), true); } this._initialized = true; } var _a = dragDropOptions.key, key = _a === void 0 ? "".concat(++this._lastId) : _a; var handlers = []; var onDragStart; var onDragLeave; var onDragEnter; var onDragEnd; var onDrop; var onDragOver; var onMouseDown; var isDraggable; var isDroppable; var activeTarget; if (dragDropOptions && root) { var eventMap = dragDropOptions.eventMap, context = dragDropOptions.context, updateDropState_1 = dragDropOptions.updateDropState; var dragDropTarget = { root: root, options: dragDropOptions, key: key, }; isDraggable = this._isDraggable(dragDropTarget); isDroppable = this._isDroppable(dragDropTarget); if (isDraggable || isDroppable) { if (eventMap) { for (var _i = 0, eventMap_1 = eventMap; _i < eventMap_1.length; _i++) { var event_1 = eventMap_1[_i]; var handler = { callback: event_1.callback.bind(null, context), eventName: event_1.eventName, }; handlers.push(handler); this._events.on(root, handler.eventName, handler.callback); } } } if (isDroppable) { // If the target is droppable, wire up global event listeners to track drop-related events. onDragLeave = function (event) { if (!event.isHandled) { event.isHandled = true; _this._dragEnterCounts[key]--; if (_this._dragEnterCounts[key] === 0) { updateDropState_1(false /* isDropping */, event); } } }; onDragEnter = function (event) { event.preventDefault(); // needed for IE if (!event.isHandled) { event.isHandled = true; _this._dragEnterCounts[key]++; if (_this._dragEnterCounts[key] === 1) { updateDropState_1(true /* isDropping */, event); } } }; onDragEnd = function (event) { _this._dragEnterCounts[key] = 0; updateDropState_1(false /* isDropping */, event); }; onDrop = function (event) { _this._dragEnterCounts[key] = 0; updateDropState_1(false /* isDropping */, event); if (dragDropOptions.onDrop) { dragDropOptions.onDrop(dragDropOptions.context.data, event); } }; onDragOver = function (event) { event.preventDefault(); if (dragDropOptions.onDragOver) { dragDropOptions.onDragOver(dragDropOptions.context.data, event); } }; this._dragEnterCounts[key] = 0; // dragenter and dragleave will be fired when hover to the child element // but we only want to change state when enter or leave the current element // use the count to ensure it. events.on(root, 'dragenter', onDragEnter); events.on(root, 'dragleave', onDragLeave); events.on(root, 'dragend', onDragEnd); events.on(root, 'drop', onDrop); events.on(root, 'dragover', onDragOver); } if (isDraggable) { // If the target is draggable, wire up local event listeners for mouse events. onMouseDown = this._onMouseDown.bind(this, dragDropTarget); onDragEnd = this._onDragEnd.bind(this, dragDropTarget); // We need to add in data so that on Firefox we show the ghost element when dragging onDragStart = function (event) { var options = dragDropOptions; if (options && options.onDragStart) { options.onDragStart(options.context.data, options.context.index, _this._selection.getSelection(), event); } _this._isDragging = true; if (event.dataTransfer) { event.dataTransfer.setData('id', root.id); } }; events.on(root, 'dragstart', onDragStart); events.on(root, 'mousedown', onMouseDown); events.on(root, 'dragend', onDragEnd); } activeTarget = { target: dragDropTarget, dispose: function () { if (_this._activeTargets[key] === activeTarget) { delete _this._activeTargets[key]; } if (root) { for (var _i = 0, handlers_1 = handlers; _i < handlers_1.length; _i++) { var handler = handlers_1[_i]; _this._events.off(root, handler.eventName, handler.callback); } if (isDroppable) { events.off(root, 'dragenter', onDragEnter); events.off(root, 'dragleave', onDragLeave); events.off(root, 'dragend', onDragEnd); events.off(root, 'dragover', onDragOver); events.off(root, 'drop', onDrop); } if (isDraggable) { events.off(root, 'dragstart', onDragStart); events.off(root, 'mousedown', onMouseDown); events.off(root, 'dragend', onDragEnd); } } }, }; this._activeTargets[key] = activeTarget; } return { key: key, dispose: function () { if (activeTarget) { activeTarget.dispose(); } }, }; }; DragDropHelper.prototype.unsubscribe = function (root, key) { var activeTarget = this._activeTargets[key]; if (activeTarget) { activeTarget.dispose(); } }; DragDropHelper.prototype._onDragEnd = function (target, event) { var options = target.options; if (options.onDragEnd) { options.onDragEnd(options.context.data, event); } }; /** * clear drag data when mouse up on body */ DragDropHelper.prototype._onMouseUp = function (event) { this._isDragging = false; if (this._dragData) { for (var _i = 0, _a = Object.keys(this._activeTargets); _i < _a.length; _i++) { var key = _a[_i]; var activeTarget = this._activeTargets[key]; if (activeTarget.target.root) { this._events.off(activeTarget.target.root, 'mousemove'); this._events.off(activeTarget.target.root, 'mouseleave'); } } if (this._dragData.dropTarget) { // raise dragleave event to let dropTarget know it need to remove dropping style Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'dragleave'); Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'drop'); } } this._dragData = null; }; /** * clear drag data when mouse up outside of the document */ DragDropHelper.prototype._onDocumentMouseUp = function (event) { var doc = (0, Utilities_1.getDocument)(); if (doc && event.target === doc.documentElement) { this._onMouseUp(event); } }; /** * when mouse move over a new drop target while dragging some items, * fire dragleave on the old target and fire dragenter to the new target * The target will handle style change on dragenter and dragleave events. */ DragDropHelper.prototype._onMouseMove = function (target, event) { var // use buttons property here since ev.button in some edge case is not updating well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. _a = event.buttons, // use buttons property here since ev.button in some edge case is not updating well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. buttons = _a === void 0 ? MOUSEMOVE_PRIMARY_BUTTON : _a; if (this._dragData && buttons !== MOUSEMOVE_PRIMARY_BUTTON) { // cancel mouse down event and return early when the primary button is not pressed this._onMouseUp(event); return; } var root = target.root, key = target.key; if (this._isDragging) { if (this._isDroppable(target)) { // we can have nested drop targets in the DOM, like a folder inside a group. In that case, when we drag into // the inner target (folder), we first set dropTarget to the inner element. But the same event is bubbled to the // outer target too, and we need to prevent the outer one from taking over. // So, check if the last dropTarget is not a child of the current. if (this._dragData) { if (this._dragData.dropTarget && this._dragData.dropTarget.key !== key && !this._isChild(root, this._dragData.dropTarget.root)) { if (this._dragEnterCounts[this._dragData.dropTarget.key] > 0) { Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'dragleave'); Utilities_1.EventGroup.raise(root, 'dragenter'); this._dragData.dropTarget = target; } } } } } }; /** * when mouse leave a target while dragging some items, fire dragleave to the target */ DragDropHelper.prototype._onMouseLeave = function (target, event) { if (this._isDragging) { if (this._dragData && this._dragData.dropTarget && this._dragData.dropTarget.key === target.key) { Utilities_1.EventGroup.raise(target.root, 'dragleave'); this._dragData.dropTarget = undefined; } } }; /** * when mouse down on a draggable item, we start to track dragdata. */ DragDropHelper.prototype._onMouseDown = function (target, event) { if (event.button !== MOUSEDOWN_PRIMARY_BUTTON) { // Ignore anything except the primary button. return; } if (this._isDraggable(target)) { this._dragData = { clientX: event.clientX, clientY: event.clientY, eventTarget: event.target, dragTarget: target, }; for (var _i = 0, _a = Object.keys(this._activeTargets); _i < _a.length; _i++) { var key = _a[_i]; var activeTarget = this._activeTargets[key]; if (activeTarget.target.root) { this._events.on(activeTarget.target.root, 'mousemove', this._onMouseMove.bind(this, activeTarget.target)); this._events.on(activeTarget.target.root, 'mouseleave', this._onMouseLeave.bind(this, activeTarget.target)); } } } else { this._dragData = null; } }; /** * determine whether the child target is a descendant of the parent */ DragDropHelper.prototype._isChild = function (parentElement, childElement) { while (childElement && childElement.parentElement) { if (childElement.parentElement === parentElement) { return true; } childElement = childElement.parentElement; } return false; }; DragDropHelper.prototype._isDraggable = function (target) { var options = target.options; return !!(options.canDrag && options.canDrag(options.context.data)); }; DragDropHelper.prototype._isDroppable = function (target) { // TODO: take the drag item into consideration to prevent dragging an item into the same group var options = target.options; var dragContext = this._dragData && this._dragData.dragTarget ? this._dragData.dragTarget.options.context : undefined; return !!(options.canDrop && options.canDrop(options.context, dragContext)); }; return DragDropHelper; }()); exports.DragDropHelper = DragDropHelper; //# sourceMappingURL=DragDropHelper.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/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__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DragDropHelper */ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GetGroupCount = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Takes an array of groups and returns a count of the groups and all descendant groups. * @param groups - The array of groups to count. */ var GetGroupCount = function (groups) { var total = 0; if (groups) { var remainingGroups = tslib_1.__spreadArray([], groups, true); var currentGroup = void 0; while (remainingGroups && remainingGroups.length > 0) { ++total; currentGroup = remainingGroups.pop(); if (currentGroup && currentGroup.children) { remainingGroups.push.apply(remainingGroups, currentGroup.children); } } } return total; }; exports.GetGroupCount = GetGroupCount; //# sourceMappingURL=GroupedListUtility.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/hooks/useResponsiveMode.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/hooks/useResponsiveMode.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useResponsiveMode = 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 react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var withResponsiveMode_1 = __webpack_require__(/*! ../decorators/withResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js"); var WindowProvider_1 = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); /** * Hook to get the current responsive mode (window size category). * @param elementRef - Use this element's parent window when determining the responsive mode. * @param overrideResponsiveMode - Override the responsive mode. If this param is present, it's always returned. */ var useResponsiveMode = function (elementRef, overrideResponsiveMode) { var _a = React.useState((0, withResponsiveMode_1.getInitialResponsiveMode)()), lastResponsiveMode = _a[0], setLastResponsiveMode = _a[1]; var onResize = React.useCallback(function () { var newResponsiveMode = (0, withResponsiveMode_1.getResponsiveMode)((0, utilities_1.getWindow)(elementRef.current)); // Setting the same value should not cause a re-render. if (lastResponsiveMode !== newResponsiveMode) { setLastResponsiveMode(newResponsiveMode); } }, [elementRef, lastResponsiveMode]); var win = (0, WindowProvider_1.useWindow)(); (0, react_hooks_1.useOnEvent)(win, 'resize', onResize); // Call resize function initially on mount, or if the override changes from defined to undefined // (the effect will run on all override changes, but onResize will only be called if it changed to undefined) React.useEffect(function () { if (overrideResponsiveMode === undefined) { onResize(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- only meant to run on mount or when override changes }, [overrideResponsiveMode]); return overrideResponsiveMode !== null && overrideResponsiveMode !== void 0 ? overrideResponsiveMode : lastResponsiveMode; }; exports.useResponsiveMode = useResponsiveMode; //# sourceMappingURL=useResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.transitionKeysContain = exports.transitionKeysAreEqual = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); /** * Tests for equality between two IKeytipTransitionKeys. * * @param key1 - First IKeytipTransitionKey. * @param key2 - Second IKeytipTransitionKey. * @returns T/F if the transition keys are equal. */ function transitionKeysAreEqual(key1, key2) { if (key1.key !== key2.key) { return false; } var mod1 = key1.modifierKeys; var mod2 = key2.modifierKeys; if ((!mod1 && mod2) || (mod1 && !mod2)) { // Not equal if one modifier is defined and the other isn't return false; } if (mod1 && mod2) { if (mod1.length !== mod2.length) { return false; } // Sort both arrays mod1 = mod1.sort(); mod2 = mod2.sort(); for (var i = 0; i < mod1.length; i++) { if (mod1[i] !== mod2[i]) { return false; } } } return true; } exports.transitionKeysAreEqual = transitionKeysAreEqual; /** * Tests if 'key' is present in 'keys'. * * @param keys - Array of IKeytipTransitionKey. * @param key - IKeytipTransitionKey to find in 'keys'. * @returns T/F if 'keys' contains 'key'. */ function transitionKeysContain(keys, key) { return !!(0, Utilities_1.find)(keys, function (transitionKey) { return transitionKeysAreEqual(transitionKey, key); }); } exports.transitionKeysContain = transitionKeysContain; //# sourceMappingURL=IKeytipTransitionKey.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.constructKeytip = exports.buildKeytipConfigMap = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Builds a map of ID to IKeytipProps * * @param config - IKeytipConfig object * @returns Config map */ function buildKeytipConfigMap(config) { var configMap = {}; for (var _i = 0, _a = config.keytips; _i < _a.length; _i++) { var keytip = _a[_i]; constructKeytip(configMap, [], keytip); } return configMap; } exports.buildKeytipConfigMap = buildKeytipConfigMap; /** * Constructs a keytip from an IKeytipConfigItem and puts it in the configMap * * @param configMap - IKeytipConfigMap to store the keytip in * @param parentSequence - string of the parent keytip * @param keytip - IKeytipConfigItem data */ function constructKeytip(configMap, parentSequence, keytip) { // Compute full key sequence var sequence = keytip.sequence ? keytip.sequence : keytip.content.toLocaleLowerCase(); var keytipSequence = parentSequence.concat(sequence); // Save props in configMap var keytipProps = tslib_1.__assign(tslib_1.__assign({}, keytip.optionalProps), { keySequences: keytipSequence, content: keytip.content }); configMap[keytip.id] = keytipProps; if (keytip.children) { for (var _i = 0, _a = keytip.children; _i < _a.length; _i++) { var child = _a[_i]; // Create keytips for all children constructKeytip(configMap, keytipSequence, child); } } } exports.constructKeytip = constructKeytip; //# sourceMappingURL=KeytipConfig.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipEvents = exports.KTP_ARIA_SEPARATOR = exports.KTP_LAYER_ID = exports.DATAKTP_ARIA_TARGET = exports.DATAKTP_EXECUTE_TARGET = exports.DATAKTP_TARGET = exports.KTP_FULL_PREFIX = exports.KTP_SEPARATOR = exports.KTP_PREFIX = void 0; exports.KTP_PREFIX = 'ktp'; exports.KTP_SEPARATOR = '-'; exports.KTP_FULL_PREFIX = exports.KTP_PREFIX + exports.KTP_SEPARATOR; exports.DATAKTP_TARGET = 'data-ktp-target'; exports.DATAKTP_EXECUTE_TARGET = 'data-ktp-execute-target'; exports.DATAKTP_ARIA_TARGET = 'data-ktp-aria-target'; exports.KTP_LAYER_ID = 'ktp-layer-id'; exports.KTP_ARIA_SEPARATOR = ', '; // Events var KeytipEvents; (function (KeytipEvents) { KeytipEvents.KEYTIP_ADDED = 'keytipAdded'; KeytipEvents.KEYTIP_REMOVED = 'keytipRemoved'; KeytipEvents.KEYTIP_UPDATED = 'keytipUpdated'; KeytipEvents.PERSISTED_KEYTIP_ADDED = 'persistedKeytipAdded'; KeytipEvents.PERSISTED_KEYTIP_REMOVED = 'persistedKeytipRemoved'; KeytipEvents.PERSISTED_KEYTIP_EXECUTE = 'persistedKeytipExecute'; KeytipEvents.ENTER_KEYTIP_MODE = 'enterKeytipMode'; KeytipEvents.EXIT_KEYTIP_MODE = 'exitKeytipMode'; })(KeytipEvents = exports.KeytipEvents || (exports.KeytipEvents = {})); //# sourceMappingURL=KeytipConstants.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipManager = 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 KeytipConstants_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); /** * This class is responsible for handling registering, updating, and unregistering of keytips */ var KeytipManager = /** @class */ (function () { function KeytipManager() { this.keytips = {}; this.persistedKeytips = {}; this.sequenceMapping = {}; // This is (and should be) updated and kept in sync // with the inKeytipMode in KeytipLayer. this.inKeytipMode = false; // Boolean that gets checked before entering keytip mode by the KeytipLayer // Used for an override in special cases (e.g. Disable entering keytip mode when a modal is shown) this.shouldEnterKeytipMode = true; // Boolean to indicate whether to delay firing an event to update subscribers of // keytip data changed. this.delayUpdatingKeytipChange = false; } /** * Static function to get singleton KeytipManager instance * * @returns Singleton KeytipManager instance */ KeytipManager.getInstance = function () { return this._instance; }; /** * Initialization code to set set parameters to define * how the KeytipManager handles keytip data. * * @param delayUpdatingKeytipChange - T/F if we should delay notifiying keytip subscribers * of keytip changes */ KeytipManager.prototype.init = function (delayUpdatingKeytipChange) { this.delayUpdatingKeytipChange = delayUpdatingKeytipChange; }; /** * Registers a keytip * * @param keytipProps - Keytip to register * @param persisted - T/F if this keytip should be persisted, default is false * @returns Unique ID for this keytip */ KeytipManager.prototype.register = function (keytipProps, persisted) { if (persisted === void 0) { persisted = false; } var props = keytipProps; if (!persisted) { // Add the overflowSetSequence if necessary props = this.addParentOverflow(keytipProps); this.sequenceMapping[props.keySequences.toString()] = props; } // Create a unique keytip var uniqueKeytip = this._getUniqueKtp(props); // Add to dictionary persisted ? (this.persistedKeytips[uniqueKeytip.uniqueID] = uniqueKeytip) : (this.keytips[uniqueKeytip.uniqueID] = uniqueKeytip); // We only want to add something new if we are currently showing keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { var event_1 = persisted ? KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_ADDED : KeytipConstants_1.KeytipEvents.KEYTIP_ADDED; Utilities_1.EventGroup.raise(this, event_1, { keytip: props, uniqueID: uniqueKeytip.uniqueID, }); } return uniqueKeytip.uniqueID; }; /** * Update a keytip * * @param keytipProps - Keytip to update * @param uniqueID - Unique ID of this keytip */ KeytipManager.prototype.update = function (keytipProps, uniqueID) { var newKeytipProps = this.addParentOverflow(keytipProps); var uniqueKeytip = this._getUniqueKtp(newKeytipProps, uniqueID); var oldKeyTip = this.keytips[uniqueID]; if (oldKeyTip) { // Update everything except 'visible' uniqueKeytip.keytip.visible = oldKeyTip.keytip.visible; // Update keytip in this.keytips this.keytips[uniqueID] = uniqueKeytip; // Update the sequence to be up to date delete this.sequenceMapping[oldKeyTip.keytip.keySequences.toString()]; this.sequenceMapping[uniqueKeytip.keytip.keySequences.toString()] = uniqueKeytip.keytip; // Raise event only if we are currently in keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.KEYTIP_UPDATED, { keytip: uniqueKeytip.keytip, uniqueID: uniqueKeytip.uniqueID, }); } } }; /** * Unregisters a keytip * * @param keytipToRemove - IKeytipProps of the keytip to remove * @param uniqueID - Unique ID of this keytip * @param persisted - T/F if this keytip should be persisted, default is false */ KeytipManager.prototype.unregister = function (keytipToRemove, uniqueID, persisted) { if (persisted === void 0) { persisted = false; } persisted ? delete this.persistedKeytips[uniqueID] : delete this.keytips[uniqueID]; !persisted && delete this.sequenceMapping[keytipToRemove.keySequences.toString()]; var event = persisted ? KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_REMOVED : KeytipConstants_1.KeytipEvents.KEYTIP_REMOVED; // Update keytips only if we're in keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { Utilities_1.EventGroup.raise(this, event, { keytip: keytipToRemove, uniqueID: uniqueID, }); } }; /** * Manual call to enter keytip mode */ KeytipManager.prototype.enterKeytipMode = function () { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.ENTER_KEYTIP_MODE); }; /** * Manual call to exit keytip mode */ KeytipManager.prototype.exitKeytipMode = function () { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.EXIT_KEYTIP_MODE); }; /** * Gets all IKeytipProps from this.keytips * * @returns All keytips stored in the manager */ KeytipManager.prototype.getKeytips = function () { var _this = this; return Object.keys(this.keytips).map(function (key) { return _this.keytips[key].keytip; }); }; /** * Adds the overflowSetSequence to the keytipProps if its parent keytip also has it * * @param keytipProps - Keytip props to add overflowSetSequence to if necessary * @returns - Modified keytip props, if needed to be modified */ KeytipManager.prototype.addParentOverflow = function (keytipProps) { var fullSequence = tslib_1.__spreadArray([], keytipProps.keySequences, true); fullSequence.pop(); if (fullSequence.length !== 0) { var parentKeytip = this.sequenceMapping[fullSequence.toString()]; if (parentKeytip && parentKeytip.overflowSetSequence) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { overflowSetSequence: parentKeytip.overflowSetSequence }); } } return keytipProps; }; /** * Public function to bind for overflow items that have a submenu */ KeytipManager.prototype.menuExecute = function (overflowButtonSequences, keytipSequences) { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_EXECUTE, { overflowButtonSequences: overflowButtonSequences, keytipSequences: keytipSequences, }); }; /** * Creates an IUniqueKeytip object * * @param keytipProps - IKeytipProps * @param uniqueID - Unique ID, will default to the next unique ID if not passed * @returns IUniqueKeytip object */ KeytipManager.prototype._getUniqueKtp = function (keytipProps, uniqueID) { if (uniqueID === void 0) { uniqueID = (0, Utilities_1.getId)(); } return { keytip: tslib_1.__assign({}, keytipProps), uniqueID: uniqueID }; }; KeytipManager._instance = new KeytipManager(); return KeytipManager; }()); exports.KeytipManager = KeytipManager; //# sourceMappingURL=KeytipManager.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getAriaDescribedBy = exports.ktpTargetFromId = exports.ktpTargetFromSequences = exports.mergeOverflows = exports.sequencesToID = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var KeytipConstants_1 = __webpack_require__(/*! ./KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); /** * Converts a whole set of KeySequences into one keytip ID, which will be the ID for the last keytip sequence specified * keySequences should not include the initial keytip 'start' sequence. * * @param keySequences - Full path of IKeySequences for one keytip. * @returns String to use for the keytip ID. */ function sequencesToID(keySequences) { return keySequences.reduce(function (prevValue, keySequence) { return prevValue + KeytipConstants_1.KTP_SEPARATOR + keySequence.split('').join(KeytipConstants_1.KTP_SEPARATOR); }, KeytipConstants_1.KTP_PREFIX); } exports.sequencesToID = sequencesToID; /** * Merges an overflow sequence with a key sequence. * * @param keySequences - Full sequence for one keytip. * @param overflowKeySequences - Full overflow keytip sequence. * @returns Sequence that will be used by the keytip when in the overflow. */ function mergeOverflows(keySequences, overflowKeySequences) { var overflowSequenceLen = overflowKeySequences.length; var overflowSequence = tslib_1.__spreadArray([], overflowKeySequences, true).pop(); var newKeySequences = tslib_1.__spreadArray([], keySequences, true); return (0, Utilities_1.addElementAtIndex)(newKeySequences, overflowSequenceLen - 1, overflowSequence); } exports.mergeOverflows = mergeOverflows; /** * Constructs the data-ktp-target attribute selector from a full key sequence. * * @param keySequences - Full string[] for a Keytip. * @returns String selector to use to query for the keytip target. */ function ktpTargetFromSequences(keySequences) { return '[' + KeytipConstants_1.DATAKTP_TARGET + '="' + sequencesToID(keySequences) + '"]'; } exports.ktpTargetFromSequences = ktpTargetFromSequences; /** * Constructs the data-ktp-execute-target attribute selector from a keytip ID. * * @param keytipId - ID of the Keytip. * @returns String selector to use to query for the keytip execute target. */ function ktpTargetFromId(keytipId) { return '[' + KeytipConstants_1.DATAKTP_EXECUTE_TARGET + '="' + keytipId + '"]'; } exports.ktpTargetFromId = ktpTargetFromId; /** * Gets the aria-describedby value to put on the component with this keytip. * * @param keySequences - KeySequences of the keytip. * @returns The aria-describedby value to set on the component with this keytip. */ function getAriaDescribedBy(keySequences) { var describedby = ' ' + KeytipConstants_1.KTP_LAYER_ID; if (!keySequences.length) { // Return just the layer ID return describedby; } return describedby + ' ' + sequencesToID(keySequences); } exports.getAriaDescribedBy = getAriaDescribedBy; //# sourceMappingURL=KeytipUtils.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/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__(/*! ./IKeytipTransitionKey */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipConfig */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipManager */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipUtils */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.observeResize = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Wrapper for ResizeObserver, with fallback for browsers that don't support ResizeObserver. * * Calls the onResize callback once layout is complete, and again whenever any of the target(s) change size. * Or if ResizeObserver isn't supported, calls the callback whenever the window changes size. * * @param target - Either a single element, or array of elements to watch for size changes. * @param onResize - Callback to be notified when layout is complete, and when the target(s) change size. * If this browser supports ResizeObserver, the callback will be passed the ResizeObserverEntry[] array. * Otherwise, the entries array will be undefined, and you'll need to find another way to get the element's size, * (e.g. clientWidth/clientHeight or getBoundingClientRect). * * @returns A function to clean up the observer/listener. */ var observeResize = function (target, onResize) { if (typeof ResizeObserver !== 'undefined') { var observer_1 = new ResizeObserver(onResize); if (Array.isArray(target)) { target.forEach(function (t) { return observer_1.observe(t); }); } else { observer_1.observe(target); } return function () { return observer_1.disconnect(); }; } else { // Fallback for browsers that don't support ResizeObserver var onResizeWrapper_1 = function () { return onResize(undefined); }; var win_1 = (0, utilities_1.getWindow)(Array.isArray(target) ? target[0] : target); if (!win_1) { // Can't listen for resize if we can't get the window object return function () { // Nothing to clean up }; } // Listen for the first animation frame, which will happen after layout is complete var animationFrameId_1 = win_1.requestAnimationFrame(onResizeWrapper_1); win_1.addEventListener('resize', onResizeWrapper_1, false); return function () { win_1.cancelAnimationFrame(animationFrameId_1); win_1.removeEventListener('resize', onResizeWrapper_1, false); }; } }; exports.observeResize = observeResize; //# sourceMappingURL=observeResize.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.positionElement = exports.positionCard = exports.positionCallout = exports.getOppositeEdge = exports.getMaxHeight = exports.getBoundsFromTargetWindow = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var positioning_1 = __webpack_require__(/*! ./positioning */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js"); Object.defineProperty(exports, "getBoundsFromTargetWindow", ({ enumerable: true, get: function () { return positioning_1.getBoundsFromTargetWindow; } })); Object.defineProperty(exports, "getMaxHeight", ({ enumerable: true, get: function () { return positioning_1.getMaxHeight; } })); Object.defineProperty(exports, "getOppositeEdge", ({ enumerable: true, get: function () { return positioning_1.getOppositeEdge; } })); Object.defineProperty(exports, "positionCallout", ({ enumerable: true, get: function () { return positioning_1.positionCallout; } })); Object.defineProperty(exports, "positionCard", ({ enumerable: true, get: function () { return positioning_1.positionCard; } })); Object.defineProperty(exports, "positionElement", ({ enumerable: true, get: function () { return positioning_1.positionElement; } })); tslib_1.__exportStar(__webpack_require__(/*! ./positioning.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBoundsFromTargetWindow = exports.getOppositeEdge = exports.getMaxHeight = exports.positionCard = exports.positionCallout = exports.positionElement = exports.__positioningTestPackage = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); 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_types_1 = __webpack_require__(/*! ./positioning.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); function _createPositionData(targetEdge, alignmentEdge, isAuto) { return { targetEdge: targetEdge, alignmentEdge: alignmentEdge, isAuto: isAuto, }; } // Currently the beakPercent is set to 50 for all positions meaning that it should tend to the center of the target var DirectionalDictionary = (_a = {}, _a[DirectionalHint_1.DirectionalHint.topLeftEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.topCenter] = _createPositionData(positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.topRightEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.topAutoEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, undefined, true), _a[DirectionalHint_1.DirectionalHint.bottomLeftEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.bottomCenter] = _createPositionData(positioning_types_1.RectangleEdge.bottom), _a[DirectionalHint_1.DirectionalHint.bottomRightEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.bottomAutoEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, undefined, true), _a[DirectionalHint_1.DirectionalHint.leftTopEdge] = _createPositionData(positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.leftCenter] = _createPositionData(positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.leftBottomEdge] = _createPositionData(positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.bottom), _a[DirectionalHint_1.DirectionalHint.rightTopEdge] = _createPositionData(positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.rightCenter] = _createPositionData(positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.rightBottomEdge] = _createPositionData(positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.bottom), _a); function _isRectangleWithinBounds(rect, boundingRect) { if (rect.top < boundingRect.top) { return false; } if (rect.bottom > boundingRect.bottom) { return false; } if (rect.left < boundingRect.left) { return false; } if (rect.right > boundingRect.right) { return false; } return true; } /** * Gets all of the edges of a rectangle that are outside of the given bounds. * If there are no out of bounds edges it returns an empty array. */ function _getOutOfBoundsEdges(rect, boundingRect) { var outOfBounds = []; if (rect.top < boundingRect.top) { outOfBounds.push(positioning_types_1.RectangleEdge.top); } if (rect.bottom > boundingRect.bottom) { outOfBounds.push(positioning_types_1.RectangleEdge.bottom); } if (rect.left < boundingRect.left) { outOfBounds.push(positioning_types_1.RectangleEdge.left); } if (rect.right > boundingRect.right) { outOfBounds.push(positioning_types_1.RectangleEdge.right); } return outOfBounds; } function _getEdgeValue(rect, edge) { return rect[positioning_types_1.RectangleEdge[edge]]; } function _setEdgeValue(rect, edge, value) { rect[positioning_types_1.RectangleEdge[edge]] = value; return rect; } /** * Returns the middle value of an edge. Only returns 1 value rather than xy coordinates as * the itself already contains the other coordinate. * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x. */ function _getCenterValue(rect, edge) { var edges = _getFlankingEdges(edge); return (_getEdgeValue(rect, edges.positiveEdge) + _getEdgeValue(rect, edges.negativeEdge)) / 2; } /** * Flips the value depending on the edge. * If the edge is a "positive" edge, Top or Left, then the value should stay as it is. * If the edge is a "negative" edge, Bottom or Right, then the value should be flipped. * This is to account for the fact that the coordinates are effectively reserved in certain cases for the * "negative" edges. * * For example, when testing to see if a bottom edge 1 is within the bounds of another bottom edge 2: * If edge 1 is greater than edge 2 then it is out of bounds. This is reversed for top edge 1 and top edge 2. * If top edge 1 is less than edge 2 then it is out of bounds. */ function _getRelativeEdgeValue(edge, value) { if (edge > 0) { return value; } else { return value * -1; } } function _getRelativeRectEdgeValue(edge, rect) { return _getRelativeEdgeValue(edge, _getEdgeValue(rect, edge)); } function _getRelativeEdgeDifference(rect, hostRect, edge) { var edgeDifference = _getEdgeValue(rect, edge) - _getEdgeValue(hostRect, edge); return _getRelativeEdgeValue(edge, edgeDifference); } /** * Moves the edge of a rectangle to the value given. It only moves the edge in a linear direction based on that edge. * For example, if it's a bottom edge it will only change y coordinates. * if maintainSize is set to false, it will only adjust the specified edge value */ function _moveEdge(rect, edge, newValue, maintainSize) { if (maintainSize === void 0) { maintainSize = true; } var difference = _getEdgeValue(rect, edge) - newValue; var returnRect = _setEdgeValue(rect, edge, newValue); if (maintainSize) { returnRect = _setEdgeValue(rect, edge * -1, _getEdgeValue(rect, edge * -1) - difference); } return returnRect; } /** * Aligns the edge on the passed in rect to the target. If there is a gap then it will have that space between the two. */ function _alignEdges(rect, target, edge, gap) { if (gap === void 0) { gap = 0; } return _moveEdge(rect, edge, _getEdgeValue(target, edge) + _getRelativeEdgeValue(edge, gap)); } /** * Aligns the targetEdge on the passed in target to the rects corresponding opposite edge. * For instance if targetEdge is bottom, then the rects top will be moved to match it. */ function _alignOppositeEdges(rect, target, targetEdge, gap) { if (gap === void 0) { gap = 0; } var oppositeEdge = targetEdge * -1; var adjustedGap = _getRelativeEdgeValue(oppositeEdge, gap); return _moveEdge(rect, targetEdge * -1, _getEdgeValue(target, targetEdge) + adjustedGap); } /** * Tests to see if the given edge is within the bounds of the given rectangle. */ function _isEdgeInBounds(rect, bounds, edge) { var adjustedRectValue = _getRelativeRectEdgeValue(edge, rect); return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds); } /** * Returns a measure of how much a rectangle is out of bounds for a given alignment; * this can be used to compare which rectangle is more or less out of bounds. * A value of 0 means the rectangle is entirely in bounds */ function _getOutOfBoundsDegree(rect, bounds) { var breakingEdges = _getOutOfBoundsEdges(rect, bounds); var total = 0; for (var _i = 0, breakingEdges_1 = breakingEdges; _i < breakingEdges_1.length; _i++) { var edge = breakingEdges_1[_i]; total += Math.pow(_getRelativeEdgeDifference(rect, bounds, edge), 2); } return total; } /** * Attempts to move the rectangle through various sides of the target to find a place to fit. * If no fit is found, the least bad option should be returned. */ function _flipToFit(rect, target, bounding, positionData, gap) { if (gap === void 0) { gap = 0; } var directions = [ positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.top, ]; // In RTL page, RectangleEdge.right has a higher priority than RectangleEdge.left, so the order should be updated. if ((0, Utilities_1.getRTL)()) { directions[0] *= -1; directions[1] *= -1; } var currentEstimate = rect; var currentEdge = positionData.targetEdge; var currentAlignment = positionData.alignmentEdge; // keep track of least bad option, in case no sides fit var oobDegree; var bestEdge = currentEdge; var bestAlignment = currentAlignment; // Keep switching sides until one is found with enough space. // If all sides don't fit then return the unmodified element. for (var i = 0; i < 4; i++) { if (!_isEdgeInBounds(currentEstimate, bounding, currentEdge)) { // update least-bad edges var currentOOBDegree = _getOutOfBoundsDegree(currentEstimate, bounding); if (!oobDegree || currentOOBDegree < oobDegree) { oobDegree = currentOOBDegree; bestEdge = currentEdge; bestAlignment = currentAlignment; } directions.splice(directions.indexOf(currentEdge), 1); if (directions.length > 0) { if (directions.indexOf(currentEdge * -1) > -1) { currentEdge = currentEdge * -1; } else { currentAlignment = currentEdge; currentEdge = directions.slice(-1)[0]; } currentEstimate = _estimatePosition(rect, target, { targetEdge: currentEdge, alignmentEdge: currentAlignment }, gap); } } else { return { elementRectangle: currentEstimate, targetEdge: currentEdge, alignmentEdge: currentAlignment, }; } } // nothing fits, use least-bad option currentEstimate = _estimatePosition(rect, target, { targetEdge: bestEdge, alignmentEdge: bestAlignment }, gap); return { elementRectangle: currentEstimate, targetEdge: bestEdge, alignmentEdge: bestAlignment, }; } /** * Flips only the alignment edge of an element rectangle. This is used instead of nudging the alignment edges * into position, when `alignTargetEdge` is specified. */ function _flipAlignmentEdge(elementEstimate, target, gap, coverTarget) { var alignmentEdge = elementEstimate.alignmentEdge, targetEdge = elementEstimate.targetEdge, elementRectangle = elementEstimate.elementRectangle; var oppositeEdge = alignmentEdge * -1; var newEstimate = _estimatePosition(elementRectangle, target, { targetEdge: targetEdge, alignmentEdge: oppositeEdge }, gap, coverTarget); return { elementRectangle: newEstimate, targetEdge: targetEdge, alignmentEdge: oppositeEdge, }; } /** * Adjusts a element rectangle to fit within the bounds given. If directionalHintFixed or covertarget is passed in * then the element will not flip sides on the target. They will, however, be nudged to fit within the bounds given. */ function _adjustFitWithinBounds(element, target, bounding, positionData, gap, directionalHintFixed, coverTarget) { if (gap === void 0) { gap = 0; } var alignmentEdge = positionData.alignmentEdge, alignTargetEdge = positionData.alignTargetEdge; var elementEstimate = { elementRectangle: element, targetEdge: positionData.targetEdge, alignmentEdge: alignmentEdge, }; if (!directionalHintFixed && !coverTarget) { elementEstimate = _flipToFit(element, target, bounding, positionData, gap); } var outOfBounds = _getOutOfBoundsEdges(elementEstimate.elementRectangle, bounding); // if directionalHintFixed is specified, we need to force the target edge to not change // we need *-1 because targetEdge refers to the target's edge; the callout edge is the opposite var fixedEdge = directionalHintFixed ? -elementEstimate.targetEdge : undefined; if (outOfBounds.length > 0) { if (alignTargetEdge) { // The edge opposite to the alignment edge might be out of bounds. // Flip alignment to see if we can get it within bounds. if (elementEstimate.alignmentEdge && outOfBounds.indexOf(elementEstimate.alignmentEdge * -1) > -1) { var flippedElementEstimate = _flipAlignmentEdge(elementEstimate, target, gap, coverTarget); if (_isRectangleWithinBounds(flippedElementEstimate.elementRectangle, bounding)) { return flippedElementEstimate; } else { // If the flipped elements edges are still out of bounds, try nudging it. elementEstimate = _alignOutOfBoundsEdges(_getOutOfBoundsEdges(flippedElementEstimate.elementRectangle, bounding), elementEstimate, bounding, fixedEdge); } } else { elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge); } } else { elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge); } } return elementEstimate; } /** * Iterates through a list of out of bounds edges and tries to nudge and align them. * @param outOfBoundsEdges - Array of edges that are out of bounds * @param elementEstimate - The current element positioning estimate * @param bounding - The current bounds * @param preserveEdge - Specify an edge that should not be modified */ function _alignOutOfBoundsEdges(outOfBoundsEdges, elementEstimate, bounding, preserveEdge) { for (var _i = 0, outOfBoundsEdges_1 = outOfBoundsEdges; _i < outOfBoundsEdges_1.length; _i++) { var direction = outOfBoundsEdges_1[_i]; var edgeAttempt = void 0; // if preserveEdge is specified, do not call _alignEdges, skip directly to _moveEdge // this is because _alignEdges will move the opposite edge if (preserveEdge && preserveEdge === direction * -1) { edgeAttempt = _moveEdge(elementEstimate.elementRectangle, direction, _getEdgeValue(bounding, direction), false); elementEstimate.forcedInBounds = true; } else { edgeAttempt = _alignEdges(elementEstimate.elementRectangle, bounding, direction); var inBounds = _isEdgeInBounds(edgeAttempt, bounding, direction * -1); // only update estimate if the attempt didn't break out of the opposite bounding edge if (!inBounds) { edgeAttempt = _moveEdge(edgeAttempt, direction * -1, _getEdgeValue(bounding, direction * -1), false); elementEstimate.forcedInBounds = true; } } elementEstimate.elementRectangle = edgeAttempt; } return elementEstimate; } /** * Moves the middle point on an edge to the point given. * Only moves in one direction. For instance if a bottom edge is passed in, then * the bottom edge will be moved in the x axis to match the point. */ function _centerEdgeToPoint(rect, edge, point) { var positiveEdge = _getFlankingEdges(edge).positiveEdge; var elementMiddle = _getCenterValue(rect, edge); var distanceToMiddle = elementMiddle - _getEdgeValue(rect, positiveEdge); return _moveEdge(rect, positiveEdge, point - distanceToMiddle); } /** * Moves the element rectangle to be appropriately positioned relative to a given target. * Does not flip or adjust the element. */ function _estimatePosition(elementToPosition, target, positionData, gap, coverTarget) { if (gap === void 0) { gap = 0; } var estimatedElementPosition = new Utilities_2.Rectangle(elementToPosition.left, elementToPosition.right, elementToPosition.top, elementToPosition.bottom); var alignmentEdge = positionData.alignmentEdge, targetEdge = positionData.targetEdge; var elementEdge = coverTarget ? targetEdge : targetEdge * -1; estimatedElementPosition = coverTarget ? _alignEdges(estimatedElementPosition, target, targetEdge, gap) : _alignOppositeEdges(estimatedElementPosition, target, targetEdge, gap); // if no alignment edge is provided it's supposed to be centered. if (!alignmentEdge) { var targetMiddlePoint = _getCenterValue(target, targetEdge); estimatedElementPosition = _centerEdgeToPoint(estimatedElementPosition, elementEdge, targetMiddlePoint); } else { estimatedElementPosition = _alignEdges(estimatedElementPosition, target, alignmentEdge); } return estimatedElementPosition; } /** * Returns the non-opposite edges of the target edge. * For instance if bottom is passed in then left and right will be returned. */ function _getFlankingEdges(edge) { if (edge === positioning_types_1.RectangleEdge.top || edge === positioning_types_1.RectangleEdge.bottom) { return { positiveEdge: positioning_types_1.RectangleEdge.left, negativeEdge: positioning_types_1.RectangleEdge.right, }; } else { return { positiveEdge: positioning_types_1.RectangleEdge.top, negativeEdge: positioning_types_1.RectangleEdge.bottom, }; } } /** * Retrieve the final value for the return edge of `elementRectangle`. If the `elementRectangle` is closer to one side * of the bounds versus the other, the return edge is flipped to grow inward. */ function _finalizeReturnEdge(elementRectangle, returnEdge, bounds) { if (bounds && Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge)) > Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge * -1))) { return returnEdge * -1; } return returnEdge; } /** * Whether or not the considered edge of the elementRectangle is lying on the edge of the bounds * @param elementRectangle The rectangle whose edge we are considering * @param bounds The rectangle marking the bounds * @param edge The target edge we're considering * @returns If the target edge of the elementRectangle is in the same location as that edge of the bounds */ function _isEdgeOnBounds(elementRectangle, edge, bounds) { return bounds !== undefined && _getEdgeValue(elementRectangle, edge) === _getEdgeValue(bounds, edge); } /** * Finalizes the element position based on the hostElement. Only returns the * rectangle values to position such that they are anchored to the target. * This helps prevent resizing from looking very strange. * For instance, if the target edge is top and aligned with the left side then * the bottom and left values are returned so as the Callout shrinks it shrinks towards that corner. */ function _finalizeElementPosition(elementRectangle, hostElement, targetEdge, bounds, alignmentEdge, coverTarget, doNotFinalizeReturnEdge, forceWithinBounds) { var returnValue = {}; var hostRect = _getRectangleFromElement(hostElement); var elementEdge = coverTarget ? targetEdge : targetEdge * -1; var returnEdge = alignmentEdge ? alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge; // If we are finalizing the return edge, choose the edge such that we grow away from the bounds // If we are not finalizing the return edge but the opposite edge is flush against the bounds, // choose that as the anchor edge so the element rect can grow away from the bounds' edge // In this case there will not be a visual difference because there is no more room for the elementRectangle to grow // in the usual direction if (!doNotFinalizeReturnEdge || _isEdgeOnBounds(elementRectangle, getOppositeEdge(returnEdge), bounds)) { returnEdge = _finalizeReturnEdge(elementRectangle, returnEdge, bounds); } returnValue[positioning_types_1.RectangleEdge[elementEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge); returnValue[positioning_types_1.RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge); // if the positioned element will still overflow, return all four edges with in-bounds values if (forceWithinBounds) { returnValue[positioning_types_1.RectangleEdge[elementEdge * -1]] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge * -1); returnValue[positioning_types_1.RectangleEdge[returnEdge * -1]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge * -1); } return returnValue; } // Since the beak is rotated 45 degrees the actual height/width is the length of the diagonal. // We still want to position the beak based on it's midpoint which does not change. It will // be at (beakwidth / 2, beakwidth / 2) function _calculateActualBeakWidthInPixels(beakWidth) { return Math.sqrt(beakWidth * beakWidth * 2); } /** * Returns the appropriate IPositionData based on the props altered for RTL. * If directionalHintForRTL is passed in that is used if the page is RTL. * If directionalHint is specified, no directionalHintForRTL is available, and the page is RTL, the hint will be * flipped (e.g. bottomLeftEdge would become bottomRightEdge). * * If there is no directionalHint passed in, bottomAutoEdge is chosen automatically. */ function _getPositionData(directionalHint, directionalHintForRTL, previousPositions) { if (directionalHint === void 0) { directionalHint = DirectionalHint_1.DirectionalHint.bottomAutoEdge; } if (previousPositions) { return { alignmentEdge: previousPositions.alignmentEdge, isAuto: previousPositions.isAuto, targetEdge: previousPositions.targetEdge, }; } var positionInformation = tslib_1.__assign({}, DirectionalDictionary[directionalHint]); if ((0, Utilities_1.getRTL)()) { // If alignment edge exists and that alignment edge is -2 or 2, right or left, then flip it. if (positionInformation.alignmentEdge && positionInformation.alignmentEdge % 2 === 0) { positionInformation.alignmentEdge = positionInformation.alignmentEdge * -1; } return directionalHintForRTL !== undefined ? DirectionalDictionary[directionalHintForRTL] : positionInformation; } return positionInformation; } /** * Gets the alignment data for the given information. This only really matters if the positioning is Auto. * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to * the center of the page. */ function _getAlignmentData(positionData, target, boundingRect, coverTarget, alignTargetEdge) { if (positionData.isAuto) { positionData.alignmentEdge = getClosestEdge(positionData.targetEdge, target, boundingRect); } positionData.alignTargetEdge = alignTargetEdge; return positionData; } function getClosestEdge(targetEdge, target, boundingRect) { var targetCenter = _getCenterValue(target, targetEdge); var boundingCenter = _getCenterValue(boundingRect, targetEdge); var _a = _getFlankingEdges(targetEdge), positiveEdge = _a.positiveEdge, negativeEdge = _a.negativeEdge; if (targetCenter <= boundingCenter) { return positiveEdge; } else { return negativeEdge; } } function _positionElementWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget) { var estimatedElementPosition = _estimatePosition(elementToPosition, target, positionData, gap, coverTarget); if (_isRectangleWithinBounds(estimatedElementPosition, bounding)) { return { elementRectangle: estimatedElementPosition, targetEdge: positionData.targetEdge, alignmentEdge: positionData.alignmentEdge, }; } else { return _adjustFitWithinBounds(estimatedElementPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget); } } function _finalizeBeakPosition(elementPosition, positionedBeak, bounds) { var targetEdge = elementPosition.targetEdge * -1; // The "host" element that we will use to help position the beak. var actualElement = new Utilities_2.Rectangle(0, elementPosition.elementRectangle.width, 0, elementPosition.elementRectangle.height); var returnValue = {}; var returnEdge = _finalizeReturnEdge(elementPosition.elementRectangle, elementPosition.alignmentEdge ? elementPosition.alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge, bounds); // only show the beak if the callout is not fully covering the target var beakEdgeDifference = _getRelativeEdgeDifference(elementPosition.elementRectangle, elementPosition.targetRectangle, targetEdge); var showBeak = beakEdgeDifference > Math.abs(_getEdgeValue(positionedBeak, targetEdge)); returnValue[positioning_types_1.RectangleEdge[targetEdge]] = _getEdgeValue(positionedBeak, targetEdge); returnValue[positioning_types_1.RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(positionedBeak, actualElement, returnEdge); return { elementPosition: tslib_1.__assign({}, returnValue), closestEdge: getClosestEdge(elementPosition.targetEdge, positionedBeak, actualElement), targetEdge: targetEdge, hideBeak: !showBeak, }; } function _positionBeak(beakWidth, elementPosition) { var target = elementPosition.targetRectangle; /** * Note about beak positioning: The actual beak width only matters for getting the gap between the callout and * target, it does not impact the beak placement within the callout. For example example, if the beakWidth is 8, * then the actual beakWidth is sqrroot(8^2 + 8^2) = 11.31x11.31. So the callout will need to be an extra 3 pixels * away from its target. While the beak is being positioned in the callout it still acts as though it were 8x8. */ var _a = _getFlankingEdges(elementPosition.targetEdge), positiveEdge = _a.positiveEdge, negativeEdge = _a.negativeEdge; var beakTargetPoint = _getCenterValue(target, elementPosition.targetEdge); var elementBounds = new Utilities_2.Rectangle(beakWidth / 2, elementPosition.elementRectangle.width - beakWidth / 2, beakWidth / 2, elementPosition.elementRectangle.height - beakWidth / 2); var beakPosition = new Utilities_2.Rectangle(0, beakWidth, 0, beakWidth); beakPosition = _moveEdge(beakPosition, elementPosition.targetEdge * -1, -beakWidth / 2); beakPosition = _centerEdgeToPoint(beakPosition, elementPosition.targetEdge * -1, beakTargetPoint - _getRelativeRectEdgeValue(positiveEdge, elementPosition.elementRectangle)); if (!_isEdgeInBounds(beakPosition, elementBounds, positiveEdge)) { beakPosition = _alignEdges(beakPosition, elementBounds, positiveEdge); } else if (!_isEdgeInBounds(beakPosition, elementBounds, negativeEdge)) { beakPosition = _alignEdges(beakPosition, elementBounds, negativeEdge); } return beakPosition; } function _getRectangleFromElement(element) { // eslint-disable-next-line deprecation/deprecation var clientRect = element.getBoundingClientRect(); return new Utilities_2.Rectangle(clientRect.left, clientRect.right, clientRect.top, clientRect.bottom); } function _getRectangleFromIRect(rect) { return new Utilities_2.Rectangle(rect.left, rect.right, rect.top, rect.bottom); } function _getTargetRect(bounds, target) { var targetRectangle; if (target) { // eslint-disable-next-line no-extra-boolean-cast if (!!target.preventDefault) { var ev = target; targetRectangle = new Utilities_2.Rectangle(ev.clientX, ev.clientX, ev.clientY, ev.clientY); // eslint-disable-next-line no-extra-boolean-cast } else if (!!target.getBoundingClientRect) { targetRectangle = _getRectangleFromElement(target); // HTMLImgElements can have x and y values. The check for it being a point must go last. } else { var rectOrPoint = target; // eslint-disable-next-line deprecation/deprecation var left = rectOrPoint.left || rectOrPoint.x; // eslint-disable-next-line deprecation/deprecation var top_1 = rectOrPoint.top || rectOrPoint.y; var right = rectOrPoint.right || left; var bottom = rectOrPoint.bottom || top_1; targetRectangle = new Utilities_2.Rectangle(left, right, top_1, bottom); } if (!_isRectangleWithinBounds(targetRectangle, bounds)) { var outOfBounds = _getOutOfBoundsEdges(targetRectangle, bounds); for (var _i = 0, outOfBounds_1 = outOfBounds; _i < outOfBounds_1.length; _i++) { var direction = outOfBounds_1[_i]; targetRectangle[positioning_types_1.RectangleEdge[direction]] = bounds[positioning_types_1.RectangleEdge[direction]]; } } } else { targetRectangle = new Utilities_2.Rectangle(0, 0, 0, 0); } return targetRectangle; } /** * If max height is less than zero it returns the bounds height instead. */ function _getMaxHeightFromTargetRectangle(targetRectangle, targetEdge, gapSpace, bounds, coverTarget) { var maxHeight = 0; var directionalHint = DirectionalDictionary[targetEdge]; // If cover target is set, then the max height should be calculated using the opposite of the target edge since // that's the direction that the callout will expand in. // For instance, if the directionalhint is bottomLeftEdge then the callout will position so it's bottom edge // is aligned with the bottom of the target and expand up towards the top of the screen and the calculated max height // is (bottom of target) - (top of screen) - gapSpace. var target = coverTarget ? directionalHint.targetEdge * -1 : directionalHint.targetEdge; if (target === positioning_types_1.RectangleEdge.top) { maxHeight = _getEdgeValue(targetRectangle, directionalHint.targetEdge) - bounds.top - gapSpace; } else if (target === positioning_types_1.RectangleEdge.bottom) { maxHeight = bounds.bottom - _getEdgeValue(targetRectangle, directionalHint.targetEdge) - gapSpace; } else { maxHeight = bounds.bottom - targetRectangle.top - gapSpace; } return maxHeight > 0 ? maxHeight : bounds.height; } function _positionElementRelative(props, elementToPosition, boundingRect, previousPositions) { var gap = props.gapSpace ? props.gapSpace : 0; var targetRect = _getTargetRect(boundingRect, props.target); var positionData = _getAlignmentData(_getPositionData(props.directionalHint, props.directionalHintForRTL, previousPositions), targetRect, boundingRect, props.coverTarget, props.alignTargetEdge); var positionedElement = _positionElementWithinBounds(_getRectangleFromElement(elementToPosition), targetRect, boundingRect, positionData, gap, props.directionalHintFixed, props.coverTarget); return tslib_1.__assign(tslib_1.__assign({}, positionedElement), { targetRectangle: targetRect }); } function _finalizePositionData(positionedElement, hostElement, bounds, coverTarget, doNotFinalizeReturnEdge) { var finalizedElement = _finalizeElementPosition(positionedElement.elementRectangle, hostElement, positionedElement.targetEdge, bounds, positionedElement.alignmentEdge, coverTarget, doNotFinalizeReturnEdge, positionedElement.forcedInBounds); return { elementPosition: finalizedElement, targetEdge: positionedElement.targetEdge, alignmentEdge: positionedElement.alignmentEdge, }; } function _positionElement(props, hostElement, elementToPosition, previousPositions) { var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); var positionedElement = _positionElementRelative(props, elementToPosition, boundingRect, previousPositions); return _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget); } function _positionCallout(props, hostElement, callout, previousPositions, doNotFinalizeReturnEdge) { var beakWidth = props.isBeakVisible ? props.beakWidth || 0 : 0; var gap = _calculateActualBeakWidthInPixels(beakWidth) / 2 + (props.gapSpace ? props.gapSpace : 0); var positionProps = props; positionProps.gapSpace = gap; var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); var positionedElement = _positionElementRelative(positionProps, callout, boundingRect, previousPositions); var beakPositioned = _positionBeak(beakWidth, positionedElement); var finalizedBeakPosition = _finalizeBeakPosition(positionedElement, beakPositioned, boundingRect); return tslib_1.__assign(tslib_1.__assign({}, _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget, doNotFinalizeReturnEdge)), { beakPosition: finalizedBeakPosition }); } function _positionCard(props, hostElement, callout, previousPositions) { return _positionCallout(props, hostElement, callout, previousPositions, true); } // END PRIVATE FUNCTIONS exports.__positioningTestPackage = { _finalizePositionData: _finalizePositionData, _finalizeBeakPosition: _finalizeBeakPosition, _calculateActualBeakWidthInPixels: _calculateActualBeakWidthInPixels, _positionElementWithinBounds: _positionElementWithinBounds, _positionBeak: _positionBeak, _getPositionData: _getPositionData, _getMaxHeightFromTargetRectangle: _getMaxHeightFromTargetRectangle, }; /** * Used to position an element relative to the given positioning props. * If positioning has been completed before, previousPositions can be passed to ensure that the positioning element * repositions based on its previous targets rather than starting with directionalhint. */ function positionElement(props, hostElement, elementToPosition, previousPositions) { return _positionElement(props, hostElement, elementToPosition, previousPositions); } exports.positionElement = positionElement; function positionCallout(props, hostElement, elementToPosition, previousPositions) { return _positionCallout(props, hostElement, elementToPosition, previousPositions); } exports.positionCallout = positionCallout; function positionCard(props, hostElement, elementToPosition, previousPositions) { return _positionCard(props, hostElement, elementToPosition, previousPositions); } exports.positionCard = positionCard; /** * Gets the maximum height that a rectangle can have in order to fit below or above a target. * If the directional hint specifies a left or right edge (i.e. leftCenter) it will limit the height to the topBorder * of the target given. * If no bounds are provided then the window is treated as the bounds. */ function getMaxHeight(target, targetEdge, gapSpace, bounds, coverTarget) { if (gapSpace === void 0) { gapSpace = 0; } var mouseTarget = target; var elementTarget = target; var rectOrPointTarget = target; var targetRect; var boundingRectangle = bounds ? _getRectangleFromIRect(bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); // eslint-disable-next-line deprecation/deprecation var left = rectOrPointTarget.left || rectOrPointTarget.x; // eslint-disable-next-line deprecation/deprecation var top = rectOrPointTarget.top || rectOrPointTarget.y; var right = rectOrPointTarget.right || left; var bottom = rectOrPointTarget.bottom || top; // eslint-disable-next-line no-extra-boolean-cast -- may not actually be a MouseEvent if (!!mouseTarget.stopPropagation) { targetRect = new Utilities_2.Rectangle(mouseTarget.clientX, mouseTarget.clientX, mouseTarget.clientY, mouseTarget.clientY); } else if (left !== undefined && top !== undefined) { targetRect = new Utilities_2.Rectangle(left, right, top, bottom); } else { targetRect = _getRectangleFromElement(elementTarget); } return _getMaxHeightFromTargetRectangle(targetRect, targetEdge, gapSpace, boundingRectangle, coverTarget); } exports.getMaxHeight = getMaxHeight; /** * Returns the opposite edge of the given RectangleEdge. */ function getOppositeEdge(edge) { return edge * -1; } exports.getOppositeEdge = getOppositeEdge; function _getBoundsFromTargetWindow(target, targetWindow) { var segments = undefined; if (targetWindow.getWindowSegments) { segments = targetWindow.getWindowSegments(); } // Identify if we're dealing with single screen scenarios. if (segments === undefined || segments.length <= 1) { return { top: 0, left: 0, right: targetWindow.innerWidth, bottom: targetWindow.innerHeight, width: targetWindow.innerWidth, height: targetWindow.innerHeight, }; } // Logic for determining dual screen scenarios. var x = 0; var y = 0; // If the target is an Element get coordinates for its center. if (target !== null && !!target.getBoundingClientRect) { var clientRect = target.getBoundingClientRect(); x = (clientRect.left + clientRect.right) / 2; y = (clientRect.top + clientRect.bottom) / 2; } // If the target is not null get x-axis and y-axis coordinates directly. else if (target !== null) { // eslint-disable-next-line deprecation/deprecation x = target.left || target.x; // eslint-disable-next-line deprecation/deprecation y = target.top || target.y; } var bounds = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }; // Define which window segment are the coordinates in and calculate bounds based on that. for (var _i = 0, segments_1 = segments; _i < segments_1.length; _i++) { var segment = segments_1[_i]; if (x && segment.left <= x && segment.right >= x && y && segment.top <= y && segment.bottom >= y) { bounds = { top: segment.top, left: segment.left, right: segment.right, bottom: segment.bottom, width: segment.width, height: segment.height, }; } } return bounds; } function getBoundsFromTargetWindow(target, targetWindow) { return _getBoundsFromTargetWindow(target, targetWindow); } exports.getBoundsFromTargetWindow = getBoundsFromTargetWindow; //# sourceMappingURL=positioning.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Position = exports.RectangleEdge = void 0; var RectangleEdge; (function (RectangleEdge) { RectangleEdge[RectangleEdge["top"] = 1] = "top"; RectangleEdge[RectangleEdge["bottom"] = -1] = "bottom"; RectangleEdge[RectangleEdge["left"] = 2] = "left"; RectangleEdge[RectangleEdge["right"] = -2] = "right"; })(RectangleEdge = exports.RectangleEdge || (exports.RectangleEdge = {})); var Position; (function (Position) { Position[Position["top"] = 0] = "top"; Position[Position["bottom"] = 1] = "bottom"; Position[Position["start"] = 2] = "start"; Position[Position["end"] = 3] = "end"; })(Position = exports.Position || (exports.Position = {})); //# sourceMappingURL=positioning.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SelectableDroppableText.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getAllSelectedOptions = void 0; function getAllSelectedOptions(options, selectedIndices) { var selectedOptions = []; for (var _i = 0, selectedIndices_1 = selectedIndices; _i < selectedIndices_1.length; _i++) { var index = selectedIndices_1[_i]; var option = options[index]; if (option) { selectedOptions.push(option); } } return selectedOptions; } exports.getAllSelectedOptions = getAllSelectedOptions; //# sourceMappingURL=SelectableOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectableOptionMenuItemType = void 0; var SelectableOptionMenuItemType; (function (SelectableOptionMenuItemType) { SelectableOptionMenuItemType[SelectableOptionMenuItemType["Normal"] = 0] = "Normal"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["Divider"] = 1] = "Divider"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["Header"] = 2] = "Header"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["SelectAll"] = 3] = "SelectAll"; })(SelectableOptionMenuItemType = exports.SelectableOptionMenuItemType || (exports.SelectableOptionMenuItemType = {})); //# sourceMappingURL=SelectableOption.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/index.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/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__(/*! ./SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectableOption.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectableDroppableText.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return utilities_1.Selection; } })); //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionZone = 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 interfaces_1 = __webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js"); // Selection definitions: // // Anchor index: the point from which a range selection starts. // Focus index: the point from which layout movement originates from. // // These two can differ. Tests: // // If you start at index 5 // Shift click to index 10 // The focus is 10, the anchor is 5. // If you shift click at index 0 // The anchor remains at 5, the items between 0 and 5 are selected and everything else is cleared. // If you click index 8 // The anchor and focus are set to 8. var SELECTION_DISABLED_ATTRIBUTE_NAME = 'data-selection-disabled'; var SELECTION_INDEX_ATTRIBUTE_NAME = 'data-selection-index'; var SELECTION_SPAN_ATTRIBUTE_NAME = 'data-selection-span'; var SELECTION_TOGGLE_ATTRIBUTE_NAME = 'data-selection-toggle'; var SELECTION_INVOKE_ATTRIBUTE_NAME = 'data-selection-invoke'; var SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME = 'data-selection-touch-invoke'; var SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME = 'data-selection-all-toggle'; var SELECTION_SELECT_ATTRIBUTE_NAME = 'data-selection-select'; /** * {@docCategory Selection} */ var SelectionZone = /** @class */ (function (_super) { tslib_1.__extends(SelectionZone, _super); function SelectionZone(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); /** * In some cases, the consuming scenario requires to set focus on a row without having SelectionZone * react to the event. Note that focus events in IE \<= 11 will occur asynchronously after .focus() has * been called on an element, so we need a flag to store the idea that we will bypass the "next" * focus event that occurs. This method does that. */ _this.ignoreNextFocus = function () { _this._handleNextFocus(false); }; _this._onSelectionChange = function () { var selection = _this.props.selection; var isModal = selection.isModal && selection.isModal(); _this.setState({ isModal: isModal, }); }; _this._onMouseDownCapture = function (ev) { var target = ev.target; if (document.activeElement !== target && !(0, Utilities_1.elementContains)(document.activeElement, target)) { _this.ignoreNextFocus(); return; } if (!(0, Utilities_1.elementContains)(target, _this._root.current)) { return; } while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { _this.ignoreNextFocus(); break; } target = (0, Utilities_1.getParent)(target); } }; /** * When we focus an item, for single/multi select scenarios, we should try to select it immediately * as long as the focus did not originate from a mouse down/touch event. For those cases, we handle them * specially. */ _this._onFocus = function (ev) { var target = ev.target; var selection = _this.props.selection; var isToggleModifierPressed = _this._isCtrlPressed || _this._isMetaPressed; var selectionMode = _this._getSelectionMode(); if (_this._shouldHandleFocus && selectionMode !== interfaces_1.SelectionMode.none) { var isToggle = _this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME); var itemRoot = _this._findItemRoot(target); if (!isToggle && itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); if (span === undefined) { if (isToggleModifierPressed) { // set anchor only. selection.setIndexSelected(index, selection.isIndexSelected(index), true); if (_this.props.enterModalOnTouch && _this._isTouch && selection.setModal) { selection.setModal(true); _this._setIsTouch(false); } } else { if (_this.props.isSelectedOnFocus) { _this._onItemSurfaceClick('focus', index); } } } } } _this._handleNextFocus(false); }; _this._onMouseDown = function (ev) { _this._updateModifiers(ev); var toggleWithoutModifierPressed = _this.props.toggleWithoutModifierPressed; var target = ev.target; var itemRoot = _this._findItemRoot(target); // No-op if selection is disabled if (_this._isSelectionDisabled(target)) { return; } while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) { break; } else if (itemRoot) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { break; } else if (_this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { break; } else if ((target === itemRoot || _this._shouldAutoSelect(target)) && !_this._isShiftPressed && !_this._isCtrlPressed && !_this._isMetaPressed && !toggleWithoutModifierPressed) { _this._onInvokeMouseDown(ev, _this._getItemIndex(itemRoot), _this._getItemSpan(itemRoot)); break; } else if (_this.props.disableAutoSelectOnInputElements && (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT')) { return; } } target = (0, Utilities_1.getParent)(target); } }; _this._onTouchStartCapture = function (ev) { _this._setIsTouch(true); }; _this._onClick = function (ev) { var _a = _this.props.enableTouchInvocationTarget, enableTouchInvocationTarget = _a === void 0 ? false : _a; _this._updateModifiers(ev); var target = ev.target; var itemRoot = _this._findItemRoot(target); var isSelectionDisabled = _this._isSelectionDisabled(target); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) { if (!isSelectionDisabled) { _this._onToggleAllClick(ev); } break; } else if (itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { if (!isSelectionDisabled) { if (_this._isShiftPressed) { _this._onItemSurfaceClick('click', index, span); } else { _this._onToggleClick(ev, index, span); } } break; } else if ((_this._isTouch && enableTouchInvocationTarget && _this._hasAttribute(target, SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME)) || _this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { if (span === undefined) { // Items should be invokable even if selection is disabled. _this._onInvokeClick(ev, index); } break; } else if (target === itemRoot) { if (!isSelectionDisabled) { _this._onItemSurfaceClick('click', index, span); } break; } else if (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT') { return; } } target = (0, Utilities_1.getParent)(target); } }; _this._onContextMenu = function (ev) { var target = ev.target; var _a = _this.props, onItemContextMenu = _a.onItemContextMenu, selection = _a.selection; if (onItemContextMenu) { var itemRoot = _this._findItemRoot(target); if (itemRoot) { var index = _this._getItemIndex(itemRoot); _this._onInvokeMouseDown(ev, index); var skipPreventDefault = onItemContextMenu(selection.getItems()[index], index, ev.nativeEvent); // In order to keep back compat, if the value here is undefined, then we should still // call preventDefault(). Only in the case where true is explicitly returned should // the call be skipped. if (!skipPreventDefault) { ev.preventDefault(); } } } }; /** * In multi selection, if you double click within an item's root (but not within the invoke element or * input elements), we should execute the invoke handler. */ _this._onDoubleClick = function (ev) { var target = ev.target; var onItemInvoked = _this.props.onItemInvoked; var itemRoot = _this._findItemRoot(target); if (itemRoot && onItemInvoked && !_this._isInputElement(target)) { var index = _this._getItemIndex(itemRoot); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME) || _this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { break; } else if (target === itemRoot) { _this._onInvokeClick(ev, index); break; } target = (0, Utilities_1.getParent)(target); } target = (0, Utilities_1.getParent)(target); } }; _this._onKeyDownCapture = function (ev) { _this._updateModifiers(ev); _this._handleNextFocus(true); }; _this._onKeyDown = function (ev) { _this._updateModifiers(ev); var target = ev.target; var isSelectionDisabled = _this._isSelectionDisabled(target); var _a = _this.props, selection = _a.selection, selectionClearedOnEscapePress = _a.selectionClearedOnEscapePress; // eslint-disable-next-line deprecation/deprecation var isSelectAllKey = ev.which === Utilities_1.KeyCodes.a && (_this._isCtrlPressed || _this._isMetaPressed); // eslint-disable-next-line deprecation/deprecation var isClearSelectionKey = ev.which === Utilities_1.KeyCodes.escape; // Ignore key downs from input elements. if (_this._isInputElement(target)) { // A key was pressed while an item in this zone was focused. return; } var selectionMode = _this._getSelectionMode(); // If ctrl-a is pressed, select all (if all are not already selected.) if (isSelectAllKey && selectionMode === interfaces_1.SelectionMode.multiple && !selection.isAllSelected()) { if (!isSelectionDisabled) { selection.setAllSelected(true); } ev.stopPropagation(); ev.preventDefault(); return; } // If escape is pressed and the component is configured to clear on escape press, // clear selection (if any are selected.) if (selectionClearedOnEscapePress && isClearSelectionKey && selection.getSelectedCount() > 0) { if (!isSelectionDisabled) { selection.setAllSelected(false); } ev.stopPropagation(); ev.preventDefault(); return; } var itemRoot = _this._findItemRoot(target); // If a key was pressed within an item, we should treat "enters" as invokes and "space" as toggle if (itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { // For toggle elements, assuming they are rendered as buttons, they will generate a click event, // so we can no-op for any keydowns in this case. break; } else if (_this._shouldAutoSelect(target)) { if (!isSelectionDisabled && span === undefined) { // If the event went to an element which should trigger auto-select, select it and then let // the default behavior kick in. _this._onInvokeMouseDown(ev, index, span); } break; } else if ( // eslint-disable-next-line deprecation/deprecation (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) && (target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT' || target.tagName === 'SUMMARY')) { return false; } else if (target === itemRoot) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { if (span === undefined) { // Items should be invokable even if selection is disabled. _this._onInvokeClick(ev, index); ev.preventDefault(); } return; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Utilities_1.KeyCodes.space) { if (!isSelectionDisabled) { _this._onToggleClick(ev, index, span); } ev.preventDefault(); return; } break; } target = (0, Utilities_1.getParent)(target); } } }; _this._events = new Utilities_1.EventGroup(_this); _this._async = new Utilities_1.Async(_this); (0, Utilities_1.initializeComponentRef)(_this); var selection = _this.props.selection; // Reflect the initial modal state of selection into the state. var isModal = selection.isModal && selection.isModal(); _this.state = { isModal: isModal, }; return _this; } SelectionZone.getDerivedStateFromProps = function (nextProps, prevState) { var isModal = nextProps.selection.isModal && nextProps.selection.isModal(); return tslib_1.__assign(tslib_1.__assign({}, prevState), { isModal: isModal }); }; SelectionZone.prototype.componentDidMount = function () { var win = (0, Utilities_1.getWindow)(this._root.current); // Track the latest modifier keys globally. this._events.on(win, 'keydown, keyup', this._updateModifiers, true); this._events.on(document, 'click', this._findScrollParentAndTryClearOnEmptyClick); this._events.on(document.body, 'touchstart', this._onTouchStartCapture, true); this._events.on(document.body, 'touchend', this._onTouchStartCapture, true); // Subscribe to the selection to keep modal state updated. this._events.on(this.props.selection, 'change', this._onSelectionChange); }; SelectionZone.prototype.render = function () { var isModal = this.state.isModal; return (React.createElement("div", { className: (0, Utilities_1.css)('ms-SelectionZone', this.props.className, { 'ms-SelectionZone--modal': !!isModal, }), ref: this._root, onKeyDown: this._onKeyDown, onMouseDown: this._onMouseDown, onKeyDownCapture: this._onKeyDownCapture, onClick: this._onClick, role: "presentation", onDoubleClick: this._onDoubleClick, onContextMenu: this._onContextMenu, onMouseDownCapture: this._onMouseDownCapture, onFocusCapture: this._onFocus, "data-selection-is-modal": isModal ? true : undefined }, this.props.children, React.createElement(Utilities_1.FocusRects, null))); }; SelectionZone.prototype.componentDidUpdate = function (previousProps) { var selection = this.props.selection; if (selection !== previousProps.selection) { // Whenever selection changes, update the subscripton to keep modal state updated. this._events.off(previousProps.selection); this._events.on(selection, 'change', this._onSelectionChange); } }; SelectionZone.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); }; SelectionZone.prototype._isSelectionDisabled = function (target) { if (this._getSelectionMode() === interfaces_1.SelectionMode.none) { return true; } while (target !== this._root.current) { if (this._hasAttribute(target, SELECTION_DISABLED_ATTRIBUTE_NAME)) { return true; } target = (0, Utilities_1.getParent)(target); } return false; }; SelectionZone.prototype._onToggleAllClick = function (ev) { var selection = this.props.selection; var selectionMode = this._getSelectionMode(); if (selectionMode === interfaces_1.SelectionMode.multiple) { selection.toggleAllSelected(); ev.stopPropagation(); ev.preventDefault(); } }; SelectionZone.prototype._onToggleClick = function (ev, index, span) { var selection = this.props.selection; var selectionMode = this._getSelectionMode(); selection.setChangeEvents(false); if (this.props.enterModalOnTouch && this._isTouch && (span !== undefined ? !selection.isRangeSelected(index, span) : !selection.isIndexSelected(index)) && selection.setModal) { selection.setModal(true); this._setIsTouch(false); } if (selectionMode === interfaces_1.SelectionMode.multiple) { if (span !== undefined) { selection.toggleRangeSelected(index, span); } else { selection.toggleIndexSelected(index); } } else if (selectionMode === interfaces_1.SelectionMode.single) { if (span === undefined || span === 1) { var isSelected = selection.isIndexSelected(index); var isModal = selection.isModal && selection.isModal(); selection.setAllSelected(false); selection.setIndexSelected(index, !isSelected, true); if (isModal && selection.setModal) { // Since the above call to setAllSelected(false) clears modal state, // restore it. This occurs because the SelectionMode of the Selection // may differ from the SelectionZone. selection.setModal(true); } } } else { selection.setChangeEvents(true); return; } selection.setChangeEvents(true); ev.stopPropagation(); // NOTE: ev.preventDefault is not called for toggle clicks, because this will kill the browser behavior // for checkboxes if you use a checkbox for the toggle. }; SelectionZone.prototype._onInvokeClick = function (ev, index) { var _a = this.props, selection = _a.selection, onItemInvoked = _a.onItemInvoked; if (onItemInvoked) { onItemInvoked(selection.getItems()[index], index, ev.nativeEvent); ev.preventDefault(); ev.stopPropagation(); } }; SelectionZone.prototype._onItemSurfaceClick = function (type, index, span) { var _a; var _b = this.props, selection = _b.selection, toggleWithoutModifierPressed = _b.toggleWithoutModifierPressed; var isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed; var selectionMode = this._getSelectionMode(); if (selectionMode === interfaces_1.SelectionMode.multiple) { if (this._isShiftPressed && !this._isTabPressed) { if (span !== undefined) { (_a = selection.selectToRange) === null || _a === void 0 ? void 0 : _a.call(selection, index, span, !isToggleModifierPressed); } else { selection.selectToIndex(index, !isToggleModifierPressed); } } else if (type === 'click' && (isToggleModifierPressed || toggleWithoutModifierPressed)) { if (span !== undefined) { selection.toggleRangeSelected(index, span); } else { selection.toggleIndexSelected(index); } } else { this._clearAndSelectIndex(index, span); } } else if (selectionMode === interfaces_1.SelectionMode.single) { this._clearAndSelectIndex(index, span); } }; SelectionZone.prototype._onInvokeMouseDown = function (ev, index, span) { var selection = this.props.selection; if (span !== undefined) { if (selection.isRangeSelected(index, span)) { return; } } else { // Only do work if item is not selected. if (selection.isIndexSelected(index)) { return; } } this._clearAndSelectIndex(index, span); }; /** * To avoid high startup cost of traversing the DOM on component mount, * defer finding the scrollable parent until a click interaction. * * The styles will probably already calculated since we're running in a click handler, * so this is less likely to cause layout thrashing then doing it in mount. */ SelectionZone.prototype._findScrollParentAndTryClearOnEmptyClick = function (ev) { var scrollParent = (0, Utilities_1.findScrollableParent)(this._root.current); // unbind this handler and replace binding with a binding on the actual scrollable parent this._events.off(document, 'click', this._findScrollParentAndTryClearOnEmptyClick); this._events.on(scrollParent, 'click', this._tryClearOnEmptyClick); // If we clicked inside the scrollable parent, call through to the handler on this click. if ((scrollParent && ev.target instanceof Node && scrollParent.contains(ev.target)) || scrollParent === ev.target) { this._tryClearOnEmptyClick(ev); } }; SelectionZone.prototype._tryClearOnEmptyClick = function (ev) { if (!this.props.selectionPreservedOnEmptyClick && this._isNonHandledClick(ev.target)) { this.props.selection.setAllSelected(false); } }; SelectionZone.prototype._clearAndSelectIndex = function (index, span) { var _a; var _b = this.props, selection = _b.selection, _c = _b.selectionClearedOnSurfaceClick, selectionClearedOnSurfaceClick = _c === void 0 ? true : _c; var isAlreadySingleSelected = (span === undefined || span === 1) && selection.getSelectedCount() === 1 && selection.isIndexSelected(index); if (!isAlreadySingleSelected && selectionClearedOnSurfaceClick) { var isModal = selection.isModal && selection.isModal(); selection.setChangeEvents(false); selection.setAllSelected(false); if (span !== undefined) { (_a = selection.setRangeSelected) === null || _a === void 0 ? void 0 : _a.call(selection, index, span, true, true); } else { selection.setIndexSelected(index, true, true); } if (isModal || (this.props.enterModalOnTouch && this._isTouch)) { if (selection.setModal) { selection.setModal(true); } if (this._isTouch) { this._setIsTouch(false); } } selection.setChangeEvents(true); } }; /** * We need to track the modifier key states so that when focus events occur, which do not contain * modifier states in the Event object, we know how to behave. */ SelectionZone.prototype._updateModifiers = function (ev) { this._isShiftPressed = ev.shiftKey; this._isCtrlPressed = ev.ctrlKey; this._isMetaPressed = ev.metaKey; // eslint-disable-next-line deprecation/deprecation var keyCode = ev.keyCode; this._isTabPressed = keyCode ? keyCode === Utilities_1.KeyCodes.tab : false; }; SelectionZone.prototype._findItemRoot = function (target) { var selection = this.props.selection; while (target !== this._root.current) { var indexValue = target.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME); var index = Number(indexValue); if (indexValue !== null && index >= 0 && index < selection.getItems().length) { break; } target = (0, Utilities_1.getParent)(target); } if (target === this._root.current) { return undefined; } return target; }; SelectionZone.prototype._getItemIndex = function (itemRoot) { var _a; var indexValue = parseInt((_a = itemRoot.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME)) !== null && _a !== void 0 ? _a : '', 10); return isNaN(indexValue) ? -1 : indexValue; }; SelectionZone.prototype._getItemSpan = function (itemRoot) { var _a; var spanValue = parseInt((_a = itemRoot.getAttribute(SELECTION_SPAN_ATTRIBUTE_NAME)) !== null && _a !== void 0 ? _a : '', 10); return isNaN(spanValue) ? undefined : spanValue; }; SelectionZone.prototype._shouldAutoSelect = function (element) { return this._hasAttribute(element, SELECTION_SELECT_ATTRIBUTE_NAME); }; SelectionZone.prototype._hasAttribute = function (element, attributeName) { var isToggle = false; while (!isToggle && element !== this._root.current) { var value = element.getAttribute(attributeName); if (value === 'false') { isToggle = false; break; } isToggle = value === 'true'; element = (0, Utilities_1.getParent)(element); } return isToggle; }; SelectionZone.prototype._isInputElement = function (element) { return (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.getAttribute('contenteditable') === 'true' || element.getAttribute('contenteditable') === ''); }; SelectionZone.prototype._isNonHandledClick = function (element) { var doc = (0, Utilities_1.getDocument)(); if (doc && element) { while (element && element !== doc.documentElement) { if ((0, Utilities_1.isElementTabbable)(element) || element.hasAttribute('data-selection-index')) { return false; } element = (0, Utilities_1.getParent)(element); } } return true; }; SelectionZone.prototype._handleNextFocus = function (handleFocus) { var _this = this; if (this._shouldHandleFocusTimeoutId) { this._async.clearTimeout(this._shouldHandleFocusTimeoutId); this._shouldHandleFocusTimeoutId = undefined; } this._shouldHandleFocus = handleFocus; if (handleFocus) { this._async.setTimeout(function () { _this._shouldHandleFocus = false; }, 100); } }; SelectionZone.prototype._setIsTouch = function (isTouch) { var _this = this; if (this._isTouchTimeoutId) { this._async.clearTimeout(this._isTouchTimeoutId); this._isTouchTimeoutId = undefined; } this._isTouch = true; if (isTouch) { this._async.setTimeout(function () { _this._isTouch = false; }, 300); } }; SelectionZone.prototype._getSelectionMode = function () { var selection = this.props.selection; var _a = this.props.selectionMode, selectionMode = _a === void 0 ? selection ? selection.mode : interfaces_1.SelectionMode.none : _a; return selectionMode; }; SelectionZone.defaultProps = { isSelectedOnFocus: true, toggleWithoutModifierPressed: false, selectionMode: interfaces_1.SelectionMode.multiple, selectionClearedOnEscapePress: true, }; return SelectionZone; }(React.Component)); exports.SelectionZone = SelectionZone; //# sourceMappingURL=SelectionZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/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__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Selection */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectionZone */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionMode = exports.SelectionDirection = exports.SELECTION_CHANGE = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return utilities_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return utilities_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return utilities_1.SelectionMode; } })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/useOverflow.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/useOverflow.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useOverflow = void 0; 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 observeResize_1 = __webpack_require__(/*! ./observeResize */ "./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js"); /** * Track whether any items don't fit within their container, and move them to the overflow menu. * Items are moved into the overflow menu from back to front, excluding pinned items. * * The overflow menu button must be the last sibling of all of the items that can be put into the overflow, and it * must be hooked up to the `setMenuButtonRef` setter function that's returned by `useOverflow`: * ```ts * const overflow = useOverflow(...); * ``` * ```jsx * * // Index 0 * // Index 1 * ... * // Can be any React.Component or HTMLElement * * ``` */ var useOverflow = function (_a) { var onOverflowItemsChanged = _a.onOverflowItemsChanged, rtl = _a.rtl, pinnedIndex = _a.pinnedIndex; var updateOverflowRef = React.useRef(); var containerWidthRef = React.useRef(); // Attach a resize observer to the container var containerRef = (0, react_hooks_1.useRefEffect)(function (container) { var cleanupObserver = (0, observeResize_1.observeResize)(container, function (entries) { containerWidthRef.current = entries ? entries[0].contentRect.width : container.clientWidth; if (updateOverflowRef.current) { updateOverflowRef.current(); } }); return function () { cleanupObserver(); containerWidthRef.current = undefined; }; }); var menuButtonRef = (0, react_hooks_1.useRefEffect)(function (menuButton) { containerRef(menuButton.parentElement); return function () { return containerRef(null); }; }); (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { var container = containerRef.current; var menuButton = menuButtonRef.current; if (!container || !menuButton) { return; } // items contains the container's children, excluding the overflow menu button itself var items = []; for (var i = 0; i < container.children.length; i++) { var item = container.children[i]; if (item instanceof HTMLElement && item !== menuButton) { items.push(item); } } // Keep track of the minimum width of the container to fit each child index. // This cache is an integral part of the algorithm and not just a performance optimization: it allows us to // recalculate the overflowIndex on subsequent resizes even if some items are already inside the overflow. var minContainerWidth = []; var extraWidth = 0; // The accumulated width of items that don't move into the overflow updateOverflowRef.current = function () { var containerWidth = containerWidthRef.current; if (containerWidth === undefined) { return; } // Iterate the items in reverse order until we find one that fits within the bounds of the container for (var i = items.length - 1; i >= 0; i--) { // Calculate the min container width for this item if we haven't done so yet if (minContainerWidth[i] === undefined) { var itemOffsetEnd = rtl ? containerWidth - items[i].offsetLeft : items[i].offsetLeft + items[i].offsetWidth; // If the item after this one is pinned, reserve space for it if (i + 1 < items.length && i + 1 === pinnedIndex) { // Use distance between the end of the previous item and this one (rather than the // pinned item's offsetWidth), to account for any margin between the items. extraWidth = minContainerWidth[i + 1] - itemOffsetEnd; } // Reserve space for the menu button after the first item was added to the overflow if (i === items.length - 2) { extraWidth += menuButton.offsetWidth; } minContainerWidth[i] = itemOffsetEnd + extraWidth; } if (containerWidth > minContainerWidth[i]) { setOverflowIndex(i + 1); return; } } // If we got here, nothing fits outside the overflow setOverflowIndex(0); }; var prevOverflowIndex = items.length; var setOverflowIndex = function (overflowIndex) { if (prevOverflowIndex !== overflowIndex) { prevOverflowIndex = overflowIndex; onOverflowItemsChanged(overflowIndex, items.map(function (ele, index) { return ({ ele: ele, isOverflowing: index >= overflowIndex && index !== pinnedIndex, }); })); } }; var cancelAnimationFrame = undefined; // If the container width is already known from a previous render, update the overflow with its width. // Do this in an animation frame to avoid forcing layout to happen early. if (containerWidthRef.current !== undefined) { var win_1 = (0, utilities_1.getWindow)(container); if (win_1) { var animationFrameId_1 = win_1.requestAnimationFrame(updateOverflowRef.current); cancelAnimationFrame = function () { return win_1.cancelAnimationFrame(animationFrameId_1); }; } } return function () { if (cancelAnimationFrame) { cancelAnimationFrame(); } // On cleanup, need to remove all items from the overflow // so they don't have stale properties on the next render setOverflowIndex(items.length); updateOverflowRef.current = undefined; }; }); return { menuButtonRef: menuButtonRef }; }; exports.useOverflow = useOverflow; //# sourceMappingURL=useOverflow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/version.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/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', '8.111.2'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/set-version/lib-commonjs/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/set-version/lib-commonjs/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVersion = void 0; var setVersion_1 = __webpack_require__(/*! ./setVersion */ "./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js"); Object.defineProperty(exports, "setVersion", ({ enumerable: true, get: function () { return setVersion_1.setVersion; } })); (0, setVersion_1.setVersion)('@fluentui/set-version', '6.0.0'); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVersion = void 0; // A packages cache that makes sure that we don't inject the same packageName twice in the same bundle - // this cache is local to the module closure inside this bundle var packagesCache = {}; // Cache access to window to avoid IE11 memory leak. var _win = undefined; try { _win = window; } catch (e) { /* no-op */ } function setVersion(packageName, packageVersion) { if (typeof _win !== 'undefined') { // eslint-disable-next-line @typescript-eslint/no-explicit-any var packages = (_win.__packages__ = _win.__packages__ || {}); // We allow either the global packages or local packages caches to invalidate so testing can // just clear the global to set this state if (!packages[packageName] || !packagesCache[packageName]) { packagesCache[packageName] = packageVersion; var versions = (packages[packageName] = packages[packageName] || []); versions.push(packageVersion); } } } exports.setVersion = setVersion; //# sourceMappingURL=setVersion.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeStyles = exports.mergeStyleSets = exports.keyframes = exports.fontFace = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.Stylesheet = exports.InjectionMode = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return merge_styles_1.InjectionMode; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return merge_styles_1.Stylesheet; } })); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return merge_styles_1.concatStyleSets; } })); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return merge_styles_1.concatStyleSetsWithProps; } })); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return merge_styles_1.fontFace; } })); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return merge_styles_1.keyframes; } })); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return merge_styles_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return merge_styles_1.mergeStyles; } })); //# sourceMappingURL=MergeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FLUENT_CDN_BASE_URL = void 0; exports.FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002'; //# sourceMappingURL=cdn.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationClassNames = void 0; var index_1 = __webpack_require__(/*! ../utilities/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js"); var index_2 = __webpack_require__(/*! ../styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"); /** * {@docCategory AnimationClassNames} */ exports.AnimationClassNames = (0, index_1.buildClassMap)(index_2.AnimationStyles); //# sourceMappingURL=AnimationClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorClassNames = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var DefaultPalette_1 = __webpack_require__(/*! ../styles/DefaultPalette */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js"); var index_1 = __webpack_require__(/*! ../styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"); exports.ColorClassNames = {}; for (var colorName in DefaultPalette_1.DefaultPalette) { if (DefaultPalette_1.DefaultPalette.hasOwnProperty(colorName)) { // Foreground color _defineGetter(exports.ColorClassNames, colorName, '', false, 'color'); // Hover color _defineGetter(exports.ColorClassNames, colorName, 'Hover', true, 'color'); // Background color _defineGetter(exports.ColorClassNames, colorName, 'Background', false, 'background'); // Background hover _defineGetter(exports.ColorClassNames, colorName, 'BackgroundHover', true, 'background'); // Border color _defineGetter(exports.ColorClassNames, colorName, 'Border', false, 'borderColor'); // Border hover color _defineGetter(exports.ColorClassNames, colorName, 'BorderHover', true, 'borderColor'); } } /** * Defines a getter for the given class configuration. */ function _defineGetter(obj, colorName, suffix, isHover, cssProperty) { Object.defineProperty(obj, colorName + suffix, { get: function () { var _a; // eslint-disable-next-line @typescript-eslint/no-explicit-any var style = (_a = {}, _a[cssProperty] = (0, index_1.getTheme)().palette[colorName], _a); return (0, merge_styles_1.mergeStyles)(isHover ? { selectors: { ':hover': style } } : style).toString(); }, enumerable: true, configurable: true, }); } //# sourceMappingURL=ColorClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FontClassNames = void 0; var buildClassMap_1 = __webpack_require__(/*! ../utilities/buildClassMap */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js"); var DefaultFontStyles_1 = __webpack_require__(/*! ../styles/DefaultFontStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js"); /** * {@docCategory FontClassNames} */ exports.FontClassNames = (0, buildClassMap_1.buildClassMap)(DefaultFontStyles_1.DefaultFontStyles); //# sourceMappingURL=FontClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorClassNames = exports.FontClassNames = exports.AnimationClassNames = void 0; var AnimationClassNames_1 = __webpack_require__(/*! ./AnimationClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js"); Object.defineProperty(exports, "AnimationClassNames", ({ enumerable: true, get: function () { return AnimationClassNames_1.AnimationClassNames; } })); var FontClassNames_1 = __webpack_require__(/*! ./FontClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js"); Object.defineProperty(exports, "FontClassNames", ({ enumerable: true, get: function () { return FontClassNames_1.FontClassNames; } })); var ColorClassNames_1 = __webpack_require__(/*! ./ColorClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js"); Object.defineProperty(exports, "ColorClassNames", ({ enumerable: true, get: function () { return ColorClassNames_1.ColorClassNames; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/style-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__(/*! ./classNames/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MergeStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cdn */ "./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js"), exports); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/style-utilities/lib-commonjs/version.js"); // Ensure theme is initialized when this package is referenced. var theme_1 = __webpack_require__(/*! ./styles/theme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js"); (0, theme_1.initializeThemeInCustomizations)(); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationVariables = exports.AnimationStyles = void 0; 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; } })); //# sourceMappingURL=AnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getEdgeChromiumNoHighContrastAdjustSelector = exports.getHighContrastNoAdjustStyle = exports.getScreenSelector = exports.ScreenWidthMinUhfMobile = exports.ScreenWidthMaxXXLarge = exports.ScreenWidthMaxXLarge = exports.ScreenWidthMaxLarge = exports.ScreenWidthMaxMedium = exports.ScreenWidthMaxSmall = exports.ScreenWidthMinXXXLarge = exports.ScreenWidthMinXXLarge = exports.ScreenWidthMinXLarge = exports.ScreenWidthMinLarge = exports.ScreenWidthMinMedium = exports.ScreenWidthMinSmall = exports.EdgeChromiumHighContrastSelector = exports.HighContrastSelectorBlack = exports.HighContrastSelectorWhite = exports.HighContrastSelector = void 0; exports.HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)'; exports.HighContrastSelectorWhite = // eslint-disable-next-line @fluentui/max-len '@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)'; exports.HighContrastSelectorBlack = // eslint-disable-next-line @fluentui/max-len '@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)'; /** * @deprecated Use `HighContrastSelector` */ exports.EdgeChromiumHighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)'; exports.ScreenWidthMinSmall = 320; exports.ScreenWidthMinMedium = 480; exports.ScreenWidthMinLarge = 640; exports.ScreenWidthMinXLarge = 1024; exports.ScreenWidthMinXXLarge = 1366; exports.ScreenWidthMinXXXLarge = 1920; exports.ScreenWidthMaxSmall = exports.ScreenWidthMinMedium - 1; exports.ScreenWidthMaxMedium = exports.ScreenWidthMinLarge - 1; exports.ScreenWidthMaxLarge = exports.ScreenWidthMinXLarge - 1; exports.ScreenWidthMaxXLarge = exports.ScreenWidthMinXXLarge - 1; exports.ScreenWidthMaxXXLarge = exports.ScreenWidthMinXXXLarge - 1; exports.ScreenWidthMinUhfMobile = 768; function getScreenSelector(min, max) { var minSelector = typeof min === 'number' ? " and (min-width: ".concat(min, "px)") : ''; var maxSelector = typeof max === 'number' ? " and (max-width: ".concat(max, "px)") : ''; return "@media only screen".concat(minSelector).concat(maxSelector); } exports.getScreenSelector = getScreenSelector; /** * The style which turns off high contrast adjustment in browsers. */ function getHighContrastNoAdjustStyle() { return { forcedColorAdjust: 'none', MsHighContrastAdjust: 'none', }; } exports.getHighContrastNoAdjustStyle = getHighContrastNoAdjustStyle; /** * The style which turns off high contrast adjustment in (only) Edge Chromium browser. * @deprecated Use `getHighContrastNoAdjustStyle` */ // eslint-disable-next-line deprecation/deprecation function getEdgeChromiumNoHighContrastAdjustSelector() { var _a; return _a = {}, // eslint-disable-next-line deprecation/deprecation _a[exports.EdgeChromiumHighContrastSelector] = { forcedColorAdjust: 'none', MsHighContrastAdjust: 'none', }, _a; } exports.getEdgeChromiumNoHighContrastAdjustSelector = getEdgeChromiumNoHighContrastAdjustSelector; //# sourceMappingURL=CommonStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultEffects = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return theme_1.DefaultEffects; } })); //# sourceMappingURL=DefaultEffects.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return theme_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return theme_1.registerDefaultFontFaces; } })); //# sourceMappingURL=DefaultFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return theme_1.DefaultPalette; } })); //# sourceMappingURL=DefaultPalette.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.noWrap = exports.normalize = void 0; // This file mimics styles and mixins from _General.Mixins.scss exports.normalize = { boxShadow: 'none', margin: 0, padding: 0, boxSizing: 'border-box', }; exports.noWrap = { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', }; //# sourceMappingURL=GeneralStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PulsingBeaconAnimationStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var DEFAULT_DURATION = '14s'; var DEFAULT_DELAY = '2s'; var DEFAULT_ITERATION_COUNT = '1'; function _continuousPulseStepOne(beaconColorOne, innerDimension) { return { borderColor: beaconColorOne, borderWidth: '0px', width: innerDimension, height: innerDimension, }; } function _continuousPulseStepTwo(borderWidth) { return { opacity: 1, borderWidth: borderWidth, }; } function _continuousPulseStepThree() { return { opacity: 1, }; } function _continuousPulseStepFour(beaconColorTwo, outerDimension) { return { borderWidth: '0', width: outerDimension, height: outerDimension, opacity: 0, borderColor: beaconColorTwo, }; } function _continuousPulseStepFive(beaconColorOne, innerDimension) { return tslib_1.__assign(tslib_1.__assign({}, _continuousPulseStepOne(beaconColorOne, innerDimension)), { opacity: 0, }); } function _continuousPulseAnimationDouble(beaconColorOne, beaconColorTwo, innerDimension, outerDimension, borderWidth) { return (0, merge_styles_1.keyframes)({ '0%': _continuousPulseStepOne(beaconColorOne, innerDimension), '1.42%': _continuousPulseStepTwo(borderWidth), '3.57%': _continuousPulseStepThree(), '7.14%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '8%': _continuousPulseStepFive(beaconColorOne, innerDimension), '29.99%': _continuousPulseStepFive(beaconColorOne, innerDimension), '30%': _continuousPulseStepOne(beaconColorOne, innerDimension), '31.42%': _continuousPulseStepTwo(borderWidth), '33.57%': _continuousPulseStepThree(), '37.14%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '38%': _continuousPulseStepFive(beaconColorOne, innerDimension), '79.42%': _continuousPulseStepFive(beaconColorOne, innerDimension), '79.43': _continuousPulseStepOne(beaconColorOne, innerDimension), '81.85': _continuousPulseStepTwo(borderWidth), '83.42': _continuousPulseStepThree(), '87%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '100%': {}, }); } function _continuousPulseAnimationSingle(beaconColorOne, beaconColorTwo, innerDimension, outerDimension, borderWidth) { return (0, merge_styles_1.keyframes)({ '0%': _continuousPulseStepOne(beaconColorOne, innerDimension), '14.2%': _continuousPulseStepTwo(borderWidth), '35.7%': _continuousPulseStepThree(), '71.4%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '100%': {}, }); } function _createDefaultAnimation(animationName, delayLength) { return { animationName: animationName, animationIterationCount: DEFAULT_ITERATION_COUNT, animationDuration: DEFAULT_DURATION, animationDelay: delayLength || DEFAULT_DELAY, }; } exports.PulsingBeaconAnimationStyles = { continuousPulseAnimationDouble: _continuousPulseAnimationDouble, continuousPulseAnimationSingle: _continuousPulseAnimationSingle, createDefaultAnimation: _createDefaultAnimation, }; //# sourceMappingURL=PulsingBeaconAnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFontStyles = exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.LocalizedFontFamilies = exports.LocalizedFontNames = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "LocalizedFontNames", ({ enumerable: true, get: function () { return theme_1.LocalizedFontNames; } })); Object.defineProperty(exports, "LocalizedFontFamilies", ({ enumerable: true, get: function () { return theme_1.LocalizedFontFamilies; } })); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return theme_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return theme_1.FontWeights; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return theme_1.IconFontSizes; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return theme_1.createFontStyles; } })); //# sourceMappingURL=fonts.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFadedOverflowStyle = void 0; var DEFAULT_HEIGHT = '50%'; var DEFAULT_WIDTH = 20; /** * - Generates a style used to fade out an overflowing content by defining a style for an :after pseudo element. * - Apply it to the :after selector for all combination of states the parent of content might have (normal, hover, * selected, focus). * - Requires the target to have position set to relative and overflow set to hidden. * * @example * ```tsx * // Assuming the following DOM structure and the different background colors coming from * // the parent holding the content. * * Overflown Content * * ``` * ```ts * // This is how the style set would look in Component.styles.ts * const { bodyBackground } = theme.semanticColors; * const { neutralLighter } = theme.palette; * * // The second argument of getFadedOverflowStyle function is a string representing a key of * // ISemanticColors or IPalette. * * const styles = { * parent: [ * backgroundColor: bodyBackground, * selectors: { * '&:hover: { * backgroundColor: neutralLighter * }, * '$content:after': { * ...getFadedOverflowStyle(theme, 'bodyBackground') * }, * '&:hover $content:after': { * ...getFadedOverflowStyle(theme, 'neutralLighter') * } * } * ], * content: [ * width: '100%', * display: 'inline-block', * position: 'relative', * overflow: 'hidden' * ] * } * ``` * @param theme - The theme object to use. * @param color - The background color to fade out to. Accepts only keys of ISemanticColors or IPalette. * Defaults to 'bodyBackground'. * @param direction - The direction of the overflow. Defaults to horizontal. * @param width - The width of the fading overflow. Vertical direction defaults it to 100% vs 20px when horizontal. * @param height - The Height of the fading overflow. Vertical direction defaults it to 50% vs 100% when horizontal. * @returns The style object. */ function getFadedOverflowStyle(theme, color, direction, width, height) { if (color === void 0) { color = 'bodyBackground'; } if (direction === void 0) { direction = 'horizontal'; } if (width === void 0) { width = getDefaultValue('width', direction); } if (height === void 0) { height = getDefaultValue('height', direction); } // Get the color value string from the theme semanticColors or palette. var colorValue = theme.semanticColors[color] || theme.palette[color]; // Get the red, green, blue values of the colorValue. var rgbColor = color2rgb(colorValue); // Apply opacity 0 to serve as a start color of the gradient. var rgba = "rgba(".concat(rgbColor.r, ", ").concat(rgbColor.g, ", ").concat(rgbColor.b, ", 0)"); // Get the direction of the gradient. (mergeStyles takes care of RTL direction) var gradientDirection = direction === 'vertical' ? 'to bottom' : 'to right'; return { content: '""', position: 'absolute', right: 0, bottom: 0, width: width, height: height, pointerEvents: 'none', backgroundImage: "linear-gradient(".concat(gradientDirection, ", ").concat(rgba, " 0%, ").concat(colorValue, " 100%)"), }; } exports.getFadedOverflowStyle = getFadedOverflowStyle; // TODO consider moving this to a separate module along with some more color functions from OUFR/utilities. /** * Helper function to convert a string hex color to an RGB object. * * @param colorValue - Color to be converted from hex to rgba. */ function color2rgb(colorValue) { if (colorValue[0] === '#') { // If it's a hex code return { r: parseInt(colorValue.slice(1, 3), 16), g: parseInt(colorValue.slice(3, 5), 16), b: parseInt(colorValue.slice(5, 7), 16), }; } else if (colorValue.indexOf('rgba(') === 0) { // If it's an rgba color string colorValue = colorValue.match(/rgba\(([^)]+)\)/)[1]; var parts = colorValue.split(/ *, */).map(Number); return { r: parts[0], g: parts[1], b: parts[2], }; } // The only remaining possibility is transparent. return { r: 255, g: 255, b: 255, }; } /** * Helper function to get the default values for parameters of main function. * * @param style - Which style to get the default value for. * @param direction - What direction to take into consideration. */ function getDefaultValue(style, direction) { if (style === 'width') { return direction === 'horizontal' ? DEFAULT_WIDTH : '100%'; } else { return direction === 'vertical' ? DEFAULT_HEIGHT : '100%'; } } //# sourceMappingURL=getFadedOverflowStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getInputFocusStyle = exports.getFocusOutlineStyle = exports.focusClear = exports.getFocusStyle = void 0; var CommonStyles_1 = __webpack_require__(/*! ./CommonStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var zIndexes_1 = __webpack_require__(/*! ./zIndexes */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js"); function getFocusStyle(theme, insetOrOptions, position, highContrastStyle, borderColor, outlineColor, isFocusedOnly, borderRadius) { if (typeof insetOrOptions === 'number' || !insetOrOptions) { return _getFocusStyleInternal(theme, { inset: insetOrOptions, position: position, highContrastStyle: highContrastStyle, borderColor: borderColor, outlineColor: outlineColor, isFocusedOnly: isFocusedOnly, borderRadius: borderRadius, }); } else { return _getFocusStyleInternal(theme, insetOrOptions); } } exports.getFocusStyle = getFocusStyle; function _getFocusStyleInternal(theme, options) { var _a, _b; if (options === void 0) { options = {}; } var borderRadius = options.borderRadius, _c = options.inset, inset = _c === void 0 ? 0 : _c, _d = options.width, width = _d === void 0 ? 1 : _d, _e = options.position, position = _e === void 0 ? 'relative' : _e, highContrastStyle = options.highContrastStyle, _f = options.borderColor, borderColor = _f === void 0 ? theme.palette.white : _f, _g = options.outlineColor, outlineColor = _g === void 0 ? theme.palette.neutralSecondary : _g, _h = options.isFocusedOnly, isFocusedOnly = _h === void 0 ? true : _h, pointerEvents = options.pointerEvents; return { // Clear browser-specific focus styles and use 'transparent' as placeholder for focus style. outline: 'transparent', // Requirement because pseudo-element is absolutely positioned. position: position, selectors: (_a = { // Clear the focus border in Firefox. // Reference: http://stackoverflow.com/a/199319/1436671 '::-moz-focus-inner': { border: '0', } }, // When the element that uses this mixin is in a :focus state, add a pseudo-element to // create a border. _a[".".concat(utilities_1.IsFocusVisibleClassName, " &").concat(isFocusedOnly ? ':focus' : '', ":after")] = { content: '""', position: 'absolute', pointerEvents: pointerEvents, left: inset + 1, top: inset + 1, bottom: inset + 1, right: inset + 1, border: "".concat(width, "px solid ").concat(borderColor), outline: "".concat(width, "px solid ").concat(outlineColor), zIndex: zIndexes_1.ZIndexes.FocusStyle, borderRadius: borderRadius, selectors: (_b = {}, _b[CommonStyles_1.HighContrastSelector] = highContrastStyle, _b), }, _a), }; } /** * Generates style to clear browser specific focus styles. */ function focusClear() { return { selectors: { '&::-moz-focus-inner': { // Clear the focus border in Firefox. Reference: http://stackoverflow.com/a/199319/1436671 border: 0, }, '&': { // Clear browser specific focus styles and use transparent as placeholder for focus style outline: 'transparent', }, }, }; } exports.focusClear = focusClear; /** * Generates a style which can be used to set a border on focus. * * @param theme - The theme object to use. * @param inset - The number of pixels to inset the border (default 0) * @param width - The border width in pixels (default 1) * @param color - Color of the outline (default `theme.palette.neutralSecondary`) * @returns The style object. */ function getFocusOutlineStyle(theme, inset, width, color) { var _a; if (inset === void 0) { inset = 0; } if (width === void 0) { width = 1; } return { selectors: (_a = {}, _a[":global(".concat(utilities_1.IsFocusVisibleClassName, ") &:focus")] = { outline: "".concat(width, " solid ").concat(color || theme.palette.neutralSecondary), outlineOffset: "".concat(-inset, "px"), }, _a), }; } exports.getFocusOutlineStyle = getFocusOutlineStyle; /** * Generates text input border styles on focus. * * @param borderColor - Color of the border. * @param borderRadius - Radius of the border. * @param borderType - Type of the border. * @param borderPosition - Position of the border relative to the input element (default to -1 * as it's the most common border width of the input element) * @returns The style object. */ var getInputFocusStyle = function (borderColor, borderRadius, borderType, borderPosition) { var _a, _b, _c; if (borderType === void 0) { borderType = 'border'; } if (borderPosition === void 0) { borderPosition = -1; } var isBorderBottom = borderType === 'borderBottom'; return { borderColor: borderColor, selectors: { ':after': (_a = { pointerEvents: 'none', content: "''", position: 'absolute', left: isBorderBottom ? 0 : borderPosition, top: borderPosition, bottom: borderPosition, right: isBorderBottom ? 0 : borderPosition }, _a[borderType] = "2px solid ".concat(borderColor), _a.borderRadius = borderRadius, _a.width = borderType === 'borderBottom' ? '100%' : undefined, _a.selectors = (_b = {}, _b[CommonStyles_1.HighContrastSelector] = (_c = {}, _c[borderType === 'border' ? 'borderColor' : 'borderBottomColor'] = 'Highlight', _c), _b), _a), }, }; }; exports.getInputFocusStyle = getInputFocusStyle; //# sourceMappingURL=getFocusStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getGlobalClassNames = void 0; 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"); /** * Internal memoized function which simply takes in the class map and the * disable boolean. These immutable values can be memoized. */ var _getGlobalClassNames = (0, utilities_1.memoizeFunction)(function (classNames, disableGlobalClassNames) { var styleSheet = merge_styles_1.Stylesheet.getInstance(); if (disableGlobalClassNames) { // disable global classnames return Object.keys(classNames).reduce(function (acc, className) { acc[className] = styleSheet.getClassName(classNames[className]); return acc; }, {}); } // use global classnames return classNames; }); /** * Checks for the `disableGlobalClassNames` property on the `theme` to determine if it should return `classNames` * Note that calls to this function are memoized. * * @param classNames - The collection of global class names that apply when the flag is false. Make sure to pass in * the same instance on each call to benefit from memoization. * @param theme - The theme to check the flag on * @param disableGlobalClassNames - Optional. Explicitly opt in/out of disabling global classnames. Defaults to false. */ function getGlobalClassNames(classNames, theme, disableGlobalClassNames) { return _getGlobalClassNames(classNames, disableGlobalClassNames !== undefined ? disableGlobalClassNames : theme.disableGlobalClassNames); } exports.getGlobalClassNames = getGlobalClassNames; //# sourceMappingURL=getGlobalClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPlaceholderStyles = void 0; /** * Generates placeholder style for each of the browsers supported by `@fluentui/react`. * @param styles - The style to use. * @returns The placeholder style object for each browser depending on the placeholder directive it uses. */ function getPlaceholderStyles(styles) { return { selectors: { '::placeholder': styles, ':-ms-input-placeholder': styles, '::-ms-input-placeholder': styles, // Edge }, }; } exports.getPlaceholderStyles = getPlaceholderStyles; //# sourceMappingURL=getPlaceholderStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hiddenContentStyle = void 0; exports.hiddenContentStyle = { position: 'absolute', width: 1, height: 1, margin: -1, padding: 0, border: 0, overflow: 'hidden', whiteSpace: 'nowrap', }; //# sourceMappingURL=hiddenContentStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.createTheme = exports.loadTheme = exports.getTheme = exports.ThemeSettingName = exports.getGlobalClassNames = exports.PulsingBeaconAnimationStyles = exports.hiddenContentStyle = exports.createFontStyles = exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.registerDefaultFontFaces = exports.DefaultFontStyles = exports.DefaultEffects = exports.DefaultPalette = exports.AnimationVariables = exports.AnimationStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var AnimationStyles_1 = __webpack_require__(/*! ./AnimationStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js"); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return AnimationStyles_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return AnimationStyles_1.AnimationVariables; } })); var DefaultPalette_1 = __webpack_require__(/*! ./DefaultPalette */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return DefaultPalette_1.DefaultPalette; } })); var DefaultEffects_1 = __webpack_require__(/*! ./DefaultEffects */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return DefaultEffects_1.DefaultEffects; } })); var DefaultFontStyles_1 = __webpack_require__(/*! ./DefaultFontStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return DefaultFontStyles_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return DefaultFontStyles_1.registerDefaultFontFaces; } })); var fonts_1 = __webpack_require__(/*! ./fonts */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js"); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return fonts_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return fonts_1.FontWeights; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return fonts_1.IconFontSizes; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return fonts_1.createFontStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./getFocusStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js"), exports); var hiddenContentStyle_1 = __webpack_require__(/*! ./hiddenContentStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js"); Object.defineProperty(exports, "hiddenContentStyle", ({ enumerable: true, get: function () { return hiddenContentStyle_1.hiddenContentStyle; } })); var PulsingBeaconAnimationStyles_1 = __webpack_require__(/*! ./PulsingBeaconAnimationStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js"); Object.defineProperty(exports, "PulsingBeaconAnimationStyles", ({ enumerable: true, get: function () { return PulsingBeaconAnimationStyles_1.PulsingBeaconAnimationStyles; } })); var getGlobalClassNames_1 = __webpack_require__(/*! ./getGlobalClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js"); Object.defineProperty(exports, "getGlobalClassNames", ({ enumerable: true, get: function () { return getGlobalClassNames_1.getGlobalClassNames; } })); tslib_1.__exportStar(__webpack_require__(/*! ./scheme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js"), exports); var theme_1 = __webpack_require__(/*! ./theme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js"); Object.defineProperty(exports, "ThemeSettingName", ({ enumerable: true, get: function () { return theme_1.ThemeSettingName; } })); Object.defineProperty(exports, "getTheme", ({ enumerable: true, get: function () { return theme_1.getTheme; } })); Object.defineProperty(exports, "loadTheme", ({ enumerable: true, get: function () { return theme_1.loadTheme; } })); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_1.createTheme; } })); Object.defineProperty(exports, "registerOnThemeChangeCallback", ({ enumerable: true, get: function () { return theme_1.registerOnThemeChangeCallback; } })); Object.defineProperty(exports, "removeOnThemeChangeCallback", ({ enumerable: true, get: function () { return theme_1.removeOnThemeChangeCallback; } })); tslib_1.__exportStar(__webpack_require__(/*! ./CommonStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GeneralStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFadedOverflowStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getPlaceholderStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./zIndexes */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getThemedContext = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * @internal * This function is still in experimental phase in support of Foundation experimental development. * Its API signature and existence are subject to change. * * Modify context to activate the specified scheme or theme. For schemes, look in context (if available) and fall back * to global Customizations. If both scheme and theme are specified, scheme will be looked up in theme. In this case, * scheme must be present in theme arg, otherwise new context will default to theme arg (there is no fallback to * settings to look up scheme.) * * @param context - Context in which to get schemed customizations. * @param scheme - Scheme to get customizations for from theme arg (if supplied) OR from context and global settings. * @param theme - Theme to merge into context. * @returns modified schemed context if scheme is valid and not already applied, unmodified context otherwise. */ function getThemedContext(context, scheme, theme) { var newContext = context; var newSettings; // Only fall back to context and customizations when theme arg is not provided. var schemeSource = theme || utilities_1.Customizations.getSettings(['theme'], undefined, context.customizations).theme; if (theme) { newSettings = { theme: theme }; } var schemeTheme = scheme && schemeSource && schemeSource.schemes && schemeSource.schemes[scheme]; // These first two checks are logically redundant but TS doesn't infer schemeSource.schemes is defined // when schemeTheme is defined. if (schemeSource && schemeTheme && schemeSource !== schemeTheme) { newSettings = { theme: schemeTheme }; newSettings.theme.schemes = schemeSource.schemes; } if (newSettings) { newContext = { customizations: { settings: (0, utilities_1.mergeSettings)(context.customizations.settings, newSettings), scopedSettings: context.customizations.scopedSettings, }, }; } return newContext; } exports.getThemedContext = getThemedContext; //# sourceMappingURL=scheme.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.loadTheme = exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.getTheme = exports.initializeThemeInCustomizations = exports.ThemeSettingName = exports.createTheme = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var theme_2 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_2.createTheme; } })); var _theme = (0, theme_1.createTheme)({}); var _onThemeChangeCallbacks = []; exports.ThemeSettingName = 'theme'; function initializeThemeInCustomizations() { var _a; var _b, _c; // eslint-disable-next-line @typescript-eslint/no-explicit-any var win = (0, utilities_1.getWindow)(); if ((_b = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _b === void 0 ? void 0 : _b.legacyTheme) { // does everything the `else` clause does and more, such as invoke legacy theming loadTheme(win.FabricConfig.legacyTheme); } else if (!utilities_1.Customizations.getSettings([exports.ThemeSettingName]).theme) { if ((_c = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _c === void 0 ? void 0 : _c.theme) { _theme = (0, theme_1.createTheme)(win.FabricConfig.theme); } // Set the default theme. utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a)); } } exports.initializeThemeInCustomizations = initializeThemeInCustomizations; initializeThemeInCustomizations(); /** * Gets the theme object * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function getTheme(depComments) { if (depComments === void 0) { depComments = false; } if (depComments === true) { _theme = (0, theme_1.createTheme)({}, depComments); } return _theme; } exports.getTheme = getTheme; /** * Registers a callback that gets called whenever the theme changes. * This should only be used when the component cannot automatically get theme changes through its state. * This will not register duplicate callbacks. */ function registerOnThemeChangeCallback(callback) { if (_onThemeChangeCallbacks.indexOf(callback) === -1) { _onThemeChangeCallbacks.push(callback); } } exports.registerOnThemeChangeCallback = registerOnThemeChangeCallback; /** * See registerOnThemeChangeCallback(). * Removes previously registered callbacks. */ function removeOnThemeChangeCallback(callback) { var i = _onThemeChangeCallbacks.indexOf(callback); if (i === -1) { return; } _onThemeChangeCallbacks.splice(i, 1); } exports.removeOnThemeChangeCallback = removeOnThemeChangeCallback; /** * Applies the theme, while filling in missing slots. * @param theme - Partial theme object. * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function loadTheme(theme, depComments) { var _a; if (depComments === void 0) { depComments = false; } _theme = (0, theme_1.createTheme)(theme, depComments); // Invoke the legacy method of theming the page as well. (0, load_themed_styles_1.loadTheme)(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, _theme.palette), _theme.semanticColors), _theme.effects), _loadFonts(_theme))); utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a)); _onThemeChangeCallbacks.forEach(function (callback) { try { callback(_theme); } catch (e) { // don't let a bad callback break everything else } }); return _theme; } exports.loadTheme = loadTheme; /** * Loads font variables into a JSON object. * @param theme - The theme object */ function _loadFonts(theme) { var lines = {}; for (var _i = 0, _a = Object.keys(theme.fonts); _i < _a.length; _i++) { var fontName = _a[_i]; var font = theme.fonts[fontName]; for (var _b = 0, _c = Object.keys(font); _b < _c.length; _b++) { var propName = _c[_b]; var name_1 = fontName + propName.charAt(0).toUpperCase() + propName.slice(1); var value = font[propName]; if (propName === 'fontSize' && typeof value === 'number') { // if it's a number, convert it to px by default like our theming system does value = value + 'px'; } lines[name_1] = value; } } return lines; } //# sourceMappingURL=theme.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ZIndexes = void 0; var ZIndexes; (function (ZIndexes) { ZIndexes.Nav = 1; /** * @deprecated Do not use */ ZIndexes.ScrollablePane = 1; ZIndexes.FocusStyle = 1; ZIndexes.Coachmark = 1000; ZIndexes.Layer = 1000000; ZIndexes.KeytipLayer = 1000001; })(ZIndexes = exports.ZIndexes || (exports.ZIndexes = {})); //# sourceMappingURL=zIndexes.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.buildClassMap = void 0; var MergeStyles_1 = __webpack_require__(/*! ../MergeStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js"); /** * Builds a class names object from a given map. * * @param styles - Map of unprocessed styles. * @returns Map of property name to class name. */ function buildClassMap(styles) { var classes = {}; var _loop_1 = function (styleName) { if (styles.hasOwnProperty(styleName)) { var className_1; Object.defineProperty(classes, styleName, { get: function () { if (className_1 === undefined) { // eslint-disable-next-line @typescript-eslint/no-explicit-any className_1 = (0, MergeStyles_1.mergeStyles)(styles[styleName]).toString(); } return className_1; }, enumerable: true, configurable: true, }); } }; for (var styleName in styles) { _loop_1(styleName); } return classes; } exports.buildClassMap = buildClassMap; //# sourceMappingURL=buildClassMap.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIconClassName = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var icons_1 = __webpack_require__(/*! ./icons */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js"); var defaultIconStyles = { display: 'inline-block', }; /** * Gets an icon classname. You should be able to add this classname to an I tag with no * additional classnames, and render the icon. * * @public */ function getIconClassName(name) { var className = ''; var icon = (0, icons_1.getIcon)(name); if (icon) { className = (0, merge_styles_1.mergeStyles)(icon.subset.className, defaultIconStyles, { selectors: { '::before': { content: "\"".concat(icon.code, "\""), }, }, }); } return className; } exports.getIconClassName = getIconClassName; //# sourceMappingURL=getIconClassName.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setIconOptions = exports.getIcon = exports.registerIconAlias = exports.unregisterIcons = exports.registerIcons = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); 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 ICON_SETTING_NAME = 'icons'; var _iconSettings = utilities_1.GlobalSettings.getValue(ICON_SETTING_NAME, { __options: { disableWarnings: false, warnOnMissingIcons: true, }, __remapped: {}, }); // Reset icon registration on stylesheet resets. var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(function () { for (var name_1 in _iconSettings) { if (_iconSettings.hasOwnProperty(name_1) && !!_iconSettings[name_1].subset) { _iconSettings[name_1].subset.className = undefined; } } }); } /** * Normalizes an icon name for consistent mapping. * Current implementation is to convert the icon name to lower case. * * @param name - Icon name to normalize. * @returns {string} Normalized icon name to use for indexing and mapping. */ var normalizeIconName = function (name) { return name.toLowerCase(); }; /** * Registers a given subset of icons. * * @param iconSubset - the icon subset definition. */ function registerIcons(iconSubset, options) { var subset = tslib_1.__assign(tslib_1.__assign({}, iconSubset), { isRegistered: false, className: undefined }); var icons = iconSubset.icons; // Grab options, optionally mix user provided ones on top. options = options ? tslib_1.__assign(tslib_1.__assign({}, _iconSettings.__options), options) : _iconSettings.__options; for (var iconName in icons) { if (icons.hasOwnProperty(iconName)) { var code = icons[iconName]; var normalizedIconName = normalizeIconName(iconName); if (_iconSettings[normalizedIconName]) { _warnDuplicateIcon(iconName); } else { _iconSettings[normalizedIconName] = { code: code, subset: subset, }; } } } } exports.registerIcons = registerIcons; /** * Unregisters icons by name. * * @param iconNames - List of icons to unregister. */ function unregisterIcons(iconNames) { var options = _iconSettings.__options; var _loop_1 = function (iconName) { var normalizedIconName = normalizeIconName(iconName); if (_iconSettings[normalizedIconName]) { delete _iconSettings[normalizedIconName]; } else { // Warn that we are trying to delete an icon that doesn't exist if (!options.disableWarnings) { (0, utilities_1.warn)("The icon \"".concat(iconName, "\" tried to unregister but was not registered.")); } } // Delete any aliases for this iconName if (_iconSettings.__remapped[normalizedIconName]) { delete _iconSettings.__remapped[normalizedIconName]; } // Delete any items that were an alias for this iconName Object.keys(_iconSettings.__remapped).forEach(function (key) { if (_iconSettings.__remapped[key] === normalizedIconName) { delete _iconSettings.__remapped[key]; } }); }; for (var _i = 0, iconNames_1 = iconNames; _i < iconNames_1.length; _i++) { var iconName = iconNames_1[_i]; _loop_1(iconName); } } exports.unregisterIcons = unregisterIcons; /** * Remaps one icon name to another. */ function registerIconAlias(iconName, mappedToName) { _iconSettings.__remapped[normalizeIconName(iconName)] = normalizeIconName(mappedToName); } exports.registerIconAlias = registerIconAlias; /** * Gets an icon definition. If an icon is requested but the subset has yet to be registered, * it will get registered immediately. * * @public * @param name - Name of icon. */ function getIcon(name) { var icon = undefined; var options = _iconSettings.__options; name = name ? normalizeIconName(name) : ''; name = _iconSettings.__remapped[name] || name; if (name) { icon = _iconSettings[name]; if (icon) { var subset = icon.subset; if (subset && subset.fontFace) { if (!subset.isRegistered) { (0, merge_styles_1.fontFace)(subset.fontFace); subset.isRegistered = true; } if (!subset.className) { subset.className = (0, merge_styles_1.mergeStyles)(subset.style, { fontFamily: subset.fontFace.fontFamily, fontWeight: subset.fontFace.fontWeight || 'normal', fontStyle: subset.fontFace.fontStyle || 'normal', }); } } } else { // eslint-disable-next-line deprecation/deprecation if (!options.disableWarnings && options.warnOnMissingIcons) { (0, utilities_1.warn)("The icon \"".concat(name, "\" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.")); } } } return icon; } exports.getIcon = getIcon; /** * Sets the icon options. * * @public */ function setIconOptions(options) { _iconSettings.__options = tslib_1.__assign(tslib_1.__assign({}, _iconSettings.__options), options); } exports.setIconOptions = setIconOptions; var _missingIcons = []; var _missingIconsTimer = undefined; function _warnDuplicateIcon(iconName) { var options = _iconSettings.__options; var warningDelay = 2000; var maxIconsInMessage = 10; if (!options.disableWarnings) { _missingIcons.push(iconName); if (_missingIconsTimer === undefined) { _missingIconsTimer = setTimeout(function () { (0, utilities_1.warn)("Some icons were re-registered. Applications should only call registerIcons for any given " + "icon once. Redefining what an icon is may have unintended consequences. Duplicates " + "include: \n" + _missingIcons.slice(0, maxIconsInMessage).join(', ') + (_missingIcons.length > maxIconsInMessage ? " (+ ".concat(_missingIcons.length - maxIconsInMessage, " more)") : '')); _missingIconsTimer = undefined; _missingIcons = []; }, warningDelay); } } } //# sourceMappingURL=icons.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIconClassName = exports.setIconOptions = exports.unregisterIcons = exports.registerIconAlias = exports.registerIcons = exports.getIcon = exports.buildClassMap = void 0; var buildClassMap_1 = __webpack_require__(/*! ./buildClassMap */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js"); Object.defineProperty(exports, "buildClassMap", ({ enumerable: true, get: function () { return buildClassMap_1.buildClassMap; } })); var icons_1 = __webpack_require__(/*! ./icons */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js"); Object.defineProperty(exports, "getIcon", ({ enumerable: true, get: function () { return icons_1.getIcon; } })); Object.defineProperty(exports, "registerIcons", ({ enumerable: true, get: function () { return icons_1.registerIcons; } })); Object.defineProperty(exports, "registerIconAlias", ({ enumerable: true, get: function () { return icons_1.registerIconAlias; } })); Object.defineProperty(exports, "unregisterIcons", ({ enumerable: true, get: function () { return icons_1.unregisterIcons; } })); Object.defineProperty(exports, "setIconOptions", ({ enumerable: true, get: function () { return icons_1.setIconOptions; } })); var getIconClassName_1 = __webpack_require__(/*! ./getIconClassName */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js"); Object.defineProperty(exports, "getIconClassName", ({ enumerable: true, get: function () { return getIconClassName_1.getIconClassName; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/version.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/style-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/style-utilities', '8.9.17'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FluentTheme = void 0; var createTheme_1 = __webpack_require__(/*! ./createTheme */ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js"); exports.FluentTheme = (0, createTheme_1.createTheme)({}); //# sourceMappingURL=FluentTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; // When adding or removing a color, make sure you keep this consistent with IColorClassNames // by adding the color variants. exports.DefaultPalette = { themeDarker: '#004578', themeDark: '#005a9e', themeDarkAlt: '#106ebe', themePrimary: '#0078d4', themeSecondary: '#2b88d8', themeTertiary: '#71afe5', themeLight: '#c7e0f4', themeLighter: '#deecf9', themeLighterAlt: '#eff6fc', black: '#000000', blackTranslucent40: 'rgba(0,0,0,.4)', neutralDark: '#201f1e', neutralPrimary: '#323130', neutralPrimaryAlt: '#3b3a39', neutralSecondary: '#605e5c', neutralSecondaryAlt: '#8a8886', neutralTertiary: '#a19f9d', neutralTertiaryAlt: '#c8c6c4', neutralQuaternary: '#d2d0ce', neutralQuaternaryAlt: '#e1dfdd', neutralLight: '#edebe9', neutralLighter: '#f3f2f1', neutralLighterAlt: '#faf9f8', accent: '#0078d4', white: '#ffffff', whiteTranslucent40: 'rgba(255,255,255,.4)', yellowDark: '#d29200', yellow: '#ffb900', yellowLight: '#fff100', orange: '#d83b01', orangeLight: '#ea4300', orangeLighter: '#ff8c00', redDark: '#a4262c', red: '#e81123', magentaDark: '#5c005c', magenta: '#b4009e', magentaLight: '#e3008c', purpleDark: '#32145a', purple: '#5c2d91', purpleLight: '#b4a0ff', blueDark: '#002050', blueMid: '#00188f', blue: '#0078d4', blueLight: '#00bcf2', tealDark: '#004b50', teal: '#008272', tealLight: '#00b294', greenDark: '#004b1c', green: '#107c10', greenLight: '#bad80a', }; //# sourceMappingURL=DefaultPalette.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SharedColors = exports.NeutralColors = exports.CommunicationColors = void 0; var CommunicationColors; (function (CommunicationColors) { CommunicationColors.shade30 = '#004578'; CommunicationColors.shade20 = '#005a9e'; CommunicationColors.shade10 = '#106ebe'; CommunicationColors.primary = '#0078d4'; CommunicationColors.tint10 = '#2b88d8'; CommunicationColors.tint20 = '#c7e0f4'; CommunicationColors.tint30 = '#deecf9'; CommunicationColors.tint40 = '#eff6fc'; })(CommunicationColors = exports.CommunicationColors || (exports.CommunicationColors = {})); var NeutralColors; (function (NeutralColors) { NeutralColors.black = '#000000'; NeutralColors.gray220 = '#11100f'; NeutralColors.gray210 = '#161514'; NeutralColors.gray200 = '#1b1a19'; NeutralColors.gray190 = '#201f1e'; NeutralColors.gray180 = '#252423'; NeutralColors.gray170 = '#292827'; NeutralColors.gray160 = '#323130'; NeutralColors.gray150 = '#3b3a39'; NeutralColors.gray140 = '#484644'; NeutralColors.gray130 = '#605e5c'; NeutralColors.gray120 = '#797775'; NeutralColors.gray110 = '#8a8886'; NeutralColors.gray100 = '#979593'; NeutralColors.gray90 = '#a19f9d'; NeutralColors.gray80 = '#b3b0ad'; NeutralColors.gray70 = '#bebbb8'; NeutralColors.gray60 = '#c8c6c4'; NeutralColors.gray50 = '#d2d0ce'; NeutralColors.gray40 = '#e1dfdd'; NeutralColors.gray30 = '#edebe9'; NeutralColors.gray20 = '#f3f2f1'; NeutralColors.gray10 = '#faf9f8'; NeutralColors.white = '#ffffff'; })(NeutralColors = exports.NeutralColors || (exports.NeutralColors = {})); var SharedColors; (function (SharedColors) { SharedColors.pinkRed10 = '#750b1c'; SharedColors.red20 = '#a4262c'; SharedColors.red10 = '#d13438'; SharedColors.redOrange20 = '#603d30'; SharedColors.redOrange10 = '#da3b01'; SharedColors.orange30 = '#8e562e'; SharedColors.orange20 = '#ca5010'; SharedColors.orange10 = '#ffaa44'; SharedColors.yellow10 = '#fce100'; SharedColors.orangeYellow20 = '#986f0b'; SharedColors.orangeYellow10 = '#c19c00'; SharedColors.yellowGreen10 = '#8cbd18'; SharedColors.green20 = '#0b6a0b'; SharedColors.green10 = '#498205'; SharedColors.greenCyan10 = '#00ad56'; SharedColors.cyan40 = '#005e50'; SharedColors.cyan30 = '#005b70'; SharedColors.cyan20 = '#038387'; SharedColors.cyan10 = '#00b7c3'; SharedColors.cyanBlue20 = '#004e8c'; SharedColors.cyanBlue10 = '#0078d4'; SharedColors.blue10 = '#4f6bed'; SharedColors.blueMagenta40 = '#373277'; SharedColors.blueMagenta30 = '#5c2e91'; SharedColors.blueMagenta20 = '#8764b8'; SharedColors.blueMagenta10 = '#8378de'; SharedColors.magenta20 = '#881798'; SharedColors.magenta10 = '#c239b3'; SharedColors.magentaPink20 = '#9b0062'; SharedColors.magentaPink10 = '#e3008c'; SharedColors.gray40 = '#393939'; SharedColors.gray30 = '#7a7574'; SharedColors.gray20 = '#69797e'; SharedColors.gray10 = '#a0aeb2'; })(SharedColors = exports.SharedColors || (exports.SharedColors = {})); //# sourceMappingURL=FluentColors.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/index.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FluentColors */ "./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js"), exports); var DefaultPalette_1 = __webpack_require__(/*! ./DefaultPalette */ "./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return DefaultPalette_1.DefaultPalette; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/createTheme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createTheme = void 0; var index_1 = __webpack_require__(/*! ./colors/index */ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js"); var index_2 = __webpack_require__(/*! ./effects/index */ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js"); var index_3 = __webpack_require__(/*! ./fonts/index */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js"); var mergeThemes_1 = __webpack_require__(/*! ./mergeThemes */ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js"); var index_4 = __webpack_require__(/*! ./spacing/index */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js"); var makeSemanticColors_1 = __webpack_require__(/*! ./utilities/makeSemanticColors */ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js"); /** * Creates a custom theme definition. * @param theme - Partial theme object. * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function createTheme(theme, depComments) { if (theme === void 0) { theme = {}; } if (depComments === void 0) { depComments = false; } var isInverted = !!theme.isInverted; var baseTheme = { palette: index_1.DefaultPalette, effects: index_2.DefaultEffects, fonts: index_3.DefaultFontStyles, spacing: index_4.DefaultSpacing, isInverted: isInverted, disableGlobalClassNames: false, semanticColors: (0, makeSemanticColors_1.makeSemanticColors)(index_1.DefaultPalette, index_2.DefaultEffects, undefined, isInverted, depComments), rtl: undefined, }; return (0, mergeThemes_1.mergeThemes)(baseTheme, theme); } exports.createTheme = createTheme; //# sourceMappingURL=createTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultEffects = void 0; var FluentDepths_1 = __webpack_require__(/*! ./FluentDepths */ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js"); exports.DefaultEffects = { elevation4: FluentDepths_1.Depths.depth4, elevation8: FluentDepths_1.Depths.depth8, elevation16: FluentDepths_1.Depths.depth16, elevation64: FluentDepths_1.Depths.depth64, roundedCorner2: '2px', roundedCorner4: '4px', roundedCorner6: '6px', }; //# sourceMappingURL=DefaultEffects.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Depths = void 0; var Depths; (function (Depths) { Depths.depth0 = '0 0 0 0 transparent'; Depths.depth4 = '0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)'; Depths.depth8 = '0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)'; Depths.depth16 = '0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)'; Depths.depth64 = '0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)'; })(Depths = exports.Depths || (exports.Depths = {})); //# sourceMappingURL=FluentDepths.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/index.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Depths = exports.DefaultEffects = void 0; var DefaultEffects_1 = __webpack_require__(/*! ./DefaultEffects */ "./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return DefaultEffects_1.DefaultEffects; } })); var FluentDepths_1 = __webpack_require__(/*! ./FluentDepths */ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js"); Object.defineProperty(exports, "Depths", ({ enumerable: true, get: function () { return FluentDepths_1.Depths; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var FluentFonts_1 = __webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"); var createFontStyles_1 = __webpack_require__(/*! ./createFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); // Default urls. var DefaultBaseUrl = 'https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets'; // Standard font styling. exports.DefaultFontStyles = (0, createFontStyles_1.createFontStyles)((0, utilities_1.getLanguage)()); function _registerFontFace(fontFamily, url, fontWeight, localFontName) { fontFamily = "'".concat(fontFamily, "'"); var localFontSrc = localFontName !== undefined ? "local('".concat(localFontName, "'),") : ''; (0, merge_styles_1.fontFace)({ fontFamily: fontFamily, src: localFontSrc + "url('".concat(url, ".woff2') format('woff2'),") + "url('".concat(url, ".woff') format('woff')"), fontWeight: fontWeight, fontStyle: 'normal', fontDisplay: 'swap', }); } function _registerFontFaceSet(baseUrl, fontFamily, cdnFolder, cdnFontName, localFontName) { if (cdnFontName === void 0) { cdnFontName = 'segoeui'; } var urlBase = "".concat(baseUrl, "/").concat(cdnFolder, "/").concat(cdnFontName); _registerFontFace(fontFamily, urlBase + '-light', FluentFonts_1.FontWeights.light, localFontName && localFontName + ' Light'); _registerFontFace(fontFamily, urlBase + '-semilight', FluentFonts_1.FontWeights.semilight, localFontName && localFontName + ' SemiLight'); _registerFontFace(fontFamily, urlBase + '-regular', FluentFonts_1.FontWeights.regular, localFontName); _registerFontFace(fontFamily, urlBase + '-semibold', FluentFonts_1.FontWeights.semibold, localFontName && localFontName + ' SemiBold'); _registerFontFace(fontFamily, urlBase + '-bold', FluentFonts_1.FontWeights.bold, localFontName && localFontName + ' Bold'); } function registerDefaultFontFaces(baseUrl) { if (baseUrl) { var fontUrl = "".concat(baseUrl, "/fonts"); // Produce @font-face definitions for all supported web fonts. _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Thai, 'leelawadeeui-thai', 'leelawadeeui'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Arabic, 'segoeui-arabic'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Cyrillic, 'segoeui-cyrillic'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.EastEuropean, 'segoeui-easteuropean'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Greek, 'segoeui-greek'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Hebrew, 'segoeui-hebrew'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Vietnamese, 'segoeui-vietnamese'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.WestEuropean, 'segoeui-westeuropean', 'segoeui', 'Segoe UI'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontFamilies.Selawik, 'selawik', 'selawik'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Armenian, 'segoeui-armenian'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Georgian, 'segoeui-georgian'); // Leelawadee UI (Thai) does not have a 'light' weight, so we override // the font-face generated above to use the 'semilight' weight instead. _registerFontFace('Leelawadee UI Web', "".concat(fontUrl, "/leelawadeeui-thai/leelawadeeui-semilight"), FluentFonts_1.FontWeights.light); // Leelawadee UI (Thai) does not have a 'semibold' weight, so we override // the font-face generated above to use the 'bold' weight instead. _registerFontFace('Leelawadee UI Web', "".concat(fontUrl, "/leelawadeeui-thai/leelawadeeui-bold"), FluentFonts_1.FontWeights.semibold); } } exports.registerDefaultFontFaces = registerDefaultFontFaces; /** * Reads the fontBaseUrl from window.FabricConfig.fontBaseUrl or falls back to a default. */ function _getFontBaseUrl() { var _a, _b; // eslint-disable-next-line @typescript-eslint/no-explicit-any var fabricConfig = (_a = (0, utilities_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.FabricConfig; return (_b = fabricConfig === null || fabricConfig === void 0 ? void 0 : fabricConfig.fontBaseUrl) !== null && _b !== void 0 ? _b : DefaultBaseUrl; } /** * Register the font faces. */ registerDefaultFontFaces(_getFontBaseUrl()); //# sourceMappingURL=DefaultFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.LocalizedFontFamilies = exports.LocalizedFontNames = void 0; // Font face names to be registered. var LocalizedFontNames; (function (LocalizedFontNames) { LocalizedFontNames.Arabic = 'Segoe UI Web (Arabic)'; LocalizedFontNames.Cyrillic = 'Segoe UI Web (Cyrillic)'; LocalizedFontNames.EastEuropean = 'Segoe UI Web (East European)'; LocalizedFontNames.Greek = 'Segoe UI Web (Greek)'; LocalizedFontNames.Hebrew = 'Segoe UI Web (Hebrew)'; LocalizedFontNames.Thai = 'Leelawadee UI Web'; LocalizedFontNames.Vietnamese = 'Segoe UI Web (Vietnamese)'; LocalizedFontNames.WestEuropean = 'Segoe UI Web (West European)'; LocalizedFontNames.Selawik = 'Selawik Web'; LocalizedFontNames.Armenian = 'Segoe UI Web (Armenian)'; LocalizedFontNames.Georgian = 'Segoe UI Web (Georgian)'; })(LocalizedFontNames = exports.LocalizedFontNames || (exports.LocalizedFontNames = {})); // Font families with fallbacks, for the general regions. var LocalizedFontFamilies; (function (LocalizedFontFamilies) { LocalizedFontFamilies.Arabic = "'".concat(LocalizedFontNames.Arabic, "'"); LocalizedFontFamilies.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun"; LocalizedFontFamilies.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu"; LocalizedFontFamilies.Cyrillic = "'".concat(LocalizedFontNames.Cyrillic, "'"); LocalizedFontFamilies.EastEuropean = "'".concat(LocalizedFontNames.EastEuropean, "'"); LocalizedFontFamilies.Greek = "'".concat(LocalizedFontNames.Greek, "'"); LocalizedFontFamilies.Hebrew = "'".concat(LocalizedFontNames.Hebrew, "'"); LocalizedFontFamilies.Hindi = "'Nirmala UI'"; LocalizedFontFamilies.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka"; LocalizedFontFamilies.Korean = "'Malgun Gothic', Gulim"; LocalizedFontFamilies.Selawik = "'".concat(LocalizedFontNames.Selawik, "'"); LocalizedFontFamilies.Thai = "'Leelawadee UI Web', 'Kmer UI'"; LocalizedFontFamilies.Vietnamese = "'".concat(LocalizedFontNames.Vietnamese, "'"); LocalizedFontFamilies.WestEuropean = "'".concat(LocalizedFontNames.WestEuropean, "'"); LocalizedFontFamilies.Armenian = "'".concat(LocalizedFontNames.Armenian, "'"); LocalizedFontFamilies.Georgian = "'".concat(LocalizedFontNames.Georgian, "'"); })(LocalizedFontFamilies = exports.LocalizedFontFamilies || (exports.LocalizedFontFamilies = {})); // Standard font sizes. var FontSizes; (function (FontSizes) { FontSizes.size10 = '10px'; FontSizes.size12 = '12px'; FontSizes.size14 = '14px'; FontSizes.size16 = '16px'; FontSizes.size18 = '18px'; FontSizes.size20 = '20px'; FontSizes.size24 = '24px'; FontSizes.size28 = '28px'; FontSizes.size32 = '32px'; FontSizes.size42 = '42px'; FontSizes.size68 = '68px'; FontSizes.mini = '10px'; FontSizes.xSmall = '10px'; FontSizes.small = '12px'; FontSizes.smallPlus = '12px'; FontSizes.medium = '14px'; FontSizes.mediumPlus = '16px'; FontSizes.icon = '16px'; FontSizes.large = '18px'; FontSizes.xLarge = '20px'; FontSizes.xLargePlus = '24px'; FontSizes.xxLarge = '28px'; FontSizes.xxLargePlus = '32px'; FontSizes.superLarge = '42px'; FontSizes.mega = '68px'; })(FontSizes = exports.FontSizes || (exports.FontSizes = {})); // Standard font weights. var FontWeights; (function (FontWeights) { FontWeights.light = 100; FontWeights.semilight = 300; FontWeights.regular = 400; FontWeights.semibold = 600; FontWeights.bold = 700; })(FontWeights = exports.FontWeights || (exports.FontWeights = {})); // Standard Icon Sizes. var IconFontSizes; (function (IconFontSizes) { IconFontSizes.xSmall = '10px'; IconFontSizes.small = '12px'; IconFontSizes.medium = '16px'; IconFontSizes.large = '20px'; })(IconFontSizes = exports.IconFontSizes || (exports.IconFontSizes = {})); //# sourceMappingURL=FluentFonts.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFontStyles = void 0; var FluentFonts_1 = __webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"); // Fallback fonts, if specified system or web fonts are unavailable. var FontFamilyFallbacks = "'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"; // By default, we favor system fonts for the default. // All localized fonts use a web font and never use the system font. var defaultFontFamily = "'Segoe UI', '".concat(FluentFonts_1.LocalizedFontNames.WestEuropean, "'"); // Mapping of language prefix to to font family. var LanguageToFontMap = { ar: FluentFonts_1.LocalizedFontFamilies.Arabic, bg: FluentFonts_1.LocalizedFontFamilies.Cyrillic, cs: FluentFonts_1.LocalizedFontFamilies.EastEuropean, el: FluentFonts_1.LocalizedFontFamilies.Greek, et: FluentFonts_1.LocalizedFontFamilies.EastEuropean, he: FluentFonts_1.LocalizedFontFamilies.Hebrew, hi: FluentFonts_1.LocalizedFontFamilies.Hindi, hr: FluentFonts_1.LocalizedFontFamilies.EastEuropean, hu: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ja: FluentFonts_1.LocalizedFontFamilies.Japanese, kk: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ko: FluentFonts_1.LocalizedFontFamilies.Korean, lt: FluentFonts_1.LocalizedFontFamilies.EastEuropean, lv: FluentFonts_1.LocalizedFontFamilies.EastEuropean, pl: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ru: FluentFonts_1.LocalizedFontFamilies.Cyrillic, sk: FluentFonts_1.LocalizedFontFamilies.EastEuropean, 'sr-latn': FluentFonts_1.LocalizedFontFamilies.EastEuropean, th: FluentFonts_1.LocalizedFontFamilies.Thai, tr: FluentFonts_1.LocalizedFontFamilies.EastEuropean, uk: FluentFonts_1.LocalizedFontFamilies.Cyrillic, vi: FluentFonts_1.LocalizedFontFamilies.Vietnamese, 'zh-hans': FluentFonts_1.LocalizedFontFamilies.ChineseSimplified, 'zh-hant': FluentFonts_1.LocalizedFontFamilies.ChineseTraditional, hy: FluentFonts_1.LocalizedFontFamilies.Armenian, ka: FluentFonts_1.LocalizedFontFamilies.Georgian, }; function _fontFamilyWithFallbacks(fontFamily) { return "".concat(fontFamily, ", ").concat(FontFamilyFallbacks); } /** * If there is a localized font for this language, return that. * Returns undefined if there is no localized font for that language. */ function _getLocalizedFontFamily(language) { for (var lang in LanguageToFontMap) { if (LanguageToFontMap.hasOwnProperty(lang) && language && lang.indexOf(language) === 0) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return LanguageToFontMap[lang]; } } return defaultFontFamily; } function _createFont(size, weight, fontFamily) { return { fontFamily: fontFamily, MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontSize: size, fontWeight: weight, }; } function createFontStyles(localeCode) { var localizedFont = _getLocalizedFontFamily(localeCode); var fontFamilyWithFallback = _fontFamilyWithFallbacks(localizedFont); var fontStyles = { tiny: _createFont(FluentFonts_1.FontSizes.mini, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), xSmall: _createFont(FluentFonts_1.FontSizes.xSmall, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), small: _createFont(FluentFonts_1.FontSizes.small, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), smallPlus: _createFont(FluentFonts_1.FontSizes.smallPlus, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), medium: _createFont(FluentFonts_1.FontSizes.medium, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), mediumPlus: _createFont(FluentFonts_1.FontSizes.mediumPlus, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), large: _createFont(FluentFonts_1.FontSizes.large, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), xLarge: _createFont(FluentFonts_1.FontSizes.xLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xLargePlus: _createFont(FluentFonts_1.FontSizes.xLargePlus, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xxLarge: _createFont(FluentFonts_1.FontSizes.xxLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xxLargePlus: _createFont(FluentFonts_1.FontSizes.xxLargePlus, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), superLarge: _createFont(FluentFonts_1.FontSizes.superLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), mega: _createFont(FluentFonts_1.FontSizes.mega, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), }; return fontStyles; } exports.createFontStyles = createFontStyles; //# sourceMappingURL=createFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = exports.createFontStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"), exports); var createFontStyles_1 = __webpack_require__(/*! ./createFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js"); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return createFontStyles_1.createFontStyles; } })); var DefaultFontStyles_1 = __webpack_require__(/*! ./DefaultFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return DefaultFontStyles_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return DefaultFontStyles_1.registerDefaultFontFaces; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/index.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/index.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FluentTheme = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./mergeThemes */ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./types/index */ "./node_modules/@fluentui/theme/lib-commonjs/types/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./colors/index */ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./effects/index */ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./spacing/index */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./motion/index */ "./node_modules/@fluentui/theme/lib-commonjs/motion/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./fonts/index */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./createTheme */ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js"), exports); var FluentTheme_1 = __webpack_require__(/*! ./FluentTheme */ "./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js"); Object.defineProperty(exports, "FluentTheme", ({ enumerable: true, get: function () { return FluentTheme_1.FluentTheme; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/theme/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeThemes = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var makeSemanticColors_1 = __webpack_require__(/*! ./utilities/makeSemanticColors */ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js"); /** * Merge a partial/full theme into a full theme and returns a merged full theme. */ function mergeThemes(theme, partialTheme) { var _a, _b, _c; if (partialTheme === void 0) { partialTheme = {}; } var mergedTheme = (0, utilities_1.merge)({}, theme, partialTheme, { semanticColors: (0, makeSemanticColors_1.getSemanticColors)(partialTheme.palette, partialTheme.effects, partialTheme.semanticColors, partialTheme.isInverted === undefined ? theme.isInverted : partialTheme.isInverted), }); if (((_a = partialTheme.palette) === null || _a === void 0 ? void 0 : _a.themePrimary) && !((_b = partialTheme.palette) === null || _b === void 0 ? void 0 : _b.accent)) { mergedTheme.palette.accent = partialTheme.palette.themePrimary; } if (partialTheme.defaultFontStyle) { for (var _i = 0, _d = Object.keys(mergedTheme.fonts); _i < _d.length; _i++) { var fontStyle = _d[_i]; mergedTheme.fonts[fontStyle] = (0, utilities_1.merge)(mergedTheme.fonts[fontStyle], partialTheme.defaultFontStyle, (_c = partialTheme === null || partialTheme === void 0 ? void 0 : partialTheme.fonts) === null || _c === void 0 ? void 0 : _c[fontStyle]); } } return mergedTheme; } exports.mergeThemes = mergeThemes; //# sourceMappingURL=mergeThemes.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationStyles = exports.AnimationVariables = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); /* Register the keyframes */ var EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)'; var EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)'; var DURATION_1 = '0.167s'; var DURATION_2 = '0.267s'; var DURATION_3 = '0.367s'; var DURATION_4 = '0.467s'; var FADE_IN = (0, merge_styles_1.keyframes)({ from: { opacity: 0 }, to: { opacity: 1 }, }); var FADE_OUT = (0, merge_styles_1.keyframes)({ from: { opacity: 1 }, to: { opacity: 0, visibility: 'hidden' }, }); var SLIDE_RIGHT_IN10 = _createSlideInX(-10); var SLIDE_RIGHT_IN20 = _createSlideInX(-20); var SLIDE_RIGHT_IN40 = _createSlideInX(-40); var SLIDE_RIGHT_IN400 = _createSlideInX(-400); var SLIDE_LEFT_IN10 = _createSlideInX(10); var SLIDE_LEFT_IN20 = _createSlideInX(20); var SLIDE_LEFT_IN40 = _createSlideInX(40); var SLIDE_LEFT_IN400 = _createSlideInX(400); var SLIDE_UP_IN10 = _createSlideInY(10); var SLIDE_UP_IN20 = _createSlideInY(20); var SLIDE_DOWN_IN10 = _createSlideInY(-10); var SLIDE_DOWN_IN20 = _createSlideInY(-20); var SLIDE_RIGHT_OUT10 = _createSlideOutX(10); var SLIDE_RIGHT_OUT20 = _createSlideOutX(20); var SLIDE_RIGHT_OUT40 = _createSlideOutX(40); var SLIDE_RIGHT_OUT400 = _createSlideOutX(400); var SLIDE_LEFT_OUT10 = _createSlideOutX(-10); var SLIDE_LEFT_OUT20 = _createSlideOutX(-20); var SLIDE_LEFT_OUT40 = _createSlideOutX(-40); var SLIDE_LEFT_OUT400 = _createSlideOutX(-400); var SLIDE_UP_OUT10 = _createSlideOutY(-10); var SLIDE_UP_OUT20 = _createSlideOutY(-20); var SLIDE_DOWN_OUT10 = _createSlideOutY(10); var SLIDE_DOWN_OUT20 = _createSlideOutY(20); var SCALE_UP100 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(.98,.98,1)' }, to: { transform: 'scale3d(1,1,1)' }, }); var SCALE_DOWN98 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1,1,1)' }, to: { transform: 'scale3d(.98,.98,1)' }, }); var SCALE_DOWN100 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1.03,1.03,1)' }, to: { transform: 'scale3d(1,1,1)' }, }); var SCALE_UP103 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1,1,1)' }, to: { transform: 'scale3d(1.03,1.03,1)' }, }); var ROTATE90 = (0, merge_styles_1.keyframes)({ from: { transform: 'rotateZ(0deg)' }, to: { transform: 'rotateZ(90deg)' }, }); var ROTATE_N90 = (0, merge_styles_1.keyframes)({ from: { transform: 'rotateZ(0deg)' }, to: { transform: 'rotateZ(-90deg)' }, }); /** * Exporting raw duraction values and easing functions to be used in custom animations */ exports.AnimationVariables = { easeFunction1: EASING_FUNCTION_1, easeFunction2: EASING_FUNCTION_2, durationValue1: DURATION_1, durationValue2: DURATION_2, durationValue3: DURATION_3, durationValue4: DURATION_4, }; /** * All Fabric standard animations, exposed as json objects referencing predefined * keyframes. These objects can be mixed in with other class definitions. */ exports.AnimationStyles = { slideRightIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN10), DURATION_3, EASING_FUNCTION_1), slideRightIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN20), DURATION_3, EASING_FUNCTION_1), slideRightIn40: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN40), DURATION_3, EASING_FUNCTION_1), slideRightIn400: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN400), DURATION_3, EASING_FUNCTION_1), slideLeftIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN10), DURATION_3, EASING_FUNCTION_1), slideLeftIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN20), DURATION_3, EASING_FUNCTION_1), slideLeftIn40: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN40), DURATION_3, EASING_FUNCTION_1), slideLeftIn400: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN400), DURATION_3, EASING_FUNCTION_1), slideUpIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_UP_IN10), DURATION_3, EASING_FUNCTION_1), slideUpIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_UP_IN20), DURATION_3, EASING_FUNCTION_1), slideDownIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_DOWN_IN10), DURATION_3, EASING_FUNCTION_1), slideDownIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_DOWN_IN20), DURATION_3, EASING_FUNCTION_1), slideRightOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT10), DURATION_3, EASING_FUNCTION_1), slideRightOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT20), DURATION_3, EASING_FUNCTION_1), slideRightOut40: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT40), DURATION_3, EASING_FUNCTION_1), slideRightOut400: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT400), DURATION_3, EASING_FUNCTION_1), slideLeftOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT10), DURATION_3, EASING_FUNCTION_1), slideLeftOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT20), DURATION_3, EASING_FUNCTION_1), slideLeftOut40: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT40), DURATION_3, EASING_FUNCTION_1), slideLeftOut400: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT400), DURATION_3, EASING_FUNCTION_1), slideUpOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_UP_OUT10), DURATION_3, EASING_FUNCTION_1), slideUpOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_UP_OUT20), DURATION_3, EASING_FUNCTION_1), slideDownOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_DOWN_OUT10), DURATION_3, EASING_FUNCTION_1), slideDownOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_DOWN_OUT20), DURATION_3, EASING_FUNCTION_1), scaleUpIn100: _createAnimation("".concat(FADE_IN, ",").concat(SCALE_UP100), DURATION_3, EASING_FUNCTION_1), scaleDownIn100: _createAnimation("".concat(FADE_IN, ",").concat(SCALE_DOWN100), DURATION_3, EASING_FUNCTION_1), scaleUpOut103: _createAnimation("".concat(FADE_OUT, ",").concat(SCALE_UP103), DURATION_1, EASING_FUNCTION_2), scaleDownOut98: _createAnimation("".concat(FADE_OUT, ",").concat(SCALE_DOWN98), DURATION_1, EASING_FUNCTION_2), fadeIn100: _createAnimation(FADE_IN, DURATION_1, EASING_FUNCTION_2), fadeIn200: _createAnimation(FADE_IN, DURATION_2, EASING_FUNCTION_2), fadeIn400: _createAnimation(FADE_IN, DURATION_3, EASING_FUNCTION_2), fadeIn500: _createAnimation(FADE_IN, DURATION_4, EASING_FUNCTION_2), fadeOut100: _createAnimation(FADE_OUT, DURATION_1, EASING_FUNCTION_2), fadeOut200: _createAnimation(FADE_OUT, DURATION_2, EASING_FUNCTION_2), fadeOut400: _createAnimation(FADE_OUT, DURATION_3, EASING_FUNCTION_2), fadeOut500: _createAnimation(FADE_OUT, DURATION_4, EASING_FUNCTION_2), rotate90deg: _createAnimation(ROTATE90, '0.1s', EASING_FUNCTION_2), rotateN90deg: _createAnimation(ROTATE_N90, '0.1s', EASING_FUNCTION_2), // expandCollapse 100/200/400, delay 100/200 }; function _createAnimation(animationName, animationDuration, animationTimingFunction) { return { animationName: animationName, animationDuration: animationDuration, animationTimingFunction: animationTimingFunction, animationFillMode: 'both', }; } function _createSlideInX(fromX) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(".concat(fromX, "px,0,0)"), pointerEvents: 'none' }, to: { transform: "translate3d(0,0,0)", pointerEvents: 'auto' }, }); } function _createSlideInY(fromY) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,".concat(fromY, "px,0)"), pointerEvents: 'none' }, to: { transform: "translate3d(0,0,0)", pointerEvents: 'auto' }, }); } function _createSlideOutX(toX) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,0,0)" }, to: { transform: "translate3d(".concat(toX, "px,0,0)") }, }); } function _createSlideOutY(toY) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,0,0)" }, to: { transform: "translate3d(0,".concat(toY, "px,0)") }, }); } //# sourceMappingURL=AnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MotionAnimations = exports.MotionTimings = exports.MotionDurations = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var fadeInAnimationName = (0, merge_styles_1.keyframes)({ from: { opacity: 0 }, to: { opacity: 1 }, }); var fadeOutAnimationName = (0, merge_styles_1.keyframes)({ from: { opacity: 1 }, to: { opacity: 0 }, }); var scaleDownInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1.15, 1.15, 1)' }, to: { transform: 'scale3d(1, 1, 1)' }, }); var scaleDownOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1, 1, 1)' }, to: { transform: 'scale3d(0.9, 0.9, 1)' }, }); var slideLeftOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(-48px, 0, 0)' }, }); var slideRightOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(48px, 0, 0)' }, }); var slideLeftInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(48px, 0, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideRightInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(-48px, 0, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideUpOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(0, -48px, 0)' }, }); var slideDownOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(0, 48px, 0)' }, }); var slideUpInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 48px, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideDownInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, -48px, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var MotionDurations; (function (MotionDurations) { MotionDurations.duration1 = '100ms'; MotionDurations.duration2 = '200ms'; MotionDurations.duration3 = '300ms'; MotionDurations.duration4 = '400ms'; })(MotionDurations = exports.MotionDurations || (exports.MotionDurations = {})); var MotionTimings; (function (MotionTimings) { MotionTimings.accelerate = 'cubic-bezier(0.9, 0.1, 1, 0.2)'; MotionTimings.decelerate = 'cubic-bezier(0.1, 0.9, 0.2, 1)'; MotionTimings.linear = 'cubic-bezier(0, 0, 1, 1)'; MotionTimings.standard = 'cubic-bezier(0.8, 0, 0.2, 1)'; })(MotionTimings = exports.MotionTimings || (exports.MotionTimings = {})); function _createAnimation(animationName, animationDuration, animationTimingFunction) { return "".concat(animationName, " ").concat(animationDuration, " ").concat(animationTimingFunction); } var MotionAnimations; (function (MotionAnimations) { MotionAnimations.fadeIn = _createAnimation(fadeInAnimationName, MotionDurations.duration1, MotionTimings.linear); MotionAnimations.fadeOut = _createAnimation(fadeOutAnimationName, MotionDurations.duration1, MotionTimings.linear); MotionAnimations.scaleDownIn = _createAnimation(scaleDownInAnimationName, MotionDurations.duration3, MotionTimings.decelerate); MotionAnimations.scaleDownOut = _createAnimation(scaleDownOutAnimationName, MotionDurations.duration3, MotionTimings.decelerate); MotionAnimations.slideLeftOut = _createAnimation(slideLeftOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideRightOut = _createAnimation(slideRightOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideLeftIn = _createAnimation(slideLeftInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideRightIn = _createAnimation(slideRightInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideUpOut = _createAnimation(slideUpOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideDownOut = _createAnimation(slideDownOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideUpIn = _createAnimation(slideUpInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideDownIn = _createAnimation(slideDownInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); })(MotionAnimations = exports.MotionAnimations || (exports.MotionAnimations = {})); //# sourceMappingURL=FluentMotion.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/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__(/*! ./FluentMotion */ "./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AnimationStyles */ "./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultSpacing = void 0; exports.DefaultSpacing = { s2: '4px', s1: '8px', m: '16px', l1: '20px', l2: '32px', }; //# sourceMappingURL=DefaultSpacing.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultSpacing = void 0; var DefaultSpacing_1 = __webpack_require__(/*! ./DefaultSpacing */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js"); Object.defineProperty(exports, "DefaultSpacing", ({ enumerable: true, get: function () { return DefaultSpacing_1.DefaultSpacing; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Theme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/types/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/types/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__(/*! ./Theme */ "./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSemanticColors = exports.makeSemanticColors = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** Generates all the semantic slot colors based on the theme so far * We'll use these as fallbacks for semantic slots that the passed in theme did not define. * The caller must still mix in the customized semantic slots at the end. */ function makeSemanticColors(p, e, s, isInverted, depComments) { if (depComments === void 0) { depComments = false; } var semanticColors = tslib_1.__assign({ primaryButtonBorder: 'transparent', errorText: !isInverted ? '#a4262c' : '#F1707B', messageText: !isInverted ? '#323130' : '#F3F2F1', messageLink: !isInverted ? '#005A9E' : '#6CB8F6', messageLinkHovered: !isInverted ? '#004578' : '#82C7FF', infoIcon: !isInverted ? '#605e5c' : '#C8C6C4', errorIcon: !isInverted ? '#A80000' : '#F1707B', blockingIcon: !isInverted ? '#FDE7E9' : '#442726', warningIcon: !isInverted ? '#797775' : '#C8C6C4', severeWarningIcon: !isInverted ? '#D83B01' : '#FCE100', successIcon: !isInverted ? '#107C10' : '#92C353', infoBackground: !isInverted ? '#f3f2f1' : '#323130', errorBackground: !isInverted ? '#FDE7E9' : '#442726', blockingBackground: !isInverted ? '#FDE7E9' : '#442726', warningBackground: !isInverted ? '#FFF4CE' : '#433519', severeWarningBackground: !isInverted ? '#FED9CC' : '#4F2A0F', successBackground: !isInverted ? '#DFF6DD' : '#393D1B', // deprecated warningHighlight: !isInverted ? '#ffb900' : '#fff100', successText: !isInverted ? '#107C10' : '#92c353' }, s); var fullSemanticColors = getSemanticColors(p, e, semanticColors, isInverted); return _fixDeprecatedSlots(fullSemanticColors, depComments); } exports.makeSemanticColors = makeSemanticColors; /** * Map partial platte and effects to partial semantic colors. */ function getSemanticColors(p, e, s, isInverted, depComments) { if (depComments === void 0) { depComments = false; } var result = {}; // map palette var _a = p || {}, white = _a.white, black = _a.black, themePrimary = _a.themePrimary, themeDark = _a.themeDark, themeDarker = _a.themeDarker, themeDarkAlt = _a.themeDarkAlt, themeLighter = _a.themeLighter, neutralLight = _a.neutralLight, neutralLighter = _a.neutralLighter, neutralDark = _a.neutralDark, neutralQuaternary = _a.neutralQuaternary, neutralQuaternaryAlt = _a.neutralQuaternaryAlt, neutralPrimary = _a.neutralPrimary, neutralSecondary = _a.neutralSecondary, neutralSecondaryAlt = _a.neutralSecondaryAlt, neutralTertiary = _a.neutralTertiary, neutralTertiaryAlt = _a.neutralTertiaryAlt, neutralLighterAlt = _a.neutralLighterAlt, accent = _a.accent; if (white) { result.bodyBackground = white; result.bodyFrameBackground = white; result.accentButtonText = white; result.buttonBackground = white; result.primaryButtonText = white; result.primaryButtonTextHovered = white; result.primaryButtonTextPressed = white; result.inputBackground = white; result.inputForegroundChecked = white; result.listBackground = white; result.menuBackground = white; result.cardStandoutBackground = white; } if (black) { result.bodyTextChecked = black; result.buttonTextCheckedHovered = black; } if (themePrimary) { result.link = themePrimary; result.primaryButtonBackground = themePrimary; result.inputBackgroundChecked = themePrimary; result.inputIcon = themePrimary; result.inputFocusBorderAlt = themePrimary; result.menuIcon = themePrimary; result.menuHeader = themePrimary; result.accentButtonBackground = themePrimary; } if (themeDark) { result.primaryButtonBackgroundPressed = themeDark; result.inputBackgroundCheckedHovered = themeDark; result.inputIconHovered = themeDark; } if (themeDarker) { result.linkHovered = themeDarker; } if (themeDarkAlt) { result.primaryButtonBackgroundHovered = themeDarkAlt; } if (themeLighter) { result.inputPlaceholderBackgroundChecked = themeLighter; } if (neutralLight) { result.bodyBackgroundChecked = neutralLight; result.bodyFrameDivider = neutralLight; result.bodyDivider = neutralLight; result.variantBorder = neutralLight; result.buttonBackgroundCheckedHovered = neutralLight; result.buttonBackgroundPressed = neutralLight; result.listItemBackgroundChecked = neutralLight; result.listHeaderBackgroundPressed = neutralLight; result.menuItemBackgroundPressed = neutralLight; // eslint-disable-next-line deprecation/deprecation result.menuItemBackgroundChecked = neutralLight; } if (neutralLighter) { result.bodyBackgroundHovered = neutralLighter; result.buttonBackgroundHovered = neutralLighter; result.buttonBackgroundDisabled = neutralLighter; result.buttonBorderDisabled = neutralLighter; result.primaryButtonBackgroundDisabled = neutralLighter; result.disabledBackground = neutralLighter; result.listItemBackgroundHovered = neutralLighter; result.listHeaderBackgroundHovered = neutralLighter; result.menuItemBackgroundHovered = neutralLighter; } if (neutralQuaternary) { result.primaryButtonTextDisabled = neutralQuaternary; result.disabledSubtext = neutralQuaternary; } if (neutralQuaternaryAlt) { result.listItemBackgroundCheckedHovered = neutralQuaternaryAlt; } if (neutralTertiary) { result.disabledBodyText = neutralTertiary; result.variantBorderHovered = (s === null || s === void 0 ? void 0 : s.variantBorderHovered) || neutralTertiary; result.buttonTextDisabled = neutralTertiary; result.inputIconDisabled = neutralTertiary; result.disabledText = neutralTertiary; } if (neutralPrimary) { result.bodyText = neutralPrimary; result.actionLink = neutralPrimary; result.buttonText = neutralPrimary; result.inputBorderHovered = neutralPrimary; result.inputText = neutralPrimary; result.listText = neutralPrimary; result.menuItemText = neutralPrimary; } if (neutralLighterAlt) { result.bodyStandoutBackground = neutralLighterAlt; result.defaultStateBackground = neutralLighterAlt; } if (neutralDark) { result.actionLinkHovered = neutralDark; result.buttonTextHovered = neutralDark; result.buttonTextChecked = neutralDark; result.buttonTextPressed = neutralDark; result.inputTextHovered = neutralDark; result.menuItemTextHovered = neutralDark; } if (neutralSecondary) { result.bodySubtext = neutralSecondary; result.focusBorder = neutralSecondary; result.inputBorder = neutralSecondary; result.smallInputBorder = neutralSecondary; result.inputPlaceholderText = neutralSecondary; } if (neutralSecondaryAlt) { result.buttonBorder = neutralSecondaryAlt; } if (neutralTertiaryAlt) { result.disabledBodySubtext = neutralTertiaryAlt; result.disabledBorder = neutralTertiaryAlt; result.buttonBackgroundChecked = neutralTertiaryAlt; result.menuDivider = neutralTertiaryAlt; } if (accent) { result.accentButtonBackground = accent; } // map effects if (e === null || e === void 0 ? void 0 : e.elevation4) { result.cardShadow = e.elevation4; } if (!isInverted && (e === null || e === void 0 ? void 0 : e.elevation8)) { result.cardShadowHovered = e.elevation8; } else if (result.variantBorderHovered) { result.cardShadowHovered = '0 0 1px ' + result.variantBorderHovered; } result = tslib_1.__assign(tslib_1.__assign({}, result), s); return result; } exports.getSemanticColors = getSemanticColors; function _fixDeprecatedSlots(s, depComments) { // Add @deprecated tag as comment if enabled var dep = ''; if (depComments === true) { dep = ' /* @deprecated */'; } /* eslint-disable deprecation/deprecation */ s.listTextColor = s.listText + dep; s.menuItemBackgroundChecked += dep; s.warningHighlight += dep; s.warningText = s.messageText + dep; s.successText += dep; /* eslint-enable deprecation/deprecation */ return s; } //# sourceMappingURL=makeSemanticColors.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/version.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/theme/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/theme', '2.6.35'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/Async.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Async = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Bugs often appear in async code when stuff gets disposed, but async operations don't get canceled. * This Async helper class solves these issues by tying async code to the lifetime of a disposable object. * * Usage: Anything class extending from BaseModel can access this helper via this.async. Otherwise create a * new instance of the class and remember to call dispose() during your code's dispose handler. * * @public */ var Async = /** @class */ (function () { // eslint-disable-next-line @typescript-eslint/no-explicit-any function Async(parent, onError) { this._timeoutIds = null; this._immediateIds = null; this._intervalIds = null; this._animationFrameIds = null; this._isDisposed = false; this._parent = parent || null; this._onErrorHandler = onError; this._noop = function () { /* do nothing */ }; } /** * Dispose function, clears all async operations. */ Async.prototype.dispose = function () { var id; this._isDisposed = true; this._parent = null; // Clear timeouts. if (this._timeoutIds) { for (id in this._timeoutIds) { if (this._timeoutIds.hasOwnProperty(id)) { this.clearTimeout(parseInt(id, 10)); } } this._timeoutIds = null; } // Clear immediates. if (this._immediateIds) { for (id in this._immediateIds) { if (this._immediateIds.hasOwnProperty(id)) { this.clearImmediate(parseInt(id, 10)); } } this._immediateIds = null; } // Clear intervals. if (this._intervalIds) { for (id in this._intervalIds) { if (this._intervalIds.hasOwnProperty(id)) { this.clearInterval(parseInt(id, 10)); } } this._intervalIds = null; } // Clear animation frames. if (this._animationFrameIds) { for (id in this._animationFrameIds) { if (this._animationFrameIds.hasOwnProperty(id)) { this.cancelAnimationFrame(parseInt(id, 10)); } } this._animationFrameIds = null; } }; /** * SetTimeout override, which will auto cancel the timeout during dispose. * @param callback - Callback to execute. * @param duration - Duration in milliseconds. * @returns The setTimeout id. */ Async.prototype.setTimeout = function (callback, duration) { var _this = this; var timeoutId = 0; if (!this._isDisposed) { if (!this._timeoutIds) { this._timeoutIds = {}; } timeoutId = setTimeout(function () { // Time to execute the timeout, enqueue it as a foreground task to be executed. try { // Now delete the record and call the callback. if (_this._timeoutIds) { delete _this._timeoutIds[timeoutId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }, duration); this._timeoutIds[timeoutId] = true; } return timeoutId; }; /** * Clears the timeout. * @param id - Id to cancel. */ Async.prototype.clearTimeout = function (id) { if (this._timeoutIds && this._timeoutIds[id]) { clearTimeout(id); delete this._timeoutIds[id]; } }; /** * SetImmediate override, which will auto cancel the immediate during dispose. * @param callback - Callback to execute. * @param targetElement - Optional target element to use for identifying the correct window. * @returns The setTimeout id. */ Async.prototype.setImmediate = function (callback, targetElement) { var _this = this; var immediateId = 0; var win = (0, getWindow_1.getWindow)(targetElement); if (!this._isDisposed) { if (!this._immediateIds) { this._immediateIds = {}; } var setImmediateCallback = function () { // Time to execute the timeout, enqueue it as a foreground task to be executed. try { // Now delete the record and call the callback. if (_this._immediateIds) { delete _this._immediateIds[immediateId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }; immediateId = win.setTimeout(setImmediateCallback, 0); this._immediateIds[immediateId] = true; } return immediateId; }; /** * Clears the immediate. * @param id - Id to cancel. * @param targetElement - Optional target element to use for identifying the correct window. */ Async.prototype.clearImmediate = function (id, targetElement) { var win = (0, getWindow_1.getWindow)(targetElement); if (this._immediateIds && this._immediateIds[id]) { win.clearTimeout(id); delete this._immediateIds[id]; } }; /** * SetInterval override, which will auto cancel the timeout during dispose. * @param callback - Callback to execute. * @param duration - Duration in milliseconds. * @returns The setTimeout id. */ Async.prototype.setInterval = function (callback, duration) { var _this = this; var intervalId = 0; if (!this._isDisposed) { if (!this._intervalIds) { this._intervalIds = {}; } intervalId = setInterval(function () { // Time to execute the interval callback, enqueue it as a foreground task to be executed. try { callback.apply(_this._parent); } catch (e) { _this._logError(e); } }, duration); this._intervalIds[intervalId] = true; } return intervalId; }; /** * Clears the interval. * @param id - Id to cancel. */ Async.prototype.clearInterval = function (id) { if (this._intervalIds && this._intervalIds[id]) { clearInterval(id); delete this._intervalIds[id]; } }; /** * Creates a function that, when executed, will only call the func function at most once per * every wait milliseconds. Provide an options object to indicate that func should be invoked * on the leading and/or trailing edge of the wait timeout. Subsequent calls to the throttled * function will return the result of the last func call. * * Note: If leading and trailing options are true func will be called on the trailing edge of * the timeout only if the throttled function is invoked more than once during the wait timeout. * * @param func - The function to throttle. * @param wait - The number of milliseconds to throttle executions to. Defaults to 0. * @param options - The options object. * @returns The new throttled function. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype.throttle = function (func, wait, options) { var _this = this; if (this._isDisposed) { return this._noop; } var waitMS = wait || 0; var leading = true; var trailing = true; var lastExecuteTime = 0; var lastResult; // eslint-disable-next-line @typescript-eslint/no-explicit-any var lastArgs; var timeoutId = null; if (options && typeof options.leading === 'boolean') { leading = options.leading; } if (options && typeof options.trailing === 'boolean') { trailing = options.trailing; } var callback = function (userCall) { var now = Date.now(); var delta = now - lastExecuteTime; var waitLength = leading ? waitMS - delta : waitMS; if (delta >= waitMS && (!userCall || leading)) { lastExecuteTime = now; if (timeoutId) { _this.clearTimeout(timeoutId); timeoutId = null; } lastResult = func.apply(_this._parent, lastArgs); } else if (timeoutId === null && trailing) { timeoutId = _this.setTimeout(callback, waitLength); } return lastResult; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any var resultFunction = (function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } lastArgs = args; return callback(true); }); return resultFunction; }; /** * Creates a function that will delay the execution of func until after wait milliseconds have * elapsed since the last time it was invoked. Provide an options object to indicate that func * should be invoked on the leading and/or trailing edge of the wait timeout. Subsequent calls * to the debounced function will return the result of the last func call. * * Note: If leading and trailing options are true func will be called on the trailing edge of * the timeout only if the debounced function is invoked more than once during the wait * timeout. * * @param func - The function to debounce. * @param wait - The number of milliseconds to delay. * @param options - The options object. * @returns The new debounced function. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype.debounce = function (func, wait, options) { var _this = this; if (this._isDisposed) { var noOpFunction = (function () { /** Do nothing */ }); noOpFunction.cancel = function () { return; }; noOpFunction.flush = (function () { return null; }); noOpFunction.pending = function () { return false; }; return noOpFunction; } var waitMS = wait || 0; var leading = false; var trailing = true; var maxWait = null; var lastCallTime = 0; var lastExecuteTime = Date.now(); var lastResult; // eslint-disable-next-line @typescript-eslint/no-explicit-any var lastArgs; var timeoutId = null; if (options && typeof options.leading === 'boolean') { leading = options.leading; } if (options && typeof options.trailing === 'boolean') { trailing = options.trailing; } if (options && typeof options.maxWait === 'number' && !isNaN(options.maxWait)) { maxWait = options.maxWait; } var markExecuted = function (time) { if (timeoutId) { _this.clearTimeout(timeoutId); timeoutId = null; } lastExecuteTime = time; }; var invokeFunction = function (time) { markExecuted(time); lastResult = func.apply(_this._parent, lastArgs); }; var callback = function (userCall) { var now = Date.now(); var executeImmediately = false; if (userCall) { if (leading && now - lastCallTime >= waitMS) { executeImmediately = true; } lastCallTime = now; } var delta = now - lastCallTime; var waitLength = waitMS - delta; var maxWaitDelta = now - lastExecuteTime; var maxWaitExpired = false; if (maxWait !== null) { // maxWait only matters when there is a pending callback if (maxWaitDelta >= maxWait && timeoutId) { maxWaitExpired = true; } else { waitLength = Math.min(waitLength, maxWait - maxWaitDelta); } } if (delta >= waitMS || maxWaitExpired || executeImmediately) { invokeFunction(now); } else if ((timeoutId === null || !userCall) && trailing) { timeoutId = _this.setTimeout(callback, waitLength); } return lastResult; }; var pending = function () { return !!timeoutId; }; var cancel = function () { if (pending()) { // Mark the debounced function as having executed markExecuted(Date.now()); } }; var flush = function () { if (pending()) { invokeFunction(Date.now()); } return lastResult; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any var resultFunction = (function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } lastArgs = args; return callback(true); }); resultFunction.cancel = cancel; resultFunction.flush = flush; resultFunction.pending = pending; return resultFunction; }; Async.prototype.requestAnimationFrame = function (callback, targetElement) { var _this = this; var animationFrameId = 0; var win = (0, getWindow_1.getWindow)(targetElement); if (!this._isDisposed) { if (!this._animationFrameIds) { this._animationFrameIds = {}; } var animationFrameCallback = function () { try { // Now delete the record and call the callback. if (_this._animationFrameIds) { delete _this._animationFrameIds[animationFrameId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }; animationFrameId = win.requestAnimationFrame ? win.requestAnimationFrame(animationFrameCallback) : win.setTimeout(animationFrameCallback, 0); this._animationFrameIds[animationFrameId] = true; } return animationFrameId; }; Async.prototype.cancelAnimationFrame = function (id, targetElement) { var win = (0, getWindow_1.getWindow)(targetElement); if (this._animationFrameIds && this._animationFrameIds[id]) { win.cancelAnimationFrame ? win.cancelAnimationFrame(id) : win.clearTimeout(id); delete this._animationFrameIds[id]; } }; // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype._logError = function (e) { if (this._onErrorHandler) { this._onErrorHandler(e); } }; return Async; }()); exports.Async = Async; //# sourceMappingURL=Async.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AutoScroll = void 0; var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); var scroll_1 = __webpack_require__(/*! ./scroll */ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js"); var getRect_1 = __webpack_require__(/*! ./dom/getRect */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js"); var SCROLL_ITERATION_DELAY = 16; var SCROLL_GUTTER = 100; var MAX_SCROLL_VELOCITY = 15; /** * AutoScroll simply hooks up mouse events given a parent element, and scrolls the container * up/down depending on how close the mouse is to the top/bottom of the container. * * Once you don't want autoscroll any more, just dispose the helper and it will unhook events. * * @public * {@docCategory AutoScroll} */ var AutoScroll = /** @class */ (function () { function AutoScroll(element) { this._events = new EventGroup_1.EventGroup(this); this._scrollableParent = (0, scroll_1.findScrollableParent)(element); this._incrementScroll = this._incrementScroll.bind(this); this._scrollRect = (0, getRect_1.getRect)(this._scrollableParent); // eslint-disable-next-line @typescript-eslint/no-explicit-any if (this._scrollableParent === window) { this._scrollableParent = document.body; } if (this._scrollableParent) { this._events.on(window, 'mousemove', this._onMouseMove, true); this._events.on(window, 'touchmove', this._onTouchMove, true); } } AutoScroll.prototype.dispose = function () { this._events.dispose(); this._stopScroll(); }; AutoScroll.prototype._onMouseMove = function (ev) { this._computeScrollVelocity(ev); }; AutoScroll.prototype._onTouchMove = function (ev) { if (ev.touches.length > 0) { this._computeScrollVelocity(ev); } }; AutoScroll.prototype._computeScrollVelocity = function (ev) { if (!this._scrollRect) { return; } var clientX; var clientY; if ('clientX' in ev) { clientX = ev.clientX; clientY = ev.clientY; } else { clientX = ev.touches[0].clientX; clientY = ev.touches[0].clientY; } var scrollRectTop = this._scrollRect.top; var scrollRectLeft = this._scrollRect.left; var scrollClientBottom = scrollRectTop + this._scrollRect.height - SCROLL_GUTTER; var scrollClientRight = scrollRectLeft + this._scrollRect.width - SCROLL_GUTTER; // variables to use for alternating scroll direction var scrollRect; var clientDirection; var scrollClient; // if either of these conditions are met we are scrolling vertically else horizontally if (clientY < scrollRectTop + SCROLL_GUTTER || clientY > scrollClientBottom) { clientDirection = clientY; scrollRect = scrollRectTop; scrollClient = scrollClientBottom; this._isVerticalScroll = true; } else { clientDirection = clientX; scrollRect = scrollRectLeft; scrollClient = scrollClientRight; this._isVerticalScroll = false; } // calculate scroll velocity and direction if (clientDirection < scrollRect + SCROLL_GUTTER) { this._scrollVelocity = Math.max(-MAX_SCROLL_VELOCITY, -MAX_SCROLL_VELOCITY * ((SCROLL_GUTTER - (clientDirection - scrollRect)) / SCROLL_GUTTER)); } else if (clientDirection > scrollClient) { this._scrollVelocity = Math.min(MAX_SCROLL_VELOCITY, MAX_SCROLL_VELOCITY * ((clientDirection - scrollClient) / SCROLL_GUTTER)); } else { this._scrollVelocity = 0; } if (this._scrollVelocity) { this._startScroll(); } else { this._stopScroll(); } }; AutoScroll.prototype._startScroll = function () { if (!this._timeoutId) { this._incrementScroll(); } }; AutoScroll.prototype._incrementScroll = function () { if (this._scrollableParent) { if (this._isVerticalScroll) { this._scrollableParent.scrollTop += Math.round(this._scrollVelocity); } else { this._scrollableParent.scrollLeft += Math.round(this._scrollVelocity); } } this._timeoutId = setTimeout(this._incrementScroll, SCROLL_ITERATION_DELAY); }; AutoScroll.prototype._stopScroll = function () { if (this._timeoutId) { clearTimeout(this._timeoutId); delete this._timeoutId; } }; return AutoScroll; }()); exports.AutoScroll = AutoScroll; //# sourceMappingURL=AutoScroll.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.nullRender = exports.BaseComponent = 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 Async_1 = __webpack_require__(/*! ./Async */ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js"); var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); var warnConditionallyRequiredProps_1 = __webpack_require__(/*! ./warn/warnConditionallyRequiredProps */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js"); var warnMutuallyExclusive_1 = __webpack_require__(/*! ./warn/warnMutuallyExclusive */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js"); var warnDeprecations_1 = __webpack_require__(/*! ./warn/warnDeprecations */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js"); /** * BaseComponent class, which provides basic helpers for all components. * * @public * {@docCategory BaseComponent} * * @deprecated Do not use. We are moving away from class component. */ var BaseComponent = /** @class */ (function (_super) { tslib_1.__extends(BaseComponent, _super); /** * BaseComponent constructor * @param props - The props for the component. * @param context - The context for the component. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function BaseComponent(props, context) { var _this = _super.call(this, props, context) || this; // eslint-disable-next-line deprecation/deprecation _makeAllSafe(_this, BaseComponent.prototype, [ 'componentDidMount', 'shouldComponentUpdate', 'getSnapshotBeforeUpdate', 'render', 'componentDidUpdate', 'componentWillUnmount', ]); return _this; } /** * When the component receives props, make sure the componentRef is updated. */ BaseComponent.prototype.componentDidUpdate = function (prevProps, prevState) { this._updateComponentRef(prevProps, this.props); }; /** * When the component has mounted, update the componentRef. */ BaseComponent.prototype.componentDidMount = function () { this._setComponentRef(this.props.componentRef, this); }; /** * If we have disposables, dispose them automatically on unmount. */ BaseComponent.prototype.componentWillUnmount = function () { this._setComponentRef(this.props.componentRef, null); if (this.__disposables) { for (var i = 0, len = this._disposables.length; i < len; i++) { var disposable = this.__disposables[i]; if (disposable.dispose) { disposable.dispose(); } } this.__disposables = null; } }; Object.defineProperty(BaseComponent.prototype, "className", { /** * Gets the object's class name. */ get: function () { if (!this.__className) { var funcNameRegex = /function (.{1,})\(/; var results = funcNameRegex.exec(this.constructor.toString()); this.__className = results && results.length > 1 ? results[1] : ''; } return this.__className; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_disposables", { /** * Allows subclasses to push things to this._disposables to be auto disposed. */ get: function () { if (!this.__disposables) { this.__disposables = []; } return this.__disposables; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_async", { /** * Gets the async instance associated with the component, created on demand. The async instance gives * subclasses a way to execute setTimeout/setInterval async calls safely, where the callbacks * will be cleared/ignored automatically after unmounting. The helpers within the async object also * preserve the this pointer so that you don't need to "bind" the callbacks. */ get: function () { if (!this.__async) { this.__async = new Async_1.Async(this); this._disposables.push(this.__async); } return this.__async; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_events", { /** * Gets the event group instance assocaited with the component, created on demand. The event instance * provides on/off methods for listening to DOM (or regular javascript object) events. The event callbacks * will be automatically disconnected after unmounting. The helpers within the events object also * preserve the this reference so that you don't need to "bind" the callbacks. */ get: function () { if (!this.__events) { this.__events = new EventGroup_1.EventGroup(this); this._disposables.push(this.__events); } return this.__events; }, enumerable: false, configurable: true }); /** * Helper to return a memoized ref resolver function. * @param refName - Name of the member to assign the ref to. * @returns A function instance keyed from the given refname. * @deprecated Use `createRef` from React.createRef. */ BaseComponent.prototype._resolveRef = function (refName) { var _this = this; if (!this.__resolves) { this.__resolves = {}; } if (!this.__resolves[refName]) { this.__resolves[refName] = function (ref) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (_this[refName] = ref); }; } return this.__resolves[refName]; }; /** * Updates the componentRef (by calling it with "this" when necessary.) */ BaseComponent.prototype._updateComponentRef = function (currentProps, newProps) { if (newProps === void 0) { newProps = {}; } // currentProps *should* always be defined, but verify that just in case a subclass is manually // calling a lifecycle method with no parameters (which has happened) or other odd usage. if (currentProps && newProps && currentProps.componentRef !== newProps.componentRef) { this._setComponentRef(currentProps.componentRef, null); this._setComponentRef(newProps.componentRef, this); } }; /** * Warns when a deprecated props are being used. * * @param deprecationMap - The map of deprecations, where key is the prop name and the value is * either null or a replacement prop name. */ BaseComponent.prototype._warnDeprecations = function (deprecationMap) { (0, warnDeprecations_1.warnDeprecations)(this.className, this.props, deprecationMap); }; /** * Warns when props which are mutually exclusive with each other are both used. * * @param mutuallyExclusiveMap - The map of mutually exclusive props. */ BaseComponent.prototype._warnMutuallyExclusive = function (mutuallyExclusiveMap) { (0, warnMutuallyExclusive_1.warnMutuallyExclusive)(this.className, this.props, mutuallyExclusiveMap); }; /** * Warns when props are required if a condition is met. * * @param requiredProps - The name of the props that are required when the condition is met. * @param conditionalPropName - The name of the prop that the condition is based on. * @param condition - Whether the condition is met. */ BaseComponent.prototype._warnConditionallyRequiredProps = function (requiredProps, conditionalPropName, condition) { (0, warnConditionallyRequiredProps_1.warnConditionallyRequiredProps)(this.className, this.props, requiredProps, conditionalPropName, condition); }; BaseComponent.prototype._setComponentRef = function (ref, value) { if (!this._skipComponentRefResolution && ref) { if (typeof ref === 'function') { ref(value); } if (typeof ref === 'object') { // eslint-disable-next-line @typescript-eslint/no-explicit-any ref.current = value; } } }; return BaseComponent; }(React.Component)); exports.BaseComponent = BaseComponent; /** * Helper to override a given method with a wrapper method that can try/catch the original, but also * ensures that the BaseComponent's methods are called before the subclass's. This ensures that * componentWillUnmount in the base is called and that things in the _disposables array are disposed. */ // eslint-disable-next-line deprecation/deprecation function _makeAllSafe(obj, prototype, methodNames) { for (var i = 0, len = methodNames.length; i < len; i++) { _makeSafe(obj, prototype, methodNames[i]); } } // eslint-disable-next-line deprecation/deprecation function _makeSafe(obj, prototype, methodName) { /* eslint-disable @typescript-eslint/no-explicit-any */ var classMethod = obj[methodName]; var prototypeMethod = prototype[methodName]; if (classMethod || prototypeMethod) { obj[methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } /* eslint-enable @typescript-eslint/no-explicit-any */ var retVal; if (prototypeMethod) { retVal = prototypeMethod.apply(this, args); } if (classMethod !== prototypeMethod) { retVal = classMethod.apply(this, args); } return retVal; }; } } /** * Simple constant function for returning null, used to render empty templates in JSX. * * @public */ function nullRender() { return null; } exports.nullRender = nullRender; //# sourceMappingURL=BaseComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DelayedRender = 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 getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Utility component for delaying the render of a child component after a given delay. This component * requires a single child component; don't pass in many components. Wrap multiple components in a DIV * if necessary. * * @public * {@docCategory DelayedRender} */ var DelayedRender = /** @class */ (function (_super) { tslib_1.__extends(DelayedRender, _super); function DelayedRender(props) { var _this = _super.call(this, props) || this; _this.state = { isRendered: (0, getWindow_1.getWindow)() === undefined, }; return _this; } DelayedRender.prototype.componentDidMount = function () { var _this = this; var delay = this.props.delay; this._timeoutId = window.setTimeout(function () { _this.setState({ isRendered: true, }); }, delay); }; DelayedRender.prototype.componentWillUnmount = function () { if (this._timeoutId) { clearTimeout(this._timeoutId); } }; DelayedRender.prototype.render = function () { return this.state.isRendered ? React.Children.only(this.props.children) : null; }; DelayedRender.defaultProps = { delay: 0, }; return DelayedRender; }(React.Component)); exports.DelayedRender = DelayedRender; //# sourceMappingURL=DelayedRender.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EventGroup = void 0; var object_1 = __webpack_require__(/*! ./object */ "./node_modules/@fluentui/utilities/lib-commonjs/object.js"); /** An instance of EventGroup allows anything with a handle to it to trigger events on it. * If the target is an HTMLElement, the event will be attached to the element and can be * triggered as usual (like clicking for onClick). * The event can be triggered by calling EventGroup.raise() here. If the target is an * HTMLElement, the event gets raised and is handled by the browser. Otherwise, it gets * handled here in EventGroup, and the handler is called in the context of the parent * (which is passed in in the constructor). * * @public * {@docCategory EventGroup} */ var EventGroup = /** @class */ (function () { /** parent: the context in which events attached to non-HTMLElements are called */ function EventGroup(parent) { this._id = EventGroup._uniqueId++; this._parent = parent; this._eventRecords = []; } /** For IE8, bubbleEvent is ignored here and must be dealt with by the handler. * Events raised here by default have bubbling set to false and cancelable set to true. * This applies also to built-in events being raised manually here on HTMLElements, * which may lead to unexpected behavior if it differs from the defaults. * */ EventGroup.raise = function (target, eventName, eventArgs, bubbleEvent) { var retVal; if (EventGroup._isElement(target)) { if (typeof document !== 'undefined' && document.createEvent) { var ev = document.createEvent('HTMLEvents'); // eslint-disable-next-line deprecation/deprecation ev.initEvent(eventName, bubbleEvent || false, true); (0, object_1.assign)(ev, eventArgs); retVal = target.dispatchEvent(ev); } else if (typeof document !== 'undefined' && document.createEventObject) { // IE8 var evObj = document.createEventObject(eventArgs); // cannot set cancelBubble on evObj, fireEvent will overwrite it target.fireEvent('on' + eventName, evObj); } } else { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 while (target && retVal !== false) { var events = target.__events__; var eventRecords = events ? events[eventName] : null; if (eventRecords) { for (var id in eventRecords) { if (eventRecords.hasOwnProperty(id)) { var eventRecordList = eventRecords[id]; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 for (var listIndex = 0; retVal !== false && listIndex < eventRecordList.length; listIndex++) { var record = eventRecordList[listIndex]; if (record.objectCallback) { retVal = record.objectCallback.call(record.parent, eventArgs); } } } } } // If the target has a parent, bubble the event up. target = bubbleEvent ? target.parent : null; } } return retVal; }; EventGroup.isObserved = function (target, eventName) { var events = target && target.__events__; return !!events && !!events[eventName]; }; /** Check to see if the target has declared support of the given event. */ EventGroup.isDeclared = function (target, eventName) { var declaredEvents = target && target.__declaredEvents; return !!declaredEvents && !!declaredEvents[eventName]; }; EventGroup.stopPropagation = function (event) { if (event.stopPropagation) { event.stopPropagation(); } else { // IE8 event.cancelBubble = true; } }; EventGroup._isElement = function (target) { return (!!target && (!!target.addEventListener || (typeof HTMLElement !== 'undefined' && target instanceof HTMLElement))); }; EventGroup.prototype.dispose = function () { if (!this._isDisposed) { this._isDisposed = true; this.off(); this._parent = null; } }; /** On the target, attach a set of events, where the events object is a name to function mapping. */ EventGroup.prototype.onAll = function (target, events, useCapture) { for (var eventName in events) { if (events.hasOwnProperty(eventName)) { this.on(target, eventName, events[eventName], useCapture); } } }; /** * On the target, attach an event whose handler will be called in the context of the parent * of this instance of EventGroup. */ EventGroup.prototype.on = function (target, eventName, callback, options) { var _this = this; if (eventName.indexOf(',') > -1) { var events = eventName.split(/[ ,]+/); for (var i = 0; i < events.length; i++) { this.on(target, events[i], callback, options); } } else { var parent_1 = this._parent; var eventRecord = { target: target, eventName: eventName, parent: parent_1, callback: callback, options: options, }; // Initialize and wire up the record on the target, so that it can call the callback if the event fires. var events = (target.__events__ = target.__events__ || {}); events[eventName] = events[eventName] || { count: 0, }; events[eventName][this._id] = events[eventName][this._id] || []; events[eventName][this._id].push(eventRecord); events[eventName].count++; if (EventGroup._isElement(target)) { var processElementEvent = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (_this._isDisposed) { return; } var result; try { result = callback.apply(parent_1, args); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 if (result === false && args[0]) { var e = args[0]; if (e.preventDefault) { e.preventDefault(); } if (e.stopPropagation) { e.stopPropagation(); } e.cancelBubble = true; } } catch (e) { // ignore } return result; }; eventRecord.elementCallback = processElementEvent; if (target.addEventListener) { target.addEventListener(eventName, processElementEvent, options); } else if (target.attachEvent) { // IE8 target.attachEvent('on' + eventName, processElementEvent); } } else { var processObjectEvent = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (_this._isDisposed) { return; } return callback.apply(parent_1, args); }; eventRecord.objectCallback = processObjectEvent; } // Remember the record locally, so that it can be removed. this._eventRecords.push(eventRecord); } }; EventGroup.prototype.off = function (target, eventName, callback, options) { for (var i = 0; i < this._eventRecords.length; i++) { var eventRecord = this._eventRecords[i]; if ((!target || target === eventRecord.target) && (!eventName || eventName === eventRecord.eventName) && (!callback || callback === eventRecord.callback) && (typeof options !== 'boolean' || options === eventRecord.options)) { var events = eventRecord.target.__events__; var targetArrayLookup = events[eventRecord.eventName]; var targetArray = targetArrayLookup ? targetArrayLookup[this._id] : null; // We may have already target's entries, so check for null. if (targetArray) { if (targetArray.length === 1 || !callback) { targetArrayLookup.count -= targetArray.length; delete events[eventRecord.eventName][this._id]; } else { targetArrayLookup.count--; targetArray.splice(targetArray.indexOf(eventRecord), 1); } if (!targetArrayLookup.count) { delete events[eventRecord.eventName]; } } if (eventRecord.elementCallback) { if (eventRecord.target.removeEventListener) { eventRecord.target.removeEventListener(eventRecord.eventName, eventRecord.elementCallback, eventRecord.options); } else if (eventRecord.target.detachEvent) { // IE8 eventRecord.target.detachEvent('on' + eventRecord.eventName, eventRecord.elementCallback); } } this._eventRecords.splice(i--, 1); } } }; /** Trigger the given event in the context of this instance of EventGroup. */ EventGroup.prototype.raise = function (eventName, eventArgs, bubbleEvent) { return EventGroup.raise(this._parent, eventName, eventArgs, bubbleEvent); }; /** Declare an event as being supported by this instance of EventGroup. */ EventGroup.prototype.declare = function (event) { var declaredEvents = (this._parent.__declaredEvents = this._parent.__declaredEvents || {}); if (typeof event === 'string') { declaredEvents[event] = true; } else { for (var i = 0; i < event.length; i++) { declaredEvents[event[i]] = true; } } }; EventGroup._uniqueId = 0; return EventGroup; }()); exports.EventGroup = EventGroup; //# sourceMappingURL=EventGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FabricPerformance = void 0; var now = function () { return typeof performance !== 'undefined' && !!performance.now ? performance.now() : Date.now(); }; var RESET_INTERVAL = 3 * 60 * 1000; // auto reset every 3 minutes /** * Performance helper class for measuring things. * * @public * {@docCategory FabricPerformance} */ var FabricPerformance = /** @class */ (function () { function FabricPerformance() { } /** * Measures execution time of the given syncronous function. If the same logic is executed multiple times, * each individual measurement will be collected as well the overall numbers. * @param name - The name of this measurement * @param func - The logic to be measured for execution time */ FabricPerformance.measure = function (name, func) { if (FabricPerformance._timeoutId) { FabricPerformance.setPeriodicReset(); } var start = now(); func(); var end = now(); var measurement = FabricPerformance.summary[name] || { totalDuration: 0, count: 0, all: [], }; var duration = end - start; measurement.totalDuration += duration; measurement.count++; measurement.all.push({ duration: duration, timeStamp: end, }); FabricPerformance.summary[name] = measurement; }; FabricPerformance.reset = function () { FabricPerformance.summary = {}; clearTimeout(FabricPerformance._timeoutId); FabricPerformance._timeoutId = NaN; }; FabricPerformance.setPeriodicReset = function () { FabricPerformance._timeoutId = setTimeout(function () { return FabricPerformance.reset(); }, RESET_INTERVAL); }; FabricPerformance.summary = {}; return FabricPerformance; }()); exports.FabricPerformance = FabricPerformance; //# sourceMappingURL=FabricPerformance.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusRectsProvider = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useFocusRects_1 = __webpack_require__(/*! ./useFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js"); var FocusRectsProvider = function (props) { var providerRef = props.providerRef, layerRoot = props.layerRoot; var registeredProviders = React.useState([])[0]; var parentContext = React.useContext(useFocusRects_1.FocusRectsContext); // Inherit the parent context if it exists, unless this is a layer root. // This allows the topmost provider element in the DOM tree to handle the focus events. // Since layers are in a separate HTML tree from their parent, they shouldn't use the parent's providerRef. var inheritParentContext = parentContext !== undefined && !layerRoot; var context = React.useMemo(function () { return inheritParentContext ? undefined : { providerRef: providerRef, registeredProviders: registeredProviders, registerProvider: function (ref) { // Register this child provider with the current context, and any parent contexts registeredProviders.push(ref); parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerProvider(ref); }, unregisterProvider: function (ref) { parentContext === null || parentContext === void 0 ? void 0 : parentContext.unregisterProvider(ref); var i = registeredProviders.indexOf(ref); if (i >= 0) { registeredProviders.splice(i, 1); } }, }; }, [providerRef, registeredProviders, parentContext, inheritParentContext]); React.useEffect(function () { if (context) { context.registerProvider(context.providerRef); return function () { return context.unregisterProvider(context.providerRef); }; } }, [context]); // Create a new context provider if this is not inheriting from the parent. if (context) { return React.createElement(useFocusRects_1.FocusRectsContext.Provider, { value: context }, props.children); } else { return React.createElement(React.Fragment, null, props.children); } }; exports.FocusRectsProvider = FocusRectsProvider; //# sourceMappingURL=FocusRectsProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GlobalSettings = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Storing global state in local module variables has issues when more than one copy * if the module gets loaded on the page (due to a bundling error or simply by consuming * a prebundled script.) * * This file contains helpers to deal with the getting and setting local state, and allows * callers to get called back when it mutates. */ var GLOBAL_SETTINGS_PROP_NAME = '__globalSettings__'; var CALLBACK_STATE_PROP_NAME = '__callbacks__'; var _counter = 0; /** * Global settings helper, which stores settings in the global (window) namespace. * If window is not provided, it will store settings in module scope. Provides a * way to observe changes as well when their values change. * * @public * {@docCategory GlobalSettings} */ var GlobalSettings = /** @class */ (function () { function GlobalSettings() { } GlobalSettings.getValue = function (key, defaultValue) { var globalSettings = _getGlobalSettings(); if (globalSettings[key] === undefined) { globalSettings[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue; } return globalSettings[key]; }; GlobalSettings.setValue = function (key, value) { var globalSettings = _getGlobalSettings(); var callbacks = globalSettings[CALLBACK_STATE_PROP_NAME]; var oldValue = globalSettings[key]; if (value !== oldValue) { globalSettings[key] = value; var changeDescription = { oldValue: oldValue, value: value, key: key, }; for (var id in callbacks) { if (callbacks.hasOwnProperty(id)) { callbacks[id](changeDescription); } } } return value; }; GlobalSettings.addChangeListener = function (cb) { // Note: we use generated ids on the callbacks to create a map of the callbacks, which optimizes removal. // (It's faster to delete a key than it is to look up the index of an object and splice an array.) var id = cb.__id__; var callbacks = _getCallbacks(); if (!id) { id = cb.__id__ = String(_counter++); } callbacks[id] = cb; }; GlobalSettings.removeChangeListener = function (cb) { var callbacks = _getCallbacks(); delete callbacks[cb.__id__]; }; return GlobalSettings; }()); exports.GlobalSettings = GlobalSettings; // eslint-disable-next-line @typescript-eslint/no-explicit-any function _getGlobalSettings() { var _a; var win = (0, getWindow_1.getWindow)(); // eslint-disable-next-line @typescript-eslint/no-explicit-any var globalObj = win || {}; if (!globalObj[GLOBAL_SETTINGS_PROP_NAME]) { globalObj[GLOBAL_SETTINGS_PROP_NAME] = (_a = {}, _a[CALLBACK_STATE_PROP_NAME] = {}, _a); } return globalObj[GLOBAL_SETTINGS_PROP_NAME]; } function _getCallbacks() { var globalSettings = _getGlobalSettings(); return globalSettings[CALLBACK_STATE_PROP_NAME]; } //# sourceMappingURL=GlobalSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeyCodes = void 0; /** * Simulated enum for keycodes. These will get inlined by uglify when used much like an enum * * @public * {@docCategory KeyCodes} */ exports.KeyCodes = { backspace: 8, tab: 9, enter: 13, shift: 16, ctrl: 17, alt: 18, pauseBreak: 19, capslock: 20, escape: 27, space: 32, pageUp: 33, pageDown: 34, end: 35, home: 36, left: 37, up: 38, right: 39, down: 40, insert: 45, del: 46, zero: 48, one: 49, two: 50, three: 51, four: 52, five: 53, six: 54, seven: 55, eight: 56, nine: 57, colon: 58, a: 65, b: 66, c: 67, d: 68, e: 69, f: 70, g: 71, h: 72, i: 73, j: 74, k: 75, l: 76, m: 77, n: 78, o: 79, p: 80, q: 81, r: 82, s: 83, t: 84, u: 85, v: 86, w: 87, x: 88, y: 89, z: 90, leftWindow: 91, rightWindow: 92, select: 93, /* eslint-disable @typescript-eslint/naming-convention */ zero_numpad: 96, one_numpad: 97, two_numpad: 98, three_numpad: 99, four_numpad: 100, five_numpad: 101, six_numpad: 102, seven_numpad: 103, eight_numpad: 104, nine_numpad: 105, /* eslint-enable @typescript-eslint/naming-convention */ multiply: 106, add: 107, subtract: 109, decimalPoint: 110, divide: 111, f1: 112, f2: 113, f3: 114, f4: 115, f5: 116, f6: 117, f7: 118, f8: 119, f9: 120, f10: 121, f11: 122, f12: 123, numlock: 144, scrollLock: 145, semicolon: 186, equalSign: 187, comma: 188, dash: 189, period: 190, forwardSlash: 191, graveAccent: 192, openBracket: 219, backSlash: 220, closeBracket: 221, singleQuote: 222, }; //# sourceMappingURL=KeyCodes.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Rectangle = void 0; /** * Rectangle helper class. * * @public * {@docCategory Rectangle} */ var Rectangle = /** @class */ (function () { function Rectangle(left, right, top, bottom) { if (left === void 0) { left = 0; } if (right === void 0) { right = 0; } if (top === void 0) { top = 0; } if (bottom === void 0) { bottom = 0; } this.top = top; this.bottom = bottom; this.left = left; this.right = right; } Object.defineProperty(Rectangle.prototype, "width", { /** * Calculated automatically by subtracting the right from left */ get: function () { return this.right - this.left; }, enumerable: false, configurable: true }); Object.defineProperty(Rectangle.prototype, "height", { /** * Calculated automatically by subtracting the bottom from top. */ get: function () { return this.bottom - this.top; }, enumerable: false, configurable: true }); /** * Tests if another rect is approximately equal to this rect (within 4 decimal places.) */ Rectangle.prototype.equals = function (rect) { // Fixing to 4 decimal places because it allows enough precision and will handle cases when something // should be rounded, like .999999 should round to 1. return (parseFloat(this.top.toFixed(4)) === parseFloat(rect.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(rect.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(rect.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(rect.right.toFixed(4))); }; return Rectangle; }()); exports.Rectangle = Rectangle; //# sourceMappingURL=Rectangle.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.appendFunction = void 0; /** * Returns a single function which will call each of the given functions in the context of the * parent. */ function appendFunction(parent) { var functions = []; for (var _i = 1; _i < arguments.length; _i++) { functions[_i - 1] = arguments[_i]; } if (functions.length < 2) { return functions[0]; } return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } functions.forEach(function (f) { return f && f.apply(parent, args); }); }; } exports.appendFunction = appendFunction; //# sourceMappingURL=appendFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/aria.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/aria.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeAriaAttributeValues = void 0; /** * ARIA helper to concatenate attributes, returning undefined if all attributes * are undefined. (Empty strings are not a valid ARIA attribute value.) * * @param ariaAttributes - ARIA attributes to merge */ function mergeAriaAttributeValues() { var ariaAttributes = []; for (var _i = 0; _i < arguments.length; _i++) { ariaAttributes[_i] = arguments[_i]; } var mergedAttribute = ariaAttributes .filter(function (arg) { return arg; }) .join(' ') .trim(); return mergedAttribute === '' ? undefined : mergedAttribute; } exports.mergeAriaAttributeValues = mergeAriaAttributeValues; //# sourceMappingURL=aria.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/array.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/array.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.arraysEqual = exports.flatten = exports.addElementAtIndex = exports.replaceElement = exports.removeIndex = exports.toMatrix = exports.createArray = exports.find = exports.findIndex = void 0; /** * Helper to find the index of an item within an array, using a callback to * determine the match. * * @public * @param array - Array to search. * @param cb - Callback which returns true on matches. * @param fromIndex - Optional index to start from (defaults to 0) */ function findIndex(array, cb, fromIndex) { if (fromIndex === void 0) { fromIndex = 0; } var index = -1; for (var i = fromIndex; array && i < array.length; i++) { if (cb(array[i], i)) { index = i; break; } } return index; } exports.findIndex = findIndex; /** * Helper to find the first item within an array that satisfies the callback. * @param array - Array to search * @param cb - Callback which returns true on matches */ function find(array, cb) { var index = findIndex(array, cb); if (index < 0) { return undefined; } return array[index]; } exports.find = find; /** * Creates an array of a given size and helper method to populate. * * @public * @param size - Size of array. * @param getItem - Callback to populate given cell index. */ function createArray(size, getItem) { var array = []; for (var i = 0; i < size; i++) { array.push(getItem(i)); } return array; } exports.createArray = createArray; /** * Convert the given array to a matrix with columnCount number * of columns. * * @public * @param items - The array to convert * @param columnCount - The number of columns for the resulting matrix * @returns A matrix of items */ function toMatrix(items, columnCount) { return items.reduce(function (rows, currentValue, index) { if (index % columnCount === 0) { rows.push([currentValue]); } else { rows[rows.length - 1].push(currentValue); } return rows; }, []); } exports.toMatrix = toMatrix; /** * Given an array, it returns a new array that does not contain the item at the given index. * @param array - The array to operate on * @param index - The index of the element to remove */ function removeIndex(array, index) { return array.filter(function (_, i) { return index !== i; }); } exports.removeIndex = removeIndex; /** * Given an array, this function returns a new array where the element at a given index has been replaced. * @param array - The array to operate on * @param newElement - The element that will be placed in the new array * @param index - The index of the element that should be replaced */ function replaceElement(array, newElement, index) { var copy = array.slice(); copy[index] = newElement; return copy; } exports.replaceElement = replaceElement; /** * Given an array, this function returns a new array where an element has been inserted at the given index. * @param array - The array to operate on * @param index - The index where an element should be inserted * @param itemToAdd - The element to insert */ function addElementAtIndex(array, index, itemToAdd) { var copy = array.slice(); copy.splice(index, 0, itemToAdd); return copy; } exports.addElementAtIndex = addElementAtIndex; /** * Given an array where each element is of type T or T[], flatten it into an array of T * @param array - The array where each element can optionally also be an array */ function flatten(array) { var result = []; array.forEach(function (item) { return (result = result.concat(item)); }); return result; } exports.flatten = flatten; /** * Returns a boolean indicating if the two given arrays are equal in length and values. * * @param array1 - First array to compare * @param array2 - Second array to compare * @returns True if the arrays are the same length and have the same values in the same positions, false otherwise. */ function arraysEqual(array1, array2) { if (array1.length !== array2.length) { return false; } for (var i = 0; i < array1.length; i++) { if (array1[i] !== array2[i]) { return false; } } return true; } exports.arraysEqual = arraysEqual; //# sourceMappingURL=array.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** * asAsync - a HOC for async loading components. * * Usage: * * const AsyncDialog = asAsync({ * load: () => import('Dialog').then(result => result.default), * }); * * React.render(domElement, } { ...dialogProps } />); * * Note the `asyncPlaceholder` prop will be respected when rendering the async component and it hasn't * been loaded yet. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.asAsync = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * If possible, use a WeakMap to maintain a cache of loaded components. * This can be used to synchronously render components that have already been loaded, * rather than having to wait for at least one async tick. */ var _syncModuleCache = typeof WeakMap !== 'undefined' ? // eslint-disable-next-line @typescript-eslint/no-explicit-any new WeakMap() : undefined; /** * Produces a component which internally loads the target component before first mount. * The component passes all props through to the loaded component. * * This overload accepts a module with a default export for the component. */ function asAsync(options) { var Async = /** @class */ (function (_super) { tslib_1.__extends(Async, _super); function Async() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { Component: _syncModuleCache ? _syncModuleCache.get(options.load) : undefined, }; return _this; } Async.prototype.render = function () { // Typescript issue: the rest can't be pulled without the any cast, as TypeScript fails with rest on generics. // eslint-disable-next-line @typescript-eslint/no-explicit-any var _a = this.props, forwardedRef = _a.forwardedRef, Placeholder = _a.asyncPlaceholder, rest = tslib_1.__rest(_a, ["forwardedRef", "asyncPlaceholder"]); var Component = this.state.Component; return Component ? (React.createElement(Component, tslib_1.__assign(tslib_1.__assign({}, rest), { ref: forwardedRef }))) : Placeholder ? (React.createElement(Placeholder, null)) : null; }; Async.prototype.componentDidMount = function () { var _this = this; var Component = this.state.Component; if (!Component) { options .load() .then(function (LoadedComponent) { if (LoadedComponent) { // Cache component for future reference. _syncModuleCache && _syncModuleCache.set(options.load, LoadedComponent); // Set state. _this.setState({ Component: LoadedComponent, }, options.onLoad); } }) .catch(options.onError); } }; return Async; }(React.Component)); return React.forwardRef(function (props, ref) { return React.createElement(Async, tslib_1.__assign({}, props, { forwardedRef: ref })); }); } exports.asAsync = asAsync; //# sourceMappingURL=asAsync.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.assertNever = void 0; /** * AssertNever is a utility function that can be used for exhaustiveness checks in switch statements. * * @public */ function assertNever(x) { throw new Error('Unexpected object: ' + x); } exports.assertNever = assertNever; //# sourceMappingURL=assertNever.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.classNamesFunction = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var rtl_1 = __webpack_require__(/*! ./rtl */ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js"); var dom_1 = __webpack_require__(/*! ./dom */ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js"); var MAX_CACHE_COUNT = 50; var DEFAULT_SPECIFICITY_MULTIPLIER = 5; var _memoizedClassNames = 0; var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(function () { return _memoizedClassNames++; }); } // Note that because of the caching nature within the classNames memoization, // I've disabled this rule to simply be able to work with any types. /* eslint-disable @typescript-eslint/no-explicit-any */ // This represents a prop we attach to each Map to indicate the cached return value // associated with the graph node. var retVal = '__retval__'; /** * Creates a getClassNames function which calls getStyles given the props, and injects them * into mergeStyleSets. * * Note that the props you pass in on every render should be in the same order and * immutable (numbers, strings, and booleans). This will allow the results to be memoized. Violating * these will cause extra recalcs to occur. */ function classNamesFunction(options) { // We build a trie where each node is a Map. The map entry key represents an argument // value, and the entry value is another node (Map). Each node has a `__retval__` // property which is used to hold the cached response. if (options === void 0) { options = {}; } // To derive the response, we can simply ensure the arguments are added or already // exist in the trie. At the last node, if there is a `__retval__` we return that. Otherwise // we call the `getStyles` api to evaluate, cache on the property, and return that. var map = new Map(); var styleCalcCount = 0; var getClassNamesCount = 0; var currentMemoizedClassNames = _memoizedClassNames; var getClassNames = function (styleFunctionOrObject, styleProps) { var _a; if (styleProps === void 0) { styleProps = {}; } // If useStaticStyles is true, styleFunctionOrObject returns slot to classname mappings. // If there is also no style overrides, we can skip merge styles completely and // simply return the result from the style funcion. if (options.useStaticStyles && typeof styleFunctionOrObject === 'function' && styleFunctionOrObject.__noStyleOverride__) { return styleFunctionOrObject(styleProps); } getClassNamesCount++; var current = map; var theme = styleProps.theme; var rtl = theme && theme.rtl !== undefined ? theme.rtl : (0, rtl_1.getRTL)(); var disableCaching = options.disableCaching; // On reset of our stylesheet, reset memoized cache. if (currentMemoizedClassNames !== _memoizedClassNames) { currentMemoizedClassNames = _memoizedClassNames; map = new Map(); styleCalcCount = 0; } if (!options.disableCaching) { current = _traverseMap(map, styleFunctionOrObject); current = _traverseMap(current, styleProps); } if (disableCaching || !current[retVal]) { if (styleFunctionOrObject === undefined) { current[retVal] = {}; } else { current[retVal] = (0, merge_styles_1.mergeCssSets)([ (typeof styleFunctionOrObject === 'function' ? styleFunctionOrObject(styleProps) : styleFunctionOrObject), ], { rtl: !!rtl, specificityMultiplier: options.useStaticStyles ? DEFAULT_SPECIFICITY_MULTIPLIER : undefined }); } if (!disableCaching) { styleCalcCount++; } } if (styleCalcCount > (options.cacheSize || MAX_CACHE_COUNT)) { var win = (0, dom_1.getWindow)(); if ((_a = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _a === void 0 ? void 0 : _a.enableClassNameCacheFullWarning) { // eslint-disable-next-line no-console console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(styleCalcCount, "/").concat(getClassNamesCount, ".")); // eslint-disable-next-line no-console console.trace(); } map.clear(); styleCalcCount = 0; // Mutate the options passed in, that's all we can do. options.disableCaching = true; } // Note: the retVal is an attached property on the Map; not a key in the Map. We use this attached property to // cache the return value for this branch of the graph. return current[retVal]; }; return getClassNames; } exports.classNamesFunction = classNamesFunction; function _traverseEdge(current, value) { value = _normalizeValue(value); if (!current.has(value)) { current.set(value, new Map()); } return current.get(value); } function _traverseMap(current, inputs) { if (typeof inputs === 'function') { var cachedInputsFromStyled = inputs.__cachedInputs__; if (cachedInputsFromStyled) { // The styled helper will generate the styles function and will attach the cached // inputs (consisting of the default styles, customzied styles, and user provided styles.) // These should be used as cache keys for deriving the memoized value. for (var _i = 0, _a = inputs.__cachedInputs__; _i < _a.length; _i++) { var input = _a[_i]; current = _traverseEdge(current, input); } } else { current = _traverseEdge(current, inputs); } } else if (typeof inputs === 'object') { for (var propName in inputs) { if (inputs.hasOwnProperty(propName)) { current = _traverseEdge(current, inputs[propName]); } } } return current; } function _normalizeValue(value) { switch (value) { case undefined: return '__undefined__'; case null: return '__null__'; default: return value; } } //# sourceMappingURL=classNamesFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.composeComponentAs = 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 memoize_1 = __webpack_require__(/*! ../memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); function createComposedComponent(outer) { var Outer = outer; var outerMemoizer = (0, memoize_1.createMemoizer)(function (inner) { if (outer === inner) { throw new Error('Attempted to compose a component with itself.'); } var Inner = inner; var innerMemoizer = (0, memoize_1.createMemoizer)(function (defaultRender) { var InnerWithDefaultRender = function (innerProps) { return React.createElement(Inner, tslib_1.__assign({}, innerProps, { defaultRender: defaultRender })); }; return InnerWithDefaultRender; }); var OuterWithDefaultRender = function (outerProps) { var defaultRender = outerProps.defaultRender; return React.createElement(Outer, tslib_1.__assign({}, outerProps, { defaultRender: defaultRender ? innerMemoizer(defaultRender) : Inner })); }; return OuterWithDefaultRender; }); return outerMemoizer; } var componentAsMemoizer = (0, memoize_1.createMemoizer)(createComposedComponent); /** * Composes two components which conform to the `IComponentAs` specification; that is, two * components which accept a `defaultRender` prop, which is a 'default' implementation of * a component which accepts the same overall props. * * @public */ function composeComponentAs(outer, inner) { return componentAsMemoizer(outer)(inner); } exports.composeComponentAs = composeComponentAs; //# sourceMappingURL=composeComponentAs.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/controlled.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isControlled = void 0; /** * Determines whether a component is controlled. * @param props - Component props * @param valueProp - Prop containing the controlled value * @returns true if controlled, false if uncontrolled */ function isControlled(props, valueProp) { // React's built-in considers a prop to be provided if its value is non-null/undefined. // Mirror that behavior here (rather than checking for just undefined). return props[valueProp] !== undefined && props[valueProp] !== null; } exports.isControlled = isControlled; //# sourceMappingURL=controlled.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createMergedRef = void 0; var array_1 = __webpack_require__(/*! ./array */ "./node_modules/@fluentui/utilities/lib-commonjs/array.js"); /** * Set up a ref resolver function given internal state managed for the ref. * @param local Set */ var createResolver = function (local) { return function (newValue) { for (var _i = 0, _a = local.refs; _i < _a.length; _i++) { var ref = _a[_i]; if (typeof ref === 'function') { ref(newValue); } else if (ref) { // work around the immutability of the React.Ref type ref.current = newValue; } } }; }; /** * Helper to merge refs from within class components. */ var createMergedRef = function (value) { var local = { refs: [], }; return function () { var newRefs = []; for (var _i = 0; _i < arguments.length; _i++) { newRefs[_i] = arguments[_i]; } if (!local.resolver || !(0, array_1.arraysEqual)(local.refs, newRefs)) { local.resolver = createResolver(local); } local.refs = newRefs; return local.resolver; }; }; exports.createMergedRef = createMergedRef; //# sourceMappingURL=createMergedRef.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/css.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/css.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.css = void 0; /** * Concatination helper, which can merge class names together. Skips over falsey values. * * @public */ function css() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var classes = []; for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var arg = args_1[_a]; if (arg) { if (typeof arg === 'string') { classes.push(arg); } else if (arg.hasOwnProperty('toString') && typeof arg.toString === 'function') { classes.push(arg.toString()); } else { // eslint-disable-next-line @typescript-eslint/no-explicit-any for (var key in arg) { // eslint-disable-next-line @typescript-eslint/no-explicit-any if (arg[key]) { classes.push(key); } } } } } return classes.join(' '); } exports.css = css; //# sourceMappingURL=css.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Customizations = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var GlobalSettings_1 = __webpack_require__(/*! ../GlobalSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js"); var CustomizationsGlobalKey = 'customizations'; var NO_CUSTOMIZATIONS = { settings: {}, scopedSettings: {}, inCustomizerContext: false }; var _allSettings = GlobalSettings_1.GlobalSettings.getValue(CustomizationsGlobalKey, { settings: {}, scopedSettings: {}, inCustomizerContext: false, }); var _events = []; var Customizations = /** @class */ (function () { function Customizations() { } Customizations.reset = function () { _allSettings.settings = {}; _allSettings.scopedSettings = {}; }; /** Apply global Customization settings. * @example Customizations.applySettings(\{ theme: \{...\} \}); */ Customizations.applySettings = function (settings) { _allSettings.settings = tslib_1.__assign(tslib_1.__assign({}, _allSettings.settings), settings); Customizations._raiseChange(); }; /** Apply Customizations to a particular named scope, like a component. * @example Customizations.applyScopedSettings('Nav', \{ styles: () =\> \{\} \}); */ Customizations.applyScopedSettings = function (scopeName, settings) { _allSettings.scopedSettings[scopeName] = tslib_1.__assign(tslib_1.__assign({}, _allSettings.scopedSettings[scopeName]), settings); Customizations._raiseChange(); }; Customizations.getSettings = function (properties, scopeName, localSettings) { if (localSettings === void 0) { localSettings = NO_CUSTOMIZATIONS; } var settings = {}; var localScopedSettings = (scopeName && localSettings.scopedSettings[scopeName]) || {}; var globalScopedSettings = (scopeName && _allSettings.scopedSettings[scopeName]) || {}; for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) { var property = properties_1[_i]; settings[property] = localScopedSettings[property] || localSettings.settings[property] || globalScopedSettings[property] || _allSettings.settings[property]; } return settings; }; /** Used to run some code that sets Customizations without triggering an update until the end. * Useful for applying Customizations that don't affect anything currently rendered, or for * applying many customizations at once. * @param suppressUpdate - Do not raise the change event at the end, preventing all updates */ Customizations.applyBatchedUpdates = function (code, suppressUpdate) { Customizations._suppressUpdates = true; try { code(); } catch (_a) { /* do nothing */ } Customizations._suppressUpdates = false; if (!suppressUpdate) { Customizations._raiseChange(); } }; Customizations.observe = function (onChange) { _events.push(onChange); }; Customizations.unobserve = function (onChange) { _events = _events.filter(function (cb) { return cb !== onChange; }); }; Customizations._raiseChange = function () { if (!Customizations._suppressUpdates) { _events.forEach(function (cb) { return cb(); }); } }; return Customizations; }()); exports.Customizations = Customizations; //# sourceMappingURL=Customizations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Customizer = 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 Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); var mergeCustomizations_1 = __webpack_require__(/*! ./mergeCustomizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js"); /** * The Customizer component allows for default props to be mixed into components which * are decorated with the customizable() decorator, or use the styled HOC. This enables * injection scenarios like: * * 1. render svg icons instead of the icon font within all buttons * 2. inject a custom theme object into a component * * Props are provided via the settings prop which should be one of the following: * - A json map which contains 1 or more name/value pairs representing injectable props. * - A function that receives the current settings and returns the new ones that apply to the scope * * @public * * @deprecated This component is deprecated for purpose of applying theme to components * as of `@fluentui/react` version 8. Use `ThemeProvider` for applying theme instead. */ var Customizer = /** @class */ (function (_super) { tslib_1.__extends(Customizer, _super); function Customizer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._onCustomizationChange = function () { return _this.forceUpdate(); }; return _this; } Customizer.prototype.componentDidMount = function () { Customizations_1.Customizations.observe(this._onCustomizationChange); }; Customizer.prototype.componentWillUnmount = function () { Customizations_1.Customizations.unobserve(this._onCustomizationChange); }; Customizer.prototype.render = function () { var _this = this; var contextTransform = this.props.contextTransform; return (React.createElement(CustomizerContext_1.CustomizerContext.Consumer, null, function (parentContext) { var newContext = (0, mergeCustomizations_1.mergeCustomizations)(_this.props, parentContext); if (contextTransform) { newContext = contextTransform(newContext); } return React.createElement(CustomizerContext_1.CustomizerContext.Provider, { value: newContext }, _this.props.children); })); }; return Customizer; }(React.Component)); exports.Customizer = Customizer; //# sourceMappingURL=Customizer.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CustomizerContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.CustomizerContext = React.createContext({ customizations: { inCustomizerContext: false, settings: {}, scopedSettings: {}, }, }); //# sourceMappingURL=CustomizerContext.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.customizable = 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 Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var hoistStatics_1 = __webpack_require__(/*! ../hoistStatics */ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); function customizable(scope, fields, concatStyles) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return function customizableFactory(ComposedComponent) { var _a; var resultClass = (_a = /** @class */ (function (_super) { tslib_1.__extends(ComponentWithInjectedProps, _super); function ComponentWithInjectedProps(props) { var _this = _super.call(this, props) || this; // eslint-disable-next-line @typescript-eslint/no-explicit-any _this._styleCache = {}; _this._onSettingChanged = _this._onSettingChanged.bind(_this); return _this; } ComponentWithInjectedProps.prototype.componentDidMount = function () { Customizations_1.Customizations.observe(this._onSettingChanged); }; ComponentWithInjectedProps.prototype.componentWillUnmount = function () { Customizations_1.Customizations.unobserve(this._onSettingChanged); }; ComponentWithInjectedProps.prototype.render = function () { var _this = this; return (React.createElement(CustomizerContext_1.CustomizerContext.Consumer, null, function (context) { var defaultProps = Customizations_1.Customizations.getSettings(fields, scope, context.customizations); // eslint-disable-next-line @typescript-eslint/no-explicit-any var componentProps = _this.props; // If defaultProps.styles is a function, evaluate it before calling concatStyleSets if (defaultProps.styles && typeof defaultProps.styles === 'function') { defaultProps.styles = defaultProps.styles(tslib_1.__assign(tslib_1.__assign({}, defaultProps), componentProps)); } // If concatStyles is true and custom styles have been defined compute those styles if (concatStyles && defaultProps.styles) { if (_this._styleCache.default !== defaultProps.styles || _this._styleCache.component !== componentProps.styles) { var mergedStyles = (0, merge_styles_1.concatStyleSets)(defaultProps.styles, componentProps.styles); _this._styleCache.default = defaultProps.styles; _this._styleCache.component = componentProps.styles; _this._styleCache.merged = mergedStyles; } return React.createElement(ComposedComponent, tslib_1.__assign({}, defaultProps, componentProps, { styles: _this._styleCache.merged })); } return React.createElement(ComposedComponent, tslib_1.__assign({}, defaultProps, componentProps)); })); }; ComponentWithInjectedProps.prototype._onSettingChanged = function () { this.forceUpdate(); }; return ComponentWithInjectedProps; }(React.Component)), _a.displayName = 'Customized' + scope, _a); return (0, hoistStatics_1.hoistStatics)(ComposedComponent, resultClass); }; } exports.customizable = customizable; //# sourceMappingURL=customizable.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeCustomizations = void 0; var mergeSettings_1 = __webpack_require__(/*! ./mergeSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js"); /** * Merge props and customizations giving priority to props over context. * NOTE: This function will always perform multiple merge operations. Use with caution. * @param props - New settings to merge in. * @param parentContext - Context containing current settings. * @returns Merged customizations. */ function mergeCustomizations(props, parentContext) { var _a = (parentContext || {}).customizations, customizations = _a === void 0 ? { settings: {}, scopedSettings: {} } : _a; return { customizations: { settings: (0, mergeSettings_1.mergeSettings)(customizations.settings, props.settings), scopedSettings: (0, mergeSettings_1.mergeScopedSettings)(customizations.scopedSettings, props.scopedSettings), inCustomizerContext: true, }, }; } exports.mergeCustomizations = mergeCustomizations; //# sourceMappingURL=mergeCustomizations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeScopedSettings = exports.mergeSettings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Merge new and old settings, giving priority to new settings. * New settings is optional in which case oldSettings is returned as-is. * @param oldSettings - Old settings to fall back to. * @param newSettings - New settings that will be merged over oldSettings. * @returns Merged settings. */ function mergeSettings(oldSettings, newSettings) { if (oldSettings === void 0) { oldSettings = {}; } var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _settingsMergeWith(newSettings); return mergeSettingsWith(oldSettings); } exports.mergeSettings = mergeSettings; function mergeScopedSettings(oldSettings, newSettings) { if (oldSettings === void 0) { oldSettings = {}; } var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _scopedSettingsMergeWith(newSettings); return mergeSettingsWith(oldSettings); } exports.mergeScopedSettings = mergeScopedSettings; function _isSettingsFunction(settings) { return typeof settings === 'function'; } function _settingsMergeWith(newSettings) { return function (settings) { return (newSettings ? tslib_1.__assign(tslib_1.__assign({}, settings), newSettings) : settings); }; } function _scopedSettingsMergeWith(scopedSettingsFromProps) { if (scopedSettingsFromProps === void 0) { scopedSettingsFromProps = {}; } return function (oldScopedSettings) { var newScopedSettings = tslib_1.__assign({}, oldScopedSettings); for (var scopeName in scopedSettingsFromProps) { if (scopedSettingsFromProps.hasOwnProperty(scopeName)) { newScopedSettings[scopeName] = tslib_1.__assign(tslib_1.__assign({}, oldScopedSettings[scopeName]), scopedSettingsFromProps[scopeName]); } } return newScopedSettings; }; } //# sourceMappingURL=mergeSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useCustomizationSettings = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); /** * Hook to get Customizations settings from Customizations singleton or CustomizerContext. * It will trigger component state update on settings change observed. */ function useCustomizationSettings(properties, scopeName) { var forceUpdate = useForceUpdate(); var customizations = React.useContext(CustomizerContext_1.CustomizerContext).customizations; var inCustomizerContext = customizations.inCustomizerContext; React.useEffect(function () { if (!inCustomizerContext) { Customizations_1.Customizations.observe(forceUpdate); } return function () { if (!inCustomizerContext) { Customizations_1.Customizations.unobserve(forceUpdate); } }; // eslint-disable-next-line react-hooks/exhaustive-deps -- exclude forceUpdate }, [inCustomizerContext]); return Customizations_1.Customizations.getSettings(properties, scopeName, customizations); } exports.useCustomizationSettings = useCustomizationSettings; function useForceUpdate() { var _a = React.useState(0), setValue = _a[1]; return function () { return setValue(function (value) { return ++value; }); }; } //# sourceMappingURL=useCustomizationSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVirtualParent = exports.setPortalAttribute = exports.DATA_PORTAL_ATTRIBUTE = exports.raiseClick = exports.portalContainsElement = exports.on = exports.isVirtualElement = exports.getWindow = exports.getVirtualParent = exports.getRect = exports.getParent = exports.getFirstVisibleElementFromSelector = exports.getDocument = exports.getChildren = exports.findElementRecursive = exports.elementContainsAttribute = exports.elementContains = void 0; var elementContains_1 = __webpack_require__(/*! ./dom/elementContains */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js"); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return elementContains_1.elementContains; } })); var elementContainsAttribute_1 = __webpack_require__(/*! ./dom/elementContainsAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js"); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return elementContainsAttribute_1.elementContainsAttribute; } })); var findElementRecursive_1 = __webpack_require__(/*! ./dom/findElementRecursive */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js"); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return findElementRecursive_1.findElementRecursive; } })); var getChildren_1 = __webpack_require__(/*! ./dom/getChildren */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js"); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return getChildren_1.getChildren; } })); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); Object.defineProperty(exports, "getDocument", ({ enumerable: true, get: function () { return getDocument_1.getDocument; } })); var getFirstVisibleElementFromSelector_1 = __webpack_require__(/*! ./dom/getFirstVisibleElementFromSelector */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js"); Object.defineProperty(exports, "getFirstVisibleElementFromSelector", ({ enumerable: true, get: function () { return getFirstVisibleElementFromSelector_1.getFirstVisibleElementFromSelector; } })); var getParent_1 = __webpack_require__(/*! ./dom/getParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js"); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return getParent_1.getParent; } })); var getRect_1 = __webpack_require__(/*! ./dom/getRect */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js"); Object.defineProperty(exports, "getRect", ({ enumerable: true, get: function () { return getRect_1.getRect; } })); var getVirtualParent_1 = __webpack_require__(/*! ./dom/getVirtualParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js"); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return getVirtualParent_1.getVirtualParent; } })); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); Object.defineProperty(exports, "getWindow", ({ enumerable: true, get: function () { return getWindow_1.getWindow; } })); var isVirtualElement_1 = __webpack_require__(/*! ./dom/isVirtualElement */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js"); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return isVirtualElement_1.isVirtualElement; } })); var on_1 = __webpack_require__(/*! ./dom/on */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js"); Object.defineProperty(exports, "on", ({ enumerable: true, get: function () { return on_1.on; } })); var portalContainsElement_1 = __webpack_require__(/*! ./dom/portalContainsElement */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js"); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return portalContainsElement_1.portalContainsElement; } })); var raiseClick_1 = __webpack_require__(/*! ./dom/raiseClick */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "raiseClick", ({ enumerable: true, get: function () { return raiseClick_1.raiseClick; } })); var setPortalAttribute_1 = __webpack_require__(/*! ./dom/setPortalAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return setPortalAttribute_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return setPortalAttribute_1.setPortalAttribute; } })); var setVirtualParent_1 = __webpack_require__(/*! ./dom/setVirtualParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js"); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return setVirtualParent_1.setVirtualParent; } })); //# sourceMappingURL=dom.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.canUseDOM = void 0; /** * Verifies if an application can use DOM. */ function canUseDOM() { return (typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line deprecation/deprecation window.document.createElement)); } exports.canUseDOM = canUseDOM; //# sourceMappingURL=canUseDOM.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContains = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return dom_utilities_1.elementContains; } })); //# sourceMappingURL=elementContains.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContainsAttribute = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return dom_utilities_1.elementContainsAttribute; } })); //# sourceMappingURL=elementContainsAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findElementRecursive = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return dom_utilities_1.findElementRecursive; } })); //# sourceMappingURL=findElementRecursive.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getChildren = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return dom_utilities_1.getChildren; } })); //# sourceMappingURL=getChildren.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDocument = void 0; var canUseDOM_1 = __webpack_require__(/*! ./canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); /** * Helper to get the document object. Note that in popup window cases, document * might be the wrong document, which is why we look at ownerDocument for the * truth. * * @public */ function getDocument(rootElement) { if (!(0, canUseDOM_1.canUseDOM)() || typeof document === 'undefined') { return undefined; } else { var el = rootElement; return el && el.ownerDocument ? el.ownerDocument : document; } } exports.getDocument = getDocument; //# sourceMappingURL=getDocument.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFirstVisibleElementFromSelector = void 0; var focus_1 = __webpack_require__(/*! ../focus */ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js"); var getDocument_1 = __webpack_require__(/*! ./getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); /** * Gets the first visible element that matches the given selector * @param selector - The selector to use to find potential visible elements * @returns The first visible element that matches the selector, otherwise undefined * * @public */ function getFirstVisibleElementFromSelector(selector) { var elements = (0, getDocument_1.getDocument)().querySelectorAll(selector); // Iterate across the elements that match the selector and return the first visible/non-hidden element return Array.from(elements).find(function (element) { return (0, focus_1.isElementVisibleAndNotHidden)(element); }); } exports.getFirstVisibleElementFromSelector = getFirstVisibleElementFromSelector; //# sourceMappingURL=getFirstVisibleElementFromSelector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return dom_utilities_1.getParent; } })); //# sourceMappingURL=getParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRect = void 0; /** * Helper to get bounding client rect. Passing in window will get the window size. * * @public */ function getRect(element) { var rect; if (element) { if (element === window) { rect = { left: 0, top: 0, width: window.innerWidth, height: window.innerHeight, right: window.innerWidth, bottom: window.innerHeight, }; } else if (element.getBoundingClientRect) { rect = element.getBoundingClientRect(); } } return rect; } exports.getRect = getRect; //# sourceMappingURL=getRect.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getVirtualParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return dom_utilities_1.getVirtualParent; } })); //# sourceMappingURL=getVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getWindow = void 0; var canUseDOM_1 = __webpack_require__(/*! ./canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); var _window = undefined; // Note: Accessing "window" in IE11 is somewhat expensive, and calling "typeof window" // hits a memory leak, whereas aliasing it and calling "typeof _window" does not. // Caching the window value at the file scope lets us minimize the impact. try { _window = window; } catch (e) { /* no-op */ } /** * Helper to get the window object. The helper will make sure to use a cached variable * of "window", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the * window object won't match the "global" window object, and for these scenarios, you should * pass in an element hosted within the popup. * * @public */ function getWindow(rootElement) { if (!(0, canUseDOM_1.canUseDOM)() || typeof _window === 'undefined') { return undefined; } else { var el = rootElement; return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window; } } exports.getWindow = getWindow; //# sourceMappingURL=getWindow.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isVirtualElement = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return dom_utilities_1.isVirtualElement; } })); //# sourceMappingURL=isVirtualElement.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.on = void 0; function on(element, eventName, callback, options) { element.addEventListener(eventName, callback, options); return function () { return element.removeEventListener(eventName, callback, options); }; } exports.on = on; //# sourceMappingURL=on.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.portalContainsElement = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return dom_utilities_1.portalContainsElement; } })); //# sourceMappingURL=portalContainsElement.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.raiseClick = void 0; /** Raises a click event. * @deprecated Moved to `FocusZone` component since it was the only place internally using this function. */ function raiseClick(target) { var event = createNewEvent('MouseEvents'); // eslint-disable-next-line deprecation/deprecation event.initEvent('click', true, true); target.dispatchEvent(event); } exports.raiseClick = raiseClick; function createNewEvent(eventName) { var event; if (typeof Event === 'function') { // Chrome, Opera, Firefox event = new Event(eventName); } else { // IE event = document.createEvent('Event'); // eslint-disable-next-line deprecation/deprecation event.initEvent(eventName, true, true); } return event; } //# sourceMappingURL=raiseClick.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setPortalAttribute = exports.DATA_PORTAL_ATTRIBUTE = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return dom_utilities_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return dom_utilities_1.setPortalAttribute; } })); //# sourceMappingURL=setPortalAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setSSR = exports._isSSR = void 0; /** * @deprecated Use `canUseDOM` from `@fluentui/utilities` instead. */ exports._isSSR = false; /** * Helper to set ssr mode to simulate no window object returned from getWindow helper. * * @deprecated Use `canUseDOM` from `@fluentui/utilities` instead. */ function setSSR(isEnabled) { throw new Error('setSSR has been deprecated and is not used in any utilities anymore.' + ' Use canUseDOM from @fluentui/utilities instead.'); } exports.setSSR = setSSR; //# sourceMappingURL=setSSR.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVirtualParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return dom_utilities_1.setVirtualParent; } })); //# sourceMappingURL=setVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.extendComponent = void 0; var appendFunction_1 = __webpack_require__(/*! ./appendFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js"); /** * Extends a component's lifetime methods by appending new functions to the existing lifetime functions. */ function extendComponent(parent, methods) { for (var name_1 in methods) { if (methods.hasOwnProperty(name_1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any parent[name_1] = (0, appendFunction_1.appendFunction)(parent, parent[name_1], methods[name_1]); } } } exports.extendComponent = extendComponent; //# sourceMappingURL=extendComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/focus.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getElementIndexPath = exports.getFocusableByIndexPath = exports.focusAsync = exports.shouldWrapFocus = exports.doesElementContainFocus = exports.isElementFocusSubZone = exports.isElementFocusZone = exports.isElementTabbable = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.getNextElement = exports.getPreviousElement = exports.focusFirstChild = exports.getLastTabbable = exports.getFirstTabbable = exports.getLastFocusable = exports.getFirstFocusable = void 0; var elementContainsAttribute_1 = __webpack_require__(/*! ./dom/elementContainsAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js"); var elementContains_1 = __webpack_require__(/*! ./dom/elementContains */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js"); var getParent_1 = __webpack_require__(/*! ./dom/getParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'; var IS_VISIBLE_ATTRIBUTE = 'data-is-visible'; var FOCUSZONE_ID_ATTRIBUTE = 'data-focuszone-id'; var FOCUSZONE_SUB_ATTRIBUTE = 'data-is-sub-focuszone'; /** * Gets the first focusable element. * * @public */ function getFirstFocusable(rootElement, currentElement, includeElementsInFocusZones) { return getNextElement(rootElement, currentElement, true /*checkNode*/, false /*suppressParentTraversal*/, false /*suppressChildTraversal*/, includeElementsInFocusZones); } exports.getFirstFocusable = getFirstFocusable; /** * Gets the last focusable element. * * @public */ function getLastFocusable(rootElement, currentElement, includeElementsInFocusZones) { return getPreviousElement(rootElement, currentElement, true /*checkNode*/, false /*suppressParentTraversal*/, true /*traverseChildren*/, includeElementsInFocusZones); } exports.getLastFocusable = getLastFocusable; /** * Gets the first tabbable element. (The difference between focusable and tabbable is that tabbable elements are * focusable elements that also have tabIndex != -1.) * @param rootElement - The parent element to search beneath. * @param currentElement - The descendant of rootElement to start the search at. This element is the first one checked, * and iteration continues forward. Typical use passes rootElement.firstChild. * @param includeElementsInFocusZones - true if traversal should go into FocusZone descendants. * @param checkNode - Include currentElement in search when true. Defaults to true. * @public */ function getFirstTabbable(rootElement, currentElement, includeElementsInFocusZones, checkNode) { if (checkNode === void 0) { checkNode = true; } return getNextElement(rootElement, currentElement, checkNode, false /*suppressParentTraversal*/, false /*suppressChildTraversal*/, includeElementsInFocusZones, false /*allowFocusRoot*/, true /*tabbable*/); } exports.getFirstTabbable = getFirstTabbable; /** * Gets the last tabbable element. (The difference between focusable and tabbable is that tabbable elements are * focusable elements that also have tabIndex != -1.) * @param rootElement - The parent element to search beneath. * @param currentElement - The descendant of rootElement to start the search at. This element is the first one checked, * and iteration continues in reverse. Typical use passes rootElement.lastChild. * @param includeElementsInFocusZones - true if traversal should go into FocusZone descendants. * @param checkNode - Include currentElement in search when true. Defaults to true. * @public */ function getLastTabbable(rootElement, currentElement, includeElementsInFocusZones, checkNode) { if (checkNode === void 0) { checkNode = true; } return getPreviousElement(rootElement, currentElement, checkNode, false /*suppressParentTraversal*/, true /*traverseChildren*/, includeElementsInFocusZones, false /*allowFocusRoot*/, true /*tabbable*/); } exports.getLastTabbable = getLastTabbable; /** * Attempts to focus the first focusable element that is a child or child's child of the rootElement. * * @public * @param rootElement - Element to start the search for a focusable child. * @param bypassHiddenElements - If true, focus will be not be set on hidden elements. * @returns True if focus was set, false if it was not. */ function focusFirstChild(rootElement, bypassHiddenElements) { var element = getNextElement(rootElement, rootElement, true, false, false, true, undefined, undefined, bypassHiddenElements); if (element) { focusAsync(element); return true; } return false; } exports.focusFirstChild = focusFirstChild; /** * Traverse to find the previous element. * If tabbable is true, the element must have tabIndex != -1. * * @public */ function getPreviousElement(rootElement, currentElement, checkNode, suppressParentTraversal, traverseChildren, includeElementsInFocusZones, allowFocusRoot, tabbable) { if (!currentElement || (!allowFocusRoot && currentElement === rootElement)) { return null; } var isCurrentElementVisible = isElementVisible(currentElement); // Check its children. if (traverseChildren && isCurrentElementVisible && (includeElementsInFocusZones || !(isElementFocusZone(currentElement) || isElementFocusSubZone(currentElement)))) { var childMatch = getPreviousElement(rootElement, currentElement.lastElementChild, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatch) { if ((tabbable && isElementTabbable(childMatch, true)) || !tabbable) { return childMatch; } var childMatchSiblingMatch = getPreviousElement(rootElement, childMatch.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatchSiblingMatch) { return childMatchSiblingMatch; } var childMatchParent = childMatch.parentElement; // At this point if we have not found any potential matches // start looking at the rest of the subtree under the currentParent. // NOTE: We do not want to recurse here because doing so could // cause elements to get skipped. while (childMatchParent && childMatchParent !== currentElement) { var childMatchParentMatch = getPreviousElement(rootElement, childMatchParent.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatchParentMatch) { return childMatchParentMatch; } childMatchParent = childMatchParent.parentElement; } } } // Check the current node, if it's not the first traversal. if (checkNode && isCurrentElementVisible && isElementTabbable(currentElement, tabbable)) { return currentElement; } // Check its previous sibling. var siblingMatch = getPreviousElement(rootElement, currentElement.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (siblingMatch) { return siblingMatch; } // Check its parent. if (!suppressParentTraversal) { return getPreviousElement(rootElement, currentElement.parentElement, true, false, false, includeElementsInFocusZones, allowFocusRoot, tabbable); } return null; } exports.getPreviousElement = getPreviousElement; /** * Traverse to find the next focusable element. * If tabbable is true, the element must have tabIndex != -1. * * @public * @param checkNode - Include currentElement in search when true. */ function getNextElement(rootElement, currentElement, checkNode, suppressParentTraversal, suppressChildTraversal, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements) { if (!currentElement || (currentElement === rootElement && suppressChildTraversal && !allowFocusRoot)) { return null; } var checkElementVisibility = bypassHiddenElements ? isElementVisibleAndNotHidden : isElementVisible; var isCurrentElementVisible = checkElementVisibility(currentElement); // Check the current node, if it's not the first traversal. if (checkNode && isCurrentElementVisible && isElementTabbable(currentElement, tabbable)) { return currentElement; } // Check its children. if (!suppressChildTraversal && isCurrentElementVisible && (includeElementsInFocusZones || !(isElementFocusZone(currentElement) || isElementFocusSubZone(currentElement)))) { var childMatch = getNextElement(rootElement, currentElement.firstElementChild, true, true, false, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); if (childMatch) { return childMatch; } } if (currentElement === rootElement) { return null; } // Check its sibling. var siblingMatch = getNextElement(rootElement, currentElement.nextElementSibling, true, true, false, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); if (siblingMatch) { return siblingMatch; } if (!suppressParentTraversal) { return getNextElement(rootElement, currentElement.parentElement, false, false, true, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); } return null; } exports.getNextElement = getNextElement; /** * Determines if an element is visible. * * @public */ function isElementVisible(element) { // If the element is not valid, return false. if (!element || !element.getAttribute) { return false; } var visibilityAttribute = element.getAttribute(IS_VISIBLE_ATTRIBUTE); // If the element is explicitly marked with the visibility attribute, return that value as boolean. if (visibilityAttribute !== null && visibilityAttribute !== undefined) { return visibilityAttribute === 'true'; } // Fallback to other methods of determining actual visibility. return (element.offsetHeight !== 0 || element.offsetParent !== null || // eslint-disable-next-line @typescript-eslint/no-explicit-any element.isVisible === true); // used as a workaround for testing. } exports.isElementVisible = isElementVisible; /** * Determines if an element is visible and not hidden * @param element - Element to check * @returns Returns true if the given element is visible and not hidden * * @public */ function isElementVisibleAndNotHidden(element) { return (!!element && isElementVisible(element) && !element.hidden && window.getComputedStyle(element).visibility !== 'hidden'); } exports.isElementVisibleAndNotHidden = isElementVisibleAndNotHidden; /** * Determines if an element can receive focus programmatically or via a mouse click. * If checkTabIndex is true, additionally checks to ensure the element can be focused with the tab key, * meaning tabIndex != -1. * * @public */ function isElementTabbable(element, checkTabIndex) { // If this element is null or is disabled, it is not considered tabbable. if (!element || element.disabled) { return false; } var tabIndex = 0; var tabIndexAttributeValue = null; if (element && element.getAttribute) { tabIndexAttributeValue = element.getAttribute('tabIndex'); if (tabIndexAttributeValue) { tabIndex = parseInt(tabIndexAttributeValue, 10); } } var isFocusableAttribute = element.getAttribute ? element.getAttribute(IS_FOCUSABLE_ATTRIBUTE) : null; var isTabIndexSet = tabIndexAttributeValue !== null && tabIndex >= 0; var result = !!element && isFocusableAttribute !== 'false' && (element.tagName === 'A' || element.tagName === 'BUTTON' || element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.tagName === 'SELECT' || isFocusableAttribute === 'true' || isTabIndexSet); return checkTabIndex ? tabIndex !== -1 && result : result; } exports.isElementTabbable = isElementTabbable; /** * Determines if a given element is a focus zone. * * @public */ function isElementFocusZone(element) { return !!(element && element.getAttribute && !!element.getAttribute(FOCUSZONE_ID_ATTRIBUTE)); } exports.isElementFocusZone = isElementFocusZone; /** * Determines if a given element is a focus sub zone. * * @public */ function isElementFocusSubZone(element) { return !!(element && element.getAttribute && element.getAttribute(FOCUSZONE_SUB_ATTRIBUTE) === 'true'); } exports.isElementFocusSubZone = isElementFocusSubZone; /** * Determines if an element, or any of its children, contain focus. * * @public */ function doesElementContainFocus(element) { var document = (0, getDocument_1.getDocument)(element); var currentActiveElement = document && document.activeElement; if (currentActiveElement && (0, elementContains_1.elementContains)(element, currentActiveElement)) { return true; } return false; } exports.doesElementContainFocus = doesElementContainFocus; /** * Determines if an, or any of its ancestors, sepcificies that it doesn't want focus to wrap * @param element - element to start searching from * @param noWrapDataAttribute - the no wrap data attribute to match (either) * @returns true if focus should wrap, false otherwise */ function shouldWrapFocus(element, noWrapDataAttribute) { return (0, elementContainsAttribute_1.elementContainsAttribute)(element, noWrapDataAttribute) === 'true' ? false : true; } exports.shouldWrapFocus = shouldWrapFocus; var targetToFocusOnNextRepaint = undefined; /** * Sets focus to an element asynchronously. The focus will be set at the next browser repaint, * meaning it won't cause any extra recalculations. If more than one focusAsync is called during one frame, * only the latest called focusAsync element will actually be focused * @param element - The element to focus */ function focusAsync(element) { if (element) { // An element was already queued to be focused, so replace that one with the new element if (targetToFocusOnNextRepaint) { targetToFocusOnNextRepaint = element; return; } targetToFocusOnNextRepaint = element; var win = (0, getWindow_1.getWindow)(element); if (win) { // element.focus() is a no-op if the element is no longer in the DOM, meaning this is always safe win.requestAnimationFrame(function () { targetToFocusOnNextRepaint && targetToFocusOnNextRepaint.focus(); // We are done focusing for this frame, so reset the queued focus element targetToFocusOnNextRepaint = undefined; }); } } } exports.focusAsync = focusAsync; /** * Finds the closest focusable element via an index path from a parent. See * `getElementIndexPath` for getting an index path from an element to a child. */ function getFocusableByIndexPath(parent, path) { var element = parent; for (var _i = 0, path_1 = path; _i < path_1.length; _i++) { var index = path_1[_i]; var nextChild = element.children[Math.min(index, element.children.length - 1)]; if (!nextChild) { break; } element = nextChild; } element = isElementTabbable(element) && isElementVisible(element) ? element : getNextElement(parent, element, true) || getPreviousElement(parent, element); return element; } exports.getFocusableByIndexPath = getFocusableByIndexPath; /** * Finds the element index path from a parent element to a child element. * * If you had this node structure: "A has children [B, C] and C has child D", * the index path from A to D would be [1, 0], or `parent.chidren[1].children[0]`. */ function getElementIndexPath(fromElement, toElement) { var path = []; while (toElement && fromElement && toElement !== fromElement) { var parent_1 = (0, getParent_1.getParent)(toElement, true); if (parent_1 === null) { return []; } path.unshift(Array.prototype.indexOf.call(parent_1.children, toElement)); toElement = parent_1; } return path; } exports.getElementIndexPath = getElementIndexPath; //# sourceMappingURL=focus.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getId.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getId.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.resetIds = exports.getId = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); // Initialize global window id. var CURRENT_ID_PROPERTY = '__currentId__'; var DEFAULT_ID_STRING = 'id__'; // eslint-disable-next-line @typescript-eslint/no-explicit-any var _global = (0, getWindow_1.getWindow)() || {}; if (_global[CURRENT_ID_PROPERTY] === undefined) { _global[CURRENT_ID_PROPERTY] = 0; } var _initializedStylesheetResets = false; /** * Generates a unique id in the global scope (this spans across duplicate copies of the same library.) * * @public */ function getId(prefix) { if (!_initializedStylesheetResets) { // Configure ids to reset on stylesheet resets. var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(resetIds); } _initializedStylesheetResets = true; } var index = _global[CURRENT_ID_PROPERTY]++; return (prefix === undefined ? DEFAULT_ID_STRING : prefix) + index; } exports.getId = getId; /** * Resets id counter to an (optional) number. * * @public */ function resetIds(counter) { if (counter === void 0) { counter = 0; } _global[CURRENT_ID_PROPERTY] = counter; } exports.resetIds = resetIds; //# sourceMappingURL=getId.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getNativeElementProps = void 0; var properties_1 = __webpack_require__(/*! ./properties */ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js"); var nativeElementMap = { label: properties_1.labelProperties, audio: properties_1.audioProperties, video: properties_1.videoProperties, ol: properties_1.olProperties, li: properties_1.liProperties, a: properties_1.anchorProperties, button: properties_1.buttonProperties, input: properties_1.inputProperties, textarea: properties_1.textAreaProperties, select: properties_1.selectProperties, option: properties_1.optionProperties, table: properties_1.tableProperties, tr: properties_1.trProperties, th: properties_1.thProperties, td: properties_1.tdProperties, colGroup: properties_1.colGroupProperties, col: properties_1.colProperties, form: properties_1.formProperties, iframe: properties_1.iframeProperties, img: properties_1.imgProperties, }; /** * Given an element tagname and user props, filters the props to only allowed props for the given * element type. * @param tagName - Tag name (e.g. "div") * @param props - Props object * @param excludedPropNames - List of props to disallow */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function getNativeElementProps(tagName, props, excludedPropNames) { var allowedPropNames = (tagName && nativeElementMap[tagName]) || properties_1.htmlElementProperties; return (0, properties_1.getNativeProps)(props, allowedPropNames, excludedPropNames); } exports.getNativeElementProps = getNativeElementProps; //# sourceMappingURL=getNativeElementProps.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPropsWithDefaults = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Function to apply default values to a component props object. This function is intended for function components, * to maintain parity with the `defaultProps` feature of class components. It accounts for properties that are * specified, but undefined. * @param defaultProps- An object with default values for various properties * @param propsWithoutDefaults- The props object passed into the component */ function getPropsWithDefaults(defaultProps, propsWithoutDefaults) { var props = tslib_1.__assign({}, propsWithoutDefaults); for (var _i = 0, _a = Object.keys(defaultProps); _i < _a.length; _i++) { var key = _a[_i]; if (props[key] === undefined) { props[key] = defaultProps[key]; } } return props; } exports.getPropsWithDefaults = getPropsWithDefaults; //# sourceMappingURL=getPropsWithDefaults.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/hoist.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/hoist.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.unhoistMethods = exports.hoistMethods = void 0; var REACT_LIFECYCLE_EXCLUSIONS = [ 'setState', 'render', 'componentWillMount', 'UNSAFE_componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'UNSAFE_componentWillReceiveProps', 'shouldComponentUpdate', 'componentWillUpdate', 'getSnapshotBeforeUpdate', 'UNSAFE_componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', ]; /** * Allows you to hoist methods, except those in an exclusion set from a source object into a destination object. * * @public * @param destination - The instance of the object to hoist the methods onto. * @param source - The instance of the object where the methods are hoisted from. * @param exclusions - (Optional) What methods to exclude from being hoisted. * @returns An array of names of methods that were hoisted. */ function hoistMethods( // eslint-disable-next-line @typescript-eslint/no-explicit-any destination, // eslint-disable-next-line @typescript-eslint/no-explicit-any source, exclusions) { if (exclusions === void 0) { exclusions = REACT_LIFECYCLE_EXCLUSIONS; } var hoisted = []; var _loop_1 = function (methodName) { if (typeof source[methodName] === 'function' && destination[methodName] === undefined && (!exclusions || exclusions.indexOf(methodName) === -1)) { hoisted.push(methodName); // eslint-disable-next-line @typescript-eslint/no-explicit-any destination[methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } source[methodName].apply(source, args); }; } }; for (var methodName in source) { _loop_1(methodName); } return hoisted; } exports.hoistMethods = hoistMethods; /** * Provides a method for convenience to unhoist hoisted methods. * * @public * @param source - The source object upon which methods were hoisted. * @param methodNames - An array of method names to unhoist. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function unhoistMethods(source, methodNames) { methodNames.forEach(function (methodName) { return delete source[methodName]; }); } exports.unhoistMethods = unhoistMethods; //# sourceMappingURL=hoist.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * Allows you to hoist static functions in components. * Created for the purpose of fixing broken static functions in classes * that utilize decorators. * * @public * @param source - The object where the methods are hoisted from. * @param dest - The object to hoist the methods onto. * @returns The dest object with methods added */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hoistStatics = void 0; function hoistStatics(source, dest) { for (var name_1 in source) { if (source.hasOwnProperty(name_1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any dest[name_1] = source[name_1]; } } return dest; } exports.hoistStatics = hoistStatics; //# sourceMappingURL=hoistStatics.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isIE11 = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var isIE11 = function () { var _a; var win = (0, getWindow_1.getWindow)(); if (!((_a = win === null || win === void 0 ? void 0 : win.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)) { return false; } return win.navigator.userAgent.indexOf('rv:11.0') > -1; }; exports.isIE11 = isIE11; //# sourceMappingURL=ie11Detector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/index.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/index.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.raiseClick = exports.portalContainsElement = exports.on = exports.isVirtualElement = exports.getWindow = exports.getVirtualParent = exports.getRect = exports.getParent = exports.getFirstVisibleElementFromSelector = exports.getDocument = exports.getChildren = exports.findElementRecursive = exports.elementContainsAttribute = exports.elementContains = exports.DATA_PORTAL_ATTRIBUTE = exports.mergeSettings = exports.mergeScopedSettings = exports.mergeCustomizations = exports.useCustomizationSettings = exports.customizable = exports.CustomizerContext = exports.Customizer = exports.Customizations = exports.css = exports.isControlled = exports.composeComponentAs = exports.classNamesFunction = exports.assertNever = exports.asAsync = exports.toMatrix = exports.replaceElement = exports.removeIndex = exports.flatten = exports.findIndex = exports.find = exports.createArray = exports.arraysEqual = exports.addElementAtIndex = exports.mergeAriaAttributeValues = exports.appendFunction = exports.Rectangle = exports.KeyCodes = exports.GlobalSettings = exports.FabricPerformance = exports.EventGroup = exports.DelayedRender = exports.nullRender = exports.BaseComponent = exports.AutoScroll = exports.Async = void 0; exports.modalize = exports.isIOS = exports.merge = exports.setMemoizeWeakMap = exports.resetMemoizations = exports.memoizeFunction = exports.memoize = exports.createMemoizer = exports.precisionRound = exports.getDistanceBetweenPoints = exports.fitContentToBounds = exports.calculatePrecision = exports.setLanguage = exports.getLanguage = exports.removeDirectionalKeyCode = exports.isDirectionalKeyCode = exports.addDirectionalKeyCode = exports.getInitials = exports.useFocusRects = exports.FocusRectsContext = exports.FocusRects = exports.FocusRectsProvider = exports.initializeFocusRects = exports.initializeComponentRef = exports.hoistStatics = exports.unhoistMethods = exports.hoistMethods = exports.getNativeElementProps = exports.resetIds = exports.getId = exports.shouldWrapFocus = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.isElementTabbable = exports.isElementFocusZone = exports.isElementFocusSubZone = exports.getPreviousElement = exports.getNextElement = exports.getLastTabbable = exports.getLastFocusable = exports.getFocusableByIndexPath = exports.getFirstTabbable = exports.getFirstFocusable = exports.getElementIndexPath = exports.focusFirstChild = exports.focusAsync = exports.doesElementContainFocus = exports.extendComponent = exports.setVirtualParent = exports.setPortalAttribute = void 0; exports.findScrollableParent = exports.enableBodyScroll = exports.disableBodyScroll = exports.allowScrollOnElement = exports.allowOverscrollOnElement = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.setRTL = exports.getRTLSafeKeyCode = exports.getRTL = exports.setBaseUrl = exports.getResourceUrl = exports.composeRenderFunction = exports.videoProperties = exports.trProperties = exports.thProperties = exports.textAreaProperties = exports.tdProperties = exports.tableProperties = exports.selectProperties = exports.optionProperties = exports.olProperties = exports.liProperties = exports.labelProperties = exports.inputProperties = exports.imgProperties = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.getNativeProps = exports.formProperties = exports.divProperties = exports.colProperties = exports.colGroupProperties = exports.buttonProperties = exports.baseElementProperties = exports.baseElementEvents = exports.audioProperties = exports.anchorProperties = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.isMac = exports.omit = exports.values = exports.shallowCompare = exports.mapEnumByName = exports.filteredAssign = exports.assign = void 0; exports.useIsomorphicLayoutEffect = exports.createMergedRef = exports.setSSR = exports.canUseDOM = exports.IsFocusVisibleClassName = exports.setFocusVisibility = exports.getPropsWithDefaults = exports.isIE11 = exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.warnConditionallyRequiredProps = exports.warn = exports.setWarningCallback = exports.resetControlledWarnings = exports.styled = exports.format = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = exports.getScrollbarWidth = void 0; var Async_1 = __webpack_require__(/*! ./Async */ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js"); Object.defineProperty(exports, "Async", ({ enumerable: true, get: function () { return Async_1.Async; } })); var AutoScroll_1 = __webpack_require__(/*! ./AutoScroll */ "./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js"); Object.defineProperty(exports, "AutoScroll", ({ enumerable: true, get: function () { return AutoScroll_1.AutoScroll; } })); var BaseComponent_1 = __webpack_require__(/*! ./BaseComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "BaseComponent", ({ enumerable: true, get: function () { return BaseComponent_1.BaseComponent; } })); Object.defineProperty(exports, "nullRender", ({ enumerable: true, get: function () { return BaseComponent_1.nullRender; } })); var DelayedRender_1 = __webpack_require__(/*! ./DelayedRender */ "./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js"); Object.defineProperty(exports, "DelayedRender", ({ enumerable: true, get: function () { return DelayedRender_1.DelayedRender; } })); var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); Object.defineProperty(exports, "EventGroup", ({ enumerable: true, get: function () { return EventGroup_1.EventGroup; } })); var FabricPerformance_1 = __webpack_require__(/*! ./FabricPerformance */ "./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js"); Object.defineProperty(exports, "FabricPerformance", ({ enumerable: true, get: function () { return FabricPerformance_1.FabricPerformance; } })); var GlobalSettings_1 = __webpack_require__(/*! ./GlobalSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js"); Object.defineProperty(exports, "GlobalSettings", ({ enumerable: true, get: function () { return GlobalSettings_1.GlobalSettings; } })); var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); Object.defineProperty(exports, "KeyCodes", ({ enumerable: true, get: function () { return KeyCodes_1.KeyCodes; } })); var Rectangle_1 = __webpack_require__(/*! ./Rectangle */ "./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js"); Object.defineProperty(exports, "Rectangle", ({ enumerable: true, get: function () { return Rectangle_1.Rectangle; } })); var appendFunction_1 = __webpack_require__(/*! ./appendFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js"); Object.defineProperty(exports, "appendFunction", ({ enumerable: true, get: function () { return appendFunction_1.appendFunction; } })); var aria_1 = __webpack_require__(/*! ./aria */ "./node_modules/@fluentui/utilities/lib-commonjs/aria.js"); Object.defineProperty(exports, "mergeAriaAttributeValues", ({ enumerable: true, get: function () { return aria_1.mergeAriaAttributeValues; } })); var array_1 = __webpack_require__(/*! ./array */ "./node_modules/@fluentui/utilities/lib-commonjs/array.js"); Object.defineProperty(exports, "addElementAtIndex", ({ enumerable: true, get: function () { return array_1.addElementAtIndex; } })); Object.defineProperty(exports, "arraysEqual", ({ enumerable: true, get: function () { return array_1.arraysEqual; } })); Object.defineProperty(exports, "createArray", ({ enumerable: true, get: function () { return array_1.createArray; } })); Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return array_1.find; } })); Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return array_1.findIndex; } })); Object.defineProperty(exports, "flatten", ({ enumerable: true, get: function () { return array_1.flatten; } })); Object.defineProperty(exports, "removeIndex", ({ enumerable: true, get: function () { return array_1.removeIndex; } })); Object.defineProperty(exports, "replaceElement", ({ enumerable: true, get: function () { return array_1.replaceElement; } })); Object.defineProperty(exports, "toMatrix", ({ enumerable: true, get: function () { return array_1.toMatrix; } })); var asAsync_1 = __webpack_require__(/*! ./asAsync */ "./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js"); Object.defineProperty(exports, "asAsync", ({ enumerable: true, get: function () { return asAsync_1.asAsync; } })); var assertNever_1 = __webpack_require__(/*! ./assertNever */ "./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js"); Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assertNever_1.assertNever; } })); var classNamesFunction_1 = __webpack_require__(/*! ./classNamesFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js"); Object.defineProperty(exports, "classNamesFunction", ({ enumerable: true, get: function () { return classNamesFunction_1.classNamesFunction; } })); var composeComponentAs_1 = __webpack_require__(/*! ./componentAs/composeComponentAs */ "./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js"); Object.defineProperty(exports, "composeComponentAs", ({ enumerable: true, get: function () { return composeComponentAs_1.composeComponentAs; } })); var controlled_1 = __webpack_require__(/*! ./controlled */ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js"); Object.defineProperty(exports, "isControlled", ({ enumerable: true, get: function () { return controlled_1.isControlled; } })); var css_1 = __webpack_require__(/*! ./css */ "./node_modules/@fluentui/utilities/lib-commonjs/css.js"); Object.defineProperty(exports, "css", ({ enumerable: true, get: function () { return css_1.css; } })); var Customizations_1 = __webpack_require__(/*! ./customizations/Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); Object.defineProperty(exports, "Customizations", ({ enumerable: true, get: function () { return Customizations_1.Customizations; } })); var Customizer_1 = __webpack_require__(/*! ./customizations/Customizer */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Customizer", ({ enumerable: true, get: function () { return Customizer_1.Customizer; } })); var CustomizerContext_1 = __webpack_require__(/*! ./customizations/CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); Object.defineProperty(exports, "CustomizerContext", ({ enumerable: true, get: function () { return CustomizerContext_1.CustomizerContext; } })); var customizable_1 = __webpack_require__(/*! ./customizations/customizable */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js"); Object.defineProperty(exports, "customizable", ({ enumerable: true, get: function () { return customizable_1.customizable; } })); var useCustomizationSettings_1 = __webpack_require__(/*! ./customizations/useCustomizationSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js"); Object.defineProperty(exports, "useCustomizationSettings", ({ enumerable: true, get: function () { return useCustomizationSettings_1.useCustomizationSettings; } })); var mergeCustomizations_1 = __webpack_require__(/*! ./customizations/mergeCustomizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js"); Object.defineProperty(exports, "mergeCustomizations", ({ enumerable: true, get: function () { return mergeCustomizations_1.mergeCustomizations; } })); var mergeSettings_1 = __webpack_require__(/*! ./customizations/mergeSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js"); Object.defineProperty(exports, "mergeScopedSettings", ({ enumerable: true, get: function () { return mergeSettings_1.mergeScopedSettings; } })); Object.defineProperty(exports, "mergeSettings", ({ enumerable: true, get: function () { return mergeSettings_1.mergeSettings; } })); var dom_1 = __webpack_require__(/*! ./dom */ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return dom_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return dom_1.elementContains; } })); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return dom_1.elementContainsAttribute; } })); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return dom_1.findElementRecursive; } })); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return dom_1.getChildren; } })); Object.defineProperty(exports, "getDocument", ({ enumerable: true, get: function () { return dom_1.getDocument; } })); Object.defineProperty(exports, "getFirstVisibleElementFromSelector", ({ enumerable: true, get: function () { return dom_1.getFirstVisibleElementFromSelector; } })); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return dom_1.getParent; } })); Object.defineProperty(exports, "getRect", ({ enumerable: true, get: function () { return dom_1.getRect; } })); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return dom_1.getVirtualParent; } })); Object.defineProperty(exports, "getWindow", ({ enumerable: true, get: function () { return dom_1.getWindow; } })); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return dom_1.isVirtualElement; } })); Object.defineProperty(exports, "on", ({ enumerable: true, get: function () { return dom_1.on; } })); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return dom_1.portalContainsElement; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "raiseClick", ({ enumerable: true, get: function () { return dom_1.raiseClick; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return dom_1.setPortalAttribute; } })); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return dom_1.setVirtualParent; } })); var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); Object.defineProperty(exports, "extendComponent", ({ enumerable: true, get: function () { return extendComponent_1.extendComponent; } })); var focus_1 = __webpack_require__(/*! ./focus */ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js"); Object.defineProperty(exports, "doesElementContainFocus", ({ enumerable: true, get: function () { return focus_1.doesElementContainFocus; } })); Object.defineProperty(exports, "focusAsync", ({ enumerable: true, get: function () { return focus_1.focusAsync; } })); Object.defineProperty(exports, "focusFirstChild", ({ enumerable: true, get: function () { return focus_1.focusFirstChild; } })); Object.defineProperty(exports, "getElementIndexPath", ({ enumerable: true, get: function () { return focus_1.getElementIndexPath; } })); Object.defineProperty(exports, "getFirstFocusable", ({ enumerable: true, get: function () { return focus_1.getFirstFocusable; } })); Object.defineProperty(exports, "getFirstTabbable", ({ enumerable: true, get: function () { return focus_1.getFirstTabbable; } })); Object.defineProperty(exports, "getFocusableByIndexPath", ({ enumerable: true, get: function () { return focus_1.getFocusableByIndexPath; } })); Object.defineProperty(exports, "getLastFocusable", ({ enumerable: true, get: function () { return focus_1.getLastFocusable; } })); Object.defineProperty(exports, "getLastTabbable", ({ enumerable: true, get: function () { return focus_1.getLastTabbable; } })); Object.defineProperty(exports, "getNextElement", ({ enumerable: true, get: function () { return focus_1.getNextElement; } })); Object.defineProperty(exports, "getPreviousElement", ({ enumerable: true, get: function () { return focus_1.getPreviousElement; } })); Object.defineProperty(exports, "isElementFocusSubZone", ({ enumerable: true, get: function () { return focus_1.isElementFocusSubZone; } })); Object.defineProperty(exports, "isElementFocusZone", ({ enumerable: true, get: function () { return focus_1.isElementFocusZone; } })); Object.defineProperty(exports, "isElementTabbable", ({ enumerable: true, get: function () { return focus_1.isElementTabbable; } })); Object.defineProperty(exports, "isElementVisible", ({ enumerable: true, get: function () { return focus_1.isElementVisible; } })); Object.defineProperty(exports, "isElementVisibleAndNotHidden", ({ enumerable: true, get: function () { return focus_1.isElementVisibleAndNotHidden; } })); Object.defineProperty(exports, "shouldWrapFocus", ({ enumerable: true, get: function () { return focus_1.shouldWrapFocus; } })); var getId_1 = __webpack_require__(/*! ./getId */ "./node_modules/@fluentui/utilities/lib-commonjs/getId.js"); Object.defineProperty(exports, "getId", ({ enumerable: true, get: function () { return getId_1.getId; } })); Object.defineProperty(exports, "resetIds", ({ enumerable: true, get: function () { return getId_1.resetIds; } })); var getNativeElementProps_1 = __webpack_require__(/*! ./getNativeElementProps */ "./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js"); Object.defineProperty(exports, "getNativeElementProps", ({ enumerable: true, get: function () { return getNativeElementProps_1.getNativeElementProps; } })); var hoist_1 = __webpack_require__(/*! ./hoist */ "./node_modules/@fluentui/utilities/lib-commonjs/hoist.js"); Object.defineProperty(exports, "hoistMethods", ({ enumerable: true, get: function () { return hoist_1.hoistMethods; } })); Object.defineProperty(exports, "unhoistMethods", ({ enumerable: true, get: function () { return hoist_1.unhoistMethods; } })); var hoistStatics_1 = __webpack_require__(/*! ./hoistStatics */ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js"); Object.defineProperty(exports, "hoistStatics", ({ enumerable: true, get: function () { return hoistStatics_1.hoistStatics; } })); var initializeComponentRef_1 = __webpack_require__(/*! ./initializeComponentRef */ "./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js"); Object.defineProperty(exports, "initializeComponentRef", ({ enumerable: true, get: function () { return initializeComponentRef_1.initializeComponentRef; } })); var initializeFocusRects_1 = __webpack_require__(/*! ./initializeFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "initializeFocusRects", ({ enumerable: true, get: function () { return initializeFocusRects_1.initializeFocusRects; } })); var FocusRectsProvider_1 = __webpack_require__(/*! ./FocusRectsProvider */ "./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js"); Object.defineProperty(exports, "FocusRectsProvider", ({ enumerable: true, get: function () { return FocusRectsProvider_1.FocusRectsProvider; } })); var useFocusRects_1 = __webpack_require__(/*! ./useFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js"); Object.defineProperty(exports, "FocusRects", ({ enumerable: true, get: function () { return useFocusRects_1.FocusRects; } })); Object.defineProperty(exports, "FocusRectsContext", ({ enumerable: true, get: function () { return useFocusRects_1.FocusRectsContext; } })); Object.defineProperty(exports, "useFocusRects", ({ enumerable: true, get: function () { return useFocusRects_1.useFocusRects; } })); var initials_1 = __webpack_require__(/*! ./initials */ "./node_modules/@fluentui/utilities/lib-commonjs/initials.js"); Object.defineProperty(exports, "getInitials", ({ enumerable: true, get: function () { return initials_1.getInitials; } })); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); Object.defineProperty(exports, "addDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.addDirectionalKeyCode; } })); Object.defineProperty(exports, "isDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.isDirectionalKeyCode; } })); Object.defineProperty(exports, "removeDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.removeDirectionalKeyCode; } })); var language_1 = __webpack_require__(/*! ./language */ "./node_modules/@fluentui/utilities/lib-commonjs/language.js"); Object.defineProperty(exports, "getLanguage", ({ enumerable: true, get: function () { return language_1.getLanguage; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setLanguage", ({ enumerable: true, get: function () { return language_1.setLanguage; } })); var math_1 = __webpack_require__(/*! ./math */ "./node_modules/@fluentui/utilities/lib-commonjs/math.js"); Object.defineProperty(exports, "calculatePrecision", ({ enumerable: true, get: function () { return math_1.calculatePrecision; } })); Object.defineProperty(exports, "fitContentToBounds", ({ enumerable: true, get: function () { return math_1.fitContentToBounds; } })); Object.defineProperty(exports, "getDistanceBetweenPoints", ({ enumerable: true, get: function () { return math_1.getDistanceBetweenPoints; } })); Object.defineProperty(exports, "precisionRound", ({ enumerable: true, get: function () { return math_1.precisionRound; } })); var memoize_1 = __webpack_require__(/*! ./memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); Object.defineProperty(exports, "createMemoizer", ({ enumerable: true, get: function () { return memoize_1.createMemoizer; } })); Object.defineProperty(exports, "memoize", ({ enumerable: true, get: function () { return memoize_1.memoize; } })); Object.defineProperty(exports, "memoizeFunction", ({ enumerable: true, get: function () { return memoize_1.memoizeFunction; } })); Object.defineProperty(exports, "resetMemoizations", ({ enumerable: true, get: function () { return memoize_1.resetMemoizations; } })); Object.defineProperty(exports, "setMemoizeWeakMap", ({ enumerable: true, get: function () { return memoize_1.setMemoizeWeakMap; } })); var merge_1 = __webpack_require__(/*! ./merge */ "./node_modules/@fluentui/utilities/lib-commonjs/merge.js"); Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } })); var mobileDetector_1 = __webpack_require__(/*! ./mobileDetector */ "./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js"); Object.defineProperty(exports, "isIOS", ({ enumerable: true, get: function () { return mobileDetector_1.isIOS; } })); var modalize_1 = __webpack_require__(/*! ./modalize */ "./node_modules/@fluentui/utilities/lib-commonjs/modalize.js"); Object.defineProperty(exports, "modalize", ({ enumerable: true, get: function () { return modalize_1.modalize; } })); var object_1 = __webpack_require__(/*! ./object */ "./node_modules/@fluentui/utilities/lib-commonjs/object.js"); Object.defineProperty(exports, "assign", ({ enumerable: true, get: function () { return object_1.assign; } })); Object.defineProperty(exports, "filteredAssign", ({ enumerable: true, get: function () { return object_1.filteredAssign; } })); Object.defineProperty(exports, "mapEnumByName", ({ enumerable: true, get: function () { return object_1.mapEnumByName; } })); Object.defineProperty(exports, "shallowCompare", ({ enumerable: true, get: function () { return object_1.shallowCompare; } })); Object.defineProperty(exports, "values", ({ enumerable: true, get: function () { return object_1.values; } })); Object.defineProperty(exports, "omit", ({ enumerable: true, get: function () { return object_1.omit; } })); var osDetector_1 = __webpack_require__(/*! ./osDetector */ "./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js"); Object.defineProperty(exports, "isMac", ({ enumerable: true, get: function () { return osDetector_1.isMac; } })); var overflow_1 = __webpack_require__(/*! ./overflow */ "./node_modules/@fluentui/utilities/lib-commonjs/overflow.js"); Object.defineProperty(exports, "hasHorizontalOverflow", ({ enumerable: true, get: function () { return overflow_1.hasHorizontalOverflow; } })); Object.defineProperty(exports, "hasOverflow", ({ enumerable: true, get: function () { return overflow_1.hasOverflow; } })); Object.defineProperty(exports, "hasVerticalOverflow", ({ enumerable: true, get: function () { return overflow_1.hasVerticalOverflow; } })); var properties_1 = __webpack_require__(/*! ./properties */ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js"); Object.defineProperty(exports, "anchorProperties", ({ enumerable: true, get: function () { return properties_1.anchorProperties; } })); Object.defineProperty(exports, "audioProperties", ({ enumerable: true, get: function () { return properties_1.audioProperties; } })); Object.defineProperty(exports, "baseElementEvents", ({ enumerable: true, get: function () { return properties_1.baseElementEvents; } })); Object.defineProperty(exports, "baseElementProperties", ({ enumerable: true, get: function () { return properties_1.baseElementProperties; } })); Object.defineProperty(exports, "buttonProperties", ({ enumerable: true, get: function () { return properties_1.buttonProperties; } })); Object.defineProperty(exports, "colGroupProperties", ({ enumerable: true, get: function () { return properties_1.colGroupProperties; } })); Object.defineProperty(exports, "colProperties", ({ enumerable: true, get: function () { return properties_1.colProperties; } })); Object.defineProperty(exports, "divProperties", ({ enumerable: true, get: function () { return properties_1.divProperties; } })); Object.defineProperty(exports, "formProperties", ({ enumerable: true, get: function () { return properties_1.formProperties; } })); Object.defineProperty(exports, "getNativeProps", ({ enumerable: true, get: function () { return properties_1.getNativeProps; } })); Object.defineProperty(exports, "htmlElementProperties", ({ enumerable: true, get: function () { return properties_1.htmlElementProperties; } })); Object.defineProperty(exports, "iframeProperties", ({ enumerable: true, get: function () { return properties_1.iframeProperties; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "imageProperties", ({ enumerable: true, get: function () { return properties_1.imageProperties; } })); Object.defineProperty(exports, "imgProperties", ({ enumerable: true, get: function () { return properties_1.imgProperties; } })); Object.defineProperty(exports, "inputProperties", ({ enumerable: true, get: function () { return properties_1.inputProperties; } })); Object.defineProperty(exports, "labelProperties", ({ enumerable: true, get: function () { return properties_1.labelProperties; } })); Object.defineProperty(exports, "liProperties", ({ enumerable: true, get: function () { return properties_1.liProperties; } })); Object.defineProperty(exports, "olProperties", ({ enumerable: true, get: function () { return properties_1.olProperties; } })); Object.defineProperty(exports, "optionProperties", ({ enumerable: true, get: function () { return properties_1.optionProperties; } })); Object.defineProperty(exports, "selectProperties", ({ enumerable: true, get: function () { return properties_1.selectProperties; } })); Object.defineProperty(exports, "tableProperties", ({ enumerable: true, get: function () { return properties_1.tableProperties; } })); Object.defineProperty(exports, "tdProperties", ({ enumerable: true, get: function () { return properties_1.tdProperties; } })); Object.defineProperty(exports, "textAreaProperties", ({ enumerable: true, get: function () { return properties_1.textAreaProperties; } })); Object.defineProperty(exports, "thProperties", ({ enumerable: true, get: function () { return properties_1.thProperties; } })); Object.defineProperty(exports, "trProperties", ({ enumerable: true, get: function () { return properties_1.trProperties; } })); Object.defineProperty(exports, "videoProperties", ({ enumerable: true, get: function () { return properties_1.videoProperties; } })); var composeRenderFunction_1 = __webpack_require__(/*! ./renderFunction/composeRenderFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js"); Object.defineProperty(exports, "composeRenderFunction", ({ enumerable: true, get: function () { return composeRenderFunction_1.composeRenderFunction; } })); var resources_1 = __webpack_require__(/*! ./resources */ "./node_modules/@fluentui/utilities/lib-commonjs/resources.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getResourceUrl", ({ enumerable: true, get: function () { return resources_1.getResourceUrl; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setBaseUrl", ({ enumerable: true, get: function () { return resources_1.setBaseUrl; } })); var rtl_1 = __webpack_require__(/*! ./rtl */ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js"); Object.defineProperty(exports, "getRTL", ({ enumerable: true, get: function () { return rtl_1.getRTL; } })); Object.defineProperty(exports, "getRTLSafeKeyCode", ({ enumerable: true, get: function () { return rtl_1.getRTLSafeKeyCode; } })); Object.defineProperty(exports, "setRTL", ({ enumerable: true, get: function () { return rtl_1.setRTL; } })); var safeRequestAnimationFrame_1 = __webpack_require__(/*! ./safeRequestAnimationFrame */ "./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js"); Object.defineProperty(exports, "safeRequestAnimationFrame", ({ enumerable: true, get: function () { return safeRequestAnimationFrame_1.safeRequestAnimationFrame; } })); var safeSetTimeout_1 = __webpack_require__(/*! ./safeSetTimeout */ "./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js"); Object.defineProperty(exports, "safeSetTimeout", ({ enumerable: true, get: function () { return safeSetTimeout_1.safeSetTimeout; } })); var scroll_1 = __webpack_require__(/*! ./scroll */ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js"); Object.defineProperty(exports, "DATA_IS_SCROLLABLE_ATTRIBUTE", ({ enumerable: true, get: function () { return scroll_1.DATA_IS_SCROLLABLE_ATTRIBUTE; } })); Object.defineProperty(exports, "allowOverscrollOnElement", ({ enumerable: true, get: function () { return scroll_1.allowOverscrollOnElement; } })); Object.defineProperty(exports, "allowScrollOnElement", ({ enumerable: true, get: function () { return scroll_1.allowScrollOnElement; } })); Object.defineProperty(exports, "disableBodyScroll", ({ enumerable: true, get: function () { return scroll_1.disableBodyScroll; } })); Object.defineProperty(exports, "enableBodyScroll", ({ enumerable: true, get: function () { return scroll_1.enableBodyScroll; } })); Object.defineProperty(exports, "findScrollableParent", ({ enumerable: true, get: function () { return scroll_1.findScrollableParent; } })); Object.defineProperty(exports, "getScrollbarWidth", ({ enumerable: true, get: function () { return scroll_1.getScrollbarWidth; } })); var index_1 = __webpack_require__(/*! ./selection/index */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return index_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SELECTION_ITEMS_CHANGE", ({ enumerable: true, get: function () { return index_1.SELECTION_ITEMS_CHANGE; } })); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return index_1.Selection; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return index_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return index_1.SelectionMode; } })); var string_1 = __webpack_require__(/*! ./string */ "./node_modules/@fluentui/utilities/lib-commonjs/string.js"); Object.defineProperty(exports, "format", ({ enumerable: true, get: function () { return string_1.format; } })); var styled_1 = __webpack_require__(/*! ./styled */ "./node_modules/@fluentui/utilities/lib-commonjs/styled.js"); Object.defineProperty(exports, "styled", ({ enumerable: true, get: function () { return styled_1.styled; } })); var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn.js"); Object.defineProperty(exports, "resetControlledWarnings", ({ enumerable: true, get: function () { return warn_1.resetControlledWarnings; } })); Object.defineProperty(exports, "setWarningCallback", ({ enumerable: true, get: function () { return warn_1.setWarningCallback; } })); Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warn_1.warn; } })); Object.defineProperty(exports, "warnConditionallyRequiredProps", ({ enumerable: true, get: function () { return warn_1.warnConditionallyRequiredProps; } })); Object.defineProperty(exports, "warnControlledUsage", ({ enumerable: true, get: function () { return warn_1.warnControlledUsage; } })); Object.defineProperty(exports, "warnDeprecations", ({ enumerable: true, get: function () { return warn_1.warnDeprecations; } })); Object.defineProperty(exports, "warnMutuallyExclusive", ({ enumerable: true, get: function () { return warn_1.warnMutuallyExclusive; } })); var ie11Detector_1 = __webpack_require__(/*! ./ie11Detector */ "./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js"); Object.defineProperty(exports, "isIE11", ({ enumerable: true, get: function () { return ie11Detector_1.isIE11; } })); var getPropsWithDefaults_1 = __webpack_require__(/*! ./getPropsWithDefaults */ "./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js"); Object.defineProperty(exports, "getPropsWithDefaults", ({ enumerable: true, get: function () { return getPropsWithDefaults_1.getPropsWithDefaults; } })); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); Object.defineProperty(exports, "setFocusVisibility", ({ enumerable: true, get: function () { return setFocusVisibility_1.setFocusVisibility; } })); Object.defineProperty(exports, "IsFocusVisibleClassName", ({ enumerable: true, get: function () { return setFocusVisibility_1.IsFocusVisibleClassName; } })); var canUseDOM_1 = __webpack_require__(/*! ./dom/canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); Object.defineProperty(exports, "canUseDOM", ({ enumerable: true, get: function () { return canUseDOM_1.canUseDOM; } })); // eslint-disable-next-line deprecation/deprecation var setSSR_1 = __webpack_require__(/*! ./dom/setSSR */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js"); Object.defineProperty(exports, "setSSR", ({ enumerable: true, get: function () { return setSSR_1.setSSR; } })); var createMergedRef_1 = __webpack_require__(/*! ./createMergedRef */ "./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js"); Object.defineProperty(exports, "createMergedRef", ({ enumerable: true, get: function () { return createMergedRef_1.createMergedRef; } })); var useIsomorphicLayoutEffect_1 = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js"); Object.defineProperty(exports, "useIsomorphicLayoutEffect", ({ enumerable: true, get: function () { return useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/utilities/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeComponentRef = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Helper to manage componentRef resolution. Internally appends logic to * lifetime methods to resolve componentRef to the passed in object. * * Usage: call initializeComponentRef(this) in the constructor, */ function initializeComponentRef(obj) { (0, extendComponent_1.extendComponent)(obj, { componentDidMount: _onMount, componentDidUpdate: _onUpdate, componentWillUnmount: _onUnmount, }); } exports.initializeComponentRef = initializeComponentRef; // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onMount() { _setComponentRef(this.props.componentRef, this); } // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onUpdate(prevProps) { if (prevProps.componentRef !== this.props.componentRef) { // eslint-disable-next-line @typescript-eslint/no-explicit-any _setComponentRef(prevProps.componentRef, null); _setComponentRef(this.props.componentRef, this); } } // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onUnmount() { _setComponentRef(this.props.componentRef, null); } function _setComponentRef(componentRef, value) { if (componentRef) { if (typeof componentRef === 'object') { componentRef.current = value; } else if (typeof componentRef === 'function') { componentRef(value); } } } //# sourceMappingURL=initializeComponentRef.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeFocusRects = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); /** * Initializes the logic which: * * 1. Subscribes keydown and mousedown events. (It will only do it once per window, * so it's safe to call this method multiple times.) * 2. When the user presses directional keyboard keys, adds the 'ms-Fabric--isFocusVisible' classname * to the document body, removes the 'ms-Fabric-isFocusHidden' classname. * 3. When the user clicks a mouse button, adds the 'ms-Fabric-isFocusHidden' classname to the * document body, removes the 'ms-Fabric--isFocusVisible' classname. * * This logic allows components on the page to conditionally render focus treatments based on * the existence of global classnames, which simplifies logic overall. * * @param window - the window used to add the event listeners * @deprecated Use useFocusRects hook or FocusRects component instead. */ function initializeFocusRects(window) { var _a; var win = (window || (0, getWindow_1.getWindow)()); if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return; } if (!win.__hasInitializeFocusRects__) { win.__hasInitializeFocusRects__ = true; win.addEventListener('mousedown', _onMouseDown, true); win.addEventListener('pointerdown', _onPointerDown, true); win.addEventListener('keydown', _onKeyDown, true); } } exports.initializeFocusRects = initializeFocusRects; function _onMouseDown(ev) { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target); } function _onPointerDown(ev) { if (ev.pointerType !== 'mouse') { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target); } } function _onKeyDown(ev) { // eslint-disable-next-line deprecation/deprecation (0, keyboard_1.isDirectionalKeyCode)(ev.which) && (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target); } //# sourceMappingURL=initializeFocusRects.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initials.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initials.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * Regular expressions matching characters to ignore when calculating the initials. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getInitials = void 0; /** * Regular expression matching characters within various types of enclosures, including the enclosures themselves * so for example, (xyz) [xyz] {xyz} all would be ignored */ var UNWANTED_ENCLOSURES_REGEX = /[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g; /** * Regular expression matching special ASCII characters except space, plus some unicode special characters. * Applies after unwanted enclosures have been removed */ var UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g; /** * Regular expression matching phone numbers. Applied after chars matching UNWANTED_CHARS_REGEX have been removed * and number has been trimmed for whitespaces */ var PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i; /** Regular expression matching one or more spaces. */ var MULTIPLE_WHITESPACES_REGEX = /\s+/g; /** * Regular expression matching languages for which we currently don't support initials. * Arabic: Arabic, Arabic Supplement, Arabic Extended-A. * Korean: Hangul Jamo, Hangul Compatibility Jamo, Hangul Jamo Extended-A, Hangul Syllables, Hangul Jamo Extended-B. * Japanese: Hiragana, Katakana. * CJK: CJK Unified Ideographs Extension A, CJK Unified Ideographs, CJK Compatibility Ideographs, * CJK Unified Ideographs Extension B */ var UNSUPPORTED_TEXT_REGEX = // eslint-disable-next-line @fluentui/max-len /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/; function getInitialsLatin(displayName, isRtl) { var initials = ''; var splits = displayName.split(' '); if (splits.length === 2) { initials += splits[0].charAt(0).toUpperCase(); initials += splits[1].charAt(0).toUpperCase(); } else if (splits.length === 3) { initials += splits[0].charAt(0).toUpperCase(); initials += splits[2].charAt(0).toUpperCase(); } else if (splits.length !== 0) { initials += splits[0].charAt(0).toUpperCase(); } if (isRtl && initials.length > 1) { return initials.charAt(1) + initials.charAt(0); } return initials; } function cleanupDisplayName(displayName) { displayName = displayName.replace(UNWANTED_ENCLOSURES_REGEX, ''); displayName = displayName.replace(UNWANTED_CHARS_REGEX, ''); displayName = displayName.replace(MULTIPLE_WHITESPACES_REGEX, ' '); displayName = displayName.trim(); return displayName; } /** * Get (up to 2 characters) initials based on display name of the persona. * * @public */ function getInitials(displayName, isRtl, allowPhoneInitials) { if (!displayName) { return ''; } displayName = cleanupDisplayName(displayName); // For names containing CJK characters, and phone numbers, we don't display initials if (UNSUPPORTED_TEXT_REGEX.test(displayName) || (!allowPhoneInitials && PHONENUMBER_REGEX.test(displayName))) { return ''; } return getInitialsLatin(displayName, isRtl); } exports.getInitials = getInitials; //# sourceMappingURL=initials.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeDirectionalKeyCode = exports.addDirectionalKeyCode = exports.isDirectionalKeyCode = void 0; var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); var DirectionalKeyCodes = (_a = {}, _a[KeyCodes_1.KeyCodes.up] = 1, _a[KeyCodes_1.KeyCodes.down] = 1, _a[KeyCodes_1.KeyCodes.left] = 1, _a[KeyCodes_1.KeyCodes.right] = 1, _a[KeyCodes_1.KeyCodes.home] = 1, _a[KeyCodes_1.KeyCodes.end] = 1, _a[KeyCodes_1.KeyCodes.tab] = 1, _a[KeyCodes_1.KeyCodes.pageUp] = 1, _a[KeyCodes_1.KeyCodes.pageDown] = 1, _a); /** * Returns true if the keycode is a directional keyboard key. */ function isDirectionalKeyCode(which) { return !!DirectionalKeyCodes[which]; } exports.isDirectionalKeyCode = isDirectionalKeyCode; /** * Adds a keycode to the list of keys that, when pressed, should cause the focus outlines to be visible. * This can be used to add global shortcut keys that directionally move from section to section within * an app or between focus trap zones. */ function addDirectionalKeyCode(which) { DirectionalKeyCodes[which] = 1; } exports.addDirectionalKeyCode = addDirectionalKeyCode; /** * Removes a keycode to the list of keys that, when pressed, should cause the focus outlines to be visible. * This can be used to remove global shortcut keys that directionally move from section to section within * an app or between focus trap zones. */ function removeDirectionalKeyCode(which) { delete DirectionalKeyCodes[which]; } exports.removeDirectionalKeyCode = removeDirectionalKeyCode; //# sourceMappingURL=keyboard.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/language.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/language.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setLanguage = exports.getLanguage = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var localStorage = __webpack_require__(/*! ./localStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js"); var sessionStorage = __webpack_require__(/*! ./sessionStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js"); // Default to undefined so that we initialize on first read. var _language; var STORAGE_KEY = 'language'; /** * Gets the language set for the page. * @param persistenceType - Where to persist the value. Default is `sessionStorage` if available. */ function getLanguage(persistenceType) { if (persistenceType === void 0) { persistenceType = 'sessionStorage'; } if (_language === undefined) { var doc = (0, getDocument_1.getDocument)(); var savedLanguage = persistenceType === 'localStorage' ? localStorage.getItem(STORAGE_KEY) : persistenceType === 'sessionStorage' ? sessionStorage.getItem(STORAGE_KEY) : undefined; if (savedLanguage) { _language = savedLanguage; } if (_language === undefined && doc) { _language = doc.documentElement.getAttribute('lang'); } if (_language === undefined) { _language = 'en'; } } return _language; } exports.getLanguage = getLanguage; function setLanguage(language, persistenceParam) { var doc = (0, getDocument_1.getDocument)(); if (doc) { doc.documentElement.setAttribute('lang', language); } var persistenceType = persistenceParam === true ? 'none' : !persistenceParam ? 'sessionStorage' : persistenceParam; if (persistenceType === 'localStorage') { localStorage.setItem(STORAGE_KEY, language); } else if (persistenceType === 'sessionStorage') { sessionStorage.setItem(STORAGE_KEY, language); } _language = language; } exports.setLanguage = setLanguage; //# sourceMappingURL=language.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setItem = exports.getItem = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Fetches an item from local storage without throwing an exception * @param key The key of the item to fetch from local storage */ function getItem(key) { var result = null; try { var win = (0, getWindow_1.getWindow)(); result = win ? win.localStorage.getItem(key) : null; } catch (e) { /* Eat the exception */ } return result; } exports.getItem = getItem; /** * Inserts an item into local storage without throwing an exception * @param key The key of the item to add to local storage * @param data The data to put into local storage */ function setItem(key, data) { try { var win = (0, getWindow_1.getWindow)(); win && win.localStorage.setItem(key, data); } catch (e) { /* Eat the exception */ } } exports.setItem = setItem; //# sourceMappingURL=localStorage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/math.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/math.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.precisionRound = exports.calculatePrecision = exports.fitContentToBounds = exports.getDistanceBetweenPoints = void 0; /** * Determines the distance between two points. * * @public */ /* eslint-disable deprecation/deprecation */ function getDistanceBetweenPoints(point1, point2) { var left1 = point1.left || point1.x || 0; var top1 = point1.top || point1.y || 0; var left2 = point2.left || point2.x || 0; var top2 = point2.top || point2.y || 0; /* eslint-enable deprecation/deprecation */ var distance = Math.sqrt(Math.pow(left1 - left2, 2) + Math.pow(top1 - top2, 2)); return distance; } exports.getDistanceBetweenPoints = getDistanceBetweenPoints; /** * Produces a proportionally-scaled version of an input content size when fit to a bounding size. * Given a `contentSize` and a `boundsSize`, this function scales `contentSize` proportionally * using either `contain` or `cover` fit behaviors. * Use this function to pre-calculate the layout for the CSS `object-fit` and `background-fit` behaviors. * With `contain`, the output size must be the largest it can be while completely within the `boundsSize`. * With `cover`, the output size must be the smallest it can be while completely around the `boundsSize`. * By default, there is a `maxScale` value of 1, which prevents the `contentSize` from being scaled larger. * * @param options - the options for the bounds fit operation */ function fitContentToBounds(options) { var contentSize = options.contentSize, boundsSize = options.boundsSize, _a = options.mode, mode = _a === void 0 ? 'contain' : _a, _b = options.maxScale, maxScale = _b === void 0 ? 1 : _b; var contentAspectRatio = contentSize.width / contentSize.height; var boundsAspectRatio = boundsSize.width / boundsSize.height; var scale; if (mode === 'contain' ? contentAspectRatio > boundsAspectRatio : contentAspectRatio < boundsAspectRatio) { scale = boundsSize.width / contentSize.width; } else { scale = boundsSize.height / contentSize.height; } var finalScale = Math.min(maxScale, scale); return { width: contentSize.width * finalScale, height: contentSize.height * finalScale, }; } exports.fitContentToBounds = fitContentToBounds; /** * Calculates a number's precision based on the number of trailing * zeros if the number does not have a decimal indicated by a negative * precision. Otherwise, it calculates the number of digits after * the decimal point indicated by a positive precision. * @param value - the value to determine the precision of */ function calculatePrecision(value) { /** * Group 1: * [1-9]([0]+$) matches trailing zeros * Group 2: * \.([0-9]*) matches all digits after a decimal point. */ var groups = /[1-9]([0]+$)|\.([0-9]*)/.exec(String(value)); if (!groups) { return 0; } if (groups[1]) { return -groups[1].length; } if (groups[2]) { return groups[2].length; } return 0; } exports.calculatePrecision = calculatePrecision; /** * Rounds a number to a certain level of precision. Accepts negative precision. * @param value - The value that is being rounded. * @param precision - The number of decimal places to round the number to */ function precisionRound(value, precision, base) { if (base === void 0) { base = 10; } var exp = Math.pow(base, precision); return Math.round(value * exp) / exp; } exports.precisionRound = precisionRound; //# sourceMappingURL=math.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/memoize.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createMemoizer = exports.memoizeFunction = exports.memoize = exports.resetMemoizations = exports.setMemoizeWeakMap = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var _initializedStylesheetResets = false; var _resetCounter = 0; var _emptyObject = { empty: true }; var _dictionary = {}; var _weakMap = typeof WeakMap === 'undefined' ? null : WeakMap; /** * Test utility for providing a custom weakmap. * * @internal * */ function setMemoizeWeakMap(weakMap) { _weakMap = weakMap; } exports.setMemoizeWeakMap = setMemoizeWeakMap; /** * Reset memoizations. */ function resetMemoizations() { _resetCounter++; } exports.resetMemoizations = resetMemoizations; /** * Memoize decorator to be used on class methods. WARNING: the `this` reference * will be inaccessible within a memoized method, given that a cached method's `this` * would not be instance-specific. * * @public */ function memoize(_target, _key, descriptor) { // We bind to "null" to prevent people from inadvertently pulling values from "this", // rather than passing them in as input values which can be memoized. var fn = memoizeFunction(descriptor.value && descriptor.value.bind(null)); return { configurable: true, get: function () { return fn; }, }; } exports.memoize = memoize; /** * Memoizes a function; when you pass in the same parameters multiple times, it returns a cached result. * Be careful when passing in objects, you need to pass in the same INSTANCE for caching to work. Otherwise * it will grow the cache unnecessarily. Also avoid using default values that evaluate functions; passing in * undefined for a value and relying on a default function will execute it the first time, but will not * re-evaluate subsequent times which may have been unexpected. * * By default, the cache will reset after 100 permutations, to avoid abuse cases where the function is * unintendedly called with unique objects. Without a reset, the cache could grow infinitely, so we safeguard * by resetting. To override this behavior, pass a value of 0 to the maxCacheSize parameter. * * @public * @param cb - The function to memoize. * @param maxCacheSize - Max results to cache. If the cache exceeds this value, it will reset on the next call. * @param ignoreNullOrUndefinedResult - Flag to decide whether to cache callback result if it is undefined/null. * If the flag is set to true, the callback result is recomputed every time till the callback result is * not undefined/null for the first time, and then the non-undefined/null version gets cached. * @returns A memoized version of the function. */ function memoizeFunction(cb, maxCacheSize, ignoreNullOrUndefinedResult) { if (maxCacheSize === void 0) { maxCacheSize = 100; } if (ignoreNullOrUndefinedResult === void 0) { ignoreNullOrUndefinedResult = false; } // Avoid breaking scenarios which don't have weak map. if (!_weakMap) { return cb; } if (!_initializedStylesheetResets) { var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { merge_styles_1.Stylesheet.getInstance().onReset(resetMemoizations); } _initializedStylesheetResets = true; } var rootNode; var cacheSize = 0; var localResetCounter = _resetCounter; return function memoizedFunction() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var currentNode = rootNode; if (rootNode === undefined || localResetCounter !== _resetCounter || (maxCacheSize > 0 && cacheSize > maxCacheSize)) { rootNode = _createNode(); cacheSize = 0; localResetCounter = _resetCounter; } currentNode = rootNode; // Traverse the tree until we find the match. for (var i = 0; i < args.length; i++) { var arg = _normalizeArg(args[i]); if (!currentNode.map.has(arg)) { currentNode.map.set(arg, _createNode()); } currentNode = currentNode.map.get(arg); } if (!currentNode.hasOwnProperty('value')) { currentNode.value = cb.apply(void 0, args); cacheSize++; } if (ignoreNullOrUndefinedResult && (currentNode.value === null || currentNode.value === undefined)) { currentNode.value = cb.apply(void 0, args); } return currentNode.value; }; } exports.memoizeFunction = memoizeFunction; /** * Creates a memoizer for a single-value function, backed by a WeakMap. * With a WeakMap, the memoized values are only kept as long as the source objects, * ensuring that there is no memory leak. * * This function assumes that the input values passed to the wrapped function will be * `function` or `object` types. To memoize functions which accept other inputs, use * `memoizeFunction`, which memoizes against arbitrary inputs using a lookup cache. * * @public */ function createMemoizer(getValue) { if (!_weakMap) { // Without a `WeakMap` implementation, memoization is not possible. return getValue; } var cache = new _weakMap(); function memoizedGetValue(input) { if (!input || (typeof input !== 'function' && typeof input !== 'object')) { // A WeakMap can only be used to test against reference values, i.e. 'function' and 'object'. // All other inputs cannot be memoized against in this manner. return getValue(input); } if (cache.has(input)) { return cache.get(input); } var value = getValue(input); cache.set(input, value); return value; } return memoizedGetValue; } exports.createMemoizer = createMemoizer; function _normalizeArg(val) { if (!val) { return _emptyObject; } else if (typeof val === 'object' || typeof val === 'function') { return val; } else if (!_dictionary[val]) { _dictionary[val] = { val: val }; } return _dictionary[val]; } function _createNode() { return { map: _weakMap ? new _weakMap() : null, }; } //# sourceMappingURL=memoize.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/merge.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/merge.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.merge = void 0; /** * Simple deep merge function. Takes all arguments and returns a deep copy of the objects merged * together in the order provided. If an object creates a circular reference, it will assign the * original reference. */ function merge(target) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var arg = args_1[_a]; _merge(target || {}, arg); } return target; } exports.merge = merge; /** * The _merge helper iterates through all props on source and assigns them to target. * When the value is an object, we will create a deep clone of the object. However if * there is a circular reference, the value will not be deep cloned and will persist * the reference. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function _merge(target, source, circularReferences) { if (circularReferences === void 0) { circularReferences = []; } circularReferences.push(source); for (var name_1 in source) { if (source.hasOwnProperty(name_1)) { if (name_1 !== '__proto__' && name_1 !== 'constructor' && name_1 !== 'prototype') { var value = source[name_1]; if (typeof value === 'object' && value !== null && !Array.isArray(value)) { var isCircularReference = circularReferences.indexOf(value) > -1; target[name_1] = (isCircularReference ? value : _merge(target[name_1] || {}, value, circularReferences)); } else { target[name_1] = value; } } } } circularReferences.pop(); return target; } //# sourceMappingURL=merge.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isIOS = void 0; /** * Returns true if and only if the user is on a iOS device. * Used to determine whether iOS-specific behavior should be applied. */ var isIOS = function () { if (!window || !window.navigator || !window.navigator.userAgent) { return false; } return /iPad|iPhone|iPod/i.test(window.navigator.userAgent); }; exports.isIOS = isIOS; //# sourceMappingURL=mobileDetector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/modalize.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/modalize.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** * The helper functions here will make the target element as modal to screen readers, by placing aria-hidden on elements * that are siblings to the target element and the target element's ancestors (because aria-hidden gets inherited). * That way, all other elements on the page are hidden to the screen reader. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.modalize = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); /** Tag names to ignore when modalizing */ var tagsToIgnore = ['TEMPLATE', 'STYLE', 'SCRIPT']; /** * Call this on a target element to make it modal to screen readers. * Returns a function that undoes the changes it made. */ function modalize(target) { var targetDocument = (0, getDocument_1.getDocument)(target); if (!targetDocument) { // can't do this in SSR return function () { return undefined; }; } var affectedNodes = []; // start at target, then recurse and do the same for parent, until we reach while (target !== targetDocument.body && target.parentElement) { // grab all siblings of current element for (var _i = 0, _a = target.parentElement.children; _i < _a.length; _i++) { var sibling = _a[_i]; // but ignore elements that are already aria-hidden var ariaHidden = sibling.getAttribute('aria-hidden'); if (sibling !== target && (ariaHidden === null || ariaHidden === void 0 ? void 0 : ariaHidden.toLowerCase()) !== 'true' && tagsToIgnore.indexOf(sibling.tagName) === -1) { affectedNodes.push([sibling, ariaHidden]); } } target = target.parentElement; } // take all those elements and set aria-hidden=true on them affectedNodes.forEach(function (_a) { var node = _a[0]; node.setAttribute('aria-hidden', 'true'); }); return function () { unmodalize(affectedNodes); affectedNodes = []; // dispose }; } exports.modalize = modalize; /** * Undoes the changes that modalize() did. */ function unmodalize(affectedNodes) { affectedNodes.forEach(function (_a) { var node = _a[0], originalValue = _a[1]; // Restore the original value (false or unset) if (originalValue) { node.setAttribute('aria-hidden', originalValue); } else { node.removeAttribute('aria-hidden'); } }); } //# sourceMappingURL=modalize.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/object.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/object.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.omit = exports.values = exports.mapEnumByName = exports.filteredAssign = exports.assign = exports.shallowCompare = void 0; /** * Compares a to b and b to a. * * @public */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function shallowCompare(a, b) { if (!a || !b) { // only return true if both a and b are falsy return !a && !b; } for (var propName in a) { if (a.hasOwnProperty(propName)) { if (!b.hasOwnProperty(propName) || b[propName] !== a[propName]) { return false; } } } for (var propName in b) { if (b.hasOwnProperty(propName)) { if (!a.hasOwnProperty(propName)) { return false; } } } return true; } exports.shallowCompare = shallowCompare; /** * Makes a resulting merge of a bunch of objects. Pass in the target object followed by 1 or more * objects as arguments and they will be merged sequentially into the target. Note that this will * shallow merge; it will not create new cloned values for target members. * * @public * @param target - Target object to merge following object arguments into. * @param args - One or more objects that will be mixed into the target in the order they are provided. * @returns Resulting merged target. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function assign(target) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return filteredAssign.apply(this, [null, target].concat(args)); } exports.assign = assign; /** * Makes a resulting merge of a bunch of objects, but allows a filter function to be passed in to filter * the resulting merges. This allows for scenarios where you want to merge "everything except that one thing" * or "properties that start with data-". Note that this will shallow merge; it will not create new cloned * values for target members. * * @public * @param isAllowed - Callback to determine if the given propName is allowed in the result. * @param target - Target object to merge following object arguments into. * @param args - One or more objects that will be mixed into the target in the order they are provided. * @returns Resulting merged target. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function filteredAssign(isAllowed, target) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } target = target || {}; for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var sourceObject = args_1[_a]; if (sourceObject) { for (var propName in sourceObject) { if (sourceObject.hasOwnProperty(propName) && (!isAllowed || isAllowed(propName))) { target[propName] = sourceObject[propName]; } } } } return target; } exports.filteredAssign = filteredAssign; /** * Takes an enum and iterates over each value of the enum (as a string), running the callback on each, * returning a mapped array. * @param theEnum - Enum to iterate over * @param callback - The first parameter the name of the entry, and the second parameter is the value * of that entry, which is the value you'd normally use when using the enum (usually a number). */ function mapEnumByName( // eslint-disable-next-line @typescript-eslint/no-explicit-any theEnum, callback) { // map to satisfy compiler since it doesn't realize we strip out undefineds in the .filter() call return Object.keys(theEnum) .map(function (p) { // map on each property name as a string if (String(Number(p)) !== p) { // if the property is not just a number (because enums in TypeScript will map both ways) return callback(p, theEnum[p]); } return undefined; }) .filter(function (v) { return !!v; }); // only return elements with values } exports.mapEnumByName = mapEnumByName; /** * Get all values in an object dictionary * * @param obj - The dictionary to get values for */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function values(obj) { return Object.keys(obj).reduce(function (arr, key) { arr.push(obj[key]); return arr; }, []); } exports.values = values; /** * Tiny helper to do the minimal amount of work in duplicating an object but omitting some * props. This ends up faster than using object ...rest or reduce to filter. * * This behaves very much like filteredAssign, but does not merge many objects together, * uses an exclusion object map, and avoids spreads all for optimal performance. * * See perf test for background: * https://jsperf.com/omit-vs-rest-vs-reduce/1 * * @param obj - The object to clone * @param exclusions - The array of keys to exclude */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function omit(obj, exclusions) { // eslint-disable-next-line @typescript-eslint/no-explicit-any var result = {}; for (var key in obj) { if (exclusions.indexOf(key) === -1 && obj.hasOwnProperty(key)) { result[key] = obj[key]; } } return result; } exports.omit = omit; //# sourceMappingURL=object.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isMac = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var isMacResult; /** * Returns true if the user is on a Mac. Caches the result value. * @param reset - Reset the cached result value (mainly for testing). */ function isMac(reset) { var _a; if (typeof isMacResult === 'undefined' || reset) { var win = (0, getWindow_1.getWindow)(); // In certain SSR frameworks, `window` will be defined even on the server but `navigator` will be undefined var userAgent = (_a = win === null || win === void 0 ? void 0 : win.navigator) === null || _a === void 0 ? void 0 : _a.userAgent; isMacResult = !!userAgent && userAgent.indexOf('Macintosh') !== -1; } return !!isMacResult; } exports.isMac = isMac; //# sourceMappingURL=osDetector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/overflow.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/overflow.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hasOverflow = exports.hasVerticalOverflow = exports.hasHorizontalOverflow = void 0; /** * Detects whether an element's content has horizontal overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasHorizontalOverflow(element) { return element.clientWidth < element.scrollWidth; } exports.hasHorizontalOverflow = hasHorizontalOverflow; /** * Detects whether an element's content has vertical overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasVerticalOverflow(element) { return element.clientHeight < element.scrollHeight; } exports.hasVerticalOverflow = hasVerticalOverflow; /** * Detects whether an element's content has overflow in any direction * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasOverflow(element) { return hasHorizontalOverflow(element) || hasVerticalOverflow(element); } exports.hasOverflow = hasOverflow; //# sourceMappingURL=overflow.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/properties.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getNativeProps = exports.divProperties = exports.imageProperties = exports.imgProperties = exports.iframeProperties = exports.formProperties = exports.colProperties = exports.colGroupProperties = exports.tdProperties = exports.thProperties = exports.trProperties = exports.tableProperties = exports.optionProperties = exports.selectProperties = exports.textAreaProperties = exports.inputProperties = exports.buttonProperties = exports.anchorProperties = exports.liProperties = exports.olProperties = exports.videoProperties = exports.audioProperties = exports.labelProperties = exports.htmlElementProperties = exports.baseElementProperties = exports.baseElementEvents = void 0; var toObjectMap = function () { var items = []; for (var _i = 0; _i < arguments.length; _i++) { items[_i] = arguments[_i]; } var result = {}; for (var _a = 0, items_1 = items; _a < items_1.length; _a++) { var item = items_1[_a]; var keys = Array.isArray(item) ? item : Object.keys(item); for (var _b = 0, keys_1 = keys; _b < keys_1.length; _b++) { var key = keys_1[_b]; result[key] = 1; } } return result; }; /** * An array of events that are allowed on every html element type. * * @public */ exports.baseElementEvents = toObjectMap([ 'onCopy', 'onCut', 'onPaste', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onInput', 'onSubmit', 'onLoad', 'onError', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyUp', 'onAbort', 'onCanPlay', 'onCanPlayThrough', 'onDurationChange', 'onEmptied', 'onEncrypted', 'onEnded', 'onLoadedData', 'onLoadedMetadata', 'onLoadStart', 'onPause', 'onPlay', 'onPlaying', 'onProgress', 'onRateChange', 'onSeeked', 'onSeeking', 'onStalled', 'onSuspend', 'onTimeUpdate', 'onVolumeChange', 'onWaiting', 'onClick', 'onClickCapture', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onScroll', 'onWheel', 'onPointerCancel', 'onPointerDown', 'onPointerEnter', 'onPointerLeave', 'onPointerMove', 'onPointerOut', 'onPointerOver', 'onPointerUp', 'onGotPointerCapture', 'onLostPointerCapture', ]); /** * An array of element attributes which are allowed on every html element type. * * @public */ exports.baseElementProperties = toObjectMap([ 'accessKey', 'children', 'className', 'contentEditable', 'dir', 'draggable', 'hidden', 'htmlFor', 'id', 'lang', 'ref', 'role', 'style', 'tabIndex', 'title', 'translate', 'spellCheck', 'name', // global ]); /** * An array of HTML element properties and events. * * @public */ exports.htmlElementProperties = toObjectMap(exports.baseElementProperties, exports.baseElementEvents); /** * An array of LABEL tag properties and events. * * @public */ exports.labelProperties = toObjectMap(exports.htmlElementProperties, [ 'form', // button, fieldset, input, label, meter, object, output, select, textarea ]); /** * An array of AUDIO tag properties and events. * @public */ exports.audioProperties = toObjectMap(exports.htmlElementProperties, [ 'height', 'loop', 'muted', 'preload', 'src', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * An array of VIDEO tag properties and events. * * @public */ exports.videoProperties = toObjectMap(exports.audioProperties, [ 'poster', // video ]); /** * An array of OL tag properties and events. * * @public */ exports.olProperties = toObjectMap(exports.htmlElementProperties, [ 'start', // ol ]); /** * An array of LI tag properties and events. * * @public */ exports.liProperties = toObjectMap(exports.htmlElementProperties, [ 'value', // button, input, li, option, meter, progress, param ]); /** * An array of A tag properties and events. * * @public */ exports.anchorProperties = toObjectMap(exports.htmlElementProperties, [ 'download', 'href', 'hrefLang', 'media', 'rel', 'target', 'type', // a, button, input, link, menu, object, script, source, style ]); /** * An array of BUTTON tag properties and events. * * @public */ exports.buttonProperties = toObjectMap(exports.htmlElementProperties, [ 'autoFocus', 'disabled', 'form', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', 'type', 'value', // button, input, li, option, meter, progress, param, ]); /** * An array of INPUT tag properties and events. * * @public */ exports.inputProperties = toObjectMap(exports.buttonProperties, [ 'accept', 'alt', 'autoCapitalize', 'autoComplete', 'checked', 'dirname', 'form', 'height', 'inputMode', 'list', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'pattern', 'placeholder', 'readOnly', 'required', 'src', 'step', 'size', 'type', 'value', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * An array of TEXTAREA tag properties and events. * * @public */ exports.textAreaProperties = toObjectMap(exports.buttonProperties, [ 'autoCapitalize', 'cols', 'dirname', 'form', 'maxLength', 'minLength', 'placeholder', 'readOnly', 'required', 'rows', 'wrap', // textarea ]); /** * An array of SELECT tag properties and events. * * @public */ exports.selectProperties = toObjectMap(exports.buttonProperties, [ 'form', 'multiple', 'required', // input, select, textarea ]); exports.optionProperties = toObjectMap(exports.htmlElementProperties, [ 'selected', 'value', // button, input, li, option, meter, progress, param ]); /** * An array of TABLE tag properties and events. * * @public */ exports.tableProperties = toObjectMap(exports.htmlElementProperties, [ 'cellPadding', 'cellSpacing', // table ]); /** * An array of TR tag properties and events. * * @public */ exports.trProperties = exports.htmlElementProperties; /** * An array of TH tag properties and events. * * @public */ exports.thProperties = toObjectMap(exports.htmlElementProperties, [ 'rowSpan', 'scope', // th ]); /** * An array of TD tag properties and events. * * @public */ exports.tdProperties = toObjectMap(exports.htmlElementProperties, [ 'colSpan', 'headers', 'rowSpan', 'scope', // th ]); exports.colGroupProperties = toObjectMap(exports.htmlElementProperties, [ 'span', // col, colgroup ]); exports.colProperties = toObjectMap(exports.htmlElementProperties, [ 'span', // col, colgroup ]); /** * An array of FORM tag properties and events. * * @public */ exports.formProperties = toObjectMap(exports.htmlElementProperties, [ 'acceptCharset', 'action', 'encType', 'encType', 'method', 'noValidate', 'target', // form ]); /** * An array of IFRAME tag properties and events. * * @public */ exports.iframeProperties = toObjectMap(exports.htmlElementProperties, [ 'allow', 'allowFullScreen', 'allowPaymentRequest', 'allowTransparency', 'csp', 'height', 'importance', 'referrerPolicy', 'sandbox', 'src', 'srcDoc', 'width', // canvas, embed, iframe, img, input, object, video, ]); /** * An array of IMAGE tag properties and events. * * @public */ exports.imgProperties = toObjectMap(exports.htmlElementProperties, [ 'alt', 'crossOrigin', 'height', 'src', 'srcSet', 'useMap', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * @deprecated Use imgProperties for img elements. */ exports.imageProperties = exports.imgProperties; /** * An array of DIV tag properties and events. * * @public */ exports.divProperties = exports.htmlElementProperties; /** * Gets native supported props for an html element provided the allowance set. Use one of the property * sets defined (divProperties, buttonPropertes, etc) to filter out supported properties from a given * props set. Note that all data- and aria- prefixed attributes will be allowed. * NOTE: getNativeProps should always be applied first when adding props to a react component. The * non-native props should be applied second. This will prevent getNativeProps from overriding your custom props. * For example, if props passed to getNativeProps has an onClick function and getNativeProps is added to * the component after an onClick function is added, then the getNativeProps onClick will override it. * * @public * @param props - The unfiltered input props * @param allowedPropsNames - The array or record of allowed prop names. * @returns The filtered props */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function getNativeProps( // eslint-disable-next-line @typescript-eslint/no-explicit-any props, allowedPropNames, excludedPropNames) { // It'd be great to properly type this while allowing 'aria-` and 'data-' attributes like TypeScript does for // JSX attributes, but that ability is hardcoded into the TS compiler with no analog in TypeScript typings. // Then we'd be able to enforce props extends native props (including aria- and data- attributes), and then // return native props. // We should be able to do this once this PR is merged: https://github.com/microsoft/TypeScript/pull/26797 var isArray = Array.isArray(allowedPropNames); // eslint-disable-next-line @typescript-eslint/no-explicit-any var result = {}; var keys = Object.keys(props); for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) { var key = keys_2[_i]; var isNativeProp = (!isArray && allowedPropNames[key]) || (isArray && allowedPropNames.indexOf(key) >= 0) || key.indexOf('data-') === 0 || key.indexOf('aria-') === 0; if (isNativeProp && (!excludedPropNames || (excludedPropNames === null || excludedPropNames === void 0 ? void 0 : excludedPropNames.indexOf(key)) === -1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any result[key] = props[key]; } } return result; } exports.getNativeProps = getNativeProps; //# sourceMappingURL=properties.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.composeRenderFunction = void 0; var memoize_1 = __webpack_require__(/*! ../memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); function createComposedRenderFunction(outer) { var outerMemoizer = (0, memoize_1.createMemoizer)(function (inner) { var innerMemoizer = (0, memoize_1.createMemoizer)(function (defaultRender) { return function (innerProps) { return inner(innerProps, defaultRender); }; }); return function (outerProps, defaultRender) { return outer(outerProps, defaultRender ? innerMemoizer(defaultRender) : inner); }; }); return outerMemoizer; } var memoizer = (0, memoize_1.createMemoizer)(createComposedRenderFunction); /** * Composes two 'render functions' to produce a final render function that renders * the outer function, passing the inner function as 'default render'. The inner function * is then passed the original 'default render' prop. * @public */ function composeRenderFunction(outer, inner) { return memoizer(outer)(inner); } exports.composeRenderFunction = composeRenderFunction; //# sourceMappingURL=composeRenderFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/resources.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/resources.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setBaseUrl = exports.getResourceUrl = void 0; var _baseUrl = ''; /** * @deprecated Unused as of version 8 */ function getResourceUrl(url) { return _baseUrl + url; } exports.getResourceUrl = getResourceUrl; /** * @deprecated Unused as of version 8 */ function setBaseUrl(baseUrl) { _baseUrl = baseUrl; } exports.setBaseUrl = setBaseUrl; //# sourceMappingURL=resources.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/rtl.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRTLSafeKeyCode = exports.setRTL = exports.getRTL = void 0; var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var sessionStorage_1 = __webpack_require__(/*! ./sessionStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var RTL_LOCAL_STORAGE_KEY = 'isRTL'; // Default to undefined so that we initialize on first read. var _isRTL; /** * Gets the rtl state of the page (returns true if in rtl.) */ function getRTL(theme) { if (theme === void 0) { theme = {}; } if (theme.rtl !== undefined) { return theme.rtl; } if (_isRTL === undefined) { // Fabric supports persisting the RTL setting between page refreshes via session storage var savedRTL = (0, sessionStorage_1.getItem)(RTL_LOCAL_STORAGE_KEY); if (savedRTL !== null) { _isRTL = savedRTL === '1'; setRTL(_isRTL); } var doc = (0, getDocument_1.getDocument)(); if (_isRTL === undefined && doc) { _isRTL = ((doc.body && doc.body.getAttribute('dir')) || doc.documentElement.getAttribute('dir')) === 'rtl'; (0, merge_styles_1.setRTL)(_isRTL); } } return !!_isRTL; } exports.getRTL = getRTL; /** * Sets the rtl state of the page (by adjusting the dir attribute of the html element.) */ function setRTL(isRTL, persistSetting) { if (persistSetting === void 0) { persistSetting = false; } var doc = (0, getDocument_1.getDocument)(); if (doc) { doc.documentElement.setAttribute('dir', isRTL ? 'rtl' : 'ltr'); } if (persistSetting) { (0, sessionStorage_1.setItem)(RTL_LOCAL_STORAGE_KEY, isRTL ? '1' : '0'); } _isRTL = isRTL; (0, merge_styles_1.setRTL)(_isRTL); } exports.setRTL = setRTL; /** * Returns the given key, but flips right/left arrows if necessary. */ function getRTLSafeKeyCode(key, theme) { if (theme === void 0) { theme = {}; } if (getRTL(theme)) { if (key === KeyCodes_1.KeyCodes.left) { key = KeyCodes_1.KeyCodes.right; } else if (key === KeyCodes_1.KeyCodes.right) { key = KeyCodes_1.KeyCodes.left; } } return key; } exports.getRTLSafeKeyCode = getRTLSafeKeyCode; //# sourceMappingURL=rtl.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.safeRequestAnimationFrame = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Generates a function to be attached to a React component, which can be called * as a replacement to RAF. In-flight async calls will be auto canceled if the component * is unmounting before the async code is executed, preventing bugs where code * accesses things within the component after being unmounted. */ var safeRequestAnimationFrame = function (component) { var activeTimeouts; return function (cb) { if (!activeTimeouts) { activeTimeouts = new Set(); (0, extendComponent_1.extendComponent)(component, { componentWillUnmount: function () { activeTimeouts.forEach(function (id) { return cancelAnimationFrame(id); }); }, }); } var timeoutId = requestAnimationFrame(function () { activeTimeouts.delete(timeoutId); cb(); }); activeTimeouts.add(timeoutId); }; }; exports.safeRequestAnimationFrame = safeRequestAnimationFrame; //# sourceMappingURL=safeRequestAnimationFrame.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.safeSetTimeout = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Generates a function to be attached to a React component, which can be called * as a replacement to setTimeout. In-flight async calls will be auto canceled if the component * is unmounting before the async code is executed, preventing bugs where code * accesses things within the component after being unmounted. */ var safeSetTimeout = function (component) { var activeTimeouts; return function (cb, duration) { if (!activeTimeouts) { activeTimeouts = new Set(); (0, extendComponent_1.extendComponent)(component, { componentWillUnmount: function () { activeTimeouts.forEach(function (id) { return clearTimeout(id); }); }, }); } var timeoutId = setTimeout(function () { activeTimeouts.delete(timeoutId); cb(); }, duration); activeTimeouts.add(timeoutId); }; }; exports.safeSetTimeout = safeSetTimeout; //# sourceMappingURL=safeSetTimeout.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/scroll.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findScrollableParent = exports.getScrollbarWidth = exports.enableBodyScroll = exports.disableBodyScroll = exports.allowOverscrollOnElement = exports.allowScrollOnElement = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var _scrollbarWidth; var _bodyScrollDisabledCount = 0; var DisabledScrollClassName = (0, merge_styles_1.mergeStyles)({ overflow: 'hidden !important', }); /** * Placing this attribute on scrollable divs optimizes detection to know * if the div is scrollable or not (given we can avoid expensive operations * like getComputedStyle.) * * @public */ exports.DATA_IS_SCROLLABLE_ATTRIBUTE = 'data-is-scrollable'; /** * Allows the user to scroll within a element, * while preventing the user from scrolling the body */ var allowScrollOnElement = function (element, events) { if (!element) { return; } var _previousClientY = 0; var _element = null; // remember the clientY for future calls of _preventOverscrolling var _saveClientY = function (event) { if (event.targetTouches.length === 1) { _previousClientY = event.targetTouches[0].clientY; } }; // prevent the body from scrolling when the user attempts // to scroll past the top or bottom of the element var _preventOverscrolling = function (event) { // only respond to a single-finger touch if (event.targetTouches.length !== 1) { return; } // prevent the body touchmove handler from firing // so that scrolling is allowed within the element event.stopPropagation(); if (!_element) { return; } var clientY = event.targetTouches[0].clientY - _previousClientY; var scrollableParent = findScrollableParent(event.target); if (scrollableParent) { _element = scrollableParent; } // if the element is scrolled to the top, // prevent the user from scrolling up if (_element.scrollTop === 0 && clientY > 0) { event.preventDefault(); } // if the element is scrolled to the bottom, // prevent the user from scrolling down if (_element.scrollHeight - Math.ceil(_element.scrollTop) <= _element.clientHeight && clientY < 0) { event.preventDefault(); } }; events.on(element, 'touchstart', _saveClientY, { passive: false }); events.on(element, 'touchmove', _preventOverscrolling, { passive: false }); _element = element; }; exports.allowScrollOnElement = allowScrollOnElement; /** * Same as allowScrollOnElement but does not prevent overscrolling. */ var allowOverscrollOnElement = function (element, events) { if (!element) { return; } var _allowElementScroll = function (event) { event.stopPropagation(); }; events.on(element, 'touchmove', _allowElementScroll, { passive: false }); }; exports.allowOverscrollOnElement = allowOverscrollOnElement; var _disableIosBodyScroll = function (event) { event.preventDefault(); }; /** * Disables the body scrolling. * * @public */ function disableBodyScroll() { var doc = (0, getDocument_1.getDocument)(); if (doc && doc.body && !_bodyScrollDisabledCount) { doc.body.classList.add(DisabledScrollClassName); doc.body.addEventListener('touchmove', _disableIosBodyScroll, { passive: false, capture: false }); } _bodyScrollDisabledCount++; } exports.disableBodyScroll = disableBodyScroll; /** * Enables the body scrolling. * * @public */ function enableBodyScroll() { if (_bodyScrollDisabledCount > 0) { var doc = (0, getDocument_1.getDocument)(); if (doc && doc.body && _bodyScrollDisabledCount === 1) { doc.body.classList.remove(DisabledScrollClassName); doc.body.removeEventListener('touchmove', _disableIosBodyScroll); } _bodyScrollDisabledCount--; } } exports.enableBodyScroll = enableBodyScroll; /** * Calculates the width of a scrollbar for the browser/os. * * @public */ function getScrollbarWidth() { if (_scrollbarWidth === undefined) { var scrollDiv = document.createElement('div'); scrollDiv.style.setProperty('width', '100px'); scrollDiv.style.setProperty('height', '100px'); scrollDiv.style.setProperty('overflow', 'scroll'); scrollDiv.style.setProperty('position', 'absolute'); scrollDiv.style.setProperty('top', '-9999px'); document.body.appendChild(scrollDiv); // Get the scrollbar width _scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; // Delete the DIV document.body.removeChild(scrollDiv); } return _scrollbarWidth; } exports.getScrollbarWidth = getScrollbarWidth; /** * Traverses up the DOM for the element with the data-is-scrollable=true attribute, or returns * document.body. * * @public */ function findScrollableParent(startingElement) { var el = startingElement; var doc = (0, getDocument_1.getDocument)(startingElement); // First do a quick scan for the scrollable attribute. while (el && el !== doc.body) { if (el.getAttribute(exports.DATA_IS_SCROLLABLE_ATTRIBUTE) === 'true') { return el; } el = el.parentElement; } // If we haven't found it, the use the slower method: compute styles to evaluate if overflow is set. el = startingElement; while (el && el !== doc.body) { if (el.getAttribute(exports.DATA_IS_SCROLLABLE_ATTRIBUTE) !== 'false') { var computedStyles = getComputedStyle(el); var overflowY = computedStyles ? computedStyles.getPropertyValue('overflow-y') : ''; if (overflowY && (overflowY === 'scroll' || overflowY === 'auto')) { return el; } } el = el.parentElement; } // Fall back to window scroll. if (!el || el === doc.body) { el = (0, getWindow_1.getWindow)(startingElement); } return el; } exports.findScrollableParent = findScrollableParent; //# sourceMappingURL=scroll.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = void 0; var Selection_types_1 = __webpack_require__(/*! ./Selection.types */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js"); var EventGroup_1 = __webpack_require__(/*! ../EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); /** * {@docCategory Selection} */ var Selection = /** @class */ (function () { /** * Create a new Selection. If `TItem` does not have a `key` property, you must provide an options * object with a `getKey` implementation. Providing options is optional otherwise. * (At most one `options` object is accepted.) */ function Selection() { var options = []; // Otherwise, arguments require options with `getKey`. for (var _i = 0 // Otherwise, arguments require options with `getKey`. ; _i < arguments.length // Otherwise, arguments require options with `getKey`. ; _i++ // Otherwise, arguments require options with `getKey`. ) { options[_i] = arguments[_i]; // Otherwise, arguments require options with `getKey`. } var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, onItemsChanged = _a.onItemsChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c; this.mode = selectionMode; this._getKey = getKey || defaultGetKey; this._changeEventSuppressionCount = 0; this._exemptedCount = 0; this._anchoredIndex = 0; this._unselectableCount = 0; this._onSelectionChanged = onSelectionChanged; this._onItemsChanged = onItemsChanged; this._canSelectItem = canSelectItem; this._keyToIndexMap = {}; this._isModal = false; this.setItems(items || [], true); this.count = this.getSelectedCount(); } Selection.prototype.canSelectItem = function (item, index) { if (typeof index === 'number' && index < 0) { return false; } return this._canSelectItem(item, index); }; Selection.prototype.getKey = function (item, index) { var key = this._getKey(item, index); return typeof key === 'number' || key ? "".concat(key) : ''; }; Selection.prototype.setChangeEvents = function (isEnabled, suppressChange) { this._changeEventSuppressionCount += isEnabled ? -1 : 1; if (this._changeEventSuppressionCount === 0 && this._hasChanged) { this._hasChanged = false; if (!suppressChange) { this._change(); } } }; Selection.prototype.isModal = function () { return this._isModal; }; Selection.prototype.setModal = function (isModal) { if (this._isModal !== isModal) { this.setChangeEvents(false); this._isModal = isModal; if (!isModal) { this.setAllSelected(false); } this._change(); this.setChangeEvents(true); } }; /** * Selection needs the items, call this method to set them. If the set * of items is the same, this will re-evaluate selection and index maps. * Otherwise, shouldClear should be set to true, so that selection is * cleared. */ Selection.prototype.setItems = function (items, shouldClear) { if (shouldClear === void 0) { shouldClear = true; } var newKeyToIndexMap = {}; var newUnselectableIndices = {}; var hasSelectionChanged = false; this.setChangeEvents(false); // Reset the unselectable count. this._unselectableCount = 0; var haveItemsChanged = false; // Build lookup table for quick selection evaluation. for (var i = 0; i < items.length; i++) { var item = items[i]; if (item) { var key = this.getKey(item, i); if (key) { if (!haveItemsChanged && (!(key in this._keyToIndexMap) || this._keyToIndexMap[key] !== i)) { haveItemsChanged = true; } newKeyToIndexMap[key] = i; } } newUnselectableIndices[i] = item && !this.canSelectItem(item); if (newUnselectableIndices[i]) { this._unselectableCount++; } } if (shouldClear || items.length === 0) { this._setAllSelected(false, true); } // Check the exemption list for discrepencies. var newExemptedIndicies = {}; var newExemptedCount = 0; for (var indexProperty in this._exemptedIndices) { if (this._exemptedIndices.hasOwnProperty(indexProperty)) { var index = Number(indexProperty); var item = this._items[index]; var exemptKey = item ? this.getKey(item, Number(index)) : undefined; var newIndex = exemptKey ? newKeyToIndexMap[exemptKey] : index; if (newIndex === undefined) { // The item has likely been replaced or removed. hasSelectionChanged = true; } else { // We know the new index of the item. update the existing exemption table. newExemptedIndicies[newIndex] = true; newExemptedCount++; hasSelectionChanged = hasSelectionChanged || newIndex !== index; } } } if (this._items && this._exemptedCount === 0 && items.length !== this._items.length && this._isAllSelected) { // If everything was selected but the number of items has changed, selection has changed. hasSelectionChanged = true; } if (!haveItemsChanged) { for (var _i = 0, _a = Object.keys(this._keyToIndexMap); _i < _a.length; _i++) { var key = _a[_i]; if (!(key in newKeyToIndexMap)) { haveItemsChanged = true; break; } } } this._exemptedIndices = newExemptedIndicies; this._exemptedCount = newExemptedCount; this._keyToIndexMap = newKeyToIndexMap; this._unselectableIndices = newUnselectableIndices; this._items = items; this._selectedItems = null; if (hasSelectionChanged) { this._updateCount(); } if (haveItemsChanged) { EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_ITEMS_CHANGE); if (this._onItemsChanged) { this._onItemsChanged(); } } if (hasSelectionChanged) { this._change(); } this.setChangeEvents(true); }; Selection.prototype.getItems = function () { return this._items; }; Selection.prototype.getSelection = function () { if (!this._selectedItems) { this._selectedItems = []; var items = this._items; if (items) { for (var i = 0; i < items.length; i++) { if (this.isIndexSelected(i)) { this._selectedItems.push(items[i]); } } } } return this._selectedItems; }; Selection.prototype.getSelectedCount = function () { return this._isAllSelected ? this._items.length - this._exemptedCount - this._unselectableCount : this._exemptedCount; }; Selection.prototype.getSelectedIndices = function () { if (!this._selectedIndices) { this._selectedIndices = []; var items = this._items; if (items) { for (var i = 0; i < items.length; i++) { if (this.isIndexSelected(i)) { this._selectedIndices.push(i); } } } } return this._selectedIndices; }; Selection.prototype.getItemIndex = function (key) { var index = this._keyToIndexMap[key]; return index !== null && index !== void 0 ? index : -1; }; Selection.prototype.isRangeSelected = function (fromIndex, count) { if (count === 0) { return false; } var endIndex = fromIndex + count; for (var i = fromIndex; i < endIndex; i++) { if (!this.isIndexSelected(i)) { return false; } } return true; }; Selection.prototype.isAllSelected = function () { var selectableCount = this._items.length - this._unselectableCount; // In single mode, we can only have a max of 1 item. if (this.mode === Selection_types_1.SelectionMode.single) { selectableCount = Math.min(selectableCount, 1); } return ((this.count > 0 && this._isAllSelected && this._exemptedCount === 0) || (!this._isAllSelected && this._exemptedCount === selectableCount && selectableCount > 0)); }; Selection.prototype.isKeySelected = function (key) { var index = this._keyToIndexMap[key]; return this.isIndexSelected(index); }; Selection.prototype.isIndexSelected = function (index) { return !!((this.count > 0 && this._isAllSelected && !this._exemptedIndices[index] && !this._unselectableIndices[index]) || (!this._isAllSelected && this._exemptedIndices[index])); }; Selection.prototype.setAllSelected = function (isAllSelected) { if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) { return; } var selectableCount = this._items ? this._items.length - this._unselectableCount : 0; this.setChangeEvents(false); if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) { this._exemptedIndices = {}; if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) { this._exemptedCount = 0; this._isAllSelected = isAllSelected; this._change(); } this._updateCount(); } this.setChangeEvents(true); }; Selection.prototype.setKeySelected = function (key, isSelected, shouldAnchor) { var index = this._keyToIndexMap[key]; if (index >= 0) { this.setIndexSelected(index, isSelected, shouldAnchor); } }; Selection.prototype.setIndexSelected = function (index, isSelected, shouldAnchor) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } // Clamp the index. index = Math.min(Math.max(0, index), this._items.length - 1); // No-op on out of bounds selections. if (index < 0 || index >= this._items.length) { return; } this.setChangeEvents(false); var isExempt = this._exemptedIndices[index]; var canSelect = !this._unselectableIndices[index]; if (canSelect) { if (isSelected && this.mode === Selection_types_1.SelectionMode.single) { // If this is single-select, the previous selection should be removed. this._setAllSelected(false, true); } // Determine if we need to remove the exemption. if (isExempt && ((isSelected && this._isAllSelected) || (!isSelected && !this._isAllSelected))) { delete this._exemptedIndices[index]; this._exemptedCount--; } // Determine if we need to add the exemption. if (!isExempt && ((isSelected && !this._isAllSelected) || (!isSelected && this._isAllSelected))) { this._exemptedIndices[index] = true; this._exemptedCount++; } if (shouldAnchor) { this._anchoredIndex = index; } } this._updateCount(); this.setChangeEvents(true); }; Selection.prototype.setRangeSelected = function (fromIndex, count, isSelected, shouldAnchor) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } // Clamp the index. fromIndex = Math.min(Math.max(0, fromIndex), this._items.length - 1); // Clamp the range. count = Math.min(Math.max(0, count), this._items.length - fromIndex); // No-op on out of bounds selections. if (fromIndex < 0 || fromIndex >= this._items.length || count === 0) { return; } this.setChangeEvents(false); var anchorIndex = this._anchoredIndex || 0; var startIndex = fromIndex; var endIndex = fromIndex + count - 1; var newAnchorIndex = anchorIndex >= endIndex ? startIndex : endIndex; for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, isSelected, shouldAnchor ? startIndex === newAnchorIndex : false); } this.setChangeEvents(true); }; Selection.prototype.selectToKey = function (key, clearSelection) { this.selectToIndex(this._keyToIndexMap[key], clearSelection); }; Selection.prototype.selectToRange = function (fromIndex, count, clearSelection) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } if (this.mode === Selection_types_1.SelectionMode.single) { if (count === 1) { this.setIndexSelected(fromIndex, true, true); } return; } var anchorIndex = this._anchoredIndex || 0; var startIndex = Math.min(fromIndex, anchorIndex); var endIndex = Math.max(fromIndex + count - 1, anchorIndex); this.setChangeEvents(false); if (clearSelection) { this._setAllSelected(false, true); } for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, true, false); } this.setChangeEvents(true); }; Selection.prototype.selectToIndex = function (index, clearSelection) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } if (this.mode === Selection_types_1.SelectionMode.single) { this.setIndexSelected(index, true, true); return; } var anchorIndex = this._anchoredIndex || 0; var startIndex = Math.min(index, anchorIndex); var endIndex = Math.max(index, anchorIndex); this.setChangeEvents(false); if (clearSelection) { this._setAllSelected(false, true); } for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, true, false); } this.setChangeEvents(true); }; Selection.prototype.toggleAllSelected = function () { this.setAllSelected(!this.isAllSelected()); }; Selection.prototype.toggleKeySelected = function (key) { this.setKeySelected(key, !this.isKeySelected(key), true); }; Selection.prototype.toggleIndexSelected = function (index) { this.setIndexSelected(index, !this.isIndexSelected(index), true); }; Selection.prototype.toggleRangeSelected = function (fromIndex, count) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } var isRangeSelected = this.isRangeSelected(fromIndex, count); var endIndex = fromIndex + count; if (this.mode === Selection_types_1.SelectionMode.single && count > 1) { return; } this.setChangeEvents(false); for (var i = fromIndex; i < endIndex; i++) { this.setIndexSelected(i, !isRangeSelected, false); } this.setChangeEvents(true); }; Selection.prototype._updateCount = function (preserveModalState) { if (preserveModalState === void 0) { preserveModalState = false; } var count = this.getSelectedCount(); if (count !== this.count) { this.count = count; this._change(); } if (!this.count && !preserveModalState) { this.setModal(false); } }; Selection.prototype._setAllSelected = function (isAllSelected, preserveModalState) { if (preserveModalState === void 0) { preserveModalState = false; } if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) { return; } var selectableCount = this._items ? this._items.length - this._unselectableCount : 0; this.setChangeEvents(false); if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) { this._exemptedIndices = {}; if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) { this._exemptedCount = 0; this._isAllSelected = isAllSelected; this._change(); } this._updateCount(preserveModalState); } this.setChangeEvents(true); }; Selection.prototype._change = function () { if (this._changeEventSuppressionCount === 0) { this._selectedItems = null; this._selectedIndices = undefined; EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_CHANGE); if (this._onSelectionChanged) { this._onSelectionChanged(); } } else { this._hasChanged = true; } }; return Selection; }()); exports.Selection = Selection; function defaultGetKey(item, index) { // 0 may be used as a key var _a = (item || {}).key, key = _a === void 0 ? "".concat(index) : _a; return key; } //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionDirection = exports.SelectionMode = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = void 0; exports.SELECTION_CHANGE = 'change'; exports.SELECTION_ITEMS_CHANGE = 'items-change'; /** * {@docCategory Selection} */ var SelectionMode; (function (SelectionMode) { SelectionMode[SelectionMode["none"] = 0] = "none"; SelectionMode[SelectionMode["single"] = 1] = "single"; SelectionMode[SelectionMode["multiple"] = 2] = "multiple"; })(SelectionMode = exports.SelectionMode || (exports.SelectionMode = {})); /** * {@docCategory Selection} */ var SelectionDirection; (function (SelectionDirection) { SelectionDirection[SelectionDirection["horizontal"] = 0] = "horizontal"; SelectionDirection[SelectionDirection["vertical"] = 1] = "vertical"; })(SelectionDirection = exports.SelectionDirection || (exports.SelectionDirection = {})); //# sourceMappingURL=Selection.types.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = exports.SelectionMode = exports.SelectionDirection = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = void 0; var Selection_types_1 = __webpack_require__(/*! ./Selection.types */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return Selection_types_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SELECTION_ITEMS_CHANGE", ({ enumerable: true, get: function () { return Selection_types_1.SELECTION_ITEMS_CHANGE; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return Selection_types_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return Selection_types_1.SelectionMode; } })); var Selection_1 = __webpack_require__(/*! ./Selection */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js"); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return Selection_1.Selection; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setItem = exports.getItem = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Fetches an item from session storage without throwing an exception * @param key The key of the item to fetch from session storage */ function getItem(key) { var result = null; try { var win = (0, getWindow_1.getWindow)(); result = win ? win.sessionStorage.getItem(key) : null; } catch (e) { /* Eat the exception */ } return result; } exports.getItem = getItem; /** * Inserts an item into session storage without throwing an exception * @param key The key of the item to add to session storage * @param data The data to put into session storage */ function setItem(key, data) { var _a; try { (_a = (0, getWindow_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.sessionStorage.setItem(key, data); } catch (e) { /* Eat the exception */ } } exports.setItem = setItem; //# sourceMappingURL=sessionStorage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setFocusVisibility = exports.IsFocusHiddenClassName = exports.IsFocusVisibleClassName = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); exports.IsFocusVisibleClassName = 'ms-Fabric--isFocusVisible'; exports.IsFocusHiddenClassName = 'ms-Fabric--isFocusHidden'; function updateClassList(el, enabled) { if (el) { el.classList.add(enabled ? exports.IsFocusVisibleClassName : exports.IsFocusHiddenClassName); el.classList.remove(enabled ? exports.IsFocusHiddenClassName : exports.IsFocusVisibleClassName); } } /** * Sets the visibility of focus styling. * * By default, focus styles (the box surrounding a focused Button, for example) only show up when navigational * keypresses occur (through Tab, arrows, PgUp/PgDn, Home and End), and are hidden when mouse interactions occur. * This API provides an imperative way to turn them on/off. * * A use case might be when you have a keypress like ctrl-f6 navigate to a particular region on the page, * and want focus to show up. * * @param enabled - Whether to turn focus visibility on or off. * @param target - Optional target from which to get window in case no `providerElem` has been specified. * @param registeredProviders - Array of provider refs that are associated with a FocusRectsProvider. If no array * is passed in, the classnames are attached to the document body that contains `target`. */ function setFocusVisibility(enabled, target, registeredProviders) { var _a; if (registeredProviders) { registeredProviders.forEach(function (ref) { return updateClassList(ref.current, enabled); }); } else { updateClassList((_a = (0, getWindow_1.getWindow)(target)) === null || _a === void 0 ? void 0 : _a.document.body, enabled); } } exports.setFocusVisibility = setFocusVisibility; //# sourceMappingURL=setFocusVisibility.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/string.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/string.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.format = void 0; // Regex that finds { and } so they can be removed on a lookup for string format var FORMAT_ARGS_REGEX = /[\{\}]/g; // Regex that finds {#} so it can be replaced by the arguments in string format var FORMAT_REGEX = /\{\d+\}/g; /** * String format method, used for scenarios where at runtime you * need to evaluate a formatted string given a tokenized string. This * usually only is needed in localization scenarios. * @example * ```tsx * "I love {0} every {1}".format("CXP") * ``` * will result in a Debug Exception. * * @public */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function format(s) { var values = []; for (var _i = 1; _i < arguments.length; _i++) { values[_i - 1] = arguments[_i]; } var args = values; // Callback match function function replaceFunc(match) { // looks up in the args // eslint-disable-next-line @typescript-eslint/no-explicit-any var replacement = args[match.replace(FORMAT_ARGS_REGEX, '')]; // catches undefined in nondebug and null in debug and nondebug if (replacement === null || replacement === undefined) { replacement = ''; } return replacement; } return s.replace(FORMAT_REGEX, replaceFunc); } exports.format = format; //# sourceMappingURL=string.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/styled.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/styled.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styled = 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 useCustomizationSettings_1 = __webpack_require__(/*! ./customizations/useCustomizationSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js"); var DefaultFields = ['theme', 'styles']; function styled(Component, baseStyles, getProps, customizable, pure) { customizable = customizable || { scope: '', fields: undefined }; var scope = customizable.scope, _a = customizable.fields, fields = _a === void 0 ? DefaultFields : _a; var Wrapped = React.forwardRef(function (props, forwardedRef) { var styles = React.useRef(); var settings = (0, useCustomizationSettings_1.useCustomizationSettings)(fields, scope); var customizedStyles = settings.styles, dir = settings.dir, rest = tslib_1.__rest(settings, ["styles", "dir"]); var additionalProps = getProps ? getProps(props) : undefined; // eslint-disable-next-line @typescript-eslint/no-explicit-any var cache = (styles.current && styles.current.__cachedInputs__) || []; var propStyles = props.styles; if (!styles.current || customizedStyles !== cache[1] || propStyles !== cache[2]) { // Using styled components as the Component arg will result in nested styling arrays. // The function can be cached and in order to prevent the props from being retained within it's closure // we pass in just the styles and not the entire props var concatenatedStyles = function (styleProps) { return (0, merge_styles_1.concatStyleSetsWithProps)(styleProps, baseStyles, customizedStyles, propStyles); }; // The __cachedInputs__ array is attached to the function and consumed by the // classNamesFunction as a list of keys to include for memoizing classnames. concatenatedStyles.__cachedInputs__ = [ baseStyles, customizedStyles, propStyles, ]; concatenatedStyles.__noStyleOverride__ = !customizedStyles && !propStyles; styles.current = concatenatedStyles; } return React.createElement(Component, tslib_1.__assign({ ref: forwardedRef }, rest, additionalProps, props, { styles: styles.current })); }); // Function.prototype.name is an ES6 feature, so the cast to any is required until we're // able to drop IE 11 support and compile with ES6 libs // eslint-disable-next-line @typescript-eslint/no-explicit-any Wrapped.displayName = "Styled".concat(Component.displayName || Component.name); // This preserves backwards compatibility. var pureComponent = pure ? React.memo(Wrapped) : Wrapped; // Check if the wrapper has a displayName after it has been memoized. Then assign it to the pure component. if (Wrapped.displayName) { pureComponent.displayName = Wrapped.displayName; } return pureComponent; } exports.styled = styled; //# sourceMappingURL=styled.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusRects = exports.useFocusRects = exports.FocusRectsContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); var mountCounters = new WeakMap(); var callbackMap = new WeakMap(); function setMountCounters(key, delta) { var newValue; var currValue = mountCounters.get(key); if (currValue) { newValue = currValue + delta; } else { newValue = 1; } mountCounters.set(key, newValue); return newValue; } function setCallbackMap(context) { var callbacks = callbackMap.get(context); if (callbacks) { return callbacks; } var onMouseDown = function (ev) { return _onMouseDown(ev, context.registeredProviders); }; var onPointerDown = function (ev) { return _onPointerDown(ev, context.registeredProviders); }; var onKeyDown = function (ev) { return _onKeyDown(ev, context.registeredProviders); }; var onKeyUp = function (ev) { return _onKeyUp(ev, context.registeredProviders); }; callbacks = { onMouseDown: onMouseDown, onPointerDown: onPointerDown, onKeyDown: onKeyDown, onKeyUp: onKeyUp }; callbackMap.set(context, callbacks); return callbacks; } exports.FocusRectsContext = React.createContext(undefined); /** * Initializes the logic which: * * 1. Subscribes keydown, keyup, mousedown and pointerdown events. (It will only do it once for the current element of * the FocusRectsContext providerRef or once per window if no such element is provided via context, so it's safe to * call this method multiple times.) * 2. When the user presses triggers a keydown or keyup event via directional keyboard keys, adds the * 'ms-Fabric--isFocusVisible' classname to the current element of the FocusRectsContext providerRef or the document * body if no such element is provided via context, and removes the 'ms-Fabric-isFocusHidden' classname. * 3. When the user triggers a mousedown or pointerdown event, adds the 'ms-Fabric-isFocusHidden' classname to the * current element of the FocusRectsContext providerRef or the document body if no such element is provided via * context, and removes the 'ms-Fabric--isFocusVisible' classname. * * This logic allows components on the page to conditionally render focus treatments based on * the existence of global classnames, which simplifies logic overall. * * @param rootRef - A Ref object. Focus rectangle can be applied on itself and all its children. */ function useFocusRects(rootRef) { var context = React.useContext(exports.FocusRectsContext); React.useEffect(function () { var _a, _b, _c, _d; var win = (0, getWindow_1.getWindow)(rootRef === null || rootRef === void 0 ? void 0 : rootRef.current); if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return undefined; } var el = win; var onMouseDown; var onPointerDown; var onKeyDown; var onKeyUp; if (((_b = context === null || context === void 0 ? void 0 : context.providerRef) === null || _b === void 0 ? void 0 : _b.current) && ((_d = (_c = context === null || context === void 0 ? void 0 : context.providerRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.addEventListener)) { el = context.providerRef.current; // The NOINLINE directive tells terser not to move the setCallbackMap implementation into the call site during // minification. // This prevents the function from capturing additional variables in the closure, which can cause memory leaks. var callbacks = /*@__NOINLINE__*/ setCallbackMap(context); onMouseDown = callbacks.onMouseDown; onPointerDown = callbacks.onPointerDown; onKeyDown = callbacks.onKeyDown; onKeyUp = callbacks.onKeyUp; } else { onMouseDown = _onMouseDown; onPointerDown = _onPointerDown; onKeyDown = _onKeyDown; onKeyUp = _onKeyUp; } var count = setMountCounters(el, 1); if (count <= 1) { el.addEventListener('mousedown', onMouseDown, true); el.addEventListener('pointerdown', onPointerDown, true); el.addEventListener('keydown', onKeyDown, true); el.addEventListener('keyup', onKeyUp, true); } return function () { var _a; if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return; } count = setMountCounters(el, -1); if (count === 0) { el.removeEventListener('mousedown', onMouseDown, true); el.removeEventListener('pointerdown', onPointerDown, true); el.removeEventListener('keydown', onKeyDown, true); el.removeEventListener('keyup', onKeyUp, true); } }; }, [context, rootRef]); } exports.useFocusRects = useFocusRects; /** * Function Component wrapper which enables calling `useFocusRects` hook. * Renders nothing. */ var FocusRects = function (props) { useFocusRects(props.rootRef); return null; }; exports.FocusRects = FocusRects; function _onMouseDown(ev, registeredProviders) { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target, registeredProviders); } function _onPointerDown(ev, registeredProviders) { if (ev.pointerType !== 'mouse') { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target, registeredProviders); } } // You need both a keydown and a keyup listener that sets focus visibility to true to handle two distinct scenarios when // attaching the listeners and classnames to the provider instead of the document body. // If you only have a keydown listener, then the focus rectangles will not show when moving from outside of the provider // to inside it. That is why a keyup listener is needed, since it will always trigger after the focus event is fired. // If you only have a keyup listener, then the focus rectangles will not show moving between different tabbable elements // if the tab key is pressed without being released. That's is why we need a keydown listener, since it will trigger for // every element that is being tabbed into. // This works because `classList.add` is smart and will not duplicate a classname that already exists on the classList // when focus visibility is turned on. function _onKeyDown(ev, registeredProviders) { // eslint-disable-next-line deprecation/deprecation if ((0, keyboard_1.isDirectionalKeyCode)(ev.which)) { (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target, registeredProviders); } } function _onKeyUp(ev, registeredProviders) { // eslint-disable-next-line deprecation/deprecation if ((0, keyboard_1.isDirectionalKeyCode)(ev.which)) { (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target, registeredProviders); } } //# sourceMappingURL=useFocusRects.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useIsomorphicLayoutEffect = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var canUseDOM_1 = __webpack_require__(/*! ./dom/canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); /** * React currently throws a warning when using `useLayoutEffect` on the server. To get around it, * this hook calls `useEffect` on the server (no-op) and `useLayoutEffect` in the browser. * * Prefer `useEffect` unless you have a specific need to do something after mount and before paint, * such as to avoid a render flash for certain operations. * * Server-side rendering is detected based on `canUseDOM` from `@fluentui/utilities`. * * https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85 * https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js */ // eslint-disable-next-line no-restricted-properties exports.useIsomorphicLayoutEffect = (0, canUseDOM_1.canUseDOM)() ? React.useLayoutEffect : React.useEffect; //# sourceMappingURL=useIsomorphicLayoutEffect.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/version.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/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/utilities', '8.13.18'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.resetControlledWarnings = exports.warnConditionallyRequiredProps = exports.warn = exports.setWarningCallback = void 0; var warn_1 = __webpack_require__(/*! ./warn/warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); Object.defineProperty(exports, "setWarningCallback", ({ enumerable: true, get: function () { return warn_1.setWarningCallback; } })); Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warn_1.warn; } })); var warnConditionallyRequiredProps_1 = __webpack_require__(/*! ./warn/warnConditionallyRequiredProps */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js"); Object.defineProperty(exports, "warnConditionallyRequiredProps", ({ enumerable: true, get: function () { return warnConditionallyRequiredProps_1.warnConditionallyRequiredProps; } })); var warnControlledUsage_1 = __webpack_require__(/*! ./warn/warnControlledUsage */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js"); Object.defineProperty(exports, "resetControlledWarnings", ({ enumerable: true, get: function () { return warnControlledUsage_1.resetControlledWarnings; } })); Object.defineProperty(exports, "warnControlledUsage", ({ enumerable: true, get: function () { return warnControlledUsage_1.warnControlledUsage; } })); var warnDeprecations_1 = __webpack_require__(/*! ./warn/warnDeprecations */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js"); Object.defineProperty(exports, "warnDeprecations", ({ enumerable: true, get: function () { return warnDeprecations_1.warnDeprecations; } })); var warnMutuallyExclusive_1 = __webpack_require__(/*! ./warn/warnMutuallyExclusive */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js"); Object.defineProperty(exports, "warnMutuallyExclusive", ({ enumerable: true, get: function () { return warnMutuallyExclusive_1.warnMutuallyExclusive; } })); //# sourceMappingURL=warn.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /* eslint-disable no-console */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setWarningCallback = exports.warn = void 0; var _warningCallback = undefined; /** * Sends a warning to console, if the api is present. * * @public * @param message - Warning message. */ function warn(message) { if (_warningCallback && "development" !== 'production') { _warningCallback(message); } else if (console && console.warn) { console.warn(message); } } exports.warn = warn; /** * Configures the warning callback. Passing in undefined will reset it to use the default * console.warn function. * * @public * @param warningCallback - Callback to override the generated warnings. */ function setWarningCallback(warningCallback) { _warningCallback = warningCallback; } exports.setWarningCallback = setWarningCallback; //# sourceMappingURL=warn.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnConditionallyRequiredProps = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when props are required if a condition is met. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param requiredProps - The name of the props that are required when the condition is met. * @param conditionalPropName - The name of the prop that the condition is based on. * @param condition - Whether the condition is met. */ function warnConditionallyRequiredProps(componentName, props, requiredProps, conditionalPropName, condition) { if (condition === true && "development" !== 'production') { for (var _i = 0, requiredProps_1 = requiredProps; _i < requiredProps_1.length; _i++) { var requiredPropName = requiredProps_1[_i]; if (!(requiredPropName in props)) { (0, warn_1.warn)("".concat(componentName, " property '").concat(requiredPropName, "' is required when '").concat(conditionalPropName, "' is used.'")); } } } } exports.warnConditionallyRequiredProps = warnConditionallyRequiredProps; //# sourceMappingURL=warnConditionallyRequiredProps.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnControlledUsage = exports.resetControlledWarnings = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); var controlled_1 = __webpack_require__(/*! ../controlled */ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js"); var warningsMap; if (true) { warningsMap = { valueOnChange: {}, valueDefaultValue: {}, controlledToUncontrolled: {}, uncontrolledToControlled: {}, }; } /** Reset controlled usage warnings for testing purposes. */ function resetControlledWarnings() { if (true) { warningsMap.valueOnChange = {}; warningsMap.valueDefaultValue = {}; warningsMap.controlledToUncontrolled = {}; warningsMap.uncontrolledToControlled = {}; } } exports.resetControlledWarnings = resetControlledWarnings; /** * Check for and warn on the following error conditions with a form component: * - A value prop is provided (indicated it's being used as controlled) without a change handler, * and the component is not read-only * - Both the value and defaultValue props are provided * - The component is attempting to switch between controlled and uncontrolled * * The messages mimic the warnings React gives for these error conditions on input elements. * The warning will only be displayed once per component ID. */ function warnControlledUsage(params) { if (true) { var componentId = params.componentId, componentName = params.componentName, defaultValueProp = params.defaultValueProp, props = params.props, oldProps = params.oldProps, onChangeProp = params.onChangeProp, readOnlyProp = params.readOnlyProp, valueProp = params.valueProp; // This warning logic closely follows what React does for native elements. var oldIsControlled = oldProps ? (0, controlled_1.isControlled)(oldProps, valueProp) : undefined; var newIsControlled = (0, controlled_1.isControlled)(props, valueProp); if (newIsControlled) { // onChange (or readOnly) must be provided if value is provided var hasOnChange = !!props[onChangeProp]; var isReadOnly = !!(readOnlyProp && props[readOnlyProp]); if (!(hasOnChange || isReadOnly) && !warningsMap.valueOnChange[componentId]) { warningsMap.valueOnChange[componentId] = true; (0, warn_1.warn)("Warning: You provided a '".concat(String(valueProp), "' prop to a ").concat(String(componentName), " without an '").concat(String(onChangeProp), "' handler. ") + "This will render a read-only field. If the field should be mutable use '".concat(String(defaultValueProp), "'. ") + "Otherwise, set '".concat(String(onChangeProp), "'").concat(readOnlyProp ? " or '".concat(String(readOnlyProp), "'") : '', ".")); } // value and defaultValue are mutually exclusive var defaultValue = props[defaultValueProp]; if (defaultValue !== undefined && defaultValue !== null && !warningsMap.valueDefaultValue[componentId]) { warningsMap.valueDefaultValue[componentId] = true; (0, warn_1.warn)("Warning: You provided both '".concat(String(valueProp), "' and '").concat(String(defaultValueProp), "' to a ").concat(componentName, ". ") + "Form fields must be either controlled or uncontrolled (specify either the '".concat(String(valueProp), "' prop, ") + "or the '".concat(String(defaultValueProp), "' prop, but not both). Decide between using a controlled or uncontrolled ") + "".concat(componentName, " and remove one of these props. More info: https://fb.me/react-controlled-components")); } } // Warn if switching between uncontrolled and controlled. (One difference between this implementation // and React's is that if oldIsControlled is indeterminate and newIsControlled true, we don't warn.) if (oldProps && newIsControlled !== oldIsControlled) { var oldType = oldIsControlled ? 'a controlled' : 'an uncontrolled'; var newType = oldIsControlled ? 'uncontrolled' : 'controlled'; var warnMap = oldIsControlled ? warningsMap.controlledToUncontrolled : warningsMap.uncontrolledToControlled; if (!warnMap[componentId]) { warnMap[componentId] = true; (0, warn_1.warn)("Warning: A component is changing ".concat(oldType, " ").concat(componentName, " to be ").concat(newType, ". ") + "".concat(componentName, "s should not switch from controlled to uncontrolled (or vice versa). ") + "Decide between using controlled or uncontrolled for the lifetime of the component. " + "More info: https://fb.me/react-controlled-components"); } } } } exports.warnControlledUsage = warnControlledUsage; //# sourceMappingURL=warnControlledUsage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnDeprecations = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when a deprecated props are being used. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param deprecationMap - The map of deprecations, where key is the prop name and the value is * either null or a replacement prop name. */ function warnDeprecations(componentName, props, deprecationMap) { if (true) { for (var propName in deprecationMap) { if (props && propName in props) { var deprecationMessage = "".concat(componentName, " property '").concat(propName, "' was used but has been deprecated."); var replacementPropName = deprecationMap[propName]; if (replacementPropName) { deprecationMessage += " Use '".concat(replacementPropName, "' instead."); } (0, warn_1.warn)(deprecationMessage); } } } } exports.warnDeprecations = warnDeprecations; //# sourceMappingURL=warnDeprecations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnMutuallyExclusive = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when two props which are mutually exclusive are both being used. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param exclusiveMap - A map where the key is a parameter, and the value is the other parameter. */ function warnMutuallyExclusive(componentName, props, exclusiveMap) { if (true) { for (var propName in exclusiveMap) { if (props && props[propName] !== undefined) { var propInExclusiveMapValue = exclusiveMap[propName]; if (propInExclusiveMapValue && props[propInExclusiveMapValue] !== undefined) { (0, warn_1.warn)("".concat(componentName, " property '").concat(propName, "' is mutually exclusive with '").concat(exclusiveMap[propName], "'. ") + "Use one or the other."); } } } } } exports.warnMutuallyExclusive = warnMutuallyExclusive; //# sourceMappingURL=warnMutuallyExclusive.js.map /***/ }), /***/ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@microsoft/load-themed-styles/lib-es6/index.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ clearStyles: function() { return /* binding */ clearStyles; }, /* harmony export */ configureLoadStyles: function() { return /* binding */ configureLoadStyles; }, /* harmony export */ configureRunMode: function() { return /* binding */ configureRunMode; }, /* harmony export */ detokenize: function() { return /* binding */ detokenize; }, /* harmony export */ flush: function() { return /* binding */ flush; }, /* harmony export */ loadStyles: function() { return /* binding */ loadStyles; }, /* harmony export */ loadTheme: function() { return /* binding */ loadTheme; }, /* harmony export */ splitStyles: function() { return /* binding */ splitStyles; } /* harmony export */ }); // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; // Store the theming state in __themeState__ global scope for reuse in the case of duplicate // load-themed-styles hosted on the page. var _root = typeof window === 'undefined' ? __webpack_require__.g : window; // eslint-disable-line @typescript-eslint/no-explicit-any // Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy). var _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce; var _themeState = initializeThemeState(); /** * Matches theming tokens. For example, "[theme: themeSlotName, default: #FFF]" (including the quotes). */ var _themeTokenRegex = /[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g; var now = function () { return typeof performance !== 'undefined' && !!performance.now ? performance.now() : Date.now(); }; function measure(func) { var start = now(); func(); var end = now(); _themeState.perf.duration += end - start; } /** * initialize global state object */ function initializeThemeState() { var state = _root.__themeState__ || { theme: undefined, lastStyleElement: undefined, registeredStyles: [] }; if (!state.runState) { state = __assign(__assign({}, state), { perf: { count: 0, duration: 0 }, runState: { flushTimer: 0, mode: 0 /* Mode.sync */, buffer: [] } }); } if (!state.registeredThemableStyles) { state = __assign(__assign({}, state), { registeredThemableStyles: [] }); } _root.__themeState__ = state; return state; } /** * Loads a set of style text. If it is registered too early, we will register it when the window.load * event is fired. * @param {string | ThemableArray} styles Themable style text to register. * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode. */ function loadStyles(styles, loadAsync) { if (loadAsync === void 0) { loadAsync = false; } measure(function () { var styleParts = Array.isArray(styles) ? styles : splitStyles(styles); var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer; if (loadAsync || mode === 1 /* Mode.async */) { buffer.push(styleParts); if (!flushTimer) { _themeState.runState.flushTimer = asyncLoadStyles(); } } else { applyThemableStyles(styleParts); } }); } /** * Allows for customizable loadStyles logic. e.g. for server side rendering application * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void} * a loadStyles callback that gets called when styles are loaded or reloaded */ function configureLoadStyles(loadStylesFn) { _themeState.loadStyles = loadStylesFn; } /** * Configure run mode of load-themable-styles * @param mode load-themable-styles run mode, async or sync */ function configureRunMode(mode) { _themeState.runState.mode = mode; } /** * external code can call flush to synchronously force processing of currently buffered styles */ function flush() { measure(function () { var styleArrays = _themeState.runState.buffer.slice(); _themeState.runState.buffer = []; var mergedStyleArray = [].concat.apply([], styleArrays); if (mergedStyleArray.length > 0) { applyThemableStyles(mergedStyleArray); } }); } /** * register async loadStyles */ function asyncLoadStyles() { return setTimeout(function () { _themeState.runState.flushTimer = 0; flush(); }, 0); } /** * Loads a set of style text. If it is registered too early, we will register it when the window.load event * is fired. * @param {string} styleText Style to register. * @param {IStyleRecord} styleRecord Existing style record to re-apply. */ function applyThemableStyles(stylesArray, styleRecord) { if (_themeState.loadStyles) { _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray); } else { registerStyles(stylesArray); } } /** * Registers a set theme tokens to find and replace. If styles were already registered, they will be * replaced. * @param {theme} theme JSON object of theme tokens to values. */ function loadTheme(theme) { _themeState.theme = theme; // reload styles. reloadStyles(); } /** * Clear already registered style elements and style records in theme_State object * @param option - specify which group of registered styles should be cleared. * Default to be both themable and non-themable styles will be cleared */ function clearStyles(option) { if (option === void 0) { option = 3 /* ClearStyleOptions.all */; } if (option === 3 /* ClearStyleOptions.all */ || option === 2 /* ClearStyleOptions.onlyNonThemable */) { clearStylesInternal(_themeState.registeredStyles); _themeState.registeredStyles = []; } if (option === 3 /* ClearStyleOptions.all */ || option === 1 /* ClearStyleOptions.onlyThemable */) { clearStylesInternal(_themeState.registeredThemableStyles); _themeState.registeredThemableStyles = []; } } function clearStylesInternal(records) { records.forEach(function (styleRecord) { var styleElement = styleRecord && styleRecord.styleElement; if (styleElement && styleElement.parentElement) { styleElement.parentElement.removeChild(styleElement); } }); } /** * Reloads styles. */ function reloadStyles() { if (_themeState.theme) { var themableStyles = []; for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) { var styleRecord = _a[_i]; themableStyles.push(styleRecord.themableStyle); } if (themableStyles.length > 0) { clearStyles(1 /* ClearStyleOptions.onlyThemable */); applyThemableStyles([].concat.apply([], themableStyles)); } } } /** * Find theme tokens and replaces them with provided theme values. * @param {string} styles Tokenized styles to fix. */ function detokenize(styles) { if (styles) { styles = resolveThemableArray(splitStyles(styles)).styleString; } return styles; } /** * Resolves ThemingInstruction objects in an array and joins the result into a string. * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join. */ function resolveThemableArray(splitStyleArray) { var theme = _themeState.theme; var themable = false; // Resolve the array of theming instructions to an array of strings. // Then join the array to produce the final CSS string. var resolvedArray = (splitStyleArray || []).map(function (currentValue) { var themeSlot = currentValue.theme; if (themeSlot) { themable = true; // A theming annotation. Resolve it. var themedValue = theme ? theme[themeSlot] : undefined; var defaultValue = currentValue.defaultValue || 'inherit'; // Warn to console if we hit an unthemed value even when themes are provided, but only if "DEBUG" is true. // Allow the themedValue to be undefined to explicitly request the default value. if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) { console.warn("Theming value not provided for \"".concat(themeSlot, "\". Falling back to \"").concat(defaultValue, "\".")); } return themedValue || defaultValue; } else { // A non-themable string. Preserve it. return currentValue.rawString; } }); return { styleString: resolvedArray.join(''), themable: themable }; } /** * Split tokenized CSS into an array of strings and theme specification objects * @param {string} styles Tokenized styles to split. */ function splitStyles(styles) { var result = []; if (styles) { var pos = 0; // Current position in styles. var tokenMatch = void 0; while ((tokenMatch = _themeTokenRegex.exec(styles))) { var matchIndex = tokenMatch.index; if (matchIndex > pos) { result.push({ rawString: styles.substring(pos, matchIndex) }); } result.push({ theme: tokenMatch[1], defaultValue: tokenMatch[2] // May be undefined }); // index of the first character after the current match pos = _themeTokenRegex.lastIndex; } // Push the rest of the string after the last match. result.push({ rawString: styles.substring(pos) }); } return result; } /** * Registers a set of style text. If it is registered too early, we will register it when the * window.load event is fired. * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register. * @param {IStyleRecord} styleRecord May specify a style Element to update. */ function registerStyles(styleArray) { if (typeof document === 'undefined') { return; } var head = document.getElementsByTagName('head')[0]; var styleElement = document.createElement('style'); var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable; styleElement.setAttribute('data-load-themed-styles', 'true'); if (_styleNonce) { styleElement.setAttribute('nonce', _styleNonce); } styleElement.appendChild(document.createTextNode(styleString)); _themeState.perf.count++; head.appendChild(styleElement); var ev = document.createEvent('HTMLEvents'); ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */); ev.args = { newStyle: styleElement }; document.dispatchEvent(ev); var record = { styleElement: styleElement, themableStyle: styleArray }; if (themable) { _themeState.registeredThemableStyles.push(record); } else { _themeState.registeredStyles.push(record); } } //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/focusManager.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/focusManager.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); class FocusManager extends subscribable.Subscribable { constructor() { super(); this.setup = onFocus => { // addEventListener does not exist in React Native, but window does // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (!utils.isServer && window.addEventListener) { const listener = () => onFocus(); // Listen to visibillitychange and focus window.addEventListener('visibilitychange', listener, false); window.addEventListener('focus', listener, false); return () => { // Be sure to unsubscribe if a new handler is set window.removeEventListener('visibilitychange', listener); window.removeEventListener('focus', listener); }; } return; }; } onSubscribe() { if (!this.cleanup) { this.setEventListener(this.setup); } } onUnsubscribe() { if (!this.hasListeners()) { var _this$cleanup; (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this); this.cleanup = undefined; } } setEventListener(setup) { var _this$cleanup2; this.setup = setup; (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this); this.cleanup = setup(focused => { if (typeof focused === 'boolean') { this.setFocused(focused); } else { this.onFocus(); } }); } setFocused(focused) { const changed = this.focused !== focused; if (changed) { this.focused = focused; this.onFocus(); } } onFocus() { this.listeners.forEach(({ listener }) => { listener(); }); } isFocused() { if (typeof this.focused === 'boolean') { return this.focused; } // document global can be unavailable in react native if (typeof document === 'undefined') { return true; } return [undefined, 'visible', 'prerender'].includes(document.visibilityState); } } const focusManager = new FocusManager(); exports.FocusManager = FocusManager; exports.focusManager = focusManager; //# sourceMappingURL=focusManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/hydration.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/hydration.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // TYPES // FUNCTIONS function dehydrateMutation(mutation) { return { mutationKey: mutation.options.mutationKey, state: mutation.state }; } // Most config is not dehydrated but instead meant to configure again when // consuming the de/rehydrated data, typically with useQuery on the client. // Sometimes it might make sense to prefetch data on the server and include // in the html-payload, but not consume it on the initial render. function dehydrateQuery(query) { return { state: query.state, queryKey: query.queryKey, queryHash: query.queryHash }; } function defaultShouldDehydrateMutation(mutation) { return mutation.state.isPaused; } function defaultShouldDehydrateQuery(query) { return query.state.status === 'success'; } function dehydrate(client, options = {}) { const mutations = []; const queries = []; if (options.dehydrateMutations !== false) { const shouldDehydrateMutation = options.shouldDehydrateMutation || defaultShouldDehydrateMutation; client.getMutationCache().getAll().forEach(mutation => { if (shouldDehydrateMutation(mutation)) { mutations.push(dehydrateMutation(mutation)); } }); } if (options.dehydrateQueries !== false) { const shouldDehydrateQuery = options.shouldDehydrateQuery || defaultShouldDehydrateQuery; client.getQueryCache().getAll().forEach(query => { if (shouldDehydrateQuery(query)) { queries.push(dehydrateQuery(query)); } }); } return { mutations, queries }; } function hydrate(client, dehydratedState, options) { if (typeof dehydratedState !== 'object' || dehydratedState === null) { return; } const mutationCache = client.getMutationCache(); const queryCache = client.getQueryCache(); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const mutations = dehydratedState.mutations || []; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const queries = dehydratedState.queries || []; mutations.forEach(dehydratedMutation => { var _options$defaultOptio; mutationCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio = options.defaultOptions) == null ? void 0 : _options$defaultOptio.mutations), mutationKey: dehydratedMutation.mutationKey }, dehydratedMutation.state); }); queries.forEach(dehydratedQuery => { var _options$defaultOptio2; const query = queryCache.get(dehydratedQuery.queryHash); // Reset fetch status to idle in the dehydrated state to avoid // query being stuck in fetching state upon hydration const dehydratedQueryState = { ...dehydratedQuery.state, fetchStatus: 'idle' }; // Do not hydrate if an existing query exists with newer data if (query) { if (query.state.dataUpdatedAt < dehydratedQueryState.dataUpdatedAt) { query.setState(dehydratedQueryState); } return; } // Restore query queryCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio2 = options.defaultOptions) == null ? void 0 : _options$defaultOptio2.queries), queryKey: dehydratedQuery.queryKey, queryHash: dehydratedQuery.queryHash }, dehydratedQueryState); }); } exports.defaultShouldDehydrateMutation = defaultShouldDehydrateMutation; exports.defaultShouldDehydrateQuery = defaultShouldDehydrateQuery; exports.dehydrate = dehydrate; exports.hydrate = hydrate; //# sourceMappingURL=hydration.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/index.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/index.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); var queryCache = __webpack_require__(/*! ./queryCache.js */ "./node_modules/@tanstack/query-core/build/lib/queryCache.js"); var queryClient = __webpack_require__(/*! ./queryClient.js */ "./node_modules/@tanstack/query-core/build/lib/queryClient.js"); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var queriesObserver = __webpack_require__(/*! ./queriesObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queriesObserver.js"); var infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js"); var mutationCache = __webpack_require__(/*! ./mutationCache.js */ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js"); var mutationObserver = __webpack_require__(/*! ./mutationObserver.js */ "./node_modules/@tanstack/query-core/build/lib/mutationObserver.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var hydration = __webpack_require__(/*! ./hydration.js */ "./node_modules/@tanstack/query-core/build/lib/hydration.js"); var query = __webpack_require__(/*! ./query.js */ "./node_modules/@tanstack/query-core/build/lib/query.js"); exports.CancelledError = retryer.CancelledError; exports.isCancelledError = retryer.isCancelledError; exports.QueryCache = queryCache.QueryCache; exports.QueryClient = queryClient.QueryClient; exports.QueryObserver = queryObserver.QueryObserver; exports.QueriesObserver = queriesObserver.QueriesObserver; exports.InfiniteQueryObserver = infiniteQueryObserver.InfiniteQueryObserver; exports.MutationCache = mutationCache.MutationCache; exports.MutationObserver = mutationObserver.MutationObserver; exports.notifyManager = notifyManager.notifyManager; exports.focusManager = focusManager.focusManager; exports.onlineManager = onlineManager.onlineManager; exports.hashQueryKey = utils.hashQueryKey; exports.isError = utils.isError; exports.isServer = utils.isServer; exports.matchQuery = utils.matchQuery; exports.parseFilterArgs = utils.parseFilterArgs; exports.parseMutationArgs = utils.parseMutationArgs; exports.parseMutationFilterArgs = utils.parseMutationFilterArgs; exports.parseQueryArgs = utils.parseQueryArgs; exports.replaceEqualDeep = utils.replaceEqualDeep; exports.defaultShouldDehydrateMutation = hydration.defaultShouldDehydrateMutation; exports.defaultShouldDehydrateQuery = hydration.defaultShouldDehydrateQuery; exports.dehydrate = hydration.dehydrate; exports.hydrate = hydration.hydrate; exports.Query = query.Query; //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); function infiniteQueryBehavior() { return { onFetch: context => { context.fetchFn = () => { var _context$fetchOptions, _context$fetchOptions2, _context$fetchOptions3, _context$fetchOptions4, _context$state$data, _context$state$data2; const refetchPage = (_context$fetchOptions = context.fetchOptions) == null ? void 0 : (_context$fetchOptions2 = _context$fetchOptions.meta) == null ? void 0 : _context$fetchOptions2.refetchPage; const fetchMore = (_context$fetchOptions3 = context.fetchOptions) == null ? void 0 : (_context$fetchOptions4 = _context$fetchOptions3.meta) == null ? void 0 : _context$fetchOptions4.fetchMore; const pageParam = fetchMore == null ? void 0 : fetchMore.pageParam; const isFetchingNextPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'forward'; const isFetchingPreviousPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'backward'; const oldPages = ((_context$state$data = context.state.data) == null ? void 0 : _context$state$data.pages) || []; const oldPageParams = ((_context$state$data2 = context.state.data) == null ? void 0 : _context$state$data2.pageParams) || []; let newPageParams = oldPageParams; let cancelled = false; const addSignalProperty = object => { Object.defineProperty(object, 'signal', { enumerable: true, get: () => { var _context$signal; if ((_context$signal = context.signal) != null && _context$signal.aborted) { cancelled = true; } else { var _context$signal2; (_context$signal2 = context.signal) == null ? void 0 : _context$signal2.addEventListener('abort', () => { cancelled = true; }); } return context.signal; } }); }; // Get query function const queryFn = context.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + context.options.queryHash + "'")); const buildNewPages = (pages, param, page, previous) => { newPageParams = previous ? [param, ...newPageParams] : [...newPageParams, param]; return previous ? [page, ...pages] : [...pages, page]; }; // Create function to fetch a page const fetchPage = (pages, manual, param, previous) => { if (cancelled) { return Promise.reject('Cancelled'); } if (typeof param === 'undefined' && !manual && pages.length) { return Promise.resolve(pages); } const queryFnContext = { queryKey: context.queryKey, pageParam: param, meta: context.options.meta }; addSignalProperty(queryFnContext); const queryFnResult = queryFn(queryFnContext); const promise = Promise.resolve(queryFnResult).then(page => buildNewPages(pages, param, page, previous)); return promise; }; let promise; // Fetch first page? if (!oldPages.length) { promise = fetchPage([]); } // Fetch next page? else if (isFetchingNextPage) { const manual = typeof pageParam !== 'undefined'; const param = manual ? pageParam : getNextPageParam(context.options, oldPages); promise = fetchPage(oldPages, manual, param); } // Fetch previous page? else if (isFetchingPreviousPage) { const manual = typeof pageParam !== 'undefined'; const param = manual ? pageParam : getPreviousPageParam(context.options, oldPages); promise = fetchPage(oldPages, manual, param, true); } // Refetch pages else { newPageParams = []; const manual = typeof context.options.getNextPageParam === 'undefined'; const shouldFetchFirstPage = refetchPage && oldPages[0] ? refetchPage(oldPages[0], 0, oldPages) : true; // Fetch first page promise = shouldFetchFirstPage ? fetchPage([], manual, oldPageParams[0]) : Promise.resolve(buildNewPages([], oldPageParams[0], oldPages[0])); // Fetch remaining pages for (let i = 1; i < oldPages.length; i++) { promise = promise.then(pages => { const shouldFetchNextPage = refetchPage && oldPages[i] ? refetchPage(oldPages[i], i, oldPages) : true; if (shouldFetchNextPage) { const param = manual ? oldPageParams[i] : getNextPageParam(context.options, pages); return fetchPage(pages, manual, param); } return Promise.resolve(buildNewPages(pages, oldPageParams[i], oldPages[i])); }); } } const finalPromise = promise.then(pages => ({ pages, pageParams: newPageParams })); return finalPromise; }; } }; } function getNextPageParam(options, pages) { return options.getNextPageParam == null ? void 0 : options.getNextPageParam(pages[pages.length - 1], pages); } function getPreviousPageParam(options, pages) { return options.getPreviousPageParam == null ? void 0 : options.getPreviousPageParam(pages[0], pages); } /** * Checks if there is a next page. * Returns `undefined` if it cannot be determined. */ function hasNextPage(options, pages) { if (options.getNextPageParam && Array.isArray(pages)) { const nextPageParam = getNextPageParam(options, pages); return typeof nextPageParam !== 'undefined' && nextPageParam !== null && nextPageParam !== false; } return; } /** * Checks if there is a previous page. * Returns `undefined` if it cannot be determined. */ function hasPreviousPage(options, pages) { if (options.getPreviousPageParam && Array.isArray(pages)) { const previousPageParam = getPreviousPageParam(options, pages); return typeof previousPageParam !== 'undefined' && previousPageParam !== null && previousPageParam !== false; } return; } exports.getNextPageParam = getNextPageParam; exports.getPreviousPageParam = getPreviousPageParam; exports.hasNextPage = hasNextPage; exports.hasPreviousPage = hasPreviousPage; exports.infiniteQueryBehavior = infiniteQueryBehavior; //# sourceMappingURL=infiniteQueryBehavior.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js"); class InfiniteQueryObserver extends queryObserver.QueryObserver { // Type override // Type override // Type override // eslint-disable-next-line @typescript-eslint/no-useless-constructor constructor(client, options) { super(client, options); } bindMethods() { super.bindMethods(); this.fetchNextPage = this.fetchNextPage.bind(this); this.fetchPreviousPage = this.fetchPreviousPage.bind(this); } setOptions(options, notifyOptions) { super.setOptions({ ...options, behavior: infiniteQueryBehavior.infiniteQueryBehavior() }, notifyOptions); } getOptimisticResult(options) { options.behavior = infiniteQueryBehavior.infiniteQueryBehavior(); return super.getOptimisticResult(options); } fetchNextPage({ pageParam, ...options } = {}) { return this.fetch({ ...options, meta: { fetchMore: { direction: 'forward', pageParam } } }); } fetchPreviousPage({ pageParam, ...options } = {}) { return this.fetch({ ...options, meta: { fetchMore: { direction: 'backward', pageParam } } }); } createResult(query, options) { var _state$fetchMeta, _state$fetchMeta$fetc, _state$fetchMeta2, _state$fetchMeta2$fet, _state$data, _state$data2; const { state } = query; const result = super.createResult(query, options); const { isFetching, isRefetching } = result; const isFetchingNextPage = isFetching && ((_state$fetchMeta = state.fetchMeta) == null ? void 0 : (_state$fetchMeta$fetc = _state$fetchMeta.fetchMore) == null ? void 0 : _state$fetchMeta$fetc.direction) === 'forward'; const isFetchingPreviousPage = isFetching && ((_state$fetchMeta2 = state.fetchMeta) == null ? void 0 : (_state$fetchMeta2$fet = _state$fetchMeta2.fetchMore) == null ? void 0 : _state$fetchMeta2$fet.direction) === 'backward'; return { ...result, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage: infiniteQueryBehavior.hasNextPage(options, (_state$data = state.data) == null ? void 0 : _state$data.pages), hasPreviousPage: infiniteQueryBehavior.hasPreviousPage(options, (_state$data2 = state.data) == null ? void 0 : _state$data2.pages), isFetchingNextPage, isFetchingPreviousPage, isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage }; } } exports.InfiniteQueryObserver = InfiniteQueryObserver; //# sourceMappingURL=infiniteQueryObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/logger.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/logger.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); const defaultLogger = console; exports.defaultLogger = defaultLogger; //# sourceMappingURL=logger.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutation.js": /*!*****************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutation.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var removable = __webpack_require__(/*! ./removable.js */ "./node_modules/@tanstack/query-core/build/lib/removable.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); // CLASS class Mutation extends removable.Removable { constructor(config) { super(); this.defaultOptions = config.defaultOptions; this.mutationId = config.mutationId; this.mutationCache = config.mutationCache; this.logger = config.logger || logger.defaultLogger; this.observers = []; this.state = config.state || getDefaultState(); this.setOptions(config.options); this.scheduleGc(); } setOptions(options) { this.options = { ...this.defaultOptions, ...options }; this.updateCacheTime(this.options.cacheTime); } get meta() { return this.options.meta; } setState(state) { this.dispatch({ type: 'setState', state }); } addObserver(observer) { if (!this.observers.includes(observer)) { this.observers.push(observer); // Stop the mutation from being garbage collected this.clearGcTimeout(); this.mutationCache.notify({ type: 'observerAdded', mutation: this, observer }); } } removeObserver(observer) { this.observers = this.observers.filter(x => x !== observer); this.scheduleGc(); this.mutationCache.notify({ type: 'observerRemoved', mutation: this, observer }); } optionalRemove() { if (!this.observers.length) { if (this.state.status === 'loading') { this.scheduleGc(); } else { this.mutationCache.remove(this); } } } continue() { var _this$retryer$continu, _this$retryer; return (_this$retryer$continu = (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.continue()) != null ? _this$retryer$continu : this.execute(); } async execute() { const executeMutation = () => { var _this$options$retry; this.retryer = retryer.createRetryer({ fn: () => { if (!this.options.mutationFn) { return Promise.reject('No mutationFn found'); } return this.options.mutationFn(this.state.variables); }, onFail: (failureCount, error) => { this.dispatch({ type: 'failed', failureCount, error }); }, onPause: () => { this.dispatch({ type: 'pause' }); }, onContinue: () => { this.dispatch({ type: 'continue' }); }, retry: (_this$options$retry = this.options.retry) != null ? _this$options$retry : 0, retryDelay: this.options.retryDelay, networkMode: this.options.networkMode }); return this.retryer.promise; }; const restored = this.state.status === 'loading'; try { var _this$mutationCache$c3, _this$mutationCache$c4, _this$options$onSucce, _this$options2, _this$mutationCache$c5, _this$mutationCache$c6, _this$options$onSettl, _this$options3; if (!restored) { var _this$mutationCache$c, _this$mutationCache$c2, _this$options$onMutat, _this$options; this.dispatch({ type: 'loading', variables: this.options.variables }); // Notify cache callback await ((_this$mutationCache$c = (_this$mutationCache$c2 = this.mutationCache.config).onMutate) == null ? void 0 : _this$mutationCache$c.call(_this$mutationCache$c2, this.state.variables, this)); const context = await ((_this$options$onMutat = (_this$options = this.options).onMutate) == null ? void 0 : _this$options$onMutat.call(_this$options, this.state.variables)); if (context !== this.state.context) { this.dispatch({ type: 'loading', context, variables: this.state.variables }); } } const data = await executeMutation(); // Notify cache callback await ((_this$mutationCache$c3 = (_this$mutationCache$c4 = this.mutationCache.config).onSuccess) == null ? void 0 : _this$mutationCache$c3.call(_this$mutationCache$c4, data, this.state.variables, this.state.context, this)); await ((_this$options$onSucce = (_this$options2 = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options2, data, this.state.variables, this.state.context)); // Notify cache callback await ((_this$mutationCache$c5 = (_this$mutationCache$c6 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c5.call(_this$mutationCache$c6, data, null, this.state.variables, this.state.context, this)); await ((_this$options$onSettl = (_this$options3 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options3, data, null, this.state.variables, this.state.context)); this.dispatch({ type: 'success', data }); return data; } catch (error) { try { var _this$mutationCache$c7, _this$mutationCache$c8, _this$options$onError, _this$options4, _this$mutationCache$c9, _this$mutationCache$c10, _this$options$onSettl2, _this$options5; // Notify cache callback await ((_this$mutationCache$c7 = (_this$mutationCache$c8 = this.mutationCache.config).onError) == null ? void 0 : _this$mutationCache$c7.call(_this$mutationCache$c8, error, this.state.variables, this.state.context, this)); if (true) { this.logger.error(error); } await ((_this$options$onError = (_this$options4 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options4, error, this.state.variables, this.state.context)); // Notify cache callback await ((_this$mutationCache$c9 = (_this$mutationCache$c10 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c9.call(_this$mutationCache$c10, undefined, error, this.state.variables, this.state.context, this)); await ((_this$options$onSettl2 = (_this$options5 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options5, undefined, error, this.state.variables, this.state.context)); throw error; } finally { this.dispatch({ type: 'error', error: error }); } } } dispatch(action) { const reducer = state => { switch (action.type) { case 'failed': return { ...state, failureCount: action.failureCount, failureReason: action.error }; case 'pause': return { ...state, isPaused: true }; case 'continue': return { ...state, isPaused: false }; case 'loading': return { ...state, context: action.context, data: undefined, failureCount: 0, failureReason: null, error: null, isPaused: !retryer.canFetch(this.options.networkMode), status: 'loading', variables: action.variables }; case 'success': return { ...state, data: action.data, failureCount: 0, failureReason: null, error: null, status: 'success', isPaused: false }; case 'error': return { ...state, data: undefined, error: action.error, failureCount: state.failureCount + 1, failureReason: action.error, isPaused: false, status: 'error' }; case 'setState': return { ...state, ...action.state }; } }; this.state = reducer(this.state); notifyManager.notifyManager.batch(() => { this.observers.forEach(observer => { observer.onMutationUpdate(action); }); this.mutationCache.notify({ mutation: this, type: 'updated', action }); }); } } function getDefaultState() { return { context: undefined, data: undefined, error: null, failureCount: 0, failureReason: null, isPaused: false, status: 'idle', variables: undefined }; } exports.Mutation = Mutation; exports.getDefaultState = getDefaultState; //# sourceMappingURL=mutation.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutationCache.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var mutation = __webpack_require__(/*! ./mutation.js */ "./node_modules/@tanstack/query-core/build/lib/mutation.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); // CLASS class MutationCache extends subscribable.Subscribable { constructor(config) { super(); this.config = config || {}; this.mutations = []; this.mutationId = 0; } build(client, options, state) { const mutation$1 = new mutation.Mutation({ mutationCache: this, logger: client.getLogger(), mutationId: ++this.mutationId, options: client.defaultMutationOptions(options), state, defaultOptions: options.mutationKey ? client.getMutationDefaults(options.mutationKey) : undefined }); this.add(mutation$1); return mutation$1; } add(mutation) { this.mutations.push(mutation); this.notify({ type: 'added', mutation }); } remove(mutation) { this.mutations = this.mutations.filter(x => x !== mutation); this.notify({ type: 'removed', mutation }); } clear() { notifyManager.notifyManager.batch(() => { this.mutations.forEach(mutation => { this.remove(mutation); }); }); } getAll() { return this.mutations; } find(filters) { if (typeof filters.exact === 'undefined') { filters.exact = true; } return this.mutations.find(mutation => utils.matchMutation(filters, mutation)); } findAll(filters) { return this.mutations.filter(mutation => utils.matchMutation(filters, mutation)); } notify(event) { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(event); }); }); } resumePausedMutations() { var _this$resuming; this.resuming = ((_this$resuming = this.resuming) != null ? _this$resuming : Promise.resolve()).then(() => { const pausedMutations = this.mutations.filter(x => x.state.isPaused); return notifyManager.notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(utils.noop)), Promise.resolve())); }).then(() => { this.resuming = undefined; }); return this.resuming; } } exports.MutationCache = MutationCache; //# sourceMappingURL=mutationCache.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutationObserver.js": /*!*************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutationObserver.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var mutation = __webpack_require__(/*! ./mutation.js */ "./node_modules/@tanstack/query-core/build/lib/mutation.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); // CLASS class MutationObserver extends subscribable.Subscribable { constructor(client, options) { super(); this.client = client; this.setOptions(options); this.bindMethods(); this.updateResult(); } bindMethods() { this.mutate = this.mutate.bind(this); this.reset = this.reset.bind(this); } setOptions(options) { var _this$currentMutation; const prevOptions = this.options; this.options = this.client.defaultMutationOptions(options); if (!utils.shallowEqualObjects(prevOptions, this.options)) { this.client.getMutationCache().notify({ type: 'observerOptionsUpdated', mutation: this.currentMutation, observer: this }); } (_this$currentMutation = this.currentMutation) == null ? void 0 : _this$currentMutation.setOptions(this.options); } onUnsubscribe() { if (!this.hasListeners()) { var _this$currentMutation2; (_this$currentMutation2 = this.currentMutation) == null ? void 0 : _this$currentMutation2.removeObserver(this); } } onMutationUpdate(action) { this.updateResult(); // Determine which callbacks to trigger const notifyOptions = { listeners: true }; if (action.type === 'success') { notifyOptions.onSuccess = true; } else if (action.type === 'error') { notifyOptions.onError = true; } this.notify(notifyOptions); } getCurrentResult() { return this.currentResult; } reset() { this.currentMutation = undefined; this.updateResult(); this.notify({ listeners: true }); } mutate(variables, options) { this.mutateOptions = options; if (this.currentMutation) { this.currentMutation.removeObserver(this); } this.currentMutation = this.client.getMutationCache().build(this.client, { ...this.options, variables: typeof variables !== 'undefined' ? variables : this.options.variables }); this.currentMutation.addObserver(this); return this.currentMutation.execute(); } updateResult() { const state = this.currentMutation ? this.currentMutation.state : mutation.getDefaultState(); const result = { ...state, isLoading: state.status === 'loading', isSuccess: state.status === 'success', isError: state.status === 'error', isIdle: state.status === 'idle', mutate: this.mutate, reset: this.reset }; this.currentResult = result; } notify(options) { notifyManager.notifyManager.batch(() => { // First trigger the mutate callbacks if (this.mutateOptions && this.hasListeners()) { if (options.onSuccess) { var _this$mutateOptions$o, _this$mutateOptions, _this$mutateOptions$o2, _this$mutateOptions2; (_this$mutateOptions$o = (_this$mutateOptions = this.mutateOptions).onSuccess) == null ? void 0 : _this$mutateOptions$o.call(_this$mutateOptions, this.currentResult.data, this.currentResult.variables, this.currentResult.context); (_this$mutateOptions$o2 = (_this$mutateOptions2 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o2.call(_this$mutateOptions2, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context); } else if (options.onError) { var _this$mutateOptions$o3, _this$mutateOptions3, _this$mutateOptions$o4, _this$mutateOptions4; (_this$mutateOptions$o3 = (_this$mutateOptions3 = this.mutateOptions).onError) == null ? void 0 : _this$mutateOptions$o3.call(_this$mutateOptions3, this.currentResult.error, this.currentResult.variables, this.currentResult.context); (_this$mutateOptions$o4 = (_this$mutateOptions4 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o4.call(_this$mutateOptions4, undefined, this.currentResult.error, this.currentResult.variables, this.currentResult.context); } } // Then trigger the listeners if (options.listeners) { this.listeners.forEach(({ listener }) => { listener(this.currentResult); }); } }); } } exports.MutationObserver = MutationObserver; //# sourceMappingURL=mutationObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/notifyManager.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); function createNotifyManager() { let queue = []; let transactions = 0; let notifyFn = callback => { callback(); }; let batchNotifyFn = callback => { callback(); }; const batch = callback => { let result; transactions++; try { result = callback(); } finally { transactions--; if (!transactions) { flush(); } } return result; }; const schedule = callback => { if (transactions) { queue.push(callback); } else { utils.scheduleMicrotask(() => { notifyFn(callback); }); } }; /** * All calls to the wrapped function will be batched. */ const batchCalls = callback => { return (...args) => { schedule(() => { callback(...args); }); }; }; const flush = () => { const originalQueue = queue; queue = []; if (originalQueue.length) { utils.scheduleMicrotask(() => { batchNotifyFn(() => { originalQueue.forEach(callback => { notifyFn(callback); }); }); }); } }; /** * Use this method to set a custom notify function. * This can be used to for example wrap notifications with `React.act` while running tests. */ const setNotifyFunction = fn => { notifyFn = fn; }; /** * Use this method to set a custom function to batch notifications together into a single tick. * By default React Query will use the batch function provided by ReactDOM or React Native. */ const setBatchNotifyFunction = fn => { batchNotifyFn = fn; }; return { batch, batchCalls, schedule, setNotifyFunction, setBatchNotifyFunction }; } // SINGLETON const notifyManager = createNotifyManager(); exports.createNotifyManager = createNotifyManager; exports.notifyManager = notifyManager; //# sourceMappingURL=notifyManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/onlineManager.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); const onlineEvents = ['online', 'offline']; class OnlineManager extends subscribable.Subscribable { constructor() { super(); this.setup = onOnline => { // addEventListener does not exist in React Native, but window does // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (!utils.isServer && window.addEventListener) { const listener = () => onOnline(); // Listen to online onlineEvents.forEach(event => { window.addEventListener(event, listener, false); }); return () => { // Be sure to unsubscribe if a new handler is set onlineEvents.forEach(event => { window.removeEventListener(event, listener); }); }; } return; }; } onSubscribe() { if (!this.cleanup) { this.setEventListener(this.setup); } } onUnsubscribe() { if (!this.hasListeners()) { var _this$cleanup; (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this); this.cleanup = undefined; } } setEventListener(setup) { var _this$cleanup2; this.setup = setup; (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this); this.cleanup = setup(online => { if (typeof online === 'boolean') { this.setOnline(online); } else { this.onOnline(); } }); } setOnline(online) { const changed = this.online !== online; if (changed) { this.online = online; this.onOnline(); } } onOnline() { this.listeners.forEach(({ listener }) => { listener(); }); } isOnline() { if (typeof this.online === 'boolean') { return this.online; } if (typeof navigator === 'undefined' || typeof navigator.onLine === 'undefined') { return true; } return navigator.onLine; } } const onlineManager = new OnlineManager(); exports.OnlineManager = OnlineManager; exports.onlineManager = onlineManager; //# sourceMappingURL=onlineManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queriesObserver.js": /*!************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queriesObserver.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); class QueriesObserver extends subscribable.Subscribable { constructor(client, queries) { super(); this.client = client; this.queries = []; this.result = []; this.observers = []; this.observersMap = {}; if (queries) { this.setQueries(queries); } } onSubscribe() { if (this.listeners.size === 1) { this.observers.forEach(observer => { observer.subscribe(result => { this.onUpdate(observer, result); }); }); } } onUnsubscribe() { if (!this.listeners.size) { this.destroy(); } } destroy() { this.listeners = new Set(); this.observers.forEach(observer => { observer.destroy(); }); } setQueries(queries, notifyOptions) { this.queries = queries; notifyManager.notifyManager.batch(() => { const prevObservers = this.observers; const newObserverMatches = this.findMatchingObservers(this.queries); // set options for the new observers to notify of changes newObserverMatches.forEach(match => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)); const newObservers = newObserverMatches.map(match => match.observer); const newObserversMap = Object.fromEntries(newObservers.map(observer => [observer.options.queryHash, observer])); const newResult = newObservers.map(observer => observer.getCurrentResult()); const hasIndexChange = newObservers.some((observer, index) => observer !== prevObservers[index]); if (prevObservers.length === newObservers.length && !hasIndexChange) { return; } this.observers = newObservers; this.observersMap = newObserversMap; this.result = newResult; if (!this.hasListeners()) { return; } utils.difference(prevObservers, newObservers).forEach(observer => { observer.destroy(); }); utils.difference(newObservers, prevObservers).forEach(observer => { observer.subscribe(result => { this.onUpdate(observer, result); }); }); this.notify(); }); } getCurrentResult() { return this.result; } getQueries() { return this.observers.map(observer => observer.getCurrentQuery()); } getObservers() { return this.observers; } getOptimisticResult(queries) { return this.findMatchingObservers(queries).map(match => match.observer.getOptimisticResult(match.defaultedQueryOptions)); } findMatchingObservers(queries) { const prevObservers = this.observers; const prevObserversMap = new Map(prevObservers.map(observer => [observer.options.queryHash, observer])); const defaultedQueryOptions = queries.map(options => this.client.defaultQueryOptions(options)); const matchingObservers = defaultedQueryOptions.flatMap(defaultedOptions => { const match = prevObserversMap.get(defaultedOptions.queryHash); if (match != null) { return [{ defaultedQueryOptions: defaultedOptions, observer: match }]; } return []; }); const matchedQueryHashes = new Set(matchingObservers.map(match => match.defaultedQueryOptions.queryHash)); const unmatchedQueries = defaultedQueryOptions.filter(defaultedOptions => !matchedQueryHashes.has(defaultedOptions.queryHash)); const matchingObserversSet = new Set(matchingObservers.map(match => match.observer)); const unmatchedObservers = prevObservers.filter(prevObserver => !matchingObserversSet.has(prevObserver)); const getObserver = options => { const defaultedOptions = this.client.defaultQueryOptions(options); const currentObserver = this.observersMap[defaultedOptions.queryHash]; return currentObserver != null ? currentObserver : new queryObserver.QueryObserver(this.client, defaultedOptions); }; const newOrReusedObservers = unmatchedQueries.map((options, index) => { if (options.keepPreviousData) { // return previous data from one of the observers that no longer match const previouslyUsedObserver = unmatchedObservers[index]; if (previouslyUsedObserver !== undefined) { return { defaultedQueryOptions: options, observer: previouslyUsedObserver }; } } return { defaultedQueryOptions: options, observer: getObserver(options) }; }); const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions); return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries); } onUpdate(observer, result) { const index = this.observers.indexOf(observer); if (index !== -1) { this.result = utils.replaceAt(this.result, index, result); this.notify(); } } notify() { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(this.result); }); }); } } exports.QueriesObserver = QueriesObserver; //# sourceMappingURL=queriesObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/query.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/query.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); var removable = __webpack_require__(/*! ./removable.js */ "./node_modules/@tanstack/query-core/build/lib/removable.js"); // CLASS class Query extends removable.Removable { constructor(config) { super(); this.abortSignalConsumed = false; this.defaultOptions = config.defaultOptions; this.setOptions(config.options); this.observers = []; this.cache = config.cache; this.logger = config.logger || logger.defaultLogger; this.queryKey = config.queryKey; this.queryHash = config.queryHash; this.initialState = config.state || getDefaultState(this.options); this.state = this.initialState; this.scheduleGc(); } get meta() { return this.options.meta; } setOptions(options) { this.options = { ...this.defaultOptions, ...options }; this.updateCacheTime(this.options.cacheTime); } optionalRemove() { if (!this.observers.length && this.state.fetchStatus === 'idle') { this.cache.remove(this); } } setData(newData, options) { const data = utils.replaceData(this.state.data, newData, this.options); // Set data and mark it as cached this.dispatch({ data, type: 'success', dataUpdatedAt: options == null ? void 0 : options.updatedAt, manual: options == null ? void 0 : options.manual }); return data; } setState(state, setStateOptions) { this.dispatch({ type: 'setState', state, setStateOptions }); } cancel(options) { var _this$retryer; const promise = this.promise; (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options); return promise ? promise.then(utils.noop).catch(utils.noop) : Promise.resolve(); } destroy() { super.destroy(); this.cancel({ silent: true }); } reset() { this.destroy(); this.setState(this.initialState); } isActive() { return this.observers.some(observer => observer.options.enabled !== false); } isDisabled() { return this.getObserversCount() > 0 && !this.isActive(); } isStale() { return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(observer => observer.getCurrentResult().isStale); } isStaleByTime(staleTime = 0) { return this.state.isInvalidated || !this.state.dataUpdatedAt || !utils.timeUntilStale(this.state.dataUpdatedAt, staleTime); } onFocus() { var _this$retryer2; const observer = this.observers.find(x => x.shouldFetchOnWindowFocus()); if (observer) { observer.refetch({ cancelRefetch: false }); } // Continue fetch if currently paused (_this$retryer2 = this.retryer) == null ? void 0 : _this$retryer2.continue(); } onOnline() { var _this$retryer3; const observer = this.observers.find(x => x.shouldFetchOnReconnect()); if (observer) { observer.refetch({ cancelRefetch: false }); } // Continue fetch if currently paused (_this$retryer3 = this.retryer) == null ? void 0 : _this$retryer3.continue(); } addObserver(observer) { if (!this.observers.includes(observer)) { this.observers.push(observer); // Stop the query from being garbage collected this.clearGcTimeout(); this.cache.notify({ type: 'observerAdded', query: this, observer }); } } removeObserver(observer) { if (this.observers.includes(observer)) { this.observers = this.observers.filter(x => x !== observer); if (!this.observers.length) { // If the transport layer does not support cancellation // we'll let the query continue so the result can be cached if (this.retryer) { if (this.abortSignalConsumed) { this.retryer.cancel({ revert: true }); } else { this.retryer.cancelRetry(); } } this.scheduleGc(); } this.cache.notify({ type: 'observerRemoved', query: this, observer }); } } getObserversCount() { return this.observers.length; } invalidate() { if (!this.state.isInvalidated) { this.dispatch({ type: 'invalidate' }); } } fetch(options, fetchOptions) { var _this$options$behavio, _context$fetchOptions; if (this.state.fetchStatus !== 'idle') { if (this.state.dataUpdatedAt && fetchOptions != null && fetchOptions.cancelRefetch) { // Silently cancel current fetch if the user wants to cancel refetches this.cancel({ silent: true }); } else if (this.promise) { var _this$retryer4; // make sure that retries that were potentially cancelled due to unmounts can continue (_this$retryer4 = this.retryer) == null ? void 0 : _this$retryer4.continueRetry(); // Return current promise if we are already fetching return this.promise; } } // Update config if passed, otherwise the config from the last execution is used if (options) { this.setOptions(options); } // Use the options from the first observer with a query function if no function is found. // This can happen when the query is hydrated or created with setQueryData. if (!this.options.queryFn) { const observer = this.observers.find(x => x.options.queryFn); if (observer) { this.setOptions(observer.options); } } if (!Array.isArray(this.options.queryKey)) { if (true) { this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"); } } const abortController = utils.getAbortController(); // Create query function context const queryFnContext = { queryKey: this.queryKey, pageParam: undefined, meta: this.meta }; // Adds an enumerable signal property to the object that // which sets abortSignalConsumed to true when the signal // is read. const addSignalProperty = object => { Object.defineProperty(object, 'signal', { enumerable: true, get: () => { if (abortController) { this.abortSignalConsumed = true; return abortController.signal; } return undefined; } }); }; addSignalProperty(queryFnContext); // Create fetch function const fetchFn = () => { if (!this.options.queryFn) { return Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'"); } this.abortSignalConsumed = false; return this.options.queryFn(queryFnContext); }; // Trigger behavior hook const context = { fetchOptions, options: this.options, queryKey: this.queryKey, state: this.state, fetchFn }; addSignalProperty(context); (_this$options$behavio = this.options.behavior) == null ? void 0 : _this$options$behavio.onFetch(context); // Store state in case the current fetch needs to be reverted this.revertState = this.state; // Set to fetching state if not already in it if (this.state.fetchStatus === 'idle' || this.state.fetchMeta !== ((_context$fetchOptions = context.fetchOptions) == null ? void 0 : _context$fetchOptions.meta)) { var _context$fetchOptions2; this.dispatch({ type: 'fetch', meta: (_context$fetchOptions2 = context.fetchOptions) == null ? void 0 : _context$fetchOptions2.meta }); } const onError = error => { // Optimistically update state if needed if (!(retryer.isCancelledError(error) && error.silent)) { this.dispatch({ type: 'error', error: error }); } if (!retryer.isCancelledError(error)) { var _this$cache$config$on, _this$cache$config, _this$cache$config$on2, _this$cache$config2; // Notify cache callback (_this$cache$config$on = (_this$cache$config = this.cache.config).onError) == null ? void 0 : _this$cache$config$on.call(_this$cache$config, error, this); (_this$cache$config$on2 = (_this$cache$config2 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on2.call(_this$cache$config2, this.state.data, error, this); if (true) { this.logger.error(error); } } if (!this.isFetchingOptimistic) { // Schedule query gc after fetching this.scheduleGc(); } this.isFetchingOptimistic = false; }; // Try to fetch the data this.retryer = retryer.createRetryer({ fn: context.fetchFn, abort: abortController == null ? void 0 : abortController.abort.bind(abortController), onSuccess: data => { var _this$cache$config$on3, _this$cache$config3, _this$cache$config$on4, _this$cache$config4; if (typeof data === 'undefined') { if (true) { this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: " + this.queryHash); } onError(new Error(this.queryHash + " data is undefined")); return; } this.setData(data); // Notify cache callback (_this$cache$config$on3 = (_this$cache$config3 = this.cache.config).onSuccess) == null ? void 0 : _this$cache$config$on3.call(_this$cache$config3, data, this); (_this$cache$config$on4 = (_this$cache$config4 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on4.call(_this$cache$config4, data, this.state.error, this); if (!this.isFetchingOptimistic) { // Schedule query gc after fetching this.scheduleGc(); } this.isFetchingOptimistic = false; }, onError, onFail: (failureCount, error) => { this.dispatch({ type: 'failed', failureCount, error }); }, onPause: () => { this.dispatch({ type: 'pause' }); }, onContinue: () => { this.dispatch({ type: 'continue' }); }, retry: context.options.retry, retryDelay: context.options.retryDelay, networkMode: context.options.networkMode }); this.promise = this.retryer.promise; return this.promise; } dispatch(action) { const reducer = state => { var _action$meta, _action$dataUpdatedAt; switch (action.type) { case 'failed': return { ...state, fetchFailureCount: action.failureCount, fetchFailureReason: action.error }; case 'pause': return { ...state, fetchStatus: 'paused' }; case 'continue': return { ...state, fetchStatus: 'fetching' }; case 'fetch': return { ...state, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: (_action$meta = action.meta) != null ? _action$meta : null, fetchStatus: retryer.canFetch(this.options.networkMode) ? 'fetching' : 'paused', ...(!state.dataUpdatedAt && { error: null, status: 'loading' }) }; case 'success': return { ...state, data: action.data, dataUpdateCount: state.dataUpdateCount + 1, dataUpdatedAt: (_action$dataUpdatedAt = action.dataUpdatedAt) != null ? _action$dataUpdatedAt : Date.now(), error: null, isInvalidated: false, status: 'success', ...(!action.manual && { fetchStatus: 'idle', fetchFailureCount: 0, fetchFailureReason: null }) }; case 'error': const error = action.error; if (retryer.isCancelledError(error) && error.revert && this.revertState) { return { ...this.revertState }; } return { ...state, error: error, errorUpdateCount: state.errorUpdateCount + 1, errorUpdatedAt: Date.now(), fetchFailureCount: state.fetchFailureCount + 1, fetchFailureReason: error, fetchStatus: 'idle', status: 'error' }; case 'invalidate': return { ...state, isInvalidated: true }; case 'setState': return { ...state, ...action.state }; } }; this.state = reducer(this.state); notifyManager.notifyManager.batch(() => { this.observers.forEach(observer => { observer.onQueryUpdate(action); }); this.cache.notify({ query: this, type: 'updated', action }); }); } } function getDefaultState(options) { const data = typeof options.initialData === 'function' ? options.initialData() : options.initialData; const hasData = typeof data !== 'undefined'; const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === 'function' ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0; return { data, dataUpdateCount: 0, dataUpdatedAt: hasData ? initialDataUpdatedAt != null ? initialDataUpdatedAt : Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: false, status: hasData ? 'success' : 'loading', fetchStatus: 'idle' }; } exports.Query = Query; //# sourceMappingURL=query.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryCache.js": /*!*******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryCache.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var query = __webpack_require__(/*! ./query.js */ "./node_modules/@tanstack/query-core/build/lib/query.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); // CLASS class QueryCache extends subscribable.Subscribable { constructor(config) { super(); this.config = config || {}; this.queries = []; this.queriesMap = {}; } build(client, options, state) { var _options$queryHash; const queryKey = options.queryKey; const queryHash = (_options$queryHash = options.queryHash) != null ? _options$queryHash : utils.hashQueryKeyByOptions(queryKey, options); let query$1 = this.get(queryHash); if (!query$1) { query$1 = new query.Query({ cache: this, logger: client.getLogger(), queryKey, queryHash, options: client.defaultQueryOptions(options), state, defaultOptions: client.getQueryDefaults(queryKey) }); this.add(query$1); } return query$1; } add(query) { if (!this.queriesMap[query.queryHash]) { this.queriesMap[query.queryHash] = query; this.queries.push(query); this.notify({ type: 'added', query }); } } remove(query) { const queryInMap = this.queriesMap[query.queryHash]; if (queryInMap) { query.destroy(); this.queries = this.queries.filter(x => x !== query); if (queryInMap === query) { delete this.queriesMap[query.queryHash]; } this.notify({ type: 'removed', query }); } } clear() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { this.remove(query); }); }); } get(queryHash) { return this.queriesMap[queryHash]; } getAll() { return this.queries; } find(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); if (typeof filters.exact === 'undefined') { filters.exact = true; } return this.queries.find(query => utils.matchQuery(filters, query)); } findAll(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); return Object.keys(filters).length > 0 ? this.queries.filter(query => utils.matchQuery(filters, query)) : this.queries; } notify(event) { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(event); }); }); } onFocus() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { query.onFocus(); }); }); } onOnline() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { query.onOnline(); }); }); } } exports.QueryCache = QueryCache; //# sourceMappingURL=queryCache.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryClient.js": /*!********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryClient.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var queryCache = __webpack_require__(/*! ./queryCache.js */ "./node_modules/@tanstack/query-core/build/lib/queryCache.js"); var mutationCache = __webpack_require__(/*! ./mutationCache.js */ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js"); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); // CLASS class QueryClient { constructor(config = {}) { this.queryCache = config.queryCache || new queryCache.QueryCache(); this.mutationCache = config.mutationCache || new mutationCache.MutationCache(); this.logger = config.logger || logger.defaultLogger; this.defaultOptions = config.defaultOptions || {}; this.queryDefaults = []; this.mutationDefaults = []; this.mountCount = 0; if ( true && config.logger) { this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version."); } } mount() { this.mountCount++; if (this.mountCount !== 1) return; this.unsubscribeFocus = focusManager.focusManager.subscribe(() => { if (focusManager.focusManager.isFocused()) { this.resumePausedMutations(); this.queryCache.onFocus(); } }); this.unsubscribeOnline = onlineManager.onlineManager.subscribe(() => { if (onlineManager.onlineManager.isOnline()) { this.resumePausedMutations(); this.queryCache.onOnline(); } }); } unmount() { var _this$unsubscribeFocu, _this$unsubscribeOnli; this.mountCount--; if (this.mountCount !== 0) return; (_this$unsubscribeFocu = this.unsubscribeFocus) == null ? void 0 : _this$unsubscribeFocu.call(this); this.unsubscribeFocus = undefined; (_this$unsubscribeOnli = this.unsubscribeOnline) == null ? void 0 : _this$unsubscribeOnli.call(this); this.unsubscribeOnline = undefined; } isFetching(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); filters.fetchStatus = 'fetching'; return this.queryCache.findAll(filters).length; } isMutating(filters) { return this.mutationCache.findAll({ ...filters, fetching: true }).length; } getQueryData(queryKey, filters) { var _this$queryCache$find; return (_this$queryCache$find = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find.state.data; } ensureQueryData(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); const cachedData = this.getQueryData(parsedOptions.queryKey); return cachedData ? Promise.resolve(cachedData) : this.fetchQuery(parsedOptions); } getQueriesData(queryKeyOrFilters) { return this.getQueryCache().findAll(queryKeyOrFilters).map(({ queryKey, state }) => { const data = state.data; return [queryKey, data]; }); } setQueryData(queryKey, updater, options) { const query = this.queryCache.find(queryKey); const prevData = query == null ? void 0 : query.state.data; const data = utils.functionalUpdate(updater, prevData); if (typeof data === 'undefined') { return undefined; } const parsedOptions = utils.parseQueryArgs(queryKey); const defaultedOptions = this.defaultQueryOptions(parsedOptions); return this.queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true }); } setQueriesData(queryKeyOrFilters, updater, options) { return notifyManager.notifyManager.batch(() => this.getQueryCache().findAll(queryKeyOrFilters).map(({ queryKey }) => [queryKey, this.setQueryData(queryKey, updater, options)])); } getQueryState(queryKey, filters) { var _this$queryCache$find2; return (_this$queryCache$find2 = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find2.state; } removeQueries(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); const queryCache = this.queryCache; notifyManager.notifyManager.batch(() => { queryCache.findAll(filters).forEach(query => { queryCache.remove(query); }); }); } resetQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); const queryCache = this.queryCache; const refetchFilters = { type: 'active', ...filters }; return notifyManager.notifyManager.batch(() => { queryCache.findAll(filters).forEach(query => { query.reset(); }); return this.refetchQueries(refetchFilters, options); }); } cancelQueries(arg1, arg2, arg3) { const [filters, cancelOptions = {}] = utils.parseFilterArgs(arg1, arg2, arg3); if (typeof cancelOptions.revert === 'undefined') { cancelOptions.revert = true; } const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).map(query => query.cancel(cancelOptions))); return Promise.all(promises).then(utils.noop).catch(utils.noop); } invalidateQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); return notifyManager.notifyManager.batch(() => { var _ref, _filters$refetchType; this.queryCache.findAll(filters).forEach(query => { query.invalidate(); }); if (filters.refetchType === 'none') { return Promise.resolve(); } const refetchFilters = { ...filters, type: (_ref = (_filters$refetchType = filters.refetchType) != null ? _filters$refetchType : filters.type) != null ? _ref : 'active' }; return this.refetchQueries(refetchFilters, options); }); } refetchQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).filter(query => !query.isDisabled()).map(query => { var _options$cancelRefetc; return query.fetch(undefined, { ...options, cancelRefetch: (_options$cancelRefetc = options == null ? void 0 : options.cancelRefetch) != null ? _options$cancelRefetc : true, meta: { refetchPage: filters.refetchPage } }); })); let promise = Promise.all(promises).then(utils.noop); if (!(options != null && options.throwOnError)) { promise = promise.catch(utils.noop); } return promise; } fetchQuery(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); const defaultedOptions = this.defaultQueryOptions(parsedOptions); // https://github.com/tannerlinsley/react-query/issues/652 if (typeof defaultedOptions.retry === 'undefined') { defaultedOptions.retry = false; } const query = this.queryCache.build(this, defaultedOptions); return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data); } prefetchQuery(arg1, arg2, arg3) { return this.fetchQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop); } fetchInfiniteQuery(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); parsedOptions.behavior = infiniteQueryBehavior.infiniteQueryBehavior(); return this.fetchQuery(parsedOptions); } prefetchInfiniteQuery(arg1, arg2, arg3) { return this.fetchInfiniteQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop); } resumePausedMutations() { return this.mutationCache.resumePausedMutations(); } getQueryCache() { return this.queryCache; } getMutationCache() { return this.mutationCache; } getLogger() { return this.logger; } getDefaultOptions() { return this.defaultOptions; } setDefaultOptions(options) { this.defaultOptions = options; } setQueryDefaults(queryKey, options) { const result = this.queryDefaults.find(x => utils.hashQueryKey(queryKey) === utils.hashQueryKey(x.queryKey)); if (result) { result.defaultOptions = options; } else { this.queryDefaults.push({ queryKey, defaultOptions: options }); } } getQueryDefaults(queryKey) { if (!queryKey) { return undefined; } // Get the first matching defaults const firstMatchingDefaults = this.queryDefaults.find(x => utils.partialMatchKey(queryKey, x.queryKey)); // Additional checks and error in dev mode if (true) { // Retrieve all matching defaults for the given key const matchingDefaults = this.queryDefaults.filter(x => utils.partialMatchKey(queryKey, x.queryKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key if (matchingDefaults.length > 1) { this.logger.error("[QueryClient] Several query defaults match with key '" + JSON.stringify(queryKey) + "'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."); } } return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions; } setMutationDefaults(mutationKey, options) { const result = this.mutationDefaults.find(x => utils.hashQueryKey(mutationKey) === utils.hashQueryKey(x.mutationKey)); if (result) { result.defaultOptions = options; } else { this.mutationDefaults.push({ mutationKey, defaultOptions: options }); } } getMutationDefaults(mutationKey) { if (!mutationKey) { return undefined; } // Get the first matching defaults const firstMatchingDefaults = this.mutationDefaults.find(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // Additional checks and error in dev mode if (true) { // Retrieve all matching defaults for the given key const matchingDefaults = this.mutationDefaults.filter(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key if (matchingDefaults.length > 1) { this.logger.error("[QueryClient] Several mutation defaults match with key '" + JSON.stringify(mutationKey) + "'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."); } } return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions; } defaultQueryOptions(options) { if (options != null && options._defaulted) { return options; } const defaultedOptions = { ...this.defaultOptions.queries, ...this.getQueryDefaults(options == null ? void 0 : options.queryKey), ...options, _defaulted: true }; if (!defaultedOptions.queryHash && defaultedOptions.queryKey) { defaultedOptions.queryHash = utils.hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions); } // dependent default values if (typeof defaultedOptions.refetchOnReconnect === 'undefined') { defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== 'always'; } if (typeof defaultedOptions.useErrorBoundary === 'undefined') { defaultedOptions.useErrorBoundary = !!defaultedOptions.suspense; } return defaultedOptions; } defaultMutationOptions(options) { if (options != null && options._defaulted) { return options; } return { ...this.defaultOptions.mutations, ...this.getMutationDefaults(options == null ? void 0 : options.mutationKey), ...options, _defaulted: true }; } clear() { this.queryCache.clear(); this.mutationCache.clear(); } } exports.QueryClient = QueryClient; //# sourceMappingURL=queryClient.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryObserver.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); class QueryObserver extends subscribable.Subscribable { constructor(client, options) { super(); this.client = client; this.options = options; this.trackedProps = new Set(); this.selectError = null; this.bindMethods(); this.setOptions(options); } bindMethods() { this.remove = this.remove.bind(this); this.refetch = this.refetch.bind(this); } onSubscribe() { if (this.listeners.size === 1) { this.currentQuery.addObserver(this); if (shouldFetchOnMount(this.currentQuery, this.options)) { this.executeFetch(); } this.updateTimers(); } } onUnsubscribe() { if (!this.hasListeners()) { this.destroy(); } } shouldFetchOnReconnect() { return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect); } shouldFetchOnWindowFocus() { return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus); } destroy() { this.listeners = new Set(); this.clearStaleTimeout(); this.clearRefetchInterval(); this.currentQuery.removeObserver(this); } setOptions(options, notifyOptions) { const prevOptions = this.options; const prevQuery = this.currentQuery; this.options = this.client.defaultQueryOptions(options); if ( true && typeof (options == null ? void 0 : options.isDataEqual) !== 'undefined') { this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"); } if (!utils.shallowEqualObjects(prevOptions, this.options)) { this.client.getQueryCache().notify({ type: 'observerOptionsUpdated', query: this.currentQuery, observer: this }); } if (typeof this.options.enabled !== 'undefined' && typeof this.options.enabled !== 'boolean') { throw new Error('Expected enabled to be a boolean'); } // Keep previous query key if the user does not supply one if (!this.options.queryKey) { this.options.queryKey = prevOptions.queryKey; } this.updateQuery(); const mounted = this.hasListeners(); // Fetch if there are subscribers if (mounted && shouldFetchOptionally(this.currentQuery, prevQuery, this.options, prevOptions)) { this.executeFetch(); } // Update result this.updateResult(notifyOptions); // Update stale interval if needed if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) { this.updateStaleTimeout(); } const nextRefetchInterval = this.computeRefetchInterval(); // Update refetch interval if needed if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.currentRefetchInterval)) { this.updateRefetchInterval(nextRefetchInterval); } } getOptimisticResult(options) { const query = this.client.getQueryCache().build(this.client, options); const result = this.createResult(query, options); if (shouldAssignObserverCurrentProperties(this, result, options)) { // this assigns the optimistic result to the current Observer // because if the query function changes, useQuery will be performing // an effect where it would fetch again. // When the fetch finishes, we perform a deep data cloning in order // to reuse objects references. This deep data clone is performed against // the `observer.currentResult.data` property // When QueryKey changes, we refresh the query and get new `optimistic` // result, while we leave the `observer.currentResult`, so when new data // arrives, it finds the old `observer.currentResult` which is related // to the old QueryKey. Which means that currentResult and selectData are // out of sync already. // To solve this, we move the cursor of the currentResult everytime // an observer reads an optimistic value. // When keeping the previous data, the result doesn't change until new // data arrives. this.currentResult = result; this.currentResultOptions = this.options; this.currentResultState = this.currentQuery.state; } return result; } getCurrentResult() { return this.currentResult; } trackResult(result) { const trackedResult = {}; Object.keys(result).forEach(key => { Object.defineProperty(trackedResult, key, { configurable: false, enumerable: true, get: () => { this.trackedProps.add(key); return result[key]; } }); }); return trackedResult; } getCurrentQuery() { return this.currentQuery; } remove() { this.client.getQueryCache().remove(this.currentQuery); } refetch({ refetchPage, ...options } = {}) { return this.fetch({ ...options, meta: { refetchPage } }); } fetchOptimistic(options) { const defaultedOptions = this.client.defaultQueryOptions(options); const query = this.client.getQueryCache().build(this.client, defaultedOptions); query.isFetchingOptimistic = true; return query.fetch().then(() => this.createResult(query, defaultedOptions)); } fetch(fetchOptions) { var _fetchOptions$cancelR; return this.executeFetch({ ...fetchOptions, cancelRefetch: (_fetchOptions$cancelR = fetchOptions.cancelRefetch) != null ? _fetchOptions$cancelR : true }).then(() => { this.updateResult(); return this.currentResult; }); } executeFetch(fetchOptions) { // Make sure we reference the latest query as the current one might have been removed this.updateQuery(); // Fetch let promise = this.currentQuery.fetch(this.options, fetchOptions); if (!(fetchOptions != null && fetchOptions.throwOnError)) { promise = promise.catch(utils.noop); } return promise; } updateStaleTimeout() { this.clearStaleTimeout(); if (utils.isServer || this.currentResult.isStale || !utils.isValidTimeout(this.options.staleTime)) { return; } const time = utils.timeUntilStale(this.currentResult.dataUpdatedAt, this.options.staleTime); // The timeout is sometimes triggered 1 ms before the stale time expiration. // To mitigate this issue we always add 1 ms to the timeout. const timeout = time + 1; this.staleTimeoutId = setTimeout(() => { if (!this.currentResult.isStale) { this.updateResult(); } }, timeout); } computeRefetchInterval() { var _this$options$refetch; return typeof this.options.refetchInterval === 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (_this$options$refetch = this.options.refetchInterval) != null ? _this$options$refetch : false; } updateRefetchInterval(nextInterval) { this.clearRefetchInterval(); this.currentRefetchInterval = nextInterval; if (utils.isServer || this.options.enabled === false || !utils.isValidTimeout(this.currentRefetchInterval) || this.currentRefetchInterval === 0) { return; } this.refetchIntervalId = setInterval(() => { if (this.options.refetchIntervalInBackground || focusManager.focusManager.isFocused()) { this.executeFetch(); } }, this.currentRefetchInterval); } updateTimers() { this.updateStaleTimeout(); this.updateRefetchInterval(this.computeRefetchInterval()); } clearStaleTimeout() { if (this.staleTimeoutId) { clearTimeout(this.staleTimeoutId); this.staleTimeoutId = undefined; } } clearRefetchInterval() { if (this.refetchIntervalId) { clearInterval(this.refetchIntervalId); this.refetchIntervalId = undefined; } } createResult(query, options) { const prevQuery = this.currentQuery; const prevOptions = this.options; const prevResult = this.currentResult; const prevResultState = this.currentResultState; const prevResultOptions = this.currentResultOptions; const queryChange = query !== prevQuery; const queryInitialState = queryChange ? query.state : this.currentQueryInitialState; const prevQueryResult = queryChange ? this.currentResult : this.previousQueryResult; const { state } = query; let { dataUpdatedAt, error, errorUpdatedAt, fetchStatus, status } = state; let isPreviousData = false; let isPlaceholderData = false; let data; // Optimistically set result in fetching state if needed if (options._optimisticResults) { const mounted = this.hasListeners(); const fetchOnMount = !mounted && shouldFetchOnMount(query, options); const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions); if (fetchOnMount || fetchOptionally) { fetchStatus = retryer.canFetch(query.options.networkMode) ? 'fetching' : 'paused'; if (!dataUpdatedAt) { status = 'loading'; } } if (options._optimisticResults === 'isRestoring') { fetchStatus = 'idle'; } } // Keep previous data if needed if (options.keepPreviousData && !state.dataUpdatedAt && prevQueryResult != null && prevQueryResult.isSuccess && status !== 'error') { data = prevQueryResult.data; dataUpdatedAt = prevQueryResult.dataUpdatedAt; status = prevQueryResult.status; isPreviousData = true; } // Select data if needed else if (options.select && typeof state.data !== 'undefined') { // Memoize select result if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === this.selectFn) { data = this.selectResult; } else { try { this.selectFn = options.select; data = options.select(state.data); data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, data, options); this.selectResult = data; this.selectError = null; } catch (selectError) { if (true) { this.client.getLogger().error(selectError); } this.selectError = selectError; } } } // Use query data else { data = state.data; } // Show placeholder data if needed if (typeof options.placeholderData !== 'undefined' && typeof data === 'undefined' && status === 'loading') { let placeholderData; // Memoize placeholder data if (prevResult != null && prevResult.isPlaceholderData && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) { placeholderData = prevResult.data; } else { placeholderData = typeof options.placeholderData === 'function' ? options.placeholderData() : options.placeholderData; if (options.select && typeof placeholderData !== 'undefined') { try { placeholderData = options.select(placeholderData); this.selectError = null; } catch (selectError) { if (true) { this.client.getLogger().error(selectError); } this.selectError = selectError; } } } if (typeof placeholderData !== 'undefined') { status = 'success'; data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options); isPlaceholderData = true; } } if (this.selectError) { error = this.selectError; data = this.selectResult; errorUpdatedAt = Date.now(); status = 'error'; } const isFetching = fetchStatus === 'fetching'; const isLoading = status === 'loading'; const isError = status === 'error'; const result = { status, fetchStatus, isLoading, isSuccess: status === 'success', isError, isInitialLoading: isLoading && isFetching, data, dataUpdatedAt, error, errorUpdatedAt, failureCount: state.fetchFailureCount, failureReason: state.fetchFailureReason, errorUpdateCount: state.errorUpdateCount, isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0, isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount, isFetching, isRefetching: isFetching && !isLoading, isLoadingError: isError && state.dataUpdatedAt === 0, isPaused: fetchStatus === 'paused', isPlaceholderData, isPreviousData, isRefetchError: isError && state.dataUpdatedAt !== 0, isStale: isStale(query, options), refetch: this.refetch, remove: this.remove }; return result; } updateResult(notifyOptions) { const prevResult = this.currentResult; const nextResult = this.createResult(this.currentQuery, this.options); this.currentResultState = this.currentQuery.state; this.currentResultOptions = this.options; // Only notify and update result if something has changed if (utils.shallowEqualObjects(nextResult, prevResult)) { return; } this.currentResult = nextResult; // Determine which callbacks to trigger const defaultNotifyOptions = { cache: true }; const shouldNotifyListeners = () => { if (!prevResult) { return true; } const { notifyOnChangeProps } = this.options; const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps; if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) { return true; } const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps); if (this.options.useErrorBoundary) { includedProps.add('error'); } return Object.keys(this.currentResult).some(key => { const typedKey = key; const changed = this.currentResult[typedKey] !== prevResult[typedKey]; return changed && includedProps.has(typedKey); }); }; if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) { defaultNotifyOptions.listeners = true; } this.notify({ ...defaultNotifyOptions, ...notifyOptions }); } updateQuery() { const query = this.client.getQueryCache().build(this.client, this.options); if (query === this.currentQuery) { return; } const prevQuery = this.currentQuery; this.currentQuery = query; this.currentQueryInitialState = query.state; this.previousQueryResult = this.currentResult; if (this.hasListeners()) { prevQuery == null ? void 0 : prevQuery.removeObserver(this); query.addObserver(this); } } onQueryUpdate(action) { const notifyOptions = {}; if (action.type === 'success') { notifyOptions.onSuccess = !action.manual; } else if (action.type === 'error' && !retryer.isCancelledError(action.error)) { notifyOptions.onError = true; } this.updateResult(notifyOptions); if (this.hasListeners()) { this.updateTimers(); } } notify(notifyOptions) { notifyManager.notifyManager.batch(() => { // First trigger the configuration callbacks if (notifyOptions.onSuccess) { var _this$options$onSucce, _this$options, _this$options$onSettl, _this$options2; (_this$options$onSucce = (_this$options = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options, this.currentResult.data); (_this$options$onSettl = (_this$options2 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options2, this.currentResult.data, null); } else if (notifyOptions.onError) { var _this$options$onError, _this$options3, _this$options$onSettl2, _this$options4; (_this$options$onError = (_this$options3 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options3, this.currentResult.error); (_this$options$onSettl2 = (_this$options4 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options4, undefined, this.currentResult.error); } // Then trigger the listeners if (notifyOptions.listeners) { this.listeners.forEach(({ listener }) => { listener(this.currentResult); }); } // Then the cache listeners if (notifyOptions.cache) { this.client.getQueryCache().notify({ query: this.currentQuery, type: 'observerResultsUpdated' }); } }); } } function shouldLoadOnMount(query, options) { return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === 'error' && options.retryOnMount === false); } function shouldFetchOnMount(query, options) { return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount); } function shouldFetchOn(query, options, field) { if (options.enabled !== false) { const value = typeof field === 'function' ? field(query) : field; return value === 'always' || value !== false && isStale(query, options); } return false; } function shouldFetchOptionally(query, prevQuery, options, prevOptions) { return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== 'error') && isStale(query, options); } function isStale(query, options) { return query.isStaleByTime(options.staleTime); } // this function would decide if we will update the observer's 'current' // properties after an optimistic reading via getOptimisticResult function shouldAssignObserverCurrentProperties(observer, optimisticResult, options) { // it is important to keep this condition like this for three reasons: // 1. It will get removed in the v5 // 2. it reads: don't update the properties if we want to keep the previous // data. // 3. The opposite condition (!options.keepPreviousData) would fallthrough // and will result in a bad decision if (options.keepPreviousData) { return false; } // this means we want to put some placeholder data when pending and queryKey // changed. if (options.placeholderData !== undefined) { // re-assign properties only if current data is placeholder data // which means that data did not arrive yet, so, if there is some cached data // we need to "prepare" to receive it return optimisticResult.isPlaceholderData; } // if the newly created result isn't what the observer is holding as current, // then we'll need to update the properties as well if (!utils.shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) { return true; } // basically, just keep previous properties if nothing changed return false; } exports.QueryObserver = QueryObserver; //# sourceMappingURL=queryObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/removable.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/removable.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); class Removable { destroy() { this.clearGcTimeout(); } scheduleGc() { this.clearGcTimeout(); if (utils.isValidTimeout(this.cacheTime)) { this.gcTimeout = setTimeout(() => { this.optionalRemove(); }, this.cacheTime); } } updateCacheTime(newCacheTime) { // Default to 5 minutes (Infinity for server-side) if no cache time is set this.cacheTime = Math.max(this.cacheTime || 0, newCacheTime != null ? newCacheTime : utils.isServer ? Infinity : 5 * 60 * 1000); } clearGcTimeout() { if (this.gcTimeout) { clearTimeout(this.gcTimeout); this.gcTimeout = undefined; } } } exports.Removable = Removable; //# sourceMappingURL=removable.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/retryer.js": /*!****************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/retryer.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); function defaultRetryDelay(failureCount) { return Math.min(1000 * 2 ** failureCount, 30000); } function canFetch(networkMode) { return (networkMode != null ? networkMode : 'online') === 'online' ? onlineManager.onlineManager.isOnline() : true; } class CancelledError { constructor(options) { this.revert = options == null ? void 0 : options.revert; this.silent = options == null ? void 0 : options.silent; } } function isCancelledError(value) { return value instanceof CancelledError; } function createRetryer(config) { let isRetryCancelled = false; let failureCount = 0; let isResolved = false; let continueFn; let promiseResolve; let promiseReject; const promise = new Promise((outerResolve, outerReject) => { promiseResolve = outerResolve; promiseReject = outerReject; }); const cancel = cancelOptions => { if (!isResolved) { reject(new CancelledError(cancelOptions)); config.abort == null ? void 0 : config.abort(); } }; const cancelRetry = () => { isRetryCancelled = true; }; const continueRetry = () => { isRetryCancelled = false; }; const shouldPause = () => !focusManager.focusManager.isFocused() || config.networkMode !== 'always' && !onlineManager.onlineManager.isOnline(); const resolve = value => { if (!isResolved) { isResolved = true; config.onSuccess == null ? void 0 : config.onSuccess(value); continueFn == null ? void 0 : continueFn(); promiseResolve(value); } }; const reject = value => { if (!isResolved) { isResolved = true; config.onError == null ? void 0 : config.onError(value); continueFn == null ? void 0 : continueFn(); promiseReject(value); } }; const pause = () => { return new Promise(continueResolve => { continueFn = value => { const canContinue = isResolved || !shouldPause(); if (canContinue) { continueResolve(value); } return canContinue; }; config.onPause == null ? void 0 : config.onPause(); }).then(() => { continueFn = undefined; if (!isResolved) { config.onContinue == null ? void 0 : config.onContinue(); } }); }; // Create loop function const run = () => { // Do nothing if already resolved if (isResolved) { return; } let promiseOrValue; // Execute query try { promiseOrValue = config.fn(); } catch (error) { promiseOrValue = Promise.reject(error); } Promise.resolve(promiseOrValue).then(resolve).catch(error => { var _config$retry, _config$retryDelay; // Stop if the fetch is already resolved if (isResolved) { return; } // Do we need to retry the request? const retry = (_config$retry = config.retry) != null ? _config$retry : 3; const retryDelay = (_config$retryDelay = config.retryDelay) != null ? _config$retryDelay : defaultRetryDelay; const delay = typeof retryDelay === 'function' ? retryDelay(failureCount, error) : retryDelay; const shouldRetry = retry === true || typeof retry === 'number' && failureCount < retry || typeof retry === 'function' && retry(failureCount, error); if (isRetryCancelled || !shouldRetry) { // We are done if the query does not need to be retried reject(error); return; } failureCount++; // Notify on fail config.onFail == null ? void 0 : config.onFail(failureCount, error); // Delay utils.sleep(delay) // Pause if the document is not visible or when the device is offline .then(() => { if (shouldPause()) { return pause(); } return; }).then(() => { if (isRetryCancelled) { reject(error); } else { run(); } }); }); }; // Start loop if (canFetch(config.networkMode)) { run(); } else { pause().then(run); } return { promise, cancel, continue: () => { const didContinue = continueFn == null ? void 0 : continueFn(); return didContinue ? promise : Promise.resolve(); }, cancelRetry, continueRetry }; } exports.CancelledError = CancelledError; exports.canFetch = canFetch; exports.createRetryer = createRetryer; exports.isCancelledError = isCancelledError; //# sourceMappingURL=retryer.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/subscribable.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/subscribable.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); class Subscribable { constructor() { this.listeners = new Set(); this.subscribe = this.subscribe.bind(this); } subscribe(listener) { const identity = { listener }; this.listeners.add(identity); this.onSubscribe(); return () => { this.listeners.delete(identity); this.onUnsubscribe(); }; } hasListeners() { return this.listeners.size > 0; } onSubscribe() {// Do nothing } onUnsubscribe() {// Do nothing } } exports.Subscribable = Subscribable; //# sourceMappingURL=subscribable.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/utils.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/utils.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); // TYPES // UTILS const isServer = typeof window === 'undefined' || 'Deno' in window; function noop() { return undefined; } function functionalUpdate(updater, input) { return typeof updater === 'function' ? updater(input) : updater; } function isValidTimeout(value) { return typeof value === 'number' && value >= 0 && value !== Infinity; } function difference(array1, array2) { return array1.filter(x => !array2.includes(x)); } function replaceAt(array, index, value) { const copy = array.slice(0); copy[index] = value; return copy; } function timeUntilStale(updatedAt, staleTime) { return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0); } function parseQueryArgs(arg1, arg2, arg3) { if (!isQueryKey(arg1)) { return arg1; } if (typeof arg2 === 'function') { return { ...arg3, queryKey: arg1, queryFn: arg2 }; } return { ...arg2, queryKey: arg1 }; } function parseMutationArgs(arg1, arg2, arg3) { if (isQueryKey(arg1)) { if (typeof arg2 === 'function') { return { ...arg3, mutationKey: arg1, mutationFn: arg2 }; } return { ...arg2, mutationKey: arg1 }; } if (typeof arg1 === 'function') { return { ...arg2, mutationFn: arg1 }; } return { ...arg1 }; } function parseFilterArgs(arg1, arg2, arg3) { return isQueryKey(arg1) ? [{ ...arg2, queryKey: arg1 }, arg3] : [arg1 || {}, arg2]; } function parseMutationFilterArgs(arg1, arg2, arg3) { return isQueryKey(arg1) ? [{ ...arg2, mutationKey: arg1 }, arg3] : [arg1 || {}, arg2]; } function matchQuery(filters, query) { const { type = 'all', exact, fetchStatus, predicate, queryKey, stale } = filters; if (isQueryKey(queryKey)) { if (exact) { if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) { return false; } } else if (!partialMatchKey(query.queryKey, queryKey)) { return false; } } if (type !== 'all') { const isActive = query.isActive(); if (type === 'active' && !isActive) { return false; } if (type === 'inactive' && isActive) { return false; } } if (typeof stale === 'boolean' && query.isStale() !== stale) { return false; } if (typeof fetchStatus !== 'undefined' && fetchStatus !== query.state.fetchStatus) { return false; } if (predicate && !predicate(query)) { return false; } return true; } function matchMutation(filters, mutation) { const { exact, fetching, predicate, mutationKey } = filters; if (isQueryKey(mutationKey)) { if (!mutation.options.mutationKey) { return false; } if (exact) { if (hashQueryKey(mutation.options.mutationKey) !== hashQueryKey(mutationKey)) { return false; } } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) { return false; } } if (typeof fetching === 'boolean' && mutation.state.status === 'loading' !== fetching) { return false; } if (predicate && !predicate(mutation)) { return false; } return true; } function hashQueryKeyByOptions(queryKey, options) { const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashQueryKey; return hashFn(queryKey); } /** * Default query keys hash function. * Hashes the value into a stable hash. */ function hashQueryKey(queryKey) { return JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => { result[key] = val[key]; return result; }, {}) : val); } /** * Checks if key `b` partially matches with key `a`. */ function partialMatchKey(a, b) { return partialDeepEqual(a, b); } /** * Checks if `b` partially matches with `a`. */ function partialDeepEqual(a, b) { if (a === b) { return true; } if (typeof a !== typeof b) { return false; } if (a && b && typeof a === 'object' && typeof b === 'object') { return !Object.keys(b).some(key => !partialDeepEqual(a[key], b[key])); } return false; } /** * This function returns `a` if `b` is deeply equal. * If not, it will replace any deeply equal children of `b` with those of `a`. * This can be used for structural sharing between JSON values for example. */ function replaceEqualDeep(a, b) { if (a === b) { return a; } const array = isPlainArray(a) && isPlainArray(b); if (array || isPlainObject(a) && isPlainObject(b)) { const aSize = array ? a.length : Object.keys(a).length; const bItems = array ? b : Object.keys(b); const bSize = bItems.length; const copy = array ? [] : {}; let equalItems = 0; for (let i = 0; i < bSize; i++) { const key = array ? i : bItems[i]; copy[key] = replaceEqualDeep(a[key], b[key]); if (copy[key] === a[key]) { equalItems++; } } return aSize === bSize && equalItems === aSize ? a : copy; } return b; } /** * Shallow compare objects. Only works with objects that always have the same properties. */ function shallowEqualObjects(a, b) { if (a && !b || b && !a) { return false; } for (const key in a) { if (a[key] !== b[key]) { return false; } } return true; } function isPlainArray(value) { return Array.isArray(value) && value.length === Object.keys(value).length; } // Copied from: https://github.com/jonschlinkert/is-plain-object function isPlainObject(o) { if (!hasObjectPrototype(o)) { return false; } // If has modified constructor const ctor = o.constructor; if (typeof ctor === 'undefined') { return true; } // If has modified prototype const prot = ctor.prototype; if (!hasObjectPrototype(prot)) { return false; } // If constructor does not have an Object-specific method if (!prot.hasOwnProperty('isPrototypeOf')) { return false; } // Most likely a plain Object return true; } function hasObjectPrototype(o) { return Object.prototype.toString.call(o) === '[object Object]'; } function isQueryKey(value) { return Array.isArray(value); } function isError(value) { return value instanceof Error; } function sleep(timeout) { return new Promise(resolve => { setTimeout(resolve, timeout); }); } /** * Schedules a microtask. * This can be useful to schedule state updates after rendering. */ function scheduleMicrotask(callback) { sleep(0).then(callback); } function getAbortController() { if (typeof AbortController === 'function') { return new AbortController(); } return; } function replaceData(prevData, data, options) { // Use prev data if an isDataEqual function is defined and returns `true` if (options.isDataEqual != null && options.isDataEqual(prevData, data)) { return prevData; } else if (typeof options.structuralSharing === 'function') { return options.structuralSharing(prevData, data); } else if (options.structuralSharing !== false) { // Structurally share data between prev and new data if needed return replaceEqualDeep(prevData, data); } return data; } exports.difference = difference; exports.functionalUpdate = functionalUpdate; exports.getAbortController = getAbortController; exports.hashQueryKey = hashQueryKey; exports.hashQueryKeyByOptions = hashQueryKeyByOptions; exports.isError = isError; exports.isPlainArray = isPlainArray; exports.isPlainObject = isPlainObject; exports.isQueryKey = isQueryKey; exports.isServer = isServer; exports.isValidTimeout = isValidTimeout; exports.matchMutation = matchMutation; exports.matchQuery = matchQuery; exports.noop = noop; exports.parseFilterArgs = parseFilterArgs; exports.parseMutationArgs = parseMutationArgs; exports.parseMutationFilterArgs = parseMutationFilterArgs; exports.parseQueryArgs = parseQueryArgs; exports.partialDeepEqual = partialDeepEqual; exports.partialMatchKey = partialMatchKey; exports.replaceAt = replaceAt; exports.replaceData = replaceData; exports.replaceEqualDeep = replaceEqualDeep; exports.scheduleMicrotask = scheduleMicrotask; exports.shallowEqualObjects = shallowEqualObjects; exports.sleep = sleep; exports.timeUntilStale = timeUntilStale; //# sourceMappingURL=utils.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/Hydrate.js": /*!*****************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/Hydrate.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useHydrate(state, options = {}) { const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const optionsRef = React__namespace.useRef(options); optionsRef.current = options; // Running hydrate again with the same queries is safe, // it wont overwrite or initialize existing queries, // relying on useMemo here is only a performance optimization. // hydrate can and should be run *during* render here for SSR to work properly React__namespace.useMemo(() => { if (state) { queryCore.hydrate(queryClient, state, optionsRef.current); } }, [queryClient, state]); } const Hydrate = ({ children, options, state }) => { useHydrate(state, options); return children; }; exports.Hydrate = Hydrate; exports.useHydrate = useHydrate; //# sourceMappingURL=Hydrate.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js": /*!*****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const defaultContext = /*#__PURE__*/React__namespace.createContext(undefined); const QueryClientSharingContext = /*#__PURE__*/React__namespace.createContext(false); // If we are given a context, we will use it. // Otherwise, if contextSharing is on, we share the first and at least one // instance of the context across the window // to ensure that if React Query is used across // different bundles or microfrontends they will // all use the same **instance** of context, regardless // of module scoping. function getQueryClientContext(context, contextSharing) { if (context) { return context; } if (contextSharing && typeof window !== 'undefined') { if (!window.ReactQueryClientContext) { window.ReactQueryClientContext = defaultContext; } return window.ReactQueryClientContext; } return defaultContext; } const useQueryClient = ({ context } = {}) => { const queryClient = React__namespace.useContext(getQueryClientContext(context, React__namespace.useContext(QueryClientSharingContext))); if (!queryClient) { throw new Error('No QueryClient set, use QueryClientProvider to set one'); } return queryClient; }; const QueryClientProvider = ({ client, children, context, contextSharing = false }) => { React__namespace.useEffect(() => { client.mount(); return () => { client.unmount(); }; }, [client]); if ( true && contextSharing) { client.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version"); } const Context = getQueryClientContext(context, contextSharing); return /*#__PURE__*/React__namespace.createElement(QueryClientSharingContext.Provider, { value: !context && contextSharing }, /*#__PURE__*/React__namespace.createElement(Context.Provider, { value: client }, children)); }; exports.QueryClientProvider = QueryClientProvider; exports.defaultContext = defaultContext; exports.useQueryClient = useQueryClient; //# sourceMappingURL=QueryClientProvider.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js": /*!*********************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function createValue() { let isReset = false; return { clearReset: () => { isReset = false; }, reset: () => { isReset = true; }, isReset: () => { return isReset; } }; } const QueryErrorResetBoundaryContext = /*#__PURE__*/React__namespace.createContext(createValue()); // HOOK const useQueryErrorResetBoundary = () => React__namespace.useContext(QueryErrorResetBoundaryContext); // COMPONENT const QueryErrorResetBoundary = ({ children }) => { const [value] = React__namespace.useState(() => createValue()); return /*#__PURE__*/React__namespace.createElement(QueryErrorResetBoundaryContext.Provider, { value: value }, typeof children === 'function' ? children(value) : children); }; exports.QueryErrorResetBoundary = QueryErrorResetBoundary; exports.useQueryErrorResetBoundary = useQueryErrorResetBoundary; //# sourceMappingURL=QueryErrorResetBoundary.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js": /*!****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/react-query/build/lib/utils.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => { if (options.suspense || options.useErrorBoundary) { // Prevent retrying failed query if the error boundary has not been reset yet if (!errorResetBoundary.isReset()) { options.retryOnMount = false; } } }; const useClearResetErrorBoundary = errorResetBoundary => { React__namespace.useEffect(() => { errorResetBoundary.clearReset(); }, [errorResetBoundary]); }; const getHasError = ({ result, errorResetBoundary, useErrorBoundary, query }) => { return result.isError && !errorResetBoundary.isReset() && !result.isFetching && utils.shouldThrowError(useErrorBoundary, [result.error, query]); }; exports.ensurePreventErrorBoundaryRetry = ensurePreventErrorBoundaryRetry; exports.getHasError = getHasError; exports.useClearResetErrorBoundary = useClearResetErrorBoundary; //# sourceMappingURL=errorBoundaryUtils.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/index.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/index.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); __webpack_require__(/*! ./setBatchUpdatesFn.js */ "./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useQueries = __webpack_require__(/*! ./useQueries.js */ "./node_modules/@tanstack/react-query/build/lib/useQueries.js"); var useQuery = __webpack_require__(/*! ./useQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useQuery.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var Hydrate = __webpack_require__(/*! ./Hydrate.js */ "./node_modules/@tanstack/react-query/build/lib/Hydrate.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var useIsFetching = __webpack_require__(/*! ./useIsFetching.js */ "./node_modules/@tanstack/react-query/build/lib/useIsFetching.js"); var useIsMutating = __webpack_require__(/*! ./useIsMutating.js */ "./node_modules/@tanstack/react-query/build/lib/useIsMutating.js"); var useMutation = __webpack_require__(/*! ./useMutation.js */ "./node_modules/@tanstack/react-query/build/lib/useMutation.js"); var useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); exports.useQueries = useQueries.useQueries; exports.useQuery = useQuery.useQuery; exports.QueryClientProvider = QueryClientProvider.QueryClientProvider; exports.defaultContext = QueryClientProvider.defaultContext; exports.useQueryClient = QueryClientProvider.useQueryClient; exports.Hydrate = Hydrate.Hydrate; exports.useHydrate = Hydrate.useHydrate; exports.QueryErrorResetBoundary = QueryErrorResetBoundary.QueryErrorResetBoundary; exports.useQueryErrorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary; exports.useIsFetching = useIsFetching.useIsFetching; exports.useIsMutating = useIsMutating.useIsMutating; exports.useMutation = useMutation.useMutation; exports.useInfiniteQuery = useInfiniteQuery.useInfiniteQuery; exports.IsRestoringProvider = isRestoring.IsRestoringProvider; exports.useIsRestoring = isRestoring.useIsRestoring; Object.keys(queryCore).forEach(function (k) { if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { enumerable: true, get: function () { return queryCore[k]; } }); }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/isRestoring.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const IsRestoringContext = /*#__PURE__*/React__namespace.createContext(false); const useIsRestoring = () => React__namespace.useContext(IsRestoringContext); const IsRestoringProvider = IsRestoringContext.Provider; exports.IsRestoringProvider = IsRestoringProvider; exports.useIsRestoring = useIsRestoring; //# sourceMappingURL=isRestoring.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js": /*!*****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var ReactDOM = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM); const unstable_batchedUpdates = ReactDOM__namespace.unstable_batchedUpdates; exports.unstable_batchedUpdates = unstable_batchedUpdates; //# sourceMappingURL=reactBatchedUpdates.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js": /*!***************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { "use strict"; var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var reactBatchedUpdates = __webpack_require__(/*! ./reactBatchedUpdates */ "./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js"); queryCore.notifyManager.setBatchNotifyFunction(reactBatchedUpdates.unstable_batchedUpdates); //# sourceMappingURL=setBatchUpdatesFn.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/suspense.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/suspense.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); const ensureStaleTime = defaultedOptions => { if (defaultedOptions.suspense) { // Always set stale time when using suspense to prevent // fetching again when directly mounting after suspending if (typeof defaultedOptions.staleTime !== 'number') { defaultedOptions.staleTime = 1000; } } }; const willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring; const shouldSuspend = (defaultedOptions, result, isRestoring) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && willFetch(result, isRestoring); const fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).then(({ data }) => { defaultedOptions.onSuccess == null ? void 0 : defaultedOptions.onSuccess(data); defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(data, null); }).catch(error => { errorResetBoundary.clearReset(); defaultedOptions.onError == null ? void 0 : defaultedOptions.onError(error); defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(undefined, error); }); exports.ensureStaleTime = ensureStaleTime; exports.fetchOptimistic = fetchOptimistic; exports.shouldSuspend = shouldSuspend; exports.willFetch = willFetch; //# sourceMappingURL=suspense.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); var errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.js */ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js"); var suspense = __webpack_require__(/*! ./suspense.js */ "./node_modules/@tanstack/react-query/build/lib/suspense.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useBaseQuery(options, Observer) { const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const isRestoring$1 = isRestoring.useIsRestoring(); const errorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary(); const defaultedOptions = queryClient.defaultQueryOptions(options); // Make sure results are optimistically set in fetching state before subscribing or updating options defaultedOptions._optimisticResults = isRestoring$1 ? 'isRestoring' : 'optimistic'; // Include callbacks in batch renders if (defaultedOptions.onError) { defaultedOptions.onError = queryCore.notifyManager.batchCalls(defaultedOptions.onError); } if (defaultedOptions.onSuccess) { defaultedOptions.onSuccess = queryCore.notifyManager.batchCalls(defaultedOptions.onSuccess); } if (defaultedOptions.onSettled) { defaultedOptions.onSettled = queryCore.notifyManager.batchCalls(defaultedOptions.onSettled); } suspense.ensureStaleTime(defaultedOptions); errorBoundaryUtils.ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary); errorBoundaryUtils.useClearResetErrorBoundary(errorResetBoundary); const [observer] = React__namespace.useState(() => new Observer(queryClient, defaultedOptions)); const result = observer.getOptimisticResult(defaultedOptions); useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => { const unsubscribe = isRestoring$1 ? () => undefined : observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)); // Update result to make sure we did not miss any query updates // between creating the observer and subscribing to it. observer.updateResult(); return unsubscribe; }, [observer, isRestoring$1]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); React__namespace.useEffect(() => { // Do not notify on updates because of changes in the options because // these changes should already be reflected in the optimistic result. observer.setOptions(defaultedOptions, { listeners: false }); }, [defaultedOptions, observer]); // Handle suspense if (suspense.shouldSuspend(defaultedOptions, result, isRestoring$1)) { throw suspense.fetchOptimistic(defaultedOptions, observer, errorResetBoundary); } // Handle error boundary if (errorBoundaryUtils.getHasError({ result, errorResetBoundary, useErrorBoundary: defaultedOptions.useErrorBoundary, query: observer.getCurrentQuery() })) { throw result.error; } // Handle result property usage tracking return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result; } exports.useBaseQuery = useBaseQuery; //# sourceMappingURL=useBaseQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js": /*!**************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useBaseQuery = __webpack_require__(/*! ./useBaseQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js"); function useInfiniteQuery(arg1, arg2, arg3) { const options = queryCore.parseQueryArgs(arg1, arg2, arg3); return useBaseQuery.useBaseQuery(options, queryCore.InfiniteQueryObserver); } exports.useInfiniteQuery = useInfiniteQuery; //# sourceMappingURL=useInfiniteQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useIsFetching.js": /*!***********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useIsFetching.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useIsFetching(arg1, arg2, arg3) { const [filters, options = {}] = queryCore.parseFilterArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const queryCache = queryClient.getQueryCache(); return useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => queryCache.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [queryCache]), () => queryClient.isFetching(filters), () => queryClient.isFetching(filters)); } exports.useIsFetching = useIsFetching; //# sourceMappingURL=useIsFetching.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useIsMutating.js": /*!***********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useIsMutating.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useIsMutating(arg1, arg2, arg3) { const [filters, options = {}] = queryCore.parseMutationFilterArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const mutationCache = queryClient.getMutationCache(); return useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => mutationCache.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [mutationCache]), () => queryClient.isMutating(filters), () => queryClient.isMutating(filters)); } exports.useIsMutating = useIsMutating; //# sourceMappingURL=useIsMutating.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useMutation.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useMutation.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/react-query/build/lib/utils.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useMutation(arg1, arg2, arg3) { const options = queryCore.parseMutationArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const [observer] = React__namespace.useState(() => new queryCore.MutationObserver(queryClient, options)); React__namespace.useEffect(() => { observer.setOptions(options); }, [observer, options]); const result = useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [observer]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); const mutate = React__namespace.useCallback((variables, mutateOptions) => { observer.mutate(variables, mutateOptions).catch(noop); }, [observer]); if (result.error && utils.shouldThrowError(observer.options.useErrorBoundary, [result.error])) { throw result.error; } return { ...result, mutate, mutateAsync: result.mutate }; } // eslint-disable-next-line @typescript-eslint/no-empty-function function noop() {} exports.useMutation = useMutation; //# sourceMappingURL=useMutation.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useQueries.js": /*!********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useQueries.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* provided dependency */ var Promise = __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js")["Promise"]; 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.js */ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js"); var suspense = __webpack_require__(/*! ./suspense.js */ "./node_modules/@tanstack/react-query/build/lib/suspense.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useQueries({ queries, context }) { const queryClient = QueryClientProvider.useQueryClient({ context }); const isRestoring$1 = isRestoring.useIsRestoring(); const errorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary(); const defaultedQueries = React__namespace.useMemo(() => queries.map(options => { const defaultedOptions = queryClient.defaultQueryOptions(options); // Make sure the results are already in fetching state before subscribing or updating options defaultedOptions._optimisticResults = isRestoring$1 ? 'isRestoring' : 'optimistic'; return defaultedOptions; }), [queries, queryClient, isRestoring$1]); defaultedQueries.forEach(query => { suspense.ensureStaleTime(query); errorBoundaryUtils.ensurePreventErrorBoundaryRetry(query, errorResetBoundary); }); errorBoundaryUtils.useClearResetErrorBoundary(errorResetBoundary); const [observer] = React__namespace.useState(() => new queryCore.QueriesObserver(queryClient, defaultedQueries)); const optimisticResult = observer.getOptimisticResult(defaultedQueries); useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => isRestoring$1 ? () => undefined : observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [observer, isRestoring$1]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); React__namespace.useEffect(() => { // Do not notify on updates because of changes in the options because // these changes should already be reflected in the optimistic result. observer.setQueries(defaultedQueries, { listeners: false }); }, [defaultedQueries, observer]); const shouldAtLeastOneSuspend = optimisticResult.some((result, index) => suspense.shouldSuspend(defaultedQueries[index], result, isRestoring$1)); const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => { const options = defaultedQueries[index]; const queryObserver = observer.getObservers()[index]; if (options && queryObserver) { if (suspense.shouldSuspend(options, result, isRestoring$1)) { return suspense.fetchOptimistic(options, queryObserver, errorResetBoundary); } else if (suspense.willFetch(result, isRestoring$1)) { void suspense.fetchOptimistic(options, queryObserver, errorResetBoundary); } } return []; }) : []; if (suspensePromises.length > 0) { throw Promise.all(suspensePromises); } const observerQueries = observer.getQueries(); const firstSingleResultWhichShouldThrow = optimisticResult.find((result, index) => { var _defaultedQueries$ind, _defaultedQueries$ind2; return errorBoundaryUtils.getHasError({ result, errorResetBoundary, useErrorBoundary: (_defaultedQueries$ind = (_defaultedQueries$ind2 = defaultedQueries[index]) == null ? void 0 : _defaultedQueries$ind2.useErrorBoundary) != null ? _defaultedQueries$ind : false, query: observerQueries[index] }); }); if (firstSingleResultWhichShouldThrow != null && firstSingleResultWhichShouldThrow.error) { throw firstSingleResultWhichShouldThrow.error; } return optimisticResult; } exports.useQueries = useQueries; //# sourceMappingURL=useQueries.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useQuery.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useQuery.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useBaseQuery = __webpack_require__(/*! ./useBaseQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js"); function useQuery(arg1, arg2, arg3) { const parsedOptions = queryCore.parseQueryArgs(arg1, arg2, arg3); return useBaseQuery.useBaseQuery(parsedOptions, queryCore.QueryObserver); } exports.useQuery = useQuery; //# sourceMappingURL=useQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var index_js = __webpack_require__(/*! use-sync-external-store/shim/index.js */ "./node_modules/use-sync-external-store/shim/index.js"); const useSyncExternalStore = index_js.useSyncExternalStore; exports.useSyncExternalStore = useSyncExternalStore; //# sourceMappingURL=useSyncExternalStore.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/utils.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/utils.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); function shouldThrowError(_useErrorBoundary, params) { // Allow useErrorBoundary function to override throwing behavior on a per-error basis if (typeof _useErrorBoundary === 'function') { return _useErrorBoundary(...params); } return !!_useErrorBoundary; } exports.shouldThrowError = shouldThrowError; //# sourceMappingURL=utils.js.map /***/ }), /***/ "./src/taskpane/lib/react-query.ts": /*!*****************************************!*\ !*** ./src/taskpane/lib/react-query.ts ***! \*****************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.queryClient = void 0; var react_query_1 = __webpack_require__(/*! @tanstack/react-query */ "./node_modules/@tanstack/react-query/build/lib/index.js"); var queryConfig = { queries: { useErrorBoundary: false, refetchOnWindowFocus: false, retry: false } }; exports.queryClient = new react_query_1.QueryClient({ defaultOptions: queryConfig }); void function register() { /* react-hot-loader/webpack */var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined; if (!reactHotLoader) { return; } /* eslint-disable camelcase, no-undef */ var webpackExports = typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__ : exports; /* eslint-enable camelcase, no-undef */ if (!webpackExports) { return; } if (typeof webpackExports === 'function') { reactHotLoader.register(webpackExports, 'module.exports', "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/lib/react-query.ts"); return; } /* eslint-disable no-restricted-syntax */ for (var key in webpackExports) { /* eslint-enable no-restricted-syntax */if (!Object.prototype.hasOwnProperty.call(webpackExports, key)) { continue; } var namedExport = void 0; try { namedExport = webpackExports[key]; } catch (err) { continue; } reactHotLoader.register(namedExport, key, "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/lib/react-query.ts"); } }(); /***/ }), /***/ "./src/taskpane/providers/index.ts": /*!*****************************************!*\ !*** ./src/taskpane/providers/index.ts ***! \*****************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function () { return m[k]; } }; } Object.defineProperty(o, k2, desc); } : function (o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }); var __exportStar = this && this.__exportStar || function (m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); __exportStar(__webpack_require__(/*! ./react-query */ "./src/taskpane/providers/react-query.tsx"), exports); void function register() { /* react-hot-loader/webpack */var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined; if (!reactHotLoader) { return; } /* eslint-disable camelcase, no-undef */ var webpackExports = typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__ : exports; /* eslint-enable camelcase, no-undef */ if (!webpackExports) { return; } if (typeof webpackExports === 'function') { reactHotLoader.register(webpackExports, 'module.exports', "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/providers/index.ts"); return; } /* eslint-disable no-restricted-syntax */ for (var key in webpackExports) { /* eslint-enable no-restricted-syntax */if (!Object.prototype.hasOwnProperty.call(webpackExports, key)) { continue; } var namedExport = void 0; try { namedExport = webpackExports[key]; } catch (err) { continue; } reactHotLoader.register(namedExport, key, "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/providers/index.ts"); } }(); /***/ }), /***/ "./node_modules/es6-promise/dist/es6-promise.js": /*!******************************************************!*\ !*** ./node_modules/es6-promise/dist/es6-promise.js ***! \******************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */ (function (global, factory) { true ? module.exports = factory() : 0; }(this, (function () { 'use strict'; function objectOrFunction(x) { var type = typeof x; return x !== null && (type === 'object' || type === 'function'); } function isFunction(x) { return typeof x === 'function'; } var _isArray = void 0; if (Array.isArray) { _isArray = Array.isArray; } else { _isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } var isArray = _isArray; var len = 0; var vertxNext = void 0; var customSchedulerFn = void 0; var asap = function asap(callback, arg) { queue[len] = callback; queue[len + 1] = arg; len += 2; if (len === 2) { // If len is 2, that means that we need to schedule an async flush. // If additional callbacks are queued before the queue is flushed, they // will be processed by this flush that we are scheduling. if (customSchedulerFn) { customSchedulerFn(flush); } else { scheduleFlush(); } } }; function setScheduler(scheduleFn) { customSchedulerFn = scheduleFn; } function setAsap(asapFn) { asap = asapFn; } var browserWindow = typeof window !== 'undefined' ? window : undefined; var browserGlobal = browserWindow || {}; var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; // test for web worker but not in IE10 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node function useNextTick() { // node version 0.10.x displays a deprecation warning when nextTick is used recursively // see https://github.com/cujojs/when/issues/410 for details return function () { return process.nextTick(flush); }; } // vertx function useVertxTimer() { if (typeof vertxNext !== 'undefined') { return function () { vertxNext(flush); }; } return useSetTimeout(); } function useMutationObserver() { var iterations = 0; var observer = new BrowserMutationObserver(flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function () { node.data = iterations = ++iterations % 2; }; } // web worker function useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = flush; return function () { return channel.port2.postMessage(0); }; } function useSetTimeout() { // Store setTimeout reference so es6-promise will be unaffected by // other code modifying setTimeout (like sinon.useFakeTimers()) var globalSetTimeout = setTimeout; return function () { return globalSetTimeout(flush, 1); }; } var queue = new Array(1000); function flush() { for (var i = 0; i < len; i += 2) { var callback = queue[i]; var arg = queue[i + 1]; callback(arg); queue[i] = undefined; queue[i + 1] = undefined; } len = 0; } function attemptVertx() { try { var vertx = Function('return this')().require('vertx'); vertxNext = vertx.runOnLoop || vertx.runOnContext; return useVertxTimer(); } catch (e) { return useSetTimeout(); } } var scheduleFlush = void 0; // Decide what async method to use to triggering processing of queued callbacks: if (isNode) { scheduleFlush = useNextTick(); } else if (BrowserMutationObserver) { scheduleFlush = useMutationObserver(); } else if (isWorker) { scheduleFlush = useMessageChannel(); } else if (browserWindow === undefined && "function" === 'function') { scheduleFlush = attemptVertx(); } else { scheduleFlush = useSetTimeout(); } function then(onFulfillment, onRejection) { var parent = this; var child = new this.constructor(noop); if (child[PROMISE_ID] === undefined) { makePromise(child); } var _state = parent._state; if (_state) { var callback = arguments[_state - 1]; asap(function () { return invokeCallback(_state, child, callback, parent._result); }); } else { subscribe(parent, child, onFulfillment, onRejection); } return child; } /** `Promise.resolve` returns a promise that will become resolved with the passed `value`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ resolve(1); }); promise.then(function(value){ // value === 1 }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.resolve(1); promise.then(function(value){ // value === 1 }); ``` @method resolve @static @param {Any} value value that the returned promise will be resolved with Useful for tooling. @return {Promise} a promise that will become fulfilled with the given `value` */ function resolve$1(object) { /*jshint validthis:true */ var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor(noop); resolve(promise, object); return promise; } var PROMISE_ID = Math.random().toString(36).substring(2); function noop() {} var PENDING = void 0; var FULFILLED = 1; var REJECTED = 2; function selfFulfillment() { return new TypeError("You cannot resolve a promise with itself"); } function cannotReturnOwn() { return new TypeError('A promises callback cannot return that same promise.'); } function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { try { then$$1.call(value, fulfillmentHandler, rejectionHandler); } catch (e) { return e; } } function handleForeignThenable(promise, thenable, then$$1) { asap(function (promise) { var sealed = false; var error = tryThen(then$$1, thenable, function (value) { if (sealed) { return; } sealed = true; if (thenable !== value) { resolve(promise, value); } else { fulfill(promise, value); } }, function (reason) { if (sealed) { return; } sealed = true; reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; reject(promise, error); } }, promise); } function handleOwnThenable(promise, thenable) { if (thenable._state === FULFILLED) { fulfill(promise, thenable._result); } else if (thenable._state === REJECTED) { reject(promise, thenable._result); } else { subscribe(thenable, undefined, function (value) { return resolve(promise, value); }, function (reason) { return reject(promise, reason); }); } } function handleMaybeThenable(promise, maybeThenable, then$$1) { if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { handleOwnThenable(promise, maybeThenable); } else { if (then$$1 === undefined) { fulfill(promise, maybeThenable); } else if (isFunction(then$$1)) { handleForeignThenable(promise, maybeThenable, then$$1); } else { fulfill(promise, maybeThenable); } } } function resolve(promise, value) { if (promise === value) { reject(promise, selfFulfillment()); } else if (objectOrFunction(value)) { var then$$1 = void 0; try { then$$1 = value.then; } catch (error) { reject(promise, error); return; } handleMaybeThenable(promise, value, then$$1); } else { fulfill(promise, value); } } function publishRejection(promise) { if (promise._onerror) { promise._onerror(promise._result); } publish(promise); } function fulfill(promise, value) { if (promise._state !== PENDING) { return; } promise._result = value; promise._state = FULFILLED; if (promise._subscribers.length !== 0) { asap(publish, promise); } } function reject(promise, reason) { if (promise._state !== PENDING) { return; } promise._state = REJECTED; promise._result = reason; asap(publishRejection, promise); } function subscribe(parent, child, onFulfillment, onRejection) { var _subscribers = parent._subscribers; var length = _subscribers.length; parent._onerror = null; _subscribers[length] = child; _subscribers[length + FULFILLED] = onFulfillment; _subscribers[length + REJECTED] = onRejection; if (length === 0 && parent._state) { asap(publish, parent); } } function publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (subscribers.length === 0) { return; } var child = void 0, callback = void 0, detail = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { invokeCallback(settled, child, callback, detail); } else { callback(detail); } } promise._subscribers.length = 0; } function invokeCallback(settled, promise, callback, detail) { var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true; if (hasCallback) { try { value = callback(detail); } catch (e) { succeeded = false; error = e; } if (promise === value) { reject(promise, cannotReturnOwn()); return; } } else { value = detail; } if (promise._state !== PENDING) { // noop } else if (hasCallback && succeeded) { resolve(promise, value); } else if (succeeded === false) { reject(promise, error); } else if (settled === FULFILLED) { fulfill(promise, value); } else if (settled === REJECTED) { reject(promise, value); } } function initializePromise(promise, resolver) { try { resolver(function resolvePromise(value) { resolve(promise, value); }, function rejectPromise(reason) { reject(promise, reason); }); } catch (e) { reject(promise, e); } } var id = 0; function nextId() { return id++; } function makePromise(promise) { promise[PROMISE_ID] = id++; promise._state = undefined; promise._result = undefined; promise._subscribers = []; } function validationError() { return new Error('Array Methods must be provided an Array'); } var Enumerator = function () { function Enumerator(Constructor, input) { this._instanceConstructor = Constructor; this.promise = new Constructor(noop); if (!this.promise[PROMISE_ID]) { makePromise(this.promise); } if (isArray(input)) { this.length = input.length; this._remaining = input.length; this._result = new Array(this.length); if (this.length === 0) { fulfill(this.promise, this._result); } else { this.length = this.length || 0; this._enumerate(input); if (this._remaining === 0) { fulfill(this.promise, this._result); } } } else { reject(this.promise, validationError()); } } Enumerator.prototype._enumerate = function _enumerate(input) { for (var i = 0; this._state === PENDING && i < input.length; i++) { this._eachEntry(input[i], i); } }; Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { var c = this._instanceConstructor; var resolve$$1 = c.resolve; if (resolve$$1 === resolve$1) { var _then = void 0; var error = void 0; var didError = false; try { _then = entry.then; } catch (e) { didError = true; error = e; } if (_then === then && entry._state !== PENDING) { this._settledAt(entry._state, i, entry._result); } else if (typeof _then !== 'function') { this._remaining--; this._result[i] = entry; } else if (c === Promise$1) { var promise = new c(noop); if (didError) { reject(promise, error); } else { handleMaybeThenable(promise, entry, _then); } this._willSettleAt(promise, i); } else { this._willSettleAt(new c(function (resolve$$1) { return resolve$$1(entry); }), i); } } else { this._willSettleAt(resolve$$1(entry), i); } }; Enumerator.prototype._settledAt = function _settledAt(state, i, value) { var promise = this.promise; if (promise._state === PENDING) { this._remaining--; if (state === REJECTED) { reject(promise, value); } else { this._result[i] = value; } } if (this._remaining === 0) { fulfill(promise, this._result); } }; Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { var enumerator = this; subscribe(promise, undefined, function (value) { return enumerator._settledAt(FULFILLED, i, value); }, function (reason) { return enumerator._settledAt(REJECTED, i, reason); }); }; return Enumerator; }(); /** `Promise.all` accepts an array of promises, and returns a new promise which is fulfilled with an array of fulfillment values for the passed promises, or rejected with the reason of the first passed promise to be rejected. It casts all elements of the passed iterable to promises as it runs this algorithm. Example: ```javascript let promise1 = resolve(1); let promise2 = resolve(2); let promise3 = resolve(3); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // The array here would be [ 1, 2, 3 ]; }); ``` If any of the `promises` given to `all` are rejected, the first promise that is rejected will be given as an argument to the returned promises's rejection handler. For example: Example: ```javascript let promise1 = resolve(1); let promise2 = reject(new Error("2")); let promise3 = reject(new Error("3")); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // Code here never runs because there are rejected promises! }, function(error) { // error.message === "2" }); ``` @method all @static @param {Array} entries array of promises @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} promise that is fulfilled when all `promises` have been fulfilled, or rejected if any of them become rejected. @static */ function all(entries) { return new Enumerator(this, entries).promise; } /** `Promise.race` returns a new promise which is settled in the same way as the first passed promise to settle. Example: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 2'); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // result === 'promise 2' because it was resolved before promise1 // was resolved. }); ``` `Promise.race` is deterministic in that only the state of the first settled promise matters. For example, even if other promises given to the `promises` array argument are resolved, but the first settled promise has become rejected before the other promises became fulfilled, the returned promise will become rejected: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ reject(new Error('promise 2')); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // Code here never runs }, function(reason){ // reason.message === 'promise 2' because promise 2 became rejected before // promise 1 became fulfilled }); ``` An example real-world use case is implementing timeouts: ```javascript Promise.race([ajax('foo.json'), timeout(5000)]) ``` @method race @static @param {Array} promises array of promises to observe Useful for tooling. @return {Promise} a promise which settles in the same way as the first passed promise to settle. */ function race(entries) { /*jshint validthis:true */ var Constructor = this; if (!isArray(entries)) { return new Constructor(function (_, reject) { return reject(new TypeError('You must pass an array to race.')); }); } else { return new Constructor(function (resolve, reject) { var length = entries.length; for (var i = 0; i < length; i++) { Constructor.resolve(entries[i]).then(resolve, reject); } }); } } /** `Promise.reject` returns a promise rejected with the passed `reason`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ reject(new Error('WHOOPS')); }); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.reject(new Error('WHOOPS')); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` @method reject @static @param {Any} reason value that the returned promise will be rejected with. Useful for tooling. @return {Promise} a promise rejected with the given `reason`. */ function reject$1(reason) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop); reject(promise, reason); return promise; } function needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. Terminology ----------- - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - `thenable` is an object or function that defines a `then` method. - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - `exception` is a value that is thrown using the throw statement. - `reason` is a value that indicates why a promise was rejected. - `settled` the final resting state of a promise, fulfilled or rejected. A promise can be in one of three states: pending, fulfilled, or rejected. Promises that are fulfilled have a fulfillment value and are in the fulfilled state. Promises that are rejected have a rejection reason and are in the rejected state. A fulfillment value is never a thenable. Promises can also be said to *resolve* a value. If this value is also a promise, then the original promise's settled state will match the value's settled state. So a promise that *resolves* a promise that rejects will itself reject, and a promise that *resolves* a promise that fulfills will itself fulfill. Basic Usage: ------------ ```js let promise = new Promise(function(resolve, reject) { // on success resolve(value); // on failure reject(reason); }); promise.then(function(value) { // on fulfillment }, function(reason) { // on rejection }); ``` Advanced Usage: --------------- Promises shine when abstracting away asynchronous interactions such as `XMLHttpRequest`s. ```js function getJSON(url) { return new Promise(function(resolve, reject){ let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onreadystatechange = handler; xhr.responseType = 'json'; xhr.setRequestHeader('Accept', 'application/json'); xhr.send(); function handler() { if (this.readyState === this.DONE) { if (this.status === 200) { resolve(this.response); } else { reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); } } }; }); } getJSON('/posts.json').then(function(json) { // on fulfillment }, function(reason) { // on rejection }); ``` Unlike callbacks, promises are great composable primitives. ```js Promise.all([ getJSON('/posts'), getJSON('/comments') ]).then(function(values){ values[0] // => postsJSON values[1] // => commentsJSON return values; }); ``` @class Promise @param {Function} resolver Useful for tooling. @constructor */ var Promise$1 = function () { function Promise(resolver) { this[PROMISE_ID] = nextId(); this._result = this._state = undefined; this._subscribers = []; if (noop !== resolver) { typeof resolver !== 'function' && needsResolver(); this instanceof Promise ? initializePromise(this, resolver) : needsNew(); } } /** The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. ```js findUser().then(function(user){ // user is available }, function(reason){ // user is unavailable, and you are given the reason why }); ``` Chaining -------- The return value of `then` is itself a promise. This second, 'downstream' promise is resolved with the return value of the first promise's fulfillment or rejection handler, or rejected if the handler throws an exception. ```js findUser().then(function (user) { return user.name; }, function (reason) { return 'default name'; }).then(function (userName) { // If `findUser` fulfilled, `userName` will be the user's name, otherwise it // will be `'default name'` }); findUser().then(function (user) { throw new Error('Found user, but still unhappy'); }, function (reason) { throw new Error('`findUser` rejected and we're unhappy'); }).then(function (value) { // never reached }, function (reason) { // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. }); ``` If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. ```js findUser().then(function (user) { throw new PedagogicalException('Upstream error'); }).then(function (value) { // never reached }).then(function (value) { // never reached }, function (reason) { // The `PedgagocialException` is propagated all the way down to here }); ``` Assimilation ------------ Sometimes the value you want to propagate to a downstream promise can only be retrieved asynchronously. This can be achieved by returning a promise in the fulfillment or rejection handler. The downstream promise will then be pending until the returned promise is settled. This is called *assimilation*. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // The user's comments are now available }); ``` If the assimliated promise rejects, then the downstream promise will also reject. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // If `findCommentsByAuthor` fulfills, we'll have the value here }, function (reason) { // If `findCommentsByAuthor` rejects, we'll have the reason here }); ``` Simple Example -------------- Synchronous Example ```javascript let result; try { result = findResult(); // success } catch(reason) { // failure } ``` Errback Example ```js findResult(function(result, err){ if (err) { // failure } else { // success } }); ``` Promise Example; ```javascript findResult().then(function(result){ // success }, function(reason){ // failure }); ``` Advanced Example -------------- Synchronous Example ```javascript let author, books; try { author = findAuthor(); books = findBooksByAuthor(author); // success } catch(reason) { // failure } ``` Errback Example ```js function foundBooks(books) { } function failure(reason) { } findAuthor(function(author, err){ if (err) { failure(err); // failure } else { try { findBoooksByAuthor(author, function(books, err) { if (err) { failure(err); } else { try { foundBooks(books); } catch(reason) { failure(reason); } } }); } catch(error) { failure(err); } // success } }); ``` Promise Example; ```javascript findAuthor(). then(findBooksByAuthor). then(function(books){ // found books }).catch(function(reason){ // something went wrong }); ``` @method then @param {Function} onFulfilled @param {Function} onRejected Useful for tooling. @return {Promise} */ /** `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same as the catch block of a try/catch statement. ```js function findAuthor(){ throw new Error('couldn't find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); ``` @method catch @param {Function} onRejection Useful for tooling. @return {Promise} */ Promise.prototype.catch = function _catch(onRejection) { return this.then(null, onRejection); }; /** `finally` will be invoked regardless of the promise's fate just as native try/catch/finally behaves Synchronous example: ```js findAuthor() { if (Math.random() > 0.5) { throw new Error(); } return new Author(); } try { return findAuthor(); // succeed or fail } catch(error) { return findOtherAuther(); } finally { // always runs // doesn't affect the return value } ``` Asynchronous example: ```js findAuthor().catch(function(reason){ return findOtherAuther(); }).finally(function(){ // author was either found, or not }); ``` @method finally @param {Function} callback @return {Promise} */ Promise.prototype.finally = function _finally(callback) { var promise = this; var constructor = promise.constructor; if (isFunction(callback)) { return promise.then(function (value) { return constructor.resolve(callback()).then(function () { return value; }); }, function (reason) { return constructor.resolve(callback()).then(function () { throw reason; }); }); } return promise.then(callback, callback); }; return Promise; }(); Promise$1.prototype.then = then; Promise$1.all = all; Promise$1.race = race; Promise$1.resolve = resolve$1; Promise$1.reject = reject$1; Promise$1._setScheduler = setScheduler; Promise$1._setAsap = setAsap; Promise$1._asap = asap; /*global self*/ function polyfill() { var local = void 0; if (typeof __webpack_require__.g !== 'undefined') { local = __webpack_require__.g; } else if (typeof self !== 'undefined') { local = self; } else { try { local = Function('return this')(); } catch (e) { throw new Error('polyfill failed because global object is unavailable in this environment'); } } var P = local.Promise; if (P) { var promiseToString = null; try { promiseToString = Object.prototype.toString.call(P.resolve()); } catch (e) { // silently ignored } if (promiseToString === '[object Promise]' && !P.cast) { return; } } local.Promise = Promise$1; } // Strange compat.. Promise$1.polyfill = polyfill; Promise$1.Promise = Promise$1; return Promise$1; }))); //# sourceMappingURL=es6-promise.map /***/ }), /***/ "./src/taskpane/taskpane.html": /*!************************************!*\ !*** ./src/taskpane/taskpane.html ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/html-loader/dist/runtime/getUrl.js */ "./node_modules/html-loader/dist/runtime/getUrl.js"); /* harmony import */ var _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0__); // Imports var ___HTML_LOADER_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(/*! ./taskpane.css */ "./src/taskpane/taskpane.css"), __webpack_require__.b); // Module var ___HTML_LOADER_REPLACEMENT_0___ = _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0___default()(___HTML_LOADER_IMPORT_0___); var code = "\n\n\n\n\n\n\n \n \n \n Press-release analyzer\n\n \n <" + "script type=\"text/javascript\" src=\"https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js\"><" + "/script>\n\n \n \n\n \n \n\n\n\n \n\n\n\n"; // Exports /* harmony default export */ __webpack_exports__["default"] = (code); /***/ }), /***/ "./node_modules/html-loader/dist/runtime/getUrl.js": /*!*********************************************************!*\ !*** ./node_modules/html-loader/dist/runtime/getUrl.js ***! \*********************************************************/ /***/ (function(module) { "use strict"; module.exports = function (url, options) { if (!options) { // eslint-disable-next-line no-param-reassign options = {}; } if (!url) { return url; } // eslint-disable-next-line no-underscore-dangle, no-param-reassign url = String(url.__esModule ? url.default : url); if (options.hash) { // eslint-disable-next-line no-param-reassign url += options.hash; } if (options.maybeNeedQuotes && /[\t\n\f\r "'=<>`]/.test(url)) { return "\"".concat(url, "\""); } return url; }; /***/ }), /***/ "./node_modules/object-assign/index.js": /*!*********************************************!*\ !*** ./node_modules/object-assign/index.js ***! \*********************************************/ /***/ (function(module) { "use strict"; /* object-assign (c) Sindre Sorhus @license MIT */ /* eslint-disable no-unused-vars */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === undefined) { throw new TypeError('Object.assign cannot be called with null or undefined'); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } // Detect buggy property enumeration order in older V8 versions. // https://bugs.chromium.org/p/v8/issues/detail?id=4118 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers test1[5] = 'de'; if (Object.getOwnPropertyNames(test1)[0] === '5') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test2 = {}; for (var i = 0; i < 10; i++) { test2['_' + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function (n) { return test2[n]; }); if (order2.join('') !== '0123456789') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test3 = {}; 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { return false; } return true; } catch (err) { // We don't expect any of the above to throw, but better to be safe. return false; } } module.exports = shouldUseNative() ? Object.assign : function (target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; /***/ }), /***/ "./node_modules/react-dom/cjs/react-dom.development.js": /*!*************************************************************!*\ !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** @license React v17.0.2 * react-dom.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js"); var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js"); var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // by calls to these methods by a Babel plugin. // // In PROD (or in packages without access to React internals), // they are left as they are instead. function warn(format) { { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } printWarning('warn', format, args); } } function error(format) { { for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } printWarning('error', format, args); } } function printWarning(level, format, args) { // When changing this logic, you might want to also // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== '') { format += '%s'; args = args.concat([stack]); } var argsWithFormat = args.map(function (item) { return '' + item; }); // Careful: RN currently depends on this prefix argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it // breaks IE9: https://github.com/facebook/react/issues/13610 // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } } if (!React) { { throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." ); } } var FunctionComponent = 0; var ClassComponent = 1; var IndeterminateComponent = 2; // Before we know whether it is function or class var HostRoot = 3; // Root of a host tree. Could be nested inside another node. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. var HostComponent = 5; var HostText = 6; var Fragment = 7; var Mode = 8; var ContextConsumer = 9; var ContextProvider = 10; var ForwardRef = 11; var Profiler = 12; var SuspenseComponent = 13; var MemoComponent = 14; var SimpleMemoComponent = 15; var LazyComponent = 16; var IncompleteClassComponent = 17; var DehydratedFragment = 18; var SuspenseListComponent = 19; var FundamentalComponent = 20; var ScopeComponent = 21; var Block = 22; var OffscreenComponent = 23; var LegacyHiddenComponent = 24; // Filter certain DOM attributes (e.g. src, href) if their values are empty strings. var enableProfilerTimer = true; // Record durations for commit and passive effects phases. var enableFundamentalAPI = false; // Experimental Scope support. var enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects) var warnAboutStringRefs = false; var allNativeEvents = new Set(); /** * Mapping from registration name to event name */ var registrationNameDependencies = {}; /** * Mapping from lowercase registration names to the properly cased version, * used to warn in the case of missing event handlers. Available * only in true. * @type {Object} */ var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true function registerTwoPhaseEvent(registrationName, dependencies) { registerDirectEvent(registrationName, dependencies); registerDirectEvent(registrationName + 'Capture', dependencies); } function registerDirectEvent(registrationName, dependencies) { { if (registrationNameDependencies[registrationName]) { error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName); } } registrationNameDependencies[registrationName] = dependencies; { var lowerCasedName = registrationName.toLowerCase(); possibleRegistrationNames[lowerCasedName] = registrationName; if (registrationName === 'onDoubleClick') { possibleRegistrationNames.ondblclick = registrationName; } } for (var i = 0; i < dependencies.length; i++) { allNativeEvents.add(dependencies[i]); } } var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); // A reserved attribute. // It is handled by React separately and shouldn't be written to the DOM. var RESERVED = 0; // A simple string attribute. // Attributes that aren't in the filter are presumed to have this type. var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called // "enumerated" attributes with "true" and "false" as possible values. // When true, it should be set to a "true" string. // When false, it should be set to a "false" string. var BOOLEANISH_STRING = 2; // A real boolean attribute. // When true, it should be present (set either to an empty string or its name). // When false, it should be omitted. var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value. // When true, it should be present (set either to an empty string or its name). // When false, it should be omitted. // For any other value, should be present with that value. var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric. // When falsy, it should be removed. var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric. // When falsy, it should be removed. var POSITIVE_NUMERIC = 6; /* eslint-disable max-len */ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; /* eslint-enable max-len */ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; var ROOT_ATTRIBUTE_NAME = 'data-reactroot'; var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); var hasOwnProperty = Object.prototype.hasOwnProperty; var illegalAttributeNameCache = {}; var validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { return true; } if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { return false; } if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { validatedAttributeNameCache[attributeName] = true; return true; } illegalAttributeNameCache[attributeName] = true; { error('Invalid attribute name: `%s`', attributeName); } return false; } function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { if (propertyInfo !== null) { return propertyInfo.type === RESERVED; } if (isCustomComponentTag) { return false; } if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) { return true; } return false; } function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { if (propertyInfo !== null && propertyInfo.type === RESERVED) { return false; } switch (typeof value) { case 'function': // $FlowIssue symbol is perfectly valid here case 'symbol': // eslint-disable-line return true; case 'boolean': { if (isCustomComponentTag) { return false; } if (propertyInfo !== null) { return !propertyInfo.acceptsBooleans; } else { var prefix = name.toLowerCase().slice(0, 5); return prefix !== 'data-' && prefix !== 'aria-'; } } default: return false; } } function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { if (value === null || typeof value === 'undefined') { return true; } if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { return true; } if (isCustomComponentTag) { return false; } if (propertyInfo !== null) { switch (propertyInfo.type) { case BOOLEAN: return !value; case OVERLOADED_BOOLEAN: return value === false; case NUMERIC: return isNaN(value); case POSITIVE_NUMERIC: return isNaN(value) || value < 1; } } return false; } function getPropertyInfo(name) { return properties.hasOwnProperty(name) ? properties[name] : null; } function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) { this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; this.attributeName = attributeName; this.attributeNamespace = attributeNamespace; this.mustUseProperty = mustUseProperty; this.propertyName = name; this.type = type; this.sanitizeURL = sanitizeURL; this.removeEmptyString = removeEmptyString; } // When adding attributes to this list, be sure to also add them to // the `possibleStandardNames` module to ensure casing and incorrect // name warnings. var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM. var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular // elements (not just inputs). Now that ReactDOMInput assigns to the // defaultValue property -- do we need this? 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style']; reservedProps.forEach(function (name) { properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // A few React string attributes have a different name. // This is a mapping from React prop names to the attribute names. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) { var name = _ref[0], attributeName = _ref[1]; properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are "enumerated" HTML attributes that accept "true" and "false". // In React, we let users pass `true` and `false` even though technically // these aren't boolean attributes (they are coerced to strings). ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are "enumerated" SVG attributes that accept "true" and "false". // In React, we let users pass `true` and `false` even though technically // these aren't boolean attributes (they are coerced to strings). // Since these are SVG attributes, their attribute names are case-sensitive. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML boolean attributes. ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM // on the client side because the browsers are inconsistent. Instead we call focus(). 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata 'itemScope'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are the few React props that we set as DOM properties // rather than attributes. These are all booleans. ['checked', // Note: `option.selected` is not updated if `select.multiple` is // disabled with `removeAttribute`. We have special logic for handling this. 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that are "overloaded booleans": they behave like // booleans, but can also accept a string value. ['capture', 'download' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that must be positive numbers. ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that must be numbers. ['rowSpan', 'start'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); var CAMELIZE = /[\-\:]([a-z])/g; var capitalize = function (token) { return token[1].toUpperCase(); }; // This is a list of all SVG attributes that need special casing, namespacing, // or boolean value assignment. Regular attributes that just accept strings // and have the same names are omitted, just like in the HTML attribute filter. // Some of these attributes can be hard to find. This list was created by // scraping the MDN documentation. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, null, // attributeNamespace false, // sanitizeURL false); }); // String SVG attributes with the xlink namespace. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL false); }); // String SVG attributes with the xml namespace. ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL false); }); // These attribute exists both in HTML and SVG. // The attribute name is case-sensitive in SVG so we can't just use // the React name like we do for attributes that exist only in HTML. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty attributeName.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These attributes accept URLs. These must not allow javascript: URLS. // These will also need to accept Trusted Types object in the future. var xlinkHref = 'xlinkHref'; properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty 'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL false); ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty attributeName.toLowerCase(), // attributeName null, // attributeNamespace true, // sanitizeURL true); }); // and any newline or tab are filtered out as if they're not part of the URL. // https://url.spec.whatwg.org/#url-parsing // Tab or newline are defined as \r\n\t: // https://infra.spec.whatwg.org/#ascii-tab-or-newline // A C0 control is a code point in the range \u0000 NULL to \u001F // INFORMATION SEPARATOR ONE, inclusive: // https://infra.spec.whatwg.org/#c0-control-or-space /* eslint-disable max-len */ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; var didWarn = false; function sanitizeURL(url) { { if (!didWarn && isJavaScriptProtocol.test(url)) { didWarn = true; error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); } } } /** * Get the value for a property on a node. Only used in DEV for SSR validation. * The "expected" argument is used as a hint of what the expected value is. * Some properties have multiple equivalent values. */ function getValueForProperty(node, name, expected, propertyInfo) { { if (propertyInfo.mustUseProperty) { var propertyName = propertyInfo.propertyName; return node[propertyName]; } else { if ( propertyInfo.sanitizeURL) { // If we haven't fully disabled javascript: URLs, and if // the hydration is successful of a javascript: URL, we // still want to warn on the client. sanitizeURL('' + expected); } var attributeName = propertyInfo.attributeName; var stringValue = null; if (propertyInfo.type === OVERLOADED_BOOLEAN) { if (node.hasAttribute(attributeName)) { var value = node.getAttribute(attributeName); if (value === '') { return true; } if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { return value; } if (value === '' + expected) { return expected; } return value; } } else if (node.hasAttribute(attributeName)) { if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { // We had an attribute but shouldn't have had one, so read it // for the error message. return node.getAttribute(attributeName); } if (propertyInfo.type === BOOLEAN) { // If this was a boolean, it doesn't matter what the value is // the fact that we have it is the same as the expected. return expected; } // Even if this property uses a namespace we use getAttribute // because we assume its namespaced name is the same as our config. // To use getAttributeNS we need the local name which we don't have // in our config atm. stringValue = node.getAttribute(attributeName); } if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { return stringValue === null ? expected : stringValue; } else if (stringValue === '' + expected) { return expected; } else { return stringValue; } } } } /** * Get the value for a attribute on a node. Only used in DEV for SSR validation. * The third argument is used as a hint of what the expected value is. Some * attributes have multiple equivalent values. */ function getValueForAttribute(node, name, expected) { { if (!isAttributeNameSafe(name)) { return; } // If the object is an opaque reference ID, it's expected that // the next prop is different than the server value, so just return // expected if (isOpaqueHydratingObject(expected)) { return expected; } if (!node.hasAttribute(name)) { return expected === undefined ? undefined : null; } var value = node.getAttribute(name); if (value === '' + expected) { return expected; } return value; } } /** * Sets the value for a property on a node. * * @param {DOMElement} node * @param {string} name * @param {*} value */ function setValueForProperty(node, name, value, isCustomComponentTag) { var propertyInfo = getPropertyInfo(name); if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { return; } if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { value = null; } // If the prop isn't in the special list, treat it as a simple attribute. if (isCustomComponentTag || propertyInfo === null) { if (isAttributeNameSafe(name)) { var _attributeName = name; if (value === null) { node.removeAttribute(_attributeName); } else { node.setAttribute(_attributeName, '' + value); } } return; } var mustUseProperty = propertyInfo.mustUseProperty; if (mustUseProperty) { var propertyName = propertyInfo.propertyName; if (value === null) { var type = propertyInfo.type; node[propertyName] = type === BOOLEAN ? false : ''; } else { // Contrary to `setAttribute`, object properties are properly // `toString`ed by IE8/9. node[propertyName] = value; } return; } // The rest are treated as attributes with special cases. var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; if (value === null) { node.removeAttribute(attributeName); } else { var _type = propertyInfo.type; var attributeValue; if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { // If attribute type is boolean, we know for sure it won't be an execution sink // and we won't require Trusted Type here. attributeValue = ''; } else { // `setAttribute` with objects becomes only `[object]` in IE8/9, // ('' + value) makes it output the correct toString()-value. { attributeValue = '' + value; } if (propertyInfo.sanitizeURL) { sanitizeURL(attributeValue.toString()); } } if (attributeNamespace) { node.setAttributeNS(attributeNamespace, attributeName, attributeValue); } else { node.setAttribute(attributeName, attributeValue); } } } // ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. If there is no native Symbol // nor polyfill, then a plain number is used for performance. var REACT_ELEMENT_TYPE = 0xeac7; var REACT_PORTAL_TYPE = 0xeaca; var REACT_FRAGMENT_TYPE = 0xeacb; var REACT_STRICT_MODE_TYPE = 0xeacc; var REACT_PROFILER_TYPE = 0xead2; var REACT_PROVIDER_TYPE = 0xeacd; var REACT_CONTEXT_TYPE = 0xeace; var REACT_FORWARD_REF_TYPE = 0xead0; var REACT_SUSPENSE_TYPE = 0xead1; var REACT_SUSPENSE_LIST_TYPE = 0xead8; var REACT_MEMO_TYPE = 0xead3; var REACT_LAZY_TYPE = 0xead4; var REACT_BLOCK_TYPE = 0xead9; var REACT_SERVER_BLOCK_TYPE = 0xeada; var REACT_FUNDAMENTAL_TYPE = 0xead5; var REACT_SCOPE_TYPE = 0xead7; var REACT_OPAQUE_ID_TYPE = 0xeae0; var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1; var REACT_OFFSCREEN_TYPE = 0xeae2; var REACT_LEGACY_HIDDEN_TYPE = 0xeae3; if (typeof Symbol === 'function' && Symbol.for) { var symbolFor = Symbol.for; REACT_ELEMENT_TYPE = symbolFor('react.element'); REACT_PORTAL_TYPE = symbolFor('react.portal'); REACT_FRAGMENT_TYPE = symbolFor('react.fragment'); REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode'); REACT_PROFILER_TYPE = symbolFor('react.profiler'); REACT_PROVIDER_TYPE = symbolFor('react.provider'); REACT_CONTEXT_TYPE = symbolFor('react.context'); REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref'); REACT_SUSPENSE_TYPE = symbolFor('react.suspense'); REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list'); REACT_MEMO_TYPE = symbolFor('react.memo'); REACT_LAZY_TYPE = symbolFor('react.lazy'); REACT_BLOCK_TYPE = symbolFor('react.block'); REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block'); REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); REACT_SCOPE_TYPE = symbolFor('react.scope'); REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode'); REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen'); REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); } var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; function getIteratorFn(maybeIterable) { if (maybeIterable === null || typeof maybeIterable !== 'object') { return null; } var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; if (typeof maybeIterator === 'function') { return maybeIterator; } return null; } // Helpers to patch console.logs to avoid logging during side-effect free // replaying on render function. This currently only patches the object // lazily which won't cover if the log function was extracted eagerly. // We could also eagerly patch the method. var disabledDepth = 0; var prevLog; var prevInfo; var prevWarn; var prevError; var prevGroup; var prevGroupCollapsed; var prevGroupEnd; function disabledLog() {} disabledLog.__reactDisabledLog = true; function disableLogs() { { if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ prevLog = console.log; prevInfo = console.info; prevWarn = console.warn; prevError = console.error; prevGroup = console.group; prevGroupCollapsed = console.groupCollapsed; prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 var props = { configurable: true, enumerable: true, value: disabledLog, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { info: props, log: props, warn: props, error: props, group: props, groupCollapsed: props, groupEnd: props }); /* eslint-enable react-internal/no-production-logging */ } disabledDepth++; } } function reenableLogs() { { disabledDepth--; if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ var props = { configurable: true, enumerable: true, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { log: _assign({}, props, { value: prevLog }), info: _assign({}, props, { value: prevInfo }), warn: _assign({}, props, { value: prevWarn }), error: _assign({}, props, { value: prevError }), group: _assign({}, props, { value: prevGroup }), groupCollapsed: _assign({}, props, { value: prevGroupCollapsed }), groupEnd: _assign({}, props, { value: prevGroupEnd }) }); /* eslint-enable react-internal/no-production-logging */ } if (disabledDepth < 0) { error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); } } } var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === undefined) { // Extract the VM specific prefix used by each line. try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ''; } } // We use the prefix to ensure our stacks line up with native stack frames. return '\n' + prefix + name; } } var reentry = false; var componentFrameCache; { var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; componentFrameCache = new PossiblyWeakMap(); } function describeNativeComponentFrame(fn, construct) { // If something asked for a stack inside a fake render, it should get ignored. if (!fn || reentry) { return ''; } { var frame = componentFrameCache.get(fn); if (frame !== undefined) { return frame; } } var control; reentry = true; var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined. Error.prepareStackTrace = undefined; var previousDispatcher; { previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. ReactCurrentDispatcher.current = null; disableLogs(); } try { // This should throw. if (construct) { // Something should be setting the props in the constructor. var Fake = function () { throw Error(); }; // $FlowFixMe Object.defineProperty(Fake.prototype, 'props', { set: function () { // We use a throwing setter instead of frozen or non-writable props // because that won't throw in a non-strict mode function. throw Error(); } }); if (typeof Reflect === 'object' && Reflect.construct) { // We construct a different control for this case to include any extra // frames added by the construct call. try { Reflect.construct(Fake, []); } catch (x) { control = x; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); } catch (x) { control = x; } fn.call(Fake.prototype); } } else { try { throw Error(); } catch (x) { control = x; } fn(); } } catch (sample) { // This is inlined manually because closure doesn't do it for us. if (sample && control && typeof sample.stack === 'string') { // This extracts the first frame from the sample that isn't also in the control. // Skipping one frame that we assume is the frame that calls the two. var sampleLines = sample.stack.split('\n'); var controlLines = control.stack.split('\n'); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { // We expect at least one stack frame to be shared. // Typically this will be the root most one. However, stack frames may be // cut off due to maximum stack limits. In this case, one maybe cut off // earlier than the other. We assume that the sample is longer or the same // and there for cut off earlier. So we should find the root most frame in // the sample somewhere in the control. c--; } for (; s >= 1 && c >= 0; s--, c--) { // Next we find the first one that isn't the same which should be the // frame that called our sample function and the control. if (sampleLines[s] !== controlLines[c]) { // In V8, the first line is describing the message but other VMs don't. // If we're about to return the first line, and the control is also on the same // line, that's a pretty good indicator that our sample threw at same line as // the control. I.e. before we entered the sample frame. So we ignore this result. // This can happen if you passed a class to function component, or non-function. if (s !== 1 || c !== 1) { do { s--; c--; // We may still have similar intermediate frames from the construct call. // The next one that isn't the same should be our match though. if (c < 0 || sampleLines[s] !== controlLines[c]) { // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); { if (typeof fn === 'function') { componentFrameCache.set(fn, _frame); } } // Return the line we found. return _frame; } } while (s >= 1 && c >= 0); } break; } } } } finally { reentry = false; { ReactCurrentDispatcher.current = previousDispatcher; reenableLogs(); } Error.prepareStackTrace = previousPrepareStackTrace; } // Fallback to just using the name if we couldn't make it throw. var name = fn ? fn.displayName || fn.name : ''; var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; { if (typeof fn === 'function') { componentFrameCache.set(fn, syntheticFrame); } } return syntheticFrame; } function describeClassComponentFrame(ctor, source, ownerFn) { { return describeNativeComponentFrame(ctor, true); } } function describeFunctionComponentFrame(fn, source, ownerFn) { { return describeNativeComponentFrame(fn, false); } } function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (type == null) { return ''; } if (typeof type === 'function') { { return describeNativeComponentFrame(type, shouldConstruct(type)); } } if (typeof type === 'string') { return describeBuiltInComponentFrame(type); } switch (type) { case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame('Suspense'); case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame('SuspenseList'); } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render); case REACT_MEMO_TYPE: // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_BLOCK_TYPE: return describeFunctionComponentFrame(type._render); case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } } } return ''; } function describeFiber(fiber) { var owner = fiber._debugOwner ? fiber._debugOwner.type : null ; var source = fiber._debugSource ; switch (fiber.tag) { case HostComponent: return describeBuiltInComponentFrame(fiber.type); case LazyComponent: return describeBuiltInComponentFrame('Lazy'); case SuspenseComponent: return describeBuiltInComponentFrame('Suspense'); case SuspenseListComponent: return describeBuiltInComponentFrame('SuspenseList'); case FunctionComponent: case IndeterminateComponent: case SimpleMemoComponent: return describeFunctionComponentFrame(fiber.type); case ForwardRef: return describeFunctionComponentFrame(fiber.type.render); case Block: return describeFunctionComponentFrame(fiber.type._render); case ClassComponent: return describeClassComponentFrame(fiber.type); default: return ''; } } function getStackByFiberInDevAndProd(workInProgress) { try { var info = ''; var node = workInProgress; do { info += describeFiber(node); node = node.return; } while (node); return info; } catch (x) { return '\nError generating stack: ' + x.message + '\n' + x.stack; } } function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); } function getContextName(type) { return type.displayName || 'Context'; } function getComponentName(type) { if (type == null) { // Host root, text node or just invalid type. return null; } { if (typeof type.tag === 'number') { error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); } } if (typeof type === 'function') { return type.displayName || type.name || null; } if (typeof type === 'string') { return type; } switch (type) { case REACT_FRAGMENT_TYPE: return 'Fragment'; case REACT_PORTAL_TYPE: return 'Portal'; case REACT_PROFILER_TYPE: return 'Profiler'; case REACT_STRICT_MODE_TYPE: return 'StrictMode'; case REACT_SUSPENSE_TYPE: return 'Suspense'; case REACT_SUSPENSE_LIST_TYPE: return 'SuspenseList'; } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; return getContextName(context) + '.Consumer'; case REACT_PROVIDER_TYPE: var provider = type; return getContextName(provider._context) + '.Provider'; case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, 'ForwardRef'); case REACT_MEMO_TYPE: return getComponentName(type.type); case REACT_BLOCK_TYPE: return getComponentName(type._render); case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { return getComponentName(init(payload)); } catch (x) { return null; } } } } return null; } var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { { if (current === null) { return null; } var owner = current._debugOwner; if (owner !== null && typeof owner !== 'undefined') { return getComponentName(owner.type); } } return null; } function getCurrentFiberStackInDev() { { if (current === null) { return ''; } // Safe because if current fiber exists, we are reconciling, // and it is guaranteed to be the work-in-progress version. return getStackByFiberInDevAndProd(current); } } function resetCurrentFiber() { { ReactDebugCurrentFrame.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev; current = fiber; isRendering = false; } } function setIsRendering(rendering) { { isRendering = rendering; } } function getIsRendering() { { return isRendering; } } // Flow does not allow string concatenation of most non-string types. To work // around this limitation, we use an opaque type that can only be obtained by // passing the value through getToStringValue first. function toString(value) { return '' + value; } function getToStringValue(value) { switch (typeof value) { case 'boolean': case 'number': case 'object': case 'string': case 'undefined': return value; default: // function, symbol are assigned as empty strings return ''; } } var hasReadOnlyValue = { button: true, checkbox: true, image: true, hidden: true, radio: true, reset: true, submit: true }; function checkControlledValueProps(tagName, props) { { if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) { error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); } if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) { error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); } } } function isCheckable(elem) { var type = elem.type; var nodeName = elem.nodeName; return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); } function getTracker(node) { return node._valueTracker; } function detachTracker(node) { node._valueTracker = null; } function getValueFromNode(node) { var value = ''; if (!node) { return value; } if (isCheckable(node)) { value = node.checked ? 'true' : 'false'; } else { value = node.value; } return value; } function trackValueOnNode(node) { var valueField = isCheckable(node) ? 'checked' : 'value'; var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail // and don't track value will cause over reporting of changes, // but it's better then a hard failure // (needed for certain tests that spyOn input values and Safari) if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { return; } var get = descriptor.get, set = descriptor.set; Object.defineProperty(node, valueField, { configurable: true, get: function () { return get.call(this); }, set: function (value) { currentValue = '' + value; set.call(this, value); } }); // We could've passed this the first time // but it triggers a bug in IE11 and Edge 14/15. // Calling defineProperty() again should be equivalent. // https://github.com/facebook/react/issues/11768 Object.defineProperty(node, valueField, { enumerable: descriptor.enumerable }); var tracker = { getValue: function () { return currentValue; }, setValue: function (value) { currentValue = '' + value; }, stopTracking: function () { detachTracker(node); delete node[valueField]; } }; return tracker; } function track(node) { if (getTracker(node)) { return; } // TODO: Once it's just Fiber we can move this to node._wrapperState node._valueTracker = trackValueOnNode(node); } function updateValueIfChanged(node) { if (!node) { return false; } var tracker = getTracker(node); // if there is no tracker at this point it's unlikely // that trying again will succeed if (!tracker) { return true; } var lastValue = tracker.getValue(); var nextValue = getValueFromNode(node); if (nextValue !== lastValue) { tracker.setValue(nextValue); return true; } return false; } function getActiveElement(doc) { doc = doc || (typeof document !== 'undefined' ? document : undefined); if (typeof doc === 'undefined') { return null; } try { return doc.activeElement || doc.body; } catch (e) { return doc.body; } } var didWarnValueDefaultValue = false; var didWarnCheckedDefaultChecked = false; var didWarnControlledToUncontrolled = false; var didWarnUncontrolledToControlled = false; function isControlled(props) { var usesChecked = props.type === 'checkbox' || props.type === 'radio'; return usesChecked ? props.checked != null : props.value != null; } /** * Implements an host component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. * * If `checked` or `value` are not supplied (or null/undefined), user actions * that affect the checked state or value will trigger updates to the element. * * If they are supplied (and not null/undefined), the rendered element will not * trigger updates to the element. Instead, the props must change in order for * the rendered element to be updated. * * The rendered element will be initialized as unchecked (or `defaultChecked`) * with an empty value (or `defaultValue`). * * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html */ function getHostProps(element, props) { var node = element; var checked = props.checked; var hostProps = _assign({}, props, { defaultChecked: undefined, defaultValue: undefined, value: undefined, checked: checked != null ? checked : node._wrapperState.initialChecked }); return hostProps; } function initWrapperState(element, props) { { checkControlledValueProps('input', props); if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); didWarnCheckedDefaultChecked = true; } if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); didWarnValueDefaultValue = true; } } var node = element; var defaultValue = props.defaultValue == null ? '' : props.defaultValue; node._wrapperState = { initialChecked: props.checked != null ? props.checked : props.defaultChecked, initialValue: getToStringValue(props.value != null ? props.value : defaultValue), controlled: isControlled(props) }; } function updateChecked(element, props) { var node = element; var checked = props.checked; if (checked != null) { setValueForProperty(node, 'checked', checked, false); } } function updateWrapper(element, props) { var node = element; { var controlled = isControlled(props); if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components'); didWarnUncontrolledToControlled = true; } if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components'); didWarnControlledToUncontrolled = true; } } updateChecked(element, props); var value = getToStringValue(props.value); var type = props.type; if (value != null) { if (type === 'number') { if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible. // eslint-disable-next-line node.value != value) { node.value = toString(value); } } else if (node.value !== toString(value)) { node.value = toString(value); } } else if (type === 'submit' || type === 'reset') { // Submit/reset inputs need the attribute removed completely to avoid // blank-text buttons. node.removeAttribute('value'); return; } { // When syncing the value attribute, the value comes from a cascade of // properties: // 1. The value React property // 2. The defaultValue React property // 3. Otherwise there should be no change if (props.hasOwnProperty('value')) { setDefaultValue(node, props.type, value); } else if (props.hasOwnProperty('defaultValue')) { setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); } } { // When syncing the checked attribute, it only changes when it needs // to be removed, such as transitioning from a checkbox into a text input if (props.checked == null && props.defaultChecked != null) { node.defaultChecked = !!props.defaultChecked; } } } function postMountWrapper(element, props, isHydrating) { var node = element; // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) { var type = props.type; var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the // default value provided by the browser. See: #12872 if (isButton && (props.value === undefined || props.value === null)) { return; } var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. if (!isHydrating) { { // When syncing the value attribute, the value property should use // the wrapperState._initialValue property. This uses: // // 1. The value React property when present // 2. The defaultValue React property when present // 3. An empty string if (initialValue !== node.value) { node.value = initialValue; } } } { // Otherwise, the value attribute is synchronized to the property, // so we assign defaultValue to the same thing as the value property // assignment step above. node.defaultValue = initialValue; } } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug // this is needed to work around a chrome bug where setting defaultChecked // will sometimes influence the value of checked (even after detachment). // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 // We need to temporarily unset name to avoid disrupting radio button groups. var name = node.name; if (name !== '') { node.name = ''; } { // When syncing the checked attribute, both the checked property and // attribute are assigned at the same time using defaultChecked. This uses: // // 1. The checked React property when present // 2. The defaultChecked React property when present // 3. Otherwise, false node.defaultChecked = !node.defaultChecked; node.defaultChecked = !!node._wrapperState.initialChecked; } if (name !== '') { node.name = name; } } function restoreControlledState(element, props) { var node = element; updateWrapper(node, props); updateNamedCousins(node, props); } function updateNamedCousins(rootNode, props) { var name = props.name; if (props.type === 'radio' && name != null) { var queryRoot = rootNode; while (queryRoot.parentNode) { queryRoot = queryRoot.parentNode; } // If `rootNode.form` was non-null, then we could try `form.elements`, // but that sometimes behaves strangely in IE8. We could also try using // `form.getElementsByName`, but that will only return direct children // and won't include inputs that use the HTML5 `form=` attribute. Since // the input might not even be in a form. It might not even be in the // document. Let's just use the local `querySelectorAll` to ensure we don't // miss anything. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); for (var i = 0; i < group.length; i++) { var otherNode = group[i]; if (otherNode === rootNode || otherNode.form !== rootNode.form) { continue; } // This will throw if radio buttons rendered by different copies of React // and the same name are rendered into the same form (same as #1939). // That's probably okay; we don't support it just as we don't support // mixing React radio buttons with non-React ones. var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) { { throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." ); } } // We need update the tracked value on the named cousin since the value // was changed but the input saw no event or value set updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. updateWrapper(otherNode, otherProps); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. // For number inputs, the display value loses trailing decimal points. For email inputs, // Chrome raises "The specified value is not a valid email address". // // Here we check to see if the defaultValue has actually changed, avoiding these problems // when the user is inputting text // // https://github.com/facebook/react/issues/7253 function setDefaultValue(node, type, value) { if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js type !== 'number' || getActiveElement(node.ownerDocument) !== node) { if (value == null) { node.defaultValue = toString(node._wrapperState.initialValue); } else if (node.defaultValue !== toString(value)) { node.defaultValue = toString(value); } } } var didWarnSelectedSetOnOption = false; var didWarnInvalidChild = false; function flattenChildren(children) { var content = ''; // Flatten children. We'll warn if they are invalid // during validateProps() which runs for hydration too. // Note that this would throw on non-element objects. // Elements are stringified (which is normally irrelevant // but matters for ). React.Children.forEach(children, function (child) { if (child == null) { return; } content += child; // Note: we don't warn about invalid children here. // Instead, this is done separately below so that // it happens during the hydration code path too. }); return content; } /** * Implements an host component that warns when `selected` is set. */ function validateProps(element, props) { { // This mirrors the code path above, but runs for hydration too. // Warn about invalid children here so that client and hydration are consistent. // TODO: this seems like it could cause a DEV-only throw for hydration // if children contains a non-element object. We should try to avoid that. if (typeof props.children === 'object' && props.children !== null) { React.Children.forEach(props.children, function (child) { if (child == null) { return; } if (typeof child === 'string' || typeof child === 'number') { return; } if (typeof child.type !== 'string') { return; } if (!didWarnInvalidChild) { didWarnInvalidChild = true; error('Only strings and numbers are supported as children.'); } }); } // TODO: Remove support for `selected` in . if (props.selected != null && !didWarnSelectedSetOnOption) { error('Use the `defaultValue` or `value` props on instead of ' + 'setting `selected` on .'); didWarnSelectedSetOnOption = true; } } } function postMountWrapper$1(element, props) { // value="" should make a value attribute (#6219) if (props.value != null) { element.setAttribute('value', toString(getToStringValue(props.value))); } } function getHostProps$1(element, props) { var hostProps = _assign({ children: undefined }, props); var content = flattenChildren(props.children); if (content) { hostProps.children = content; } return hostProps; } var didWarnValueDefaultValue$1; { didWarnValueDefaultValue$1 = false; } function getDeclarationErrorAddendum() { var ownerName = getCurrentFiberOwnerNameInDevOrNull(); if (ownerName) { return '\n\nCheck the render method of `' + ownerName + '`.'; } return ''; } var valuePropNames = ['value', 'defaultValue']; /** * Validation function for `value` and `defaultValue`. */ function checkSelectPropTypes(props) { { checkControlledValueProps('select', props); for (var i = 0; i < valuePropNames.length; i++) { var propName = valuePropNames[i]; if (props[propName] == null) { continue; } var isArray = Array.isArray(props[propName]); if (props.multiple && !isArray) { error('The `%s` prop supplied to must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum()); } else if (!props.multiple && isArray) { error('The `%s` prop supplied to must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum()); } } } } function updateOptions(node, multiple, propValue, setDefaultSelected) { var options = node.options; if (multiple) { var selectedValues = propValue; var selectedValue = {}; for (var i = 0; i < selectedValues.length; i++) { // Prefix to avoid chaos with special keys. selectedValue['$' + selectedValues[i]] = true; } for (var _i = 0; _i < options.length; _i++) { var selected = selectedValue.hasOwnProperty('$' + options[_i].value); if (options[_i].selected !== selected) { options[_i].selected = selected; } if (selected && setDefaultSelected) { options[_i].defaultSelected = true; } } } else { // Do not set `select.value` as exact behavior isn't consistent across all // browsers for all cases. var _selectedValue = toString(getToStringValue(propValue)); var defaultSelected = null; for (var _i2 = 0; _i2 < options.length; _i2++) { if (options[_i2].value === _selectedValue) { options[_i2].selected = true; if (setDefaultSelected) { options[_i2].defaultSelected = true; } return; } if (defaultSelected === null && !options[_i2].disabled) { defaultSelected = options[_i2]; } } if (defaultSelected !== null) { defaultSelected.selected = true; } } } /** * Implements a host component that allows optionally setting the * props `value` and `defaultValue`. If `multiple` is false, the prop must be a * stringable. If `multiple` is true, the prop must be an array of stringables. * * If `value` is not supplied (or null/undefined), user actions that change the * selected option will trigger updates to the rendered options. * * If it is supplied (and not null/undefined), the rendered options will not * update in response to user actions. Instead, the `value` prop must change in * order for the rendered options to update. * * If `defaultValue` is provided, any options with the supplied values will be * selected. */ function getHostProps$2(element, props) { return _assign({}, props, { value: undefined }); } function initWrapperState$1(element, props) { var node = element; { checkSelectPropTypes(props); } node._wrapperState = { wasMultiple: !!props.multiple }; { if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) { error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components'); didWarnValueDefaultValue$1 = true; } } } function postMountWrapper$2(element, props) { var node = element; node.multiple = !!props.multiple; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } else if (props.defaultValue != null) { updateOptions(node, !!props.multiple, props.defaultValue, true); } } function postUpdateWrapper(element, props) { var node = element; var wasMultiple = node._wrapperState.wasMultiple; node._wrapperState.wasMultiple = !!props.multiple; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } else if (wasMultiple !== !!props.multiple) { // For simplicity, reapply `defaultValue` if `multiple` is toggled. if (props.defaultValue != null) { updateOptions(node, !!props.multiple, props.defaultValue, true); } else { // Revert the select back to its default unselected state. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false); } } } function restoreControlledState$1(element, props) { var node = element; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } } var didWarnValDefaultVal = false; /** * Implements a host component that allows setting `value`, and * `defaultValue`. This differs from the traditional DOM API because value is * usually set as PCDATA children. * * If `value` is not supplied (or null/undefined), user actions that affect the * value will trigger updates to the element. * * If `value` is supplied (and not null/undefined), the rendered element will * not trigger updates to the element. Instead, the `value` prop must change in * order for the rendered element to be updated. * * The rendered element will be initialized with an empty value, the prop * `defaultValue` if specified, or the children content (deprecated). */ function getHostProps$3(element, props) { var node = element; if (!(props.dangerouslySetInnerHTML == null)) { { throw Error( "`dangerouslySetInnerHTML` does not make sense on ." ); } } // Always set children to the same thing. In IE9, the selection range will // get reset if `textContent` is mutated. We could add a check in setTextContent // to only set the value if/when the value differs from the node value (which would // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this // solution. The value can be a boolean or object so that's why it's forced // to be a string. var hostProps = _assign({}, props, { value: undefined, defaultValue: undefined, children: toString(node._wrapperState.initialValue) }); return hostProps; } function initWrapperState$2(element, props) { var node = element; { checkControlledValueProps('textarea', props); if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) { error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component'); didWarnValDefaultVal = true; } } var initialValue = props.value; // Only bother fetching default value if we're going to use it if (initialValue == null) { var children = props.children, defaultValue = props.defaultValue; if (children != null) { { error('Use the `defaultValue` or `value` props instead of setting ' + 'children on .'); } { if (!(defaultValue == null)) { { throw Error( "If you supply `defaultValue` on a , do not pass children." ); } } if (Array.isArray(children)) { if (!(children.length <= 1)) { { throw Error( " can only have at most one child." ); } } children = children[0]; } defaultValue = children; } } if (defaultValue == null) { defaultValue = ''; } initialValue = defaultValue; } node._wrapperState = { initialValue: getToStringValue(initialValue) }; } function updateWrapper$1(element, props) { var node = element; var value = getToStringValue(props.value); var defaultValue = getToStringValue(props.defaultValue); if (value != null) { // Cast `value` to a string to ensure the value is set correctly. While // browsers typically do this as necessary, jsdom doesn't. var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed if (newValue !== node.value) { node.value = newValue; } if (props.defaultValue == null && node.defaultValue !== newValue) { node.defaultValue = newValue; } } if (defaultValue != null) { node.defaultValue = toString(defaultValue); } } function postMountWrapper$3(element, props) { var node = element; // This is in postMount because we need access to the DOM node, which is not // available until after the component has mounted. var textContent = node.textContent; // Only set node.value if textContent is equal to the expected // initial value. In IE10/IE11 there is a bug where the placeholder attribute // will populate textContent as well. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/ if (textContent === node._wrapperState.initialValue) { if (textContent !== '' && textContent !== null) { node.value = textContent; } } } function restoreControlledState$2(element, props) { // DOM component is still mounted; update updateWrapper$1(element, props); } var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; var Namespaces = { html: HTML_NAMESPACE, mathml: MATH_NAMESPACE, svg: SVG_NAMESPACE }; // Assumes there is no parent namespace. function getIntrinsicNamespace(type) { switch (type) { case 'svg': return SVG_NAMESPACE; case 'math': return MATH_NAMESPACE; default: return HTML_NAMESPACE; } } function getChildNamespace(parentNamespace, type) { if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { // No (or default) parent namespace: potential entry point. return getIntrinsicNamespace(type); } if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { // We're leaving SVG. return HTML_NAMESPACE; } // By default, pass namespace below. return parentNamespace; } /* globals MSApp */ /** * Create a function which has 'unsafe' privileges (required by windows8 apps) */ var createMicrosoftUnsafeLocalFunction = function (func) { if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { return function (arg0, arg1, arg2, arg3) { MSApp.execUnsafeLocalFunction(function () { return func(arg0, arg1, arg2, arg3); }); }; } else { return func; } }; var reusableSVGContainer; /** * Set the innerHTML property of a node * * @param {DOMElement} node * @param {string} html * @internal */ var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) { if (node.namespaceURI === Namespaces.svg) { if (!('innerHTML' in node)) { // IE does not have innerHTML for SVG nodes, so instead we inject the // new markup in a temp node and then move the child nodes across into // the target node reusableSVGContainer = reusableSVGContainer || document.createElement('div'); reusableSVGContainer.innerHTML = '' + html.valueOf().toString() + ''; var svgNode = reusableSVGContainer.firstChild; while (node.firstChild) { node.removeChild(node.firstChild); } while (svgNode.firstChild) { node.appendChild(svgNode.firstChild); } return; } } node.innerHTML = html; }); /** * HTML nodeType values that represent the type of the node */ var ELEMENT_NODE = 1; var TEXT_NODE = 3; var COMMENT_NODE = 8; var DOCUMENT_NODE = 9; var DOCUMENT_FRAGMENT_NODE = 11; /** * Set the textContent property of a node. For text updates, it's faster * to set the `nodeValue` of the Text node directly instead of using * `.textContent` which will remove the existing node and create a new one. * * @param {DOMElement} node * @param {string} text * @internal */ var setTextContent = function (node, text) { if (text) { var firstChild = node.firstChild; if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { firstChild.nodeValue = text; return; } } node.textContent = text; }; // List derived from Gecko source code: // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js var shorthandToLonghand = { animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'], background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'], backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'], border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'], borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'], borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'], borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'], borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'], borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'], borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'], borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'], borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'], borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'], borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'], borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'], borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'], borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'], columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'], columns: ['columnCount', 'columnWidth'], flex: ['flexBasis', 'flexGrow', 'flexShrink'], flexFlow: ['flexDirection', 'flexWrap'], font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'], fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'], gap: ['columnGap', 'rowGap'], grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'], gridColumn: ['gridColumnEnd', 'gridColumnStart'], gridColumnGap: ['columnGap'], gridGap: ['columnGap', 'rowGap'], gridRow: ['gridRowEnd', 'gridRowStart'], gridRowGap: ['rowGap'], gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'], margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'], marker: ['markerEnd', 'markerMid', 'markerStart'], mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'], maskPosition: ['maskPositionX', 'maskPositionY'], outline: ['outlineColor', 'outlineStyle', 'outlineWidth'], overflow: ['overflowX', 'overflowY'], padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'], placeContent: ['alignContent', 'justifyContent'], placeItems: ['alignItems', 'justifyItems'], placeSelf: ['alignSelf', 'justifySelf'], textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'], textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'], transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'], wordWrap: ['overflowWrap'] }; /** * CSS properties which accept numbers but are not in units of "px". */ var isUnitlessNumber = { animationIterationCount: true, borderImageOutset: true, borderImageSlice: true, borderImageWidth: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, columns: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, gridArea: true, gridRow: true, gridRowEnd: true, gridRowSpan: true, gridRowStart: true, gridColumn: true, gridColumnEnd: true, gridColumnSpan: true, gridColumnStart: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, // SVG-related properties fillOpacity: true, floodOpacity: true, stopOpacity: true, strokeDasharray: true, strokeDashoffset: true, strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true }; /** * @param {string} prefix vendor-specific prefix, eg: Webkit * @param {string} key style name, eg: transitionDuration * @return {string} style name prefixed with `prefix`, properly camelCased, eg: * WebkitTransitionDuration */ function prefixKey(prefix, key) { return prefix + key.charAt(0).toUpperCase() + key.substring(1); } /** * Support style names that may come passed in prefixed by adding permutations * of vendor prefixes. */ var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an // infinite loop, because it iterates over the newly added props too. Object.keys(isUnitlessNumber).forEach(function (prop) { prefixes.forEach(function (prefix) { isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; }); }); /** * Convert a value into the proper css writable value. The style name `name` * should be logical (no hyphens), as specified * in `CSSProperty.isUnitlessNumber`. * * @param {string} name CSS property name such as `topMargin`. * @param {*} value CSS property value such as `10px`. * @return {string} Normalized style value with dimensions applied. */ function dangerousStyleValue(name, value, isCustomProperty) { // Note that we've removed escapeTextForBrowser() calls here since the // whole string will be escaped when the attribute is injected into // the markup. If you provide unsafe user data here they can inject // arbitrary CSS which may be problematic (I couldn't repro this): // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/ // This is not an XSS hole but instead a potential CSS injection issue // which has lead to a greater discussion about how we're going to // trust URLs moving forward. See #2115901 var isEmpty = value == null || typeof value === 'boolean' || value === ''; if (isEmpty) { return ''; } if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers } return ('' + value).trim(); } var uppercasePattern = /([A-Z])/g; var msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix * is converted to `-ms-`. */ function hyphenateStyleName(name) { return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); } var warnValidStyle = function () {}; { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; var msPattern$1 = /^-ms-/; var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; var warnedStyleNames = {}; var warnedStyleValues = {}; var warnedForNaNValue = false; var warnedForInfinityValue = false; var camelize = function (string) { return string.replace(hyphenPattern, function (_, character) { return character.toUpperCase(); }); }; var warnHyphenatedStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix // is converted to lowercase `ms`. camelize(name.replace(msPattern$1, 'ms-'))); }; var warnBadVendoredStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1)); }; var warnStyleValueWithSemicolon = function (name, value) { if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { return; } warnedStyleValues[value] = true; error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, '')); }; var warnStyleValueIsNaN = function (name, value) { if (warnedForNaNValue) { return; } warnedForNaNValue = true; error('`NaN` is an invalid value for the `%s` css style property.', name); }; var warnStyleValueIsInfinity = function (name, value) { if (warnedForInfinityValue) { return; } warnedForInfinityValue = true; error('`Infinity` is an invalid value for the `%s` css style property.', name); }; warnValidStyle = function (name, value) { if (name.indexOf('-') > -1) { warnHyphenatedStyleName(name); } else if (badVendoredStyleNamePattern.test(name)) { warnBadVendoredStyleName(name); } else if (badStyleValueWithSemicolonPattern.test(value)) { warnStyleValueWithSemicolon(name, value); } if (typeof value === 'number') { if (isNaN(value)) { warnStyleValueIsNaN(name, value); } else if (!isFinite(value)) { warnStyleValueIsInfinity(name, value); } } }; } var warnValidStyle$1 = warnValidStyle; /** * Operations for dealing with CSS properties. */ /** * This creates a string that is expected to be equivalent to the style * attribute generated by server-side rendering. It by-passes warnings and * security checks so it's not safe to use this value for anything other than * comparison. It is only used in DEV for SSR validation. */ function createDangerousStringForStyles(styles) { { var serialized = ''; var delimiter = ''; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } var styleValue = styles[styleName]; if (styleValue != null) { var isCustomProperty = styleName.indexOf('--') === 0; serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':'; serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty); delimiter = ';'; } } return serialized || null; } } /** * Sets the value for multiple styles on a node. If a value is specified as * '' (empty string), the corresponding style property will be unset. * * @param {DOMElement} node * @param {object} styles */ function setValueForStyles(node, styles) { var style = node.style; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } var isCustomProperty = styleName.indexOf('--') === 0; { if (!isCustomProperty) { warnValidStyle$1(styleName, styles[styleName]); } } var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty); if (styleName === 'float') { styleName = 'cssFloat'; } if (isCustomProperty) { style.setProperty(styleName, styleValue); } else { style[styleName] = styleValue; } } } function isValueEmpty(value) { return value == null || typeof value === 'boolean' || value === ''; } /** * Given {color: 'red', overflow: 'hidden'} returns { * color: 'color', * overflowX: 'overflow', * overflowY: 'overflow', * }. This can be read as "the overflowY property was set by the overflow * shorthand". That is, the values are the property that each was derived from. */ function expandShorthandMap(styles) { var expanded = {}; for (var key in styles) { var longhands = shorthandToLonghand[key] || [key]; for (var i = 0; i < longhands.length; i++) { expanded[longhands[i]] = key; } } return expanded; } /** * When mixing shorthand and longhand property names, we warn during updates if * we expect an incorrect result to occur. In particular, we warn for: * * Updating a shorthand property (longhand gets overwritten): * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'} * becomes .style.font = 'baz' * Removing a shorthand property (longhand gets lost too): * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'} * becomes .style.font = '' * Removing a longhand property (should revert to shorthand; doesn't): * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'} * becomes .style.fontVariant = '' */ function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) { { if (!nextStyles) { return; } var expandedUpdates = expandShorthandMap(styleUpdates); var expandedStyles = expandShorthandMap(nextStyles); var warnedAbout = {}; for (var key in expandedUpdates) { var originalKey = expandedUpdates[key]; var correctOriginalKey = expandedStyles[key]; if (correctOriginalKey && originalKey !== correctOriginalKey) { var warningKey = originalKey + ',' + correctOriginalKey; if (warnedAbout[warningKey]) { continue; } warnedAbout[warningKey] = true; error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey); } } } } // For HTML, certain tags should omit their close tag. We keep a list for // those special-case tags. var omittedCloseTags = { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems. }; // `omittedCloseTags` except that `menuitem` should still have its closing tag. var voidElementTags = _assign({ menuitem: true }, omittedCloseTags); var HTML = '__html'; function assertValidProps(tag, props) { if (!props) { return; } // Note the use of `==` which checks for null or undefined. if (voidElementTags[tag]) { if (!(props.children == null && props.dangerouslySetInnerHTML == null)) { { throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); } } } if (props.dangerouslySetInnerHTML != null) { if (!(props.children == null)) { { throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); } } if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) { { throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." ); } } } { if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) { error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.'); } } if (!(props.style == null || typeof props.style === 'object')) { { throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." ); } } } function isCustomComponent(tagName, props) { if (tagName.indexOf('-') === -1) { return typeof props.is === 'string'; } switch (tagName) { // These are reserved SVG and MathML elements. // We don't mind this list too much because we expect it to never grow. // The alternative is to track the namespace in a few places which is convoluted. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return false; default: return true; } } // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. var possibleStandardNames = { // HTML accept: 'accept', acceptcharset: 'acceptCharset', 'accept-charset': 'acceptCharset', accesskey: 'accessKey', action: 'action', allowfullscreen: 'allowFullScreen', alt: 'alt', as: 'as', async: 'async', autocapitalize: 'autoCapitalize', autocomplete: 'autoComplete', autocorrect: 'autoCorrect', autofocus: 'autoFocus', autoplay: 'autoPlay', autosave: 'autoSave', capture: 'capture', cellpadding: 'cellPadding', cellspacing: 'cellSpacing', challenge: 'challenge', charset: 'charSet', checked: 'checked', children: 'children', cite: 'cite', class: 'className', classid: 'classID', classname: 'className', cols: 'cols', colspan: 'colSpan', content: 'content', contenteditable: 'contentEditable', contextmenu: 'contextMenu', controls: 'controls', controlslist: 'controlsList', coords: 'coords', crossorigin: 'crossOrigin', dangerouslysetinnerhtml: 'dangerouslySetInnerHTML', data: 'data', datetime: 'dateTime', default: 'default', defaultchecked: 'defaultChecked', defaultvalue: 'defaultValue', defer: 'defer', dir: 'dir', disabled: 'disabled', disablepictureinpicture: 'disablePictureInPicture', disableremoteplayback: 'disableRemotePlayback', download: 'download', draggable: 'draggable', enctype: 'encType', enterkeyhint: 'enterKeyHint', for: 'htmlFor', form: 'form', formmethod: 'formMethod', formaction: 'formAction', formenctype: 'formEncType', formnovalidate: 'formNoValidate', formtarget: 'formTarget', frameborder: 'frameBorder', headers: 'headers', height: 'height', hidden: 'hidden', high: 'high', href: 'href', hreflang: 'hrefLang', htmlfor: 'htmlFor', httpequiv: 'httpEquiv', 'http-equiv': 'httpEquiv', icon: 'icon', id: 'id', innerhtml: 'innerHTML', inputmode: 'inputMode', integrity: 'integrity', is: 'is', itemid: 'itemID', itemprop: 'itemProp', itemref: 'itemRef', itemscope: 'itemScope', itemtype: 'itemType', keyparams: 'keyParams', keytype: 'keyType', kind: 'kind', label: 'label', lang: 'lang', list: 'list', loop: 'loop', low: 'low', manifest: 'manifest', marginwidth: 'marginWidth', marginheight: 'marginHeight', max: 'max', maxlength: 'maxLength', media: 'media', mediagroup: 'mediaGroup', method: 'method', min: 'min', minlength: 'minLength', multiple: 'multiple', muted: 'muted', name: 'name', nomodule: 'noModule', nonce: 'nonce', novalidate: 'noValidate', open: 'open', optimum: 'optimum', pattern: 'pattern', placeholder: 'placeholder', playsinline: 'playsInline', poster: 'poster', preload: 'preload', profile: 'profile', radiogroup: 'radioGroup', readonly: 'readOnly', referrerpolicy: 'referrerPolicy', rel: 'rel', required: 'required', reversed: 'reversed', role: 'role', rows: 'rows', rowspan: 'rowSpan', sandbox: 'sandbox', scope: 'scope', scoped: 'scoped', scrolling: 'scrolling', seamless: 'seamless', selected: 'selected', shape: 'shape', size: 'size', sizes: 'sizes', span: 'span', spellcheck: 'spellCheck', src: 'src', srcdoc: 'srcDoc', srclang: 'srcLang', srcset: 'srcSet', start: 'start', step: 'step', style: 'style', summary: 'summary', tabindex: 'tabIndex', target: 'target', title: 'title', type: 'type', usemap: 'useMap', value: 'value', width: 'width', wmode: 'wmode', wrap: 'wrap', // SVG about: 'about', accentheight: 'accentHeight', 'accent-height': 'accentHeight', accumulate: 'accumulate', additive: 'additive', alignmentbaseline: 'alignmentBaseline', 'alignment-baseline': 'alignmentBaseline', allowreorder: 'allowReorder', alphabetic: 'alphabetic', amplitude: 'amplitude', arabicform: 'arabicForm', 'arabic-form': 'arabicForm', ascent: 'ascent', attributename: 'attributeName', attributetype: 'attributeType', autoreverse: 'autoReverse', azimuth: 'azimuth', basefrequency: 'baseFrequency', baselineshift: 'baselineShift', 'baseline-shift': 'baselineShift', baseprofile: 'baseProfile', bbox: 'bbox', begin: 'begin', bias: 'bias', by: 'by', calcmode: 'calcMode', capheight: 'capHeight', 'cap-height': 'capHeight', clip: 'clip', clippath: 'clipPath', 'clip-path': 'clipPath', clippathunits: 'clipPathUnits', cliprule: 'clipRule', 'clip-rule': 'clipRule', color: 'color', colorinterpolation: 'colorInterpolation', 'color-interpolation': 'colorInterpolation', colorinterpolationfilters: 'colorInterpolationFilters', 'color-interpolation-filters': 'colorInterpolationFilters', colorprofile: 'colorProfile', 'color-profile': 'colorProfile', colorrendering: 'colorRendering', 'color-rendering': 'colorRendering', contentscripttype: 'contentScriptType', contentstyletype: 'contentStyleType', cursor: 'cursor', cx: 'cx', cy: 'cy', d: 'd', datatype: 'datatype', decelerate: 'decelerate', descent: 'descent', diffuseconstant: 'diffuseConstant', direction: 'direction', display: 'display', divisor: 'divisor', dominantbaseline: 'dominantBaseline', 'dominant-baseline': 'dominantBaseline', dur: 'dur', dx: 'dx', dy: 'dy', edgemode: 'edgeMode', elevation: 'elevation', enablebackground: 'enableBackground', 'enable-background': 'enableBackground', end: 'end', exponent: 'exponent', externalresourcesrequired: 'externalResourcesRequired', fill: 'fill', fillopacity: 'fillOpacity', 'fill-opacity': 'fillOpacity', fillrule: 'fillRule', 'fill-rule': 'fillRule', filter: 'filter', filterres: 'filterRes', filterunits: 'filterUnits', floodopacity: 'floodOpacity', 'flood-opacity': 'floodOpacity', floodcolor: 'floodColor', 'flood-color': 'floodColor', focusable: 'focusable', fontfamily: 'fontFamily', 'font-family': 'fontFamily', fontsize: 'fontSize', 'font-size': 'fontSize', fontsizeadjust: 'fontSizeAdjust', 'font-size-adjust': 'fontSizeAdjust', fontstretch: 'fontStretch', 'font-stretch': 'fontStretch', fontstyle: 'fontStyle', 'font-style': 'fontStyle', fontvariant: 'fontVariant', 'font-variant': 'fontVariant', fontweight: 'fontWeight', 'font-weight': 'fontWeight', format: 'format', from: 'from', fx: 'fx', fy: 'fy', g1: 'g1', g2: 'g2', glyphname: 'glyphName', 'glyph-name': 'glyphName', glyphorientationhorizontal: 'glyphOrientationHorizontal', 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', glyphorientationvertical: 'glyphOrientationVertical', 'glyph-orientation-vertical': 'glyphOrientationVertical', glyphref: 'glyphRef', gradienttransform: 'gradientTransform', gradientunits: 'gradientUnits', hanging: 'hanging', horizadvx: 'horizAdvX', 'horiz-adv-x': 'horizAdvX', horizoriginx: 'horizOriginX', 'horiz-origin-x': 'horizOriginX', ideographic: 'ideographic', imagerendering: 'imageRendering', 'image-rendering': 'imageRendering', in2: 'in2', in: 'in', inlist: 'inlist', intercept: 'intercept', k1: 'k1', k2: 'k2', k3: 'k3', k4: 'k4', k: 'k', kernelmatrix: 'kernelMatrix', kernelunitlength: 'kernelUnitLength', kerning: 'kerning', keypoints: 'keyPoints', keysplines: 'keySplines', keytimes: 'keyTimes', lengthadjust: 'lengthAdjust', letterspacing: 'letterSpacing', 'letter-spacing': 'letterSpacing', lightingcolor: 'lightingColor', 'lighting-color': 'lightingColor', limitingconeangle: 'limitingConeAngle', local: 'local', markerend: 'markerEnd', 'marker-end': 'markerEnd', markerheight: 'markerHeight', markermid: 'markerMid', 'marker-mid': 'markerMid', markerstart: 'markerStart', 'marker-start': 'markerStart', markerunits: 'markerUnits', markerwidth: 'markerWidth', mask: 'mask', maskcontentunits: 'maskContentUnits', maskunits: 'maskUnits', mathematical: 'mathematical', mode: 'mode', numoctaves: 'numOctaves', offset: 'offset', opacity: 'opacity', operator: 'operator', order: 'order', orient: 'orient', orientation: 'orientation', origin: 'origin', overflow: 'overflow', overlineposition: 'overlinePosition', 'overline-position': 'overlinePosition', overlinethickness: 'overlineThickness', 'overline-thickness': 'overlineThickness', paintorder: 'paintOrder', 'paint-order': 'paintOrder', panose1: 'panose1', 'panose-1': 'panose1', pathlength: 'pathLength', patterncontentunits: 'patternContentUnits', patterntransform: 'patternTransform', patternunits: 'patternUnits', pointerevents: 'pointerEvents', 'pointer-events': 'pointerEvents', points: 'points', pointsatx: 'pointsAtX', pointsaty: 'pointsAtY', pointsatz: 'pointsAtZ', prefix: 'prefix', preservealpha: 'preserveAlpha', preserveaspectratio: 'preserveAspectRatio', primitiveunits: 'primitiveUnits', property: 'property', r: 'r', radius: 'radius', refx: 'refX', refy: 'refY', renderingintent: 'renderingIntent', 'rendering-intent': 'renderingIntent', repeatcount: 'repeatCount', repeatdur: 'repeatDur', requiredextensions: 'requiredExtensions', requiredfeatures: 'requiredFeatures', resource: 'resource', restart: 'restart', result: 'result', results: 'results', rotate: 'rotate', rx: 'rx', ry: 'ry', scale: 'scale', security: 'security', seed: 'seed', shaperendering: 'shapeRendering', 'shape-rendering': 'shapeRendering', slope: 'slope', spacing: 'spacing', specularconstant: 'specularConstant', specularexponent: 'specularExponent', speed: 'speed', spreadmethod: 'spreadMethod', startoffset: 'startOffset', stddeviation: 'stdDeviation', stemh: 'stemh', stemv: 'stemv', stitchtiles: 'stitchTiles', stopcolor: 'stopColor', 'stop-color': 'stopColor', stopopacity: 'stopOpacity', 'stop-opacity': 'stopOpacity', strikethroughposition: 'strikethroughPosition', 'strikethrough-position': 'strikethroughPosition', strikethroughthickness: 'strikethroughThickness', 'strikethrough-thickness': 'strikethroughThickness', string: 'string', stroke: 'stroke', strokedasharray: 'strokeDasharray', 'stroke-dasharray': 'strokeDasharray', strokedashoffset: 'strokeDashoffset', 'stroke-dashoffset': 'strokeDashoffset', strokelinecap: 'strokeLinecap', 'stroke-linecap': 'strokeLinecap', strokelinejoin: 'strokeLinejoin', 'stroke-linejoin': 'strokeLinejoin', strokemiterlimit: 'strokeMiterlimit', 'stroke-miterlimit': 'strokeMiterlimit', strokewidth: 'strokeWidth', 'stroke-width': 'strokeWidth', strokeopacity: 'strokeOpacity', 'stroke-opacity': 'strokeOpacity', suppresscontenteditablewarning: 'suppressContentEditableWarning', suppresshydrationwarning: 'suppressHydrationWarning', surfacescale: 'surfaceScale', systemlanguage: 'systemLanguage', tablevalues: 'tableValues', targetx: 'targetX', targety: 'targetY', textanchor: 'textAnchor', 'text-anchor': 'textAnchor', textdecoration: 'textDecoration', 'text-decoration': 'textDecoration', textlength: 'textLength', textrendering: 'textRendering', 'text-rendering': 'textRendering', to: 'to', transform: 'transform', typeof: 'typeof', u1: 'u1', u2: 'u2', underlineposition: 'underlinePosition', 'underline-position': 'underlinePosition', underlinethickness: 'underlineThickness', 'underline-thickness': 'underlineThickness', unicode: 'unicode', unicodebidi: 'unicodeBidi', 'unicode-bidi': 'unicodeBidi', unicoderange: 'unicodeRange', 'unicode-range': 'unicodeRange', unitsperem: 'unitsPerEm', 'units-per-em': 'unitsPerEm', unselectable: 'unselectable', valphabetic: 'vAlphabetic', 'v-alphabetic': 'vAlphabetic', values: 'values', vectoreffect: 'vectorEffect', 'vector-effect': 'vectorEffect', version: 'version', vertadvy: 'vertAdvY', 'vert-adv-y': 'vertAdvY', vertoriginx: 'vertOriginX', 'vert-origin-x': 'vertOriginX', vertoriginy: 'vertOriginY', 'vert-origin-y': 'vertOriginY', vhanging: 'vHanging', 'v-hanging': 'vHanging', videographic: 'vIdeographic', 'v-ideographic': 'vIdeographic', viewbox: 'viewBox', viewtarget: 'viewTarget', visibility: 'visibility', vmathematical: 'vMathematical', 'v-mathematical': 'vMathematical', vocab: 'vocab', widths: 'widths', wordspacing: 'wordSpacing', 'word-spacing': 'wordSpacing', writingmode: 'writingMode', 'writing-mode': 'writingMode', x1: 'x1', x2: 'x2', x: 'x', xchannelselector: 'xChannelSelector', xheight: 'xHeight', 'x-height': 'xHeight', xlinkactuate: 'xlinkActuate', 'xlink:actuate': 'xlinkActuate', xlinkarcrole: 'xlinkArcrole', 'xlink:arcrole': 'xlinkArcrole', xlinkhref: 'xlinkHref', 'xlink:href': 'xlinkHref', xlinkrole: 'xlinkRole', 'xlink:role': 'xlinkRole', xlinkshow: 'xlinkShow', 'xlink:show': 'xlinkShow', xlinktitle: 'xlinkTitle', 'xlink:title': 'xlinkTitle', xlinktype: 'xlinkType', 'xlink:type': 'xlinkType', xmlbase: 'xmlBase', 'xml:base': 'xmlBase', xmllang: 'xmlLang', 'xml:lang': 'xmlLang', xmlns: 'xmlns', 'xml:space': 'xmlSpace', xmlnsxlink: 'xmlnsXlink', 'xmlns:xlink': 'xmlnsXlink', xmlspace: 'xmlSpace', y1: 'y1', y2: 'y2', y: 'y', ychannelselector: 'yChannelSelector', z: 'z', zoomandpan: 'zoomAndPan' }; var ariaProperties = { 'aria-current': 0, // state 'aria-details': 0, 'aria-disabled': 0, // state 'aria-hidden': 0, // state 'aria-invalid': 0, // state 'aria-keyshortcuts': 0, 'aria-label': 0, 'aria-roledescription': 0, // Widget Attributes 'aria-autocomplete': 0, 'aria-checked': 0, 'aria-expanded': 0, 'aria-haspopup': 0, 'aria-level': 0, 'aria-modal': 0, 'aria-multiline': 0, 'aria-multiselectable': 0, 'aria-orientation': 0, 'aria-placeholder': 0, 'aria-pressed': 0, 'aria-readonly': 0, 'aria-required': 0, 'aria-selected': 0, 'aria-sort': 0, 'aria-valuemax': 0, 'aria-valuemin': 0, 'aria-valuenow': 0, 'aria-valuetext': 0, // Live Region Attributes 'aria-atomic': 0, 'aria-busy': 0, 'aria-live': 0, 'aria-relevant': 0, // Drag-and-Drop Attributes 'aria-dropeffect': 0, 'aria-grabbed': 0, // Relationship Attributes 'aria-activedescendant': 0, 'aria-colcount': 0, 'aria-colindex': 0, 'aria-colspan': 0, 'aria-controls': 0, 'aria-describedby': 0, 'aria-errormessage': 0, 'aria-flowto': 0, 'aria-labelledby': 0, 'aria-owns': 0, 'aria-posinset': 0, 'aria-rowcount': 0, 'aria-rowindex': 0, 'aria-rowspan': 0, 'aria-setsize': 0 }; var warnedProperties = {}; var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); var hasOwnProperty$1 = Object.prototype.hasOwnProperty; function validateProperty(tagName, name) { { if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) { return true; } if (rARIACamel.test(name)) { var ariaName = 'aria-' + name.slice(4).toLowerCase(); var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM // DOM properties, then it is an invalid aria-* attribute. if (correctName == null) { error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name); warnedProperties[name] = true; return true; } // aria-* attributes should be lowercase; suggest the lowercase version. if (name !== correctName) { error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName); warnedProperties[name] = true; return true; } } if (rARIA.test(name)) { var lowerCasedName = name.toLowerCase(); var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM // DOM properties, then it is an invalid aria-* attribute. if (standardName == null) { warnedProperties[name] = true; return false; } // aria-* attributes should be lowercase; suggest the lowercase version. if (name !== standardName) { error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName); warnedProperties[name] = true; return true; } } } return true; } function warnInvalidARIAProps(type, props) { { var invalidProps = []; for (var key in props) { var isValid = validateProperty(type, key); if (!isValid) { invalidProps.push(key); } } var unknownPropString = invalidProps.map(function (prop) { return '`' + prop + '`'; }).join(', '); if (invalidProps.length === 1) { error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); } else if (invalidProps.length > 1) { error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); } } } function validateProperties(type, props) { if (isCustomComponent(type, props)) { return; } warnInvalidARIAProps(type, props); } var didWarnValueNull = false; function validateProperties$1(type, props) { { if (type !== 'input' && type !== 'textarea' && type !== 'select') { return; } if (props != null && props.value === null && !didWarnValueNull) { didWarnValueNull = true; if (type === 'select' && props.multiple) { error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type); } else { error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type); } } } } var validateProperty$1 = function () {}; { var warnedProperties$1 = {}; var _hasOwnProperty = Object.prototype.hasOwnProperty; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); validateProperty$1 = function (tagName, name, value, eventRegistry) { if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { return true; } var lowerCasedName = name.toLowerCase(); if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') { error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.'); warnedProperties$1[name] = true; return true; } // We can't rely on the event system being injected on the server. if (eventRegistry != null) { var registrationNameDependencies = eventRegistry.registrationNameDependencies, possibleRegistrationNames = eventRegistry.possibleRegistrationNames; if (registrationNameDependencies.hasOwnProperty(name)) { return true; } var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; if (registrationName != null) { error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName); warnedProperties$1[name] = true; return true; } if (EVENT_NAME_REGEX.test(name)) { error('Unknown event handler property `%s`. It will be ignored.', name); warnedProperties$1[name] = true; return true; } } else if (EVENT_NAME_REGEX.test(name)) { // If no event plugins have been injected, we are in a server environment. // So we can't tell if the event name is correct for sure, but we can filter // out known bad ones like `onclick`. We can't suggest a specific replacement though. if (INVALID_EVENT_NAME_REGEX.test(name)) { error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name); } warnedProperties$1[name] = true; return true; } // Let the ARIA attribute hook validate ARIA attributes if (rARIA$1.test(name) || rARIACamel$1.test(name)) { return true; } if (lowerCasedName === 'innerhtml') { error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.'); warnedProperties$1[name] = true; return true; } if (lowerCasedName === 'aria') { error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.'); warnedProperties$1[name] = true; return true; } if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') { error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value); warnedProperties$1[name] = true; return true; } if (typeof value === 'number' && isNaN(value)) { error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name); warnedProperties$1[name] = true; return true; } var propertyInfo = getPropertyInfo(name); var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { var standardName = possibleStandardNames[lowerCasedName]; if (standardName !== name) { error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName); warnedProperties$1[name] = true; return true; } } else if (!isReserved && name !== lowerCasedName) { // Unknown attributes should have lowercase casing since that's how they // will be cased anyway with server rendering. error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName); warnedProperties$1[name] = true; return true; } if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { if (value) { error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name); } else { error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name); } warnedProperties$1[name] = true; return true; } // Now that we've validated casing, do not validate // data types for reserved props if (isReserved) { return true; } // Warn when a known attribute is a bad type if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { warnedProperties$1[name] = true; return false; } // Warn when passing the strings 'false' or 'true' into a boolean prop if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) { error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value); warnedProperties$1[name] = true; return true; } return true; }; } var warnUnknownProperties = function (type, props, eventRegistry) { { var unknownProps = []; for (var key in props) { var isValid = validateProperty$1(type, key, props[key], eventRegistry); if (!isValid) { unknownProps.push(key); } } var unknownPropString = unknownProps.map(function (prop) { return '`' + prop + '`'; }).join(', '); if (unknownProps.length === 1) { error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); } else if (unknownProps.length > 1) { error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); } } }; function validateProperties$2(type, props, eventRegistry) { if (isCustomComponent(type, props)) { return; } warnUnknownProperties(type, props, eventRegistry); } var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1; var IS_NON_DELEGATED = 1 << 1; var IS_CAPTURE_PHASE = 1 << 2; var IS_REPLAYED = 1 << 4; // set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when // we call willDeferLaterForLegacyFBSupport, thus not bailing out // will result in endless cycles like an infinite loop. // We also don't want to defer during event replaying. var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE; /** * Gets the target node from a native browser event by accounting for * inconsistencies in browser DOM APIs. * * @param {object} nativeEvent Native browser event. * @return {DOMEventTarget} Target node. */ function getEventTarget(nativeEvent) { // Fallback to nativeEvent.srcElement for IE9 // https://github.com/facebook/react/issues/12506 var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG element events #4963 if (target.correspondingUseElement) { target = target.correspondingUseElement; } // Safari may fire events on text nodes (Node.TEXT_NODE is 3). // @see http://www.quirksmode.org/js/events_properties.html return target.nodeType === TEXT_NODE ? target.parentNode : target; } var restoreImpl = null; var restoreTarget = null; var restoreQueue = null; function restoreStateOfTarget(target) { // We perform this translation at the end of the event loop so that we // always receive the correct fiber here var internalInstance = getInstanceFromNode(target); if (!internalInstance) { // Unmounted return; } if (!(typeof restoreImpl === 'function')) { { throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." ); } } var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted. if (stateNode) { var _props = getFiberCurrentPropsFromNode(stateNode); restoreImpl(internalInstance.stateNode, internalInstance.type, _props); } } function setRestoreImplementation(impl) { restoreImpl = impl; } function enqueueStateRestore(target) { if (restoreTarget) { if (restoreQueue) { restoreQueue.push(target); } else { restoreQueue = [target]; } } else { restoreTarget = target; } } function needsStateRestore() { return restoreTarget !== null || restoreQueue !== null; } function restoreStateIfNeeded() { if (!restoreTarget) { return; } var target = restoreTarget; var queuedTargets = restoreQueue; restoreTarget = null; restoreQueue = null; restoreStateOfTarget(target); if (queuedTargets) { for (var i = 0; i < queuedTargets.length; i++) { restoreStateOfTarget(queuedTargets[i]); } } } // the renderer. Such as when we're dispatching events or if third party // libraries need to call batchedUpdates. Eventually, this API will go away when // everything is batched by default. We'll then have a similar API to opt-out of // scheduled work and instead do synchronous work. // Defaults var batchedUpdatesImpl = function (fn, bookkeeping) { return fn(bookkeeping); }; var discreteUpdatesImpl = function (fn, a, b, c, d) { return fn(a, b, c, d); }; var flushDiscreteUpdatesImpl = function () {}; var batchedEventUpdatesImpl = batchedUpdatesImpl; var isInsideEventHandler = false; var isBatchingEventUpdates = false; function finishEventHandler() { // Here we wait until all updates have propagated, which is important // when using controlled components within layers: // https://github.com/facebook/react/issues/1698 // Then we restore state of any controlled component. var controlledComponentsHavePendingUpdates = needsStateRestore(); if (controlledComponentsHavePendingUpdates) { // If a controlled event was fired, we may need to restore the state of // the DOM node back to the controlled value. This is necessary when React // bails out of the update without touching the DOM. flushDiscreteUpdatesImpl(); restoreStateIfNeeded(); } } function batchedUpdates(fn, bookkeeping) { if (isInsideEventHandler) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. return fn(bookkeeping); } isInsideEventHandler = true; try { return batchedUpdatesImpl(fn, bookkeeping); } finally { isInsideEventHandler = false; finishEventHandler(); } } function batchedEventUpdates(fn, a, b) { if (isBatchingEventUpdates) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. return fn(a, b); } isBatchingEventUpdates = true; try { return batchedEventUpdatesImpl(fn, a, b); } finally { isBatchingEventUpdates = false; finishEventHandler(); } } function discreteUpdates(fn, a, b, c, d) { var prevIsInsideEventHandler = isInsideEventHandler; isInsideEventHandler = true; try { return discreteUpdatesImpl(fn, a, b, c, d); } finally { isInsideEventHandler = prevIsInsideEventHandler; if (!isInsideEventHandler) { finishEventHandler(); } } } function flushDiscreteUpdatesIfNeeded(timeStamp) { { if (!isInsideEventHandler) { flushDiscreteUpdatesImpl(); } } } function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) { batchedUpdatesImpl = _batchedUpdatesImpl; discreteUpdatesImpl = _discreteUpdatesImpl; flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl; batchedEventUpdatesImpl = _batchedEventUpdatesImpl; } function isInteractive(tag) { return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; } function shouldPreventMouseEvent(name, type, props) { switch (name) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case 'onMouseUpCapture': case 'onMouseEnter': return !!(props.disabled && isInteractive(type)); default: return false; } } /** * @param {object} inst The instance, which is the source of events. * @param {string} registrationName Name of listener (e.g. `onClick`). * @return {?function} The stored callback. */ function getListener(inst, registrationName) { var stateNode = inst.stateNode; if (stateNode === null) { // Work in progress (ex: onload events in incremental mode). return null; } var props = getFiberCurrentPropsFromNode(stateNode); if (props === null) { // Work in progress. return null; } var listener = props[registrationName]; if (shouldPreventMouseEvent(registrationName, inst.type, props)) { return null; } if (!(!listener || typeof listener === 'function')) { { throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." ); } } return listener; } var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support if (canUseDOM) { try { var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value Object.defineProperty(options, 'passive', { get: function () { passiveBrowserEventsSupported = true; } }); window.addEventListener('test', options, options); window.removeEventListener('test', options, options); } catch (e) { passiveBrowserEventsSupported = false; } } function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { var funcArgs = Array.prototype.slice.call(arguments, 3); try { func.apply(context, funcArgs); } catch (error) { this.onError(error); } } var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; { // In DEV mode, we swap out invokeGuardedCallback for a special version // that plays more nicely with the browser's DevTools. The idea is to preserve // "Pause on exceptions" behavior. Because React wraps all user-provided // functions in invokeGuardedCallback, and the production version of // invokeGuardedCallback uses a try-catch, all user exceptions are treated // like caught exceptions, and the DevTools won't pause unless the developer // takes the extra step of enabling pause on caught exceptions. This is // unintuitive, though, because even though React has caught the error, from // the developer's perspective, the error is uncaught. // // To preserve the expected "Pause on exceptions" behavior, we don't use a // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake // DOM node, and call the user-provided callback from inside an event handler // for that fake event. If the callback throws, the error is "captured" using // a global event handler. But because the error happens in a different // event loop context, it does not interrupt the normal program flow. // Effectively, this gives us try-catch behavior without actually using // try-catch. Neat! // Check that the browser supports the APIs we need to implement our special // DEV version of invokeGuardedCallback if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { var fakeNode = document.createElement('react'); invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { // If document doesn't exist we know for sure we will crash in this method // when we call document.createEvent(). However this can cause confusing // errors: https://github.com/facebookincubator/create-react-app/issues/3482 // So we preemptively throw with a better message instead. if (!(typeof document !== 'undefined')) { { throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." ); } } var evt = document.createEvent('Event'); var didCall = false; // Keeps track of whether the user-provided callback threw an error. We // set this to true at the beginning, then set it to false right after // calling the function. If the function errors, `didError` will never be // set to false. This strategy works even if the browser is flaky and // fails to call our global error handler, because it doesn't rely on // the error event at all. var didError = true; // Keeps track of the value of window.event so that we can reset it // during the callback to let user code access window.event in the // browsers that support it. var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event // dispatching: https://github.com/facebook/react/issues/13688 var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); function restoreAfterDispatch() { // We immediately remove the callback from event listeners so that // nested `invokeGuardedCallback` calls do not clash. Otherwise, a // nested call would trigger the fake event handlers of any call higher // in the stack. fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the // window.event assignment in both IE <= 10 as they throw an error // "Member not found" in strict mode, and in Firefox which does not // support window.event. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) { window.event = windowEvent; } } // Create an event handler for our fake event. We will synchronously // dispatch our fake event using `dispatchEvent`. Inside the handler, we // call the user-provided callback. var funcArgs = Array.prototype.slice.call(arguments, 3); function callCallback() { didCall = true; restoreAfterDispatch(); func.apply(context, funcArgs); didError = false; } // Create a global error event handler. We use this to capture the value // that was thrown. It's possible that this error handler will fire more // than once; for example, if non-React code also calls `dispatchEvent` // and a handler for that event throws. We should be resilient to most of // those cases. Even if our error event handler fires more than once, the // last error event is always used. If the callback actually does error, // we know that the last error event is the correct one, because it's not // possible for anything else to have happened in between our callback // erroring and the code that follows the `dispatchEvent` call below. If // the callback doesn't error, but the error event was fired, we know to // ignore it because `didError` will be false, as described above. var error; // Use this to track whether the error event is ever called. var didSetError = false; var isCrossOriginError = false; function handleWindowError(event) { error = event.error; didSetError = true; if (error === null && event.colno === 0 && event.lineno === 0) { isCrossOriginError = true; } if (event.defaultPrevented) { // Some other error handler has prevented default. // Browsers silence the error report if this happens. // We'll remember this to later decide whether to log it or not. if (error != null && typeof error === 'object') { try { error._suppressLogging = true; } catch (inner) {// Ignore. } } } } // Create a fake event type. var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers window.addEventListener('error', handleWindowError); fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function // errors, it will trigger our global error handler. evt.initEvent(evtType, false, false); fakeNode.dispatchEvent(evt); if (windowEventDescriptor) { Object.defineProperty(window, 'event', windowEventDescriptor); } if (didCall && didError) { if (!didSetError) { // The callback errored, but the error event never fired. error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.'); } else if (isCrossOriginError) { error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.'); } this.onError(error); } // Remove our event listeners window.removeEventListener('error', handleWindowError); if (!didCall) { // Something went really wrong, and our event was not dispatched. // https://github.com/facebook/react/issues/16734 // https://github.com/facebook/react/issues/16585 // Fall back to the production implementation. restoreAfterDispatch(); return invokeGuardedCallbackProd.apply(this, arguments); } }; } } var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; var hasError = false; var caughtError = null; // Used by event system to capture/rethrow the first error. var hasRethrowError = false; var rethrowError = null; var reporter = { onError: function (error) { hasError = true; caughtError = error; } }; /** * Call a function while guarding against errors that happens within it. * Returns an error if it throws, otherwise null. * * In production, this is implemented using a try-catch. The reason we don't * use a try-catch directly is so that we can swap out a different * implementation in DEV mode. * * @param {String} name of the guard to use for logging or debugging * @param {Function} func The function to invoke * @param {*} context The context to use when calling the function * @param {...*} args Arguments for function */ function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { hasError = false; caughtError = null; invokeGuardedCallbackImpl$1.apply(reporter, arguments); } /** * Same as invokeGuardedCallback, but instead of returning an error, it stores * it in a global so it can be rethrown by `rethrowCaughtError` later. * TODO: See if caughtError and rethrowError can be unified. * * @param {String} name of the guard to use for logging or debugging * @param {Function} func The function to invoke * @param {*} context The context to use when calling the function * @param {...*} args Arguments for function */ function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { invokeGuardedCallback.apply(this, arguments); if (hasError) { var error = clearCaughtError(); if (!hasRethrowError) { hasRethrowError = true; rethrowError = error; } } } /** * During execution of guarded functions we will capture the first error which * we will rethrow to be handled by the top level error handler. */ function rethrowCaughtError() { if (hasRethrowError) { var error = rethrowError; hasRethrowError = false; rethrowError = null; throw error; } } function hasCaughtError() { return hasError; } function clearCaughtError() { if (hasError) { var error = caughtError; hasError = false; caughtError = null; return error; } else { { { throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." ); } } } } /** * `ReactInstanceMap` maintains a mapping from a public facing stateful * instance (key) and the internal representation (value). This allows public * methods to accept the user facing instance as an argument and map them back * to internal methods. * * Note that this module is currently shared and assumed to be stateless. * If this becomes an actual Map, that will break. */ function get(key) { return key._reactInternals; } function has(key) { return key._reactInternals !== undefined; } function set(key, value) { key._reactInternals = value; } // Don't change these two values. They're used by React Dev Tools. var NoFlags = /* */ 0; var PerformedWork = /* */ 1; // You can change the rest (and add more). var Placement = /* */ 2; var Update = /* */ 4; var PlacementAndUpdate = /* */ 6; var Deletion = /* */ 8; var ContentReset = /* */ 16; var Callback = /* */ 32; var DidCapture = /* */ 64; var Ref = /* */ 128; var Snapshot = /* */ 256; var Passive = /* */ 512; // TODO (effects) Remove this bit once the new reconciler is synced to the old. var PassiveUnmountPendingDev = /* */ 8192; var Hydrating = /* */ 1024; var HydratingAndUpdate = /* */ 1028; // Passive & Update & Callback & Ref & Snapshot var LifecycleEffectMask = /* */ 932; // Union of all host effects var HostEffectMask = /* */ 2047; // These are not really side effects, but we still reuse this field. var Incomplete = /* */ 2048; var ShouldCapture = /* */ 4096; var ForceUpdateForLegacySuspense = /* */ 16384; // Static tags describe aspects of a fiber that are not specific to a render, var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; if (!fiber.alternate) { // If there is no alternate, this might be a new tree that isn't inserted // yet. If it is, then it will have a pending insertion effect on it. var nextNode = node; do { node = nextNode; if ((node.flags & (Placement | Hydrating)) !== NoFlags) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. nearestMounted = node.return; } nextNode = node.return; } while (nextNode); } else { while (node.return) { node = node.return; } } if (node.tag === HostRoot) { // TODO: Check if this was a nested HostRoot when used with // renderContainerIntoSubtree. return nearestMounted; } // If we didn't hit the root, that means that we're in an disconnected tree // that has been unmounted. return null; } function getSuspenseInstanceFromFiber(fiber) { if (fiber.tag === SuspenseComponent) { var suspenseState = fiber.memoizedState; if (suspenseState === null) { var current = fiber.alternate; if (current !== null) { suspenseState = current.memoizedState; } } if (suspenseState !== null) { return suspenseState.dehydrated; } } return null; } function getContainerFromFiber(fiber) { return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null; } function isFiberMounted(fiber) { return getNearestMountedFiber(fiber) === fiber; } function isMounted(component) { { var owner = ReactCurrentOwner.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; var instance = ownerFiber.stateNode; if (!instance._warnedAboutRefsInRender) { error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component'); } instance._warnedAboutRefsInRender = true; } } var fiber = get(component); if (!fiber) { return false; } return getNearestMountedFiber(fiber) === fiber; } function assertIsMounted(fiber) { if (!(getNearestMountedFiber(fiber) === fiber)) { { throw Error( "Unable to find node on an unmounted component." ); } } } function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { // If there is no alternate, then we only need to check if it is mounted. var nearestMounted = getNearestMountedFiber(fiber); if (!(nearestMounted !== null)) { { throw Error( "Unable to find node on an unmounted component." ); } } if (nearestMounted !== fiber) { return null; } return fiber; } // If we have two possible branches, we'll walk backwards up to the root // to see what path the root points to. On the way we may hit one of the // special cases and we'll deal with them. var a = fiber; var b = alternate; while (true) { var parentA = a.return; if (parentA === null) { // We're at the root. break; } var parentB = parentA.alternate; if (parentB === null) { // There is no alternate. This is an unusual case. Currently, it only // happens when a Suspense component is hidden. An extra fragment fiber // is inserted in between the Suspense fiber and its children. Skip // over this extra fragment fiber and proceed to the next parent. var nextParent = parentA.return; if (nextParent !== null) { a = b = nextParent; continue; } // If there's no parent, we're at the root. break; } // If both copies of the parent fiber point to the same child, we can // assume that the child is current. This happens when we bailout on low // priority: the bailed out fiber's child reuses the current child. if (parentA.child === parentB.child) { var child = parentA.child; while (child) { if (child === a) { // We've determined that A is the current branch. assertIsMounted(parentA); return fiber; } if (child === b) { // We've determined that B is the current branch. assertIsMounted(parentA); return alternate; } child = child.sibling; } // We should never have an alternate for any mounting node. So the only // way this could possibly happen is if this was unmounted, if at all. { { throw Error( "Unable to find node on an unmounted component." ); } } } if (a.return !== b.return) { // The return pointer of A and the return pointer of B point to different // fibers. We assume that return pointers never criss-cross, so A must // belong to the child set of A.return, and B must belong to the child // set of B.return. a = parentA; b = parentB; } else { // The return pointers point to the same fiber. We'll have to use the // default, slow path: scan the child sets of each parent alternate to see // which child belongs to which set. // // Search parent A's child set var didFindChild = false; var _child = parentA.child; while (_child) { if (_child === a) { didFindChild = true; a = parentA; b = parentB; break; } if (_child === b) { didFindChild = true; b = parentA; a = parentB; break; } _child = _child.sibling; } if (!didFindChild) { // Search parent B's child set _child = parentB.child; while (_child) { if (_child === a) { didFindChild = true; a = parentB; b = parentA; break; } if (_child === b) { didFindChild = true; b = parentB; a = parentA; break; } _child = _child.sibling; } if (!didFindChild) { { throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." ); } } } } if (!(a.alternate === b)) { { throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." ); } } } // If the root is not a host container, we're in a disconnected tree. I.e. // unmounted. if (!(a.tag === HostRoot)) { { throw Error( "Unable to find node on an unmounted component." ); } } if (a.stateNode.current === a) { // We've determined that A is the current branch. return fiber; } // Otherwise B has to be current branch. return alternate; } function findCurrentHostFiber(parent) { var currentParent = findCurrentFiberUsingSlowPath(parent); if (!currentParent) { return null; } // Next we'll drill down this component to find the first HostComponent/Text. var node = currentParent; while (true) { if (node.tag === HostComponent || node.tag === HostText) { return node; } else if (node.child) { node.child.return = node; node = node.child; continue; } if (node === currentParent) { return null; } while (!node.sibling) { if (!node.return || node.return === currentParent) { return null; } node = node.return; } node.sibling.return = node.return; node = node.sibling; } // Flow needs the return null here, but ESLint complains about it. // eslint-disable-next-line no-unreachable return null; } function findCurrentHostFiberWithNoPortals(parent) { var currentParent = findCurrentFiberUsingSlowPath(parent); if (!currentParent) { return null; } // Next we'll drill down this component to find the first HostComponent/Text. var node = currentParent; while (true) { if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) { return node; } else if (node.child && node.tag !== HostPortal) { node.child.return = node; node = node.child; continue; } if (node === currentParent) { return null; } while (!node.sibling) { if (!node.return || node.return === currentParent) { return null; } node = node.return; } node.sibling.return = node.return; node = node.sibling; } // Flow needs the return null here, but ESLint complains about it. // eslint-disable-next-line no-unreachable return null; } function doesFiberContain(parentFiber, childFiber) { var node = childFiber; var parentFiberAlternate = parentFiber.alternate; while (node !== null) { if (node === parentFiber || node === parentFiberAlternate) { return true; } node = node.return; } return false; } var attemptUserBlockingHydration; function setAttemptUserBlockingHydration(fn) { attemptUserBlockingHydration = fn; } var attemptContinuousHydration; function setAttemptContinuousHydration(fn) { attemptContinuousHydration = fn; } var attemptHydrationAtCurrentPriority; function setAttemptHydrationAtCurrentPriority(fn) { attemptHydrationAtCurrentPriority = fn; } var attemptHydrationAtPriority; function setAttemptHydrationAtPriority(fn) { attemptHydrationAtPriority = fn; } // TODO: Upgrade this definition once we're on a newer version of Flow that var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. // if the last target was dehydrated. var queuedFocus = null; var queuedDrag = null; var queuedMouse = null; // For pointer events there can be one latest event per pointerId. var queuedPointers = new Map(); var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too. var queuedExplicitHydrationTargets = []; function hasQueuedDiscreteEvents() { return queuedDiscreteEvents.length > 0; } var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase 'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit']; function isReplayableDiscreteEvent(eventType) { return discreteReplayableEvents.indexOf(eventType) > -1; } function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { return { blockedOn: blockedOn, domEventName: domEventName, eventSystemFlags: eventSystemFlags | IS_REPLAYED, nativeEvent: nativeEvent, targetContainers: [targetContainer] }; } function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); queuedDiscreteEvents.push(queuedEvent); } // Resets the replaying for this type of continuous event to no event. function clearIfContinuousEvent(domEventName, nativeEvent) { switch (domEventName) { case 'focusin': case 'focusout': queuedFocus = null; break; case 'dragenter': case 'dragleave': queuedDrag = null; break; case 'mouseover': case 'mouseout': queuedMouse = null; break; case 'pointerover': case 'pointerout': { var pointerId = nativeEvent.pointerId; queuedPointers.delete(pointerId); break; } case 'gotpointercapture': case 'lostpointercapture': { var _pointerId = nativeEvent.pointerId; queuedPointerCaptures.delete(_pointerId); break; } } } function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) { var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); if (blockedOn !== null) { var _fiber2 = getInstanceFromNode(blockedOn); if (_fiber2 !== null) { // Attempt to increase the priority of this target. attemptContinuousHydration(_fiber2); } } return queuedEvent; } // If we have already queued this exact event, then it's because // the different event systems have different DOM event listeners. // We can accumulate the flags, and the targetContainers, and // store a single event to be replayed. existingQueuedEvent.eventSystemFlags |= eventSystemFlags; var targetContainers = existingQueuedEvent.targetContainers; if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) { targetContainers.push(targetContainer); } return existingQueuedEvent; } function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { // These set relatedTarget to null because the replayed event will be treated as if we // moved from outside the window (no target) onto the target once it hydrates. // Instead of mutating we could clone the event. switch (domEventName) { case 'focusin': { var focusEvent = nativeEvent; queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent); return true; } case 'dragenter': { var dragEvent = nativeEvent; queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent); return true; } case 'mouseover': { var mouseEvent = nativeEvent; queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent); return true; } case 'pointerover': { var pointerEvent = nativeEvent; var pointerId = pointerEvent.pointerId; queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent)); return true; } case 'gotpointercapture': { var _pointerEvent = nativeEvent; var _pointerId2 = _pointerEvent.pointerId; queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent)); return true; } } return false; } // Check if this target is unblocked. Returns true if it's unblocked. function attemptExplicitHydrationTarget(queuedTarget) { // TODO: This function shares a lot of logic with attemptToDispatchEvent. // Try to unify them. It's a bit tricky since it would require two return // values. var targetInst = getClosestInstanceFromNode(queuedTarget.target); if (targetInst !== null) { var nearestMounted = getNearestMountedFiber(targetInst); if (nearestMounted !== null) { var tag = nearestMounted.tag; if (tag === SuspenseComponent) { var instance = getSuspenseInstanceFromFiber(nearestMounted); if (instance !== null) { // We're blocked on hydrating this boundary. // Increase its priority. queuedTarget.blockedOn = instance; attemptHydrationAtPriority(queuedTarget.lanePriority, function () { Scheduler.unstable_runWithPriority(queuedTarget.priority, function () { attemptHydrationAtCurrentPriority(nearestMounted); }); }); return; } } else if (tag === HostRoot) { var root = nearestMounted.stateNode; if (root.hydrate) { queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of // a root other than sync. return; } } } } queuedTarget.blockedOn = null; } function attemptReplayContinuousQueuedEvent(queuedEvent) { if (queuedEvent.blockedOn !== null) { return false; } var targetContainers = queuedEvent.targetContainers; while (targetContainers.length > 0) { var targetContainer = targetContainers[0]; var nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent); if (nextBlockedOn !== null) { // We're still blocked. Try again later. var _fiber3 = getInstanceFromNode(nextBlockedOn); if (_fiber3 !== null) { attemptContinuousHydration(_fiber3); } queuedEvent.blockedOn = nextBlockedOn; return false; } // This target container was successfully dispatched. Try the next. targetContainers.shift(); } return true; } function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { if (attemptReplayContinuousQueuedEvent(queuedEvent)) { map.delete(key); } } function replayUnblockedEvents() { hasScheduledReplayAttempt = false; // First replay discrete events. while (queuedDiscreteEvents.length > 0) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (nextDiscreteEvent.blockedOn !== null) { // We're still blocked. // Increase the priority of this boundary to unblock // the next discrete event. var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn); if (_fiber4 !== null) { attemptUserBlockingHydration(_fiber4); } break; } var targetContainers = nextDiscreteEvent.targetContainers; while (targetContainers.length > 0) { var targetContainer = targetContainers[0]; var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent); if (nextBlockedOn !== null) { // We're still blocked. Try again later. nextDiscreteEvent.blockedOn = nextBlockedOn; break; } // This target container was successfully dispatched. Try the next. targetContainers.shift(); } if (nextDiscreteEvent.blockedOn === null) { // We've successfully replayed the first event. Let's try the next one. queuedDiscreteEvents.shift(); } } // Next replay any continuous events. if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) { queuedFocus = null; } if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) { queuedDrag = null; } if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) { queuedMouse = null; } queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); } function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { if (queuedEvent.blockedOn === unblocked) { queuedEvent.blockedOn = null; if (!hasScheduledReplayAttempt) { hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are // now unblocked. This first might not actually be unblocked yet. // We could check it early to avoid scheduling an unnecessary callback. Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents); } } } function retryIfBlockedOn(unblocked) { // Mark anything that was blocked on this as no longer blocked // and eligible for a replay. if (queuedDiscreteEvents.length > 0) { scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's // worth it because we expect very few discrete events to queue up and once // we are actually fully unblocked it will be fast to replay them. for (var i = 1; i < queuedDiscreteEvents.length; i++) { var queuedEvent = queuedDiscreteEvents[i]; if (queuedEvent.blockedOn === unblocked) { queuedEvent.blockedOn = null; } } } if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } if (queuedDrag !== null) { scheduleCallbackIfUnblocked(queuedDrag, unblocked); } if (queuedMouse !== null) { scheduleCallbackIfUnblocked(queuedMouse, unblocked); } var unblock = function (queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); }; queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { var queuedTarget = queuedExplicitHydrationTargets[_i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; } } while (queuedExplicitHydrationTargets.length > 0) { var nextExplicitTarget = queuedExplicitHydrationTargets[0]; if (nextExplicitTarget.blockedOn !== null) { // We're still blocked. break; } else { attemptExplicitHydrationTarget(nextExplicitTarget); if (nextExplicitTarget.blockedOn === null) { // We're unblocked. queuedExplicitHydrationTargets.shift(); } } } } var DiscreteEvent = 0; var UserBlockingEvent = 1; var ContinuousEvent = 2; /** * Generate a mapping of standard vendor prefixes using the defined style property and event name. * * @param {string} styleProp * @param {string} eventName * @returns {object} */ function makePrefixMap(styleProp, eventName) { var prefixes = {}; prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); prefixes['Webkit' + styleProp] = 'webkit' + eventName; prefixes['Moz' + styleProp] = 'moz' + eventName; return prefixes; } /** * A list of event names to a configurable list of vendor prefixes. */ var vendorPrefixes = { animationend: makePrefixMap('Animation', 'AnimationEnd'), animationiteration: makePrefixMap('Animation', 'AnimationIteration'), animationstart: makePrefixMap('Animation', 'AnimationStart'), transitionend: makePrefixMap('Transition', 'TransitionEnd') }; /** * Event names that have already been detected and prefixed (if applicable). */ var prefixedEventNames = {}; /** * Element to check for prefixes on. */ var style = {}; /** * Bootstrap if a DOM exists. */ if (canUseDOM) { style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, // the un-prefixed "animation" and "transition" properties are defined on the // style object but the events that fire will still be prefixed, so we need // to check if the un-prefixed events are usable, and if not remove them from the map. if (!('AnimationEvent' in window)) { delete vendorPrefixes.animationend.animation; delete vendorPrefixes.animationiteration.animation; delete vendorPrefixes.animationstart.animation; } // Same as above if (!('TransitionEvent' in window)) { delete vendorPrefixes.transitionend.transition; } } /** * Attempts to determine the correct vendor prefixed event name. * * @param {string} eventName * @returns {string} */ function getVendorPrefixedEventName(eventName) { if (prefixedEventNames[eventName]) { return prefixedEventNames[eventName]; } else if (!vendorPrefixes[eventName]) { return eventName; } var prefixMap = vendorPrefixes[eventName]; for (var styleProp in prefixMap) { if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { return prefixedEventNames[eventName] = prefixMap[styleProp]; } } return eventName; } var ANIMATION_END = getVendorPrefixedEventName('animationend'); var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration'); var ANIMATION_START = getVendorPrefixedEventName('animationstart'); var TRANSITION_END = getVendorPrefixedEventName('transitionend'); var topLevelEventsToReactNames = new Map(); var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use // the code required to apply the same logic for event prioritization and that of the // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code // duplication (for which there would be quite a bit). For the events that are not needed // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an // array of top level events. // Lastly, we ignore prettier so we can keep the formatting sane. // prettier-ignore var discreteEventPairsForSimpleEventPlugin = ['cancel', 'cancel', 'click', 'click', 'close', 'close', 'contextmenu', 'contextMenu', 'copy', 'copy', 'cut', 'cut', 'auxclick', 'auxClick', 'dblclick', 'doubleClick', // Careful! 'dragend', 'dragEnd', 'dragstart', 'dragStart', 'drop', 'drop', 'focusin', 'focus', // Careful! 'focusout', 'blur', // Careful! 'input', 'input', 'invalid', 'invalid', 'keydown', 'keyDown', 'keypress', 'keyPress', 'keyup', 'keyUp', 'mousedown', 'mouseDown', 'mouseup', 'mouseUp', 'paste', 'paste', 'pause', 'pause', 'play', 'play', 'pointercancel', 'pointerCancel', 'pointerdown', 'pointerDown', 'pointerup', 'pointerUp', 'ratechange', 'rateChange', 'reset', 'reset', 'seeked', 'seeked', 'submit', 'submit', 'touchcancel', 'touchCancel', 'touchend', 'touchEnd', 'touchstart', 'touchStart', 'volumechange', 'volumeChange']; var otherDiscreteEvents = ['change', 'selectionchange', 'textInput', 'compositionstart', 'compositionend', 'compositionupdate']; var userBlockingPairsForSimpleEventPlugin = ['drag', 'drag', 'dragenter', 'dragEnter', 'dragexit', 'dragExit', 'dragleave', 'dragLeave', 'dragover', 'dragOver', 'mousemove', 'mouseMove', 'mouseout', 'mouseOut', 'mouseover', 'mouseOver', 'pointermove', 'pointerMove', 'pointerout', 'pointerOut', 'pointerover', 'pointerOver', 'scroll', 'scroll', 'toggle', 'toggle', 'touchmove', 'touchMove', 'wheel', 'wheel']; // prettier-ignore var continuousPairsForSimpleEventPlugin = ['abort', 'abort', ANIMATION_END, 'animationEnd', ANIMATION_ITERATION, 'animationIteration', ANIMATION_START, 'animationStart', 'canplay', 'canPlay', 'canplaythrough', 'canPlayThrough', 'durationchange', 'durationChange', 'emptied', 'emptied', 'encrypted', 'encrypted', 'ended', 'ended', 'error', 'error', 'gotpointercapture', 'gotPointerCapture', 'load', 'load', 'loadeddata', 'loadedData', 'loadedmetadata', 'loadedMetadata', 'loadstart', 'loadStart', 'lostpointercapture', 'lostPointerCapture', 'playing', 'playing', 'progress', 'progress', 'seeking', 'seeking', 'stalled', 'stalled', 'suspend', 'suspend', 'timeupdate', 'timeUpdate', TRANSITION_END, 'transitionEnd', 'waiting', 'waiting']; /** * Turns * ['abort', ...] * * into * * topLevelEventsToReactNames = new Map([ * ['abort', 'onAbort'], * ]); * * and registers them. */ function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) { // As the event types are in pairs of two, we need to iterate // through in twos. The events are in pairs of two to save code // and improve init perf of processing this array, as it will // result in far fewer object allocations and property accesses // if we only use three arrays to process all the categories of // instead of tuples. for (var i = 0; i < eventTypes.length; i += 2) { var topEvent = eventTypes[i]; var event = eventTypes[i + 1]; var capitalizedEvent = event[0].toUpperCase() + event.slice(1); var reactName = 'on' + capitalizedEvent; eventPriorities.set(topEvent, priority); topLevelEventsToReactNames.set(topEvent, reactName); registerTwoPhaseEvent(reactName, [topEvent]); } } function setEventPriorities(eventTypes, priority) { for (var i = 0; i < eventTypes.length; i++) { eventPriorities.set(eventTypes[i], priority); } } function getEventPriorityForPluginSystem(domEventName) { var priority = eventPriorities.get(domEventName); // Default to a ContinuousEvent. Note: we might // want to warn if we can't detect the priority // for the event. return priority === undefined ? ContinuousEvent : priority; } function registerSimpleEvents() { registerSimplePluginEventsAndSetTheirPriorities(discreteEventPairsForSimpleEventPlugin, DiscreteEvent); registerSimplePluginEventsAndSetTheirPriorities(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent); registerSimplePluginEventsAndSetTheirPriorities(continuousPairsForSimpleEventPlugin, ContinuousEvent); setEventPriorities(otherDiscreteEvents, DiscreteEvent); } var Scheduler_now = Scheduler.unstable_now; { // Provide explicit error message when production+profiling bundle of e.g. // react-dom is used with production (non-profiling) bundle of // scheduler/tracing if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) { { throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" ); } } } // ascending numbers so we can compare them like numbers. They start at 90 to // avoid clashing with Scheduler's priorities. var ImmediatePriority = 99; var UserBlockingPriority = 98; var NormalPriority = 97; var LowPriority = 96; var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only. var NoPriority = 90; var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly. var SyncLanePriority = 15; var SyncBatchedLanePriority = 14; var InputDiscreteHydrationLanePriority = 13; var InputDiscreteLanePriority = 12; var InputContinuousHydrationLanePriority = 11; var InputContinuousLanePriority = 10; var DefaultHydrationLanePriority = 9; var DefaultLanePriority = 8; var TransitionHydrationPriority = 7; var TransitionPriority = 6; var RetryLanePriority = 5; var SelectiveHydrationLanePriority = 4; var IdleHydrationLanePriority = 3; var IdleLanePriority = 2; var OffscreenLanePriority = 1; var NoLanePriority = 0; var TotalLanes = 31; var NoLanes = /* */ 0; var NoLane = /* */ 0; var SyncLane = /* */ 1; var SyncBatchedLane = /* */ 2; var InputDiscreteHydrationLane = /* */ 4; var InputDiscreteLanes = /* */ 24; var InputContinuousHydrationLane = /* */ 32; var InputContinuousLanes = /* */ 192; var DefaultHydrationLane = /* */ 256; var DefaultLanes = /* */ 3584; var TransitionHydrationLane = /* */ 4096; var TransitionLanes = /* */ 4186112; var RetryLanes = /* */ 62914560; var SomeRetryLane = /* */ 33554432; var SelectiveHydrationLane = /* */ 67108864; var NonIdleLanes = /* */ 134217727; var IdleHydrationLane = /* */ 134217728; var IdleLanes = /* */ 805306368; var OffscreenLane = /* */ 1073741824; var NoTimestamp = -1; function setCurrentUpdateLanePriority(newLanePriority) { } // "Registers" used to "return" multiple values // Used by getHighestPriorityLanes and getNextLanes: var return_highestLanePriority = DefaultLanePriority; function getHighestPriorityLanes(lanes) { if ((SyncLane & lanes) !== NoLanes) { return_highestLanePriority = SyncLanePriority; return SyncLane; } if ((SyncBatchedLane & lanes) !== NoLanes) { return_highestLanePriority = SyncBatchedLanePriority; return SyncBatchedLane; } if ((InputDiscreteHydrationLane & lanes) !== NoLanes) { return_highestLanePriority = InputDiscreteHydrationLanePriority; return InputDiscreteHydrationLane; } var inputDiscreteLanes = InputDiscreteLanes & lanes; if (inputDiscreteLanes !== NoLanes) { return_highestLanePriority = InputDiscreteLanePriority; return inputDiscreteLanes; } if ((lanes & InputContinuousHydrationLane) !== NoLanes) { return_highestLanePriority = InputContinuousHydrationLanePriority; return InputContinuousHydrationLane; } var inputContinuousLanes = InputContinuousLanes & lanes; if (inputContinuousLanes !== NoLanes) { return_highestLanePriority = InputContinuousLanePriority; return inputContinuousLanes; } if ((lanes & DefaultHydrationLane) !== NoLanes) { return_highestLanePriority = DefaultHydrationLanePriority; return DefaultHydrationLane; } var defaultLanes = DefaultLanes & lanes; if (defaultLanes !== NoLanes) { return_highestLanePriority = DefaultLanePriority; return defaultLanes; } if ((lanes & TransitionHydrationLane) !== NoLanes) { return_highestLanePriority = TransitionHydrationPriority; return TransitionHydrationLane; } var transitionLanes = TransitionLanes & lanes; if (transitionLanes !== NoLanes) { return_highestLanePriority = TransitionPriority; return transitionLanes; } var retryLanes = RetryLanes & lanes; if (retryLanes !== NoLanes) { return_highestLanePriority = RetryLanePriority; return retryLanes; } if (lanes & SelectiveHydrationLane) { return_highestLanePriority = SelectiveHydrationLanePriority; return SelectiveHydrationLane; } if ((lanes & IdleHydrationLane) !== NoLanes) { return_highestLanePriority = IdleHydrationLanePriority; return IdleHydrationLane; } var idleLanes = IdleLanes & lanes; if (idleLanes !== NoLanes) { return_highestLanePriority = IdleLanePriority; return idleLanes; } if ((OffscreenLane & lanes) !== NoLanes) { return_highestLanePriority = OffscreenLanePriority; return OffscreenLane; } { error('Should have found matching lanes. This is a bug in React.'); } // This shouldn't be reachable, but as a fallback, return the entire bitmask. return_highestLanePriority = DefaultLanePriority; return lanes; } function schedulerPriorityToLanePriority(schedulerPriorityLevel) { switch (schedulerPriorityLevel) { case ImmediatePriority: return SyncLanePriority; case UserBlockingPriority: return InputContinuousLanePriority; case NormalPriority: case LowPriority: // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration. return DefaultLanePriority; case IdlePriority: return IdleLanePriority; default: return NoLanePriority; } } function lanePriorityToSchedulerPriority(lanePriority) { switch (lanePriority) { case SyncLanePriority: case SyncBatchedLanePriority: return ImmediatePriority; case InputDiscreteHydrationLanePriority: case InputDiscreteLanePriority: case InputContinuousHydrationLanePriority: case InputContinuousLanePriority: return UserBlockingPriority; case DefaultHydrationLanePriority: case DefaultLanePriority: case TransitionHydrationPriority: case TransitionPriority: case SelectiveHydrationLanePriority: case RetryLanePriority: return NormalPriority; case IdleHydrationLanePriority: case IdleLanePriority: case OffscreenLanePriority: return IdlePriority; case NoLanePriority: return NoPriority; default: { { throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." ); } } } } function getNextLanes(root, wipLanes) { // Early bailout if there's no pending work left. var pendingLanes = root.pendingLanes; if (pendingLanes === NoLanes) { return_highestLanePriority = NoLanePriority; return NoLanes; } var nextLanes = NoLanes; var nextLanePriority = NoLanePriority; var expiredLanes = root.expiredLanes; var suspendedLanes = root.suspendedLanes; var pingedLanes = root.pingedLanes; // Check if any work has expired. if (expiredLanes !== NoLanes) { nextLanes = expiredLanes; nextLanePriority = return_highestLanePriority = SyncLanePriority; } else { // Do not work on any idle work until all the non-idle work has finished, // even if the work is suspended. var nonIdlePendingLanes = pendingLanes & NonIdleLanes; if (nonIdlePendingLanes !== NoLanes) { var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; if (nonIdleUnblockedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); nextLanePriority = return_highestLanePriority; } else { var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; if (nonIdlePingedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); nextLanePriority = return_highestLanePriority; } } } else { // The only remaining work is Idle. var unblockedLanes = pendingLanes & ~suspendedLanes; if (unblockedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(unblockedLanes); nextLanePriority = return_highestLanePriority; } else { if (pingedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(pingedLanes); nextLanePriority = return_highestLanePriority; } } } } if (nextLanes === NoLanes) { // This should only be reachable if we're suspended // TODO: Consider warning in this path if a fallback timer is not scheduled. return NoLanes; } // If there are higher priority lanes, we'll include them even if they // are suspended. nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes); // If we're already in the middle of a render, switching lanes will interrupt // it and we'll lose our progress. We should only do this if the new lanes are // higher priority. if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't // bother waiting until the root is complete. (wipLanes & suspendedLanes) === NoLanes) { getHighestPriorityLanes(wipLanes); var wipLanePriority = return_highestLanePriority; if (nextLanePriority <= wipLanePriority) { return wipLanes; } else { return_highestLanePriority = nextLanePriority; } } // Check for entangled lanes and add them to the batch. // // A lane is said to be entangled with another when it's not allowed to render // in a batch that does not also include the other lane. Typically we do this // when multiple updates have the same source, and we only want to respond to // the most recent event from that source. // // Note that we apply entanglements *after* checking for partial work above. // This means that if a lane is entangled during an interleaved event while // it's already rendering, we won't interrupt it. This is intentional, since // entanglement is usually "best effort": we'll try our best to render the // lanes in the same batch, but it's not worth throwing out partially // completed work in order to do it. // // For those exceptions where entanglement is semantically important, like // useMutableSource, we should ensure that there is no partial work at the // time we apply the entanglement. var entangledLanes = root.entangledLanes; if (entangledLanes !== NoLanes) { var entanglements = root.entanglements; var lanes = nextLanes & entangledLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; nextLanes |= entanglements[index]; lanes &= ~lane; } } return nextLanes; } function getMostRecentEventTime(root, lanes) { var eventTimes = root.eventTimes; var mostRecentEventTime = NoTimestamp; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; var eventTime = eventTimes[index]; if (eventTime > mostRecentEventTime) { mostRecentEventTime = eventTime; } lanes &= ~lane; } return mostRecentEventTime; } function computeExpirationTime(lane, currentTime) { // TODO: Expiration heuristic is constant per lane, so could use a map. getHighestPriorityLanes(lane); var priority = return_highestLanePriority; if (priority >= InputContinuousLanePriority) { // User interactions should expire slightly more quickly. // // NOTE: This is set to the corresponding constant as in Scheduler.js. When // we made it larger, a product metric in www regressed, suggesting there's // a user interaction that's being starved by a series of synchronous // updates. If that theory is correct, the proper solution is to fix the // starvation. However, this scenario supports the idea that expiration // times are an important safeguard when starvation does happen. // // Also note that, in the case of user input specifically, this will soon no // longer be an issue because we plan to make user input synchronous by // default (until you enter `startTransition`, of course.) // // If weren't planning to make these updates synchronous soon anyway, I // would probably make this number a configurable parameter. return currentTime + 250; } else if (priority >= TransitionPriority) { return currentTime + 5000; } else { // Anything idle priority or lower should never expire. return NoTimestamp; } } function markStarvedLanesAsExpired(root, currentTime) { // TODO: This gets called every time we yield. We can optimize by storing // the earliest expiration time on the root. Then use that to quickly bail out // of this function. var pendingLanes = root.pendingLanes; var suspendedLanes = root.suspendedLanes; var pingedLanes = root.pingedLanes; var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their // expiration time. If so, we'll assume the update is being starved and mark // it as expired to force it to finish. var lanes = pendingLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; var expirationTime = expirationTimes[index]; if (expirationTime === NoTimestamp) { // Found a pending lane with no expiration time. If it's not suspended, or // if it's pinged, assume it's CPU-bound. Compute a new expiration time // using the current time. if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { // Assumes timestamps are monotonically increasing. expirationTimes[index] = computeExpirationTime(lane, currentTime); } } else if (expirationTime <= currentTime) { // This lane expired root.expiredLanes |= lane; } lanes &= ~lane; } } // This returns the highest priority pending lanes regardless of whether they function getLanesToRetrySynchronouslyOnError(root) { var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; if (everythingButOffscreen !== NoLanes) { return everythingButOffscreen; } if (everythingButOffscreen & OffscreenLane) { return OffscreenLane; } return NoLanes; } function returnNextLanesPriority() { return return_highestLanePriority; } function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyTransitions(lanes) { return (lanes & TransitionLanes) === lanes; } // To ensure consistency across multiple updates in the same event, this should // be a pure function, so that it always returns the same lane for given inputs. function findUpdateLane(lanePriority, wipLanes) { switch (lanePriority) { case NoLanePriority: break; case SyncLanePriority: return SyncLane; case SyncBatchedLanePriority: return SyncBatchedLane; case InputDiscreteLanePriority: { var _lane = pickArbitraryLane(InputDiscreteLanes & ~wipLanes); if (_lane === NoLane) { // Shift to the next priority level return findUpdateLane(InputContinuousLanePriority, wipLanes); } return _lane; } case InputContinuousLanePriority: { var _lane2 = pickArbitraryLane(InputContinuousLanes & ~wipLanes); if (_lane2 === NoLane) { // Shift to the next priority level return findUpdateLane(DefaultLanePriority, wipLanes); } return _lane2; } case DefaultLanePriority: { var _lane3 = pickArbitraryLane(DefaultLanes & ~wipLanes); if (_lane3 === NoLane) { // If all the default lanes are already being worked on, look for a // lane in the transition range. _lane3 = pickArbitraryLane(TransitionLanes & ~wipLanes); if (_lane3 === NoLane) { // All the transition lanes are taken, too. This should be very // rare, but as a last resort, pick a default lane. This will have // the effect of interrupting the current work-in-progress render. _lane3 = pickArbitraryLane(DefaultLanes); } } return _lane3; } case TransitionPriority: // Should be handled by findTransitionLane instead case RetryLanePriority: // Should be handled by findRetryLane instead break; case IdleLanePriority: var lane = pickArbitraryLane(IdleLanes & ~wipLanes); if (lane === NoLane) { lane = pickArbitraryLane(IdleLanes); } return lane; } { { throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." ); } } } // To ensure consistency across multiple updates in the same event, this should // be pure function, so that it always returns the same lane for given inputs. function findTransitionLane(wipLanes, pendingLanes) { // First look for lanes that are completely unclaimed, i.e. have no // pending work. var lane = pickArbitraryLane(TransitionLanes & ~pendingLanes); if (lane === NoLane) { // If all lanes have pending work, look for a lane that isn't currently // being worked on. lane = pickArbitraryLane(TransitionLanes & ~wipLanes); if (lane === NoLane) { // If everything is being worked on, pick any lane. This has the // effect of interrupting the current work-in-progress. lane = pickArbitraryLane(TransitionLanes); } } return lane; } // To ensure consistency across multiple updates in the same event, this should // be pure function, so that it always returns the same lane for given inputs. function findRetryLane(wipLanes) { // This is a fork of `findUpdateLane` designed specifically for Suspense // "retries" — a special update that attempts to flip a Suspense boundary // from its placeholder state to its primary/resolved state. var lane = pickArbitraryLane(RetryLanes & ~wipLanes); if (lane === NoLane) { lane = pickArbitraryLane(RetryLanes); } return lane; } function getHighestPriorityLane(lanes) { return lanes & -lanes; } function getLowestPriorityLane(lanes) { // This finds the most significant non-zero bit. var index = 31 - clz32(lanes); return index < 0 ? NoLanes : 1 << index; } function getEqualOrHigherPriorityLanes(lanes) { return (getLowestPriorityLane(lanes) << 1) - 1; } function pickArbitraryLane(lanes) { // This wrapper function gets inlined. Only exists so to communicate that it // doesn't matter which bit is selected; you can pick any bit without // affecting the algorithms where its used. Here I'm using // getHighestPriorityLane because it requires the fewest operations. return getHighestPriorityLane(lanes); } function pickArbitraryLaneIndex(lanes) { return 31 - clz32(lanes); } function laneToIndex(lane) { return pickArbitraryLaneIndex(lane); } function includesSomeLane(a, b) { return (a & b) !== NoLanes; } function isSubsetOfLanes(set, subset) { return (set & subset) === subset; } function mergeLanes(a, b) { return a | b; } function removeLanes(set, subset) { return set & ~subset; } // Seems redundant, but it changes the type from a single lane (used for // updates) to a group of lanes (used for flushing work). function laneToLanes(lane) { return lane; } function higherPriorityLane(a, b) { // This works because the bit ranges decrease in priority as you go left. return a !== NoLane && a < b ? a : b; } function createLaneMap(initial) { // Intentionally pushing one by one. // https://v8.dev/blog/elements-kinds#avoid-creating-holes var laneMap = []; for (var i = 0; i < TotalLanes; i++) { laneMap.push(initial); } return laneMap; } function markRootUpdated(root, updateLane, eventTime) { root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But // it's not practical to try every single possible combination. We need a // heuristic to decide which lanes to attempt to render, and in which batches. // For now, we use the same heuristic as in the old ExpirationTimes model: // retry any lane at equal or lower priority, but don't try updates at higher // priority without also including the lower priority updates. This works well // when considering updates across different priority levels, but isn't // sufficient for updates within the same priority, since we want to treat // those updates as parallel. // Unsuspend any update at equal or lower priority. var higherPriorityLanes = updateLane - 1; // Turns 0b1000 into 0b0111 root.suspendedLanes &= higherPriorityLanes; root.pingedLanes &= higherPriorityLanes; var eventTimes = root.eventTimes; var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most // recent event, and we assume time is monotonically increasing. eventTimes[index] = eventTime; } function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. var expirationTimes = root.expirationTimes; var lanes = suspendedLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; expirationTimes[index] = NoTimestamp; lanes &= ~lane; } } function markRootPinged(root, pingedLanes, eventTime) { root.pingedLanes |= root.suspendedLanes & pingedLanes; } function markDiscreteUpdatesExpired(root) { root.expiredLanes |= InputDiscreteLanes & root.pendingLanes; } function hasDiscreteLanes(lanes) { return (lanes & InputDiscreteLanes) !== NoLanes; } function markRootMutableRead(root, updateLane) { root.mutableReadLanes |= updateLane & root.pendingLanes; } function markRootFinished(root, remainingLanes) { var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; root.pendingLanes = remainingLanes; // Let's try everything again root.suspendedLanes = 0; root.pingedLanes = 0; root.expiredLanes &= remainingLanes; root.mutableReadLanes &= remainingLanes; root.entangledLanes &= remainingLanes; var entanglements = root.entanglements; var eventTimes = root.eventTimes; var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work var lanes = noLongerPendingLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; entanglements[index] = NoLanes; eventTimes[index] = NoTimestamp; expirationTimes[index] = NoTimestamp; lanes &= ~lane; } } function markRootEntangled(root, entangledLanes) { root.entangledLanes |= entangledLanes; var entanglements = root.entanglements; var lanes = entangledLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; entanglements[index] |= entangledLanes; lanes &= ~lane; } } var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. Only used on lanes, so assume input is an integer. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 var log = Math.log; var LN2 = Math.LN2; function clz32Fallback(lanes) { if (lanes === 0) { return 32; } return 31 - (log(lanes) / LN2 | 0) | 0; } // Intentionally not named imports because Rollup would use dynamic dispatch for var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority, runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these? var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra. // We'd like to remove this but it's not clear if this is safe. function setEnabled(enabled) { _enabled = !!enabled; } function isEnabled() { return _enabled; } function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) { var eventPriority = getEventPriorityForPluginSystem(domEventName); var listenerWrapper; switch (eventPriority) { case DiscreteEvent: listenerWrapper = dispatchDiscreteEvent; break; case UserBlockingEvent: listenerWrapper = dispatchUserBlockingUpdate; break; case ContinuousEvent: default: listenerWrapper = dispatchEvent; break; } return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer); } function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { { flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp); } discreteUpdates(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent); } function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) { { runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent)); } } function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { if (!_enabled) { return; } var allowReplay = true; { // TODO: replaying capture phase events is currently broken // because we used to do it during top-level native bubble handlers // but now we use different bubble and capture handlers. // In eager mode, we attach capture listeners early, so we need // to filter them out until we fix the logic to handle them correctly. // This could've been outside the flag but I put it inside to reduce risk. allowReplay = (eventSystemFlags & IS_CAPTURE_PHASE) === 0; } if (allowReplay && hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(domEventName)) { // If we already have a queue of discrete events, and this is another discrete // event, then we can't dispatch it regardless of its target, since they // need to dispatch in order. queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know. domEventName, eventSystemFlags, targetContainer, nativeEvent); return; } var blockedOn = attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent); if (blockedOn === null) { // We successfully dispatched this event. if (allowReplay) { clearIfContinuousEvent(domEventName, nativeEvent); } return; } if (allowReplay) { if (isReplayableDiscreteEvent(domEventName)) { // This this to be replayed later once the target is available. queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); return; } if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) { return; } // We need to clear only if we didn't queue because // queueing is accummulative. clearIfContinuousEvent(domEventName, nativeEvent); } // This is not replayable so we'll invoke it but without a target, // in case the event system needs to trace it. dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer); } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked. function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { // TODO: Warn if _enabled is false. var nativeEventTarget = getEventTarget(nativeEvent); var targetInst = getClosestInstanceFromNode(nativeEventTarget); if (targetInst !== null) { var nearestMounted = getNearestMountedFiber(targetInst); if (nearestMounted === null) { // This tree has been unmounted already. Dispatch without a target. targetInst = null; } else { var tag = nearestMounted.tag; if (tag === SuspenseComponent) { var instance = getSuspenseInstanceFromFiber(nearestMounted); if (instance !== null) { // Queue the event to be replayed later. Abort dispatching since we // don't want this event dispatched twice through the event system. // TODO: If this is the first discrete event in the queue. Schedule an increased // priority for this boundary. return instance; } // This shouldn't happen, something went wrong but to avoid blocking // the whole system, dispatch the event without a target. // TODO: Warn. targetInst = null; } else if (tag === HostRoot) { var root = nearestMounted.stateNode; if (root.hydrate) { // If this happens during a replay something went wrong and it might block // the whole system. return getContainerFromFiber(nearestMounted); } targetInst = null; } else if (nearestMounted !== targetInst) { // If we get an event (ex: img onload) before committing that // component's mount, ignore it for now (that is, treat it as if it was an // event on a non-React tree). We might also consider queueing events and // dispatching them after the mount. targetInst = null; } } } dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer); // We're not blocked on anything. return null; } function addEventBubbleListener(target, eventType, listener) { target.addEventListener(eventType, listener, false); return listener; } function addEventCaptureListener(target, eventType, listener) { target.addEventListener(eventType, listener, true); return listener; } function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) { target.addEventListener(eventType, listener, { capture: true, passive: passive }); return listener; } function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) { target.addEventListener(eventType, listener, { passive: passive }); return listener; } /** * These variables store information about text content of a target node, * allowing comparison of content before and after a given event. * * Identify the node where selection currently begins, then observe * both its text content and its current position in the DOM. Since the * browser may natively replace the target node during composition, we can * use its position to find its replacement. * * */ var root = null; var startText = null; var fallbackText = null; function initialize(nativeEventTarget) { root = nativeEventTarget; startText = getText(); return true; } function reset() { root = null; startText = null; fallbackText = null; } function getData() { if (fallbackText) { return fallbackText; } var start; var startValue = startText; var startLength = startValue.length; var end; var endValue = getText(); var endLength = endValue.length; for (start = 0; start < startLength; start++) { if (startValue[start] !== endValue[start]) { break; } } var minEnd = startLength - start; for (end = 1; end <= minEnd; end++) { if (startValue[startLength - end] !== endValue[endLength - end]) { break; } } var sliceTail = end > 1 ? 1 - end : undefined; fallbackText = endValue.slice(start, sliceTail); return fallbackText; } function getText() { if ('value' in root) { return root.value; } return root.textContent; } /** * `charCode` represents the actual "character code" and is safe to use with * `String.fromCharCode`. As such, only keys that correspond to printable * characters produce a valid `charCode`, the only exception to this is Enter. * The Tab-key is considered non-printable and does not have a `charCode`, * presumably because it does not produce a tab-character in browsers. * * @param {object} nativeEvent Native browser event. * @return {number} Normalized `charCode` property. */ function getEventCharCode(nativeEvent) { var charCode; var keyCode = nativeEvent.keyCode; if ('charCode' in nativeEvent) { charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`. if (charCode === 0 && keyCode === 13) { charCode = 13; } } else { // IE8 does not implement `charCode`, but `keyCode` has the correct value. charCode = keyCode; } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux) // report Enter as charCode 10 when ctrl is pressed. if (charCode === 10) { charCode = 13; } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. // Must not discard the (non-)printable Enter-key. if (charCode >= 32 || charCode === 13) { return charCode; } return 0; } function functionThatReturnsTrue() { return true; } function functionThatReturnsFalse() { return false; } // This is intentionally a factory so that we have different returned constructors. // If we had a single constructor, it would be megamorphic and engines would deopt. function createSyntheticEvent(Interface) { /** * Synthetic events are dispatched by event plugins, typically in response to a * top-level event delegation handler. * * These systems should generally use pooling to reduce the frequency of garbage * collection. The system should check `isPersistent` to determine whether the * event should be released into the pool after being dispatched. Users that * need a persisted event should invoke `persist`. * * Synthetic events (and subclasses) implement the DOM Level 3 Events API by * normalizing browser quirks. Subclasses do not necessarily have to implement a * DOM interface; custom application-specific events can also subclass this. */ function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { this._reactName = reactName; this._targetInst = targetInst; this.type = reactEventType; this.nativeEvent = nativeEvent; this.target = nativeEventTarget; this.currentTarget = null; for (var _propName in Interface) { if (!Interface.hasOwnProperty(_propName)) { continue; } var normalize = Interface[_propName]; if (normalize) { this[_propName] = normalize(nativeEvent); } else { this[_propName] = nativeEvent[_propName]; } } var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; if (defaultPrevented) { this.isDefaultPrevented = functionThatReturnsTrue; } else { this.isDefaultPrevented = functionThatReturnsFalse; } this.isPropagationStopped = functionThatReturnsFalse; return this; } _assign(SyntheticBaseEvent.prototype, { preventDefault: function () { this.defaultPrevented = true; var event = this.nativeEvent; if (!event) { return; } if (event.preventDefault) { event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE } else if (typeof event.returnValue !== 'unknown') { event.returnValue = false; } this.isDefaultPrevented = functionThatReturnsTrue; }, stopPropagation: function () { var event = this.nativeEvent; if (!event) { return; } if (event.stopPropagation) { event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE } else if (typeof event.cancelBubble !== 'unknown') { // The ChangeEventPlugin registers a "propertychange" event for // IE. This event does not support bubbling or cancelling, and // any references to cancelBubble throw "Member not found". A // typeof check of "unknown" circumvents this issue (and is also // IE specific). event.cancelBubble = true; } this.isPropagationStopped = functionThatReturnsTrue; }, /** * We release all dispatched `SyntheticEvent`s after each event loop, adding * them back into the pool. This allows a way to hold onto a reference that * won't be added back into the pool. */ persist: function () {// Modern event system doesn't use pooling. }, /** * Checks if this event should be released back into the pool. * * @return {boolean} True if this should not be released, false otherwise. */ isPersistent: functionThatReturnsTrue }); return SyntheticBaseEvent; } /** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var EventInterface = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (event) { return event.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0 }; var SyntheticEvent = createSyntheticEvent(EventInterface); var UIEventInterface = _assign({}, EventInterface, { view: 0, detail: 0 }); var SyntheticUIEvent = createSyntheticEvent(UIEventInterface); var lastMovementX; var lastMovementY; var lastMouseEvent; function updateMouseMovementPolyfillState(event) { if (event !== lastMouseEvent) { if (lastMouseEvent && event.type === 'mousemove') { lastMovementX = event.screenX - lastMouseEvent.screenX; lastMovementY = event.screenY - lastMouseEvent.screenY; } else { lastMovementX = 0; lastMovementY = 0; } lastMouseEvent = event; } } /** * @interface MouseEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var MouseEventInterface = _assign({}, UIEventInterface, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: getEventModifierState, button: 0, buttons: 0, relatedTarget: function (event) { if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement; return event.relatedTarget; }, movementX: function (event) { if ('movementX' in event) { return event.movementX; } updateMouseMovementPolyfillState(event); return lastMovementX; }, movementY: function (event) { if ('movementY' in event) { return event.movementY; } // Don't need to call updateMouseMovementPolyfillState() here // because it's guaranteed to have already run when movementX // was copied. return lastMovementY; } }); var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface); /** * @interface DragEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var DragEventInterface = _assign({}, MouseEventInterface, { dataTransfer: 0 }); var SyntheticDragEvent = createSyntheticEvent(DragEventInterface); /** * @interface FocusEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var FocusEventInterface = _assign({}, UIEventInterface, { relatedTarget: 0 }); var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface); /** * @interface Event * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent */ var AnimationEventInterface = _assign({}, EventInterface, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }); var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface); /** * @interface Event * @see http://www.w3.org/TR/clipboard-apis/ */ var ClipboardEventInterface = _assign({}, EventInterface, { clipboardData: function (event) { return 'clipboardData' in event ? event.clipboardData : window.clipboardData; } }); var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface); /** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents */ var CompositionEventInterface = _assign({}, EventInterface, { data: 0 }); var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface); /** * @interface Event * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105 * /#events-inputevents */ // Happens to share the same list for now. var SyntheticInputEvent = SyntheticCompositionEvent; /** * Normalization of deprecated HTML5 `key` values * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names */ var normalizeKey = { Esc: 'Escape', Spacebar: ' ', Left: 'ArrowLeft', Up: 'ArrowUp', Right: 'ArrowRight', Down: 'ArrowDown', Del: 'Delete', Win: 'OS', Menu: 'ContextMenu', Apps: 'ContextMenu', Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified' }; /** * Translation from legacy `keyCode` to HTML5 `key` * Only special keys supported, all others depend on keyboard layout or browser * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names */ var translateToKey = { '8': 'Backspace', '9': 'Tab', '12': 'Clear', '13': 'Enter', '16': 'Shift', '17': 'Control', '18': 'Alt', '19': 'Pause', '20': 'CapsLock', '27': 'Escape', '32': ' ', '33': 'PageUp', '34': 'PageDown', '35': 'End', '36': 'Home', '37': 'ArrowLeft', '38': 'ArrowUp', '39': 'ArrowRight', '40': 'ArrowDown', '45': 'Insert', '46': 'Delete', '112': 'F1', '113': 'F2', '114': 'F3', '115': 'F4', '116': 'F5', '117': 'F6', '118': 'F7', '119': 'F8', '120': 'F9', '121': 'F10', '122': 'F11', '123': 'F12', '144': 'NumLock', '145': 'ScrollLock', '224': 'Meta' }; /** * @param {object} nativeEvent Native browser event. * @return {string} Normalized `key` property. */ function getEventKey(nativeEvent) { if (nativeEvent.key) { // Normalize inconsistent values reported by browsers due to // implementations of a working draft specification. // FireFox implements `key` but returns `MozPrintableKey` for all // printable characters (normalized to `Unidentified`), ignore it. var key = normalizeKey[nativeEvent.key] || nativeEvent.key; if (key !== 'Unidentified') { return key; } } // Browser does not implement `key`, polyfill as much of it as we can. if (nativeEvent.type === 'keypress') { var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can // thus be captured by `keypress`, no other non-printable key should. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); } if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { // While user keyboard layout determines the actual meaning of each // `keyCode` value, almost all function keys have a universal value. return translateToKey[nativeEvent.keyCode] || 'Unidentified'; } return ''; } /** * Translation from modifier key to the associated property in the event. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers */ var modifierKeyToProp = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support // getModifierState. If getModifierState is not supported, we map it to a set of // modifier keys exposed by the event. In this case, Lock-keys are not supported. function modifierStateGetter(keyArg) { var syntheticEvent = this; var nativeEvent = syntheticEvent.nativeEvent; if (nativeEvent.getModifierState) { return nativeEvent.getModifierState(keyArg); } var keyProp = modifierKeyToProp[keyArg]; return keyProp ? !!nativeEvent[keyProp] : false; } function getEventModifierState(nativeEvent) { return modifierStateGetter; } /** * @interface KeyboardEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var KeyboardEventInterface = _assign({}, UIEventInterface, { key: getEventKey, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: getEventModifierState, // Legacy Interface charCode: function (event) { // `charCode` is the result of a KeyPress event and represents the value of // the actual printable character. // KeyPress is deprecated, but its replacement is not yet final and not // implemented in any major browser. Only KeyPress has charCode. if (event.type === 'keypress') { return getEventCharCode(event); } return 0; }, keyCode: function (event) { // `keyCode` is the result of a KeyDown/Up event and represents the value of // physical keyboard key. // The actual meaning of the value depends on the users' keyboard layout // which cannot be detected. Assuming that it is a US keyboard layout // provides a surprisingly accurate mapping for US and European users. // Due to this, it is left to the user to implement at this time. if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; }, which: function (event) { // `which` is an alias for either `keyCode` or `charCode` depending on the // type of the event. if (event.type === 'keypress') { return getEventCharCode(event); } if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; } }); var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface); /** * @interface PointerEvent * @see http://www.w3.org/TR/pointerevents/ */ var PointerEventInterface = _assign({}, MouseEventInterface, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }); var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface); /** * @interface TouchEvent * @see http://www.w3.org/TR/touch-events/ */ var TouchEventInterface = _assign({}, UIEventInterface, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: getEventModifierState }); var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface); /** * @interface Event * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent */ var TransitionEventInterface = _assign({}, EventInterface, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }); var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface); /** * @interface WheelEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var WheelEventInterface = _assign({}, MouseEventInterface, { deltaX: function (event) { return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; }, deltaY: function (event) { return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). 'wheelDelta' in event ? -event.wheelDelta : 0; }, deltaZ: 0, // Browsers without "deltaMode" is reporting in raw wheel delta where one // notch on the scroll is always +/- 120, roughly equivalent to pixels. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. deltaMode: 0 }); var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface); var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space var START_KEYCODE = 229; var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window; var documentMode = null; if (canUseDOM && 'documentMode' in document) { documentMode = document.documentMode; } // Webkit offers a very useful `textInput` event that can be used to // directly represent `beforeInput`. The IE `textinput` event is not as // useful, so we don't use it. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied // by the native compositionend event may be incorrect. Japanese ideographic // spaces, for instance (\u3000) are not recorded correctly. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); var SPACEBAR_CODE = 32; var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); function registerEvents() { registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']); registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); } // Track whether we've ever handled a keypress on the space key. var hasSpaceKeypress = false; /** * Return whether a native keypress event is assumed to be a command. * This is required because Firefox fires `keypress` events for key commands * (cut, copy, select-all, etc.) even though no character is inserted. */ function isKeypressCommand(nativeEvent) { return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command. !(nativeEvent.ctrlKey && nativeEvent.altKey); } /** * Translate native top level events into event types. */ function getCompositionEventType(domEventName) { switch (domEventName) { case 'compositionstart': return 'onCompositionStart'; case 'compositionend': return 'onCompositionEnd'; case 'compositionupdate': return 'onCompositionUpdate'; } } /** * Does our fallback best-guess model think this event signifies that * composition has begun? */ function isFallbackCompositionStart(domEventName, nativeEvent) { return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE; } /** * Does our fallback mode think that this event is the end of composition? */ function isFallbackCompositionEnd(domEventName, nativeEvent) { switch (domEventName) { case 'keyup': // Command keys insert or clear IME input. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; case 'keydown': // Expect IME keyCode on each keydown. If we get any other // code we must have exited earlier. return nativeEvent.keyCode !== START_KEYCODE; case 'keypress': case 'mousedown': case 'focusout': // Events are not possible without cancelling IME. return true; default: return false; } } /** * Google Input Tools provides composition data via a CustomEvent, * with the `data` property populated in the `detail` object. If this * is available on the event object, use it. If not, this is a plain * composition event and we have nothing special to extract. * * @param {object} nativeEvent * @return {?string} */ function getDataFromCustomEvent(nativeEvent) { var detail = nativeEvent.detail; if (typeof detail === 'object' && 'data' in detail) { return detail.data; } return null; } /** * Check if a composition event was triggered by Korean IME. * Our fallback mode does not work well with IE's Korean IME, * so just use native composition events when Korean IME is used. * Although CompositionEvent.locale property is deprecated, * it is available in IE, where our fallback mode is enabled. * * @param {object} nativeEvent * @return {boolean} */ function isUsingKoreanIME(nativeEvent) { return nativeEvent.locale === 'ko'; } // Track the current IME composition status, if any. var isComposing = false; /** * @return {?object} A SyntheticCompositionEvent. */ function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) { var eventType; var fallbackData; if (canUseCompositionEvent) { eventType = getCompositionEventType(domEventName); } else if (!isComposing) { if (isFallbackCompositionStart(domEventName, nativeEvent)) { eventType = 'onCompositionStart'; } } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) { eventType = 'onCompositionEnd'; } if (!eventType) { return null; } if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) { // The current composition is stored statically and must not be // overwritten while composition continues. if (!isComposing && eventType === 'onCompositionStart') { isComposing = initialize(nativeEventTarget); } else if (eventType === 'onCompositionEnd') { if (isComposing) { fallbackData = getData(); } } } var listeners = accumulateTwoPhaseListeners(targetInst, eventType); if (listeners.length > 0) { var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); if (fallbackData) { // Inject data generated from fallback path into the synthetic event. // This matches the property of native CompositionEventInterface. event.data = fallbackData; } else { var customData = getDataFromCustomEvent(nativeEvent); if (customData !== null) { event.data = customData; } } } } function getNativeBeforeInputChars(domEventName, nativeEvent) { switch (domEventName) { case 'compositionend': return getDataFromCustomEvent(nativeEvent); case 'keypress': /** * If native `textInput` events are available, our goal is to make * use of them. However, there is a special case: the spacebar key. * In Webkit, preventing default on a spacebar `textInput` event * cancels character insertion, but it *also* causes the browser * to fall back to its default spacebar behavior of scrolling the * page. * * Tracking at: * https://code.google.com/p/chromium/issues/detail?id=355103 * * To avoid this issue, use the keypress event as if no `textInput` * event is available. */ var which = nativeEvent.which; if (which !== SPACEBAR_CODE) { return null; } hasSpaceKeypress = true; return SPACEBAR_CHAR; case 'textInput': // Record the characters to be added to the DOM. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled // it at the keypress level and bail immediately. Android Chrome // doesn't give us keycodes, so we need to ignore it. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { return null; } return chars; default: // For other native event types, do nothing. return null; } } /** * For browsers that do not provide the `textInput` event, extract the * appropriate string to use for SyntheticInputEvent. */ function getFallbackBeforeInputChars(domEventName, nativeEvent) { // If we are currently composing (IME) and using a fallback to do so, // try to extract the composed characters from the fallback object. // If composition event is available, we extract a string only at // compositionevent, otherwise extract it at fallback events. if (isComposing) { if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) { var chars = getData(); reset(); isComposing = false; return chars; } return null; } switch (domEventName) { case 'paste': // If a paste event occurs after a keypress, throw out the input // chars. Paste events should not lead to BeforeInput events. return null; case 'keypress': /** * As of v27, Firefox may fire keypress events even when no character * will be inserted. A few possibilities: * * - `which` is `0`. Arrow keys, Esc key, etc. * * - `which` is the pressed key code, but no char is available. * Ex: 'AltGr + d` in Polish. There is no modified character for * this key combination and no character is inserted into the * document, but FF fires the keypress for char code `100` anyway. * No `input` event will occur. * * - `which` is the pressed key code, but a command combination is * being used. Ex: `Cmd+C`. No character is inserted, and no * `input` event will occur. */ if (!isKeypressCommand(nativeEvent)) { // IE fires the `keypress` event when a user types an emoji via // Touch keyboard of Windows. In such a case, the `char` property // holds an emoji character like `\uD83D\uDE0A`. Because its length // is 2, the property `which` does not represent an emoji correctly. // In such a case, we directly return the `char` property instead of // using `which`. if (nativeEvent.char && nativeEvent.char.length > 1) { return nativeEvent.char; } else if (nativeEvent.which) { return String.fromCharCode(nativeEvent.which); } } return null; case 'compositionend': return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data; default: return null; } } /** * Extract a SyntheticInputEvent for `beforeInput`, based on either native * `textInput` or fallback behavior. * * @return {?object} A SyntheticInputEvent. */ function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) { var chars; if (canUseTextInputEvent) { chars = getNativeBeforeInputChars(domEventName, nativeEvent); } else { chars = getFallbackBeforeInputChars(domEventName, nativeEvent); } // If no characters are being inserted, no BeforeInput event should // be fired. if (!chars) { return null; } var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput'); if (listeners.length > 0) { var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); event.data = chars; } } /** * Create an `onBeforeInput` event to match * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents. * * This event plugin is based on the native `textInput` event * available in Chrome, Safari, Opera, and IE. This event fires after * `onKeyPress` and `onCompositionEnd`, but before `onInput`. * * `beforeInput` is spec'd but not implemented in any browsers, and * the `input` event does not provide any useful information about what has * actually been added, contrary to the spec. Thus, `textInput` is the best * available event to identify the characters that have actually been inserted * into the target node. * * This plugin is also responsible for emitting `composition` events, thus * allowing us to share composition fallback code for both `beforeInput` and * `composition` event types. */ function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); } /** * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary */ var supportedInputTypes = { color: true, date: true, datetime: true, 'datetime-local': true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true }; function isTextInputElement(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); if (nodeName === 'input') { return !!supportedInputTypes[elem.type]; } if (nodeName === 'textarea') { return true; } return false; } /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ function isEventSupported(eventNameSuffix) { if (!canUseDOM) { return false; } var eventName = 'on' + eventNameSuffix; var isSupported = (eventName in document); if (!isSupported) { var element = document.createElement('div'); element.setAttribute(eventName, 'return;'); isSupported = typeof element[eventName] === 'function'; } return isSupported; } function registerEvents$1() { registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']); } function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { // Flag this event loop as needing state restore. enqueueStateRestore(target); var listeners = accumulateTwoPhaseListeners(inst, 'onChange'); if (listeners.length > 0) { var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target); dispatchQueue.push({ event: event, listeners: listeners }); } } /** * For IE shims */ var activeElement = null; var activeElementInst = null; /** * SECTION: handle `change` event */ function shouldUseChangeEvent(elem) { var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; } function manualDispatchChangeEvent(nativeEvent) { var dispatchQueue = []; createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the // other events and have it go through ReactBrowserEventEmitter. Since it // doesn't, we manually listen for the events and so we have to enqueue and // process the abstract event manually. // // Batching is necessary here in order to ensure that all event handlers run // before the next rerender (including event handlers attached to ancestor // elements instead of directly on the input). Without this, controlled // components don't work properly in conjunction with event bubbling because // the component is rerendered and the value reverted before all the event // handlers can run. See https://github.com/facebook/react/issues/708. batchedUpdates(runEventInBatch, dispatchQueue); } function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } function getInstIfValueChanged(targetInst) { var targetNode = getNodeFromInstance(targetInst); if (updateValueIfChanged(targetNode)) { return targetInst; } } function getTargetInstForChangeEvent(domEventName, targetInst) { if (domEventName === 'change') { return targetInst; } } /** * SECTION: handle `input` event */ var isInputEventSupported = false; if (canUseDOM) { // IE9 claims to support the input event but fails to trigger it when // deleting text, so we ignore its input events. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9); } /** * (For IE <=9) Starts tracking propertychange events on the passed-in element * and override the value property so that we can distinguish user events from * value changes in JS. */ function startWatchingForValueChange(target, targetInst) { activeElement = target; activeElementInst = targetInst; activeElement.attachEvent('onpropertychange', handlePropertyChange); } /** * (For IE <=9) Removes the event listeners from the currently-tracked element, * if any exists. */ function stopWatchingForValueChange() { if (!activeElement) { return; } activeElement.detachEvent('onpropertychange', handlePropertyChange); activeElement = null; activeElementInst = null; } /** * (For IE <=9) Handles a propertychange event, sending a `change` event if * the value of the active element has changed. */ function handlePropertyChange(nativeEvent) { if (nativeEvent.propertyName !== 'value') { return; } if (getInstIfValueChanged(activeElementInst)) { manualDispatchChangeEvent(nativeEvent); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { if (domEventName === 'focusin') { // In IE9, propertychange fires for most input events but is buggy and // doesn't fire when text is deleted, but conveniently, selectionchange // appears to fire in all of the remaining cases so we catch those and // forward the event if the value has changed // In either case, we don't want to call the event handler if the value // is changed from JS so we redefine a setter for `.value` that updates // our activeElementValue variable, allowing us to ignore those changes // // stopWatching() should be a noop here but we call it just in case we // missed a blur event somehow. stopWatchingForValueChange(); startWatchingForValueChange(target, targetInst); } else if (domEventName === 'focusout') { stopWatchingForValueChange(); } } // For IE8 and IE9. function getTargetInstForInputEventPolyfill(domEventName, targetInst) { if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') { // On the selectionchange event, the target is just document which isn't // helpful for us so just check activeElement instead. // // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire // propertychange on the first input event after setting `value` from a // script and fires only keydown, keypress, keyup. Catching keyup usually // gets it and catching keydown lets us fire an event for the first // keystroke if user does a key repeat (it'll be a little delayed: right // before the second keystroke). Other input methods (e.g., paste) seem to // fire selectionchange normally. return getInstIfValueChanged(activeElementInst); } } /** * SECTION: handle `click` event */ function shouldUseClickEvent(elem) { // Use the `click` event to detect changes to checkbox and radio inputs. // This approach works across all browsers, whereas `change` does not fire // until `blur` in IE8. var nodeName = elem.nodeName; return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); } function getTargetInstForClickEvent(domEventName, targetInst) { if (domEventName === 'click') { return getInstIfValueChanged(targetInst); } } function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { if (domEventName === 'input' || domEventName === 'change') { return getInstIfValueChanged(targetInst); } } function handleControlledInputBlur(node) { var state = node._wrapperState; if (!state || !state.controlled || node.type !== 'number') { return; } { // If controlled, assign the value attribute to the current value on blur setDefaultValue(node, 'number', node.value); } } /** * This plugin creates an `onChange` event that normalizes change events * across form elements. This event fires at a time when it's possible to * change the element's value without seeing a flicker. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - select */ function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var targetNode = targetInst ? getNodeFromInstance(targetInst) : window; var getTargetInstFunc, handleEventFunc; if (shouldUseChangeEvent(targetNode)) { getTargetInstFunc = getTargetInstForChangeEvent; } else if (isTextInputElement(targetNode)) { if (isInputEventSupported) { getTargetInstFunc = getTargetInstForInputOrChangeEvent; } else { getTargetInstFunc = getTargetInstForInputEventPolyfill; handleEventFunc = handleEventsForInputEventPolyfill; } } else if (shouldUseClickEvent(targetNode)) { getTargetInstFunc = getTargetInstForClickEvent; } if (getTargetInstFunc) { var inst = getTargetInstFunc(domEventName, targetInst); if (inst) { createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget); return; } } if (handleEventFunc) { handleEventFunc(domEventName, targetNode, targetInst); } // When blurring, set the value attribute for number inputs if (domEventName === 'focusout') { handleControlledInputBlur(targetNode); } } function registerEvents$2() { registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']); registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']); registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']); registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']); } /** * For almost every interaction we care about, there will be both a top-level * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that * we do not extract duplicate events. However, moving the mouse into the * browser from outside will not fire a `mouseout` event. In this case, we use * the `mouseover` top-level event. */ function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover'; var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout'; if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0) { // If this is an over event with a target, we might have already dispatched // the event in the out event of the other target. If this is replayed, // then it's because we couldn't dispatch against this target previously // so we have to do it now instead. var related = nativeEvent.relatedTarget || nativeEvent.fromElement; if (related) { // If the related node is managed by React, we can assume that we have // already dispatched the corresponding events during its mouseout. if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) { return; } } } if (!isOutEvent && !isOverEvent) { // Must not be a mouse or pointer in or out - ignoring. return; } var win; // TODO: why is this nullable in the types but we read from it? if (nativeEventTarget.window === nativeEventTarget) { // `nativeEventTarget` is probably a window object. win = nativeEventTarget; } else { // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. var doc = nativeEventTarget.ownerDocument; if (doc) { win = doc.defaultView || doc.parentWindow; } else { win = window; } } var from; var to; if (isOutEvent) { var _related = nativeEvent.relatedTarget || nativeEvent.toElement; from = targetInst; to = _related ? getClosestInstanceFromNode(_related) : null; if (to !== null) { var nearestMounted = getNearestMountedFiber(to); if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) { to = null; } } } else { // Moving to a node from outside the window. from = null; to = targetInst; } if (from === to) { // Nothing pertains to our managed components. return; } var SyntheticEventCtor = SyntheticMouseEvent; var leaveEventType = 'onMouseLeave'; var enterEventType = 'onMouseEnter'; var eventTypePrefix = 'mouse'; if (domEventName === 'pointerout' || domEventName === 'pointerover') { SyntheticEventCtor = SyntheticPointerEvent; leaveEventType = 'onPointerLeave'; enterEventType = 'onPointerEnter'; eventTypePrefix = 'pointer'; } var fromNode = from == null ? win : getNodeFromInstance(from); var toNode = to == null ? win : getNodeFromInstance(to); var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget); leave.target = fromNode; leave.relatedTarget = toNode; var enter = null; // We should only process this nativeEvent if we are processing // the first ancestor. Next time, we will ignore the event. var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget); if (nativeTargetInst === targetInst) { var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget); enterEvent.target = toNode; enterEvent.relatedTarget = fromNode; enter = enterEvent; } accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to); } /** * inlined Object.is polyfill to avoid requiring consumers ship their own * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is */ function is(x, y) { return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare ; } var objectIs = typeof Object.is === 'function' ? Object.is : is; var hasOwnProperty$2 = Object.prototype.hasOwnProperty; /** * Performs equality by iterating through keys on an object and returning false * when any key has values which are not strictly equal between the arguments. * Returns true when the values of all keys are strictly equal. */ function shallowEqual(objA, objB) { if (objectIs(objA, objB)) { return true; } if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { return false; } var keysA = Object.keys(objA); var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; } // Test for A's keys different from B. for (var i = 0; i < keysA.length; i++) { if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) { return false; } } return true; } /** * Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode} */ function getLeafNode(node) { while (node && node.firstChild) { node = node.firstChild; } return node; } /** * Get the next sibling within a container. This will walk up the * DOM if a node's siblings have been exhausted. * * @param {DOMElement|DOMTextNode} node * @return {?DOMElement|DOMTextNode} */ function getSiblingNode(node) { while (node) { if (node.nextSibling) { return node.nextSibling; } node = node.parentNode; } } /** * Get object describing the nodes which contain characters at offset. * * @param {DOMElement|DOMTextNode} root * @param {number} offset * @return {?object} */ function getNodeForCharacterOffset(root, offset) { var node = getLeafNode(root); var nodeStart = 0; var nodeEnd = 0; while (node) { if (node.nodeType === TEXT_NODE) { nodeEnd = nodeStart + node.textContent.length; if (nodeStart <= offset && nodeEnd >= offset) { return { node: node, offset: offset - nodeStart }; } nodeStart = nodeEnd; } node = getLeafNode(getSiblingNode(node)); } } /** * @param {DOMElement} outerNode * @return {?object} */ function getOffsets(outerNode) { var ownerDocument = outerNode.ownerDocument; var win = ownerDocument && ownerDocument.defaultView || window; var selection = win.getSelection && win.getSelection(); if (!selection || selection.rangeCount === 0) { return null; } var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the // up/down buttons on an . Anonymous divs do not seem to // expose properties, triggering a "Permission denied error" if any of its // properties are accessed. The only seemingly possible way to avoid erroring // is to access a property that typically works for non-anonymous divs and // catch any error that may otherwise arise. See // https://bugzilla.mozilla.org/show_bug.cgi?id=208427 try { /* eslint-disable no-unused-expressions */ anchorNode.nodeType; focusNode.nodeType; /* eslint-enable no-unused-expressions */ } catch (e) { return null; } return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); } /** * Returns {start, end} where `start` is the character/codepoint index of * (anchorNode, anchorOffset) within the textContent of `outerNode`, and * `end` is the index of (focusNode, focusOffset). * * Returns null if you pass in garbage input but we should probably just crash. * * Exported only for testing. */ function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { var length = 0; var start = -1; var end = -1; var indexWithinAnchor = 0; var indexWithinFocus = 0; var node = outerNode; var parentNode = null; outer: while (true) { var next = null; while (true) { if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) { start = length + anchorOffset; } if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) { end = length + focusOffset; } if (node.nodeType === TEXT_NODE) { length += node.nodeValue.length; } if ((next = node.firstChild) === null) { break; } // Moving from `node` to its first child `next`. parentNode = node; node = next; } while (true) { if (node === outerNode) { // If `outerNode` has children, this is always the second time visiting // it. If it has no children, this is still the first loop, and the only // valid selection is anchorNode and focusNode both equal to this node // and both offsets 0, in which case we will have handled above. break outer; } if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) { start = length; } if (parentNode === focusNode && ++indexWithinFocus === focusOffset) { end = length; } if ((next = node.nextSibling) !== null) { break; } node = parentNode; parentNode = node.parentNode; } // Moving from `node` to its next sibling `next`. node = next; } if (start === -1 || end === -1) { // This should never happen. (Would happen if the anchor/focus nodes aren't // actually inside the passed-in node.) return null; } return { start: start, end: end }; } /** * In modern non-IE browsers, we can support both forward and backward * selections. * * Note: IE10+ supports the Selection object, but it does not support * the `extend` method, which means that even in modern IE, it's not possible * to programmatically create a backward selection. Thus, for all IE * versions, we use the old IE API to create our selections. * * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ function setOffsets(node, offsets) { var doc = node.ownerDocument || document; var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios. // (For instance: TinyMCE editor used in a list component that supports pasting to add more, // fails when pasting 100+ items) if (!win.getSelection) { return; } var selection = win.getSelection(); var length = node.textContent.length; var start = Math.min(offsets.start, length); var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method. // Flip backward selections, so we can set with a single range. if (!selection.extend && start > end) { var temp = end; end = start; start = temp; } var startMarker = getNodeForCharacterOffset(node, start); var endMarker = getNodeForCharacterOffset(node, end); if (startMarker && endMarker) { if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) { return; } var range = doc.createRange(); range.setStart(startMarker.node, startMarker.offset); selection.removeAllRanges(); if (start > end) { selection.addRange(range); selection.extend(endMarker.node, endMarker.offset); } else { range.setEnd(endMarker.node, endMarker.offset); selection.addRange(range); } } } function isTextNode(node) { return node && node.nodeType === TEXT_NODE; } function containsNode(outerNode, innerNode) { if (!outerNode || !innerNode) { return false; } else if (outerNode === innerNode) { return true; } else if (isTextNode(outerNode)) { return false; } else if (isTextNode(innerNode)) { return containsNode(outerNode, innerNode.parentNode); } else if ('contains' in outerNode) { return outerNode.contains(innerNode); } else if (outerNode.compareDocumentPosition) { return !!(outerNode.compareDocumentPosition(innerNode) & 16); } else { return false; } } function isInDocument(node) { return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node); } function isSameOriginFrame(iframe) { try { // Accessing the contentDocument of a HTMLIframeElement can cause the browser // to throw, e.g. if it has a cross-origin src attribute. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g: // iframe.contentDocument.defaultView; // A safety way is to access one of the cross origin properties: Window or Location // Which might result in "SecurityError" DOM Exception and it is compatible to Safari. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl return typeof iframe.contentWindow.location.href === 'string'; } catch (err) { return false; } } function getActiveElementDeep() { var win = window; var element = getActiveElement(); while (element instanceof win.HTMLIFrameElement) { if (isSameOriginFrame(element)) { win = element.contentWindow; } else { return element; } element = getActiveElement(win.document); } return element; } /** * @ReactInputSelection: React input selection module. Based on Selection.js, * but modified to be suitable for react and has a couple of bug fixes (doesn't * assume buttons have range selections allowed). * Input selection module for React. */ /** * @hasSelectionCapabilities: we get the element types that support selection * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart` * and `selectionEnd` rows. */ function hasSelectionCapabilities(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); } function getSelectionInformation() { var focusedElem = getActiveElementDeep(); return { focusedElem: focusedElem, selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null }; } /** * @restoreSelection: If any selection information was potentially lost, * restore it. This is useful when performing operations that could remove dom * nodes and place them back in, resulting in focus being lost. */ function restoreSelection(priorSelectionInformation) { var curFocusedElem = getActiveElementDeep(); var priorFocusedElem = priorSelectionInformation.focusedElem; var priorSelectionRange = priorSelectionInformation.selectionRange; if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) { setSelection(priorFocusedElem, priorSelectionRange); } // Focusing a node can change the scroll position, which is undesirable var ancestors = []; var ancestor = priorFocusedElem; while (ancestor = ancestor.parentNode) { if (ancestor.nodeType === ELEMENT_NODE) { ancestors.push({ element: ancestor, left: ancestor.scrollLeft, top: ancestor.scrollTop }); } } if (typeof priorFocusedElem.focus === 'function') { priorFocusedElem.focus(); } for (var i = 0; i < ancestors.length; i++) { var info = ancestors[i]; info.element.scrollLeft = info.left; info.element.scrollTop = info.top; } } } /** * @getSelection: Gets the selection bounds of a focused textarea, input or * contentEditable node. * -@input: Look up selection bounds of this input * -@return {start: selectionStart, end: selectionEnd} */ function getSelection(input) { var selection; if ('selectionStart' in input) { // Modern browser with input or textarea. selection = { start: input.selectionStart, end: input.selectionEnd }; } else { // Content editable or old IE textarea. selection = getOffsets(input); } return selection || { start: 0, end: 0 }; } /** * @setSelection: Sets the selection bounds of a textarea or input and focuses * the input. * -@input Set selection bounds of this input or textarea * -@offsets Object of same form that is returned from get* */ function setSelection(input, offsets) { var start = offsets.start; var end = offsets.end; if (end === undefined) { end = start; } if ('selectionStart' in input) { input.selectionStart = start; input.selectionEnd = Math.min(end, input.value.length); } else { setOffsets(input, offsets); } } var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11; function registerEvents$3() { registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']); } var activeElement$1 = null; var activeElementInst$1 = null; var lastSelection = null; var mouseDown = false; /** * Get an object which is a unique representation of the current selection. * * The return value will not be consistent across nodes or browsers, but * two identical selections on the same node will return identical objects. */ function getSelection$1(node) { if ('selectionStart' in node && hasSelectionCapabilities(node)) { return { start: node.selectionStart, end: node.selectionEnd }; } else { var win = node.ownerDocument && node.ownerDocument.defaultView || window; var selection = win.getSelection(); return { anchorNode: selection.anchorNode, anchorOffset: selection.anchorOffset, focusNode: selection.focusNode, focusOffset: selection.focusOffset }; } } /** * Get document associated with the event target. */ function getEventTargetDocument(eventTarget) { return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument; } /** * Poll selection to see whether it's changed. * * @param {object} nativeEvent * @param {object} nativeEventTarget * @return {?SyntheticEvent} */ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { // Ensure we have the right element, and that the user is not dragging a // selection (this matches native `select` event behavior). In HTML5, select // fires only on input and textarea thus if there's no focused element we // won't dispatch. var doc = getEventTargetDocument(nativeEventTarget); if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) { return; } // Only fire when selection has actually changed. var currentSelection = getSelection$1(activeElement$1); if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { lastSelection = currentSelection; var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect'); if (listeners.length > 0) { var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); event.target = activeElement$1; } } } /** * This plugin creates an `onSelect` event that normalizes select events * across form elements. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - contentEditable * * This differs from native browser implementations in the following ways: * - Fires on contentEditable fields as well as inputs. * - Fires for collapsed selection. * - Fires after user input. */ function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var targetNode = targetInst ? getNodeFromInstance(targetInst) : window; switch (domEventName) { // Track the input node that has focus. case 'focusin': if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { activeElement$1 = targetNode; activeElementInst$1 = targetInst; lastSelection = null; } break; case 'focusout': activeElement$1 = null; activeElementInst$1 = null; lastSelection = null; break; // Don't fire the event while the user is dragging. This matches the // semantics of the native select event. case 'mousedown': mouseDown = true; break; case 'contextmenu': case 'mouseup': case 'dragend': mouseDown = false; constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); break; // Chrome and IE fire non-standard event when selection is changed (and // sometimes when it hasn't). IE's event fires out of order with respect // to key and input events on deletion, so we discard it. // // Firefox doesn't support selectionchange, so check selection status // after each key entry. The selection changes after keydown and before // keyup, but we check on keydown as well in the case of holding down a // key, when multiple keydown events are fired but only one keyup is. // This is also our approach for IE handling, for the reason above. case 'selectionchange': if (skipSelectionChangeEvent) { break; } // falls through case 'keydown': case 'keyup': constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); } } function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var reactName = topLevelEventsToReactNames.get(domEventName); if (reactName === undefined) { return; } var SyntheticEventCtor = SyntheticEvent; var reactEventType = domEventName; switch (domEventName) { case 'keypress': // Firefox creates a keypress event for function keys too. This removes // the unwanted keypress events. Enter is however both printable and // non-printable. One would expect Tab to be as well (but it isn't). if (getEventCharCode(nativeEvent) === 0) { return; } /* falls through */ case 'keydown': case 'keyup': SyntheticEventCtor = SyntheticKeyboardEvent; break; case 'focusin': reactEventType = 'focus'; SyntheticEventCtor = SyntheticFocusEvent; break; case 'focusout': reactEventType = 'blur'; SyntheticEventCtor = SyntheticFocusEvent; break; case 'beforeblur': case 'afterblur': SyntheticEventCtor = SyntheticFocusEvent; break; case 'click': // Firefox creates a click event on right mouse clicks. This removes the // unwanted click events. if (nativeEvent.button === 2) { return; } /* falls through */ case 'auxclick': case 'dblclick': case 'mousedown': case 'mousemove': case 'mouseup': // TODO: Disabled elements should not respond to mouse events /* falls through */ case 'mouseout': case 'mouseover': case 'contextmenu': SyntheticEventCtor = SyntheticMouseEvent; break; case 'drag': case 'dragend': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'dragstart': case 'drop': SyntheticEventCtor = SyntheticDragEvent; break; case 'touchcancel': case 'touchend': case 'touchmove': case 'touchstart': SyntheticEventCtor = SyntheticTouchEvent; break; case ANIMATION_END: case ANIMATION_ITERATION: case ANIMATION_START: SyntheticEventCtor = SyntheticAnimationEvent; break; case TRANSITION_END: SyntheticEventCtor = SyntheticTransitionEvent; break; case 'scroll': SyntheticEventCtor = SyntheticUIEvent; break; case 'wheel': SyntheticEventCtor = SyntheticWheelEvent; break; case 'copy': case 'cut': case 'paste': SyntheticEventCtor = SyntheticClipboardEvent; break; case 'gotpointercapture': case 'lostpointercapture': case 'pointercancel': case 'pointerdown': case 'pointermove': case 'pointerout': case 'pointerover': case 'pointerup': SyntheticEventCtor = SyntheticPointerEvent; break; } var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0; { // Some events don't bubble in the browser. // In the past, React has always bubbled them, but this can be surprising. // We're going to try aligning closer to the browser behavior by not bubbling // them in React either. We'll start by not bubbling onScroll, and then expand. var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from // nonDelegatedEvents list in DOMPluginEventSystem. // Then we can remove this special list. // This is a breaking change that can wait until React 18. domEventName === 'scroll'; var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly); if (_listeners.length > 0) { // Intentionally create event lazily. var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: _event, listeners: _listeners }); } } } // TODO: remove top-level side effect. registerSimpleEvents(); registerEvents$2(); registerEvents$1(); registerEvents$3(); registerEvents(); function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { // TODO: we should remove the concept of a "SimpleEventPlugin". // This is the basic functionality of the event system. All // the other plugins are essentially polyfills. So the plugin // should probably be inlined somewhere and have its logic // be core the to event system. This would potentially allow // us to ship builds of React without the polyfilled plugins below. extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the // event's native "bubble" phase, which means that we're // not in the capture phase. That's because we emulate // the capture phase here still. This is a trade-off, // because in an ideal world we would not emulate and use // the phases properly, like we do with the SimpleEvent // plugin. However, the plugins below either expect // emulation (EnterLeave) or use state localized to that // plugin (BeforeInput, Change, Select). The state in // these modules complicates things, as you'll essentially // get the case where the capture phase event might change // state, only for the following bubble event to come in // later and not trigger anything as the state now // invalidates the heuristics of the event plugin. We // could alter all these plugins to work in such ways, but // that might cause other unknown side-effects that we // can't forsee right now. if (shouldProcessPolyfillPlugins) { extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); } } // List of events that need to be individually attached to media elements. var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather // set them on the actual target element itself. This is primarily // because these events do not consistently bubble in the DOM. var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes)); function executeDispatch(event, listener, currentTarget) { var type = event.type || 'unknown-event'; event.currentTarget = currentTarget; invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); event.currentTarget = null; } function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) { var previousInstance; if (inCapturePhase) { for (var i = dispatchListeners.length - 1; i >= 0; i--) { var _dispatchListeners$i = dispatchListeners[i], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget, listener = _dispatchListeners$i.listener; if (instance !== previousInstance && event.isPropagationStopped()) { return; } executeDispatch(event, listener, currentTarget); previousInstance = instance; } } else { for (var _i = 0; _i < dispatchListeners.length; _i++) { var _dispatchListeners$_i = dispatchListeners[_i], _instance = _dispatchListeners$_i.instance, _currentTarget = _dispatchListeners$_i.currentTarget, _listener = _dispatchListeners$_i.listener; if (_instance !== previousInstance && event.isPropagationStopped()) { return; } executeDispatch(event, _listener, _currentTarget); previousInstance = _instance; } } } function processDispatchQueue(dispatchQueue, eventSystemFlags) { var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0; for (var i = 0; i < dispatchQueue.length; i++) { var _dispatchQueue$i = dispatchQueue[i], event = _dispatchQueue$i.event, listeners = _dispatchQueue$i.listeners; processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); // event system doesn't use pooling. } // This would be a good time to rethrow if any of the event handlers threw. rethrowCaughtError(); } function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) { var nativeEventTarget = getEventTarget(nativeEvent); var dispatchQueue = []; extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); processDispatchQueue(dispatchQueue, eventSystemFlags); } function listenToNonDelegatedEvent(domEventName, targetElement) { var isCapturePhaseListener = false; var listenerSet = getEventListenerSet(targetElement); var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); if (!listenerSet.has(listenerSetKey)) { addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener); listenerSet.add(listenerSetKey); } } var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2); function listenToAllSupportedEvents(rootContainerElement) { { if (rootContainerElement[listeningMarker]) { // Performance optimization: don't iterate through events // for the same portal container or root node more than once. // TODO: once we remove the flag, we may be able to also // remove some of the bookkeeping maps used for laziness. return; } rootContainerElement[listeningMarker] = true; allNativeEvents.forEach(function (domEventName) { if (!nonDelegatedEvents.has(domEventName)) { listenToNativeEvent(domEventName, false, rootContainerElement, null); } listenToNativeEvent(domEventName, true, rootContainerElement, null); }); } } function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) { var eventSystemFlags = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; var target = rootContainerElement; // selectionchange needs to be attached to the document // otherwise it won't capture incoming events that are only // triggered on the document directly. if (domEventName === 'selectionchange' && rootContainerElement.nodeType !== DOCUMENT_NODE) { target = rootContainerElement.ownerDocument; } // If the event can be delegated (or is capture phase), we can // register it to the root container. Otherwise, we should // register the event to the target element and mark it as // a non-delegated event. if (targetElement !== null && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) { // For all non-delegated events, apart from scroll, we attach // their event listeners to the respective elements that their // events fire on. That means we can skip this step, as event // listener has already been added previously. However, we // special case the scroll event because the reality is that any // element can scroll. // TODO: ideally, we'd eventually apply the same logic to all // events from the nonDelegatedEvents list. Then we can remove // this special case and use the same logic for all events. if (domEventName !== 'scroll') { return; } eventSystemFlags |= IS_NON_DELEGATED; target = targetElement; } var listenerSet = getEventListenerSet(target); var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); // If the listener entry is empty or we should upgrade, then // we need to trap an event listener onto the target. if (!listenerSet.has(listenerSetKey)) { if (isCapturePhaseListener) { eventSystemFlags |= IS_CAPTURE_PHASE; } addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener); listenerSet.add(listenerSetKey); } } function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) { var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be // active and not passive. var isPassiveListener = undefined; if (passiveBrowserEventsSupported) { // Browsers introduced an intervention, making these events // passive by default on document. React doesn't bind them // to document anymore, but changing this now would undo // the performance wins from the change. So we emulate // the existing behavior manually on the roots now. // https://github.com/facebook/react/issues/19651 if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') { isPassiveListener = true; } } targetContainer = targetContainer; var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we if (isCapturePhaseListener) { if (isPassiveListener !== undefined) { unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener); } else { unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener); } } else { if (isPassiveListener !== undefined) { unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener); } else { unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener); } } } function isMatchingRootContainer(grandContainer, targetContainer) { return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer; } function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) { var ancestorInst = targetInst; if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) { var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we if (targetInst !== null) { // The below logic attempts to work out if we need to change // the target fiber to a different ancestor. We had similar logic // in the legacy event system, except the big difference between // systems is that the modern event system now has an event listener // attached to each React Root and React Portal Root. Together, // the DOM nodes representing these roots are the "rootContainer". // To figure out which ancestor instance we should use, we traverse // up the fiber tree from the target instance and attempt to find // root boundaries that match that of our current "rootContainer". // If we find that "rootContainer", we find the parent fiber // sub-tree for that root and make that our ancestor instance. var node = targetInst; mainLoop: while (true) { if (node === null) { return; } var nodeTag = node.tag; if (nodeTag === HostRoot || nodeTag === HostPortal) { var container = node.stateNode.containerInfo; if (isMatchingRootContainer(container, targetContainerNode)) { break; } if (nodeTag === HostPortal) { // The target is a portal, but it's not the rootContainer we're looking for. // Normally portals handle their own events all the way down to the root. // So we should be able to stop now. However, we don't know if this portal // was part of *our* root. var grandNode = node.return; while (grandNode !== null) { var grandTag = grandNode.tag; if (grandTag === HostRoot || grandTag === HostPortal) { var grandContainer = grandNode.stateNode.containerInfo; if (isMatchingRootContainer(grandContainer, targetContainerNode)) { // This is the rootContainer we're looking for and we found it as // a parent of the Portal. That means we can ignore it because the // Portal will bubble through to us. return; } } grandNode = grandNode.return; } } // Now we need to find it's corresponding host fiber in the other // tree. To do this we can use getClosestInstanceFromNode, but we // need to validate that the fiber is a host instance, otherwise // we need to traverse up through the DOM till we find the correct // node that is from the other tree. while (container !== null) { var parentNode = getClosestInstanceFromNode(container); if (parentNode === null) { return; } var parentTag = parentNode.tag; if (parentTag === HostComponent || parentTag === HostText) { node = ancestorInst = parentNode; continue mainLoop; } container = container.parentNode; } } node = node.return; } } } batchedEventUpdates(function () { return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst); }); } function createDispatchListener(instance, listener, currentTarget) { return { instance: instance, listener: listener, currentTarget: currentTarget }; } function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) { var captureName = reactName !== null ? reactName + 'Capture' : null; var reactEventName = inCapturePhase ? captureName : reactName; var listeners = []; var instance = targetFiber; var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path. while (instance !== null) { var _instance2 = instance, stateNode = _instance2.stateNode, tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. ) if (tag === HostComponent && stateNode !== null) { lastHostComponent = stateNode; // createEventHandle listeners if (reactEventName !== null) { var listener = getListener(instance, reactEventName); if (listener != null) { listeners.push(createDispatchListener(instance, listener, lastHostComponent)); } } } // If we are only accumulating events for the target, then we don't // continue to propagate through the React fiber tree to find other // listeners. if (accumulateTargetOnly) { break; } instance = instance.return; } return listeners; } // We should only use this function for: // - BeforeInputEventPlugin // - ChangeEventPlugin // - SelectEventPlugin // This is because we only process these plugins // in the bubble phase, so we need to accumulate two // phase event listeners (via emulation). function accumulateTwoPhaseListeners(targetFiber, reactName) { var captureName = reactName + 'Capture'; var listeners = []; var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path. while (instance !== null) { var _instance3 = instance, stateNode = _instance3.stateNode, tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. ) if (tag === HostComponent && stateNode !== null) { var currentTarget = stateNode; var captureListener = getListener(instance, captureName); if (captureListener != null) { listeners.unshift(createDispatchListener(instance, captureListener, currentTarget)); } var bubbleListener = getListener(instance, reactName); if (bubbleListener != null) { listeners.push(createDispatchListener(instance, bubbleListener, currentTarget)); } } instance = instance.return; } return listeners; } function getParent(inst) { if (inst === null) { return null; } do { inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. // That is depending on if we want nested subtrees (layers) to bubble // events to their parent. We could also go through parentNode on the // host node but that wouldn't work for React Native and doesn't let us // do the portal feature. } while (inst && inst.tag !== HostComponent); if (inst) { return inst; } return null; } /** * Return the lowest common ancestor of A and B, or null if they are in * different trees. */ function getLowestCommonAncestor(instA, instB) { var nodeA = instA; var nodeB = instB; var depthA = 0; for (var tempA = nodeA; tempA; tempA = getParent(tempA)) { depthA++; } var depthB = 0; for (var tempB = nodeB; tempB; tempB = getParent(tempB)) { depthB++; } // If A is deeper, crawl up. while (depthA - depthB > 0) { nodeA = getParent(nodeA); depthA--; } // If B is deeper, crawl up. while (depthB - depthA > 0) { nodeB = getParent(nodeB); depthB--; } // Walk in lockstep until we find a match. var depth = depthA; while (depth--) { if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) { return nodeA; } nodeA = getParent(nodeA); nodeB = getParent(nodeB); } return null; } function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { var registrationName = event._reactName; var listeners = []; var instance = target; while (instance !== null) { if (instance === common) { break; } var _instance4 = instance, alternate = _instance4.alternate, stateNode = _instance4.stateNode, tag = _instance4.tag; if (alternate !== null && alternate === common) { break; } if (tag === HostComponent && stateNode !== null) { var currentTarget = stateNode; if (inCapturePhase) { var captureListener = getListener(instance, registrationName); if (captureListener != null) { listeners.unshift(createDispatchListener(instance, captureListener, currentTarget)); } } else if (!inCapturePhase) { var bubbleListener = getListener(instance, registrationName); if (bubbleListener != null) { listeners.push(createDispatchListener(instance, bubbleListener, currentTarget)); } } } instance = instance.return; } if (listeners.length !== 0) { dispatchQueue.push({ event: event, listeners: listeners }); } } // We should only use this function for: // - EnterLeaveEventPlugin // This is because we only process this plugin // in the bubble phase, so we need to accumulate two // phase event listeners. function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) { var common = from && to ? getLowestCommonAncestor(from, to) : null; if (from !== null) { accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false); } if (to !== null && enterEvent !== null) { accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true); } } function getListenerSetKey(domEventName, capture) { return domEventName + "__" + (capture ? 'capture' : 'bubble'); } var didWarnInvalidHydration = false; var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML'; var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning'; var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning'; var AUTOFOCUS = 'autoFocus'; var CHILDREN = 'children'; var STYLE = 'style'; var HTML$1 = '__html'; var HTML_NAMESPACE$1 = Namespaces.html; var warnedUnknownTags; var suppressHydrationWarning; var validatePropertiesInDevelopment; var warnForTextDifference; var warnForPropDifference; var warnForExtraAttributes; var warnForInvalidEventListener; var canDiffStyleForHydrationWarning; var normalizeMarkupForTextOrAttribute; var normalizeHTML; { warnedUnknownTags = { // There are working polyfills for . Let people use it. dialog: true, // Electron ships a custom tag to display external web content in // an isolated frame and process. // This tag is not present in non Electron environments such as JSDom which // is often used for testing purposes. // @see https://electronjs.org/docs/api/webview-tag webview: true }; validatePropertiesInDevelopment = function (type, props) { validateProperties(type, props); validateProperties$1(type, props); validateProperties$2(type, props, { registrationNameDependencies: registrationNameDependencies, possibleRegistrationNames: possibleRegistrationNames }); }; // IE 11 parses & normalizes the style attribute as opposed to other // browsers. It adds spaces and sorts the properties in some // non-alphabetical order. Handling that would require sorting CSS // properties in the client & server versions or applying // `expectedStyle` to a temporary DOM node to read its `style` attribute // normalized. Since it only affects IE, we're skipping style warnings // in that browser completely in favor of doing all that work. // See https://github.com/facebook/react/issues/11807 canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF. // It also can turn \u0000 into \uFFFD inside attributes. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream // If we have a mismatch, it might be caused by that. // We will still patch up in this case but not fire the warning. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g; var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; normalizeMarkupForTextOrAttribute = function (markup) { var markupString = typeof markup === 'string' ? markup : '' + markup; return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ''); }; warnForTextDifference = function (serverText, clientText) { if (didWarnInvalidHydration) { return; } var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText); var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText); if (normalizedServerText === normalizedClientText) { return; } didWarnInvalidHydration = true; error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText); }; warnForPropDifference = function (propName, serverValue, clientValue) { if (didWarnInvalidHydration) { return; } var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue); var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue); if (normalizedServerValue === normalizedClientValue) { return; } didWarnInvalidHydration = true; error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue)); }; warnForExtraAttributes = function (attributeNames) { if (didWarnInvalidHydration) { return; } didWarnInvalidHydration = true; var names = []; attributeNames.forEach(function (name) { names.push(name); }); error('Extra attributes from the server: %s', names); }; warnForInvalidEventListener = function (registrationName, listener) { if (listener === false) { error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName); } else { error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener); } }; // Parse the HTML and read it back to normalize the HTML string so that it // can be used for comparison. normalizeHTML = function (parent, html) { // We could have created a separate document here to avoid // re-initializing custom elements if they exist. But this breaks // how is being handled. So we use the same document. // See the discussion in https://github.com/facebook/react/pull/11157. var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName); testElement.innerHTML = html; return testElement.innerHTML; }; } function getOwnerDocumentFromRootContainer(rootContainerElement) { return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument; } function noop() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on // non-interactive elements, which means delegated click listeners do not // fire. The workaround for this bug involves attaching an empty click // listener on the target node. // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html // Just set it using the onclick property so that we don't have to manage any // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? node.onclick = noop; } function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) { for (var propKey in nextProps) { if (!nextProps.hasOwnProperty(propKey)) { continue; } var nextProp = nextProps[propKey]; if (propKey === STYLE) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be // mutated. We have already warned for this in the past. Object.freeze(nextProp); } } // Relies on `updateStylesByID` not mutating `styleUpdates`. setValueForStyles(domElement, nextProp); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { var nextHtml = nextProp ? nextProp[HTML$1] : undefined; if (nextHtml != null) { setInnerHTML(domElement, nextHtml); } } else if (propKey === CHILDREN) { if (typeof nextProp === 'string') { // Avoid setting initial textContent when the text is empty. In IE11 setting // textContent on a will cause the placeholder to not // show within the until it has been focused and blurred again. // https://github.com/facebook/react/issues/6731#issuecomment-254874553 var canSetTextContent = tag !== 'textarea' || nextProp !== ''; if (canSetTextContent) { setTextContent(domElement, nextProp); } } else if (typeof nextProp === 'number') { setTextContent(domElement, '' + nextProp); } } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) { if (nextProp != null) { if ( typeof nextProp !== 'function') { warnForInvalidEventListener(propKey, nextProp); } if (propKey === 'onScroll') { listenToNonDelegatedEvent('scroll', domElement); } } } else if (nextProp != null) { setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag); } } } function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) { // TODO: Handle wasCustomComponentTag for (var i = 0; i < updatePayload.length; i += 2) { var propKey = updatePayload[i]; var propValue = updatePayload[i + 1]; if (propKey === STYLE) { setValueForStyles(domElement, propValue); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { setInnerHTML(domElement, propValue); } else if (propKey === CHILDREN) { setTextContent(domElement, propValue); } else { setValueForProperty(domElement, propKey, propValue, isCustomComponentTag); } } } function createElement(type, props, rootContainerElement, parentNamespace) { var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML // tags get no namespace. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement); var domElement; var namespaceURI = parentNamespace; if (namespaceURI === HTML_NAMESPACE$1) { namespaceURI = getIntrinsicNamespace(type); } if (namespaceURI === HTML_NAMESPACE$1) { { isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to // allow or . if (!isCustomComponentTag && type !== type.toLowerCase()) { error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type); } } if (type === 'script') { // Create the script via .innerHTML so its "parser-inserted" flag is // set to true and it does not execute var div = ownerDocument.createElement('div'); div.innerHTML = '
tag. fontSize: 'inherit', fontWeight: 'inherit', color: 'inherit', margin: 0, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Tooltip.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipDelay = void 0; /** * {@docCategory Tooltip} */ var TooltipDelay; (function (TooltipDelay) { TooltipDelay[TooltipDelay["zero"] = 0] = "zero"; /** 300 ms delay before showing the tooltip */ TooltipDelay[TooltipDelay["medium"] = 1] = "medium"; /** 500 ms delay before showing the tooltip */ TooltipDelay[TooltipDelay["long"] = 2] = "long"; })(TooltipDelay = exports.TooltipDelay || (exports.TooltipDelay = {})); //# sourceMappingURL=Tooltip.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipHostBase = 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 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 TooltipHost_types_1 = __webpack_require__(/*! ./TooltipHost.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js"); var Tooltip_1 = __webpack_require__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js"); var Tooltip_types_1 = __webpack_require__(/*! ./Tooltip.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var TooltipHostBase = /** @class */ (function (_super) { tslib_1.__extends(TooltipHostBase, _super); // Constructor function TooltipHostBase(props) { var _this = _super.call(this, props) || this; // The wrapping div that gets the hover events _this._tooltipHost = React.createRef(); _this._defaultTooltipId = (0, Utilities_1.getId)('tooltip'); _this.show = function () { _this._toggleTooltip(true); }; _this.dismiss = function () { _this._hideTooltip(); }; _this._getTargetElement = function () { if (!_this._tooltipHost.current) { return undefined; } var overflowMode = _this.props.overflowMode; // Select target element based on overflow mode. For parent mode, you want to position the tooltip relative // to the parent element, otherwise it might look off. if (overflowMode !== undefined) { switch (overflowMode) { case TooltipHost_types_1.TooltipOverflowMode.Parent: return _this._tooltipHost.current.parentElement; case TooltipHost_types_1.TooltipOverflowMode.Self: return _this._tooltipHost.current; } } return _this._tooltipHost.current; }; _this._onTooltipFocus = function (ev) { if (_this._ignoreNextFocusEvent) { _this._ignoreNextFocusEvent = false; return; } _this._onTooltipMouseEnter(ev); }; _this._onTooltipContentFocus = function (ev) { if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== _this) { TooltipHostBase._currentVisibleTooltip.dismiss(); } TooltipHostBase._currentVisibleTooltip = _this; _this._clearDismissTimer(); _this._clearOpenTimer(); }; _this._onTooltipBlur = function (ev) { // The focused element gets a blur event when the document loses focus // (e.g. switching tabs in the browser), but we don't want to show the // tooltip again when the document gets focus back. Handle this case by // checking if the blurred element is still the document's activeElement, // and ignoring when it next gets focus back. // See https://github.com/microsoft/fluentui/issues/13541 _this._ignoreNextFocusEvent = (document === null || document === void 0 ? void 0 : document.activeElement) === ev.target; _this._dismissTimerId = _this._async.setTimeout(function () { _this._hideTooltip(); }, 0); }; // Show Tooltip _this._onTooltipMouseEnter = function (ev) { var _a = _this.props, overflowMode = _a.overflowMode, delay = _a.delay; if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== _this) { TooltipHostBase._currentVisibleTooltip.dismiss(); } TooltipHostBase._currentVisibleTooltip = _this; if (overflowMode !== undefined) { var overflowElement = _this._getTargetElement(); if (overflowElement && !(0, Utilities_1.hasOverflow)(overflowElement)) { return; } } if (ev.target && (0, Utilities_1.portalContainsElement)(ev.target, _this._getTargetElement())) { // Do not show tooltip when target is inside a portal relative to TooltipHost. return; } _this._clearDismissTimer(); _this._clearOpenTimer(); if (delay !== Tooltip_types_1.TooltipDelay.zero) { var delayTime = _this._getDelayTime(delay); // non-null assertion because we set it in `defaultProps` _this._openTimerId = _this._async.setTimeout(function () { _this._toggleTooltip(true); }, delayTime); } else { _this._toggleTooltip(true); } }; // Hide Tooltip _this._onTooltipMouseLeave = function (ev) { var closeDelay = _this.props.closeDelay; _this._clearDismissTimer(); _this._clearOpenTimer(); if (closeDelay) { _this._dismissTimerId = _this._async.setTimeout(function () { _this._toggleTooltip(false); }, closeDelay); } else { _this._toggleTooltip(false); } if (TooltipHostBase._currentVisibleTooltip === _this) { TooltipHostBase._currentVisibleTooltip = undefined; } }; _this._onTooltipKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if ((ev.which === Utilities_1.KeyCodes.escape || ev.ctrlKey) && _this.state.isTooltipVisible) { _this._hideTooltip(); ev.stopPropagation(); } }; _this._clearDismissTimer = function () { _this._async.clearTimeout(_this._dismissTimerId); }; _this._clearOpenTimer = function () { _this._async.clearTimeout(_this._openTimerId); }; // Hide Tooltip _this._hideTooltip = function () { _this._clearOpenTimer(); _this._clearDismissTimer(); _this._toggleTooltip(false); }; _this._toggleTooltip = function (isTooltipVisible) { if (_this.state.isTooltipVisible !== isTooltipVisible) { _this.setState({ isTooltipVisible: isTooltipVisible }, function () { return _this.props.onTooltipToggle && _this.props.onTooltipToggle(isTooltipVisible); }); } }; _this._getDelayTime = function (delay) { switch (delay) { case Tooltip_types_1.TooltipDelay.medium: return 300; case Tooltip_types_1.TooltipDelay.long: return 500; default: return 0; } }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { isAriaPlaceholderRendered: false, isTooltipVisible: false, }; _this._async = new Utilities_1.Async(_this); return _this; } // Render TooltipHostBase.prototype.render = function () { var _a = this.props, calloutProps = _a.calloutProps, children = _a.children, content = _a.content, directionalHint = _a.directionalHint, directionalHintForRTL = _a.directionalHintForRTL, className = _a.hostClassName, id = _a.id, // eslint-disable-next-line deprecation/deprecation _b = _a.setAriaDescribedBy, // eslint-disable-next-line deprecation/deprecation setAriaDescribedBy = _b === void 0 ? true : _b, tooltipProps = _a.tooltipProps, styles = _a.styles, theme = _a.theme; this._classNames = getClassNames(styles, { theme: theme, className: className, }); var isTooltipVisible = this.state.isTooltipVisible; var tooltipId = id || this._defaultTooltipId; var tooltipRenderProps = tslib_1.__assign(tslib_1.__assign({ id: "".concat(tooltipId, "--tooltip"), content: content, targetElement: this._getTargetElement(), directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, calloutProps: (0, Utilities_1.assign)({}, calloutProps, { onDismiss: this._hideTooltip, onFocus: this._onTooltipContentFocus, onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave, }), onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave }, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, ['id'])), tooltipProps); // Get the content of the tooltip for use in the hidden div used for screen readers var tooltipContent = (tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.onRenderContent) ? tooltipProps.onRenderContent(tooltipRenderProps, function (props) { return ((props === null || props === void 0 ? void 0 : props.content) ? React.createElement(React.Fragment, null, props.content) : null); }) : content; var showTooltip = isTooltipVisible && !!tooltipContent; var ariaDescribedBy = setAriaDescribedBy && isTooltipVisible && !!tooltipContent ? tooltipId : undefined; return (React.createElement("div", tslib_1.__assign({ className: this._classNames.root, ref: this._tooltipHost }, { onFocusCapture: this._onTooltipFocus }, { onBlurCapture: this._onTooltipBlur }, { onMouseEnter: this._onTooltipMouseEnter, onMouseLeave: this._onTooltipMouseLeave, onKeyDown: this._onTooltipKeyDown, role: "none", "aria-describedby": ariaDescribedBy }), children, showTooltip && React.createElement(Tooltip_1.Tooltip, tslib_1.__assign({}, tooltipRenderProps)), React.createElement("div", { hidden: true, id: tooltipId, style: Styling_1.hiddenContentStyle }, tooltipContent))); }; TooltipHostBase.prototype.componentWillUnmount = function () { if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip === this) { TooltipHostBase._currentVisibleTooltip = undefined; } this._async.dispose(); }; TooltipHostBase.defaultProps = { delay: Tooltip_types_1.TooltipDelay.medium, }; return TooltipHostBase; }(React.Component)); exports.TooltipHostBase = TooltipHostBase; //# sourceMappingURL=TooltipHost.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipHost = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TooltipHost_base_1 = __webpack_require__(/*! ./TooltipHost.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js"); var TooltipHost_styles_1 = __webpack_require__(/*! ./TooltipHost.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.styles.js"); exports.TooltipHost = (0, Utilities_1.styled)(TooltipHost_base_1.TooltipHostBase, TooltipHost_styles_1.getStyles, undefined, { scope: 'TooltipHost', }); //# sourceMappingURL=TooltipHost.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.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-TooltipHost', ariaPlaceholder: 'ms-TooltipHost-aria-placeholder', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { display: 'inline', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=TooltipHost.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TooltipOverflowMode = void 0; /** * {@docCategory Tooltip} */ var TooltipOverflowMode; (function (TooltipOverflowMode) { /** Only show tooltip if parent DOM element is overflowing */ TooltipOverflowMode[TooltipOverflowMode["Parent"] = 0] = "Parent"; /** * Only show tooltip if tooltip host's content is overflowing. * Note that this does not check the children for overflow, only the TooltipHost root. */ TooltipOverflowMode[TooltipOverflowMode["Self"] = 1] = "Self"; })(TooltipOverflowMode = exports.TooltipOverflowMode || (exports.TooltipOverflowMode = {})); //# sourceMappingURL=TooltipHost.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/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__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Tooltip.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Tooltip.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/Tooltip.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TooltipHost.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/TooltipHost.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WeeklyDayPickerBase = 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_types_1 = __webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"); var CalendarDayGrid_1 = __webpack_require__(/*! ../CalendarDayGrid/CalendarDayGrid */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.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 defaults_1 = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var WeeklyDayPickerBase = /** @class */ (function (_super) { tslib_1.__extends(WeeklyDayPickerBase, _super); function WeeklyDayPickerBase(props) { var _this = _super.call(this, props) || this; _this._dayGrid = React.createRef(); _this._onSelectDate = function (date) { var onSelectDate = _this.props.onSelectDate; // don't set the navigated date on selection because selection never causes navigation _this.setState({ selectedDate: date, }); _this._focusOnUpdate = true; if (onSelectDate) { onSelectDate(date); } }; _this._onNavigateDate = function (date, focusOnNavigatedDay) { var onNavigateDate = _this.props.onNavigateDate; _this.setState({ navigatedDate: date, }); _this._focusOnUpdate = focusOnNavigatedDay; if (onNavigateDate) { onNavigateDate(date); } }; _this._renderPreviousWeekNavigationButton = function (classNames) { var _a; var _b = _this.props, minDate = _b.minDate, firstDayOfWeek = _b.firstDayOfWeek, navigationIcons = _b.navigationIcons; var navigatedDate = _this.state.navigatedDate; var leftNavigationIcon = (0, utilities_1.getRTL)() ? navigationIcons.rightNavigation : navigationIcons.leftNavigation; // determine if previous week in bounds var prevWeekInBounds = minDate ? (0, date_time_utilities_1.compareDatePart)(minDate, (0, date_time_utilities_1.getStartDateOfWeek)(navigatedDate, firstDayOfWeek)) < 0 : true; return (React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationIconButton, (_a = {}, _a[classNames.disabledStyle] = !prevWeekInBounds, _a)), disabled: !prevWeekInBounds, "aria-disabled": !prevWeekInBounds, onClick: prevWeekInBounds ? _this._onSelectPrevDateRange : undefined, onKeyDown: prevWeekInBounds ? _this._onButtonKeyDown(_this._onSelectPrevDateRange) : undefined, title: _this._createPreviousWeekAriaLabel(), type: "button" }, React.createElement(Icon_1.Icon, { iconName: leftNavigationIcon }))); }; _this._renderNextWeekNavigationButton = function (classNames) { var _a; var _b = _this.props, maxDate = _b.maxDate, firstDayOfWeek = _b.firstDayOfWeek, navigationIcons = _b.navigationIcons; var navigatedDate = _this.state.navigatedDate; var rightNavigationIcon = (0, utilities_1.getRTL)() ? navigationIcons.leftNavigation : navigationIcons.rightNavigation; // determine if next week in bounds var nextWeekInBounds = maxDate ? (0, date_time_utilities_1.compareDatePart)((0, date_time_utilities_1.addDays)((0, date_time_utilities_1.getStartDateOfWeek)(navigatedDate, firstDayOfWeek), 7), maxDate) < 0 : true; return (React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationIconButton, (_a = {}, _a[classNames.disabledStyle] = !nextWeekInBounds, _a)), disabled: !nextWeekInBounds, "aria-disabled": !nextWeekInBounds, onClick: nextWeekInBounds ? _this._onSelectNextDateRange : undefined, onKeyDown: nextWeekInBounds ? _this._onButtonKeyDown(_this._onSelectNextDateRange) : undefined, title: _this._createNextWeekAriaLabel(), type: "button" }, React.createElement(Icon_1.Icon, { iconName: rightNavigationIcon }))); }; _this._onSelectPrevDateRange = function () { if (_this.props.showFullMonth) { _this._navigateDate((0, date_time_utilities_1.addMonths)(_this.state.navigatedDate, -1)); } else { _this._navigateDate((0, date_time_utilities_1.addDays)(_this.state.navigatedDate, -7)); } }; _this._onSelectNextDateRange = function () { if (_this.props.showFullMonth) { _this._navigateDate((0, date_time_utilities_1.addMonths)(_this.state.navigatedDate, 1)); } else { _this._navigateDate((0, date_time_utilities_1.addDays)(_this.state.navigatedDate, 7)); } }; _this._navigateDate = function (date) { _this.setState({ navigatedDate: date, }); if (_this.props.onNavigateDate) { _this.props.onNavigateDate(date); } }; _this._onWrapperKeyDown = function (ev) { // 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; default: break; } }; _this._onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: callback(); break; } }; }; _this._onTouchStart = function (ev) { var touch = ev.touches[0]; if (touch) { _this._initialTouchX = touch.clientX; } }; _this._onTouchMove = function (ev) { var isRtl = (0, utilities_1.getRTL)(); var touch = ev.touches[0]; if (touch && _this._initialTouchX !== undefined && touch.clientX !== _this._initialTouchX) { if ((touch.clientX - _this._initialTouchX) * (isRtl ? -1 : 1) < 0) { // swipe right _this._onSelectNextDateRange(); } else { // swipe left _this._onSelectPrevDateRange(); } _this._initialTouchX = undefined; } }; _this._createPreviousWeekAriaLabel = function () { var _a = _this.props, strings = _a.strings, showFullMonth = _a.showFullMonth, firstDayOfWeek = _a.firstDayOfWeek; var navigatedDate = _this.state.navigatedDate; var ariaLabel = undefined; if (showFullMonth && strings.prevMonthAriaLabel) { ariaLabel = strings.prevMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, -1).getMonth()]; } else if (!showFullMonth && strings.prevWeekAriaLabel) { var firstDayOfPreviousWeek = (0, date_time_utilities_1.getStartDateOfWeek)((0, date_time_utilities_1.addDays)(navigatedDate, -7), firstDayOfWeek); var lastDayOfPreviousWeek = (0, date_time_utilities_1.addDays)(firstDayOfPreviousWeek, 6); ariaLabel = strings.prevWeekAriaLabel + ' ' + _this._formatDateRange(firstDayOfPreviousWeek, lastDayOfPreviousWeek); } return ariaLabel; }; _this._createNextWeekAriaLabel = function () { var _a = _this.props, strings = _a.strings, showFullMonth = _a.showFullMonth, firstDayOfWeek = _a.firstDayOfWeek; var navigatedDate = _this.state.navigatedDate; var ariaLabel = undefined; if (showFullMonth && strings.nextMonthAriaLabel) { ariaLabel = strings.nextMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, 1).getMonth()]; } else if (!showFullMonth && strings.nextWeekAriaLabel) { var firstDayOfNextWeek = (0, date_time_utilities_1.getStartDateOfWeek)((0, date_time_utilities_1.addDays)(navigatedDate, 7), firstDayOfWeek); var lastDayOfNextWeek = (0, date_time_utilities_1.addDays)(firstDayOfNextWeek, 6); ariaLabel = strings.nextWeekAriaLabel + ' ' + _this._formatDateRange(firstDayOfNextWeek, lastDayOfNextWeek); } return ariaLabel; }; _this._formatDateRange = function (startDate, endDate) { var _a = _this.props, dateTimeFormatter = _a.dateTimeFormatter, strings = _a.strings; return "".concat(dateTimeFormatter === null || dateTimeFormatter === void 0 ? void 0 : dateTimeFormatter.formatMonthDayYear(startDate, strings), " - ").concat(dateTimeFormatter === null || dateTimeFormatter === void 0 ? void 0 : dateTimeFormatter.formatMonthDayYear(endDate, strings)); }; (0, utilities_1.initializeComponentRef)(_this); var currentDate = props.initialDate && !isNaN(props.initialDate.getTime()) ? props.initialDate : props.today || new Date(); _this.state = { selectedDate: currentDate, navigatedDate: currentDate, previousShowFullMonth: !!props.showFullMonth, animationDirection: props.animationDirection, }; _this._focusOnUpdate = false; return _this; } WeeklyDayPickerBase.getDerivedStateFromProps = function (nextProps, prevState) { var currentDate = nextProps.initialDate && !isNaN(nextProps.initialDate.getTime()) ? nextProps.initialDate : nextProps.today || new Date(); var showFullMonth = !!nextProps.showFullMonth; var newAnimationDirection = showFullMonth !== prevState.previousShowFullMonth ? Calendar_types_1.AnimationDirection.Vertical : Calendar_types_1.AnimationDirection.Horizontal; if (!(0, date_time_utilities_1.compareDates)(currentDate, prevState.selectedDate)) { return { selectedDate: currentDate, navigatedDate: currentDate, previousShowFullMonth: showFullMonth, animationDirection: newAnimationDirection, }; } return { selectedDate: currentDate, navigatedDate: prevState.navigatedDate, previousShowFullMonth: showFullMonth, animationDirection: newAnimationDirection, }; }; WeeklyDayPickerBase.prototype.focus = function () { if (this._dayGrid && this._dayGrid.current) { this._dayGrid.current.focus(); } }; WeeklyDayPickerBase.prototype.render = function () { var _a = this.props, strings = _a.strings, dateTimeFormatter = _a.dateTimeFormatter, firstDayOfWeek = _a.firstDayOfWeek, minDate = _a.minDate, maxDate = _a.maxDate, restrictedDates = _a.restrictedDates, today = _a.today, styles = _a.styles, theme = _a.theme, className = _a.className, showFullMonth = _a.showFullMonth, weeksToShow = _a.weeksToShow, calendarDayGridProps = tslib_1.__rest(_a, ["strings", "dateTimeFormatter", "firstDayOfWeek", "minDate", "maxDate", "restrictedDates", "today", "styles", "theme", "className", "showFullMonth", "weeksToShow"]); var classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: classNames.root, onKeyDown: this._onWrapperKeyDown, onTouchStart: this._onTouchStart, onTouchMove: this._onTouchMove, "aria-expanded": showFullMonth }, this._renderPreviousWeekNavigationButton(classNames), React.createElement(CalendarDayGrid_1.CalendarDayGrid, tslib_1.__assign({ styles: styles, componentRef: this._dayGrid, strings: strings, selectedDate: this.state.selectedDate, navigatedDate: this.state.navigatedDate, firstDayOfWeek: firstDayOfWeek, firstWeekOfYear: date_time_utilities_1.FirstWeekOfYear.FirstDay, dateRangeType: date_time_utilities_1.DateRangeType.Day, weeksToShow: showFullMonth ? weeksToShow : 1, dateTimeFormatter: dateTimeFormatter, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, onSelectDate: this._onSelectDate, onNavigateDate: this._onNavigateDate, today: today, lightenDaysOutsideNavigatedMonth: showFullMonth, animationDirection: this.state.animationDirection }, calendarDayGridProps)), this._renderNextWeekNavigationButton(classNames))); }; WeeklyDayPickerBase.prototype.componentDidUpdate = function () { if (this._focusOnUpdate) { this.focus(); this._focusOnUpdate = false; } }; WeeklyDayPickerBase.defaultProps = { onSelectDate: undefined, initialDate: undefined, today: new Date(), firstDayOfWeek: date_time_utilities_1.DayOfWeek.Sunday, strings: defaults_1.defaultWeeklyDayPickerStrings, navigationIcons: defaults_1.defaultWeeklyDayPickerNavigationIcons, dateTimeFormatter: date_time_utilities_1.DEFAULT_DATE_FORMATTING, animationDirection: Calendar_types_1.AnimationDirection.Horizontal, }; return WeeklyDayPickerBase; }(React.Component)); exports.WeeklyDayPickerBase = WeeklyDayPickerBase; //# sourceMappingURL=WeeklyDayPicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WeeklyDayPicker = void 0; var WeeklyDayPicker_base_1 = __webpack_require__(/*! ./WeeklyDayPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.base.js"); var WeeklyDayPicker_styles_1 = __webpack_require__(/*! ./WeeklyDayPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.WeeklyDayPicker = (0, Utilities_1.styled)(WeeklyDayPicker_base_1.WeeklyDayPickerBase, WeeklyDayPicker_styles_1.styles, undefined, { scope: 'WeeklyDayPicker' }); //# sourceMappingURL=WeeklyDayPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.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 utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var GlobalClassNames = { root: 'ms-WeeklyDayPicker-root', }; var styles = function (props) { var _a; var className = props.className, theme = props.theme; var palette = theme.palette; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, style_utilities_1.normalize, { width: 220, padding: 12, boxSizing: 'content-box', display: 'flex', alignItems: 'center', flexDirection: 'row', }, className, ], dayButton: { borderRadius: '100%', }, dayIsToday: {}, dayCell: { borderRadius: '100%!important', }, daySelected: {}, navigationIconButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: 0 }), { width: 12, minWidth: 12, height: 0, overflow: 'hidden', padding: 0, margin: 0, border: 'none', display: 'flex', alignItems: 'center', backgroundColor: palette.neutralLighter, fontSize: style_utilities_1.FontSizes.small, fontFamily: 'inherit', selectors: (_a = {}, _a[".".concat(classNames.root, ":hover &, .").concat(utilities_1.IsFocusVisibleClassName, " .").concat(classNames.root, ":focus &, ") + ".".concat(utilities_1.IsFocusVisibleClassName, " &:focus")] = { height: 53, minHeight: 12, overflow: 'initial', }, _a[".".concat(utilities_1.IsFocusVisibleClassName, " .").concat(classNames.root, ":focus-within &")] = { // edge does not recognize focus-within, so separate it out height: 53, minHeight: 12, overflow: 'initial', }, _a['&:hover'] = { cursor: 'pointer', backgroundColor: palette.neutralLight, }, _a['&:active'] = { backgroundColor: palette.neutralTertiary, }, _a), }, ], disabledStyle: { selectors: { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }, }; }; exports.styles = styles; //# sourceMappingURL=WeeklyDayPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=WeeklyDayPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultWeeklyDayPickerNavigationIcons = exports.defaultWeeklyDayPickerStrings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); exports.defaultWeeklyDayPickerStrings = tslib_1.__assign(tslib_1.__assign({}, date_time_utilities_1.DEFAULT_CALENDAR_STRINGS), { prevWeekAriaLabel: 'Previous week', nextWeekAriaLabel: 'Next week', prevMonthAriaLabel: 'Go to previous month', nextMonthAriaLabel: 'Go to next month', prevYearAriaLabel: 'Go to previous year', nextYearAriaLabel: 'Go to next year', closeButtonAriaLabel: 'Close date picker' }); exports.defaultWeeklyDayPickerNavigationIcons = { leftNavigation: 'ChevronLeft', rightNavigation: 'ChevronRight', }; //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/index.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/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__(/*! ./WeeklyDayPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./WeeklyDayPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/WeeklyDayPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/defaults.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.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"); // Deprecated, import directly from the component folder now. tslib_1.__exportStar(__webpack_require__(/*! ../../Autofill/Autofill */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.js"), exports); //# sourceMappingURL=BaseAutoFill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.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"); // Deprecated, import directly from the component folder now. tslib_1.__exportStar(__webpack_require__(/*! ../../Autofill/Autofill.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.types.js"), exports); //# sourceMappingURL=BaseAutoFill.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BasePickerListBelow = exports.BasePicker = 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 index_1 = __webpack_require__(/*! ../../utilities/selection/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Suggestions_1 = __webpack_require__(/*! ./Suggestions/Suggestions */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js"); var Suggestions_styles_1 = __webpack_require__(/*! ./Suggestions/Suggestions.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js"); var SuggestionsController_1 = __webpack_require__(/*! ./Suggestions/SuggestionsController */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js"); var BasePicker_types_1 = __webpack_require__(/*! ./BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var index_2 = __webpack_require__(/*! ../Autofill/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/index.js"); var stylesImport = __webpack_require__(/*! ./BasePicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js"); var legacyStyles = stylesImport; var EXTENDED_LOAD_TIME = 3000; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * Should be removed once new picker without inheritance is created */ function getStyledSuggestions(suggestionsType) { return (0, Utilities_1.styled)(suggestionsType, Suggestions_styles_1.getStyles, undefined, { scope: 'Suggestions', }); } /** * {@docCategory Pickers} */ var BasePicker = /** @class */ (function (_super) { tslib_1.__extends(BasePicker, _super); function BasePicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; // Refs _this.root = React.createRef(); _this.input = React.createRef(); _this.suggestionElement = React.createRef(); /** * @deprecated this is no longer necessary as typescript now supports generic elements */ _this.SuggestionOfProperType = Suggestions_1.Suggestions; // eslint-disable-next-line deprecation/deprecation _this._styledSuggestions = getStyledSuggestions(_this.SuggestionOfProperType); _this._overrideScrollDismiss = false; _this.dismissSuggestions = function (ev) { var selectItemFunction = function () { var addItemOnDismiss = true; if (_this.props.onDismiss) { addItemOnDismiss = _this.props.onDismiss(ev, _this.suggestionStore.currentSuggestion ? _this.suggestionStore.currentSuggestion.item : undefined); } if (!ev || (ev && !ev.defaultPrevented)) { // Select the first suggestion if one is available and permitted by onDismiss when user leaves. if (addItemOnDismiss !== false && _this.canAddItems() && _this.suggestionStore.hasSelectedSuggestion() && _this.state.suggestedDisplayValue) { _this.addItemByIndex(0); } } }; if (_this.currentPromise) { _this.currentPromise.then(function () { return selectItemFunction(); }); } else { selectItemFunction(); } _this.setState({ suggestionsVisible: false }); }; _this.refocusSuggestions = function (keyCode) { _this.resetFocus(); if (_this.suggestionStore.suggestions && _this.suggestionStore.suggestions.length > 0) { if (keyCode === Utilities_1.KeyCodes.up) { _this.suggestionStore.setSelectedSuggestion(_this.suggestionStore.suggestions.length - 1); } else if (keyCode === Utilities_1.KeyCodes.down) { _this.suggestionStore.setSelectedSuggestion(0); } } }; _this.onInputChange = function (value) { _this.updateValue(value); _this.setState({ moreSuggestionsAvailable: true, isMostRecentlyUsedVisible: false, }); }; _this.onSuggestionClick = function (ev, item, index) { _this.addItemByIndex(index); }; _this.onSuggestionRemove = function (ev, item, index) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(item); } _this.suggestionStore.removeSuggestion(index); }; _this.onInputFocus = function (ev) { _this.selection.setAllSelected(false); // Only trigger all of the focus if this component isn't already focused. // For example when an item is selected or removed from the selected list it should be treated // as though the input is still focused. if (!_this.state.isFocused) { _this._userTriggeredSuggestions(); if (_this.props.inputProps && _this.props.inputProps.onFocus) { _this.props.inputProps.onFocus(ev); } } }; _this.onInputBlur = function (ev) { if (_this.props.inputProps && _this.props.inputProps.onBlur) { _this.props.inputProps.onBlur(ev); } }; _this.onBlur = function (ev) { if (_this.state.isFocused) { // Only blur the entire component if an unrelated element gets focus. // Otherwise treat it as though it still has focus. // Do nothing if the blur is coming from something // inside the comboBox root or the comboBox menu since // it we are not really bluring from the whole comboBox 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 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 && !(0, Utilities_1.elementContains)(_this.root.current, relatedTarget)) { _this.setState({ isFocused: false }); if (_this.props.onBlur) { _this.props.onBlur(ev); } } } }; /** * Resets focus to last element in wrapper div if clicking back into Picker that has hit item limit */ _this.onWrapperClick = function (ev) { if (_this.state.items.length && !_this.canAddItems()) { _this.resetFocus(_this.state.items.length - 1); } }; /** * Reveals suggestions any time the user clicks on the input element * without shifting focus. */ _this.onClick = function (ev) { if (_this.props.inputProps !== undefined && _this.props.inputProps.onClick !== undefined) { _this.props.inputProps.onClick(ev); } // Only primary (left) clicks show suggestions. if (ev.button === 0) { _this._userTriggeredSuggestions(); } }; _this.onFocus = function () { if (!_this.state.isFocused) { _this.setState({ isFocused: true }); } }; _this.onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation var keyCode = ev.which; switch (keyCode) { case Utilities_1.KeyCodes.escape: if (_this.state.suggestionsVisible) { _this.setState({ suggestionsVisible: false }); ev.preventDefault(); ev.stopPropagation(); } break; case Utilities_1.KeyCodes.tab: case Utilities_1.KeyCodes.enter: if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedActionSelected()) { _this.suggestionElement.current.executeSelectedAction(); } else if (!ev.shiftKey && _this.suggestionStore.hasSelectedSuggestion() && _this.state.suggestionsVisible) { _this.completeSuggestion(); ev.preventDefault(); ev.stopPropagation(); } else { _this._completeGenericSuggestion(); } break; case Utilities_1.KeyCodes.backspace: if (!_this.props.disabled) { _this.onBackspace(ev); } ev.stopPropagation(); break; case Utilities_1.KeyCodes.del: if (!_this.props.disabled) { if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible && _this.suggestionStore.currentIndex !== -1) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(_this.suggestionStore.currentSuggestion.item); } _this.suggestionStore.removeSuggestion(_this.suggestionStore.currentIndex); _this.forceUpdate(); } else { _this.onBackspace(ev); } } ev.stopPropagation(); break; case Utilities_1.KeyCodes.up: if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible) { if (_this.suggestionElement.current && _this.suggestionElement.current.tryHandleKeyDown(keyCode, _this.suggestionStore.currentIndex)) { ev.preventDefault(); ev.stopPropagation(); _this.forceUpdate(); } else { if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedAction() && _this.suggestionStore.currentIndex === 0) { ev.preventDefault(); ev.stopPropagation(); _this.suggestionElement.current.focusAboveSuggestions(); _this.suggestionStore.deselectAllSuggestions(); _this.forceUpdate(); } else { if (_this.suggestionStore.previousSuggestion()) { ev.preventDefault(); ev.stopPropagation(); _this.onSuggestionSelect(); } } } } break; case Utilities_1.KeyCodes.down: if (_this.input.current && ev.target === _this.input.current.inputElement && _this.state.suggestionsVisible) { if (_this.suggestionElement.current && _this.suggestionElement.current.tryHandleKeyDown(keyCode, _this.suggestionStore.currentIndex)) { ev.preventDefault(); ev.stopPropagation(); _this.forceUpdate(); } else { if (_this.suggestionElement.current && _this.suggestionElement.current.hasSuggestedAction() && _this.suggestionStore.currentIndex + 1 === _this.suggestionStore.suggestions.length) { ev.preventDefault(); ev.stopPropagation(); _this.suggestionElement.current.focusBelowSuggestions(); _this.suggestionStore.deselectAllSuggestions(); _this.forceUpdate(); } else { if (_this.suggestionStore.nextSuggestion()) { ev.preventDefault(); ev.stopPropagation(); _this.onSuggestionSelect(); } } } } break; } }; _this.onItemChange = function (changedItem, index) { var items = _this.state.items; if (index >= 0) { var newItems = items; newItems[index] = changedItem; _this._updateSelectedItems(newItems); } }; _this.onGetMoreResults = function () { _this.setState({ isSearching: true, }, function () { if (_this.props.onGetMoreResults && _this.input.current) { var suggestions = _this.props.onGetMoreResults(_this.input.current.value, _this.state.items); var suggestionsArray = suggestions; var suggestionsPromiseLike = suggestions; if (Array.isArray(suggestionsArray)) { _this.updateSuggestions(suggestionsArray); _this.setState({ isSearching: false }); } else if (suggestionsPromiseLike.then) { suggestionsPromiseLike.then(function (newSuggestions) { _this.updateSuggestions(newSuggestions); _this.setState({ isSearching: false }); }); } } else { _this.setState({ isSearching: false }); } if (_this.input.current) { _this.input.current.focus(); } _this.setState({ moreSuggestionsAvailable: false, isResultsFooterVisible: true, }); }); }; _this.completeSelection = function (item) { _this.addItem(item); _this.updateValue(''); if (_this.input.current) { _this.input.current.clear(); } _this.setState({ suggestionsVisible: false }); }; _this.addItemByIndex = function (index) { _this.completeSelection(_this.suggestionStore.getSuggestionAtIndex(index).item); }; _this.addItem = function (item) { var processedItem = _this.props.onItemSelected ? _this.props.onItemSelected(item) : item; if (processedItem === null) { return; } var processedItemObject = processedItem; var processedItemPromiseLike = processedItem; if (processedItemPromiseLike && processedItemPromiseLike.then) { processedItemPromiseLike.then(function (resolvedProcessedItem) { var newItems = _this.state.items.concat([resolvedProcessedItem]); _this._updateSelectedItems(newItems); }); } else { var newItems = _this.state.items.concat([processedItemObject]); _this._updateSelectedItems(newItems); } _this.setState({ suggestedDisplayValue: '', selectionRemoved: undefined }); }; _this.removeItem = function (item) { var items = _this.state.items; var index = items.indexOf(item); if (index >= 0) { var newItems = items.slice(0, index).concat(items.slice(index + 1)); _this.setState({ selectionRemoved: item }); _this._updateSelectedItems(newItems); // reset selection removed text after a timeout so it isn't reached by screen reader virtual cursor. // the exact timing isn't important, the live region will fully read even if the text is removed. _this._async.setTimeout(function () { _this.setState({ selectionRemoved: undefined }); }, 1000); } }; _this.removeItems = function (itemsToRemove) { var items = _this.state.items; var newItems = items.filter(function (item) { return itemsToRemove.indexOf(item) === -1; }); _this._updateSelectedItems(newItems); }; /** * @deprecated this is no longer necessary as focuszone has been removed */ _this._shouldFocusZoneEnterInnerZone = function (ev) { // If suggestions are shown const up/down keys control them, otherwise allow them through to control the focusZone. if (_this.state.suggestionsVisible) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.up: case Utilities_1.KeyCodes.down: return true; } } // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { return true; } return false; }; _this._onResolveSuggestions = function (updatedValue) { var suggestions = _this.props.onResolveSuggestions(updatedValue, _this.state.items); if (suggestions !== null) { _this.updateSuggestionsList(suggestions, updatedValue); } }; _this._completeGenericSuggestion = function () { if (_this.props.onValidateInput && _this.input.current && _this.props.onValidateInput(_this.input.current.value) !== BasePicker_types_1.ValidationState.invalid && _this.props.createGenericItem) { var itemToConvert = _this.props.createGenericItem(_this.input.current.value, _this.props.onValidateInput(_this.input.current.value)); _this.suggestionStore.createGenericSuggestion(itemToConvert); _this.completeSuggestion(); } }; /** * This should be called when the user does something other than use text entry to trigger suggestions. * */ _this._userTriggeredSuggestions = function () { if (!_this.state.suggestionsVisible) { var input = _this.input.current ? _this.input.current.value : ''; if (!input) { _this.onEmptyInputFocus(); } else { if (_this.suggestionStore.suggestions.length === 0) { _this._onResolveSuggestions(input); } else { _this.setState({ isMostRecentlyUsedVisible: false, suggestionsVisible: true, }); } } } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); var items = basePickerProps.selectedItems || basePickerProps.defaultSelectedItems || []; _this._id = (0, Utilities_1.getId)(); _this._ariaMap = { selectedItems: "selected-items-".concat(_this._id), selectedSuggestionAlert: "selected-suggestion-alert-".concat(_this._id), suggestionList: "suggestion-list-".concat(_this._id), combobox: "combobox-".concat(_this._id), }; _this.suggestionStore = new SuggestionsController_1.SuggestionsController(); _this.selection = new index_1.Selection({ onSelectionChanged: function () { return _this.onSelectionChange(); } }); _this.selection.setItems(items); _this.state = { items: items, suggestedDisplayValue: '', isMostRecentlyUsedVisible: false, moreSuggestionsAvailable: false, isFocused: false, isSearching: false, selectedIndices: [], selectionRemoved: undefined, }; return _this; } BasePicker.getDerivedStateFromProps = function (newProps) { if (newProps.selectedItems) { return { items: newProps.selectedItems }; } return null; }; Object.defineProperty(BasePicker.prototype, "items", { get: function () { return this.state.items; }, enumerable: false, configurable: true }); BasePicker.prototype.componentDidMount = function () { this.selection.setItems(this.state.items); this._onResolveSuggestions = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay); }; BasePicker.prototype.componentDidUpdate = function (oldProps, oldState) { var _this = this; if (this.state.items && this.state.items !== oldState.items) { var currentSelectedIndex = this.selection.getSelectedIndices()[0]; this.selection.setItems(this.state.items); if (this.state.isFocused) { // Reset focus and selection so that selected item stays in sync if something // has been removed if (this.state.items.length < oldState.items.length) { this.selection.setIndexSelected(currentSelectedIndex, false, true); this.resetFocus(currentSelectedIndex); } // Reset focus to last item if the input is removed else if (this.state.items.length > oldState.items.length && !this.canAddItems()) { this.resetFocus(this.state.items.length - 1); } } } // handle dismiss buffer after suggestions are opened if (this.state.suggestionsVisible && !oldState.suggestionsVisible) { this._overrideScrollDismiss = true; this._async.clearTimeout(this._overrideScrollDimissTimeout); this._overrideScrollDimissTimeout = this._async.setTimeout(function () { _this._overrideScrollDismiss = false; }, 100); } }; BasePicker.prototype.componentWillUnmount = function () { if (this.currentPromise) { this.currentPromise = undefined; } this._async.dispose(); }; BasePicker.prototype.focus = function () { if (this.input.current) { this.input.current.focus(); } }; BasePicker.prototype.focusInput = function () { if (this.input.current) { this.input.current.focus(); } }; BasePicker.prototype.completeSuggestion = function (forceComplete) { if (this.suggestionStore.hasSelectedSuggestion() && this.input.current) { this.completeSelection(this.suggestionStore.currentSuggestion.item); } else if (forceComplete) { this._completeGenericSuggestion(); } }; BasePicker.prototype.render = function () { var _a = this.state, suggestedDisplayValue = _a.suggestedDisplayValue, isFocused = _a.isFocused, items = _a.items; var _b = this.props, className = _b.className, inputProps = _b.inputProps, disabled = _b.disabled, selectionAriaLabel = _b.selectionAriaLabel, _c = _b.selectionRole, selectionRole = _c === void 0 ? 'list' : _c, theme = _b.theme, styles = _b.styles; var suggestionsVisible = !!this.state.suggestionsVisible; var suggestionsAvailable = suggestionsVisible ? this._ariaMap.suggestionList : undefined; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from BasePicker class because it // might be used by consumers who created custom pickers from extending from // this base class and have not used the new 'styles' prop. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // for every other already existing picker variant (PeoplePicker, TagPicker) // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, isFocused: isFocused, disabled: disabled, inputClassName: inputProps && inputProps.className, }) : { root: (0, Utilities_1.css)('ms-BasePicker', className ? className : ''), text: (0, Utilities_1.css)('ms-BasePicker-text', legacyStyles.pickerText, this.state.isFocused && legacyStyles.inputFocused), itemsWrapper: legacyStyles.pickerItems, input: (0, Utilities_1.css)('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className), screenReaderText: legacyStyles.screenReaderOnly, }; var comboLabel = this.props['aria-label'] || (inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label']); // selectionAriaLabel is contained in a separate rather than an aria-label on the items list // because if the items list has an aria-label, the aria-describedby on the input will only read // that label instead of all the selected items. Using aria-labelledby instead fixes this, since // aria-describedby and aria-labelledby will not follow a second aria-labelledby return (React.createElement("div", { ref: this.root, className: classNames.root, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onWrapperClick }, this.renderCustomAlert(classNames.screenReaderText), React.createElement("span", { id: "".concat(this._ariaMap.selectedItems, "-label"), hidden: true }, selectionAriaLabel || comboLabel), React.createElement(index_1.SelectionZone, { selection: this.selection, selectionMode: index_1.SelectionMode.multiple }, React.createElement("div", { className: classNames.text, "aria-owns": suggestionsAvailable }, items.length > 0 && (React.createElement("span", { id: this._ariaMap.selectedItems, className: classNames.itemsWrapper, role: selectionRole, "aria-labelledby": "".concat(this._ariaMap.selectedItems, "-label") }, this.renderItems())), this.canAddItems() && (React.createElement(index_2.Autofill, tslib_1.__assign({ spellCheck: false }, inputProps, { className: classNames.input, componentRef: this.input, id: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) ? inputProps.id : this._ariaMap.combobox, onClick: this.onClick, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onInputValueChange: this.onInputChange, suggestedDisplayValue: suggestedDisplayValue, "aria-activedescendant": suggestionsVisible ? this.getActiveDescendant() : undefined, "aria-controls": suggestionsAvailable, "aria-describedby": items.length > 0 ? this._ariaMap.selectedItems : undefined, "aria-expanded": suggestionsVisible, "aria-haspopup": "listbox", "aria-label": comboLabel, role: "combobox", disabled: disabled, onInputChange: this.props.onInputChange }))))), this.renderSuggestions())); }; BasePicker.prototype.canAddItems = function () { var items = this.state.items; var itemLimit = this.props.itemLimit; return itemLimit === undefined || items.length < itemLimit; }; BasePicker.prototype.renderSuggestions = function () { var _this = this; var StyledTypedSuggestions = this._styledSuggestions; return this.state.suggestionsVisible && this.input ? (React.createElement(Callout_1.Callout, tslib_1.__assign({ isBeakVisible: false, gapSpace: 5, target: this.input.current ? this.input.current.inputElement : undefined, onDismiss: this.dismissSuggestions, directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint_1.DirectionalHint.bottomRightEdge, // eslint-disable-next-line react/jsx-no-bind preventDismissOnEvent: function (ev) { return _this._preventDismissOnScrollOrResize(ev); } }, this.props.pickerCalloutProps), React.createElement(StyledTypedSuggestions // Assumed to set in derived component's defaultProps , tslib_1.__assign({ // Assumed to set in derived component's defaultProps onRenderSuggestion: this.props.onRenderSuggestionsItem, onSuggestionClick: this.onSuggestionClick, onSuggestionRemove: this.onSuggestionRemove, suggestions: this.suggestionStore.getSuggestions(), componentRef: this.suggestionElement, onGetMoreResults: this.onGetMoreResults, moreSuggestionsAvailable: this.state.moreSuggestionsAvailable, isLoading: this.state.suggestionsLoading, isExtendedLoading: this.state.suggestionsExtendedLoading, isSearching: this.state.isSearching, isMostRecentlyUsedVisible: this.state.isMostRecentlyUsedVisible, isResultsFooterVisible: this.state.isResultsFooterVisible, refocusSuggestions: this.refocusSuggestions, removeSuggestionAriaLabel: this.props.removeButtonAriaLabel, suggestionsListId: this._ariaMap.suggestionList, createGenericItem: this._completeGenericSuggestion }, this.props.pickerSuggestionsProps)))) : null; }; BasePicker.prototype.renderItems = function () { var _this = this; var _a = this.props, disabled = _a.disabled, removeButtonAriaLabel = _a.removeButtonAriaLabel, removeButtonIconProps = _a.removeButtonIconProps; var onRenderItem = this.props.onRenderItem; var _b = this.state, items = _b.items, selectedIndices = _b.selectedIndices; return items.map(function (item, index) { return onRenderItem({ item: item, index: index, key: item.key ? item.key : index, selected: selectedIndices.indexOf(index) !== -1, onRemoveItem: function () { return _this.removeItem(item); }, disabled: disabled, onItemChange: _this.onItemChange, removeButtonAriaLabel: removeButtonAriaLabel, removeButtonIconProps: removeButtonIconProps, }); }); }; BasePicker.prototype.resetFocus = function (index) { var items = this.state.items; if (items.length) { // default to focusing the last item index = index !== null && index !== void 0 ? index : items.length - 1; var newEl = this.root.current && this.root.current.querySelectorAll('[data-selection-index] > button')[Math.min(index, items.length - 1)]; if (newEl) { newEl.focus(); } } else { if (this.input.current) { this.input.current.focus(); } } }; BasePicker.prototype.onSuggestionSelect = function () { if (this.suggestionStore.currentSuggestion) { var currentValue = this.input.current ? this.input.current.value : ''; var itemValue = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, currentValue); this.setState({ suggestedDisplayValue: itemValue }); } }; BasePicker.prototype.onSelectionChange = function () { this.setState({ selectedIndices: this.selection.getSelectedIndices(), }); }; BasePicker.prototype.updateSuggestions = function (suggestions) { var _a; var maxSuggestionsCount = (_a = this.props.pickerSuggestionsProps) === null || _a === void 0 ? void 0 : _a.resultsMaximumNumber; this.suggestionStore.updateSuggestions(suggestions, 0, maxSuggestionsCount); this.forceUpdate(); }; /** * Only to be called when there is nothing in the input. Checks to see if the consumer has * provided a function to resolve suggestions */ BasePicker.prototype.onEmptyInputFocus = function () { var emptyResolveSuggestions = this.props.onEmptyResolveSuggestions ? this.props.onEmptyResolveSuggestions : // eslint-disable-next-line deprecation/deprecation this.props.onEmptyInputFocus; // Only attempt to resolve suggestions if it exists if (emptyResolveSuggestions) { var suggestions = emptyResolveSuggestions(this.state.items); this.updateSuggestionsList(suggestions); this.setState({ isMostRecentlyUsedVisible: true, suggestionsVisible: true, moreSuggestionsAvailable: false, }); } }; BasePicker.prototype.updateValue = function (updatedValue) { this._onResolveSuggestions(updatedValue); }; BasePicker.prototype.updateSuggestionsList = function (suggestions, updatedValue) { 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._updateAndResolveValue(updatedValue, suggestions); } else if (suggestions && suggestions.then) { this.setState({ suggestionsLoading: true, }); this._startLoadTimer(); // Clear suggestions this.suggestionStore.updateSuggestions([]); if (updatedValue !== undefined) { this.setState({ suggestionsVisible: this._getShowSuggestions(), }); } else { this.setState({ suggestionsVisible: this.input.current && this.input.current.inputElement === document.activeElement, }); } // Ensure that the promise will only use the callback if it was the most recent one. this.currentPromise = suggestions; suggestions.then(function (newSuggestions) { if (suggestions === _this.currentPromise) { _this._updateAndResolveValue(updatedValue, newSuggestions); } }); } }; BasePicker.prototype.resolveNewValue = function (updatedValue, suggestions) { var _this = this; this.updateSuggestions(suggestions); var itemValue = undefined; if (this.suggestionStore.currentSuggestion) { itemValue = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, updatedValue); } // Only set suggestionloading to false after there has been time for the new suggestions to flow // to the suggestions list. This is to ensure that the suggestions are available before aria-activedescendant // is set so that screen readers will read out the first selected option. this.setState({ suggestedDisplayValue: itemValue, suggestionsVisible: this._getShowSuggestions(), }, function () { return _this.setState({ suggestionsLoading: false, suggestionsExtendedLoading: false }); }); }; BasePicker.prototype.onChange = function (items) { if (this.props.onChange) { this.props.onChange(items); } }; // 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 BasePicker.prototype.onBackspace = function (ev) { if ((this.state.items.length && !this.input.current) || (this.input.current && !this.input.current.isValueSelected && this.input.current.cursorLocation === 0)) { if (this.selection.getSelectedCount() > 0) { this.removeItems(this.selection.getSelection()); } else { this.removeItem(this.state.items[this.state.items.length - 1]); } } }; BasePicker.prototype.getActiveDescendant = function () { var _a; if (this.state.suggestionsLoading) { return undefined; } var currentIndex = this.suggestionStore.currentIndex; if (currentIndex < 0) { // if the suggestions element has actions and the currentIndex does not point to a suggestion, // return the action id if ((_a = this.suggestionElement.current) === null || _a === void 0 ? void 0 : _a.hasSuggestedAction()) { return 'sug-selectedAction'; } // If there are no suggestions and no action suggested, then return the ID for the no results found. if (this.suggestionStore.suggestions.length === 0) { return 'sug-noResultsFound'; } return undefined; } else { return "sug-".concat(currentIndex); } }; /** @deprecated use renderCustomAlert instead */ BasePicker.prototype.getSuggestionsAlert = function (suggestionAlertClassName) { if (suggestionAlertClassName === void 0) { suggestionAlertClassName = legacyStyles.screenReaderOnly; } var currentIndex = this.suggestionStore.currentIndex; if (this.props.enableSelectedSuggestionAlert) { var selectedSuggestion = currentIndex > -1 ? this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex) : undefined; var selectedSuggestionAlertText = selectedSuggestion ? selectedSuggestion.ariaLabel : undefined; // keeping the id/className here for legacy support return (React.createElement("div", { id: this._ariaMap.selectedSuggestionAlert, className: suggestionAlertClassName }, "".concat(selectedSuggestionAlertText, " "))); } }; BasePicker.prototype.renderCustomAlert = function (alertClassName) { if (alertClassName === void 0) { alertClassName = legacyStyles.screenReaderOnly; } var _a = this.props.suggestionRemovedText, suggestionRemovedText = _a === void 0 ? 'removed {0}' : _a; var removedItemText = ''; if (this.state.selectionRemoved) { var itemName = this._getTextFromItem(this.state.selectionRemoved, ''); removedItemText = (0, Utilities_1.format)(suggestionRemovedText, itemName); } return (React.createElement("div", { className: alertClassName, id: this._ariaMap.selectedSuggestionAlert, "aria-live": "assertive" }, // eslint-disable-next-line deprecation/deprecation this.getSuggestionsAlert(alertClassName), removedItemText)); }; // 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 BasePicker.prototype._preventDismissOnScrollOrResize = function (ev) { if (this._overrideScrollDismiss && (ev.type === 'scroll' || ev.type === 'resize')) { return true; } return false; }; /** If suggestions are still loading after a predefined amount of time, set state to show user alert */ BasePicker.prototype._startLoadTimer = function () { var _this = this; this._async.setTimeout(function () { if (_this.state.suggestionsLoading) { _this.setState({ suggestionsExtendedLoading: true }); } }, EXTENDED_LOAD_TIME); }; /** * Takes in the current updated value and either resolves it with the new suggestions * or if updated value is undefined then it clears out currently suggested items */ BasePicker.prototype._updateAndResolveValue = function (updatedValue, newSuggestions) { var _a; if (updatedValue !== undefined) { this.resolveNewValue(updatedValue, newSuggestions); } else { var maxSuggestionsCount = (_a = this.props.pickerSuggestionsProps) === null || _a === void 0 ? void 0 : _a.resultsMaximumNumber; this.suggestionStore.updateSuggestions(newSuggestions, -1, maxSuggestionsCount); if (this.state.suggestionsLoading) { this.setState({ suggestionsLoading: false, suggestionsExtendedLoading: false, }); } } }; /** * Controls what happens whenever there is an action that impacts the selected items. * If `selectedItems` is provided, this will act as a controlled component and it will not update its own state. */ BasePicker.prototype._updateSelectedItems = function (items) { var _this = this; if (this.props.selectedItems) { // If the component is a controlled component then the controlling component will need to add or remove the items. this.onChange(items); } else { this.setState({ items: items }, function () { _this._onSelectedItemsUpdated(items); }); } }; BasePicker.prototype._onSelectedItemsUpdated = function (items) { this.onChange(items); }; /** * Suggestions are normally shown after the user updates text and the text * is non-empty, but also when the user clicks on the input element. * @returns True if suggestions should be shown. */ BasePicker.prototype._getShowSuggestions = function () { var areSuggestionsVisible = this.input.current !== undefined && this.input.current !== null && this.input.current.inputElement === document.activeElement && this.input.current.value !== ''; return areSuggestionsVisible; }; BasePicker.prototype._getTextFromItem = function (item, currentValue) { if (this.props.getTextFromItem) { return this.props.getTextFromItem(item, currentValue); } else { return ''; } }; return BasePicker; }(React.Component)); exports.BasePicker = BasePicker; var BasePickerListBelow = /** @class */ (function (_super) { tslib_1.__extends(BasePickerListBelow, _super); function BasePickerListBelow() { return _super !== null && _super.apply(this, arguments) || this; } BasePickerListBelow.prototype.render = function () { var _a = this.state, suggestedDisplayValue = _a.suggestedDisplayValue, isFocused = _a.isFocused; var _b = this.props, className = _b.className, inputProps = _b.inputProps, disabled = _b.disabled, selectionAriaLabel = _b.selectionAriaLabel, _c = _b.selectionRole, selectionRole = _c === void 0 ? 'list' : _c, theme = _b.theme, styles = _b.styles; var suggestionsVisible = !!this.state.suggestionsVisible; var suggestionsAvailable = suggestionsVisible ? this._ariaMap.suggestionList : undefined; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from BasePicker class because it // might be used by consumers who created custom pickers from extending from // this base class and have not used the new 'styles' prop. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // for every other already existing picker variant (PeoplePicker, TagPicker) // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, isFocused: isFocused, inputClassName: inputProps && inputProps.className, }) : { root: (0, Utilities_1.css)('ms-BasePicker', legacyStyles.picker, className ? className : ''), text: (0, Utilities_1.css)('ms-BasePicker-text', legacyStyles.pickerText, this.state.isFocused && legacyStyles.inputFocused, disabled && legacyStyles.inputDisabled), itemsWrapper: legacyStyles.pickerItems, input: (0, Utilities_1.css)('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className), screenReaderText: legacyStyles.screenReaderOnly, }; var comboLabel = this.props['aria-label'] || (inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label']); return (React.createElement("div", { ref: this.root, onBlur: this.onBlur, onFocus: this.onFocus }, React.createElement("div", { className: classNames.root, onKeyDown: this.onKeyDown }, this.renderCustomAlert(classNames.screenReaderText), React.createElement("span", { id: "".concat(this._ariaMap.selectedItems, "-label"), hidden: true }, selectionAriaLabel || comboLabel), React.createElement("div", { className: classNames.text, "aria-owns": suggestionsAvailable }, React.createElement(index_2.Autofill, tslib_1.__assign({}, inputProps, { className: classNames.input, componentRef: this.input, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onClick: this.onClick, onInputValueChange: this.onInputChange, suggestedDisplayValue: suggestedDisplayValue, "aria-activedescendant": suggestionsVisible ? this.getActiveDescendant() : undefined, "aria-controls": suggestionsAvailable, "aria-expanded": suggestionsVisible, "aria-haspopup": "listbox", "aria-label": comboLabel, "aria-describedby": this.state.items.length > 0 ? this._ariaMap.selectedItems : undefined, role: "combobox", id: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) ? inputProps.id : this._ariaMap.combobox, disabled: disabled, onInputChange: this.props.onInputChange })))), this.renderSuggestions(), React.createElement(index_1.SelectionZone, { selection: this.selection, selectionMode: index_1.SelectionMode.single }, React.createElement("div", { id: this._ariaMap.selectedItems, className: "ms-BasePicker-selectedItems" // just a className hook without any styles applied to it. , role: selectionRole, "aria-labelledby": "".concat(this._ariaMap.selectedItems, "-label") }, this.renderItems())))); }; BasePickerListBelow.prototype.onBackspace = function (ev) { // override the existing backspace method to not do anything because the list items appear below. }; return BasePickerListBelow; }(BasePicker)); exports.BasePickerListBelow = BasePickerListBelow; //# sourceMappingURL=BasePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.scss.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.screenReaderOnly = exports.pickerItems = exports.pickerInput = exports.inputDisabled = exports.inputFocused = exports.pickerText = exports.picker = 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": ".picker_94f06b16{position:relative}.pickerText_94f06b16{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;min-height:30px}.pickerText_94f06b16:hover{border-color:" }, { "theme": "inputBorderHovered", "defaultValue": "#323130" }, { "rawString": "}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:" }, { "theme": "inputFocusBorderAlt", "defaultValue": "#0078d4" }, { "rawString": "}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:\"\";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid " }, { "theme": "inputFocusBorderAlt", "defaultValue": "#0078d4" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:\"\";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); exports.picker = "picker_94f06b16"; exports.pickerText = "pickerText_94f06b16"; exports.inputFocused = "inputFocused_94f06b16"; exports.inputDisabled = "inputDisabled_94f06b16"; exports.pickerInput = "pickerInput_94f06b16"; exports.pickerItems = "pickerItems_94f06b16"; exports.screenReaderOnly = "screenReaderOnly_94f06b16"; //# sourceMappingURL=BasePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.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-BasePicker', text: 'ms-BasePicker-text', itemsWrapper: 'ms-BasePicker-itemsWrapper', input: 'ms-BasePicker-input', }; function getStyles(props) { var _a, _b, _c; var className = props.className, theme = props.theme, isFocused = props.isFocused, inputClassName = props.inputClassName, disabled = props.disabled; if (!theme) { throw new Error('theme is undefined or null in base BasePicker getStyles function.'); } var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var inputBorder = semanticColors.inputBorder, inputBorderHovered = semanticColors.inputBorderHovered, inputFocusBorderAlt = semanticColors.inputFocusBorderAlt; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // placeholder style constants var placeholderStyles = [ fonts.medium, { color: semanticColors.inputPlaceholderText, opacity: 1, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _a), }, ]; var disabledPlaceholderStyles = { color: semanticColors.disabledText, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _b), }; // The following lines are to create a semi-transparent color overlay for the disabled state with designer's approval. // @todo: investigate the performance cost of the calculation below and apply if negligible. // Replacing with a static color for now. // const rgbColor: IRGB | undefined = cssColor(palette.neutralQuaternaryAlt); // const disabledOverlayColor = rgbColor ? `rgba(${rgbColor.r}, ${rgbColor.g}, ${rgbColor.b}, 0.29)` : 'transparent'; var disabledOverlayColor = 'rgba(218, 218, 218, 0.29)'; return { root: [classNames.root, className, { position: 'relative' }], text: [ classNames.text, { display: 'flex', position: 'relative', flexWrap: 'wrap', alignItems: 'center', boxSizing: 'border-box', minWidth: 180, minHeight: 30, border: "1px solid ".concat(inputBorder), borderRadius: effects.roundedCorner2, }, !isFocused && !disabled && { selectors: { ':hover': { borderColor: inputBorderHovered, }, }, }, isFocused && !disabled && (0, Styling_1.getInputFocusStyle)(inputFocusBorderAlt, effects.roundedCorner2), disabled && { borderColor: disabledOverlayColor, selectors: (_c = { ':after': { content: '""', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, background: disabledOverlayColor, } }, _c[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', selectors: { ':after': { background: 'none', }, }, }, _c), }, ], itemsWrapper: [ classNames.itemsWrapper, { display: 'flex', flexWrap: 'wrap', maxWidth: '100%', }, ], input: [ classNames.input, fonts.medium, { height: 30, border: 'none', flexGrow: 1, outline: 'none', padding: '0 6px 0', alignSelf: 'flex-end', borderRadius: effects.roundedCorner2, backgroundColor: 'transparent', color: semanticColors.inputText, selectors: { '::-ms-clear': { display: 'none', }, '&:placeholder-shown': { textOverflow: 'ellipsis', }, }, }, (0, Styling_1.getPlaceholderStyles)(placeholderStyles), disabled && (0, Styling_1.getPlaceholderStyles)(disabledPlaceholderStyles), inputClassName, ], screenReaderText: Styling_1.hiddenContentStyle, }; } exports.getStyles = getStyles; //# sourceMappingURL=BasePicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ValidationState = void 0; /** * Validation state of the user's input. * {@docCategory Pickers} */ var ValidationState; (function (ValidationState) { /** User input is valid. */ ValidationState[ValidationState["valid"] = 0] = "valid"; /** User input could be valid or invalid, its state is not known yet. */ ValidationState[ValidationState["warning"] = 1] = "warning"; /** User input is invalid. */ ValidationState[ValidationState["invalid"] = 2] = "invalid"; })(ValidationState = exports.ValidationState || (exports.ValidationState = {})); //# sourceMappingURL=BasePicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ListPeoplePicker = exports.CompactPeoplePicker = exports.NormalPeoplePicker = exports.createGenericItem = exports.ListPeoplePickerBase = exports.CompactPeoplePickerBase = exports.NormalPeoplePickerBase = exports.MemberListPeoplePicker = exports.BasePeoplePicker = 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 BasePicker_1 = __webpack_require__(/*! ../BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"); var BasePicker_types_1 = __webpack_require__(/*! ../BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var PeoplePickerItem_1 = __webpack_require__(/*! ./PeoplePickerItems/PeoplePickerItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js"); var PeoplePickerItemSuggestion_1 = __webpack_require__(/*! ./PeoplePickerItems/PeoplePickerItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js"); var BasePicker_styles_1 = __webpack_require__(/*! ../BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); /** * {@docCategory PeoplePicker} */ var BasePeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(BasePeoplePicker, _super); function BasePeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BasePeoplePicker; }(BasePicker_1.BasePicker)); exports.BasePeoplePicker = BasePeoplePicker; /** * {@docCategory PeoplePicker} */ var MemberListPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(MemberListPeoplePicker, _super); function MemberListPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return MemberListPeoplePicker; }(BasePicker_1.BasePickerListBelow)); exports.MemberListPeoplePicker = MemberListPeoplePicker; /** * Standard People Picker. * {@docCategory PeoplePicker} */ var NormalPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(NormalPeoplePickerBase, _super); function NormalPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for NormalPeoplePicker. */ NormalPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps })); }, createGenericItem: createGenericItem, }; return NormalPeoplePickerBase; }(BasePeoplePicker)); exports.NormalPeoplePickerBase = NormalPeoplePickerBase; /** * Compact layout. It uses personas without secondary text when displaying search results. * {@docCategory PeoplePicker} */ var CompactPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(CompactPeoplePickerBase, _super); function CompactPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for CompactPeoplePicker. */ CompactPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps, compact: true })); }, createGenericItem: createGenericItem, }; return CompactPeoplePickerBase; }(BasePeoplePicker)); exports.CompactPeoplePickerBase = CompactPeoplePickerBase; /** * MemberList layout. The selected people show up below the search box. * {@docCategory PeoplePicker} */ var ListPeoplePickerBase = /** @class */ (function (_super) { tslib_1.__extends(ListPeoplePickerBase, _super); function ListPeoplePickerBase() { return _super !== null && _super.apply(this, arguments) || this; } /** Default props for ListPeoplePicker. */ ListPeoplePickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(PeoplePickerItem_1.PeoplePickerItem, tslib_1.__assign({}, props)); }, onRenderSuggestionsItem: function (personaProps, suggestionsProps) { return (React.createElement(PeoplePickerItemSuggestion_1.PeoplePickerItemSuggestion, { personaProps: personaProps, suggestionsProps: suggestionsProps })); }, createGenericItem: createGenericItem, }; return ListPeoplePickerBase; }(MemberListPeoplePicker)); exports.ListPeoplePickerBase = ListPeoplePickerBase; /** * {@docCategory PeoplePicker} */ function createGenericItem(name, currentValidationState) { var personaToConvert = { key: name, primaryText: name, imageInitials: '!', ValidationState: currentValidationState, }; if (currentValidationState !== BasePicker_types_1.ValidationState.warning) { personaToConvert.imageInitials = (0, Utilities_1.getInitials)(name, (0, Utilities_1.getRTL)()); } return personaToConvert; } exports.createGenericItem = createGenericItem; exports.NormalPeoplePicker = (0, Utilities_1.styled)(NormalPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'NormalPeoplePicker', }); exports.CompactPeoplePicker = (0, Utilities_1.styled)(CompactPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'CompactPeoplePicker', }); exports.ListPeoplePicker = (0, Utilities_1.styled)(ListPeoplePickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'ListPeoplePickerBase', }); //# sourceMappingURL=PeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js": /*!*************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js ***! \*************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PeoplePickerItem = exports.PeoplePickerItemBase = 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 Button_1 = __webpack_require__(/*! ../../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var BasePicker_types_1 = __webpack_require__(/*! ../../BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"); var PeoplePickerItem_styles_1 = __webpack_require__(/*! ./PeoplePickerItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var PeoplePickerItemBase = function (props) { var item = props.item, onRemoveItem = props.onRemoveItem, index = props.index, selected = props.selected, removeButtonAriaLabel = props.removeButtonAriaLabel, styles = props.styles, theme = props.theme, className = props.className, disabled = props.disabled, removeButtonIconProps = props.removeButtonIconProps; var buttonRef = React.createRef(); var handleClick = function () { var _a; (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }; var itemId = (0, Utilities_1.getId)(); var classNames = getClassNames(styles, { theme: theme, className: className, selected: selected, disabled: disabled, invalid: item.ValidationState === BasePicker_types_1.ValidationState.warning, }); var personaStyles = classNames.subComponentStyles ? classNames.subComponentStyles.persona : undefined; var personaCoinStyles = classNames.subComponentStyles ? classNames.subComponentStyles.personaCoin : undefined; return (React.createElement("div", { "data-selection-index": index, className: classNames.root, role: 'listitem', key: index, onClick: handleClick }, React.createElement("div", { className: classNames.itemContent, id: 'selectedItemPersona-' + itemId }, React.createElement(Persona_1.Persona, tslib_1.__assign({ size: Persona_1.PersonaSize.size24, styles: personaStyles, coinProps: { styles: personaCoinStyles } }, item))), React.createElement(Button_1.IconButton, { componentRef: buttonRef, id: itemId, onClick: onRemoveItem, disabled: disabled, iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, className: classNames.removeButton, ariaLabel: removeButtonAriaLabel, "aria-labelledby": "".concat(itemId, " selectedItemPersona-").concat(itemId) }))); }; exports.PeoplePickerItemBase = PeoplePickerItemBase; exports.PeoplePickerItem = (0, Utilities_1.styled)(exports.PeoplePickerItemBase, PeoplePickerItem_styles_1.getStyles, undefined, { scope: 'PeoplePickerItem' }); //# sourceMappingURL=PeoplePickerItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js": /*!********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.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 BaseButton_classNames_1 = __webpack_require__(/*! ../../../Button/BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); var GlobalClassNames = { root: 'ms-PickerPersona-container', itemContent: 'ms-PickerItem-content', removeButton: 'ms-PickerItem-removeButton', isSelected: 'is-selected', isInvalid: 'is-invalid', }; var REMOVE_BUTTON_SIZE = 24; var PICKER_PERSONA_RADIUS = 15; function getStyles(props) { var _a, _b, _c, _d, _e, _f, _g, _h; var className = props.className, theme = props.theme, selected = props.selected, invalid = props.invalid, disabled = props.disabled; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var personaPrimaryTextStyles = [ selected && !invalid && !disabled && { color: palette.white, selectors: (_a = { ':hover': { color: palette.white, } }, _a[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _a), }, ((invalid && !selected) || (invalid && selected && disabled)) && { color: palette.redDark, borderBottom: "2px dotted ".concat(palette.redDark), selectors: (_b = {}, _b[".".concat(classNames.root, ":hover &")] = { // override Persona root:hover selector color: palette.redDark, }, _b), }, invalid && selected && !disabled && { color: palette.white, borderBottom: "2px dotted ".concat(palette.white), }, disabled && { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }, ]; var personaSecondaryTextStyles = [ selected && !invalid && !disabled && { color: palette.white, selectors: (_d = { ':hover': { color: palette.white, } }, _d[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _d), }, ]; var personaCoinInitialsStyles = [ invalid && { fontSize: fonts.xLarge.fontSize, }, ]; return { root: [ classNames.root, (0, Styling_1.getFocusStyle)(theme, { inset: -2 }), { borderRadius: PICKER_PERSONA_RADIUS, display: 'inline-flex', alignItems: 'center', background: palette.neutralLighter, margin: '1px 2px', cursor: 'default', userSelect: 'none', maxWidth: 300, verticalAlign: 'middle', minWidth: 0, selectors: (_e = { ':hover': { background: !selected && !disabled ? palette.neutralLight : '', } }, _e[Styling_1.HighContrastSelector] = [{ border: '1px solid WindowText' }, disabled && { borderColor: 'GrayText' }], _e), }, selected && !disabled && [ classNames.isSelected, { background: palette.themePrimary, selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'HighLight', background: 'Highlight' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _f), }, ], invalid && [classNames.isInvalid], invalid && selected && !disabled && { background: palette.redDark, }, className, ], itemContent: [ classNames.itemContent, { flex: '0 1 auto', minWidth: 0, // CSS below is needed for IE 11 to properly truncate long persona names in the picker // and to clip the presence indicator (in all browsers) maxWidth: '100%', overflow: 'hidden', }, ], removeButton: [ classNames.removeButton, { borderRadius: PICKER_PERSONA_RADIUS, color: palette.neutralPrimary, flex: '0 0 auto', width: REMOVE_BUTTON_SIZE, height: REMOVE_BUTTON_SIZE, selectors: { ':hover': { background: palette.neutralTertiaryAlt, color: palette.neutralDark, }, }, }, selected && [ (0, Styling_1.getFocusStyle)(theme, { inset: 2, borderColor: 'transparent', highContrastStyle: { inset: 2, left: 1, top: 1, bottom: 1, right: 1, outlineColor: 'ButtonText' }, outlineColor: palette.white, borderRadius: PICKER_PERSONA_RADIUS, }), { color: palette.white, selectors: (_g = { ':hover': { color: palette.white, background: palette.themeDark, }, ':active': { color: palette.white, background: palette.themeDarker, } }, _g[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _g), }, invalid && { selectors: { ':hover': { background: palette.red, }, ':active': { background: palette.redDark, }, }, }, ], disabled && { selectors: (_h = {}, _h[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: semanticColors.buttonText, }, _h), }, ], subComponentStyles: { persona: { primaryText: personaPrimaryTextStyles, secondaryText: personaSecondaryTextStyles, }, personaCoin: { initials: personaCoinInitialsStyles, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=PeoplePickerItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js": /*!*******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PeoplePickerItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js": /*!***********************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js ***! \***********************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PeoplePickerItemSuggestion = exports.PeoplePickerItemSuggestionBase = 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 PeoplePickerItemSuggestion_styles_1 = __webpack_require__(/*! ./PeoplePickerItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var PeoplePickerItemSuggestionBase = function (props) { var personaProps = props.personaProps, suggestionsProps = props.suggestionsProps, compact = props.compact, styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: (suggestionsProps && suggestionsProps.suggestionsItemClassName) || className, }); var personaStyles = classNames.subComponentStyles && classNames.subComponentStyles.persona ? classNames.subComponentStyles.persona : undefined; return (React.createElement("div", { className: classNames.root }, React.createElement(Persona_1.Persona, tslib_1.__assign({ size: Persona_1.PersonaSize.size24, styles: personaStyles, className: classNames.personaWrapper, showSecondaryText: !compact, showOverflowTooltip: false }, personaProps)))); }; exports.PeoplePickerItemSuggestionBase = PeoplePickerItemSuggestionBase; exports.PeoplePickerItemSuggestion = (0, Utilities_1.styled)(exports.PeoplePickerItemSuggestionBase, PeoplePickerItemSuggestion_styles_1.getStyles, undefined, { scope: 'PeoplePickerItemSuggestion' }); //# sourceMappingURL=PeoplePickerItemSuggestion.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js": /*!******************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.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 SuggestionsItem_styles_1 = __webpack_require__(/*! ../../Suggestions/SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); var GlobalClassNames = { root: 'ms-PeoplePicker-personaContent', personaWrapper: 'ms-PeoplePicker-Persona', }; function getStyles(props) { var _a, _b, _c; var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var textSelectorsStyles = { selectors: (_a = {}, _a[".".concat(SuggestionsItem_styles_1.SuggestionsItemGlobalClassNames.isSuggested, " &")] = { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _b), }, _a[".".concat(classNames.root, ":hover &")] = { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _c), }, _a), }; return { root: [ classNames.root, { width: '100%', padding: '4px 12px', }, className, ], personaWrapper: [ classNames.personaWrapper, { width: 180, }, ], subComponentStyles: { persona: { primaryText: textSelectorsStyles, secondaryText: textSelectorsStyles, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=PeoplePickerItemSuggestion.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PickerItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Suggestions = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Spinner_1 = __webpack_require__(/*! ../../../Spinner */ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js"); var Announced_1 = __webpack_require__(/*! ../../../Announced */ "./node_modules/@fluentui/react/lib-commonjs/Announced.js"); var Suggestions_types_1 = __webpack_require__(/*! ./Suggestions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js"); var SuggestionsItem_1 = __webpack_require__(/*! ./SuggestionsItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js"); var SuggestionsItem_styles_1 = __webpack_require__(/*! ./SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); var stylesImport = __webpack_require__(/*! ./Suggestions.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js"); var legacyStyles = stylesImport; var getClassNames = (0, Utilities_1.classNamesFunction)(); var StyledSuggestionsItem = (0, Utilities_1.styled)(SuggestionsItem_1.SuggestionsItem, SuggestionsItem_styles_1.getStyles, undefined, { scope: 'SuggestionItem', }); /** * {@docCategory Pickers} */ var Suggestions = /** @class */ (function (_super) { tslib_1.__extends(Suggestions, _super); function Suggestions(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._forceResolveButton = React.createRef(); _this._searchForMoreButton = React.createRef(); _this._selectedElement = React.createRef(); _this._scrollContainer = React.createRef(); /** * Returns true if the event was handled, false otherwise */ _this.tryHandleKeyDown = function (keyCode, currentSuggestionIndex) { var isEventHandled = false; var newSelectedActionType = null; var currentSelectedAction = _this.state.selectedActionType; var suggestionLength = _this.props.suggestions.length; if (keyCode === Utilities_1.KeyCodes.down) { switch (currentSelectedAction) { case Suggestions_types_1.SuggestionActionType.forceResolve: if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else if (_this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } else { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; case Suggestions_types_1.SuggestionActionType.searchMore: if (_this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } else if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } break; case Suggestions_types_1.SuggestionActionType.none: if (currentSuggestionIndex === -1 && _this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; } } else if (keyCode === Utilities_1.KeyCodes.up) { switch (currentSelectedAction) { case Suggestions_types_1.SuggestionActionType.forceResolve: if (_this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } else if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } break; case Suggestions_types_1.SuggestionActionType.searchMore: if (suggestionLength > 0) { _this._refocusOnSuggestions(keyCode); newSelectedActionType = Suggestions_types_1.SuggestionActionType.none; } else if (_this._forceResolveButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.forceResolve; } break; case Suggestions_types_1.SuggestionActionType.none: if (currentSuggestionIndex === -1 && _this._searchForMoreButton.current) { newSelectedActionType = Suggestions_types_1.SuggestionActionType.searchMore; } break; } } if (newSelectedActionType !== null) { _this.setState({ selectedActionType: newSelectedActionType }); isEventHandled = true; } return isEventHandled; }; _this._getAlertText = function () { var _a = _this.props, isLoading = _a.isLoading, isSearching = _a.isSearching, suggestions = _a.suggestions, suggestionsAvailableAlertText = _a.suggestionsAvailableAlertText, noResultsFoundText = _a.noResultsFoundText, isExtendedLoading = _a.isExtendedLoading, loadingText = _a.loadingText; if (!isLoading && !isSearching) { if (suggestions.length > 0) { return suggestionsAvailableAlertText || ''; } if (noResultsFoundText) { return noResultsFoundText; } } else if (isLoading && isExtendedLoading) { return loadingText || ''; } return ''; }; _this._getMoreResults = function () { if (_this.props.onGetMoreResults) { _this.props.onGetMoreResults(); // Reset selected action type as it will be of type SuggestionActionType.none after more results are gotten _this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.none }); } }; _this._forceResolve = function () { if (_this.props.createGenericItem) { _this.props.createGenericItem(); } }; _this._shouldShowForceResolve = function () { return _this.props.showForceResolve ? _this.props.showForceResolve() : false; }; _this._onClickTypedSuggestionsItem = function (item, index) { return function (ev) { _this.props.onSuggestionClick(ev, item, index); }; }; _this._refocusOnSuggestions = function (keyCode) { if (typeof _this.props.refocusSuggestions === 'function') { _this.props.refocusSuggestions(keyCode); } }; _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.state = { selectedActionType: Suggestions_types_1.SuggestionActionType.none, }; return _this; } Suggestions.prototype.componentDidMount = function () { this.scrollSelected(); this.activeSelectedElement = this._selectedElement ? this._selectedElement.current : null; }; Suggestions.prototype.componentDidUpdate = function () { // Only scroll to selected element if the selected element has changed. Otherwise do nothing. // This prevents some odd behavior where scrolling the active element out of view and clicking on a selected element // will trigger a focus event and not give the clicked element the click. if (this._selectedElement.current && this.activeSelectedElement !== this._selectedElement.current) { this.scrollSelected(); this.activeSelectedElement = this._selectedElement.current; } }; Suggestions.prototype.render = function () { var _a, _b; var _this = this; var _c = this.props, forceResolveText = _c.forceResolveText, mostRecentlyUsedHeaderText = _c.mostRecentlyUsedHeaderText, searchForMoreIcon = _c.searchForMoreIcon, searchForMoreText = _c.searchForMoreText, className = _c.className, moreSuggestionsAvailable = _c.moreSuggestionsAvailable, noResultsFoundText = _c.noResultsFoundText, suggestions = _c.suggestions, isLoading = _c.isLoading, isSearching = _c.isSearching, loadingText = _c.loadingText, onRenderNoResultFound = _c.onRenderNoResultFound, searchingText = _c.searchingText, isMostRecentlyUsedVisible = _c.isMostRecentlyUsedVisible, resultsMaximumNumber = _c.resultsMaximumNumber, resultsFooterFull = _c.resultsFooterFull, resultsFooter = _c.resultsFooter, _d = _c.isResultsFooterVisible, isResultsFooterVisible = _d === void 0 ? true : _d, suggestionsHeaderText = _c.suggestionsHeaderText, suggestionsClassName = _c.suggestionsClassName, theme = _c.theme, styles = _c.styles, suggestionsListId = _c.suggestionsListId, suggestionsContainerAriaLabel = _c.suggestionsContainerAriaLabel; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from Suggestions class because it // might be used by consumers separately from pickers extending from BasePicker // and have not used the new 'styles' prop. Because it's expecting a type parameter, // we can not use the 'styled' function without adding some helpers which can break // downstream consumers who did not use the new helpers. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // in BasePicker when the typed Suggestions class is ready to be rendered. If the check // passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. this._classNames = styles ? getClassNames(styles, { theme: theme, className: className, suggestionsClassName: suggestionsClassName, forceResolveButtonSelected: this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve, searchForMoreButtonSelected: this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore, }) : { root: (0, Utilities_1.css)('ms-Suggestions', className, legacyStyles.root), title: (0, Utilities_1.css)('ms-Suggestions-title', legacyStyles.suggestionsTitle), searchForMoreButton: (0, Utilities_1.css)('ms-SearchMore-button', legacyStyles.actionButton, (_a = {}, _a['is-selected ' + legacyStyles.buttonSelected] = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore, _a)), forceResolveButton: (0, Utilities_1.css)('ms-forceResolve-button', legacyStyles.actionButton, (_b = {}, _b['is-selected ' + legacyStyles.buttonSelected] = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve, _b)), suggestionsAvailable: (0, Utilities_1.css)('ms-Suggestions-suggestionsAvailable', legacyStyles.suggestionsAvailable), suggestionsContainer: (0, Utilities_1.css)('ms-Suggestions-container', legacyStyles.suggestionsContainer, suggestionsClassName), noSuggestions: (0, Utilities_1.css)('ms-Suggestions-none', legacyStyles.suggestionsNone), }; var spinnerStyles = this._classNames.subComponentStyles ? this._classNames.subComponentStyles.spinner : undefined; // TODO: cleanup after refactor of pickers to composition pattern and remove SASS support. var spinnerClassNameOrStyles = styles ? { styles: spinnerStyles } : { className: (0, Utilities_1.css)('ms-Suggestions-spinner', legacyStyles.suggestionsSpinner), }; var noResults = function () { var defaultRender = function () { return React.createElement("div", { className: _this._classNames.noSuggestions }, noResultsFoundText); }; return ( // This ID can be used by the parent to set aria-activedescendant to this React.createElement("div", { id: "sug-noResultsFound", role: "option" }, onRenderNoResultFound ? onRenderNoResultFound(undefined, defaultRender) : defaultRender())); }; // MostRecently Used text should supercede the header text if it's there and available. var headerText = suggestionsHeaderText; if (isMostRecentlyUsedVisible && mostRecentlyUsedHeaderText) { headerText = mostRecentlyUsedHeaderText; } var footerTitle = undefined; if (isResultsFooterVisible) { footerTitle = suggestions.length >= resultsMaximumNumber ? resultsFooterFull : resultsFooter; } var hasNoSuggestions = (!suggestions || !suggestions.length) && !isLoading; var forceResolveId = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.forceResolve ? 'sug-selectedAction' : undefined; var searchForMoreId = this.state.selectedActionType === Suggestions_types_1.SuggestionActionType.searchMore ? 'sug-selectedAction' : undefined; return (React.createElement("div", { className: this._classNames.root, "aria-label": suggestionsContainerAriaLabel || headerText, id: suggestionsListId, role: "listbox" }, React.createElement(Announced_1.Announced, { message: this._getAlertText(), "aria-live": "polite" }), headerText ? React.createElement("div", { className: this._classNames.title }, headerText) : null, forceResolveText && this._shouldShowForceResolve() && (React.createElement(Button_1.CommandButton, { componentRef: this._forceResolveButton, className: this._classNames.forceResolveButton, id: forceResolveId, onClick: this._forceResolve, "data-automationid": 'sug-forceResolve' }, forceResolveText)), isLoading && React.createElement(Spinner_1.Spinner, tslib_1.__assign({}, spinnerClassNameOrStyles, { ariaLabel: loadingText, label: loadingText })), hasNoSuggestions ? noResults() : this._renderSuggestions(), searchForMoreText && moreSuggestionsAvailable && (React.createElement(Button_1.CommandButton, { componentRef: this._searchForMoreButton, className: this._classNames.searchForMoreButton, iconProps: searchForMoreIcon || { iconName: 'Search' }, id: searchForMoreId, onClick: this._getMoreResults, "data-automationid": 'sug-searchForMore', role: 'option' }, searchForMoreText)), isSearching ? React.createElement(Spinner_1.Spinner, tslib_1.__assign({}, spinnerClassNameOrStyles, { ariaLabel: searchingText, label: searchingText })) : null, footerTitle && !moreSuggestionsAvailable && !isMostRecentlyUsedVisible && !isSearching ? (React.createElement("div", { className: this._classNames.title }, footerTitle(this.props))) : null)); }; Suggestions.prototype.hasSuggestedAction = function () { return !!this._searchForMoreButton.current || !!this._forceResolveButton.current; }; Suggestions.prototype.hasSuggestedActionSelected = function () { return this.state.selectedActionType !== Suggestions_types_1.SuggestionActionType.none; }; Suggestions.prototype.executeSelectedAction = function () { switch (this.state.selectedActionType) { case Suggestions_types_1.SuggestionActionType.forceResolve: this._forceResolve(); break; case Suggestions_types_1.SuggestionActionType.searchMore: this._getMoreResults(); break; } }; Suggestions.prototype.focusAboveSuggestions = function () { if (this._forceResolveButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.forceResolve }); } else if (this._searchForMoreButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.searchMore }); } }; Suggestions.prototype.focusBelowSuggestions = function () { if (this._searchForMoreButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.searchMore }); } else if (this._forceResolveButton.current) { this.setState({ selectedActionType: Suggestions_types_1.SuggestionActionType.forceResolve }); } }; Suggestions.prototype.focusSearchForMoreButton = function () { if (this._searchForMoreButton.current) { this._searchForMoreButton.current.focus(); } }; Suggestions.prototype.scrollSelected = function () { if (this._selectedElement.current && this._scrollContainer.current && this._scrollContainer.current.scrollTo !== undefined) { var _a = this._selectedElement.current, offsetHeight = _a.offsetHeight, offsetTop = _a.offsetTop; var _b = this._scrollContainer.current, parentOffsetHeight = _b.offsetHeight, scrollTop = _b.scrollTop; var isAbove = offsetTop < scrollTop; var isBelow = offsetTop + offsetHeight > scrollTop + parentOffsetHeight; if (isAbove) { this._scrollContainer.current.scrollTo(0, offsetTop); } else if (isBelow) { this._scrollContainer.current.scrollTo(0, offsetTop - parentOffsetHeight + offsetHeight); } } }; Suggestions.prototype._renderSuggestions = function () { var _this = this; var _a = this.props, onRenderSuggestion = _a.onRenderSuggestion, removeSuggestionAriaLabel = _a.removeSuggestionAriaLabel, suggestionsItemClassName = _a.suggestionsItemClassName, resultsMaximumNumber = _a.resultsMaximumNumber, showRemoveButtons = _a.showRemoveButtons, removeButtonIconProps = _a.removeButtonIconProps; var suggestions = this.props.suggestions; var StyledTypedSuggestionsItem = StyledSuggestionsItem; var selectedIndex = -1; suggestions.some(function (element, index) { if (element.selected) { selectedIndex = index; return true; } return false; }); if (resultsMaximumNumber) { suggestions = selectedIndex >= resultsMaximumNumber ? suggestions.slice(selectedIndex - resultsMaximumNumber + 1, selectedIndex + 1) : suggestions.slice(0, resultsMaximumNumber); } if (suggestions.length === 0) { return null; } return (React.createElement("div", { className: this._classNames.suggestionsContainer, ref: this._scrollContainer, role: "presentation" }, suggestions.map(function (suggestion, index) { return (React.createElement("div", { ref: suggestion.selected ? _this._selectedElement : undefined, key: suggestion.item.key ? suggestion.item.key : index, role: "presentation" }, React.createElement(StyledTypedSuggestionsItem, { suggestionModel: suggestion, RenderSuggestion: onRenderSuggestion, onClick: _this._onClickTypedSuggestionsItem(suggestion.item, index), className: suggestionsItemClassName, showRemoveButton: showRemoveButtons, removeButtonAriaLabel: removeSuggestionAriaLabel, onRemoveItem: _this._onRemoveTypedSuggestionsItem(suggestion.item, index), id: 'sug-' + index, removeButtonIconProps: removeButtonIconProps }))); }))); }; return Suggestions; }(React.Component)); exports.Suggestions = Suggestions; //# sourceMappingURL=Suggestions.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.suggestionsAvailable = exports.suggestionsSpinner = exports.suggestionsNone = exports.suggestionsContainer = exports.suggestionsTitle = exports.buttonSelected = exports.actionButton = exports.itemButton = exports.suggestionsItemIsSuggested = exports.closeButton = exports.suggestionsItem = 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_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": "}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:" }, { "theme": "neutralTertiaryAlt", "defaultValue": "#c8c6c4" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:" }, { "theme": "neutralTertiary", "defaultValue": "#a19f9d" }, { "rawString": ";color:" }, { "theme": "neutralPrimary", "defaultValue": "#323130" }, { "rawString": "}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:" }, { "theme": "neutralSecondary", "defaultValue": "#605e5c" }, { "rawString": "}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": ";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:" }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": ";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.suggestionsTitle_8c91000a{padding:0 12px;color:" }, { "theme": "themePrimary", "defaultValue": "#0078d4" }, { "rawString": ";font-size:12px;line-height:40px;border-bottom:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid " }, { "theme": "neutralLight", "defaultValue": "#edebe9" }, { "rawString": "}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:" }, { "theme": "neutralDark", "defaultValue": "#201f1e" }, { "rawString": "}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:" }, { "theme": "neutralTertiaryAlt", "defaultValue": "#c8c6c4" }, { "rawString": ";color:" }, { "theme": "neutralDark", "defaultValue": "#201f1e" }, { "rawString": "}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); exports.root = "root_8c91000a"; exports.suggestionsItem = "suggestionsItem_8c91000a"; exports.closeButton = "closeButton_8c91000a"; exports.suggestionsItemIsSuggested = "suggestionsItemIsSuggested_8c91000a"; exports.itemButton = "itemButton_8c91000a"; exports.actionButton = "actionButton_8c91000a"; exports.buttonSelected = "buttonSelected_8c91000a"; exports.suggestionsTitle = "suggestionsTitle_8c91000a"; exports.suggestionsContainer = "suggestionsContainer_8c91000a"; exports.suggestionsNone = "suggestionsNone_8c91000a"; exports.suggestionsSpinner = "suggestionsSpinner_8c91000a"; exports.suggestionsAvailable = "suggestionsAvailable_8c91000a"; //# sourceMappingURL=Suggestions.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.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 GlobalClassNames = { root: 'ms-Suggestions', suggestionsContainer: 'ms-Suggestions-container', title: 'ms-Suggestions-title', forceResolveButton: 'ms-forceResolve-button', searchForMoreButton: 'ms-SearchMore-button', spinner: 'ms-Suggestions-spinner', noSuggestions: 'ms-Suggestions-none', suggestionsAvailable: 'ms-Suggestions-suggestionsAvailable', isSelected: 'is-selected', }; function getStyles(props) { var _a; var className = props.className, suggestionsClassName = props.suggestionsClassName, theme = props.theme, forceResolveButtonSelected = props.forceResolveButtonSelected, searchForMoreButtonSelected = props.searchForMoreButtonSelected; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var actionButtonStyles = { backgroundColor: 'transparent', border: 0, cursor: 'pointer', margin: 0, paddingLeft: 8, position: 'relative', borderTop: "1px solid ".concat(palette.neutralLight), height: 40, textAlign: 'left', width: '100%', fontSize: fonts.small.fontSize, selectors: { ':hover': { backgroundColor: semanticColors.menuItemBackgroundPressed, cursor: 'pointer', }, ':focus, :active': { backgroundColor: palette.themeLight, }, '.ms-Button-icon': { fontSize: fonts.mediumPlus.fontSize, width: 25, }, '.ms-Button-label': { margin: '0 4px 0 9px', }, }, }; var actionButtonSelectedStyles = { backgroundColor: palette.themeLight, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }; return { root: [ classNames.root, { minWidth: 260, }, className, ], suggestionsContainer: [ classNames.suggestionsContainer, { overflowY: 'auto', overflowX: 'hidden', maxHeight: 300, transform: 'translate3d(0,0,0)', }, suggestionsClassName, ], title: [ classNames.title, { padding: '0 12px', fontSize: fonts.small.fontSize, color: palette.themePrimary, lineHeight: 40, borderBottom: "1px solid ".concat(semanticColors.menuItemBackgroundPressed), }, ], forceResolveButton: [ classNames.forceResolveButton, actionButtonStyles, forceResolveButtonSelected && [classNames.isSelected, actionButtonSelectedStyles], ], searchForMoreButton: [ classNames.searchForMoreButton, actionButtonStyles, searchForMoreButtonSelected && [classNames.isSelected, actionButtonSelectedStyles], ], noSuggestions: [ classNames.noSuggestions, { textAlign: 'center', color: palette.neutralSecondary, fontSize: fonts.small.fontSize, lineHeight: 30, }, ], suggestionsAvailable: [classNames.suggestionsAvailable, Styling_1.hiddenContentStyle], subComponentStyles: { spinner: { root: [ classNames.spinner, { margin: '5px 0', paddingLeft: 14, textAlign: 'left', whiteSpace: 'nowrap', lineHeight: 20, fontSize: fonts.small.fontSize, }, ], circle: { display: 'inline-block', verticalAlign: 'middle', }, label: { display: 'inline-block', verticalAlign: 'middle', margin: '0 10px 0 16px', }, }, }, }; } exports.getStyles = getStyles; //# sourceMappingURL=Suggestions.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionActionType = void 0; /** * Enum to help identify which suggestions action button is selected. * {@docCategory Pickers} */ var SuggestionActionType; (function (SuggestionActionType) { /** None of the actions is selected. */ SuggestionActionType[SuggestionActionType["none"] = 0] = "none"; /** ForceResolve action is selected. */ SuggestionActionType[SuggestionActionType["forceResolve"] = 1] = "forceResolve"; /** SearchMore action is selected. */ SuggestionActionType[SuggestionActionType["searchMore"] = 2] = "searchMore"; })(SuggestionActionType = exports.SuggestionActionType || (exports.SuggestionActionType = {})); //# sourceMappingURL=Suggestions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsController = void 0; /** * {@docCategory Pickers} */ var SuggestionsController = /** @class */ (function () { function SuggestionsController() { 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: suggestion.name || suggestion.primaryText, }; } }; this.suggestions = []; this.currentIndex = -1; } SuggestionsController.prototype.updateSuggestions = function (newSuggestions, selectedIndex, maxCount) { if (newSuggestions && newSuggestions.length > 0) { if (maxCount && newSuggestions.length > maxCount) { var startIndex = selectedIndex && selectedIndex > maxCount ? selectedIndex + 1 - maxCount : 0; newSuggestions = newSuggestions.slice(startIndex, startIndex + maxCount - 1); } this.suggestions = this.convertSuggestionsToSuggestionItems(newSuggestions); this.currentIndex = selectedIndex ? selectedIndex : 0; if (selectedIndex === -1) { this.currentSuggestion = undefined; } else if (selectedIndex !== undefined) { this.suggestions[selectedIndex].selected = true; this.currentSuggestion = this.suggestions[selectedIndex]; } } else { this.suggestions = []; this.currentIndex = -1; this.currentSuggestion = undefined; } }; /** * Increments the suggestion index and gets the next suggestion in the list. */ SuggestionsController.prototype.nextSuggestion = function () { if (this.suggestions && this.suggestions.length) { if (this.currentIndex < this.suggestions.length - 1) { this.setSelectedSuggestion(this.currentIndex + 1); return true; } else if (this.currentIndex === this.suggestions.length - 1) { this.setSelectedSuggestion(0); return true; } } return false; }; /** * Decrements the suggestion index and gets the previous suggestion in the list. */ SuggestionsController.prototype.previousSuggestion = function () { if (this.suggestions && this.suggestions.length) { if (this.currentIndex > 0) { this.setSelectedSuggestion(this.currentIndex - 1); return true; } else if (this.currentIndex === 0) { this.setSelectedSuggestion(this.suggestions.length - 1); return true; } } return false; }; SuggestionsController.prototype.getSuggestions = function () { return this.suggestions; }; SuggestionsController.prototype.getCurrentItem = function () { return this.currentSuggestion; }; SuggestionsController.prototype.getSuggestionAtIndex = function (index) { return this.suggestions[index]; }; SuggestionsController.prototype.hasSelectedSuggestion = function () { return this.currentSuggestion ? true : false; }; SuggestionsController.prototype.removeSuggestion = function (index) { this.suggestions.splice(index, 1); }; SuggestionsController.prototype.createGenericSuggestion = function (itemToConvert) { var itemToAdd = this.convertSuggestionsToSuggestionItems([itemToConvert])[0]; this.currentSuggestion = itemToAdd; }; SuggestionsController.prototype.convertSuggestionsToSuggestionItems = function (suggestions) { return Array.isArray(suggestions) ? suggestions.map(this._ensureSuggestionModel) : []; }; SuggestionsController.prototype.deselectAllSuggestions = function () { if (this.currentIndex > -1) { this.suggestions[this.currentIndex].selected = false; this.currentIndex = -1; } }; SuggestionsController.prototype.setSelectedSuggestion = function (index) { if (index > this.suggestions.length - 1 || index < 0) { this.currentIndex = 0; this.currentSuggestion.selected = false; this.currentSuggestion = this.suggestions[0]; this.currentSuggestion.selected = true; } else { if (this.currentIndex > -1) { this.suggestions[this.currentIndex].selected = false; } this.suggestions[index].selected = true; this.currentIndex = index; this.currentSuggestion = this.suggestions[index]; } }; return SuggestionsController; }()); exports.SuggestionsController = SuggestionsController; //# sourceMappingURL=SuggestionsController.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsItem = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var stylesImport = __webpack_require__(/*! ./Suggestions.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.scss.js"); var legacyStyles = stylesImport; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory Pickers} */ var SuggestionsItem = /** @class */ (function (_super) { tslib_1.__extends(SuggestionsItem, _super); function SuggestionsItem(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } SuggestionsItem.prototype.render = function () { var _a; var _b = this.props, suggestionModel = _b.suggestionModel, RenderSuggestion = _b.RenderSuggestion, onClick = _b.onClick, className = _b.className, id = _b.id, onRemoveItem = _b.onRemoveItem, isSelectedOverride = _b.isSelectedOverride, removeButtonAriaLabel = _b.removeButtonAriaLabel, styles = _b.styles, theme = _b.theme, removeButtonIconProps = _b.removeButtonIconProps; // TODO // Clean this up by leaving only the first part after removing support for SASS. // Currently we can not remove the SASS styles from SuggestionsItem class because it // might be used by consumers separately from pickers extending from BasePicker // and have not used the new 'styles' prop. Because it's expecting a type parameter, // we can not use the 'styled' function without adding some helpers which can break // downstream consumers who did not use the new helpers. // We check for 'styles' prop which is going to be injected by the 'styled' HOC // in Suggestions when the typed SuggestionsItem class is ready to be rendered. If the // check passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker), // then we just use the old SASS styles instead. var classNames = styles ? getClassNames(styles, { theme: theme, className: className, suggested: suggestionModel.selected || isSelectedOverride, }) : { root: (0, Utilities_1.css)('ms-Suggestions-item', legacyStyles.suggestionsItem, (_a = {}, _a['is-suggested ' + legacyStyles.suggestionsItemIsSuggested] = suggestionModel.selected || isSelectedOverride, _a), className), itemButton: (0, Utilities_1.css)('ms-Suggestions-itemButton', legacyStyles.itemButton), closeButton: (0, Utilities_1.css)('ms-Suggestions-closeButton', legacyStyles.closeButton), }; return (React.createElement("div", { className: classNames.root, role: "presentation" }, React.createElement(Button_1.CommandButton, { onClick: onClick, className: classNames.itemButton, id: id, "aria-selected": suggestionModel.selected, role: "option", "aria-label": suggestionModel.ariaLabel }, RenderSuggestion(suggestionModel.item, this.props)), this.props.showRemoveButton ? (React.createElement(Button_1.IconButton, { iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, title: removeButtonAriaLabel, ariaLabel: removeButtonAriaLabel, onClick: onRemoveItem, className: classNames.closeButton })) : null)); }; return SuggestionsItem; }(React.Component)); exports.SuggestionsItem = SuggestionsItem; //# sourceMappingURL=SuggestionsItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.SuggestionsItemGlobalClassNames = 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.SuggestionsItemGlobalClassNames = { root: 'ms-Suggestions-item', itemButton: 'ms-Suggestions-itemButton', closeButton: 'ms-Suggestions-closeButton', isSuggested: 'is-suggested', }; function getStyles(props) { var _a, _b, _c, _d, _e, _f; var className = props.className, theme = props.theme, suggested = props.suggested; var palette = theme.palette, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(exports.SuggestionsItemGlobalClassNames, theme); return { root: [ classNames.root, { display: 'flex', alignItems: 'stretch', boxSizing: 'border-box', width: '100%', position: 'relative', selectors: { '&:hover': { background: semanticColors.menuItemBackgroundHovered, }, '&:hover .ms-Suggestions-closeButton': { display: 'block', }, }, }, suggested && { selectors: (_a = {}, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &")] = { selectors: (_b = {}, _b[".".concat(classNames.closeButton)] = { display: 'block', background: semanticColors.menuItemBackgroundPressed, }, _b), }, _a[':after'] = { pointerEvents: 'none', content: '""', position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, border: "1px solid ".concat(theme.semanticColors.focusBorder), }, _a), }, className, ], itemButton: [ classNames.itemButton, { width: '100%', padding: 0, border: 'none', height: '100%', // Force the item button to be collapsible so it can always shrink // to accommodate the close button as a peer in its flex container. minWidth: 0, // Require for IE11 to truncate the component. overflow: 'hidden', selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'WindowText', selectors: { ':hover': tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), }, }, _c[':hover'] = { color: semanticColors.menuItemTextHovered, }, _c), }, suggested && [ classNames.isSuggested, { background: semanticColors.menuItemBackgroundPressed, selectors: (_d = { ':hover': { background: semanticColors.menuDivider, } }, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, ], ], closeButton: [ classNames.closeButton, { display: 'none', color: palette.neutralSecondary, padding: '0 4px', height: 'auto', width: 32, selectors: (_e = { ':hover, :active': { background: palette.neutralTertiaryAlt, color: palette.neutralDark, } }, _e[Styling_1.HighContrastSelector] = { color: 'WindowText', }, _e), }, suggested && (_f = {}, _f[".".concat(Utilities_1.IsFocusVisibleClassName, " &")] = { selectors: { ':hover, :active': { background: palette.neutralTertiary, }, }, }, _f.selectors = { ':hover, :active': { background: palette.neutralTertiary, color: palette.neutralPrimary, }, }, _f), ], }; } exports.getStyles = getStyles; //# sourceMappingURL=SuggestionsItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SuggestionsItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagItem = exports.TagItemBase = 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_1 = __webpack_require__(/*! ../../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var TagItem_styles_1 = __webpack_require__(/*! ./TagItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.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)(); /** * {@docCategory TagPicker} */ var TagItemBase = function (props) { var theme = props.theme, styles = props.styles, selected = props.selected, disabled = props.disabled, enableTagFocusInDisabledPicker = props.enableTagFocusInDisabledPicker, children = props.children, className = props.className, index = props.index, onRemoveItem = props.onRemoveItem, removeButtonAriaLabel = props.removeButtonAriaLabel, _a = props.title, title = _a === void 0 ? typeof props.children === 'string' ? props.children : props.item.name : _a, removeButtonIconProps = props.removeButtonIconProps; var buttonRef = React.createRef(); var handleClick = function () { var _a; (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus(); }; var classNames = getClassNames(styles, { theme: theme, className: className, selected: selected, disabled: disabled, }); var itemId = (0, react_hooks_1.useId)(); var disabledAttrs = enableTagFocusInDisabledPicker ? { 'aria-disabled': disabled, tabindex: 0, } : { disabled: disabled, }; return (React.createElement("div", { "data-selection-index": index, className: classNames.root, role: 'listitem', key: index, onClick: handleClick }, React.createElement("span", { className: classNames.text, title: title, id: "".concat(itemId, "-text") }, children), React.createElement(Button_1.IconButton, tslib_1.__assign({ componentRef: buttonRef, id: itemId, onClick: onRemoveItem }, disabledAttrs, { iconProps: removeButtonIconProps !== null && removeButtonIconProps !== void 0 ? removeButtonIconProps : { iconName: 'Cancel' }, styles: { icon: { fontSize: '12px' } }, className: classNames.close, "aria-labelledby": "".concat(itemId, "-removeLabel ").concat(itemId, "-text") })), React.createElement("span", { id: "".concat(itemId, "-removeLabel"), hidden: true }, removeButtonAriaLabel))); }; exports.TagItemBase = TagItemBase; exports.TagItem = (0, Utilities_1.styled)(exports.TagItemBase, TagItem_styles_1.getStyles, undefined, { scope: 'TagItem', }); //# sourceMappingURL=TagItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.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 BaseButton_classNames_1 = __webpack_require__(/*! ../../Button/BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GlobalClassNames = { root: 'ms-TagItem', text: 'ms-TagItem-text', close: 'ms-TagItem-close', isSelected: 'is-selected', }; var TAG_HEIGHT = 26; function getStyles(props) { var _a, _b, _c, _d, _e; var className = props.className, theme = props.theme, selected = props.selected, disabled = props.disabled; var palette = theme.palette, effects = theme.effects, fonts = theme.fonts, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, fonts.medium, (0, Styling_1.getFocusStyle)(theme), { boxSizing: 'content-box', flexShrink: '1', margin: 2, height: TAG_HEIGHT, lineHeight: TAG_HEIGHT, cursor: 'default', userSelect: 'none', display: 'flex', flexWrap: 'nowrap', maxWidth: 300, minWidth: 0, borderRadius: effects.roundedCorner2, color: semanticColors.inputText, background: palette.neutralLighter, selectors: (_a = { ':hover': [ !disabled && !selected && { color: palette.neutralDark, background: palette.neutralLight, selectors: { '.ms-TagItem-close': { color: palette.neutralPrimary, }, }, }, disabled && { background: palette.neutralLighter }, ] }, _a[Styling_1.HighContrastSelector] = { border: "1px solid ".concat(!selected ? 'WindowText' : 'WindowFrame'), }, _a), }, disabled && { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'GrayText', }, _b), }, selected && !disabled && [ classNames.isSelected, { background: palette.themePrimary, color: palette.white, }, ], className, ], text: [ classNames.text, { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', minWidth: 30, margin: '0 8px', }, disabled && { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }, ], close: [ classNames.close, (0, Styling_1.getFocusStyle)(theme, { borderColor: 'transparent', inset: 1, outlineColor: palette.white }), { color: palette.neutralSecondary, width: 30, height: '100%', flex: '0 0 auto', borderRadius: (0, Utilities_1.getRTL)(theme) ? "".concat(effects.roundedCorner2, " 0 0 ").concat(effects.roundedCorner2) : "0 ".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2, " 0"), selectors: (_d = { ':hover': { background: palette.neutralQuaternaryAlt, color: palette.neutralPrimary, } }, _d[".".concat(classNames.isSelected, " &, :focus")] = { color: palette.white, background: palette.themePrimary, }, _d[':focus:hover'] = { color: palette.white, background: palette.themeDark, }, _d[':active'] = { color: palette.white, backgroundColor: palette.themeDark, }, _d), }, disabled && { selectors: (_e = {}, _e[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: palette.neutralSecondary, }, _e), }, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=TagItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagItemSuggestion = exports.TagItemSuggestionBase = 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 TagItemSuggestion_styles_1 = __webpack_require__(/*! ./TagItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory TagPicker} */ var TagItemSuggestionBase = function (props) { var styles = props.styles, theme = props.theme, children = props.children; var classNames = getClassNames(styles, { theme: theme, }); return React.createElement("div", { className: classNames.suggestionTextOverflow }, " ", children, " "); }; exports.TagItemSuggestionBase = TagItemSuggestionBase; exports.TagItemSuggestion = (0, Utilities_1.styled)(exports.TagItemSuggestionBase, TagItemSuggestion_styles_1.getStyles, undefined, { scope: 'TagItemSuggestion' }); //# sourceMappingURL=TagItemSuggestion.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.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 = { suggestionTextOverflow: 'ms-TagItem-TextOverflow', }; function getStyles(props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { suggestionTextOverflow: [ classNames.suggestionTextOverflow, { overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: '60vw', padding: '6px 12px 7px', whiteSpace: 'nowrap', }, className, ], }; } exports.getStyles = getStyles; //# sourceMappingURL=TagItemSuggestion.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TagPicker = exports.TagPickerBase = 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 BasePicker_1 = __webpack_require__(/*! ../BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"); var BasePicker_styles_1 = __webpack_require__(/*! ../BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); var TagItem_1 = __webpack_require__(/*! ./TagItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js"); var TagItemSuggestion_1 = __webpack_require__(/*! ./TagItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js"); /** * {@docCategory TagPicker} */ var TagPickerBase = /** @class */ (function (_super) { tslib_1.__extends(TagPickerBase, _super); function TagPickerBase() { return _super !== null && _super.apply(this, arguments) || this; } TagPickerBase.defaultProps = { onRenderItem: function (props) { return React.createElement(TagItem_1.TagItem, tslib_1.__assign({}, props), props.item.name); }, onRenderSuggestionsItem: function (props) { return React.createElement(TagItemSuggestion_1.TagItemSuggestion, null, props.name); }, }; return TagPickerBase; }(BasePicker_1.BasePicker)); exports.TagPickerBase = TagPickerBase; exports.TagPicker = (0, Utilities_1.styled)(TagPickerBase, BasePicker_styles_1.getStyles, undefined, { scope: 'TagPicker', }); //# sourceMappingURL=TagPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=TagPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/pickers/index.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getTagItemSuggestionStyles = exports.getTagItemStyles = exports.getPeoplePickerItemSuggestionStyles = exports.getPeoplePickerItemStyles = exports.getBasePickerStyles = exports.getSuggestionsItemStyles = exports.getSuggestionsStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/Suggestions */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.js"), exports); var Suggestions_styles_1 = __webpack_require__(/*! ./Suggestions/Suggestions.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.styles.js"); Object.defineProperty(exports, "getSuggestionsStyles", ({ enumerable: true, get: function () { return Suggestions_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/Suggestions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/Suggestions.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.js"), exports); var SuggestionsItem_styles_1 = __webpack_require__(/*! ./Suggestions/SuggestionsItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.styles.js"); Object.defineProperty(exports, "getSuggestionsItemStyles", ({ enumerable: true, get: function () { return SuggestionsItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsController */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/Suggestions/SuggestionsController.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AutoFill/BaseAutoFill */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AutoFill/BaseAutoFill.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/AutoFill/BaseAutoFill.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./BasePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.js"), exports); var BasePicker_styles_1 = __webpack_require__(/*! ./BasePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.styles.js"); Object.defineProperty(exports, "getBasePickerStyles", ({ enumerable: true, get: function () { return BasePicker_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./BasePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/BasePicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PickerItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PickerItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePicker.js"), exports); var PeoplePickerItem_styles_1 = __webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.js"); Object.defineProperty(exports, "getPeoplePickerItemStyles", ({ enumerable: true, get: function () { return PeoplePickerItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.js"), exports); var PeoplePickerItemSuggestion_styles_1 = __webpack_require__(/*! ./PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.js"); Object.defineProperty(exports, "getPeoplePickerItemSuggestionStyles", ({ enumerable: true, get: function () { return PeoplePickerItemSuggestion_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagItem */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.js"), exports); var TagItem_styles_1 = __webpack_require__(/*! ./TagPicker/TagItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItem.styles.js"); Object.defineProperty(exports, "getTagItemStyles", ({ enumerable: true, get: function () { return TagItem_styles_1.getStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./TagPicker/TagItemSuggestion */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.js"), exports); var TagItemSuggestion_styles_1 = __webpack_require__(/*! ./TagPicker/TagItemSuggestion.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/TagPicker/TagItemSuggestion.styles.js"); Object.defineProperty(exports, "getTagItemSuggestionStyles", ({ enumerable: true, get: function () { return TagItemSuggestion_styles_1.getStyles; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/index.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/index.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MAX_COLOR_HUE = exports.MAX_COLOR_ALPHA = exports.HEX_REGEX = exports.CoachmarkBase = exports.Coachmark = exports.COACHMARK_ATTRIBUTE_NAME = exports.ChoiceGroupOption = exports.ChoiceGroupBase = exports.ChoiceGroup = exports.CheckboxBase = exports.Checkbox = exports.CheckBase = exports.Check = exports.FocusTrapCallout = exports.DirectionalHint = exports.CalloutContentBase = exports.CalloutContent = exports.Callout = exports.defaultDayPickerStrings = exports.defaultCalendarStrings = exports.defaultCalendarNavigationIcons = exports.FirstWeekOfYear = exports.DayOfWeek = exports.DateRangeType = exports.Calendar = exports.AnimationDirection = exports.ButtonGridCell = exports.ButtonGrid = exports.getSplitButtonClassNames = exports.PrimaryButton = exports.MessageBarButton = exports.IconButton = exports.ElementType = exports.DefaultButton = exports.CompoundButton = exports.CommandButton = exports.CommandBarButton = exports.ButtonType = exports.ButtonGlobalClassNames = exports.Button = exports.BaseButton = exports.ActionButton = exports.BreadcrumbBase = exports.Breadcrumb = exports.AnnouncedBase = exports.Announced = exports.Autofill = exports.getActivityItemStyles = exports.getActivityItemClassNames = exports.ActivityItem = void 0; exports.canAnyMenuItemsCheck = exports.ContextualMenuItemType = exports.ContextualMenuItemBase = exports.ContextualMenuItem = exports.ContextualMenuBase = exports.ContextualMenu = exports.getCommandButtonStyles = exports.getCommandBarStyles = exports.CommandBarBase = exports.CommandBar = exports.VirtualizedComboBox = exports.ComboBox = exports.ColorPickerBase = exports.ColorPicker = exports.updateT = exports.updateSV = exports.updateRGB = exports.updateH = exports.updateA = exports.rgb2hsv = exports.rgb2hex = exports.isValidShade = exports.isDark = exports.hsv2rgb = exports.hsv2hsl = exports.hsv2hex = exports.hsl2rgb = exports.hsl2hsv = exports.getShade = exports.getFullColorString = exports.getContrastRatio = exports.getColorFromString = exports.getColorFromRGBA = exports.getColorFromHSV = exports.getBackgroundShade = exports.cssColor = exports.correctRGB = exports.correctHex = exports.correctHSV = exports.clamp = exports.Shade = exports.RGBA_REGEX = exports.MIN_RGBA_LENGTH = exports.MIN_HEX_LENGTH = exports.MAX_RGBA_LENGTH = exports.MAX_HEX_LENGTH = exports.MAX_COLOR_VALUE = exports.MAX_COLOR_SATURATION = exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB = void 0; exports.SELECTION_CHANGE = exports.HEADER_HEIGHT = exports.DetailsRowGlobalClassNames = exports.DetailsRowFields = exports.DetailsRowCheck = exports.DetailsRowBase = exports.DetailsRow = exports.DetailsListLayoutMode = exports.DetailsListBase = exports.DetailsList = exports.DetailsHeaderBase = exports.DetailsHeader = exports.DetailsColumnBase = exports.DetailsColumn = exports.DEFAULT_ROW_HEIGHTS = exports.DEFAULT_CELL_STYLE_PROPS = exports.ConstrainMode = exports.ColumnDragEndLocation = exports.ColumnActionsMode = exports.CollapseAllVisibility = exports.CheckboxVisibility = exports.CHECK_CELL_WIDTH = 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 = exports.TimeConstants = exports.MonthOfYear = exports.DAYS_IN_WEEK = exports.defaultDatePickerStrings = exports.DatePickerBase = exports.DatePicker = exports.getSubmenuItems = exports.getMenuItemStyles = exports.getContextualMenuItemStyles = exports.getContextualMenuItemClassNames = void 0; exports.SuggestionsHeaderFooterItem = exports.SuggestionsCore = exports.SuggestionsControl = exports.SuggestionItemType = exports.FloatingPeoplePicker = exports.BaseFloatingPicker = exports.BaseFloatingPeoplePicker = exports.OverflowButtonType = exports.FacepileBase = exports.Facepile = exports.FabricBase = exports.Fabric = exports.ExtendedPeoplePicker = exports.BaseExtendedPicker = exports.BaseExtendedPeoplePicker = exports.DropdownMenuItemType = exports.DropdownBase = exports.Dropdown = exports.DragDropHelper = exports.DocumentCardType = exports.DocumentCardTitle = exports.DocumentCardStatus = exports.DocumentCardPreview = exports.DocumentCardLogo = exports.DocumentCardLocation = exports.DocumentCardImage = exports.DocumentCardDetails = exports.DocumentCardActivity = exports.DocumentCardActions = exports.DocumentCard = exports.VerticalDivider = exports.DialogType = exports.DialogFooterBase = exports.DialogFooter = exports.DialogContentBase = exports.DialogContent = exports.DialogBase = exports.Dialog = exports.getDetailsRowStyles = exports.getDetailsRowCheckStyles = exports.getDetailsListStyles = exports.getDetailsHeaderStyles = exports.getDetailsColumnStyles = exports.getCellStyles = exports.buildColumns = exports.SelectionZone = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SelectAllVisibility = void 0; exports.KeytipLayerBase = exports.KeytipLayer = exports.KeytipEvents = exports.KeytipData = exports.Keytip = exports.KTP_SEPARATOR = exports.KTP_PREFIX = exports.KTP_LAYER_ID = exports.KTP_FULL_PREFIX = exports.KTP_ARIA_SEPARATOR = exports.DATAKTP_TARGET = exports.DATAKTP_EXECUTE_TARGET = exports.DATAKTP_ARIA_TARGET = exports.ImageLoadState = exports.ImageFit = exports.ImageCoverStyle = exports.ImageBase = exports.Image = exports.initializeIcons = exports.getIconContent = exports.getFontIcon = exports.ImageIcon = exports.IconType = exports.IconBase = exports.Icon = exports.FontIcon = exports.PlainCardBase = exports.PlainCard = exports.OpenCardMode = exports.HoverCardType = exports.HoverCardBase = exports.HoverCard = exports.ExpandingCardMode = exports.ExpandingCardBase = exports.ExpandingCard = exports.GroupedListV2_unstable = exports.GroupedListSection = exports.GroupedListBase = exports.GroupedList = exports.GroupSpacer = exports.GroupShowAll = exports.GroupHeader = exports.GroupFooter = exports.GetGroupCount = exports.FocusZoneTabbableElements = exports.FocusZoneDirection = exports.FocusZone = exports.FocusTrapZone = exports.createItem = exports.SuggestionsStore = void 0; exports.PersonaBase = exports.Persona = exports.PanelType = exports.PanelBase = exports.Panel = exports.OverlayBase = exports.Overlay = exports.OverflowSetBase = exports.OverflowSet = exports.isRelativeUrl = exports.NavBase = exports.Nav = exports.ModalBase = exports.Modal = exports.MessageBarType = exports.MessageBarBase = exports.MessageBar = exports.MarqueeSelection = exports.ScrollToMode = exports.List = exports.LinkBase = exports.Link = exports.unregisterLayerHost = exports.unregisterLayer = exports.setLayerHostSelector = exports.registerLayerHost = exports.registerLayer = exports.notifyHostChanged = exports.getLayerStyles = exports.getLayerHostSelector = exports.getLayerHost = exports.getLayerCount = exports.createDefaultLayerHost = exports.cleanupDefaultLayerHost = exports.LayerHost = exports.LayerBase = exports.Layer = exports.LabelBase = exports.Label = exports.useKeytipRef = exports.transitionKeysContain = exports.transitionKeysAreEqual = exports.sequencesToID = exports.mergeOverflows = exports.ktpTargetFromSequences = exports.ktpTargetFromId = exports.getAriaDescribedBy = exports.constructKeytip = exports.buildKeytipConfigMap = exports.KeytipManager = void 0; exports.Popup = exports.PivotLinkSize = exports.PivotLinkFormat = exports.PivotItem = exports.PivotBase = exports.Pivot = exports.getTagItemSuggestionStyles = exports.getTagItemStyles = exports.getSuggestionsStyles = exports.getSuggestionsItemStyles = exports.getPeoplePickerItemSuggestionStyles = exports.getPeoplePickerItemStyles = exports.getBasePickerStyles = exports.createGenericItem = exports.ValidationState = exports.TagPickerBase = exports.TagPicker = exports.TagItemSuggestionBase = exports.TagItemSuggestion = exports.TagItemBase = exports.TagItem = exports.SuggestionsItem = exports.SuggestionsController = exports.Suggestions = exports.SuggestionActionType = exports.PeoplePickerItemSuggestionBase = exports.PeoplePickerItemSuggestion = exports.PeoplePickerItemBase = exports.PeoplePickerItem = exports.NormalPeoplePickerBase = exports.NormalPeoplePicker = exports.MemberListPeoplePicker = exports.ListPeoplePickerBase = exports.ListPeoplePicker = exports.CompactPeoplePickerBase = exports.CompactPeoplePicker = exports.BasePickerListBelow = exports.BasePicker = exports.BasePeoplePicker = exports.sizeToPixels = exports.sizeBoolean = exports.presenceBoolean = exports.personaSize = exports.personaPresenceSize = exports.getPersonaInitialsColor = exports.PersonaSize = exports.PersonaPresence = exports.PersonaInitialsColor = exports.PersonaCoinBase = exports.PersonaCoin = void 0; exports.ShimmerElementsGroupBase = exports.ShimmerElementsGroup = exports.ShimmerElementsDefaultHeights = exports.ShimmerElementType = exports.ShimmerCircleBase = exports.ShimmerCircle = exports.ShimmerBase = exports.Shimmer = exports.SeparatorBase = exports.Separator = exports.SelectedPeopleList = exports.ExtendedSelectedItem = exports.BaseSelectedItemsList = exports.BasePeopleSelectedItemsList = exports.getAllSelectedOptions = exports.SelectableOptionMenuItemType = exports.SearchBoxBase = exports.SearchBox = exports.ScrollbarVisibility = exports.ScrollablePaneContext = exports.ScrollablePaneBase = exports.ScrollablePane = exports.withResponsiveMode = exports.useResponsiveMode = exports.setResponsiveMode = exports.initializeResponsiveMode = exports.getResponsiveMode = exports.getInitialResponsiveMode = exports.ResponsiveMode = exports.getNextResizeGroupStateProvider = exports.getMeasurementCache = exports.ResizeGroupDirection = exports.ResizeGroupBase = exports.ResizeGroup = exports.MeasuredContext = exports.RatingSize = exports.RatingBase = exports.Rating = exports.ProgressIndicatorBase = exports.ProgressIndicator = exports.useHeightOffset = exports.PositioningContainer = exports.positionElement = exports.positionCard = exports.positionCallout = exports.getOppositeEdge = exports.getMaxHeight = exports.getBoundsFromTargetWindow = exports.RectangleEdge = exports.Position = void 0; 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 = exports.StickyPositionType = exports.Sticky = exports.StackItem = exports.Stack = exports.SpinnerType = exports.SpinnerSize = exports.SpinnerBase = exports.Spinner = exports.SpinButton = exports.KeyboardSpinDirection = exports.SliderBase = exports.Slider = exports.getShimmeredDetailsListStyles = exports.ShimmeredDetailsListBase = exports.ShimmeredDetailsList = exports.ShimmerLineBase = exports.ShimmerLine = exports.ShimmerGapBase = exports.ShimmerGap = void 0; exports.TextFieldBase = exports.TextField = exports.MaskedTextField = exports.DEFAULT_MASK_CHAR = exports.TextView = exports.TextStyles = exports.Text = exports.TeachingBubbleContentBase = exports.TeachingBubbleContent = exports.TeachingBubbleBase = exports.TeachingBubble = exports.SwatchColorPickerBase = exports.SwatchColorPicker = exports.ColorPickerGridCellBase = exports.ColorPickerGridCell = exports.unregisterIcons = exports.setIconOptions = exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.registerIcons = exports.registerIconAlias = exports.registerDefaultFontFaces = exports.normalize = exports.noWrap = exports.mergeStyles = exports.mergeStyleSets = exports.loadTheme = exports.keyframes = exports.hiddenContentStyle = exports.getThemedContext = 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.createTheme = exports.createFontStyles = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.buildClassMap = exports.ZIndexes = void 0; 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.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 = exports.TooltipOverflowMode = exports.TooltipHostBase = exports.TooltipHost = exports.TooltipDelay = exports.TooltipBase = exports.Tooltip = exports.ToggleBase = exports.Toggle = exports.TimePicker = exports.themeRulesStandardCreator = exports.ThemeGenerator = exports.SemanticColorSlots = exports.FabricSlots = exports.BaseSlots = exports.getTextFieldStyles = void 0; 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 = exports.divProperties = exports.disableBodyScroll = exports.customizable = exports.css = exports.createMergedRef = exports.createMemoizer = exports.createArray = exports.composeRenderFunction = exports.composeComponentAs = exports.colProperties = exports.colGroupProperties = void 0; 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 = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.hoistStatics = exports.hoistMethods = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.getWindow = exports.getVirtualParent = exports.getScrollbarWidth = void 0; exports.LocalizedFontNames = exports.LocalizedFontFamilies = exports.FluentTheme = exports.Depths = exports.DefaultSpacing = exports.CommunicationColors = exports.useTheme = exports.makeStyles = exports.ThemeProvider = exports.ThemeContext = exports.useWindow = exports.useDocument = exports.WindowProvider = exports.WindowContext = exports.defaultWeeklyDayPickerStrings = exports.defaultWeeklyDayPickerNavigationIcons = exports.WeeklyDayPicker = exports.withViewport = 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 = exports.setSSR = exports.setRTL = exports.setPortalAttribute = exports.setMemoizeWeakMap = exports.setLanguage = exports.setFocusVisibility = exports.setBaseUrl = exports.selectProperties = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.resetMemoizations = void 0; exports.SharedColors = exports.NeutralColors = exports.MotionAnimations = exports.MotionTimings = exports.MotionDurations = exports.mergeThemes = void 0; var ActivityItem_1 = __webpack_require__(/*! ./ActivityItem */ "./node_modules/@fluentui/react/lib-commonjs/ActivityItem.js"); Object.defineProperty(exports, "ActivityItem", ({ enumerable: true, get: function () { return ActivityItem_1.ActivityItem; } })); Object.defineProperty(exports, "getActivityItemClassNames", ({ enumerable: true, get: function () { return ActivityItem_1.getActivityItemClassNames; } })); Object.defineProperty(exports, "getActivityItemStyles", ({ enumerable: true, get: function () { return ActivityItem_1.getActivityItemStyles; } })); var Autofill_1 = __webpack_require__(/*! ./Autofill */ "./node_modules/@fluentui/react/lib-commonjs/Autofill.js"); Object.defineProperty(exports, "Autofill", ({ enumerable: true, get: function () { return Autofill_1.Autofill; } })); var Announced_1 = __webpack_require__(/*! ./Announced */ "./node_modules/@fluentui/react/lib-commonjs/Announced.js"); Object.defineProperty(exports, "Announced", ({ enumerable: true, get: function () { return Announced_1.Announced; } })); Object.defineProperty(exports, "AnnouncedBase", ({ enumerable: true, get: function () { return Announced_1.AnnouncedBase; } })); var Breadcrumb_1 = __webpack_require__(/*! ./Breadcrumb */ "./node_modules/@fluentui/react/lib-commonjs/Breadcrumb.js"); Object.defineProperty(exports, "Breadcrumb", ({ enumerable: true, get: function () { return Breadcrumb_1.Breadcrumb; } })); Object.defineProperty(exports, "BreadcrumbBase", ({ enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbBase; } })); var Button_1 = __webpack_require__(/*! ./Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); Object.defineProperty(exports, "ActionButton", ({ enumerable: true, get: function () { return Button_1.ActionButton; } })); Object.defineProperty(exports, "BaseButton", ({ enumerable: true, get: function () { return Button_1.BaseButton; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Button", ({ enumerable: true, get: function () { return Button_1.Button; } })); Object.defineProperty(exports, "ButtonGlobalClassNames", ({ enumerable: true, get: function () { return Button_1.ButtonGlobalClassNames; } })); Object.defineProperty(exports, "ButtonType", ({ enumerable: true, get: function () { return Button_1.ButtonType; } })); Object.defineProperty(exports, "CommandBarButton", ({ enumerable: true, get: function () { return Button_1.CommandBarButton; } })); Object.defineProperty(exports, "CommandButton", ({ enumerable: true, get: function () { return Button_1.CommandButton; } })); Object.defineProperty(exports, "CompoundButton", ({ enumerable: true, get: function () { return Button_1.CompoundButton; } })); Object.defineProperty(exports, "DefaultButton", ({ enumerable: true, get: function () { return Button_1.DefaultButton; } })); Object.defineProperty(exports, "ElementType", ({ enumerable: true, get: function () { return Button_1.ElementType; } })); Object.defineProperty(exports, "IconButton", ({ enumerable: true, get: function () { return Button_1.IconButton; } })); Object.defineProperty(exports, "MessageBarButton", ({ enumerable: true, get: function () { return Button_1.MessageBarButton; } })); Object.defineProperty(exports, "PrimaryButton", ({ enumerable: true, get: function () { return Button_1.PrimaryButton; } })); Object.defineProperty(exports, "getSplitButtonClassNames", ({ enumerable: true, get: function () { return Button_1.getSplitButtonClassNames; } })); var ButtonGrid_1 = __webpack_require__(/*! ./ButtonGrid */ "./node_modules/@fluentui/react/lib-commonjs/ButtonGrid.js"); Object.defineProperty(exports, "ButtonGrid", ({ enumerable: true, get: function () { return ButtonGrid_1.ButtonGrid; } })); Object.defineProperty(exports, "ButtonGridCell", ({ enumerable: true, get: function () { return ButtonGrid_1.ButtonGridCell; } })); var Calendar_1 = __webpack_require__(/*! ./Calendar */ "./node_modules/@fluentui/react/lib-commonjs/Calendar.js"); Object.defineProperty(exports, "AnimationDirection", ({ enumerable: true, get: function () { return Calendar_1.AnimationDirection; } })); Object.defineProperty(exports, "Calendar", ({ enumerable: true, get: function () { return Calendar_1.Calendar; } })); Object.defineProperty(exports, "DateRangeType", ({ enumerable: true, get: function () { return Calendar_1.DateRangeType; } })); Object.defineProperty(exports, "DayOfWeek", ({ enumerable: true, get: function () { return Calendar_1.DayOfWeek; } })); Object.defineProperty(exports, "FirstWeekOfYear", ({ enumerable: true, get: function () { return Calendar_1.FirstWeekOfYear; } })); Object.defineProperty(exports, "defaultCalendarNavigationIcons", ({ enumerable: true, get: function () { return Calendar_1.defaultCalendarNavigationIcons; } })); Object.defineProperty(exports, "defaultCalendarStrings", ({ enumerable: true, get: function () { return Calendar_1.defaultCalendarStrings; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "defaultDayPickerStrings", ({ enumerable: true, get: function () { return Calendar_1.defaultDayPickerStrings; } })); var Callout_1 = __webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); Object.defineProperty(exports, "Callout", ({ enumerable: true, get: function () { return Callout_1.Callout; } })); Object.defineProperty(exports, "CalloutContent", ({ enumerable: true, get: function () { return Callout_1.CalloutContent; } })); Object.defineProperty(exports, "CalloutContentBase", ({ enumerable: true, get: function () { return Callout_1.CalloutContentBase; } })); Object.defineProperty(exports, "DirectionalHint", ({ enumerable: true, get: function () { return Callout_1.DirectionalHint; } })); Object.defineProperty(exports, "FocusTrapCallout", ({ enumerable: true, get: function () { return Callout_1.FocusTrapCallout; } })); var Check_1 = __webpack_require__(/*! ./Check */ "./node_modules/@fluentui/react/lib-commonjs/Check.js"); Object.defineProperty(exports, "Check", ({ enumerable: true, get: function () { return Check_1.Check; } })); Object.defineProperty(exports, "CheckBase", ({ enumerable: true, get: function () { return Check_1.CheckBase; } })); var Checkbox_1 = __webpack_require__(/*! ./Checkbox */ "./node_modules/@fluentui/react/lib-commonjs/Checkbox.js"); Object.defineProperty(exports, "Checkbox", ({ enumerable: true, get: function () { return Checkbox_1.Checkbox; } })); Object.defineProperty(exports, "CheckboxBase", ({ enumerable: true, get: function () { return Checkbox_1.CheckboxBase; } })); var ChoiceGroup_1 = __webpack_require__(/*! ./ChoiceGroup */ "./node_modules/@fluentui/react/lib-commonjs/ChoiceGroup.js"); Object.defineProperty(exports, "ChoiceGroup", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroup; } })); Object.defineProperty(exports, "ChoiceGroupBase", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroupBase; } })); Object.defineProperty(exports, "ChoiceGroupOption", ({ enumerable: true, get: function () { return ChoiceGroup_1.ChoiceGroupOption; } })); // export * from './ChoiceGroupOption'; // exported by ChoiceGroup var Coachmark_1 = __webpack_require__(/*! ./Coachmark */ "./node_modules/@fluentui/react/lib-commonjs/Coachmark.js"); Object.defineProperty(exports, "COACHMARK_ATTRIBUTE_NAME", ({ enumerable: true, get: function () { return Coachmark_1.COACHMARK_ATTRIBUTE_NAME; } })); Object.defineProperty(exports, "Coachmark", ({ enumerable: true, get: function () { return Coachmark_1.Coachmark; } })); Object.defineProperty(exports, "CoachmarkBase", ({ enumerable: true, get: function () { return Coachmark_1.CoachmarkBase; } })); var Color_1 = __webpack_require__(/*! ./Color */ "./node_modules/@fluentui/react/lib-commonjs/Color.js"); Object.defineProperty(exports, "HEX_REGEX", ({ enumerable: true, get: function () { return Color_1.HEX_REGEX; } })); Object.defineProperty(exports, "MAX_COLOR_ALPHA", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_ALPHA; } })); Object.defineProperty(exports, "MAX_COLOR_HUE", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_HUE; } })); Object.defineProperty(exports, "MAX_COLOR_RGB", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_RGB; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "MAX_COLOR_RGBA", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_RGBA; } })); Object.defineProperty(exports, "MAX_COLOR_SATURATION", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_SATURATION; } })); Object.defineProperty(exports, "MAX_COLOR_VALUE", ({ enumerable: true, get: function () { return Color_1.MAX_COLOR_VALUE; } })); Object.defineProperty(exports, "MAX_HEX_LENGTH", ({ enumerable: true, get: function () { return Color_1.MAX_HEX_LENGTH; } })); Object.defineProperty(exports, "MAX_RGBA_LENGTH", ({ enumerable: true, get: function () { return Color_1.MAX_RGBA_LENGTH; } })); Object.defineProperty(exports, "MIN_HEX_LENGTH", ({ enumerable: true, get: function () { return Color_1.MIN_HEX_LENGTH; } })); Object.defineProperty(exports, "MIN_RGBA_LENGTH", ({ enumerable: true, get: function () { return Color_1.MIN_RGBA_LENGTH; } })); Object.defineProperty(exports, "RGBA_REGEX", ({ enumerable: true, get: function () { return Color_1.RGBA_REGEX; } })); Object.defineProperty(exports, "Shade", ({ enumerable: true, get: function () { return Color_1.Shade; } })); Object.defineProperty(exports, "clamp", ({ enumerable: true, get: function () { return Color_1.clamp; } })); Object.defineProperty(exports, "correctHSV", ({ enumerable: true, get: function () { return Color_1.correctHSV; } })); Object.defineProperty(exports, "correctHex", ({ enumerable: true, get: function () { return Color_1.correctHex; } })); Object.defineProperty(exports, "correctRGB", ({ enumerable: true, get: function () { return Color_1.correctRGB; } })); Object.defineProperty(exports, "cssColor", ({ enumerable: true, get: function () { return Color_1.cssColor; } })); Object.defineProperty(exports, "getBackgroundShade", ({ enumerable: true, get: function () { return Color_1.getBackgroundShade; } })); Object.defineProperty(exports, "getColorFromHSV", ({ enumerable: true, get: function () { return Color_1.getColorFromHSV; } })); Object.defineProperty(exports, "getColorFromRGBA", ({ enumerable: true, get: function () { return Color_1.getColorFromRGBA; } })); Object.defineProperty(exports, "getColorFromString", ({ enumerable: true, get: function () { return Color_1.getColorFromString; } })); Object.defineProperty(exports, "getContrastRatio", ({ enumerable: true, get: function () { return Color_1.getContrastRatio; } })); Object.defineProperty(exports, "getFullColorString", ({ enumerable: true, get: function () { return Color_1.getFullColorString; } })); Object.defineProperty(exports, "getShade", ({ enumerable: true, get: function () { return Color_1.getShade; } })); Object.defineProperty(exports, "hsl2hsv", ({ enumerable: true, get: function () { return Color_1.hsl2hsv; } })); Object.defineProperty(exports, "hsl2rgb", ({ enumerable: true, get: function () { return Color_1.hsl2rgb; } })); Object.defineProperty(exports, "hsv2hex", ({ enumerable: true, get: function () { return Color_1.hsv2hex; } })); Object.defineProperty(exports, "hsv2hsl", ({ enumerable: true, get: function () { return Color_1.hsv2hsl; } })); Object.defineProperty(exports, "hsv2rgb", ({ enumerable: true, get: function () { return Color_1.hsv2rgb; } })); Object.defineProperty(exports, "isDark", ({ enumerable: true, get: function () { return Color_1.isDark; } })); Object.defineProperty(exports, "isValidShade", ({ enumerable: true, get: function () { return Color_1.isValidShade; } })); Object.defineProperty(exports, "rgb2hex", ({ enumerable: true, get: function () { return Color_1.rgb2hex; } })); Object.defineProperty(exports, "rgb2hsv", ({ enumerable: true, get: function () { return Color_1.rgb2hsv; } })); Object.defineProperty(exports, "updateA", ({ enumerable: true, get: function () { return Color_1.updateA; } })); Object.defineProperty(exports, "updateH", ({ enumerable: true, get: function () { return Color_1.updateH; } })); Object.defineProperty(exports, "updateRGB", ({ enumerable: true, get: function () { return Color_1.updateRGB; } })); Object.defineProperty(exports, "updateSV", ({ enumerable: true, get: function () { return Color_1.updateSV; } })); Object.defineProperty(exports, "updateT", ({ enumerable: true, get: function () { return Color_1.updateT; } })); var ColorPicker_1 = __webpack_require__(/*! ./ColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/ColorPicker.js"); Object.defineProperty(exports, "ColorPicker", ({ enumerable: true, get: function () { return ColorPicker_1.ColorPicker; } })); Object.defineProperty(exports, "ColorPickerBase", ({ enumerable: true, get: function () { return ColorPicker_1.ColorPickerBase; } })); var ComboBox_1 = __webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib-commonjs/ComboBox.js"); Object.defineProperty(exports, "ComboBox", ({ enumerable: true, get: function () { return ComboBox_1.ComboBox; } })); Object.defineProperty(exports, "VirtualizedComboBox", ({ enumerable: true, get: function () { return ComboBox_1.VirtualizedComboBox; } })); var CommandBar_1 = __webpack_require__(/*! ./CommandBar */ "./node_modules/@fluentui/react/lib-commonjs/CommandBar.js"); Object.defineProperty(exports, "CommandBar", ({ enumerable: true, get: function () { return CommandBar_1.CommandBar; } })); Object.defineProperty(exports, "CommandBarBase", ({ enumerable: true, get: function () { return CommandBar_1.CommandBarBase; } })); Object.defineProperty(exports, "getCommandBarStyles", ({ enumerable: true, get: function () { return CommandBar_1.getCommandBarStyles; } })); Object.defineProperty(exports, "getCommandButtonStyles", ({ enumerable: true, get: function () { return CommandBar_1.getCommandButtonStyles; } })); var ContextualMenu_1 = __webpack_require__(/*! ./ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js"); Object.defineProperty(exports, "ContextualMenu", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenu; } })); Object.defineProperty(exports, "ContextualMenuBase", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuBase; } })); Object.defineProperty(exports, "ContextualMenuItem", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItem; } })); Object.defineProperty(exports, "ContextualMenuItemBase", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItemBase; } })); Object.defineProperty(exports, "ContextualMenuItemType", ({ enumerable: true, get: function () { return ContextualMenu_1.ContextualMenuItemType; } })); Object.defineProperty(exports, "canAnyMenuItemsCheck", ({ enumerable: true, get: function () { return ContextualMenu_1.canAnyMenuItemsCheck; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getContextualMenuItemClassNames", ({ enumerable: true, get: function () { return ContextualMenu_1.getContextualMenuItemClassNames; } })); Object.defineProperty(exports, "getContextualMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_1.getContextualMenuItemStyles; } })); Object.defineProperty(exports, "getMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_1.getMenuItemStyles; } })); Object.defineProperty(exports, "getSubmenuItems", ({ enumerable: true, get: function () { return ContextualMenu_1.getSubmenuItems; } })); var DatePicker_1 = __webpack_require__(/*! ./DatePicker */ "./node_modules/@fluentui/react/lib-commonjs/DatePicker.js"); Object.defineProperty(exports, "DatePicker", ({ enumerable: true, get: function () { return DatePicker_1.DatePicker; } })); Object.defineProperty(exports, "DatePickerBase", ({ enumerable: true, get: function () { return DatePicker_1.DatePickerBase; } })); Object.defineProperty(exports, "defaultDatePickerStrings", ({ enumerable: true, get: function () { return DatePicker_1.defaultDatePickerStrings; } })); var DateTimeUtilities_1 = __webpack_require__(/*! ./DateTimeUtilities */ "./node_modules/@fluentui/react/lib-commonjs/DateTimeUtilities.js"); Object.defineProperty(exports, "DAYS_IN_WEEK", ({ enumerable: true, get: function () { return DateTimeUtilities_1.DAYS_IN_WEEK; } })); Object.defineProperty(exports, "MonthOfYear", ({ enumerable: true, get: function () { return DateTimeUtilities_1.MonthOfYear; } })); Object.defineProperty(exports, "TimeConstants", ({ enumerable: true, get: function () { return DateTimeUtilities_1.TimeConstants; } })); Object.defineProperty(exports, "addDays", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addDays; } })); Object.defineProperty(exports, "addMonths", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addMonths; } })); Object.defineProperty(exports, "addWeeks", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addWeeks; } })); Object.defineProperty(exports, "addYears", ({ enumerable: true, get: function () { return DateTimeUtilities_1.addYears; } })); Object.defineProperty(exports, "compareDatePart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.compareDatePart; } })); Object.defineProperty(exports, "compareDates", ({ enumerable: true, get: function () { return DateTimeUtilities_1.compareDates; } })); Object.defineProperty(exports, "getDatePartHashValue", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getDatePartHashValue; } })); Object.defineProperty(exports, "getDateRangeArray", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getDateRangeArray; } })); Object.defineProperty(exports, "getEndDateOfWeek", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getEndDateOfWeek; } })); Object.defineProperty(exports, "getMonthEnd", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getMonthEnd; } })); Object.defineProperty(exports, "getMonthStart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getMonthStart; } })); Object.defineProperty(exports, "getStartDateOfWeek", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getStartDateOfWeek; } })); Object.defineProperty(exports, "getWeekNumber", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getWeekNumber; } })); Object.defineProperty(exports, "getWeekNumbersInMonth", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getWeekNumbersInMonth; } })); Object.defineProperty(exports, "getYearEnd", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getYearEnd; } })); Object.defineProperty(exports, "getYearStart", ({ enumerable: true, get: function () { return DateTimeUtilities_1.getYearStart; } })); Object.defineProperty(exports, "isInDateRangeArray", ({ enumerable: true, get: function () { return DateTimeUtilities_1.isInDateRangeArray; } })); Object.defineProperty(exports, "setMonth", ({ enumerable: true, get: function () { return DateTimeUtilities_1.setMonth; } })); var DetailsList_1 = __webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib-commonjs/DetailsList.js"); Object.defineProperty(exports, "CHECK_CELL_WIDTH", ({ enumerable: true, get: function () { return DetailsList_1.CHECK_CELL_WIDTH; } })); Object.defineProperty(exports, "CheckboxVisibility", ({ enumerable: true, get: function () { return DetailsList_1.CheckboxVisibility; } })); Object.defineProperty(exports, "CollapseAllVisibility", ({ enumerable: true, get: function () { return DetailsList_1.CollapseAllVisibility; } })); Object.defineProperty(exports, "ColumnActionsMode", ({ enumerable: true, get: function () { return DetailsList_1.ColumnActionsMode; } })); Object.defineProperty(exports, "ColumnDragEndLocation", ({ enumerable: true, get: function () { return DetailsList_1.ColumnDragEndLocation; } })); Object.defineProperty(exports, "ConstrainMode", ({ enumerable: true, get: function () { return DetailsList_1.ConstrainMode; } })); Object.defineProperty(exports, "DEFAULT_CELL_STYLE_PROPS", ({ enumerable: true, get: function () { return DetailsList_1.DEFAULT_CELL_STYLE_PROPS; } })); Object.defineProperty(exports, "DEFAULT_ROW_HEIGHTS", ({ enumerable: true, get: function () { return DetailsList_1.DEFAULT_ROW_HEIGHTS; } })); Object.defineProperty(exports, "DetailsColumn", ({ enumerable: true, get: function () { return DetailsList_1.DetailsColumn; } })); Object.defineProperty(exports, "DetailsColumnBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsColumnBase; } })); Object.defineProperty(exports, "DetailsHeader", ({ enumerable: true, get: function () { return DetailsList_1.DetailsHeader; } })); Object.defineProperty(exports, "DetailsHeaderBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsHeaderBase; } })); Object.defineProperty(exports, "DetailsList", ({ enumerable: true, get: function () { return DetailsList_1.DetailsList; } })); Object.defineProperty(exports, "DetailsListBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsListBase; } })); Object.defineProperty(exports, "DetailsListLayoutMode", ({ enumerable: true, get: function () { return DetailsList_1.DetailsListLayoutMode; } })); Object.defineProperty(exports, "DetailsRow", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRow; } })); Object.defineProperty(exports, "DetailsRowBase", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowBase; } })); Object.defineProperty(exports, "DetailsRowCheck", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowCheck; } })); Object.defineProperty(exports, "DetailsRowFields", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowFields; } })); Object.defineProperty(exports, "DetailsRowGlobalClassNames", ({ enumerable: true, get: function () { return DetailsList_1.DetailsRowGlobalClassNames; } })); Object.defineProperty(exports, "HEADER_HEIGHT", ({ enumerable: true, get: function () { return DetailsList_1.HEADER_HEIGHT; } })); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return DetailsList_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SelectAllVisibility", ({ enumerable: true, get: function () { return DetailsList_1.SelectAllVisibility; } })); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return DetailsList_1.Selection; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return DetailsList_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return DetailsList_1.SelectionMode; } })); Object.defineProperty(exports, "SelectionZone", ({ enumerable: true, get: function () { return DetailsList_1.SelectionZone; } })); Object.defineProperty(exports, "buildColumns", ({ enumerable: true, get: function () { return DetailsList_1.buildColumns; } })); Object.defineProperty(exports, "getCellStyles", ({ enumerable: true, get: function () { return DetailsList_1.getCellStyles; } })); Object.defineProperty(exports, "getDetailsColumnStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsColumnStyles; } })); Object.defineProperty(exports, "getDetailsHeaderStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsHeaderStyles; } })); Object.defineProperty(exports, "getDetailsListStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsListStyles; } })); Object.defineProperty(exports, "getDetailsRowCheckStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsRowCheckStyles; } })); Object.defineProperty(exports, "getDetailsRowStyles", ({ enumerable: true, get: function () { return DetailsList_1.getDetailsRowStyles; } })); var Dialog_1 = __webpack_require__(/*! ./Dialog */ "./node_modules/@fluentui/react/lib-commonjs/Dialog.js"); Object.defineProperty(exports, "Dialog", ({ enumerable: true, get: function () { return Dialog_1.Dialog; } })); Object.defineProperty(exports, "DialogBase", ({ enumerable: true, get: function () { return Dialog_1.DialogBase; } })); Object.defineProperty(exports, "DialogContent", ({ enumerable: true, get: function () { return Dialog_1.DialogContent; } })); Object.defineProperty(exports, "DialogContentBase", ({ enumerable: true, get: function () { return Dialog_1.DialogContentBase; } })); Object.defineProperty(exports, "DialogFooter", ({ enumerable: true, get: function () { return Dialog_1.DialogFooter; } })); Object.defineProperty(exports, "DialogFooterBase", ({ enumerable: true, get: function () { return Dialog_1.DialogFooterBase; } })); Object.defineProperty(exports, "DialogType", ({ enumerable: true, get: function () { return Dialog_1.DialogType; } })); var Divider_1 = __webpack_require__(/*! ./Divider */ "./node_modules/@fluentui/react/lib-commonjs/Divider.js"); Object.defineProperty(exports, "VerticalDivider", ({ enumerable: true, get: function () { return Divider_1.VerticalDivider; } })); var DocumentCard_1 = __webpack_require__(/*! ./DocumentCard */ "./node_modules/@fluentui/react/lib-commonjs/DocumentCard.js"); Object.defineProperty(exports, "DocumentCard", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCard; } })); Object.defineProperty(exports, "DocumentCardActions", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardActions; } })); Object.defineProperty(exports, "DocumentCardActivity", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardActivity; } })); Object.defineProperty(exports, "DocumentCardDetails", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardDetails; } })); Object.defineProperty(exports, "DocumentCardImage", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardImage; } })); Object.defineProperty(exports, "DocumentCardLocation", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardLocation; } })); Object.defineProperty(exports, "DocumentCardLogo", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardLogo; } })); Object.defineProperty(exports, "DocumentCardPreview", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardPreview; } })); Object.defineProperty(exports, "DocumentCardStatus", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardStatus; } })); Object.defineProperty(exports, "DocumentCardTitle", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardTitle; } })); Object.defineProperty(exports, "DocumentCardType", ({ enumerable: true, get: function () { return DocumentCard_1.DocumentCardType; } })); var DragDrop_1 = __webpack_require__(/*! ./DragDrop */ "./node_modules/@fluentui/react/lib-commonjs/DragDrop.js"); Object.defineProperty(exports, "DragDropHelper", ({ enumerable: true, get: function () { return DragDrop_1.DragDropHelper; } })); var Dropdown_1 = __webpack_require__(/*! ./Dropdown */ "./node_modules/@fluentui/react/lib-commonjs/Dropdown.js"); Object.defineProperty(exports, "Dropdown", ({ enumerable: true, get: function () { return Dropdown_1.Dropdown; } })); Object.defineProperty(exports, "DropdownBase", ({ enumerable: true, get: function () { return Dropdown_1.DropdownBase; } })); Object.defineProperty(exports, "DropdownMenuItemType", ({ enumerable: true, get: function () { return Dropdown_1.DropdownMenuItemType; } })); var ExtendedPicker_1 = __webpack_require__(/*! ./ExtendedPicker */ "./node_modules/@fluentui/react/lib-commonjs/ExtendedPicker.js"); Object.defineProperty(exports, "BaseExtendedPeoplePicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.BaseExtendedPeoplePicker; } })); Object.defineProperty(exports, "BaseExtendedPicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.BaseExtendedPicker; } })); Object.defineProperty(exports, "ExtendedPeoplePicker", ({ enumerable: true, get: function () { return ExtendedPicker_1.ExtendedPeoplePicker; } })); var Fabric_1 = __webpack_require__(/*! ./Fabric */ "./node_modules/@fluentui/react/lib-commonjs/Fabric.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Fabric", ({ enumerable: true, get: function () { return Fabric_1.Fabric; } })); Object.defineProperty(exports, "FabricBase", ({ enumerable: true, get: function () { return Fabric_1.FabricBase; } })); var Facepile_1 = __webpack_require__(/*! ./Facepile */ "./node_modules/@fluentui/react/lib-commonjs/Facepile.js"); Object.defineProperty(exports, "Facepile", ({ enumerable: true, get: function () { return Facepile_1.Facepile; } })); Object.defineProperty(exports, "FacepileBase", ({ enumerable: true, get: function () { return Facepile_1.FacepileBase; } })); Object.defineProperty(exports, "OverflowButtonType", ({ enumerable: true, get: function () { return Facepile_1.OverflowButtonType; } })); var FloatingPicker_1 = __webpack_require__(/*! ./FloatingPicker */ "./node_modules/@fluentui/react/lib-commonjs/FloatingPicker.js"); Object.defineProperty(exports, "BaseFloatingPeoplePicker", ({ enumerable: true, get: function () { return FloatingPicker_1.BaseFloatingPeoplePicker; } })); Object.defineProperty(exports, "BaseFloatingPicker", ({ enumerable: true, get: function () { return FloatingPicker_1.BaseFloatingPicker; } })); Object.defineProperty(exports, "FloatingPeoplePicker", ({ enumerable: true, get: function () { return FloatingPicker_1.FloatingPeoplePicker; } })); Object.defineProperty(exports, "SuggestionItemType", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionItemType; } })); Object.defineProperty(exports, "SuggestionsControl", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsControl; } })); Object.defineProperty(exports, "SuggestionsCore", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsCore; } })); Object.defineProperty(exports, "SuggestionsHeaderFooterItem", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsHeaderFooterItem; } })); Object.defineProperty(exports, "SuggestionsStore", ({ enumerable: true, get: function () { return FloatingPicker_1.SuggestionsStore; } })); Object.defineProperty(exports, "createItem", ({ enumerable: true, get: function () { return FloatingPicker_1.createItem; } })); var FocusTrapZone_1 = __webpack_require__(/*! ./FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); Object.defineProperty(exports, "FocusTrapZone", ({ enumerable: true, get: function () { return FocusTrapZone_1.FocusTrapZone; } })); var FocusZone_1 = __webpack_require__(/*! ./FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); Object.defineProperty(exports, "FocusZone", ({ enumerable: true, get: function () { return FocusZone_1.FocusZone; } })); Object.defineProperty(exports, "FocusZoneDirection", ({ enumerable: true, get: function () { return FocusZone_1.FocusZoneDirection; } })); Object.defineProperty(exports, "FocusZoneTabbableElements", ({ enumerable: true, get: function () { return FocusZone_1.FocusZoneTabbableElements; } })); var GroupedList_1 = __webpack_require__(/*! ./GroupedList */ "./node_modules/@fluentui/react/lib-commonjs/GroupedList.js"); Object.defineProperty(exports, "GetGroupCount", ({ enumerable: true, get: function () { return GroupedList_1.GetGroupCount; } })); Object.defineProperty(exports, "GroupFooter", ({ enumerable: true, get: function () { return GroupedList_1.GroupFooter; } })); Object.defineProperty(exports, "GroupHeader", ({ enumerable: true, get: function () { return GroupedList_1.GroupHeader; } })); Object.defineProperty(exports, "GroupShowAll", ({ enumerable: true, get: function () { return GroupedList_1.GroupShowAll; } })); Object.defineProperty(exports, "GroupSpacer", ({ enumerable: true, get: function () { return GroupedList_1.GroupSpacer; } })); Object.defineProperty(exports, "GroupedList", ({ enumerable: true, get: function () { return GroupedList_1.GroupedList; } })); Object.defineProperty(exports, "GroupedListBase", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListBase; } })); Object.defineProperty(exports, "GroupedListSection", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListSection; } })); Object.defineProperty(exports, "GroupedListV2_unstable", ({ enumerable: true, get: function () { return GroupedList_1.GroupedListV2_unstable; } })); var HoverCard_1 = __webpack_require__(/*! ./HoverCard */ "./node_modules/@fluentui/react/lib-commonjs/HoverCard.js"); Object.defineProperty(exports, "ExpandingCard", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCard; } })); Object.defineProperty(exports, "ExpandingCardBase", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCardBase; } })); Object.defineProperty(exports, "ExpandingCardMode", ({ enumerable: true, get: function () { return HoverCard_1.ExpandingCardMode; } })); Object.defineProperty(exports, "HoverCard", ({ enumerable: true, get: function () { return HoverCard_1.HoverCard; } })); Object.defineProperty(exports, "HoverCardBase", ({ enumerable: true, get: function () { return HoverCard_1.HoverCardBase; } })); Object.defineProperty(exports, "HoverCardType", ({ enumerable: true, get: function () { return HoverCard_1.HoverCardType; } })); Object.defineProperty(exports, "OpenCardMode", ({ enumerable: true, get: function () { return HoverCard_1.OpenCardMode; } })); Object.defineProperty(exports, "PlainCard", ({ enumerable: true, get: function () { return HoverCard_1.PlainCard; } })); Object.defineProperty(exports, "PlainCardBase", ({ enumerable: true, get: function () { return HoverCard_1.PlainCardBase; } })); var Icon_1 = __webpack_require__(/*! ./Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); Object.defineProperty(exports, "FontIcon", ({ enumerable: true, get: function () { return Icon_1.FontIcon; } })); Object.defineProperty(exports, "Icon", ({ enumerable: true, get: function () { return Icon_1.Icon; } })); Object.defineProperty(exports, "IconBase", ({ enumerable: true, get: function () { return Icon_1.IconBase; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "IconType", ({ enumerable: true, get: function () { return Icon_1.IconType; } })); Object.defineProperty(exports, "ImageIcon", ({ enumerable: true, get: function () { return Icon_1.ImageIcon; } })); Object.defineProperty(exports, "getFontIcon", ({ enumerable: true, get: function () { return Icon_1.getFontIcon; } })); Object.defineProperty(exports, "getIconContent", ({ enumerable: true, get: function () { return Icon_1.getIconContent; } })); var Icons_1 = __webpack_require__(/*! ./Icons */ "./node_modules/@fluentui/react/lib-commonjs/Icons.js"); Object.defineProperty(exports, "initializeIcons", ({ enumerable: true, get: function () { return Icons_1.initializeIcons; } })); var Image_1 = __webpack_require__(/*! ./Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.js"); Object.defineProperty(exports, "Image", ({ enumerable: true, get: function () { return Image_1.Image; } })); Object.defineProperty(exports, "ImageBase", ({ enumerable: true, get: function () { return Image_1.ImageBase; } })); Object.defineProperty(exports, "ImageCoverStyle", ({ enumerable: true, get: function () { return Image_1.ImageCoverStyle; } })); Object.defineProperty(exports, "ImageFit", ({ enumerable: true, get: function () { return Image_1.ImageFit; } })); Object.defineProperty(exports, "ImageLoadState", ({ enumerable: true, get: function () { return Image_1.ImageLoadState; } })); var Keytips_1 = __webpack_require__(/*! ./Keytips */ "./node_modules/@fluentui/react/lib-commonjs/Keytips.js"); Object.defineProperty(exports, "DATAKTP_ARIA_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_ARIA_TARGET; } })); Object.defineProperty(exports, "DATAKTP_EXECUTE_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_EXECUTE_TARGET; } })); Object.defineProperty(exports, "DATAKTP_TARGET", ({ enumerable: true, get: function () { return Keytips_1.DATAKTP_TARGET; } })); Object.defineProperty(exports, "KTP_ARIA_SEPARATOR", ({ enumerable: true, get: function () { return Keytips_1.KTP_ARIA_SEPARATOR; } })); Object.defineProperty(exports, "KTP_FULL_PREFIX", ({ enumerable: true, get: function () { return Keytips_1.KTP_FULL_PREFIX; } })); Object.defineProperty(exports, "KTP_LAYER_ID", ({ enumerable: true, get: function () { return Keytips_1.KTP_LAYER_ID; } })); Object.defineProperty(exports, "KTP_PREFIX", ({ enumerable: true, get: function () { return Keytips_1.KTP_PREFIX; } })); Object.defineProperty(exports, "KTP_SEPARATOR", ({ enumerable: true, get: function () { return Keytips_1.KTP_SEPARATOR; } })); Object.defineProperty(exports, "Keytip", ({ enumerable: true, get: function () { return Keytips_1.Keytip; } })); Object.defineProperty(exports, "KeytipData", ({ enumerable: true, get: function () { return Keytips_1.KeytipData; } })); Object.defineProperty(exports, "KeytipEvents", ({ enumerable: true, get: function () { return Keytips_1.KeytipEvents; } })); Object.defineProperty(exports, "KeytipLayer", ({ enumerable: true, get: function () { return Keytips_1.KeytipLayer; } })); Object.defineProperty(exports, "KeytipLayerBase", ({ enumerable: true, get: function () { return Keytips_1.KeytipLayerBase; } })); Object.defineProperty(exports, "KeytipManager", ({ enumerable: true, get: function () { return Keytips_1.KeytipManager; } })); Object.defineProperty(exports, "buildKeytipConfigMap", ({ enumerable: true, get: function () { return Keytips_1.buildKeytipConfigMap; } })); Object.defineProperty(exports, "constructKeytip", ({ enumerable: true, get: function () { return Keytips_1.constructKeytip; } })); Object.defineProperty(exports, "getAriaDescribedBy", ({ enumerable: true, get: function () { return Keytips_1.getAriaDescribedBy; } })); Object.defineProperty(exports, "ktpTargetFromId", ({ enumerable: true, get: function () { return Keytips_1.ktpTargetFromId; } })); Object.defineProperty(exports, "ktpTargetFromSequences", ({ enumerable: true, get: function () { return Keytips_1.ktpTargetFromSequences; } })); Object.defineProperty(exports, "mergeOverflows", ({ enumerable: true, get: function () { return Keytips_1.mergeOverflows; } })); Object.defineProperty(exports, "sequencesToID", ({ enumerable: true, get: function () { return Keytips_1.sequencesToID; } })); Object.defineProperty(exports, "transitionKeysAreEqual", ({ enumerable: true, get: function () { return Keytips_1.transitionKeysAreEqual; } })); Object.defineProperty(exports, "transitionKeysContain", ({ enumerable: true, get: function () { return Keytips_1.transitionKeysContain; } })); Object.defineProperty(exports, "useKeytipRef", ({ enumerable: true, get: function () { return Keytips_1.useKeytipRef; } })); var Label_1 = __webpack_require__(/*! ./Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.js"); Object.defineProperty(exports, "Label", ({ enumerable: true, get: function () { return Label_1.Label; } })); Object.defineProperty(exports, "LabelBase", ({ enumerable: true, get: function () { return Label_1.LabelBase; } })); var Layer_1 = __webpack_require__(/*! ./Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); Object.defineProperty(exports, "Layer", ({ enumerable: true, get: function () { return Layer_1.Layer; } })); Object.defineProperty(exports, "LayerBase", ({ enumerable: true, get: function () { return Layer_1.LayerBase; } })); Object.defineProperty(exports, "LayerHost", ({ enumerable: true, get: function () { return Layer_1.LayerHost; } })); Object.defineProperty(exports, "cleanupDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_1.cleanupDefaultLayerHost; } })); Object.defineProperty(exports, "createDefaultLayerHost", ({ enumerable: true, get: function () { return Layer_1.createDefaultLayerHost; } })); Object.defineProperty(exports, "getLayerCount", ({ enumerable: true, get: function () { return Layer_1.getLayerCount; } })); Object.defineProperty(exports, "getLayerHost", ({ enumerable: true, get: function () { return Layer_1.getLayerHost; } })); Object.defineProperty(exports, "getLayerHostSelector", ({ enumerable: true, get: function () { return Layer_1.getLayerHostSelector; } })); Object.defineProperty(exports, "getLayerStyles", ({ enumerable: true, get: function () { return Layer_1.getLayerStyles; } })); Object.defineProperty(exports, "notifyHostChanged", ({ enumerable: true, get: function () { return Layer_1.notifyHostChanged; } })); Object.defineProperty(exports, "registerLayer", ({ enumerable: true, get: function () { return Layer_1.registerLayer; } })); Object.defineProperty(exports, "registerLayerHost", ({ enumerable: true, get: function () { return Layer_1.registerLayerHost; } })); Object.defineProperty(exports, "setLayerHostSelector", ({ enumerable: true, get: function () { return Layer_1.setLayerHostSelector; } })); Object.defineProperty(exports, "unregisterLayer", ({ enumerable: true, get: function () { return Layer_1.unregisterLayer; } })); Object.defineProperty(exports, "unregisterLayerHost", ({ enumerable: true, get: function () { return Layer_1.unregisterLayerHost; } })); var Link_1 = __webpack_require__(/*! ./Link */ "./node_modules/@fluentui/react/lib-commonjs/Link.js"); Object.defineProperty(exports, "Link", ({ enumerable: true, get: function () { return Link_1.Link; } })); Object.defineProperty(exports, "LinkBase", ({ enumerable: true, get: function () { return Link_1.LinkBase; } })); var List_1 = __webpack_require__(/*! ./List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); Object.defineProperty(exports, "List", ({ enumerable: true, get: function () { return List_1.List; } })); Object.defineProperty(exports, "ScrollToMode", ({ enumerable: true, get: function () { return List_1.ScrollToMode; } })); var MarqueeSelection_1 = __webpack_require__(/*! ./MarqueeSelection */ "./node_modules/@fluentui/react/lib-commonjs/MarqueeSelection.js"); Object.defineProperty(exports, "MarqueeSelection", ({ enumerable: true, get: function () { return MarqueeSelection_1.MarqueeSelection; } })); var MessageBar_1 = __webpack_require__(/*! ./MessageBar */ "./node_modules/@fluentui/react/lib-commonjs/MessageBar.js"); Object.defineProperty(exports, "MessageBar", ({ enumerable: true, get: function () { return MessageBar_1.MessageBar; } })); Object.defineProperty(exports, "MessageBarBase", ({ enumerable: true, get: function () { return MessageBar_1.MessageBarBase; } })); Object.defineProperty(exports, "MessageBarType", ({ enumerable: true, get: function () { return MessageBar_1.MessageBarType; } })); var Modal_1 = __webpack_require__(/*! ./Modal */ "./node_modules/@fluentui/react/lib-commonjs/Modal.js"); Object.defineProperty(exports, "Modal", ({ enumerable: true, get: function () { return Modal_1.Modal; } })); Object.defineProperty(exports, "ModalBase", ({ enumerable: true, get: function () { return Modal_1.ModalBase; } })); var Nav_1 = __webpack_require__(/*! ./Nav */ "./node_modules/@fluentui/react/lib-commonjs/Nav.js"); Object.defineProperty(exports, "Nav", ({ enumerable: true, get: function () { return Nav_1.Nav; } })); Object.defineProperty(exports, "NavBase", ({ enumerable: true, get: function () { return Nav_1.NavBase; } })); Object.defineProperty(exports, "isRelativeUrl", ({ enumerable: true, get: function () { return Nav_1.isRelativeUrl; } })); var OverflowSet_1 = __webpack_require__(/*! ./OverflowSet */ "./node_modules/@fluentui/react/lib-commonjs/OverflowSet.js"); Object.defineProperty(exports, "OverflowSet", ({ enumerable: true, get: function () { return OverflowSet_1.OverflowSet; } })); Object.defineProperty(exports, "OverflowSetBase", ({ enumerable: true, get: function () { return OverflowSet_1.OverflowSetBase; } })); var Overlay_1 = __webpack_require__(/*! ./Overlay */ "./node_modules/@fluentui/react/lib-commonjs/Overlay.js"); Object.defineProperty(exports, "Overlay", ({ enumerable: true, get: function () { return Overlay_1.Overlay; } })); Object.defineProperty(exports, "OverlayBase", ({ enumerable: true, get: function () { return Overlay_1.OverlayBase; } })); var Panel_1 = __webpack_require__(/*! ./Panel */ "./node_modules/@fluentui/react/lib-commonjs/Panel.js"); Object.defineProperty(exports, "Panel", ({ enumerable: true, get: function () { return Panel_1.Panel; } })); Object.defineProperty(exports, "PanelBase", ({ enumerable: true, get: function () { return Panel_1.PanelBase; } })); Object.defineProperty(exports, "PanelType", ({ enumerable: true, get: function () { return Panel_1.PanelType; } })); var Persona_1 = __webpack_require__(/*! ./Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); Object.defineProperty(exports, "Persona", ({ enumerable: true, get: function () { return Persona_1.Persona; } })); Object.defineProperty(exports, "PersonaBase", ({ enumerable: true, get: function () { return Persona_1.PersonaBase; } })); Object.defineProperty(exports, "PersonaCoin", ({ enumerable: true, get: function () { return Persona_1.PersonaCoin; } })); Object.defineProperty(exports, "PersonaCoinBase", ({ enumerable: true, get: function () { return Persona_1.PersonaCoinBase; } })); Object.defineProperty(exports, "PersonaInitialsColor", ({ enumerable: true, get: function () { return Persona_1.PersonaInitialsColor; } })); Object.defineProperty(exports, "PersonaPresence", ({ enumerable: true, get: function () { return Persona_1.PersonaPresence; } })); Object.defineProperty(exports, "PersonaSize", ({ enumerable: true, get: function () { return Persona_1.PersonaSize; } })); Object.defineProperty(exports, "getPersonaInitialsColor", ({ enumerable: true, get: function () { return Persona_1.getPersonaInitialsColor; } })); Object.defineProperty(exports, "personaPresenceSize", ({ enumerable: true, get: function () { return Persona_1.personaPresenceSize; } })); Object.defineProperty(exports, "personaSize", ({ enumerable: true, get: function () { return Persona_1.personaSize; } })); Object.defineProperty(exports, "presenceBoolean", ({ enumerable: true, get: function () { return Persona_1.presenceBoolean; } })); Object.defineProperty(exports, "sizeBoolean", ({ enumerable: true, get: function () { return Persona_1.sizeBoolean; } })); Object.defineProperty(exports, "sizeToPixels", ({ enumerable: true, get: function () { return Persona_1.sizeToPixels; } })); var Pickers_1 = __webpack_require__(/*! ./Pickers */ "./node_modules/@fluentui/react/lib-commonjs/Pickers.js"); Object.defineProperty(exports, "BasePeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.BasePeoplePicker; } })); Object.defineProperty(exports, "BasePicker", ({ enumerable: true, get: function () { return Pickers_1.BasePicker; } })); Object.defineProperty(exports, "BasePickerListBelow", ({ enumerable: true, get: function () { return Pickers_1.BasePickerListBelow; } })); Object.defineProperty(exports, "CompactPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.CompactPeoplePicker; } })); Object.defineProperty(exports, "CompactPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.CompactPeoplePickerBase; } })); Object.defineProperty(exports, "ListPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.ListPeoplePicker; } })); Object.defineProperty(exports, "ListPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.ListPeoplePickerBase; } })); Object.defineProperty(exports, "MemberListPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.MemberListPeoplePicker; } })); Object.defineProperty(exports, "NormalPeoplePicker", ({ enumerable: true, get: function () { return Pickers_1.NormalPeoplePicker; } })); Object.defineProperty(exports, "NormalPeoplePickerBase", ({ enumerable: true, get: function () { return Pickers_1.NormalPeoplePickerBase; } })); Object.defineProperty(exports, "PeoplePickerItem", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItem; } })); Object.defineProperty(exports, "PeoplePickerItemBase", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemBase; } })); Object.defineProperty(exports, "PeoplePickerItemSuggestion", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemSuggestion; } })); Object.defineProperty(exports, "PeoplePickerItemSuggestionBase", ({ enumerable: true, get: function () { return Pickers_1.PeoplePickerItemSuggestionBase; } })); Object.defineProperty(exports, "SuggestionActionType", ({ enumerable: true, get: function () { return Pickers_1.SuggestionActionType; } })); Object.defineProperty(exports, "Suggestions", ({ enumerable: true, get: function () { return Pickers_1.Suggestions; } })); Object.defineProperty(exports, "SuggestionsController", ({ enumerable: true, get: function () { return Pickers_1.SuggestionsController; } })); Object.defineProperty(exports, "SuggestionsItem", ({ enumerable: true, get: function () { return Pickers_1.SuggestionsItem; } })); Object.defineProperty(exports, "TagItem", ({ enumerable: true, get: function () { return Pickers_1.TagItem; } })); Object.defineProperty(exports, "TagItemBase", ({ enumerable: true, get: function () { return Pickers_1.TagItemBase; } })); Object.defineProperty(exports, "TagItemSuggestion", ({ enumerable: true, get: function () { return Pickers_1.TagItemSuggestion; } })); Object.defineProperty(exports, "TagItemSuggestionBase", ({ enumerable: true, get: function () { return Pickers_1.TagItemSuggestionBase; } })); Object.defineProperty(exports, "TagPicker", ({ enumerable: true, get: function () { return Pickers_1.TagPicker; } })); Object.defineProperty(exports, "TagPickerBase", ({ enumerable: true, get: function () { return Pickers_1.TagPickerBase; } })); Object.defineProperty(exports, "ValidationState", ({ enumerable: true, get: function () { return Pickers_1.ValidationState; } })); Object.defineProperty(exports, "createGenericItem", ({ enumerable: true, get: function () { return Pickers_1.createGenericItem; } })); Object.defineProperty(exports, "getBasePickerStyles", ({ enumerable: true, get: function () { return Pickers_1.getBasePickerStyles; } })); Object.defineProperty(exports, "getPeoplePickerItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getPeoplePickerItemStyles; } })); Object.defineProperty(exports, "getPeoplePickerItemSuggestionStyles", ({ enumerable: true, get: function () { return Pickers_1.getPeoplePickerItemSuggestionStyles; } })); Object.defineProperty(exports, "getSuggestionsItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getSuggestionsItemStyles; } })); Object.defineProperty(exports, "getSuggestionsStyles", ({ enumerable: true, get: function () { return Pickers_1.getSuggestionsStyles; } })); Object.defineProperty(exports, "getTagItemStyles", ({ enumerable: true, get: function () { return Pickers_1.getTagItemStyles; } })); Object.defineProperty(exports, "getTagItemSuggestionStyles", ({ enumerable: true, get: function () { return Pickers_1.getTagItemSuggestionStyles; } })); var Pivot_1 = __webpack_require__(/*! ./Pivot */ "./node_modules/@fluentui/react/lib-commonjs/Pivot.js"); Object.defineProperty(exports, "Pivot", ({ enumerable: true, get: function () { return Pivot_1.Pivot; } })); Object.defineProperty(exports, "PivotBase", ({ enumerable: true, get: function () { return Pivot_1.PivotBase; } })); Object.defineProperty(exports, "PivotItem", ({ enumerable: true, get: function () { return Pivot_1.PivotItem; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "PivotLinkFormat", ({ enumerable: true, get: function () { return Pivot_1.PivotLinkFormat; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "PivotLinkSize", ({ enumerable: true, get: function () { return Pivot_1.PivotLinkSize; } })); var Popup_1 = __webpack_require__(/*! ./Popup */ "./node_modules/@fluentui/react/lib-commonjs/Popup.js"); Object.defineProperty(exports, "Popup", ({ enumerable: true, get: function () { return Popup_1.Popup; } })); var Positioning_1 = __webpack_require__(/*! ./Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); Object.defineProperty(exports, "Position", ({ enumerable: true, get: function () { return Positioning_1.Position; } })); Object.defineProperty(exports, "RectangleEdge", ({ enumerable: true, get: function () { return Positioning_1.RectangleEdge; } })); Object.defineProperty(exports, "getBoundsFromTargetWindow", ({ enumerable: true, get: function () { return Positioning_1.getBoundsFromTargetWindow; } })); Object.defineProperty(exports, "getMaxHeight", ({ enumerable: true, get: function () { return Positioning_1.getMaxHeight; } })); Object.defineProperty(exports, "getOppositeEdge", ({ enumerable: true, get: function () { return Positioning_1.getOppositeEdge; } })); Object.defineProperty(exports, "positionCallout", ({ enumerable: true, get: function () { return Positioning_1.positionCallout; } })); Object.defineProperty(exports, "positionCard", ({ enumerable: true, get: function () { return Positioning_1.positionCard; } })); Object.defineProperty(exports, "positionElement", ({ enumerable: true, get: function () { return Positioning_1.positionElement; } })); var PositioningContainer_1 = __webpack_require__(/*! ./PositioningContainer */ "./node_modules/@fluentui/react/lib-commonjs/PositioningContainer.js"); Object.defineProperty(exports, "PositioningContainer", ({ enumerable: true, get: function () { return PositioningContainer_1.PositioningContainer; } })); Object.defineProperty(exports, "useHeightOffset", ({ enumerable: true, get: function () { return PositioningContainer_1.useHeightOffset; } })); var ProgressIndicator_1 = __webpack_require__(/*! ./ProgressIndicator */ "./node_modules/@fluentui/react/lib-commonjs/ProgressIndicator.js"); Object.defineProperty(exports, "ProgressIndicator", ({ enumerable: true, get: function () { return ProgressIndicator_1.ProgressIndicator; } })); Object.defineProperty(exports, "ProgressIndicatorBase", ({ enumerable: true, get: function () { return ProgressIndicator_1.ProgressIndicatorBase; } })); var Rating_1 = __webpack_require__(/*! ./Rating */ "./node_modules/@fluentui/react/lib-commonjs/Rating.js"); Object.defineProperty(exports, "Rating", ({ enumerable: true, get: function () { return Rating_1.Rating; } })); Object.defineProperty(exports, "RatingBase", ({ enumerable: true, get: function () { return Rating_1.RatingBase; } })); Object.defineProperty(exports, "RatingSize", ({ enumerable: true, get: function () { return Rating_1.RatingSize; } })); var ResizeGroup_1 = __webpack_require__(/*! ./ResizeGroup */ "./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js"); Object.defineProperty(exports, "MeasuredContext", ({ enumerable: true, get: function () { return ResizeGroup_1.MeasuredContext; } })); Object.defineProperty(exports, "ResizeGroup", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroup; } })); Object.defineProperty(exports, "ResizeGroupBase", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroupBase; } })); Object.defineProperty(exports, "ResizeGroupDirection", ({ enumerable: true, get: function () { return ResizeGroup_1.ResizeGroupDirection; } })); Object.defineProperty(exports, "getMeasurementCache", ({ enumerable: true, get: function () { return ResizeGroup_1.getMeasurementCache; } })); Object.defineProperty(exports, "getNextResizeGroupStateProvider", ({ enumerable: true, get: function () { return ResizeGroup_1.getNextResizeGroupStateProvider; } })); var ResponsiveMode_1 = __webpack_require__(/*! ./ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); Object.defineProperty(exports, "ResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.ResponsiveMode; } })); Object.defineProperty(exports, "getInitialResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.getInitialResponsiveMode; } })); Object.defineProperty(exports, "getResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.getResponsiveMode; } })); Object.defineProperty(exports, "initializeResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.initializeResponsiveMode; } })); Object.defineProperty(exports, "setResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.setResponsiveMode; } })); Object.defineProperty(exports, "useResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.useResponsiveMode; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "withResponsiveMode", ({ enumerable: true, get: function () { return ResponsiveMode_1.withResponsiveMode; } })); var ScrollablePane_1 = __webpack_require__(/*! ./ScrollablePane */ "./node_modules/@fluentui/react/lib-commonjs/ScrollablePane.js"); Object.defineProperty(exports, "ScrollablePane", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePane; } })); Object.defineProperty(exports, "ScrollablePaneBase", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePaneBase; } })); Object.defineProperty(exports, "ScrollablePaneContext", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollablePaneContext; } })); Object.defineProperty(exports, "ScrollbarVisibility", ({ enumerable: true, get: function () { return ScrollablePane_1.ScrollbarVisibility; } })); var SearchBox_1 = __webpack_require__(/*! ./SearchBox */ "./node_modules/@fluentui/react/lib-commonjs/SearchBox.js"); Object.defineProperty(exports, "SearchBox", ({ enumerable: true, get: function () { return SearchBox_1.SearchBox; } })); Object.defineProperty(exports, "SearchBoxBase", ({ enumerable: true, get: function () { return SearchBox_1.SearchBoxBase; } })); var SelectableOption_1 = __webpack_require__(/*! ./SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js"); Object.defineProperty(exports, "SelectableOptionMenuItemType", ({ enumerable: true, get: function () { return SelectableOption_1.SelectableOptionMenuItemType; } })); Object.defineProperty(exports, "getAllSelectedOptions", ({ enumerable: true, get: function () { return SelectableOption_1.getAllSelectedOptions; } })); var SelectedItemsList_1 = __webpack_require__(/*! ./SelectedItemsList */ "./node_modules/@fluentui/react/lib-commonjs/SelectedItemsList.js"); Object.defineProperty(exports, "BasePeopleSelectedItemsList", ({ enumerable: true, get: function () { return SelectedItemsList_1.BasePeopleSelectedItemsList; } })); Object.defineProperty(exports, "BaseSelectedItemsList", ({ enumerable: true, get: function () { return SelectedItemsList_1.BaseSelectedItemsList; } })); Object.defineProperty(exports, "ExtendedSelectedItem", ({ enumerable: true, get: function () { return SelectedItemsList_1.ExtendedSelectedItem; } })); Object.defineProperty(exports, "SelectedPeopleList", ({ enumerable: true, get: function () { return SelectedItemsList_1.SelectedPeopleList; } })); var Separator_1 = __webpack_require__(/*! ./Separator */ "./node_modules/@fluentui/react/lib-commonjs/Separator.js"); Object.defineProperty(exports, "Separator", ({ enumerable: true, get: function () { return Separator_1.Separator; } })); Object.defineProperty(exports, "SeparatorBase", ({ enumerable: true, get: function () { return Separator_1.SeparatorBase; } })); var Shimmer_1 = __webpack_require__(/*! ./Shimmer */ "./node_modules/@fluentui/react/lib-commonjs/Shimmer.js"); Object.defineProperty(exports, "Shimmer", ({ enumerable: true, get: function () { return Shimmer_1.Shimmer; } })); Object.defineProperty(exports, "ShimmerBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerBase; } })); Object.defineProperty(exports, "ShimmerCircle", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerCircle; } })); Object.defineProperty(exports, "ShimmerCircleBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerCircleBase; } })); Object.defineProperty(exports, "ShimmerElementType", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementType; } })); Object.defineProperty(exports, "ShimmerElementsDefaultHeights", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsDefaultHeights; } })); Object.defineProperty(exports, "ShimmerElementsGroup", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsGroup; } })); Object.defineProperty(exports, "ShimmerElementsGroupBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerElementsGroupBase; } })); Object.defineProperty(exports, "ShimmerGap", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerGap; } })); Object.defineProperty(exports, "ShimmerGapBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerGapBase; } })); Object.defineProperty(exports, "ShimmerLine", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerLine; } })); Object.defineProperty(exports, "ShimmerLineBase", ({ enumerable: true, get: function () { return Shimmer_1.ShimmerLineBase; } })); var ShimmeredDetailsList_1 = __webpack_require__(/*! ./ShimmeredDetailsList */ "./node_modules/@fluentui/react/lib-commonjs/ShimmeredDetailsList.js"); Object.defineProperty(exports, "ShimmeredDetailsList", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.ShimmeredDetailsList; } })); Object.defineProperty(exports, "ShimmeredDetailsListBase", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.ShimmeredDetailsListBase; } })); Object.defineProperty(exports, "getShimmeredDetailsListStyles", ({ enumerable: true, get: function () { return ShimmeredDetailsList_1.getShimmeredDetailsListStyles; } })); var Slider_1 = __webpack_require__(/*! ./Slider */ "./node_modules/@fluentui/react/lib-commonjs/Slider.js"); Object.defineProperty(exports, "Slider", ({ enumerable: true, get: function () { return Slider_1.Slider; } })); Object.defineProperty(exports, "SliderBase", ({ enumerable: true, get: function () { return Slider_1.SliderBase; } })); var SpinButton_1 = __webpack_require__(/*! ./SpinButton */ "./node_modules/@fluentui/react/lib-commonjs/SpinButton.js"); Object.defineProperty(exports, "KeyboardSpinDirection", ({ enumerable: true, get: function () { return SpinButton_1.KeyboardSpinDirection; } })); Object.defineProperty(exports, "SpinButton", ({ enumerable: true, get: function () { return SpinButton_1.SpinButton; } })); var Spinner_1 = __webpack_require__(/*! ./Spinner */ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js"); Object.defineProperty(exports, "Spinner", ({ enumerable: true, get: function () { return Spinner_1.Spinner; } })); Object.defineProperty(exports, "SpinnerBase", ({ enumerable: true, get: function () { return Spinner_1.SpinnerBase; } })); Object.defineProperty(exports, "SpinnerSize", ({ enumerable: true, get: function () { return Spinner_1.SpinnerSize; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "SpinnerType", ({ enumerable: true, get: function () { return Spinner_1.SpinnerType; } })); var Stack_1 = __webpack_require__(/*! ./Stack */ "./node_modules/@fluentui/react/lib-commonjs/Stack.js"); Object.defineProperty(exports, "Stack", ({ enumerable: true, get: function () { return Stack_1.Stack; } })); Object.defineProperty(exports, "StackItem", ({ enumerable: true, get: function () { return Stack_1.StackItem; } })); var Sticky_1 = __webpack_require__(/*! ./Sticky */ "./node_modules/@fluentui/react/lib-commonjs/Sticky.js"); Object.defineProperty(exports, "Sticky", ({ enumerable: true, get: function () { return Sticky_1.Sticky; } })); Object.defineProperty(exports, "StickyPositionType", ({ enumerable: true, get: function () { return Sticky_1.StickyPositionType; } })); var Styling_1 = __webpack_require__(/*! ./Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); Object.defineProperty(exports, "AnimationClassNames", ({ enumerable: true, get: function () { return Styling_1.AnimationClassNames; } })); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return Styling_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return Styling_1.AnimationVariables; } })); Object.defineProperty(exports, "ColorClassNames", ({ enumerable: true, get: function () { return Styling_1.ColorClassNames; } })); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return Styling_1.DefaultEffects; } })); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return Styling_1.DefaultFontStyles; } })); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return Styling_1.DefaultPalette; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "EdgeChromiumHighContrastSelector", ({ enumerable: true, get: function () { return Styling_1.EdgeChromiumHighContrastSelector; } })); Object.defineProperty(exports, "FontClassNames", ({ enumerable: true, get: function () { return Styling_1.FontClassNames; } })); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return Styling_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return Styling_1.FontWeights; } })); Object.defineProperty(exports, "HighContrastSelector", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelector; } })); Object.defineProperty(exports, "HighContrastSelectorBlack", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelectorBlack; } })); Object.defineProperty(exports, "HighContrastSelectorWhite", ({ enumerable: true, get: function () { return Styling_1.HighContrastSelectorWhite; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return Styling_1.IconFontSizes; } })); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return Styling_1.InjectionMode; } })); Object.defineProperty(exports, "PulsingBeaconAnimationStyles", ({ enumerable: true, get: function () { return Styling_1.PulsingBeaconAnimationStyles; } })); Object.defineProperty(exports, "ScreenWidthMaxLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxMedium", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxMedium; } })); Object.defineProperty(exports, "ScreenWidthMaxSmall", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxSmall; } })); Object.defineProperty(exports, "ScreenWidthMaxXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxXLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMaxXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinLarge; } })); Object.defineProperty(exports, "ScreenWidthMinMedium", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinMedium; } })); Object.defineProperty(exports, "ScreenWidthMinSmall", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinSmall; } })); Object.defineProperty(exports, "ScreenWidthMinUhfMobile", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinUhfMobile; } })); Object.defineProperty(exports, "ScreenWidthMinXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXXLarge", ({ enumerable: true, get: function () { return Styling_1.ScreenWidthMinXXXLarge; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return Styling_1.Stylesheet; } })); Object.defineProperty(exports, "ThemeSettingName", ({ enumerable: true, get: function () { return Styling_1.ThemeSettingName; } })); Object.defineProperty(exports, "ZIndexes", ({ enumerable: true, get: function () { return Styling_1.ZIndexes; } })); Object.defineProperty(exports, "buildClassMap", ({ enumerable: true, get: function () { return Styling_1.buildClassMap; } })); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return Styling_1.concatStyleSets; } })); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return Styling_1.concatStyleSetsWithProps; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return Styling_1.createFontStyles; } })); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return Styling_1.createTheme; } })); Object.defineProperty(exports, "focusClear", ({ enumerable: true, get: function () { return Styling_1.focusClear; } })); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return Styling_1.fontFace; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getEdgeChromiumNoHighContrastAdjustSelector", ({ enumerable: true, get: function () { return Styling_1.getEdgeChromiumNoHighContrastAdjustSelector; } })); Object.defineProperty(exports, "getFadedOverflowStyle", ({ enumerable: true, get: function () { return Styling_1.getFadedOverflowStyle; } })); Object.defineProperty(exports, "getFocusOutlineStyle", ({ enumerable: true, get: function () { return Styling_1.getFocusOutlineStyle; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getFocusStyle", ({ enumerable: true, get: function () { return Styling_1.getFocusStyle; } })); Object.defineProperty(exports, "getGlobalClassNames", ({ enumerable: true, get: function () { return Styling_1.getGlobalClassNames; } })); Object.defineProperty(exports, "getHighContrastNoAdjustStyle", ({ enumerable: true, get: function () { return Styling_1.getHighContrastNoAdjustStyle; } })); Object.defineProperty(exports, "getIcon", ({ enumerable: true, get: function () { return Styling_1.getIcon; } })); Object.defineProperty(exports, "getIconClassName", ({ enumerable: true, get: function () { return Styling_1.getIconClassName; } })); Object.defineProperty(exports, "getInputFocusStyle", ({ enumerable: true, get: function () { return Styling_1.getInputFocusStyle; } })); Object.defineProperty(exports, "getPlaceholderStyles", ({ enumerable: true, get: function () { return Styling_1.getPlaceholderStyles; } })); Object.defineProperty(exports, "getScreenSelector", ({ enumerable: true, get: function () { return Styling_1.getScreenSelector; } })); Object.defineProperty(exports, "getTheme", ({ enumerable: true, get: function () { return Styling_1.getTheme; } })); Object.defineProperty(exports, "getThemedContext", ({ enumerable: true, get: function () { return Styling_1.getThemedContext; } })); Object.defineProperty(exports, "hiddenContentStyle", ({ enumerable: true, get: function () { return Styling_1.hiddenContentStyle; } })); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return Styling_1.keyframes; } })); Object.defineProperty(exports, "loadTheme", ({ enumerable: true, get: function () { return Styling_1.loadTheme; } })); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return Styling_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return Styling_1.mergeStyles; } })); Object.defineProperty(exports, "noWrap", ({ enumerable: true, get: function () { return Styling_1.noWrap; } })); Object.defineProperty(exports, "normalize", ({ enumerable: true, get: function () { return Styling_1.normalize; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return Styling_1.registerDefaultFontFaces; } })); Object.defineProperty(exports, "registerIconAlias", ({ enumerable: true, get: function () { return Styling_1.registerIconAlias; } })); Object.defineProperty(exports, "registerIcons", ({ enumerable: true, get: function () { return Styling_1.registerIcons; } })); Object.defineProperty(exports, "registerOnThemeChangeCallback", ({ enumerable: true, get: function () { return Styling_1.registerOnThemeChangeCallback; } })); Object.defineProperty(exports, "removeOnThemeChangeCallback", ({ enumerable: true, get: function () { return Styling_1.removeOnThemeChangeCallback; } })); Object.defineProperty(exports, "setIconOptions", ({ enumerable: true, get: function () { return Styling_1.setIconOptions; } })); Object.defineProperty(exports, "unregisterIcons", ({ enumerable: true, get: function () { return Styling_1.unregisterIcons; } })); var SwatchColorPicker_1 = __webpack_require__(/*! ./SwatchColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/SwatchColorPicker.js"); Object.defineProperty(exports, "ColorPickerGridCell", ({ enumerable: true, get: function () { return SwatchColorPicker_1.ColorPickerGridCell; } })); Object.defineProperty(exports, "ColorPickerGridCellBase", ({ enumerable: true, get: function () { return SwatchColorPicker_1.ColorPickerGridCellBase; } })); Object.defineProperty(exports, "SwatchColorPicker", ({ enumerable: true, get: function () { return SwatchColorPicker_1.SwatchColorPicker; } })); Object.defineProperty(exports, "SwatchColorPickerBase", ({ enumerable: true, get: function () { return SwatchColorPicker_1.SwatchColorPickerBase; } })); var TeachingBubble_1 = __webpack_require__(/*! ./TeachingBubble */ "./node_modules/@fluentui/react/lib-commonjs/TeachingBubble.js"); Object.defineProperty(exports, "TeachingBubble", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubble; } })); Object.defineProperty(exports, "TeachingBubbleBase", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleBase; } })); Object.defineProperty(exports, "TeachingBubbleContent", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleContent; } })); Object.defineProperty(exports, "TeachingBubbleContentBase", ({ enumerable: true, get: function () { return TeachingBubble_1.TeachingBubbleContentBase; } })); var Text_1 = __webpack_require__(/*! ./Text */ "./node_modules/@fluentui/react/lib-commonjs/Text.js"); Object.defineProperty(exports, "Text", ({ enumerable: true, get: function () { return Text_1.Text; } })); Object.defineProperty(exports, "TextStyles", ({ enumerable: true, get: function () { return Text_1.TextStyles; } })); Object.defineProperty(exports, "TextView", ({ enumerable: true, get: function () { return Text_1.TextView; } })); var TextField_1 = __webpack_require__(/*! ./TextField */ "./node_modules/@fluentui/react/lib-commonjs/TextField.js"); Object.defineProperty(exports, "DEFAULT_MASK_CHAR", ({ enumerable: true, get: function () { return TextField_1.DEFAULT_MASK_CHAR; } })); Object.defineProperty(exports, "MaskedTextField", ({ enumerable: true, get: function () { return TextField_1.MaskedTextField; } })); Object.defineProperty(exports, "TextField", ({ enumerable: true, get: function () { return TextField_1.TextField; } })); Object.defineProperty(exports, "TextFieldBase", ({ enumerable: true, get: function () { return TextField_1.TextFieldBase; } })); Object.defineProperty(exports, "getTextFieldStyles", ({ enumerable: true, get: function () { return TextField_1.getTextFieldStyles; } })); var ThemeGenerator_1 = __webpack_require__(/*! ./ThemeGenerator */ "./node_modules/@fluentui/react/lib-commonjs/ThemeGenerator.js"); Object.defineProperty(exports, "BaseSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.BaseSlots; } })); Object.defineProperty(exports, "FabricSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.FabricSlots; } })); Object.defineProperty(exports, "SemanticColorSlots", ({ enumerable: true, get: function () { return ThemeGenerator_1.SemanticColorSlots; } })); Object.defineProperty(exports, "ThemeGenerator", ({ enumerable: true, get: function () { return ThemeGenerator_1.ThemeGenerator; } })); Object.defineProperty(exports, "themeRulesStandardCreator", ({ enumerable: true, get: function () { return ThemeGenerator_1.themeRulesStandardCreator; } })); var TimePicker_1 = __webpack_require__(/*! ./TimePicker */ "./node_modules/@fluentui/react/lib-commonjs/TimePicker.js"); Object.defineProperty(exports, "TimePicker", ({ enumerable: true, get: function () { return TimePicker_1.TimePicker; } })); var Toggle_1 = __webpack_require__(/*! ./Toggle */ "./node_modules/@fluentui/react/lib-commonjs/Toggle.js"); Object.defineProperty(exports, "Toggle", ({ enumerable: true, get: function () { return Toggle_1.Toggle; } })); Object.defineProperty(exports, "ToggleBase", ({ enumerable: true, get: function () { return Toggle_1.ToggleBase; } })); var Tooltip_1 = __webpack_require__(/*! ./Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); Object.defineProperty(exports, "Tooltip", ({ enumerable: true, get: function () { return Tooltip_1.Tooltip; } })); Object.defineProperty(exports, "TooltipBase", ({ enumerable: true, get: function () { return Tooltip_1.TooltipBase; } })); Object.defineProperty(exports, "TooltipDelay", ({ enumerable: true, get: function () { return Tooltip_1.TooltipDelay; } })); Object.defineProperty(exports, "TooltipHost", ({ enumerable: true, get: function () { return Tooltip_1.TooltipHost; } })); Object.defineProperty(exports, "TooltipHostBase", ({ enumerable: true, get: function () { return Tooltip_1.TooltipHostBase; } })); Object.defineProperty(exports, "TooltipOverflowMode", ({ enumerable: true, get: function () { return Tooltip_1.TooltipOverflowMode; } })); var Utilities_1 = __webpack_require__(/*! ./Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.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, "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; } })); var Viewport_1 = __webpack_require__(/*! ./Viewport */ "./node_modules/@fluentui/react/lib-commonjs/Viewport.js"); Object.defineProperty(exports, "withViewport", ({ enumerable: true, get: function () { return Viewport_1.withViewport; } })); var WeeklyDayPicker_1 = __webpack_require__(/*! ./WeeklyDayPicker */ "./node_modules/@fluentui/react/lib-commonjs/WeeklyDayPicker.js"); Object.defineProperty(exports, "WeeklyDayPicker", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.WeeklyDayPicker; } })); Object.defineProperty(exports, "defaultWeeklyDayPickerNavigationIcons", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.defaultWeeklyDayPickerNavigationIcons; } })); Object.defineProperty(exports, "defaultWeeklyDayPickerStrings", ({ enumerable: true, get: function () { return WeeklyDayPicker_1.defaultWeeklyDayPickerStrings; } })); var WindowProvider_1 = __webpack_require__(/*! ./WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); Object.defineProperty(exports, "WindowContext", ({ enumerable: true, get: function () { return WindowProvider_1.WindowContext; } })); Object.defineProperty(exports, "WindowProvider", ({ enumerable: true, get: function () { return WindowProvider_1.WindowProvider; } })); Object.defineProperty(exports, "useDocument", ({ enumerable: true, get: function () { return WindowProvider_1.useDocument; } })); Object.defineProperty(exports, "useWindow", ({ enumerable: true, get: function () { return WindowProvider_1.useWindow; } })); /** * Now explicitly declaring Theme exports that are NOT already being exported from Styles. * Styles and Theme both exported the same names which causes conflicting * star exports with webpack5. See here: https://github.com/microsoft/fluentui/issues/21601. */ var index_1 = __webpack_require__(/*! ./utilities/ThemeProvider/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js"); Object.defineProperty(exports, "ThemeContext", ({ enumerable: true, get: function () { return index_1.ThemeContext; } })); Object.defineProperty(exports, "ThemeProvider", ({ enumerable: true, get: function () { return index_1.ThemeProvider; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "makeStyles", ({ enumerable: true, get: function () { return index_1.makeStyles; } })); Object.defineProperty(exports, "useTheme", ({ enumerable: true, get: function () { return index_1.useTheme; } })); var Theme_1 = __webpack_require__(/*! ./Theme */ "./node_modules/@fluentui/react/lib-commonjs/Theme.js"); Object.defineProperty(exports, "CommunicationColors", ({ enumerable: true, get: function () { return Theme_1.CommunicationColors; } })); 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, "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; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGridBase = 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 react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); exports.ButtonGridBase = React.forwardRef(function (props, forwardedRef) { var id = (0, react_hooks_1.useId)(undefined, props.id); var items = props.items, columnCount = props.columnCount, onRenderItem = props.onRenderItem, isSemanticRadio = props.isSemanticRadio, // eslint-disable-next-line deprecation/deprecation _a = props.ariaPosInSet, // eslint-disable-next-line deprecation/deprecation ariaPosInSet = _a === void 0 ? props.positionInSet : _a, // eslint-disable-next-line deprecation/deprecation _b = props.ariaSetSize, // eslint-disable-next-line deprecation/deprecation ariaSetSize = _b === void 0 ? props.setSize : _b, styles = props.styles, doNotContainWithinFocusZone = props.doNotContainWithinFocusZone; var htmlProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.htmlElementProperties, // avoid applying onBlur on the table if it's being used in the FocusZone doNotContainWithinFocusZone ? [] : ['onBlur']); var classNames = getClassNames(styles, { theme: props.theme }); // Array to store the cells in the correct row index var rowsOfItems = (0, Utilities_1.toMatrix)(items, columnCount); var content = (React.createElement("table", tslib_1.__assign({ "aria-posinset": ariaPosInSet, "aria-setsize": ariaSetSize, id: id, role: isSemanticRadio ? 'radiogroup' : 'grid' }, htmlProps, { className: classNames.root }), React.createElement("tbody", { role: isSemanticRadio ? 'presentation' : 'rowgroup' }, rowsOfItems.map(function (rows, rowIndex) { return (React.createElement("tr", { role: isSemanticRadio ? 'presentation' : 'row', key: rowIndex }, rows.map(function (cell, cellIndex) { return (React.createElement("td", { role: "presentation", key: cellIndex + '-cell', className: classNames.tableCell }, onRenderItem(cell, cellIndex))); }))); })))); return doNotContainWithinFocusZone ? (content) : (React.createElement(FocusZone_1.FocusZone, { elementRef: forwardedRef, isCircularNavigation: props.shouldFocusCircularNavigate, className: classNames.focusedContainer, onBlur: props.onBlur }, content)); }); //# sourceMappingURL=ButtonGrid.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGrid = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ButtonGrid_base_1 = __webpack_require__(/*! ./ButtonGrid.base */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.base.js"); var ButtonGrid_styles_1 = __webpack_require__(/*! ./ButtonGrid.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js"); exports.ButtonGrid = (0, Utilities_1.styled)(ButtonGrid_base_1.ButtonGridBase, ButtonGrid_styles_1.getStyles); exports.ButtonGrid.displayName = 'ButtonGrid'; //# sourceMappingURL=ButtonGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.styles.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var getStyles = function (props) { return { root: { padding: 2, outline: 'none', }, tableCell: { padding: 0, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=ButtonGrid.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ButtonGrid.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGridCell = 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_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 ButtonGridCell = function (props) { var _a; var defaultId = (0, react_hooks_1.useId)('gridCell'); var item = props.item, _b = props.id, id = _b === void 0 ? defaultId : _b, className = props.className, selected = props.selected, _c = props.disabled, disabled = _c === void 0 ? false : _c, onRenderItem = props.onRenderItem, cellDisabledStyle = props.cellDisabledStyle, cellIsSelectedStyle = props.cellIsSelectedStyle, index = props.index, label = props.label, getClassNames = props.getClassNames, onClick = props.onClick, onHover = props.onHover, onMouseMove = props.onMouseMove, onMouseLeave = props.onMouseLeave, onMouseEnter = props.onMouseEnter, onFocus = props.onFocus; var buttonProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.buttonProperties); var handleClick = React.useCallback(function (event) { if (onClick && !disabled) { onClick(item, event); } }, [disabled, item, onClick]); var handleMouseEnter = React.useCallback(function (ev) { var didUpdateOnEnter = onMouseEnter && onMouseEnter(ev); if (!didUpdateOnEnter && onHover && !disabled) { onHover(item, ev); } }, [disabled, item, onHover, onMouseEnter]); var handleMouseMove = React.useCallback(function (ev) { var didUpdateOnMove = onMouseMove && onMouseMove(ev); if (!didUpdateOnMove && onHover && !disabled) { onHover(item, ev); } }, [disabled, item, onHover, onMouseMove]); var handleMouseLeave = React.useCallback(function (ev) { var didUpdateOnLeave = onMouseLeave && onMouseLeave(ev); if (!didUpdateOnLeave && onHover && !disabled) { onHover(undefined, ev); } }, [disabled, onHover, onMouseLeave]); var handleFocus = React.useCallback(function (event) { if (onFocus && !disabled) { onFocus(item, event); } }, [disabled, item, onFocus]); return (React.createElement(Button_1.CommandButton, tslib_1.__assign({ id: id, "data-index": index, "data-is-focusable": true, "aria-selected": selected, ariaLabel: label, title: label }, buttonProps, { className: (0, Utilities_1.css)(className, (_a = {}, _a['' + cellIsSelectedStyle] = selected, _a['' + cellDisabledStyle] = disabled, _a)), onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseMove: handleMouseMove, onMouseLeave: handleMouseLeave, onFocus: handleFocus, getClassNames: getClassNames }), onRenderItem(item))); }; exports.ButtonGridCell = ButtonGridCell; //# sourceMappingURL=ButtonGridCell.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ButtonGridCell.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/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__(/*! ./ButtonGrid */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGrid.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGrid.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGridCell */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ButtonGridCell.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/ButtonGridCell.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DraggableZone = 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 DraggableZone_styles_1 = __webpack_require__(/*! ./DraggableZone.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var eventMapping = { touch: { start: 'touchstart', move: 'touchmove', stop: 'touchend', }, mouse: { start: 'mousedown', move: 'mousemove', stop: 'mouseup', }, }; var DraggableZone = /** @class */ (function (_super) { tslib_1.__extends(DraggableZone, _super); function DraggableZone(props) { var _this = _super.call(this, props) || this; _this._currentEventType = eventMapping.mouse; _this._events = []; _this._onMouseDown = function (event) { var onMouseDown = React.Children.only(_this.props.children).props.onMouseDown; if (onMouseDown) { onMouseDown(event); } _this._currentEventType = eventMapping.mouse; return _this._onDragStart(event); }; _this._onMouseUp = function (event) { var onMouseUp = React.Children.only(_this.props.children).props.onMouseUp; if (onMouseUp) { onMouseUp(event); } _this._currentEventType = eventMapping.mouse; return _this._onDragStop(event); }; _this._onTouchStart = function (event) { var onTouchStart = React.Children.only(_this.props.children).props.onTouchStart; if (onTouchStart) { onTouchStart(event); } _this._currentEventType = eventMapping.touch; return _this._onDragStart(event); }; _this._onTouchEnd = function (event) { var onTouchEnd = React.Children.only(_this.props.children).props.onTouchEnd; if (onTouchEnd) { onTouchEnd(event); } _this._currentEventType = eventMapping.touch; _this._onDragStop(event); }; _this._onDragStart = function (event) { // Only handle left click for dragging if (typeof event.button === 'number' && event.button !== 0) { return false; } // If the target doesn't match the handleSelector OR // if the target does match the preventDragSelector, bail out if ((_this.props.handleSelector && !_this._matchesSelector(event.target, _this.props.handleSelector)) || (_this.props.preventDragSelector && _this._matchesSelector(event.target, _this.props.preventDragSelector))) { return; } // Remember the touch identifier if this is a touch event so we can // distinguish between individual touches in multitouch scenarios // by remembering which touch point we were given _this._touchId = _this._getTouchId(event); var position = _this._getControlPosition(event); if (position === undefined) { return; } var dragData = _this._createDragDataFromPosition(position); _this.props.onStart && _this.props.onStart(event, dragData); _this.setState({ isDragging: true, lastPosition: position, }); // hook up the appropriate mouse/touch events to the body to ensure // smooth dragging _this._events = [ (0, Utilities_1.on)(document.body, _this._currentEventType.move, _this._onDrag, true /* use capture phase */), (0, Utilities_1.on)(document.body, _this._currentEventType.stop, _this._onDragStop, true /* use capture phase */), ]; }; _this._onDrag = function (event) { // Prevent scrolling on mobile devices if (event.type === 'touchmove') { event.preventDefault(); } var position = _this._getControlPosition(event); if (!position) { return; } // create the updated drag data from the position data var updatedData = _this._createUpdatedDragData(_this._createDragDataFromPosition(position)); var updatedPosition = updatedData.position; _this.props.onDragChange && _this.props.onDragChange(event, updatedData); _this.setState({ position: updatedPosition, lastPosition: position, }); }; _this._onDragStop = function (event) { if (!_this.state.isDragging) { return; } var position = _this._getControlPosition(event); if (!position) { return; } var baseDragData = _this._createDragDataFromPosition(position); // Set dragging to false and reset the lastPosition _this.setState({ isDragging: false, lastPosition: undefined, }); _this.props.onStop && _this.props.onStop(event, baseDragData); if (_this.props.position) { _this.setState({ position: _this.props.position, }); } // Remove event handlers _this._events.forEach(function (dispose) { return dispose(); }); }; _this.state = { isDragging: false, position: _this.props.position || { x: 0, y: 0 }, lastPosition: undefined, }; return _this; } DraggableZone.prototype.componentDidUpdate = function (prevProps) { if (this.props.position && (!prevProps.position || this.props.position !== prevProps.position)) { this.setState({ position: this.props.position }); } }; DraggableZone.prototype.componentWillUnmount = function () { this._events.forEach(function (dispose) { return dispose(); }); }; DraggableZone.prototype.render = function () { var child = React.Children.only(this.props.children); var props = child.props; var position = this.props.position; var _a = this.state, statePosition = _a.position, isDragging = _a.isDragging; var x = statePosition.x; var y = statePosition.y; if (position && !isDragging) { x = position.x; y = position.y; } return React.cloneElement(child, { style: tslib_1.__assign(tslib_1.__assign({}, props.style), { transform: "translate(".concat(x, "px, ").concat(y, "px)") }), className: (0, DraggableZone_styles_1.getClassNames)(props.className, this.state.isDragging).root, onMouseDown: this._onMouseDown, onMouseUp: this._onMouseUp, onTouchStart: this._onTouchStart, onTouchEnd: this._onTouchEnd, }); }; /** * Get the control position based off the event that fired * @param event - The event to get offsets from */ DraggableZone.prototype._getControlPosition = function (event) { var touchObj = this._getActiveTouch(event); // did we get the right touch? if (this._touchId !== undefined && !touchObj) { return undefined; } var eventToGetOffset = touchObj || event; return { x: eventToGetOffset.clientX, y: eventToGetOffset.clientY, }; }; /** * Get the active touch point that we have saved from the event's TouchList * @param event - The event used to get the TouchList for the active touch point */ DraggableZone.prototype._getActiveTouch = function (event) { return ((event.targetTouches && this._findTouchInTouchList(event.targetTouches)) || (event.changedTouches && this._findTouchInTouchList(event.changedTouches))); }; /** * Get the initial touch identifier associated with the given event * @param event - The event that contains the TouchList */ DraggableZone.prototype._getTouchId = function (event) { var touch = (event.targetTouches && event.targetTouches[0]) || (event.changedTouches && event.changedTouches[0]); if (touch) { return touch.identifier; } }; /** * Returns if an element (or any of the element's parents) match the given selector */ DraggableZone.prototype._matchesSelector = function (element, selector) { if (!element || element === document.body) { return false; } var matchesSelectorFn = // eslint-disable-next-line deprecation/deprecation element.matches || element.webkitMatchesSelector || element.msMatchesSelector; /* for IE */ if (!matchesSelectorFn) { return false; } return matchesSelectorFn.call(element, selector) || this._matchesSelector(element.parentElement, selector); }; /** * Attempts to find the Touch that matches the identifier we stored in dragStart * @param touchList The TouchList to look for the stored identifier from dragStart */ DraggableZone.prototype._findTouchInTouchList = function (touchList) { if (this._touchId === undefined) { return; } for (var i = 0; i < touchList.length; i++) { if (touchList[i].identifier === this._touchId) { return touchList[i]; } } return undefined; }; /** * Create DragData based off of the last known position and the new position passed in * @param position The new position as part of the drag */ DraggableZone.prototype._createDragDataFromPosition = function (position) { var lastPosition = this.state.lastPosition; // If we have no lastPosition, use the given position // for last position if (lastPosition === undefined) { return { delta: { x: 0, y: 0 }, lastPosition: position, position: position, }; } return { delta: { x: position.x - lastPosition.x, y: position.y - lastPosition.y, }, lastPosition: lastPosition, position: position, }; }; /** * Creates an updated DragData based off the current position and given baseDragData * @param baseDragData The base DragData (from _createDragDataFromPosition) used to calculate the updated positions */ DraggableZone.prototype._createUpdatedDragData = function (baseDragData) { var position = this.state.position; return { position: { x: position.x + baseDragData.delta.x, y: position.y + baseDragData.delta.y, }, delta: baseDragData.delta, lastPosition: position, }; }; return DraggableZone; }(React.Component)); exports.DraggableZone = DraggableZone; //# sourceMappingURL=DraggableZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.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 (className, isDragging) { return { root: (0, Styling_1.mergeStyles)(className, isDragging && { touchAction: 'none', selectors: { '& *': { userSelect: 'none', }, }, }), }; }); //# sourceMappingURL=DraggableZone.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DraggableZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/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__(/*! ./DraggableZone */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DraggableZone.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DraggableZone.styles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/DraggableZone/DraggableZone.styles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useMenuContext = exports.MenuContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.MenuContext = React.createContext({}); var useMenuContext = function () { return React.useContext(exports.MenuContext); }; exports.useMenuContext = useMenuContext; //# sourceMappingURL=MenuContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/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__(/*! ./MenuContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/MenuContext.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/types.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.ThemeContext = React.createContext(undefined); //# sourceMappingURL=ThemeContext.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeProvider = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useThemeProviderClasses_1 = __webpack_require__(/*! ./useThemeProviderClasses */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js"); var useThemeProvider_1 = __webpack_require__(/*! ./useThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); /** * ThemeProvider, used for providing css variables and registering stylesheets. */ exports.ThemeProvider = React.forwardRef(function (props, ref) { var rootRef = (0, react_hooks_1.useMergedRefs)(ref, React.useRef(null)); var _a = (0, useThemeProvider_1.useThemeProvider)(props, { ref: rootRef, as: 'div', applyTo: 'element', }), render = _a.render, state = _a.state; // Render styles. (0, useThemeProviderClasses_1.useThemeProviderClasses)(state); // Return the rendered content. return render(state); }); exports.ThemeProvider.displayName = 'ThemeProvider'; //# sourceMappingURL=ThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeContext = exports.useTheme = exports.ThemeProvider = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var ThemeProvider_1 = __webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeProvider.js"); Object.defineProperty(exports, "ThemeProvider", ({ enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } })); var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); Object.defineProperty(exports, "useTheme", ({ enumerable: true, get: function () { return useTheme_1.useTheme; } })); var ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); Object.defineProperty(exports, "ThemeContext", ({ enumerable: true, get: function () { return ThemeContext_1.ThemeContext; } })); tslib_1.__exportStar(__webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.makeStyles = void 0; var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var mergeStylesRenderer_1 = __webpack_require__(/*! ./styleRenderers/mergeStylesRenderer */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js"); var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var graphGet = function (graphNode, _a) { var _b, _c, _d; var windowId = _a[0], id = _a[1], theme = _a[2]; return (_d = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme)) === null || _d === void 0 ? void 0 : _d.classMap; }; var graphSet = function (graphNode, _a, classMap) { var _b, _c; var windowId = _a[0], id = _a[1], theme = _a[2]; var windowNode = (_b = graphNode.get(windowId)) !== null && _b !== void 0 ? _b : new Map(); graphNode.set(windowId, windowNode); var idNode = (_c = windowNode.get(id)) !== null && _c !== void 0 ? _c : new Map(); windowNode.set(id, idNode); idNode.set(theme, { classMap: classMap, refCount: 0 }); }; function graphRef(graphNode, _a) { var _b, _c; var windowId = _a[0], id = _a[1], theme = _a[2]; var node = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme); if (node) { node.refCount++; } } function graphDeref(graphNode, _a) { var _b, _c, _d, _e, _f, _g, _h, _j; var windowId = _a[0], id = _a[1], theme = _a[2]; var node = (_c = (_b = graphNode.get(windowId)) === null || _b === void 0 ? void 0 : _b.get(id)) === null || _c === void 0 ? void 0 : _c.get(theme); if (node) { node.refCount--; if (node.refCount === 0) { (_e = (_d = graphNode.get(windowId)) === null || _d === void 0 ? void 0 : _d.get(id)) === null || _e === void 0 ? void 0 : _e.delete(theme); if (((_g = (_f = graphNode.get(windowId)) === null || _f === void 0 ? void 0 : _f.get(id)) === null || _g === void 0 ? void 0 : _g.size) === 0) { (_h = graphNode.get(windowId)) === null || _h === void 0 ? void 0 : _h.delete(id); if (((_j = graphNode.get(windowId)) === null || _j === void 0 ? void 0 : _j.size) === 0) { graphNode.delete(windowId); } } } } } /** * Registers a css object, optionally as a function of the theme. * * @param styleOrFunction - Either a css javascript object, or a function which takes in `ITheme` * and returns a css javascript object. * * @deprecated Use `mergeStyles` instead for v8 related code. We will be using a new implementation of `makeStyles` in * future versions of the library. */ function makeStyles(styleOrFunction) { // Create graph of inputs to map to output. var graph = new Map(); // Retain a dictionary of window ids we're tracking var allWindows = new Set(); // cleanupMapEntries will // 1. remove all the graph branches for the window, // 2. remove the event listener, // 3. delete the allWindows entry. var cleanupMapEntries = function (ev) { var win = ev.currentTarget; var winId = win.__id__; graph.delete(winId); win.removeEventListener('unload', cleanupMapEntries); allWindows.delete(winId); }; // eslint-disable-next-line deprecation/deprecation return function (options) { if (options === void 0) { options = {}; } var theme = options.theme; var winId; var win = (0, react_window_provider_1.useWindow)(); if (win) { win.__id__ = win.__id__ || (0, utilities_1.getId)(); winId = win.__id__; if (!allWindows.has(winId)) { allWindows.add(winId); win.addEventListener('unload', cleanupMapEntries); } } var contextualTheme = (0, useTheme_1.useTheme)(); theme = theme || contextualTheme; var renderer = mergeStylesRenderer_1.mergeStylesRenderer; var id = renderer.getId(); var path = [winId, id, theme]; var value = graphGet(graph, path); // Don't keep around unused styles (0, react_1.useEffect)(function () { graphRef(graph, [winId, id, theme]); return function () { return graphDeref(graph, [winId, id, theme]); }; }, [winId, id, theme]); if (!value) { var styles = isStyleFunction(styleOrFunction) ? styleOrFunction(theme) : styleOrFunction; value = mergeStylesRenderer_1.mergeStylesRenderer.renderStyles(styles, { targetWindow: win, rtl: !!theme.rtl }); graphSet(graph, path, value); } return value; }; } exports.makeStyles = makeStyles; function isStyleFunction(styleOrFunction) { return typeof styleOrFunction === 'function'; } //# sourceMappingURL=makeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.renderThemeProvider = 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 ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); var renderThemeProvider = function (state) { var customizerContext = state.customizerContext, ref = state.ref, theme = state.theme; var Root = state.as || 'div'; var rootProps = typeof state.as === 'string' ? (0, utilities_1.getNativeElementProps)(state.as, state) : state.as === React.Fragment ? { children: state.children } : (0, utilities_1.omit)(state, ['as']); return (React.createElement(ThemeContext_1.ThemeContext.Provider, { value: theme }, React.createElement(utilities_1.CustomizerContext.Provider, { value: customizerContext }, React.createElement(utilities_1.FocusRectsProvider, { providerRef: ref }, React.createElement(Root, tslib_1.__assign({}, rootProps)))))); }; exports.renderThemeProvider = renderThemeProvider; //# sourceMappingURL=renderThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/styleRenderers/mergeStylesRenderer.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeStylesRenderer = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var _seed = 0; exports.mergeStylesRenderer = { reset: function () { // If the stylesheet reset call is made, invalidate the cache keys. merge_styles_1.Stylesheet.getInstance().onReset(function () { return _seed++; }); }, getId: function () { return _seed; }, renderStyles: function (styleSet, options) { return (0, merge_styles_1.mergeCssSets)((Array.isArray(styleSet) ? styleSet : [styleSet]), options); }, renderFontFace: function (fontFace, options) { return (0, merge_styles_1.fontFace)(fontFace); }, renderKeyframes: function (keyframes) { return (0, merge_styles_1.keyframes)(keyframes); }, }; //# sourceMappingURL=mergeStylesRenderer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useTheme = void 0; var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var ThemeContext_1 = __webpack_require__(/*! ./ThemeContext */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/ThemeContext.js"); /** * Get theme from CustomizerContext or Customizations singleton. */ function useCompatTheme() { return (0, utilities_1.useCustomizationSettings)(['theme']).theme; } /** * React hook for programmatically accessing the theme. */ var useTheme = function () { var theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext); var legacyTheme = useCompatTheme(); return theme || legacyTheme || (0, theme_1.createTheme)({}); }; exports.useTheme = useTheme; //# sourceMappingURL=useTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProvider.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProvider = void 0; var renderThemeProvider_1 = __webpack_require__(/*! ./renderThemeProvider */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/renderThemeProvider.js"); var useThemeProviderState_1 = __webpack_require__(/*! ./useThemeProviderState */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Returns the ThemeProvider render function and calculated state, given user input, ref, and * a set of default prop values. */ var useThemeProvider = function (props, defaultProps) { var state = (0, utilities_1.getPropsWithDefaults)(defaultProps, props); // Apply changes to state. (0, useThemeProviderState_1.useThemeProviderState)(state); return { state: state, render: renderThemeProvider_1.renderThemeProvider, }; }; exports.useThemeProvider = useThemeProvider; //# sourceMappingURL=useThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderClasses.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProviderClasses = 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 react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var makeStyles_1 = __webpack_require__(/*! ./makeStyles */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/makeStyles.js"); // eslint-disable-next-line deprecation/deprecation var useThemeProviderStyles = (0, makeStyles_1.makeStyles)(function (theme) { var semanticColors = theme.semanticColors, fonts = theme.fonts; return { body: [ { color: semanticColors.bodyText, background: semanticColors.bodyBackground, fontFamily: fonts.medium.fontFamily, fontWeight: fonts.medium.fontWeight, fontSize: fonts.medium.fontSize, MozOsxFontSmoothing: fonts.medium.MozOsxFontSmoothing, WebkitFontSmoothing: fonts.medium.WebkitFontSmoothing, }, ], }; }); /** * Hook to add class to body element. */ function useApplyClassToBody(state, classesToApply) { var _a; var applyTo = state.applyTo; var applyToBody = applyTo === 'body'; var body = (_a = (0, react_window_provider_1.useDocument)()) === null || _a === void 0 ? void 0 : _a.body; React.useEffect(function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_1 = classesToApply; _i < classesToApply_1.length; _i++) { var classToApply = classesToApply_1[_i]; if (classToApply) { body.classList.add(classToApply); } } return function () { if (!applyToBody || !body) { return; } for (var _i = 0, classesToApply_2 = classesToApply; _i < classesToApply_2.length; _i++) { var classToApply = classesToApply_2[_i]; if (classToApply) { body.classList.remove(classToApply); } } }; }, [applyToBody, body, classesToApply]); } function useThemeProviderClasses(state) { var classes = useThemeProviderStyles(state); var className = state.className, applyTo = state.applyTo; useApplyClassToBody(state, [classes.root, classes.body]); state.className = (0, utilities_1.css)(className, classes.root, applyTo === 'element' && classes.body); } exports.useThemeProviderClasses = useThemeProviderClasses; //# sourceMappingURL=useThemeProviderClasses.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useThemeProviderState.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useThemeProviderState = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useTheme_1 = __webpack_require__(/*! ./useTheme */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/useTheme.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var themeToIdMap = new Map(); var getThemeId = function () { var themes = []; for (var _i = 0; _i < arguments.length; _i++) { themes[_i] = arguments[_i]; } var ids = []; for (var _a = 0, themes_1 = themes; _a < themes_1.length; _a++) { var theme = themes_1[_a]; if (theme) { var id = theme.id || themeToIdMap.get(theme); if (!id) { id = (0, utilities_1.getId)(''); themeToIdMap.set(theme, id); } ids.push(id); } } return ids.join('-'); }; var useThemeProviderState = function (draftState) { var userTheme = draftState.theme; // Pull contextual theme. var parentTheme = (0, useTheme_1.useTheme)(); // Update the incoming theme with a memoized version of the merged theme. var theme = (draftState.theme = React.useMemo(function () { var mergedTheme = (0, theme_1.mergeThemes)(parentTheme, userTheme); mergedTheme.id = getThemeId(parentTheme, userTheme); return mergedTheme; }, [parentTheme, userTheme])); draftState.customizerContext = React.useMemo(function () { return ({ customizations: { inCustomizerContext: true, settings: { theme: theme }, scopedSettings: theme.components || {}, }, }); }, [theme]); if (draftState.theme.rtl !== parentTheme.rtl) { draftState.dir = draftState.theme.rtl ? 'rtl' : 'ltr'; } }; exports.useThemeProviderState = useThemeProviderState; //# sourceMappingURL=useThemeProviderState.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports._rgbaOrHexString = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * @internal * Get a CSS color string from some color components. * If `a` is specified and not 100, returns an `rgba()` string. * Otherwise returns `hex` prefixed with #. */ function _rgbaOrHexString(r, g, b, a, hex) { return a === consts_1.MAX_COLOR_ALPHA || typeof a !== 'number' ? "#".concat(hex) : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(a / consts_1.MAX_COLOR_ALPHA, ")"); } exports._rgbaOrHexString = _rgbaOrHexString; //# sourceMappingURL=_rgbaOrHexString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.clamp = void 0; /** Clamp a value to ensure it falls within a given range. */ function clamp(value, max, min) { if (min === void 0) { min = 0; } return value < min ? min : value > max ? max : value; } exports.clamp = clamp; //# sourceMappingURL=clamp.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.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__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFullColorString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateH */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js"), exports); //# sourceMappingURL=colors.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RGBA_REGEX = exports.HEX_REGEX = exports.MAX_RGBA_LENGTH = exports.MIN_RGBA_LENGTH = exports.MAX_HEX_LENGTH = exports.MIN_HEX_LENGTH = exports.MAX_COLOR_ALPHA = exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB = exports.MAX_COLOR_VALUE = exports.MAX_COLOR_HUE = exports.MAX_COLOR_SATURATION = void 0; exports.MAX_COLOR_SATURATION = 100; exports.MAX_COLOR_HUE = 359; exports.MAX_COLOR_VALUE = 100; exports.MAX_COLOR_RGB = 255; /** @deprecated Use MAX_COLOR_RGB (255) or MAX_COLOR_ALPHA (100) */ exports.MAX_COLOR_RGBA = exports.MAX_COLOR_RGB; exports.MAX_COLOR_ALPHA = 100; /** Minimum length for a hexadecimal color string (not including the #) */ exports.MIN_HEX_LENGTH = 3; /** Maximum length for a hexadecimal color string (not including the #) */ exports.MAX_HEX_LENGTH = 6; /** Minimum length for a string of an RGBA color component */ exports.MIN_RGBA_LENGTH = 1; /** Maximum length for a string of an RGBA color component */ exports.MAX_RGBA_LENGTH = 3; /** Regular expression matching only valid hexadecimal chars */ exports.HEX_REGEX = /^[\da-f]{0,6}$/i; /** Regular expression matching only numbers */ exports.RGBA_REGEX = /^\d{0,3}$/; //# sourceMappingURL=consts.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctHSV = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Corrects an HSV color to fall within the valid range. */ function correctHSV(color) { return { h: (0, clamp_1.clamp)(color.h, consts_1.MAX_COLOR_HUE), s: (0, clamp_1.clamp)(color.s, consts_1.MAX_COLOR_SATURATION), v: (0, clamp_1.clamp)(color.v, consts_1.MAX_COLOR_VALUE), }; } exports.correctHSV = correctHSV; //# sourceMappingURL=correctHSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctHex = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Corrects a hex color to have length 3 or 6. Defaults to white if too short. * Does NOT check anything besides the length (such as valid characters) and does NOT handle * hex values starting with # sign. */ function correctHex(hex) { if (!hex || hex.length < consts_1.MIN_HEX_LENGTH) { return 'ffffff'; // not a valid color--default to white } if (hex.length >= consts_1.MAX_HEX_LENGTH) { return hex.substring(0, consts_1.MAX_HEX_LENGTH); } return hex.substring(0, consts_1.MIN_HEX_LENGTH); } exports.correctHex = correctHex; //# sourceMappingURL=correctHex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.correctRGB = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Corrects an RGB color to fall within the valid range. */ function correctRGB(color) { return { r: (0, clamp_1.clamp)(color.r, consts_1.MAX_COLOR_RGB), g: (0, clamp_1.clamp)(color.g, consts_1.MAX_COLOR_RGB), b: (0, clamp_1.clamp)(color.b, consts_1.MAX_COLOR_RGB), a: typeof color.a === 'number' ? (0, clamp_1.clamp)(color.a, consts_1.MAX_COLOR_ALPHA) : color.a, }; } exports.correctRGB = correctRGB; //# sourceMappingURL=correctRGB.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.cssColor = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsl2rgb_1 = __webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"); /** * Converts a valid CSS color string to an RGB color. * Note that hex colors *must* be prefixed with # to be considered valid. * Alpha in returned color defaults to 100. * Four and eight digit hex values (with alpha) are supported if the current browser supports them. */ function cssColor(color) { if (!color) { return undefined; } // Need to check the following valid color formats: RGB(A), HSL(A), hex, named color // First check for well formatted RGB(A), HSL(A), and hex formats at the start. // This is for perf (no creating an element) and catches the intentional "transparent" color // case early on. var easyColor = _rgba(color) || _hex6(color) || _hex3(color) || _hsla(color); if (easyColor) { return easyColor; } // if the above fails, do the more expensive catch-all return _browserCompute(color); } exports.cssColor = cssColor; /** * Uses the browser's getComputedStyle() to determine what the passed-in color is. * This assumes _rgba, _hex6, _hex3, and _hsla have already been tried and all failed. * This works by attaching an element to the DOM, which may fail in server-side rendering * or with headless browsers. */ function _browserCompute(str) { if (typeof document === 'undefined') { // don't throw an error when used server-side return undefined; } var elem = document.createElement('div'); elem.style.backgroundColor = str; // This element must be attached to the DOM for getComputedStyle() to have a value elem.style.position = 'absolute'; elem.style.top = '-9999px'; elem.style.left = '-9999px'; elem.style.height = '1px'; elem.style.width = '1px'; document.body.appendChild(elem); var eComputedStyle = getComputedStyle(elem); var computedColor = eComputedStyle && eComputedStyle.backgroundColor; document.body.removeChild(elem); // computedColor is always an RGB(A) string, except for invalid colors in IE/Edge which return 'transparent' // browsers return one of these if the color string is invalid, // so need to differentiate between an actual error and intentionally passing in this color if (computedColor === 'rgba(0, 0, 0, 0)' || computedColor === 'transparent') { switch (str.trim()) { // RGB and HSL were already checked at the start of the function case 'transparent': case '#0000': case '#00000000': return { r: 0, g: 0, b: 0, a: 0 }; } return undefined; } return _rgba(computedColor); } /** * If `str` is in valid `rgb()` or `rgba()` format, returns an RGB color (alpha defaults to 100). * Otherwise returns undefined. */ function _rgba(str) { if (!str) { return undefined; } var match = str.match(/^rgb(a?)\(([\d., ]+)\)$/); if (match) { var hasAlpha = !!match[1]; var expectedPartCount = hasAlpha ? 4 : 3; var parts = match[2].split(/ *, */).map(Number); if (parts.length === expectedPartCount) { return { r: parts[0], g: parts[1], b: parts[2], a: hasAlpha ? parts[3] * 100 : consts_1.MAX_COLOR_ALPHA, }; } } } /** * If `str` is in `hsl()` or `hsla()` format, returns an RGB color (alpha defaults to 100). * Otherwise returns undefined. */ function _hsla(str) { var match = str.match(/^hsl(a?)\(([\d., ]+)\)$/); if (match) { var hasAlpha = !!match[1]; var expectedPartCount = hasAlpha ? 4 : 3; var parts = match[2].split(/ *, */).map(Number); if (parts.length === expectedPartCount) { var rgba = (0, hsl2rgb_1.hsl2rgb)(parts[0], parts[1], parts[2]); rgba.a = hasAlpha ? parts[3] * 100 : consts_1.MAX_COLOR_ALPHA; return rgba; } } } /** * If `str` is in valid 6-digit hex format *with* # prefix, returns an RGB color (with alpha 100). * Otherwise returns undefined. */ function _hex6(str) { if (str[0] === '#' && str.length === 7 && /^#[\da-fA-F]{6}$/.test(str)) { return { r: parseInt(str.slice(1, 3), 16), g: parseInt(str.slice(3, 5), 16), b: parseInt(str.slice(5, 7), 16), a: consts_1.MAX_COLOR_ALPHA, }; } } /** * If `str` is in valid 3-digit hex format *with* # prefix, returns an RGB color (with alpha 100). * Otherwise returns undefined. */ function _hex3(str) { if (str[0] === '#' && str.length === 4 && /^#[\da-fA-F]{3}$/.test(str)) { return { r: parseInt(str[1] + str[1], 16), g: parseInt(str[2] + str[2], 16), b: parseInt(str[3] + str[3], 16), a: consts_1.MAX_COLOR_ALPHA, }; } } //# sourceMappingURL=cssColor.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromHSV = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var hsv2hex_1 = __webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Converts an HSV color (and optional alpha value) to a color object. * If `a` is not given, a default of 100 is used. * Hex in the returned value will *not* be prefixed with #. * If `a` is unspecified or 100, the result's `str` property will contain a hex value * (*not* prefixed with #) */ function getColorFromHSV(hsv, a) { var h = hsv.h, s = hsv.s, v = hsv.v; a = typeof a === 'number' ? a : consts_1.MAX_COLOR_ALPHA; var _a = (0, hsv2rgb_1.hsv2rgb)(h, s, v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, hsv2hex_1.hsv2hex)(h, s, v); var str = (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, a, hex); var t = consts_1.MAX_COLOR_ALPHA - a; return { a: a, b: b, g: g, h: h, hex: hex, r: r, s: s, str: str, v: v, t: t }; } exports.getColorFromHSV = getColorFromHSV; //# sourceMappingURL=getColorFromHSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromRGBA = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var rgb2hsv_1 = __webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** Converts an RGBA color to a color object (alpha defaults to 100). */ function getColorFromRGBA(rgba) { var _a = rgba.a, a = _a === void 0 ? consts_1.MAX_COLOR_ALPHA : _a, b = rgba.b, g = rgba.g, r = rgba.r; var _b = (0, rgb2hsv_1.rgb2hsv)(r, g, b), h = _b.h, s = _b.s, v = _b.v; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); var str = (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, a, hex); var t = consts_1.MAX_COLOR_ALPHA - a; return { a: a, b: b, g: g, h: h, hex: hex, r: r, s: s, str: str, v: v, t: t }; } exports.getColorFromRGBA = getColorFromRGBA; //# sourceMappingURL=getColorFromRGBA.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getColorFromString = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var cssColor_1 = __webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"); var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); /** * Converts a CSS color string to a color object. * Note that hex colors *must* be prefixed with # to be considered valid. * * `inputColor` will be used unmodified as the `str` property of the returned object. * Alpha defaults to 100 if not specified in `inputColor`. * Returns undefined if the color string is invalid/not recognized. */ function getColorFromString(inputColor) { var color = (0, cssColor_1.cssColor)(inputColor); if (!color) { return; } return tslib_1.__assign(tslib_1.__assign({}, (0, getColorFromRGBA_1.getColorFromRGBA)(color)), { str: inputColor }); } exports.getColorFromString = getColorFromString; //# sourceMappingURL=getColorFromString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFullColorString = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var hsv2hex_1 = __webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"); /** * Converts a color hue to an HTML color string (with # prefix). * This implementation ignores all components of `color` except hue. */ function getFullColorString(color) { return "#".concat((0, hsv2hex_1.hsv2hex)(color.h, consts_1.MAX_COLOR_SATURATION, consts_1.MAX_COLOR_VALUE)); } exports.getFullColorString = getFullColorString; //# sourceMappingURL=getFullColorString.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsl2hsv = void 0; /** Converts HSL components to an HSV color. */ function hsl2hsv(h, s, l) { s *= (l < 50 ? l : 100 - l) / 100; var v = l + s; return { h: h, s: v === 0 ? 0 : ((2 * s) / v) * 100, v: v, }; } exports.hsl2hsv = hsl2hsv; //# sourceMappingURL=hsl2hsv.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsl2rgb = void 0; var hsl2hsv_1 = __webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); /** Converts HSL components to an RGB color. Does not set the alpha value. */ function hsl2rgb(h, s, l) { var hsv = (0, hsl2hsv_1.hsl2hsv)(h, s, l); return (0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v); } exports.hsl2rgb = hsl2rgb; //# sourceMappingURL=hsl2rgb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2hex = void 0; var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); /** Converts HSV components to a hex color string (without # prefix). */ function hsv2hex(h, s, v) { var _a = (0, hsv2rgb_1.hsv2rgb)(h, s, v), r = _a.r, g = _a.g, b = _a.b; return (0, rgb2hex_1.rgb2hex)(r, g, b); } exports.hsv2hex = hsv2hex; //# sourceMappingURL=hsv2hex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2hsl = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts HSV components to an HSL color. */ function hsv2hsl(h, s, v) { s /= consts_1.MAX_COLOR_SATURATION; v /= consts_1.MAX_COLOR_VALUE; var l = (2 - s) * v; var sl = s * v; sl /= l <= 1 ? l : 2 - l; sl = sl || 0; l /= 2; return { h: h, s: sl * 100, l: l * 100 }; } exports.hsv2hsl = hsv2hsl; //# sourceMappingURL=hsv2hsl.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hsv2rgb = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts HSV components to an RGB color. Does not set the alpha value. */ function hsv2rgb(h, s, v) { s = s / 100; v = v / 100; var rgb = []; var c = v * s; var hh = h / 60; var x = c * (1 - Math.abs((hh % 2) - 1)); var m = v - c; switch (Math.floor(hh)) { case 0: rgb = [c, x, 0]; break; case 1: rgb = [x, c, 0]; break; case 2: rgb = [0, c, x]; break; case 3: rgb = [0, x, c]; break; case 4: rgb = [x, 0, c]; break; case 5: rgb = [c, 0, x]; break; } return { r: Math.round(consts_1.MAX_COLOR_RGB * (rgb[0] + m)), g: Math.round(consts_1.MAX_COLOR_RGB * (rgb[1] + m)), b: Math.round(consts_1.MAX_COLOR_RGB * (rgb[2] + m)), }; } exports.hsv2rgb = hsv2rgb; //# sourceMappingURL=hsv2rgb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/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__(/*! ./colors */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/colors.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./shades */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cssColor */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/cssColor.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsl2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsl2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hex.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./rgb2hsv */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromHSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFullColorString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateH */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./updateT */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./correctHSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHSV.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/interfaces.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.rgb2hex = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); /** Converts RGB components to a hex color string (without # prefix). */ function rgb2hex(r, g, b) { return [_rgbToPaddedHex(r), _rgbToPaddedHex(g), _rgbToPaddedHex(b)].join(''); } exports.rgb2hex = rgb2hex; /** Converts an RGB component to a 0-padded hex component of length 2. */ function _rgbToPaddedHex(num) { num = (0, clamp_1.clamp)(num, consts_1.MAX_COLOR_RGB); var hex = num.toString(16); return hex.length === 1 ? '0' + hex : hex; } //# sourceMappingURL=rgb2hex.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hsv.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.rgb2hsv = void 0; var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** Converts RGB components to an HSV color. */ function rgb2hsv(r, g, b) { var h = NaN; var max = Math.max(r, g, b); var min = Math.min(r, g, b); var delta = max - min; // hue if (delta === 0) { h = 0; } else if (r === max) { h = ((g - b) / delta) % 6; } else if (g === max) { h = (b - r) / delta + 2; } else if (b === max) { h = (r - g) / delta + 4; } h = Math.round(h * 60); if (h < 0) { h += 360; } // saturation var s = Math.round((max === 0 ? 0 : delta / max) * 100); // value var v = Math.round((max / consts_1.MAX_COLOR_RGB) * 100); return { h: h, s: s, v: v }; } exports.rgb2hsv = rgb2hsv; //# sourceMappingURL=rgb2hsv.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/shades.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getContrastRatio = exports.getBackgroundShade = exports.getShade = exports.isDark = exports.isValidShade = exports.Shade = void 0; // Technically this should be shades and tints, but for simplicity we'll call everything a shade. /* * This utility module is used with theming. Given a color to shade, whether the theme is inverted * (i.e. is a dark color), and the desired shade enum, this will return an appropriate shade of that color. */ var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var clamp_1 = __webpack_require__(/*! ./clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); var hsv2hsl_1 = __webpack_require__(/*! ./hsv2hsl */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2hsl.js"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); // Soften: to get closer to the background color's luminance // (softening with a white background would be lightening, with black it'd be darkening) // Strongen: opposite of soften // Luminance multiplier constants for generating shades of a given color var WhiteShadeTableBG = [0.027, 0.043, 0.082, 0.145, 0.184, 0.216, 0.349, 0.537]; // white bg var BlackTintTableBG = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black bg var WhiteShadeTable = [0.537, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043, 0.027]; // white fg var BlackTintTable = [0.537, 0.45, 0.349, 0.216, 0.184, 0.145, 0.082, 0.043]; // black fg var LumTintTable = [0.88, 0.77, 0.66, 0.55, 0.44, 0.33, 0.22, 0.11]; // light (strongen all) var LumShadeTable = [0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88]; // dark (soften all) var ColorTintTable = [0.96, 0.84, 0.7, 0.4, 0.12]; // default soften var ColorShadeTable = [0.1, 0.24, 0.44]; // default strongen // If the given shade's luminance is below/above these values, we'll swap to using the White/Black tables above var LowLuminanceThreshold = 0.2; var HighLuminanceThreshold = 0.8; /** Shades of a given color, from softest to strongest. */ var Shade; (function (Shade) { Shade[Shade["Unshaded"] = 0] = "Unshaded"; Shade[Shade["Shade1"] = 1] = "Shade1"; Shade[Shade["Shade2"] = 2] = "Shade2"; Shade[Shade["Shade3"] = 3] = "Shade3"; Shade[Shade["Shade4"] = 4] = "Shade4"; Shade[Shade["Shade5"] = 5] = "Shade5"; Shade[Shade["Shade6"] = 6] = "Shade6"; Shade[Shade["Shade7"] = 7] = "Shade7"; Shade[Shade["Shade8"] = 8] = "Shade8"; // remember to update isValidShade()! })(Shade = exports.Shade || (exports.Shade = {})); /** * Returns true if the argument is a valid Shade value * @param shade - The Shade value to validate. */ function isValidShade(shade) { return typeof shade === 'number' && shade >= Shade.Unshaded && shade <= Shade.Shade8; } exports.isValidShade = isValidShade; function _isBlack(color) { return color.r === 0 && color.g === 0 && color.b === 0; } function _isWhite(color) { return color.r === consts_1.MAX_COLOR_RGB && color.g === consts_1.MAX_COLOR_RGB && color.b === consts_1.MAX_COLOR_RGB; } function _darken(hsv, factor) { return { h: hsv.h, s: hsv.s, v: (0, clamp_1.clamp)(hsv.v - hsv.v * factor, 100, 0), }; } function _lighten(hsv, factor) { return { h: hsv.h, s: (0, clamp_1.clamp)(hsv.s - hsv.s * factor, 100, 0), v: (0, clamp_1.clamp)(hsv.v + (100 - hsv.v) * factor, 100, 0), }; } function isDark(color) { return (0, hsv2hsl_1.hsv2hsl)(color.h, color.s, color.v).l < 50; } exports.isDark = isDark; /** * Given a color and a shade specification, generates the requested shade of the color. * Logic: * if white * darken via tables defined above * if black * lighten * if light * strongen * if dark * soften * else default * soften or strongen depending on shade# * @param color - The base color whose shade is to be computed * @param shade - The shade of the base color to compute * @param isInverted - Default false. Whether the given theme is inverted (reverse strongen/soften logic) */ function getShade(color, shade, isInverted) { if (isInverted === void 0) { isInverted = false; } if (!color) { return null; } if (shade === Shade.Unshaded || !isValidShade(shade)) { return color; } var hsl = (0, hsv2hsl_1.hsv2hsl)(color.h, color.s, color.v); var hsv = { h: color.h, s: color.s, v: color.v }; var tableIndex = shade - 1; var _soften = _lighten; var _strongen = _darken; if (isInverted) { _soften = _darken; _strongen = _lighten; } if (_isWhite(color)) { // white hsv = _darken(hsv, WhiteShadeTable[tableIndex]); } else if (_isBlack(color)) { // black hsv = _lighten(hsv, BlackTintTable[tableIndex]); } else if (hsl.l / 100 > HighLuminanceThreshold) { // light hsv = _strongen(hsv, LumShadeTable[tableIndex]); } else if (hsl.l / 100 < LowLuminanceThreshold) { // dark hsv = _soften(hsv, LumTintTable[tableIndex]); } else { // default if (tableIndex < ColorTintTable.length) { hsv = _soften(hsv, ColorTintTable[tableIndex]); } else { hsv = _strongen(hsv, ColorShadeTable[tableIndex - ColorTintTable.length]); } } return (0, getColorFromRGBA_1.getColorFromRGBA)((0, Utilities_1.assign)((0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v), { a: color.a })); } exports.getShade = getShade; // Background shades/tints are generated differently. The provided color will be guaranteed // to be the darkest or lightest one. If it is <50% luminance, it will always be the darkest, // otherwise it will always be the lightest. function getBackgroundShade(color, shade, isInverted) { if (isInverted === void 0) { isInverted = false; } if (!color) { return null; } if (shade === Shade.Unshaded || !isValidShade(shade)) { return color; } var hsv = { h: color.h, s: color.s, v: color.v }; var tableIndex = shade - 1; if (!isInverted) { // lightish hsv = _darken(hsv, WhiteShadeTableBG[tableIndex]); } else { // default: if (hsl.l / 100 < .5) { // darkish hsv = _lighten(hsv, BlackTintTableBG[BlackTintTable.length - 1 - tableIndex]); } return (0, getColorFromRGBA_1.getColorFromRGBA)((0, Utilities_1.assign)((0, hsv2rgb_1.hsv2rgb)(hsv.h, hsv.s, hsv.v), { a: color.a })); } exports.getBackgroundShade = getBackgroundShade; /* Calculates the contrast ratio between two colors. Used for verifying * color pairs meet minimum accessibility requirements. * See: https://www.w3.org/TR/WCAG20/ section 1.4.3 */ function getContrastRatio(color1, color2) { // Formula defined by: http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html#contrast-ratiodef // relative luminance: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef /* calculate the intermediate value needed to calculating relative luminance */ function _getThing(x) { if (x <= 0.03928) { return x / 12.92; } else { return Math.pow((x + 0.055) / 1.055, 2.4); } } var r1 = _getThing(color1.r / consts_1.MAX_COLOR_RGB); var g1 = _getThing(color1.g / consts_1.MAX_COLOR_RGB); var b1 = _getThing(color1.b / consts_1.MAX_COLOR_RGB); var L1 = 0.2126 * r1 + 0.7152 * g1 + 0.0722 * b1; // relative luminance of first color L1 += 0.05; var r2 = _getThing(color2.r / consts_1.MAX_COLOR_RGB); var g2 = _getThing(color2.g / consts_1.MAX_COLOR_RGB); var b2 = _getThing(color2.b / consts_1.MAX_COLOR_RGB); var L2 = 0.2126 * r2 + 0.7152 * g2 + 0.0722 * b2; // relative luminance of second color L2 += 0.05; // return the lighter color divided by darker return L1 / L2 > 1 ? L1 / L2 : L2 / L1; } exports.getContrastRatio = getContrastRatio; //# sourceMappingURL=shades.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateA = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Gets a color with the given alpha value and the same other components as `color`. * Does not modify the original color. */ function updateA(color, a) { return tslib_1.__assign(tslib_1.__assign({}, color), { a: a, t: consts_1.MAX_COLOR_ALPHA - a, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(color.r, color.g, color.b, a, color.hex) }); } exports.updateA = updateA; //# sourceMappingURL=updateA.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateH = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Gets a color with the same saturation and value as `color` and the other components updated * to match the given hue. * * Does not modify the original `color` and does not supply a default alpha value. */ function updateH(color, h) { var _a = (0, hsv2rgb_1.hsv2rgb)(h, color.s, color.v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); return tslib_1.__assign(tslib_1.__assign({}, color), { h: h, r: r, g: g, b: b, hex: hex, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, color.a, hex) }); } exports.updateH = updateH; //# sourceMappingURL=updateH.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateRGB.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateRGB = void 0; var getColorFromRGBA_1 = __webpack_require__(/*! ./getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); /** * Gets a color with a single RGBA component updated to a new value. * Does not modify the original `color`. Alpha defaults to 100 if not set. */ function updateRGB(color, component, value) { var _a; return (0, getColorFromRGBA_1.getColorFromRGBA)((_a = { r: color.r, g: color.g, b: color.b, a: color.a }, _a[component] = value, _a)); } exports.updateRGB = updateRGB; //# sourceMappingURL=updateRGB.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateSV = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var hsv2rgb_1 = __webpack_require__(/*! ./hsv2rgb */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/hsv2rgb.js"); var rgb2hex_1 = __webpack_require__(/*! ./rgb2hex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/rgb2hex.js"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); /** * Gets a color with the same hue as `color` and other components updated to match the given * saturation and value. * * Does not modify the original `color` and does not supply a default alpha value. */ function updateSV(color, s, v) { var _a = (0, hsv2rgb_1.hsv2rgb)(color.h, s, v), r = _a.r, g = _a.g, b = _a.b; var hex = (0, rgb2hex_1.rgb2hex)(r, g, b); return tslib_1.__assign(tslib_1.__assign({}, color), { s: s, v: v, r: r, g: g, b: b, hex: hex, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(r, g, b, color.a, hex) }); } exports.updateSV = updateSV; //# sourceMappingURL=updateSV.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.updateT = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var _rgbaOrHexString_1 = __webpack_require__(/*! ./_rgbaOrHexString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/_rgbaOrHexString.js"); var consts_1 = __webpack_require__(/*! ./consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); /** * Gets a color with the given transparency value and the same other components as `color`. * Does not modify the original color. */ function updateT(color, t) { var a = consts_1.MAX_COLOR_ALPHA - t; return tslib_1.__assign(tslib_1.__assign({}, color), { t: t, a: a, str: (0, _rgbaOrHexString_1._rgbaOrHexString)(color.r, color.g, color.b, a, color.hex) }); } exports.updateT = updateT; //# sourceMappingURL=updateT.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getMenuItemAriaRole = exports.isItemDisabled = exports.hasSubmenu = exports.getIsChecked = void 0; /** * Determines the effective checked state of a menu item. * * @param item {IContextualMenuItem} to get the check state of. * @returns {true} if the item is checked. * @returns {false} if the item is unchecked. * @returns {null} if the item is not checkable. */ function getIsChecked(item) { if (item.canCheck) { return !!(item.isChecked || item.checked); } if (typeof item.isChecked === 'boolean') { return item.isChecked; } if (typeof item.checked === 'boolean') { return item.checked; } // Item is not checkable. return null; } exports.getIsChecked = getIsChecked; function hasSubmenu(item) { // eslint-disable-next-line deprecation/deprecation return !!(item.subMenuProps || item.items); } exports.hasSubmenu = hasSubmenu; function isItemDisabled(item) { return !!(item.isDisabled || item.disabled); } exports.isItemDisabled = isItemDisabled; function getMenuItemAriaRole(item) { var isChecked = getIsChecked(item); var canCheck = isChecked !== null; return canCheck ? 'menuitemcheckbox' : 'menuitem'; } exports.getMenuItemAriaRole = getMenuItemAriaRole; //# sourceMappingURL=contextualMenuUtility.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/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__(/*! ./contextualMenuUtility */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/contextualMenuUtility.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseDecorator = 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 BaseDecorator = /** @class */ (function (_super) { tslib_1.__extends(BaseDecorator, _super); function BaseDecorator(props) { var _this = _super.call(this, props) || this; _this._updateComposedComponentRef = _this._updateComposedComponentRef.bind(_this); return _this; } /** * Updates the ref to the component composed by the decorator, which will also take care of hoisting * (and unhoisting as appropriate) methods from said component. * * Pass this method as the argument to the 'ref' property of the composed component. */ BaseDecorator.prototype._updateComposedComponentRef = function (composedComponentInstance) { this._composedComponentInstance = composedComponentInstance; if (composedComponentInstance) { this._hoisted = (0, Utilities_1.hoistMethods)(this, composedComponentInstance); } else if (this._hoisted) { (0, Utilities_1.unhoistMethods)(this, this._hoisted); } }; return BaseDecorator; }(React.Component)); exports.BaseDecorator = BaseDecorator; //# sourceMappingURL=BaseDecorator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getResponsiveMode = exports.withResponsiveMode = exports.getInitialResponsiveMode = exports.initializeResponsiveMode = exports.setResponsiveMode = exports.ResponsiveMode = 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 BaseDecorator_1 = __webpack_require__(/*! ./BaseDecorator */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var WindowProvider_1 = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); var ResponsiveMode; (function (ResponsiveMode) { /** Width \<= 479px */ ResponsiveMode[ResponsiveMode["small"] = 0] = "small"; /** Width \> 479px and \<= 639px */ ResponsiveMode[ResponsiveMode["medium"] = 1] = "medium"; /** Width \> 639px and \<= 1023px */ ResponsiveMode[ResponsiveMode["large"] = 2] = "large"; /** Width \> 1023px and \<= 1365px */ ResponsiveMode[ResponsiveMode["xLarge"] = 3] = "xLarge"; /** Width \> 1365px and \<= 1919px */ ResponsiveMode[ResponsiveMode["xxLarge"] = 4] = "xxLarge"; /** Width \> 1919px */ ResponsiveMode[ResponsiveMode["xxxLarge"] = 5] = "xxxLarge"; ResponsiveMode[ResponsiveMode["unknown"] = 999] = "unknown"; })(ResponsiveMode = exports.ResponsiveMode || (exports.ResponsiveMode = {})); var RESPONSIVE_MAX_CONSTRAINT = [479, 639, 1023, 1365, 1919, 99999999]; /** * User specified mode to default to, useful for server side rendering scenarios. */ var _defaultMode; /** * Tracking the last mode we successfully rendered, which allows us to * paint initial renders with the correct size. */ var _lastMode; /** * Allows a server rendered scenario to provide a **default** responsive mode. * This WILL NOT trigger any updates to components that have already consumed the responsive mode! */ function setResponsiveMode(responsiveMode) { _defaultMode = responsiveMode; } exports.setResponsiveMode = setResponsiveMode; /** * Initializes the responsive mode to the current window size. This can be used to avoid * a re-render during first component mount since the window would otherwise not be measured * until after mounting. * * This WILL NOT trigger any updates to components that have already consumed the responsive mode! */ function initializeResponsiveMode(element) { var currentWindow = (0, Utilities_1.getWindow)(element); if (currentWindow) { getResponsiveMode(currentWindow); } } exports.initializeResponsiveMode = initializeResponsiveMode; function getInitialResponsiveMode() { var _a; return (_a = _defaultMode !== null && _defaultMode !== void 0 ? _defaultMode : _lastMode) !== null && _a !== void 0 ? _a : ResponsiveMode.large; } exports.getInitialResponsiveMode = getInitialResponsiveMode; /** * @deprecated Decorator usage is deprecated. Either call `getResponsiveMode` manually, or * use the `useResponsiveMode` hook within a function component. */ function withResponsiveMode(ComposedComponent) { var _a; // eslint-disable-next-line deprecation/deprecation var resultClass = (_a = /** @class */ (function (_super) { tslib_1.__extends(WithResponsiveMode, _super); function WithResponsiveMode(props) { var _this = _super.call(this, props) || this; _this._onResize = function () { var responsiveMode = getResponsiveMode(_this.context.window); if (responsiveMode !== _this.state.responsiveMode) { _this.setState({ responsiveMode: responsiveMode, }); } }; _this._events = new Utilities_1.EventGroup(_this); _this._updateComposedComponentRef = _this._updateComposedComponentRef.bind(_this); _this.state = { responsiveMode: getInitialResponsiveMode(), }; return _this; } WithResponsiveMode.prototype.componentDidMount = function () { this._events.on(this.context.window, 'resize', this._onResize); this._onResize(); }; WithResponsiveMode.prototype.componentWillUnmount = function () { this._events.dispose(); }; WithResponsiveMode.prototype.render = function () { var responsiveMode = this.state.responsiveMode; return responsiveMode === ResponsiveMode.unknown ? null : (React.createElement(ComposedComponent, tslib_1.__assign({ ref: this._updateComposedComponentRef, responsiveMode: responsiveMode }, this.props))); }; return WithResponsiveMode; }(BaseDecorator_1.BaseDecorator)), _a.contextType = WindowProvider_1.WindowContext, _a); return (0, Utilities_1.hoistStatics)(ComposedComponent, resultClass); } exports.withResponsiveMode = withResponsiveMode; function getWidthOfCurrentWindow(currentWindow) { try { return currentWindow.document.documentElement.clientWidth; } catch (e) { return currentWindow.innerWidth; } } /** * Hook to get the current responsive mode (window size category). * @param currentWindow - Use this window when determining the responsive mode. */ function getResponsiveMode(currentWindow) { var responsiveMode = ResponsiveMode.small; if (currentWindow) { try { while (getWidthOfCurrentWindow(currentWindow) > RESPONSIVE_MAX_CONSTRAINT[responsiveMode]) { responsiveMode++; } } catch (e) { // Return a best effort result in cases where we're in the browser but it throws on getting innerWidth. responsiveMode = getInitialResponsiveMode(); } // Tracking last mode just gives us a better default in future renders, // which avoids starting with the wrong value if we've measured once. _lastMode = responsiveMode; } else { if (_defaultMode !== undefined) { responsiveMode = _defaultMode; } else { throw new Error('Content was rendered in a server environment without providing a default responsive mode. ' + 'Call setResponsiveMode to define what the responsive mode is.'); } } return responsiveMode; } exports.getResponsiveMode = getResponsiveMode; //# sourceMappingURL=withResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.withViewport = 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 BaseDecorator_1 = __webpack_require__(/*! ./BaseDecorator */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/BaseDecorator.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var RESIZE_DELAY = 500; var MAX_RESIZE_ATTEMPTS = 3; /** * A decorator to update decorated component on viewport or window resize events. * * @param ComposedComponent - decorated React component reference. */ function withViewport(ComposedComponent) { return /** @class */ (function (_super) { tslib_1.__extends(WithViewportComponent, _super); function WithViewportComponent(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._registerResizeObserver = function () { var win = (0, Utilities_1.getWindow)(_this._root.current); _this._viewportResizeObserver = new win.ResizeObserver(_this._onAsyncResize); _this._viewportResizeObserver.observe(_this._root.current); }; _this._unregisterResizeObserver = function () { if (_this._viewportResizeObserver) { _this._viewportResizeObserver.disconnect(); delete _this._viewportResizeObserver; } }; /* Note: using lambda here because decorators don't seem to work in decorators. */ _this._updateViewport = function (withForceUpdate) { var viewport = _this.state.viewport; var viewportElement = _this._root.current; var scrollElement = (0, Utilities_1.findScrollableParent)(viewportElement); var scrollRect = (0, Utilities_1.getRect)(scrollElement); var clientRect = (0, Utilities_1.getRect)(viewportElement); var updateComponent = function () { if (withForceUpdate && _this._composedComponentInstance) { _this._composedComponentInstance.forceUpdate(); } }; var isSizeChanged = (clientRect && clientRect.width) !== viewport.width || (scrollRect && scrollRect.height) !== viewport.height; if (isSizeChanged && _this._resizeAttempts < MAX_RESIZE_ATTEMPTS && clientRect && scrollRect) { _this._resizeAttempts++; _this.setState({ viewport: { width: clientRect.width, height: scrollRect.height, }, }, function () { _this._updateViewport(withForceUpdate); }); } else { _this._resizeAttempts = 0; updateComponent(); } }; _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._resizeAttempts = 0; _this.state = { viewport: { width: 0, height: 0, }, }; return _this; } WithViewportComponent.prototype.componentDidMount = function () { var _this = this; var _a = this.props, delayFirstMeasure = _a.delayFirstMeasure, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures; var win = (0, Utilities_1.getWindow)(this._root.current); this._onAsyncResize = this._async.debounce(this._onAsyncResize, RESIZE_DELAY, { leading: false, }); if (!skipViewportMeasures) { if (!disableResizeObserver && this._isResizeObserverAvailable()) { this._registerResizeObserver(); } else { this._events.on(win, 'resize', this._onAsyncResize); } if (delayFirstMeasure) { this._async.setTimeout(function () { _this._updateViewport(); }, RESIZE_DELAY); } else { this._updateViewport(); } } }; WithViewportComponent.prototype.componentDidUpdate = function (previousProps) { var previousSkipViewportMeasures = previousProps.skipViewportMeasures; var _a = this.props, disableResizeObserver = _a.disableResizeObserver, skipViewportMeasures = _a.skipViewportMeasures; var win = (0, Utilities_1.getWindow)(this._root.current); if (skipViewportMeasures !== previousSkipViewportMeasures) { if (!skipViewportMeasures) { if (!disableResizeObserver && this._isResizeObserverAvailable()) { if (!this._viewportResizeObserver) { this._registerResizeObserver(); } } else { this._events.on(win, 'resize', this._onAsyncResize); } this._updateViewport(); } else { this._unregisterResizeObserver(); this._events.off(win, 'resize', this._onAsyncResize); } } }; WithViewportComponent.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); this._unregisterResizeObserver(); }; WithViewportComponent.prototype.render = function () { var viewport = this.state.viewport; var newViewport = viewport.width > 0 && viewport.height > 0 ? viewport : undefined; return (React.createElement("div", { className: "ms-Viewport", ref: this._root, style: { minWidth: 1, minHeight: 1 } }, React.createElement(ComposedComponent, tslib_1.__assign({ ref: this._updateComposedComponentRef, viewport: newViewport }, this.props)))); }; WithViewportComponent.prototype.forceUpdate = function () { this._updateViewport(true); }; WithViewportComponent.prototype._onAsyncResize = function () { this._updateViewport(); }; WithViewportComponent.prototype._isResizeObserverAvailable = function () { var win = (0, Utilities_1.getWindow)(this._root.current); return win && win.ResizeObserver; }; return WithViewportComponent; }(BaseDecorator_1.BaseDecorator)); } exports.withViewport = withViewport; //# sourceMappingURL=withViewport.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DragDropHelper = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); 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 DragDropHelper = /** @class */ (function () { function DragDropHelper(params) { this._selection = params.selection; this._dragEnterCounts = {}; this._activeTargets = {}; this._lastId = 0; // To make this class cheap to create, which allows simplifying some logic elsewhere, // only initialize the event group and global event handlers as needed. this._initialized = false; } DragDropHelper.prototype.dispose = function () { if (this._events) { this._events.dispose(); } }; DragDropHelper.prototype.subscribe = function (root, events, dragDropOptions) { var _this = this; if (!this._initialized) { this._events = new Utilities_1.EventGroup(this); var doc = (0, Utilities_1.getDocument)(); // clear drag data when mouse up, use capture event to ensure it will be run if (doc) { this._events.on(doc.body, 'mouseup', this._onMouseUp.bind(this), true); this._events.on(doc, 'mouseup', this._onDocumentMouseUp.bind(this), true); } this._initialized = true; } var _a = dragDropOptions.key, key = _a === void 0 ? "".concat(++this._lastId) : _a; var handlers = []; var onDragStart; var onDragLeave; var onDragEnter; var onDragEnd; var onDrop; var onDragOver; var onMouseDown; var isDraggable; var isDroppable; var activeTarget; if (dragDropOptions && root) { var eventMap = dragDropOptions.eventMap, context = dragDropOptions.context, updateDropState_1 = dragDropOptions.updateDropState; var dragDropTarget = { root: root, options: dragDropOptions, key: key, }; isDraggable = this._isDraggable(dragDropTarget); isDroppable = this._isDroppable(dragDropTarget); if (isDraggable || isDroppable) { if (eventMap) { for (var _i = 0, eventMap_1 = eventMap; _i < eventMap_1.length; _i++) { var event_1 = eventMap_1[_i]; var handler = { callback: event_1.callback.bind(null, context), eventName: event_1.eventName, }; handlers.push(handler); this._events.on(root, handler.eventName, handler.callback); } } } if (isDroppable) { // If the target is droppable, wire up global event listeners to track drop-related events. onDragLeave = function (event) { if (!event.isHandled) { event.isHandled = true; _this._dragEnterCounts[key]--; if (_this._dragEnterCounts[key] === 0) { updateDropState_1(false /* isDropping */, event); } } }; onDragEnter = function (event) { event.preventDefault(); // needed for IE if (!event.isHandled) { event.isHandled = true; _this._dragEnterCounts[key]++; if (_this._dragEnterCounts[key] === 1) { updateDropState_1(true /* isDropping */, event); } } }; onDragEnd = function (event) { _this._dragEnterCounts[key] = 0; updateDropState_1(false /* isDropping */, event); }; onDrop = function (event) { _this._dragEnterCounts[key] = 0; updateDropState_1(false /* isDropping */, event); if (dragDropOptions.onDrop) { dragDropOptions.onDrop(dragDropOptions.context.data, event); } }; onDragOver = function (event) { event.preventDefault(); if (dragDropOptions.onDragOver) { dragDropOptions.onDragOver(dragDropOptions.context.data, event); } }; this._dragEnterCounts[key] = 0; // dragenter and dragleave will be fired when hover to the child element // but we only want to change state when enter or leave the current element // use the count to ensure it. events.on(root, 'dragenter', onDragEnter); events.on(root, 'dragleave', onDragLeave); events.on(root, 'dragend', onDragEnd); events.on(root, 'drop', onDrop); events.on(root, 'dragover', onDragOver); } if (isDraggable) { // If the target is draggable, wire up local event listeners for mouse events. onMouseDown = this._onMouseDown.bind(this, dragDropTarget); onDragEnd = this._onDragEnd.bind(this, dragDropTarget); // We need to add in data so that on Firefox we show the ghost element when dragging onDragStart = function (event) { var options = dragDropOptions; if (options && options.onDragStart) { options.onDragStart(options.context.data, options.context.index, _this._selection.getSelection(), event); } _this._isDragging = true; if (event.dataTransfer) { event.dataTransfer.setData('id', root.id); } }; events.on(root, 'dragstart', onDragStart); events.on(root, 'mousedown', onMouseDown); events.on(root, 'dragend', onDragEnd); } activeTarget = { target: dragDropTarget, dispose: function () { if (_this._activeTargets[key] === activeTarget) { delete _this._activeTargets[key]; } if (root) { for (var _i = 0, handlers_1 = handlers; _i < handlers_1.length; _i++) { var handler = handlers_1[_i]; _this._events.off(root, handler.eventName, handler.callback); } if (isDroppable) { events.off(root, 'dragenter', onDragEnter); events.off(root, 'dragleave', onDragLeave); events.off(root, 'dragend', onDragEnd); events.off(root, 'dragover', onDragOver); events.off(root, 'drop', onDrop); } if (isDraggable) { events.off(root, 'dragstart', onDragStart); events.off(root, 'mousedown', onMouseDown); events.off(root, 'dragend', onDragEnd); } } }, }; this._activeTargets[key] = activeTarget; } return { key: key, dispose: function () { if (activeTarget) { activeTarget.dispose(); } }, }; }; DragDropHelper.prototype.unsubscribe = function (root, key) { var activeTarget = this._activeTargets[key]; if (activeTarget) { activeTarget.dispose(); } }; DragDropHelper.prototype._onDragEnd = function (target, event) { var options = target.options; if (options.onDragEnd) { options.onDragEnd(options.context.data, event); } }; /** * clear drag data when mouse up on body */ DragDropHelper.prototype._onMouseUp = function (event) { this._isDragging = false; if (this._dragData) { for (var _i = 0, _a = Object.keys(this._activeTargets); _i < _a.length; _i++) { var key = _a[_i]; var activeTarget = this._activeTargets[key]; if (activeTarget.target.root) { this._events.off(activeTarget.target.root, 'mousemove'); this._events.off(activeTarget.target.root, 'mouseleave'); } } if (this._dragData.dropTarget) { // raise dragleave event to let dropTarget know it need to remove dropping style Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'dragleave'); Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'drop'); } } this._dragData = null; }; /** * clear drag data when mouse up outside of the document */ DragDropHelper.prototype._onDocumentMouseUp = function (event) { var doc = (0, Utilities_1.getDocument)(); if (doc && event.target === doc.documentElement) { this._onMouseUp(event); } }; /** * when mouse move over a new drop target while dragging some items, * fire dragleave on the old target and fire dragenter to the new target * The target will handle style change on dragenter and dragleave events. */ DragDropHelper.prototype._onMouseMove = function (target, event) { var // use buttons property here since ev.button in some edge case is not updating well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. _a = event.buttons, // use buttons property here since ev.button in some edge case is not updating well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. buttons = _a === void 0 ? MOUSEMOVE_PRIMARY_BUTTON : _a; if (this._dragData && buttons !== MOUSEMOVE_PRIMARY_BUTTON) { // cancel mouse down event and return early when the primary button is not pressed this._onMouseUp(event); return; } var root = target.root, key = target.key; if (this._isDragging) { if (this._isDroppable(target)) { // we can have nested drop targets in the DOM, like a folder inside a group. In that case, when we drag into // the inner target (folder), we first set dropTarget to the inner element. But the same event is bubbled to the // outer target too, and we need to prevent the outer one from taking over. // So, check if the last dropTarget is not a child of the current. if (this._dragData) { if (this._dragData.dropTarget && this._dragData.dropTarget.key !== key && !this._isChild(root, this._dragData.dropTarget.root)) { if (this._dragEnterCounts[this._dragData.dropTarget.key] > 0) { Utilities_1.EventGroup.raise(this._dragData.dropTarget.root, 'dragleave'); Utilities_1.EventGroup.raise(root, 'dragenter'); this._dragData.dropTarget = target; } } } } } }; /** * when mouse leave a target while dragging some items, fire dragleave to the target */ DragDropHelper.prototype._onMouseLeave = function (target, event) { if (this._isDragging) { if (this._dragData && this._dragData.dropTarget && this._dragData.dropTarget.key === target.key) { Utilities_1.EventGroup.raise(target.root, 'dragleave'); this._dragData.dropTarget = undefined; } } }; /** * when mouse down on a draggable item, we start to track dragdata. */ DragDropHelper.prototype._onMouseDown = function (target, event) { if (event.button !== MOUSEDOWN_PRIMARY_BUTTON) { // Ignore anything except the primary button. return; } if (this._isDraggable(target)) { this._dragData = { clientX: event.clientX, clientY: event.clientY, eventTarget: event.target, dragTarget: target, }; for (var _i = 0, _a = Object.keys(this._activeTargets); _i < _a.length; _i++) { var key = _a[_i]; var activeTarget = this._activeTargets[key]; if (activeTarget.target.root) { this._events.on(activeTarget.target.root, 'mousemove', this._onMouseMove.bind(this, activeTarget.target)); this._events.on(activeTarget.target.root, 'mouseleave', this._onMouseLeave.bind(this, activeTarget.target)); } } } else { this._dragData = null; } }; /** * determine whether the child target is a descendant of the parent */ DragDropHelper.prototype._isChild = function (parentElement, childElement) { while (childElement && childElement.parentElement) { if (childElement.parentElement === parentElement) { return true; } childElement = childElement.parentElement; } return false; }; DragDropHelper.prototype._isDraggable = function (target) { var options = target.options; return !!(options.canDrag && options.canDrag(options.context.data)); }; DragDropHelper.prototype._isDroppable = function (target) { // TODO: take the drag item into consideration to prevent dragging an item into the same group var options = target.options; var dragContext = this._dragData && this._dragData.dragTarget ? this._dragData.dragTarget.options.context : undefined; return !!(options.canDrop && options.canDrop(options.context, dragContext)); }; return DragDropHelper; }()); exports.DragDropHelper = DragDropHelper; //# sourceMappingURL=DragDropHelper.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/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__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DragDropHelper */ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/DragDropHelper.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/interfaces.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GetGroupCount = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Takes an array of groups and returns a count of the groups and all descendant groups. * @param groups - The array of groups to count. */ var GetGroupCount = function (groups) { var total = 0; if (groups) { var remainingGroups = tslib_1.__spreadArray([], groups, true); var currentGroup = void 0; while (remainingGroups && remainingGroups.length > 0) { ++total; currentGroup = remainingGroups.pop(); if (currentGroup && currentGroup.children) { remainingGroups.push.apply(remainingGroups, currentGroup.children); } } } return total; }; exports.GetGroupCount = GetGroupCount; //# sourceMappingURL=GroupedListUtility.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/hooks/useResponsiveMode.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/hooks/useResponsiveMode.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useResponsiveMode = 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 react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var withResponsiveMode_1 = __webpack_require__(/*! ../decorators/withResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js"); var WindowProvider_1 = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); /** * Hook to get the current responsive mode (window size category). * @param elementRef - Use this element's parent window when determining the responsive mode. * @param overrideResponsiveMode - Override the responsive mode. If this param is present, it's always returned. */ var useResponsiveMode = function (elementRef, overrideResponsiveMode) { var _a = React.useState((0, withResponsiveMode_1.getInitialResponsiveMode)()), lastResponsiveMode = _a[0], setLastResponsiveMode = _a[1]; var onResize = React.useCallback(function () { var newResponsiveMode = (0, withResponsiveMode_1.getResponsiveMode)((0, utilities_1.getWindow)(elementRef.current)); // Setting the same value should not cause a re-render. if (lastResponsiveMode !== newResponsiveMode) { setLastResponsiveMode(newResponsiveMode); } }, [elementRef, lastResponsiveMode]); var win = (0, WindowProvider_1.useWindow)(); (0, react_hooks_1.useOnEvent)(win, 'resize', onResize); // Call resize function initially on mount, or if the override changes from defined to undefined // (the effect will run on all override changes, but onResize will only be called if it changed to undefined) React.useEffect(function () { if (overrideResponsiveMode === undefined) { onResize(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- only meant to run on mount or when override changes }, [overrideResponsiveMode]); return overrideResponsiveMode !== null && overrideResponsiveMode !== void 0 ? overrideResponsiveMode : lastResponsiveMode; }; exports.useResponsiveMode = useResponsiveMode; //# sourceMappingURL=useResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.transitionKeysContain = exports.transitionKeysAreEqual = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); /** * Tests for equality between two IKeytipTransitionKeys. * * @param key1 - First IKeytipTransitionKey. * @param key2 - Second IKeytipTransitionKey. * @returns T/F if the transition keys are equal. */ function transitionKeysAreEqual(key1, key2) { if (key1.key !== key2.key) { return false; } var mod1 = key1.modifierKeys; var mod2 = key2.modifierKeys; if ((!mod1 && mod2) || (mod1 && !mod2)) { // Not equal if one modifier is defined and the other isn't return false; } if (mod1 && mod2) { if (mod1.length !== mod2.length) { return false; } // Sort both arrays mod1 = mod1.sort(); mod2 = mod2.sort(); for (var i = 0; i < mod1.length; i++) { if (mod1[i] !== mod2[i]) { return false; } } } return true; } exports.transitionKeysAreEqual = transitionKeysAreEqual; /** * Tests if 'key' is present in 'keys'. * * @param keys - Array of IKeytipTransitionKey. * @param key - IKeytipTransitionKey to find in 'keys'. * @returns T/F if 'keys' contains 'key'. */ function transitionKeysContain(keys, key) { return !!(0, Utilities_1.find)(keys, function (transitionKey) { return transitionKeysAreEqual(transitionKey, key); }); } exports.transitionKeysContain = transitionKeysContain; //# sourceMappingURL=IKeytipTransitionKey.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.constructKeytip = exports.buildKeytipConfigMap = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Builds a map of ID to IKeytipProps * * @param config - IKeytipConfig object * @returns Config map */ function buildKeytipConfigMap(config) { var configMap = {}; for (var _i = 0, _a = config.keytips; _i < _a.length; _i++) { var keytip = _a[_i]; constructKeytip(configMap, [], keytip); } return configMap; } exports.buildKeytipConfigMap = buildKeytipConfigMap; /** * Constructs a keytip from an IKeytipConfigItem and puts it in the configMap * * @param configMap - IKeytipConfigMap to store the keytip in * @param parentSequence - string of the parent keytip * @param keytip - IKeytipConfigItem data */ function constructKeytip(configMap, parentSequence, keytip) { // Compute full key sequence var sequence = keytip.sequence ? keytip.sequence : keytip.content.toLocaleLowerCase(); var keytipSequence = parentSequence.concat(sequence); // Save props in configMap var keytipProps = tslib_1.__assign(tslib_1.__assign({}, keytip.optionalProps), { keySequences: keytipSequence, content: keytip.content }); configMap[keytip.id] = keytipProps; if (keytip.children) { for (var _i = 0, _a = keytip.children; _i < _a.length; _i++) { var child = _a[_i]; // Create keytips for all children constructKeytip(configMap, keytipSequence, child); } } } exports.constructKeytip = constructKeytip; //# sourceMappingURL=KeytipConfig.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipEvents = exports.KTP_ARIA_SEPARATOR = exports.KTP_LAYER_ID = exports.DATAKTP_ARIA_TARGET = exports.DATAKTP_EXECUTE_TARGET = exports.DATAKTP_TARGET = exports.KTP_FULL_PREFIX = exports.KTP_SEPARATOR = exports.KTP_PREFIX = void 0; exports.KTP_PREFIX = 'ktp'; exports.KTP_SEPARATOR = '-'; exports.KTP_FULL_PREFIX = exports.KTP_PREFIX + exports.KTP_SEPARATOR; exports.DATAKTP_TARGET = 'data-ktp-target'; exports.DATAKTP_EXECUTE_TARGET = 'data-ktp-execute-target'; exports.DATAKTP_ARIA_TARGET = 'data-ktp-aria-target'; exports.KTP_LAYER_ID = 'ktp-layer-id'; exports.KTP_ARIA_SEPARATOR = ', '; // Events var KeytipEvents; (function (KeytipEvents) { KeytipEvents.KEYTIP_ADDED = 'keytipAdded'; KeytipEvents.KEYTIP_REMOVED = 'keytipRemoved'; KeytipEvents.KEYTIP_UPDATED = 'keytipUpdated'; KeytipEvents.PERSISTED_KEYTIP_ADDED = 'persistedKeytipAdded'; KeytipEvents.PERSISTED_KEYTIP_REMOVED = 'persistedKeytipRemoved'; KeytipEvents.PERSISTED_KEYTIP_EXECUTE = 'persistedKeytipExecute'; KeytipEvents.ENTER_KEYTIP_MODE = 'enterKeytipMode'; KeytipEvents.EXIT_KEYTIP_MODE = 'exitKeytipMode'; })(KeytipEvents = exports.KeytipEvents || (exports.KeytipEvents = {})); //# sourceMappingURL=KeytipConstants.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeytipManager = 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 KeytipConstants_1 = __webpack_require__(/*! ../../utilities/keytips/KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); /** * This class is responsible for handling registering, updating, and unregistering of keytips */ var KeytipManager = /** @class */ (function () { function KeytipManager() { this.keytips = {}; this.persistedKeytips = {}; this.sequenceMapping = {}; // This is (and should be) updated and kept in sync // with the inKeytipMode in KeytipLayer. this.inKeytipMode = false; // Boolean that gets checked before entering keytip mode by the KeytipLayer // Used for an override in special cases (e.g. Disable entering keytip mode when a modal is shown) this.shouldEnterKeytipMode = true; // Boolean to indicate whether to delay firing an event to update subscribers of // keytip data changed. this.delayUpdatingKeytipChange = false; } /** * Static function to get singleton KeytipManager instance * * @returns Singleton KeytipManager instance */ KeytipManager.getInstance = function () { return this._instance; }; /** * Initialization code to set set parameters to define * how the KeytipManager handles keytip data. * * @param delayUpdatingKeytipChange - T/F if we should delay notifiying keytip subscribers * of keytip changes */ KeytipManager.prototype.init = function (delayUpdatingKeytipChange) { this.delayUpdatingKeytipChange = delayUpdatingKeytipChange; }; /** * Registers a keytip * * @param keytipProps - Keytip to register * @param persisted - T/F if this keytip should be persisted, default is false * @returns Unique ID for this keytip */ KeytipManager.prototype.register = function (keytipProps, persisted) { if (persisted === void 0) { persisted = false; } var props = keytipProps; if (!persisted) { // Add the overflowSetSequence if necessary props = this.addParentOverflow(keytipProps); this.sequenceMapping[props.keySequences.toString()] = props; } // Create a unique keytip var uniqueKeytip = this._getUniqueKtp(props); // Add to dictionary persisted ? (this.persistedKeytips[uniqueKeytip.uniqueID] = uniqueKeytip) : (this.keytips[uniqueKeytip.uniqueID] = uniqueKeytip); // We only want to add something new if we are currently showing keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { var event_1 = persisted ? KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_ADDED : KeytipConstants_1.KeytipEvents.KEYTIP_ADDED; Utilities_1.EventGroup.raise(this, event_1, { keytip: props, uniqueID: uniqueKeytip.uniqueID, }); } return uniqueKeytip.uniqueID; }; /** * Update a keytip * * @param keytipProps - Keytip to update * @param uniqueID - Unique ID of this keytip */ KeytipManager.prototype.update = function (keytipProps, uniqueID) { var newKeytipProps = this.addParentOverflow(keytipProps); var uniqueKeytip = this._getUniqueKtp(newKeytipProps, uniqueID); var oldKeyTip = this.keytips[uniqueID]; if (oldKeyTip) { // Update everything except 'visible' uniqueKeytip.keytip.visible = oldKeyTip.keytip.visible; // Update keytip in this.keytips this.keytips[uniqueID] = uniqueKeytip; // Update the sequence to be up to date delete this.sequenceMapping[oldKeyTip.keytip.keySequences.toString()]; this.sequenceMapping[uniqueKeytip.keytip.keySequences.toString()] = uniqueKeytip.keytip; // Raise event only if we are currently in keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.KEYTIP_UPDATED, { keytip: uniqueKeytip.keytip, uniqueID: uniqueKeytip.uniqueID, }); } } }; /** * Unregisters a keytip * * @param keytipToRemove - IKeytipProps of the keytip to remove * @param uniqueID - Unique ID of this keytip * @param persisted - T/F if this keytip should be persisted, default is false */ KeytipManager.prototype.unregister = function (keytipToRemove, uniqueID, persisted) { if (persisted === void 0) { persisted = false; } persisted ? delete this.persistedKeytips[uniqueID] : delete this.keytips[uniqueID]; !persisted && delete this.sequenceMapping[keytipToRemove.keySequences.toString()]; var event = persisted ? KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_REMOVED : KeytipConstants_1.KeytipEvents.KEYTIP_REMOVED; // Update keytips only if we're in keytip mode if (this.inKeytipMode || !this.delayUpdatingKeytipChange) { Utilities_1.EventGroup.raise(this, event, { keytip: keytipToRemove, uniqueID: uniqueID, }); } }; /** * Manual call to enter keytip mode */ KeytipManager.prototype.enterKeytipMode = function () { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.ENTER_KEYTIP_MODE); }; /** * Manual call to exit keytip mode */ KeytipManager.prototype.exitKeytipMode = function () { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.EXIT_KEYTIP_MODE); }; /** * Gets all IKeytipProps from this.keytips * * @returns All keytips stored in the manager */ KeytipManager.prototype.getKeytips = function () { var _this = this; return Object.keys(this.keytips).map(function (key) { return _this.keytips[key].keytip; }); }; /** * Adds the overflowSetSequence to the keytipProps if its parent keytip also has it * * @param keytipProps - Keytip props to add overflowSetSequence to if necessary * @returns - Modified keytip props, if needed to be modified */ KeytipManager.prototype.addParentOverflow = function (keytipProps) { var fullSequence = tslib_1.__spreadArray([], keytipProps.keySequences, true); fullSequence.pop(); if (fullSequence.length !== 0) { var parentKeytip = this.sequenceMapping[fullSequence.toString()]; if (parentKeytip && parentKeytip.overflowSetSequence) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { overflowSetSequence: parentKeytip.overflowSetSequence }); } } return keytipProps; }; /** * Public function to bind for overflow items that have a submenu */ KeytipManager.prototype.menuExecute = function (overflowButtonSequences, keytipSequences) { Utilities_1.EventGroup.raise(this, KeytipConstants_1.KeytipEvents.PERSISTED_KEYTIP_EXECUTE, { overflowButtonSequences: overflowButtonSequences, keytipSequences: keytipSequences, }); }; /** * Creates an IUniqueKeytip object * * @param keytipProps - IKeytipProps * @param uniqueID - Unique ID, will default to the next unique ID if not passed * @returns IUniqueKeytip object */ KeytipManager.prototype._getUniqueKtp = function (keytipProps, uniqueID) { if (uniqueID === void 0) { uniqueID = (0, Utilities_1.getId)(); } return { keytip: tslib_1.__assign({}, keytipProps), uniqueID: uniqueID }; }; KeytipManager._instance = new KeytipManager(); return KeytipManager; }()); exports.KeytipManager = KeytipManager; //# sourceMappingURL=KeytipManager.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getAriaDescribedBy = exports.ktpTargetFromId = exports.ktpTargetFromSequences = exports.mergeOverflows = exports.sequencesToID = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var KeytipConstants_1 = __webpack_require__(/*! ./KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); /** * Converts a whole set of KeySequences into one keytip ID, which will be the ID for the last keytip sequence specified * keySequences should not include the initial keytip 'start' sequence. * * @param keySequences - Full path of IKeySequences for one keytip. * @returns String to use for the keytip ID. */ function sequencesToID(keySequences) { return keySequences.reduce(function (prevValue, keySequence) { return prevValue + KeytipConstants_1.KTP_SEPARATOR + keySequence.split('').join(KeytipConstants_1.KTP_SEPARATOR); }, KeytipConstants_1.KTP_PREFIX); } exports.sequencesToID = sequencesToID; /** * Merges an overflow sequence with a key sequence. * * @param keySequences - Full sequence for one keytip. * @param overflowKeySequences - Full overflow keytip sequence. * @returns Sequence that will be used by the keytip when in the overflow. */ function mergeOverflows(keySequences, overflowKeySequences) { var overflowSequenceLen = overflowKeySequences.length; var overflowSequence = tslib_1.__spreadArray([], overflowKeySequences, true).pop(); var newKeySequences = tslib_1.__spreadArray([], keySequences, true); return (0, Utilities_1.addElementAtIndex)(newKeySequences, overflowSequenceLen - 1, overflowSequence); } exports.mergeOverflows = mergeOverflows; /** * Constructs the data-ktp-target attribute selector from a full key sequence. * * @param keySequences - Full string[] for a Keytip. * @returns String selector to use to query for the keytip target. */ function ktpTargetFromSequences(keySequences) { return '[' + KeytipConstants_1.DATAKTP_TARGET + '="' + sequencesToID(keySequences) + '"]'; } exports.ktpTargetFromSequences = ktpTargetFromSequences; /** * Constructs the data-ktp-execute-target attribute selector from a keytip ID. * * @param keytipId - ID of the Keytip. * @returns String selector to use to query for the keytip execute target. */ function ktpTargetFromId(keytipId) { return '[' + KeytipConstants_1.DATAKTP_EXECUTE_TARGET + '="' + keytipId + '"]'; } exports.ktpTargetFromId = ktpTargetFromId; /** * Gets the aria-describedby value to put on the component with this keytip. * * @param keySequences - KeySequences of the keytip. * @returns The aria-describedby value to set on the component with this keytip. */ function getAriaDescribedBy(keySequences) { var describedby = ' ' + KeytipConstants_1.KTP_LAYER_ID; if (!keySequences.length) { // Return just the layer ID return describedby; } return describedby + ' ' + sequencesToID(keySequences); } exports.getAriaDescribedBy = getAriaDescribedBy; //# sourceMappingURL=KeytipUtils.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/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__(/*! ./IKeytipTransitionKey */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/IKeytipTransitionKey.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipConfig */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConfig.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipConstants */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipConstants.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipManager */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipManager.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./KeytipUtils */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/KeytipUtils.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.observeResize = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Wrapper for ResizeObserver, with fallback for browsers that don't support ResizeObserver. * * Calls the onResize callback once layout is complete, and again whenever any of the target(s) change size. * Or if ResizeObserver isn't supported, calls the callback whenever the window changes size. * * @param target - Either a single element, or array of elements to watch for size changes. * @param onResize - Callback to be notified when layout is complete, and when the target(s) change size. * If this browser supports ResizeObserver, the callback will be passed the ResizeObserverEntry[] array. * Otherwise, the entries array will be undefined, and you'll need to find another way to get the element's size, * (e.g. clientWidth/clientHeight or getBoundingClientRect). * * @returns A function to clean up the observer/listener. */ var observeResize = function (target, onResize) { if (typeof ResizeObserver !== 'undefined') { var observer_1 = new ResizeObserver(onResize); if (Array.isArray(target)) { target.forEach(function (t) { return observer_1.observe(t); }); } else { observer_1.observe(target); } return function () { return observer_1.disconnect(); }; } else { // Fallback for browsers that don't support ResizeObserver var onResizeWrapper_1 = function () { return onResize(undefined); }; var win_1 = (0, utilities_1.getWindow)(Array.isArray(target) ? target[0] : target); if (!win_1) { // Can't listen for resize if we can't get the window object return function () { // Nothing to clean up }; } // Listen for the first animation frame, which will happen after layout is complete var animationFrameId_1 = win_1.requestAnimationFrame(onResizeWrapper_1); win_1.addEventListener('resize', onResizeWrapper_1, false); return function () { win_1.cancelAnimationFrame(animationFrameId_1); win_1.removeEventListener('resize', onResizeWrapper_1, false); }; } }; exports.observeResize = observeResize; //# sourceMappingURL=observeResize.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.positionElement = exports.positionCard = exports.positionCallout = exports.getOppositeEdge = exports.getMaxHeight = exports.getBoundsFromTargetWindow = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var positioning_1 = __webpack_require__(/*! ./positioning */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js"); Object.defineProperty(exports, "getBoundsFromTargetWindow", ({ enumerable: true, get: function () { return positioning_1.getBoundsFromTargetWindow; } })); Object.defineProperty(exports, "getMaxHeight", ({ enumerable: true, get: function () { return positioning_1.getMaxHeight; } })); Object.defineProperty(exports, "getOppositeEdge", ({ enumerable: true, get: function () { return positioning_1.getOppositeEdge; } })); Object.defineProperty(exports, "positionCallout", ({ enumerable: true, get: function () { return positioning_1.positionCallout; } })); Object.defineProperty(exports, "positionCard", ({ enumerable: true, get: function () { return positioning_1.positionCard; } })); Object.defineProperty(exports, "positionElement", ({ enumerable: true, get: function () { return positioning_1.positionElement; } })); tslib_1.__exportStar(__webpack_require__(/*! ./positioning.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBoundsFromTargetWindow = exports.getOppositeEdge = exports.getMaxHeight = exports.positionCard = exports.positionCallout = exports.positionElement = exports.__positioningTestPackage = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); 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_types_1 = __webpack_require__(/*! ./positioning.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); function _createPositionData(targetEdge, alignmentEdge, isAuto) { return { targetEdge: targetEdge, alignmentEdge: alignmentEdge, isAuto: isAuto, }; } // Currently the beakPercent is set to 50 for all positions meaning that it should tend to the center of the target var DirectionalDictionary = (_a = {}, _a[DirectionalHint_1.DirectionalHint.topLeftEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.topCenter] = _createPositionData(positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.topRightEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.topAutoEdge] = _createPositionData(positioning_types_1.RectangleEdge.top, undefined, true), _a[DirectionalHint_1.DirectionalHint.bottomLeftEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.bottomCenter] = _createPositionData(positioning_types_1.RectangleEdge.bottom), _a[DirectionalHint_1.DirectionalHint.bottomRightEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.bottomAutoEdge] = _createPositionData(positioning_types_1.RectangleEdge.bottom, undefined, true), _a[DirectionalHint_1.DirectionalHint.leftTopEdge] = _createPositionData(positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.leftCenter] = _createPositionData(positioning_types_1.RectangleEdge.left), _a[DirectionalHint_1.DirectionalHint.leftBottomEdge] = _createPositionData(positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.bottom), _a[DirectionalHint_1.DirectionalHint.rightTopEdge] = _createPositionData(positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.top), _a[DirectionalHint_1.DirectionalHint.rightCenter] = _createPositionData(positioning_types_1.RectangleEdge.right), _a[DirectionalHint_1.DirectionalHint.rightBottomEdge] = _createPositionData(positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.bottom), _a); function _isRectangleWithinBounds(rect, boundingRect) { if (rect.top < boundingRect.top) { return false; } if (rect.bottom > boundingRect.bottom) { return false; } if (rect.left < boundingRect.left) { return false; } if (rect.right > boundingRect.right) { return false; } return true; } /** * Gets all of the edges of a rectangle that are outside of the given bounds. * If there are no out of bounds edges it returns an empty array. */ function _getOutOfBoundsEdges(rect, boundingRect) { var outOfBounds = []; if (rect.top < boundingRect.top) { outOfBounds.push(positioning_types_1.RectangleEdge.top); } if (rect.bottom > boundingRect.bottom) { outOfBounds.push(positioning_types_1.RectangleEdge.bottom); } if (rect.left < boundingRect.left) { outOfBounds.push(positioning_types_1.RectangleEdge.left); } if (rect.right > boundingRect.right) { outOfBounds.push(positioning_types_1.RectangleEdge.right); } return outOfBounds; } function _getEdgeValue(rect, edge) { return rect[positioning_types_1.RectangleEdge[edge]]; } function _setEdgeValue(rect, edge, value) { rect[positioning_types_1.RectangleEdge[edge]] = value; return rect; } /** * Returns the middle value of an edge. Only returns 1 value rather than xy coordinates as * the itself already contains the other coordinate. * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x. */ function _getCenterValue(rect, edge) { var edges = _getFlankingEdges(edge); return (_getEdgeValue(rect, edges.positiveEdge) + _getEdgeValue(rect, edges.negativeEdge)) / 2; } /** * Flips the value depending on the edge. * If the edge is a "positive" edge, Top or Left, then the value should stay as it is. * If the edge is a "negative" edge, Bottom or Right, then the value should be flipped. * This is to account for the fact that the coordinates are effectively reserved in certain cases for the * "negative" edges. * * For example, when testing to see if a bottom edge 1 is within the bounds of another bottom edge 2: * If edge 1 is greater than edge 2 then it is out of bounds. This is reversed for top edge 1 and top edge 2. * If top edge 1 is less than edge 2 then it is out of bounds. */ function _getRelativeEdgeValue(edge, value) { if (edge > 0) { return value; } else { return value * -1; } } function _getRelativeRectEdgeValue(edge, rect) { return _getRelativeEdgeValue(edge, _getEdgeValue(rect, edge)); } function _getRelativeEdgeDifference(rect, hostRect, edge) { var edgeDifference = _getEdgeValue(rect, edge) - _getEdgeValue(hostRect, edge); return _getRelativeEdgeValue(edge, edgeDifference); } /** * Moves the edge of a rectangle to the value given. It only moves the edge in a linear direction based on that edge. * For example, if it's a bottom edge it will only change y coordinates. * if maintainSize is set to false, it will only adjust the specified edge value */ function _moveEdge(rect, edge, newValue, maintainSize) { if (maintainSize === void 0) { maintainSize = true; } var difference = _getEdgeValue(rect, edge) - newValue; var returnRect = _setEdgeValue(rect, edge, newValue); if (maintainSize) { returnRect = _setEdgeValue(rect, edge * -1, _getEdgeValue(rect, edge * -1) - difference); } return returnRect; } /** * Aligns the edge on the passed in rect to the target. If there is a gap then it will have that space between the two. */ function _alignEdges(rect, target, edge, gap) { if (gap === void 0) { gap = 0; } return _moveEdge(rect, edge, _getEdgeValue(target, edge) + _getRelativeEdgeValue(edge, gap)); } /** * Aligns the targetEdge on the passed in target to the rects corresponding opposite edge. * For instance if targetEdge is bottom, then the rects top will be moved to match it. */ function _alignOppositeEdges(rect, target, targetEdge, gap) { if (gap === void 0) { gap = 0; } var oppositeEdge = targetEdge * -1; var adjustedGap = _getRelativeEdgeValue(oppositeEdge, gap); return _moveEdge(rect, targetEdge * -1, _getEdgeValue(target, targetEdge) + adjustedGap); } /** * Tests to see if the given edge is within the bounds of the given rectangle. */ function _isEdgeInBounds(rect, bounds, edge) { var adjustedRectValue = _getRelativeRectEdgeValue(edge, rect); return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds); } /** * Returns a measure of how much a rectangle is out of bounds for a given alignment; * this can be used to compare which rectangle is more or less out of bounds. * A value of 0 means the rectangle is entirely in bounds */ function _getOutOfBoundsDegree(rect, bounds) { var breakingEdges = _getOutOfBoundsEdges(rect, bounds); var total = 0; for (var _i = 0, breakingEdges_1 = breakingEdges; _i < breakingEdges_1.length; _i++) { var edge = breakingEdges_1[_i]; total += Math.pow(_getRelativeEdgeDifference(rect, bounds, edge), 2); } return total; } /** * Attempts to move the rectangle through various sides of the target to find a place to fit. * If no fit is found, the least bad option should be returned. */ function _flipToFit(rect, target, bounding, positionData, gap) { if (gap === void 0) { gap = 0; } var directions = [ positioning_types_1.RectangleEdge.left, positioning_types_1.RectangleEdge.right, positioning_types_1.RectangleEdge.bottom, positioning_types_1.RectangleEdge.top, ]; // In RTL page, RectangleEdge.right has a higher priority than RectangleEdge.left, so the order should be updated. if ((0, Utilities_1.getRTL)()) { directions[0] *= -1; directions[1] *= -1; } var currentEstimate = rect; var currentEdge = positionData.targetEdge; var currentAlignment = positionData.alignmentEdge; // keep track of least bad option, in case no sides fit var oobDegree; var bestEdge = currentEdge; var bestAlignment = currentAlignment; // Keep switching sides until one is found with enough space. // If all sides don't fit then return the unmodified element. for (var i = 0; i < 4; i++) { if (!_isEdgeInBounds(currentEstimate, bounding, currentEdge)) { // update least-bad edges var currentOOBDegree = _getOutOfBoundsDegree(currentEstimate, bounding); if (!oobDegree || currentOOBDegree < oobDegree) { oobDegree = currentOOBDegree; bestEdge = currentEdge; bestAlignment = currentAlignment; } directions.splice(directions.indexOf(currentEdge), 1); if (directions.length > 0) { if (directions.indexOf(currentEdge * -1) > -1) { currentEdge = currentEdge * -1; } else { currentAlignment = currentEdge; currentEdge = directions.slice(-1)[0]; } currentEstimate = _estimatePosition(rect, target, { targetEdge: currentEdge, alignmentEdge: currentAlignment }, gap); } } else { return { elementRectangle: currentEstimate, targetEdge: currentEdge, alignmentEdge: currentAlignment, }; } } // nothing fits, use least-bad option currentEstimate = _estimatePosition(rect, target, { targetEdge: bestEdge, alignmentEdge: bestAlignment }, gap); return { elementRectangle: currentEstimate, targetEdge: bestEdge, alignmentEdge: bestAlignment, }; } /** * Flips only the alignment edge of an element rectangle. This is used instead of nudging the alignment edges * into position, when `alignTargetEdge` is specified. */ function _flipAlignmentEdge(elementEstimate, target, gap, coverTarget) { var alignmentEdge = elementEstimate.alignmentEdge, targetEdge = elementEstimate.targetEdge, elementRectangle = elementEstimate.elementRectangle; var oppositeEdge = alignmentEdge * -1; var newEstimate = _estimatePosition(elementRectangle, target, { targetEdge: targetEdge, alignmentEdge: oppositeEdge }, gap, coverTarget); return { elementRectangle: newEstimate, targetEdge: targetEdge, alignmentEdge: oppositeEdge, }; } /** * Adjusts a element rectangle to fit within the bounds given. If directionalHintFixed or covertarget is passed in * then the element will not flip sides on the target. They will, however, be nudged to fit within the bounds given. */ function _adjustFitWithinBounds(element, target, bounding, positionData, gap, directionalHintFixed, coverTarget) { if (gap === void 0) { gap = 0; } var alignmentEdge = positionData.alignmentEdge, alignTargetEdge = positionData.alignTargetEdge; var elementEstimate = { elementRectangle: element, targetEdge: positionData.targetEdge, alignmentEdge: alignmentEdge, }; if (!directionalHintFixed && !coverTarget) { elementEstimate = _flipToFit(element, target, bounding, positionData, gap); } var outOfBounds = _getOutOfBoundsEdges(elementEstimate.elementRectangle, bounding); // if directionalHintFixed is specified, we need to force the target edge to not change // we need *-1 because targetEdge refers to the target's edge; the callout edge is the opposite var fixedEdge = directionalHintFixed ? -elementEstimate.targetEdge : undefined; if (outOfBounds.length > 0) { if (alignTargetEdge) { // The edge opposite to the alignment edge might be out of bounds. // Flip alignment to see if we can get it within bounds. if (elementEstimate.alignmentEdge && outOfBounds.indexOf(elementEstimate.alignmentEdge * -1) > -1) { var flippedElementEstimate = _flipAlignmentEdge(elementEstimate, target, gap, coverTarget); if (_isRectangleWithinBounds(flippedElementEstimate.elementRectangle, bounding)) { return flippedElementEstimate; } else { // If the flipped elements edges are still out of bounds, try nudging it. elementEstimate = _alignOutOfBoundsEdges(_getOutOfBoundsEdges(flippedElementEstimate.elementRectangle, bounding), elementEstimate, bounding, fixedEdge); } } else { elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge); } } else { elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge); } } return elementEstimate; } /** * Iterates through a list of out of bounds edges and tries to nudge and align them. * @param outOfBoundsEdges - Array of edges that are out of bounds * @param elementEstimate - The current element positioning estimate * @param bounding - The current bounds * @param preserveEdge - Specify an edge that should not be modified */ function _alignOutOfBoundsEdges(outOfBoundsEdges, elementEstimate, bounding, preserveEdge) { for (var _i = 0, outOfBoundsEdges_1 = outOfBoundsEdges; _i < outOfBoundsEdges_1.length; _i++) { var direction = outOfBoundsEdges_1[_i]; var edgeAttempt = void 0; // if preserveEdge is specified, do not call _alignEdges, skip directly to _moveEdge // this is because _alignEdges will move the opposite edge if (preserveEdge && preserveEdge === direction * -1) { edgeAttempt = _moveEdge(elementEstimate.elementRectangle, direction, _getEdgeValue(bounding, direction), false); elementEstimate.forcedInBounds = true; } else { edgeAttempt = _alignEdges(elementEstimate.elementRectangle, bounding, direction); var inBounds = _isEdgeInBounds(edgeAttempt, bounding, direction * -1); // only update estimate if the attempt didn't break out of the opposite bounding edge if (!inBounds) { edgeAttempt = _moveEdge(edgeAttempt, direction * -1, _getEdgeValue(bounding, direction * -1), false); elementEstimate.forcedInBounds = true; } } elementEstimate.elementRectangle = edgeAttempt; } return elementEstimate; } /** * Moves the middle point on an edge to the point given. * Only moves in one direction. For instance if a bottom edge is passed in, then * the bottom edge will be moved in the x axis to match the point. */ function _centerEdgeToPoint(rect, edge, point) { var positiveEdge = _getFlankingEdges(edge).positiveEdge; var elementMiddle = _getCenterValue(rect, edge); var distanceToMiddle = elementMiddle - _getEdgeValue(rect, positiveEdge); return _moveEdge(rect, positiveEdge, point - distanceToMiddle); } /** * Moves the element rectangle to be appropriately positioned relative to a given target. * Does not flip or adjust the element. */ function _estimatePosition(elementToPosition, target, positionData, gap, coverTarget) { if (gap === void 0) { gap = 0; } var estimatedElementPosition = new Utilities_2.Rectangle(elementToPosition.left, elementToPosition.right, elementToPosition.top, elementToPosition.bottom); var alignmentEdge = positionData.alignmentEdge, targetEdge = positionData.targetEdge; var elementEdge = coverTarget ? targetEdge : targetEdge * -1; estimatedElementPosition = coverTarget ? _alignEdges(estimatedElementPosition, target, targetEdge, gap) : _alignOppositeEdges(estimatedElementPosition, target, targetEdge, gap); // if no alignment edge is provided it's supposed to be centered. if (!alignmentEdge) { var targetMiddlePoint = _getCenterValue(target, targetEdge); estimatedElementPosition = _centerEdgeToPoint(estimatedElementPosition, elementEdge, targetMiddlePoint); } else { estimatedElementPosition = _alignEdges(estimatedElementPosition, target, alignmentEdge); } return estimatedElementPosition; } /** * Returns the non-opposite edges of the target edge. * For instance if bottom is passed in then left and right will be returned. */ function _getFlankingEdges(edge) { if (edge === positioning_types_1.RectangleEdge.top || edge === positioning_types_1.RectangleEdge.bottom) { return { positiveEdge: positioning_types_1.RectangleEdge.left, negativeEdge: positioning_types_1.RectangleEdge.right, }; } else { return { positiveEdge: positioning_types_1.RectangleEdge.top, negativeEdge: positioning_types_1.RectangleEdge.bottom, }; } } /** * Retrieve the final value for the return edge of `elementRectangle`. If the `elementRectangle` is closer to one side * of the bounds versus the other, the return edge is flipped to grow inward. */ function _finalizeReturnEdge(elementRectangle, returnEdge, bounds) { if (bounds && Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge)) > Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge * -1))) { return returnEdge * -1; } return returnEdge; } /** * Whether or not the considered edge of the elementRectangle is lying on the edge of the bounds * @param elementRectangle The rectangle whose edge we are considering * @param bounds The rectangle marking the bounds * @param edge The target edge we're considering * @returns If the target edge of the elementRectangle is in the same location as that edge of the bounds */ function _isEdgeOnBounds(elementRectangle, edge, bounds) { return bounds !== undefined && _getEdgeValue(elementRectangle, edge) === _getEdgeValue(bounds, edge); } /** * Finalizes the element position based on the hostElement. Only returns the * rectangle values to position such that they are anchored to the target. * This helps prevent resizing from looking very strange. * For instance, if the target edge is top and aligned with the left side then * the bottom and left values are returned so as the Callout shrinks it shrinks towards that corner. */ function _finalizeElementPosition(elementRectangle, hostElement, targetEdge, bounds, alignmentEdge, coverTarget, doNotFinalizeReturnEdge, forceWithinBounds) { var returnValue = {}; var hostRect = _getRectangleFromElement(hostElement); var elementEdge = coverTarget ? targetEdge : targetEdge * -1; var returnEdge = alignmentEdge ? alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge; // If we are finalizing the return edge, choose the edge such that we grow away from the bounds // If we are not finalizing the return edge but the opposite edge is flush against the bounds, // choose that as the anchor edge so the element rect can grow away from the bounds' edge // In this case there will not be a visual difference because there is no more room for the elementRectangle to grow // in the usual direction if (!doNotFinalizeReturnEdge || _isEdgeOnBounds(elementRectangle, getOppositeEdge(returnEdge), bounds)) { returnEdge = _finalizeReturnEdge(elementRectangle, returnEdge, bounds); } returnValue[positioning_types_1.RectangleEdge[elementEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge); returnValue[positioning_types_1.RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge); // if the positioned element will still overflow, return all four edges with in-bounds values if (forceWithinBounds) { returnValue[positioning_types_1.RectangleEdge[elementEdge * -1]] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge * -1); returnValue[positioning_types_1.RectangleEdge[returnEdge * -1]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge * -1); } return returnValue; } // Since the beak is rotated 45 degrees the actual height/width is the length of the diagonal. // We still want to position the beak based on it's midpoint which does not change. It will // be at (beakwidth / 2, beakwidth / 2) function _calculateActualBeakWidthInPixels(beakWidth) { return Math.sqrt(beakWidth * beakWidth * 2); } /** * Returns the appropriate IPositionData based on the props altered for RTL. * If directionalHintForRTL is passed in that is used if the page is RTL. * If directionalHint is specified, no directionalHintForRTL is available, and the page is RTL, the hint will be * flipped (e.g. bottomLeftEdge would become bottomRightEdge). * * If there is no directionalHint passed in, bottomAutoEdge is chosen automatically. */ function _getPositionData(directionalHint, directionalHintForRTL, previousPositions) { if (directionalHint === void 0) { directionalHint = DirectionalHint_1.DirectionalHint.bottomAutoEdge; } if (previousPositions) { return { alignmentEdge: previousPositions.alignmentEdge, isAuto: previousPositions.isAuto, targetEdge: previousPositions.targetEdge, }; } var positionInformation = tslib_1.__assign({}, DirectionalDictionary[directionalHint]); if ((0, Utilities_1.getRTL)()) { // If alignment edge exists and that alignment edge is -2 or 2, right or left, then flip it. if (positionInformation.alignmentEdge && positionInformation.alignmentEdge % 2 === 0) { positionInformation.alignmentEdge = positionInformation.alignmentEdge * -1; } return directionalHintForRTL !== undefined ? DirectionalDictionary[directionalHintForRTL] : positionInformation; } return positionInformation; } /** * Gets the alignment data for the given information. This only really matters if the positioning is Auto. * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to * the center of the page. */ function _getAlignmentData(positionData, target, boundingRect, coverTarget, alignTargetEdge) { if (positionData.isAuto) { positionData.alignmentEdge = getClosestEdge(positionData.targetEdge, target, boundingRect); } positionData.alignTargetEdge = alignTargetEdge; return positionData; } function getClosestEdge(targetEdge, target, boundingRect) { var targetCenter = _getCenterValue(target, targetEdge); var boundingCenter = _getCenterValue(boundingRect, targetEdge); var _a = _getFlankingEdges(targetEdge), positiveEdge = _a.positiveEdge, negativeEdge = _a.negativeEdge; if (targetCenter <= boundingCenter) { return positiveEdge; } else { return negativeEdge; } } function _positionElementWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget) { var estimatedElementPosition = _estimatePosition(elementToPosition, target, positionData, gap, coverTarget); if (_isRectangleWithinBounds(estimatedElementPosition, bounding)) { return { elementRectangle: estimatedElementPosition, targetEdge: positionData.targetEdge, alignmentEdge: positionData.alignmentEdge, }; } else { return _adjustFitWithinBounds(estimatedElementPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget); } } function _finalizeBeakPosition(elementPosition, positionedBeak, bounds) { var targetEdge = elementPosition.targetEdge * -1; // The "host" element that we will use to help position the beak. var actualElement = new Utilities_2.Rectangle(0, elementPosition.elementRectangle.width, 0, elementPosition.elementRectangle.height); var returnValue = {}; var returnEdge = _finalizeReturnEdge(elementPosition.elementRectangle, elementPosition.alignmentEdge ? elementPosition.alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge, bounds); // only show the beak if the callout is not fully covering the target var beakEdgeDifference = _getRelativeEdgeDifference(elementPosition.elementRectangle, elementPosition.targetRectangle, targetEdge); var showBeak = beakEdgeDifference > Math.abs(_getEdgeValue(positionedBeak, targetEdge)); returnValue[positioning_types_1.RectangleEdge[targetEdge]] = _getEdgeValue(positionedBeak, targetEdge); returnValue[positioning_types_1.RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(positionedBeak, actualElement, returnEdge); return { elementPosition: tslib_1.__assign({}, returnValue), closestEdge: getClosestEdge(elementPosition.targetEdge, positionedBeak, actualElement), targetEdge: targetEdge, hideBeak: !showBeak, }; } function _positionBeak(beakWidth, elementPosition) { var target = elementPosition.targetRectangle; /** * Note about beak positioning: The actual beak width only matters for getting the gap between the callout and * target, it does not impact the beak placement within the callout. For example example, if the beakWidth is 8, * then the actual beakWidth is sqrroot(8^2 + 8^2) = 11.31x11.31. So the callout will need to be an extra 3 pixels * away from its target. While the beak is being positioned in the callout it still acts as though it were 8x8. */ var _a = _getFlankingEdges(elementPosition.targetEdge), positiveEdge = _a.positiveEdge, negativeEdge = _a.negativeEdge; var beakTargetPoint = _getCenterValue(target, elementPosition.targetEdge); var elementBounds = new Utilities_2.Rectangle(beakWidth / 2, elementPosition.elementRectangle.width - beakWidth / 2, beakWidth / 2, elementPosition.elementRectangle.height - beakWidth / 2); var beakPosition = new Utilities_2.Rectangle(0, beakWidth, 0, beakWidth); beakPosition = _moveEdge(beakPosition, elementPosition.targetEdge * -1, -beakWidth / 2); beakPosition = _centerEdgeToPoint(beakPosition, elementPosition.targetEdge * -1, beakTargetPoint - _getRelativeRectEdgeValue(positiveEdge, elementPosition.elementRectangle)); if (!_isEdgeInBounds(beakPosition, elementBounds, positiveEdge)) { beakPosition = _alignEdges(beakPosition, elementBounds, positiveEdge); } else if (!_isEdgeInBounds(beakPosition, elementBounds, negativeEdge)) { beakPosition = _alignEdges(beakPosition, elementBounds, negativeEdge); } return beakPosition; } function _getRectangleFromElement(element) { // eslint-disable-next-line deprecation/deprecation var clientRect = element.getBoundingClientRect(); return new Utilities_2.Rectangle(clientRect.left, clientRect.right, clientRect.top, clientRect.bottom); } function _getRectangleFromIRect(rect) { return new Utilities_2.Rectangle(rect.left, rect.right, rect.top, rect.bottom); } function _getTargetRect(bounds, target) { var targetRectangle; if (target) { // eslint-disable-next-line no-extra-boolean-cast if (!!target.preventDefault) { var ev = target; targetRectangle = new Utilities_2.Rectangle(ev.clientX, ev.clientX, ev.clientY, ev.clientY); // eslint-disable-next-line no-extra-boolean-cast } else if (!!target.getBoundingClientRect) { targetRectangle = _getRectangleFromElement(target); // HTMLImgElements can have x and y values. The check for it being a point must go last. } else { var rectOrPoint = target; // eslint-disable-next-line deprecation/deprecation var left = rectOrPoint.left || rectOrPoint.x; // eslint-disable-next-line deprecation/deprecation var top_1 = rectOrPoint.top || rectOrPoint.y; var right = rectOrPoint.right || left; var bottom = rectOrPoint.bottom || top_1; targetRectangle = new Utilities_2.Rectangle(left, right, top_1, bottom); } if (!_isRectangleWithinBounds(targetRectangle, bounds)) { var outOfBounds = _getOutOfBoundsEdges(targetRectangle, bounds); for (var _i = 0, outOfBounds_1 = outOfBounds; _i < outOfBounds_1.length; _i++) { var direction = outOfBounds_1[_i]; targetRectangle[positioning_types_1.RectangleEdge[direction]] = bounds[positioning_types_1.RectangleEdge[direction]]; } } } else { targetRectangle = new Utilities_2.Rectangle(0, 0, 0, 0); } return targetRectangle; } /** * If max height is less than zero it returns the bounds height instead. */ function _getMaxHeightFromTargetRectangle(targetRectangle, targetEdge, gapSpace, bounds, coverTarget) { var maxHeight = 0; var directionalHint = DirectionalDictionary[targetEdge]; // If cover target is set, then the max height should be calculated using the opposite of the target edge since // that's the direction that the callout will expand in. // For instance, if the directionalhint is bottomLeftEdge then the callout will position so it's bottom edge // is aligned with the bottom of the target and expand up towards the top of the screen and the calculated max height // is (bottom of target) - (top of screen) - gapSpace. var target = coverTarget ? directionalHint.targetEdge * -1 : directionalHint.targetEdge; if (target === positioning_types_1.RectangleEdge.top) { maxHeight = _getEdgeValue(targetRectangle, directionalHint.targetEdge) - bounds.top - gapSpace; } else if (target === positioning_types_1.RectangleEdge.bottom) { maxHeight = bounds.bottom - _getEdgeValue(targetRectangle, directionalHint.targetEdge) - gapSpace; } else { maxHeight = bounds.bottom - targetRectangle.top - gapSpace; } return maxHeight > 0 ? maxHeight : bounds.height; } function _positionElementRelative(props, elementToPosition, boundingRect, previousPositions) { var gap = props.gapSpace ? props.gapSpace : 0; var targetRect = _getTargetRect(boundingRect, props.target); var positionData = _getAlignmentData(_getPositionData(props.directionalHint, props.directionalHintForRTL, previousPositions), targetRect, boundingRect, props.coverTarget, props.alignTargetEdge); var positionedElement = _positionElementWithinBounds(_getRectangleFromElement(elementToPosition), targetRect, boundingRect, positionData, gap, props.directionalHintFixed, props.coverTarget); return tslib_1.__assign(tslib_1.__assign({}, positionedElement), { targetRectangle: targetRect }); } function _finalizePositionData(positionedElement, hostElement, bounds, coverTarget, doNotFinalizeReturnEdge) { var finalizedElement = _finalizeElementPosition(positionedElement.elementRectangle, hostElement, positionedElement.targetEdge, bounds, positionedElement.alignmentEdge, coverTarget, doNotFinalizeReturnEdge, positionedElement.forcedInBounds); return { elementPosition: finalizedElement, targetEdge: positionedElement.targetEdge, alignmentEdge: positionedElement.alignmentEdge, }; } function _positionElement(props, hostElement, elementToPosition, previousPositions) { var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); var positionedElement = _positionElementRelative(props, elementToPosition, boundingRect, previousPositions); return _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget); } function _positionCallout(props, hostElement, callout, previousPositions, doNotFinalizeReturnEdge) { var beakWidth = props.isBeakVisible ? props.beakWidth || 0 : 0; var gap = _calculateActualBeakWidthInPixels(beakWidth) / 2 + (props.gapSpace ? props.gapSpace : 0); var positionProps = props; positionProps.gapSpace = gap; var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); var positionedElement = _positionElementRelative(positionProps, callout, boundingRect, previousPositions); var beakPositioned = _positionBeak(beakWidth, positionedElement); var finalizedBeakPosition = _finalizeBeakPosition(positionedElement, beakPositioned, boundingRect); return tslib_1.__assign(tslib_1.__assign({}, _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget, doNotFinalizeReturnEdge)), { beakPosition: finalizedBeakPosition }); } function _positionCard(props, hostElement, callout, previousPositions) { return _positionCallout(props, hostElement, callout, previousPositions, true); } // END PRIVATE FUNCTIONS exports.__positioningTestPackage = { _finalizePositionData: _finalizePositionData, _finalizeBeakPosition: _finalizeBeakPosition, _calculateActualBeakWidthInPixels: _calculateActualBeakWidthInPixels, _positionElementWithinBounds: _positionElementWithinBounds, _positionBeak: _positionBeak, _getPositionData: _getPositionData, _getMaxHeightFromTargetRectangle: _getMaxHeightFromTargetRectangle, }; /** * Used to position an element relative to the given positioning props. * If positioning has been completed before, previousPositions can be passed to ensure that the positioning element * repositions based on its previous targets rather than starting with directionalhint. */ function positionElement(props, hostElement, elementToPosition, previousPositions) { return _positionElement(props, hostElement, elementToPosition, previousPositions); } exports.positionElement = positionElement; function positionCallout(props, hostElement, elementToPosition, previousPositions) { return _positionCallout(props, hostElement, elementToPosition, previousPositions); } exports.positionCallout = positionCallout; function positionCard(props, hostElement, elementToPosition, previousPositions) { return _positionCard(props, hostElement, elementToPosition, previousPositions); } exports.positionCard = positionCard; /** * Gets the maximum height that a rectangle can have in order to fit below or above a target. * If the directional hint specifies a left or right edge (i.e. leftCenter) it will limit the height to the topBorder * of the target given. * If no bounds are provided then the window is treated as the bounds. */ function getMaxHeight(target, targetEdge, gapSpace, bounds, coverTarget) { if (gapSpace === void 0) { gapSpace = 0; } var mouseTarget = target; var elementTarget = target; var rectOrPointTarget = target; var targetRect; var boundingRectangle = bounds ? _getRectangleFromIRect(bounds) : new Utilities_2.Rectangle(0, window.innerWidth - (0, Utilities_1.getScrollbarWidth)(), 0, window.innerHeight); // eslint-disable-next-line deprecation/deprecation var left = rectOrPointTarget.left || rectOrPointTarget.x; // eslint-disable-next-line deprecation/deprecation var top = rectOrPointTarget.top || rectOrPointTarget.y; var right = rectOrPointTarget.right || left; var bottom = rectOrPointTarget.bottom || top; // eslint-disable-next-line no-extra-boolean-cast -- may not actually be a MouseEvent if (!!mouseTarget.stopPropagation) { targetRect = new Utilities_2.Rectangle(mouseTarget.clientX, mouseTarget.clientX, mouseTarget.clientY, mouseTarget.clientY); } else if (left !== undefined && top !== undefined) { targetRect = new Utilities_2.Rectangle(left, right, top, bottom); } else { targetRect = _getRectangleFromElement(elementTarget); } return _getMaxHeightFromTargetRectangle(targetRect, targetEdge, gapSpace, boundingRectangle, coverTarget); } exports.getMaxHeight = getMaxHeight; /** * Returns the opposite edge of the given RectangleEdge. */ function getOppositeEdge(edge) { return edge * -1; } exports.getOppositeEdge = getOppositeEdge; function _getBoundsFromTargetWindow(target, targetWindow) { var segments = undefined; if (targetWindow.getWindowSegments) { segments = targetWindow.getWindowSegments(); } // Identify if we're dealing with single screen scenarios. if (segments === undefined || segments.length <= 1) { return { top: 0, left: 0, right: targetWindow.innerWidth, bottom: targetWindow.innerHeight, width: targetWindow.innerWidth, height: targetWindow.innerHeight, }; } // Logic for determining dual screen scenarios. var x = 0; var y = 0; // If the target is an Element get coordinates for its center. if (target !== null && !!target.getBoundingClientRect) { var clientRect = target.getBoundingClientRect(); x = (clientRect.left + clientRect.right) / 2; y = (clientRect.top + clientRect.bottom) / 2; } // If the target is not null get x-axis and y-axis coordinates directly. else if (target !== null) { // eslint-disable-next-line deprecation/deprecation x = target.left || target.x; // eslint-disable-next-line deprecation/deprecation y = target.top || target.y; } var bounds = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }; // Define which window segment are the coordinates in and calculate bounds based on that. for (var _i = 0, segments_1 = segments; _i < segments_1.length; _i++) { var segment = segments_1[_i]; if (x && segment.left <= x && segment.right >= x && y && segment.top <= y && segment.bottom >= y) { bounds = { top: segment.top, left: segment.left, right: segment.right, bottom: segment.bottom, width: segment.width, height: segment.height, }; } } return bounds; } function getBoundsFromTargetWindow(target, targetWindow) { return _getBoundsFromTargetWindow(target, targetWindow); } exports.getBoundsFromTargetWindow = getBoundsFromTargetWindow; //# sourceMappingURL=positioning.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/positioning.types.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Position = exports.RectangleEdge = void 0; var RectangleEdge; (function (RectangleEdge) { RectangleEdge[RectangleEdge["top"] = 1] = "top"; RectangleEdge[RectangleEdge["bottom"] = -1] = "bottom"; RectangleEdge[RectangleEdge["left"] = 2] = "left"; RectangleEdge[RectangleEdge["right"] = -2] = "right"; })(RectangleEdge = exports.RectangleEdge || (exports.RectangleEdge = {})); var Position; (function (Position) { Position[Position["top"] = 0] = "top"; Position[Position["bottom"] = 1] = "bottom"; Position[Position["start"] = 2] = "start"; Position[Position["end"] = 3] = "end"; })(Position = exports.Position || (exports.Position = {})); //# sourceMappingURL=positioning.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=SelectableDroppableText.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getAllSelectedOptions = void 0; function getAllSelectedOptions(options, selectedIndices) { var selectedOptions = []; for (var _i = 0, selectedIndices_1 = selectedIndices; _i < selectedIndices_1.length; _i++) { var index = selectedIndices_1[_i]; var option = options[index]; if (option) { selectedOptions.push(option); } } return selectedOptions; } exports.getAllSelectedOptions = getAllSelectedOptions; //# sourceMappingURL=SelectableOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectableOptionMenuItemType = void 0; var SelectableOptionMenuItemType; (function (SelectableOptionMenuItemType) { SelectableOptionMenuItemType[SelectableOptionMenuItemType["Normal"] = 0] = "Normal"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["Divider"] = 1] = "Divider"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["Header"] = 2] = "Header"; SelectableOptionMenuItemType[SelectableOptionMenuItemType["SelectAll"] = 3] = "SelectAll"; })(SelectableOptionMenuItemType = exports.SelectableOptionMenuItemType || (exports.SelectableOptionMenuItemType = {})); //# sourceMappingURL=SelectableOption.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/index.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/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__(/*! ./SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectableOption.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableOption.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectableDroppableText.types */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/SelectableDroppableText.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return utilities_1.Selection; } })); //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionZone = 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 interfaces_1 = __webpack_require__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js"); // Selection definitions: // // Anchor index: the point from which a range selection starts. // Focus index: the point from which layout movement originates from. // // These two can differ. Tests: // // If you start at index 5 // Shift click to index 10 // The focus is 10, the anchor is 5. // If you shift click at index 0 // The anchor remains at 5, the items between 0 and 5 are selected and everything else is cleared. // If you click index 8 // The anchor and focus are set to 8. var SELECTION_DISABLED_ATTRIBUTE_NAME = 'data-selection-disabled'; var SELECTION_INDEX_ATTRIBUTE_NAME = 'data-selection-index'; var SELECTION_SPAN_ATTRIBUTE_NAME = 'data-selection-span'; var SELECTION_TOGGLE_ATTRIBUTE_NAME = 'data-selection-toggle'; var SELECTION_INVOKE_ATTRIBUTE_NAME = 'data-selection-invoke'; var SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME = 'data-selection-touch-invoke'; var SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME = 'data-selection-all-toggle'; var SELECTION_SELECT_ATTRIBUTE_NAME = 'data-selection-select'; /** * {@docCategory Selection} */ var SelectionZone = /** @class */ (function (_super) { tslib_1.__extends(SelectionZone, _super); function SelectionZone(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); /** * In some cases, the consuming scenario requires to set focus on a row without having SelectionZone * react to the event. Note that focus events in IE \<= 11 will occur asynchronously after .focus() has * been called on an element, so we need a flag to store the idea that we will bypass the "next" * focus event that occurs. This method does that. */ _this.ignoreNextFocus = function () { _this._handleNextFocus(false); }; _this._onSelectionChange = function () { var selection = _this.props.selection; var isModal = selection.isModal && selection.isModal(); _this.setState({ isModal: isModal, }); }; _this._onMouseDownCapture = function (ev) { var target = ev.target; if (document.activeElement !== target && !(0, Utilities_1.elementContains)(document.activeElement, target)) { _this.ignoreNextFocus(); return; } if (!(0, Utilities_1.elementContains)(target, _this._root.current)) { return; } while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { _this.ignoreNextFocus(); break; } target = (0, Utilities_1.getParent)(target); } }; /** * When we focus an item, for single/multi select scenarios, we should try to select it immediately * as long as the focus did not originate from a mouse down/touch event. For those cases, we handle them * specially. */ _this._onFocus = function (ev) { var target = ev.target; var selection = _this.props.selection; var isToggleModifierPressed = _this._isCtrlPressed || _this._isMetaPressed; var selectionMode = _this._getSelectionMode(); if (_this._shouldHandleFocus && selectionMode !== interfaces_1.SelectionMode.none) { var isToggle = _this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME); var itemRoot = _this._findItemRoot(target); if (!isToggle && itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); if (span === undefined) { if (isToggleModifierPressed) { // set anchor only. selection.setIndexSelected(index, selection.isIndexSelected(index), true); if (_this.props.enterModalOnTouch && _this._isTouch && selection.setModal) { selection.setModal(true); _this._setIsTouch(false); } } else { if (_this.props.isSelectedOnFocus) { _this._onItemSurfaceClick('focus', index); } } } } } _this._handleNextFocus(false); }; _this._onMouseDown = function (ev) { _this._updateModifiers(ev); var toggleWithoutModifierPressed = _this.props.toggleWithoutModifierPressed; var target = ev.target; var itemRoot = _this._findItemRoot(target); // No-op if selection is disabled if (_this._isSelectionDisabled(target)) { return; } while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) { break; } else if (itemRoot) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { break; } else if (_this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { break; } else if ((target === itemRoot || _this._shouldAutoSelect(target)) && !_this._isShiftPressed && !_this._isCtrlPressed && !_this._isMetaPressed && !toggleWithoutModifierPressed) { _this._onInvokeMouseDown(ev, _this._getItemIndex(itemRoot), _this._getItemSpan(itemRoot)); break; } else if (_this.props.disableAutoSelectOnInputElements && (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT')) { return; } } target = (0, Utilities_1.getParent)(target); } }; _this._onTouchStartCapture = function (ev) { _this._setIsTouch(true); }; _this._onClick = function (ev) { var _a = _this.props.enableTouchInvocationTarget, enableTouchInvocationTarget = _a === void 0 ? false : _a; _this._updateModifiers(ev); var target = ev.target; var itemRoot = _this._findItemRoot(target); var isSelectionDisabled = _this._isSelectionDisabled(target); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) { if (!isSelectionDisabled) { _this._onToggleAllClick(ev); } break; } else if (itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { if (!isSelectionDisabled) { if (_this._isShiftPressed) { _this._onItemSurfaceClick('click', index, span); } else { _this._onToggleClick(ev, index, span); } } break; } else if ((_this._isTouch && enableTouchInvocationTarget && _this._hasAttribute(target, SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME)) || _this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { if (span === undefined) { // Items should be invokable even if selection is disabled. _this._onInvokeClick(ev, index); } break; } else if (target === itemRoot) { if (!isSelectionDisabled) { _this._onItemSurfaceClick('click', index, span); } break; } else if (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT') { return; } } target = (0, Utilities_1.getParent)(target); } }; _this._onContextMenu = function (ev) { var target = ev.target; var _a = _this.props, onItemContextMenu = _a.onItemContextMenu, selection = _a.selection; if (onItemContextMenu) { var itemRoot = _this._findItemRoot(target); if (itemRoot) { var index = _this._getItemIndex(itemRoot); _this._onInvokeMouseDown(ev, index); var skipPreventDefault = onItemContextMenu(selection.getItems()[index], index, ev.nativeEvent); // In order to keep back compat, if the value here is undefined, then we should still // call preventDefault(). Only in the case where true is explicitly returned should // the call be skipped. if (!skipPreventDefault) { ev.preventDefault(); } } } }; /** * In multi selection, if you double click within an item's root (but not within the invoke element or * input elements), we should execute the invoke handler. */ _this._onDoubleClick = function (ev) { var target = ev.target; var onItemInvoked = _this.props.onItemInvoked; var itemRoot = _this._findItemRoot(target); if (itemRoot && onItemInvoked && !_this._isInputElement(target)) { var index = _this._getItemIndex(itemRoot); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME) || _this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) { break; } else if (target === itemRoot) { _this._onInvokeClick(ev, index); break; } target = (0, Utilities_1.getParent)(target); } target = (0, Utilities_1.getParent)(target); } }; _this._onKeyDownCapture = function (ev) { _this._updateModifiers(ev); _this._handleNextFocus(true); }; _this._onKeyDown = function (ev) { _this._updateModifiers(ev); var target = ev.target; var isSelectionDisabled = _this._isSelectionDisabled(target); var _a = _this.props, selection = _a.selection, selectionClearedOnEscapePress = _a.selectionClearedOnEscapePress; // eslint-disable-next-line deprecation/deprecation var isSelectAllKey = ev.which === Utilities_1.KeyCodes.a && (_this._isCtrlPressed || _this._isMetaPressed); // eslint-disable-next-line deprecation/deprecation var isClearSelectionKey = ev.which === Utilities_1.KeyCodes.escape; // Ignore key downs from input elements. if (_this._isInputElement(target)) { // A key was pressed while an item in this zone was focused. return; } var selectionMode = _this._getSelectionMode(); // If ctrl-a is pressed, select all (if all are not already selected.) if (isSelectAllKey && selectionMode === interfaces_1.SelectionMode.multiple && !selection.isAllSelected()) { if (!isSelectionDisabled) { selection.setAllSelected(true); } ev.stopPropagation(); ev.preventDefault(); return; } // If escape is pressed and the component is configured to clear on escape press, // clear selection (if any are selected.) if (selectionClearedOnEscapePress && isClearSelectionKey && selection.getSelectedCount() > 0) { if (!isSelectionDisabled) { selection.setAllSelected(false); } ev.stopPropagation(); ev.preventDefault(); return; } var itemRoot = _this._findItemRoot(target); // If a key was pressed within an item, we should treat "enters" as invokes and "space" as toggle if (itemRoot) { var index = _this._getItemIndex(itemRoot); var span = _this._getItemSpan(itemRoot); while (target !== _this._root.current) { if (_this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) { // For toggle elements, assuming they are rendered as buttons, they will generate a click event, // so we can no-op for any keydowns in this case. break; } else if (_this._shouldAutoSelect(target)) { if (!isSelectionDisabled && span === undefined) { // If the event went to an element which should trigger auto-select, select it and then let // the default behavior kick in. _this._onInvokeMouseDown(ev, index, span); } break; } else if ( // eslint-disable-next-line deprecation/deprecation (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) && (target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT' || target.tagName === 'SUMMARY')) { return false; } else if (target === itemRoot) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { if (span === undefined) { // Items should be invokable even if selection is disabled. _this._onInvokeClick(ev, index); ev.preventDefault(); } return; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Utilities_1.KeyCodes.space) { if (!isSelectionDisabled) { _this._onToggleClick(ev, index, span); } ev.preventDefault(); return; } break; } target = (0, Utilities_1.getParent)(target); } } }; _this._events = new Utilities_1.EventGroup(_this); _this._async = new Utilities_1.Async(_this); (0, Utilities_1.initializeComponentRef)(_this); var selection = _this.props.selection; // Reflect the initial modal state of selection into the state. var isModal = selection.isModal && selection.isModal(); _this.state = { isModal: isModal, }; return _this; } SelectionZone.getDerivedStateFromProps = function (nextProps, prevState) { var isModal = nextProps.selection.isModal && nextProps.selection.isModal(); return tslib_1.__assign(tslib_1.__assign({}, prevState), { isModal: isModal }); }; SelectionZone.prototype.componentDidMount = function () { var win = (0, Utilities_1.getWindow)(this._root.current); // Track the latest modifier keys globally. this._events.on(win, 'keydown, keyup', this._updateModifiers, true); this._events.on(document, 'click', this._findScrollParentAndTryClearOnEmptyClick); this._events.on(document.body, 'touchstart', this._onTouchStartCapture, true); this._events.on(document.body, 'touchend', this._onTouchStartCapture, true); // Subscribe to the selection to keep modal state updated. this._events.on(this.props.selection, 'change', this._onSelectionChange); }; SelectionZone.prototype.render = function () { var isModal = this.state.isModal; return (React.createElement("div", { className: (0, Utilities_1.css)('ms-SelectionZone', this.props.className, { 'ms-SelectionZone--modal': !!isModal, }), ref: this._root, onKeyDown: this._onKeyDown, onMouseDown: this._onMouseDown, onKeyDownCapture: this._onKeyDownCapture, onClick: this._onClick, role: "presentation", onDoubleClick: this._onDoubleClick, onContextMenu: this._onContextMenu, onMouseDownCapture: this._onMouseDownCapture, onFocusCapture: this._onFocus, "data-selection-is-modal": isModal ? true : undefined }, this.props.children, React.createElement(Utilities_1.FocusRects, null))); }; SelectionZone.prototype.componentDidUpdate = function (previousProps) { var selection = this.props.selection; if (selection !== previousProps.selection) { // Whenever selection changes, update the subscripton to keep modal state updated. this._events.off(previousProps.selection); this._events.on(selection, 'change', this._onSelectionChange); } }; SelectionZone.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); }; SelectionZone.prototype._isSelectionDisabled = function (target) { if (this._getSelectionMode() === interfaces_1.SelectionMode.none) { return true; } while (target !== this._root.current) { if (this._hasAttribute(target, SELECTION_DISABLED_ATTRIBUTE_NAME)) { return true; } target = (0, Utilities_1.getParent)(target); } return false; }; SelectionZone.prototype._onToggleAllClick = function (ev) { var selection = this.props.selection; var selectionMode = this._getSelectionMode(); if (selectionMode === interfaces_1.SelectionMode.multiple) { selection.toggleAllSelected(); ev.stopPropagation(); ev.preventDefault(); } }; SelectionZone.prototype._onToggleClick = function (ev, index, span) { var selection = this.props.selection; var selectionMode = this._getSelectionMode(); selection.setChangeEvents(false); if (this.props.enterModalOnTouch && this._isTouch && (span !== undefined ? !selection.isRangeSelected(index, span) : !selection.isIndexSelected(index)) && selection.setModal) { selection.setModal(true); this._setIsTouch(false); } if (selectionMode === interfaces_1.SelectionMode.multiple) { if (span !== undefined) { selection.toggleRangeSelected(index, span); } else { selection.toggleIndexSelected(index); } } else if (selectionMode === interfaces_1.SelectionMode.single) { if (span === undefined || span === 1) { var isSelected = selection.isIndexSelected(index); var isModal = selection.isModal && selection.isModal(); selection.setAllSelected(false); selection.setIndexSelected(index, !isSelected, true); if (isModal && selection.setModal) { // Since the above call to setAllSelected(false) clears modal state, // restore it. This occurs because the SelectionMode of the Selection // may differ from the SelectionZone. selection.setModal(true); } } } else { selection.setChangeEvents(true); return; } selection.setChangeEvents(true); ev.stopPropagation(); // NOTE: ev.preventDefault is not called for toggle clicks, because this will kill the browser behavior // for checkboxes if you use a checkbox for the toggle. }; SelectionZone.prototype._onInvokeClick = function (ev, index) { var _a = this.props, selection = _a.selection, onItemInvoked = _a.onItemInvoked; if (onItemInvoked) { onItemInvoked(selection.getItems()[index], index, ev.nativeEvent); ev.preventDefault(); ev.stopPropagation(); } }; SelectionZone.prototype._onItemSurfaceClick = function (type, index, span) { var _a; var _b = this.props, selection = _b.selection, toggleWithoutModifierPressed = _b.toggleWithoutModifierPressed; var isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed; var selectionMode = this._getSelectionMode(); if (selectionMode === interfaces_1.SelectionMode.multiple) { if (this._isShiftPressed && !this._isTabPressed) { if (span !== undefined) { (_a = selection.selectToRange) === null || _a === void 0 ? void 0 : _a.call(selection, index, span, !isToggleModifierPressed); } else { selection.selectToIndex(index, !isToggleModifierPressed); } } else if (type === 'click' && (isToggleModifierPressed || toggleWithoutModifierPressed)) { if (span !== undefined) { selection.toggleRangeSelected(index, span); } else { selection.toggleIndexSelected(index); } } else { this._clearAndSelectIndex(index, span); } } else if (selectionMode === interfaces_1.SelectionMode.single) { this._clearAndSelectIndex(index, span); } }; SelectionZone.prototype._onInvokeMouseDown = function (ev, index, span) { var selection = this.props.selection; if (span !== undefined) { if (selection.isRangeSelected(index, span)) { return; } } else { // Only do work if item is not selected. if (selection.isIndexSelected(index)) { return; } } this._clearAndSelectIndex(index, span); }; /** * To avoid high startup cost of traversing the DOM on component mount, * defer finding the scrollable parent until a click interaction. * * The styles will probably already calculated since we're running in a click handler, * so this is less likely to cause layout thrashing then doing it in mount. */ SelectionZone.prototype._findScrollParentAndTryClearOnEmptyClick = function (ev) { var scrollParent = (0, Utilities_1.findScrollableParent)(this._root.current); // unbind this handler and replace binding with a binding on the actual scrollable parent this._events.off(document, 'click', this._findScrollParentAndTryClearOnEmptyClick); this._events.on(scrollParent, 'click', this._tryClearOnEmptyClick); // If we clicked inside the scrollable parent, call through to the handler on this click. if ((scrollParent && ev.target instanceof Node && scrollParent.contains(ev.target)) || scrollParent === ev.target) { this._tryClearOnEmptyClick(ev); } }; SelectionZone.prototype._tryClearOnEmptyClick = function (ev) { if (!this.props.selectionPreservedOnEmptyClick && this._isNonHandledClick(ev.target)) { this.props.selection.setAllSelected(false); } }; SelectionZone.prototype._clearAndSelectIndex = function (index, span) { var _a; var _b = this.props, selection = _b.selection, _c = _b.selectionClearedOnSurfaceClick, selectionClearedOnSurfaceClick = _c === void 0 ? true : _c; var isAlreadySingleSelected = (span === undefined || span === 1) && selection.getSelectedCount() === 1 && selection.isIndexSelected(index); if (!isAlreadySingleSelected && selectionClearedOnSurfaceClick) { var isModal = selection.isModal && selection.isModal(); selection.setChangeEvents(false); selection.setAllSelected(false); if (span !== undefined) { (_a = selection.setRangeSelected) === null || _a === void 0 ? void 0 : _a.call(selection, index, span, true, true); } else { selection.setIndexSelected(index, true, true); } if (isModal || (this.props.enterModalOnTouch && this._isTouch)) { if (selection.setModal) { selection.setModal(true); } if (this._isTouch) { this._setIsTouch(false); } } selection.setChangeEvents(true); } }; /** * We need to track the modifier key states so that when focus events occur, which do not contain * modifier states in the Event object, we know how to behave. */ SelectionZone.prototype._updateModifiers = function (ev) { this._isShiftPressed = ev.shiftKey; this._isCtrlPressed = ev.ctrlKey; this._isMetaPressed = ev.metaKey; // eslint-disable-next-line deprecation/deprecation var keyCode = ev.keyCode; this._isTabPressed = keyCode ? keyCode === Utilities_1.KeyCodes.tab : false; }; SelectionZone.prototype._findItemRoot = function (target) { var selection = this.props.selection; while (target !== this._root.current) { var indexValue = target.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME); var index = Number(indexValue); if (indexValue !== null && index >= 0 && index < selection.getItems().length) { break; } target = (0, Utilities_1.getParent)(target); } if (target === this._root.current) { return undefined; } return target; }; SelectionZone.prototype._getItemIndex = function (itemRoot) { var _a; var indexValue = parseInt((_a = itemRoot.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME)) !== null && _a !== void 0 ? _a : '', 10); return isNaN(indexValue) ? -1 : indexValue; }; SelectionZone.prototype._getItemSpan = function (itemRoot) { var _a; var spanValue = parseInt((_a = itemRoot.getAttribute(SELECTION_SPAN_ATTRIBUTE_NAME)) !== null && _a !== void 0 ? _a : '', 10); return isNaN(spanValue) ? undefined : spanValue; }; SelectionZone.prototype._shouldAutoSelect = function (element) { return this._hasAttribute(element, SELECTION_SELECT_ATTRIBUTE_NAME); }; SelectionZone.prototype._hasAttribute = function (element, attributeName) { var isToggle = false; while (!isToggle && element !== this._root.current) { var value = element.getAttribute(attributeName); if (value === 'false') { isToggle = false; break; } isToggle = value === 'true'; element = (0, Utilities_1.getParent)(element); } return isToggle; }; SelectionZone.prototype._isInputElement = function (element) { return (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.getAttribute('contenteditable') === 'true' || element.getAttribute('contenteditable') === ''); }; SelectionZone.prototype._isNonHandledClick = function (element) { var doc = (0, Utilities_1.getDocument)(); if (doc && element) { while (element && element !== doc.documentElement) { if ((0, Utilities_1.isElementTabbable)(element) || element.hasAttribute('data-selection-index')) { return false; } element = (0, Utilities_1.getParent)(element); } } return true; }; SelectionZone.prototype._handleNextFocus = function (handleFocus) { var _this = this; if (this._shouldHandleFocusTimeoutId) { this._async.clearTimeout(this._shouldHandleFocusTimeoutId); this._shouldHandleFocusTimeoutId = undefined; } this._shouldHandleFocus = handleFocus; if (handleFocus) { this._async.setTimeout(function () { _this._shouldHandleFocus = false; }, 100); } }; SelectionZone.prototype._setIsTouch = function (isTouch) { var _this = this; if (this._isTouchTimeoutId) { this._async.clearTimeout(this._isTouchTimeoutId); this._isTouchTimeoutId = undefined; } this._isTouch = true; if (isTouch) { this._async.setTimeout(function () { _this._isTouch = false; }, 300); } }; SelectionZone.prototype._getSelectionMode = function () { var selection = this.props.selection; var _a = this.props.selectionMode, selectionMode = _a === void 0 ? selection ? selection.mode : interfaces_1.SelectionMode.none : _a; return selectionMode; }; SelectionZone.defaultProps = { isSelectedOnFocus: true, toggleWithoutModifierPressed: false, selectionMode: interfaces_1.SelectionMode.multiple, selectionClearedOnEscapePress: true, }; return SelectionZone; }(React.Component)); exports.SelectionZone = SelectionZone; //# sourceMappingURL=SelectionZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/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__(/*! ./interfaces */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Selection */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/Selection.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SelectionZone */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/SelectionZone.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/selection/interfaces.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionMode = exports.SelectionDirection = exports.SELECTION_CHANGE = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return utilities_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return utilities_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return utilities_1.SelectionMode; } })); //# sourceMappingURL=interfaces.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/utilities/useOverflow.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/utilities/useOverflow.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useOverflow = void 0; 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 observeResize_1 = __webpack_require__(/*! ./observeResize */ "./node_modules/@fluentui/react/lib-commonjs/utilities/observeResize.js"); /** * Track whether any items don't fit within their container, and move them to the overflow menu. * Items are moved into the overflow menu from back to front, excluding pinned items. * * The overflow menu button must be the last sibling of all of the items that can be put into the overflow, and it * must be hooked up to the `setMenuButtonRef` setter function that's returned by `useOverflow`: * ```ts * const overflow = useOverflow(...); * ``` * ```jsx * * // Index 0 * // Index 1 * ... * // Can be any React.Component or HTMLElement * * ``` */ var useOverflow = function (_a) { var onOverflowItemsChanged = _a.onOverflowItemsChanged, rtl = _a.rtl, pinnedIndex = _a.pinnedIndex; var updateOverflowRef = React.useRef(); var containerWidthRef = React.useRef(); // Attach a resize observer to the container var containerRef = (0, react_hooks_1.useRefEffect)(function (container) { var cleanupObserver = (0, observeResize_1.observeResize)(container, function (entries) { containerWidthRef.current = entries ? entries[0].contentRect.width : container.clientWidth; if (updateOverflowRef.current) { updateOverflowRef.current(); } }); return function () { cleanupObserver(); containerWidthRef.current = undefined; }; }); var menuButtonRef = (0, react_hooks_1.useRefEffect)(function (menuButton) { containerRef(menuButton.parentElement); return function () { return containerRef(null); }; }); (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { var container = containerRef.current; var menuButton = menuButtonRef.current; if (!container || !menuButton) { return; } // items contains the container's children, excluding the overflow menu button itself var items = []; for (var i = 0; i < container.children.length; i++) { var item = container.children[i]; if (item instanceof HTMLElement && item !== menuButton) { items.push(item); } } // Keep track of the minimum width of the container to fit each child index. // This cache is an integral part of the algorithm and not just a performance optimization: it allows us to // recalculate the overflowIndex on subsequent resizes even if some items are already inside the overflow. var minContainerWidth = []; var extraWidth = 0; // The accumulated width of items that don't move into the overflow updateOverflowRef.current = function () { var containerWidth = containerWidthRef.current; if (containerWidth === undefined) { return; } // Iterate the items in reverse order until we find one that fits within the bounds of the container for (var i = items.length - 1; i >= 0; i--) { // Calculate the min container width for this item if we haven't done so yet if (minContainerWidth[i] === undefined) { var itemOffsetEnd = rtl ? containerWidth - items[i].offsetLeft : items[i].offsetLeft + items[i].offsetWidth; // If the item after this one is pinned, reserve space for it if (i + 1 < items.length && i + 1 === pinnedIndex) { // Use distance between the end of the previous item and this one (rather than the // pinned item's offsetWidth), to account for any margin between the items. extraWidth = minContainerWidth[i + 1] - itemOffsetEnd; } // Reserve space for the menu button after the first item was added to the overflow if (i === items.length - 2) { extraWidth += menuButton.offsetWidth; } minContainerWidth[i] = itemOffsetEnd + extraWidth; } if (containerWidth > minContainerWidth[i]) { setOverflowIndex(i + 1); return; } } // If we got here, nothing fits outside the overflow setOverflowIndex(0); }; var prevOverflowIndex = items.length; var setOverflowIndex = function (overflowIndex) { if (prevOverflowIndex !== overflowIndex) { prevOverflowIndex = overflowIndex; onOverflowItemsChanged(overflowIndex, items.map(function (ele, index) { return ({ ele: ele, isOverflowing: index >= overflowIndex && index !== pinnedIndex, }); })); } }; var cancelAnimationFrame = undefined; // If the container width is already known from a previous render, update the overflow with its width. // Do this in an animation frame to avoid forcing layout to happen early. if (containerWidthRef.current !== undefined) { var win_1 = (0, utilities_1.getWindow)(container); if (win_1) { var animationFrameId_1 = win_1.requestAnimationFrame(updateOverflowRef.current); cancelAnimationFrame = function () { return win_1.cancelAnimationFrame(animationFrameId_1); }; } } return function () { if (cancelAnimationFrame) { cancelAnimationFrame(); } // On cleanup, need to remove all items from the overflow // so they don't have stale properties on the next render setOverflowIndex(items.length); updateOverflowRef.current = undefined; }; }); return { menuButtonRef: menuButtonRef }; }; exports.useOverflow = useOverflow; //# sourceMappingURL=useOverflow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/version.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/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', '8.111.2'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/set-version/lib-commonjs/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/set-version/lib-commonjs/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVersion = void 0; var setVersion_1 = __webpack_require__(/*! ./setVersion */ "./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js"); Object.defineProperty(exports, "setVersion", ({ enumerable: true, get: function () { return setVersion_1.setVersion; } })); (0, setVersion_1.setVersion)('@fluentui/set-version', '6.0.0'); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/set-version/lib-commonjs/setVersion.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVersion = void 0; // A packages cache that makes sure that we don't inject the same packageName twice in the same bundle - // this cache is local to the module closure inside this bundle var packagesCache = {}; // Cache access to window to avoid IE11 memory leak. var _win = undefined; try { _win = window; } catch (e) { /* no-op */ } function setVersion(packageName, packageVersion) { if (typeof _win !== 'undefined') { // eslint-disable-next-line @typescript-eslint/no-explicit-any var packages = (_win.__packages__ = _win.__packages__ || {}); // We allow either the global packages or local packages caches to invalidate so testing can // just clear the global to set this state if (!packages[packageName] || !packagesCache[packageName]) { packagesCache[packageName] = packageVersion; var versions = (packages[packageName] = packages[packageName] || []); versions.push(packageVersion); } } } exports.setVersion = setVersion; //# sourceMappingURL=setVersion.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeStyles = exports.mergeStyleSets = exports.keyframes = exports.fontFace = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.Stylesheet = exports.InjectionMode = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return merge_styles_1.InjectionMode; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return merge_styles_1.Stylesheet; } })); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return merge_styles_1.concatStyleSets; } })); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return merge_styles_1.concatStyleSetsWithProps; } })); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return merge_styles_1.fontFace; } })); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return merge_styles_1.keyframes; } })); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return merge_styles_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return merge_styles_1.mergeStyles; } })); //# sourceMappingURL=MergeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FLUENT_CDN_BASE_URL = void 0; exports.FLUENT_CDN_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002'; //# sourceMappingURL=cdn.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationClassNames = void 0; var index_1 = __webpack_require__(/*! ../utilities/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js"); var index_2 = __webpack_require__(/*! ../styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"); /** * {@docCategory AnimationClassNames} */ exports.AnimationClassNames = (0, index_1.buildClassMap)(index_2.AnimationStyles); //# sourceMappingURL=AnimationClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorClassNames = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var DefaultPalette_1 = __webpack_require__(/*! ../styles/DefaultPalette */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js"); var index_1 = __webpack_require__(/*! ../styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"); exports.ColorClassNames = {}; for (var colorName in DefaultPalette_1.DefaultPalette) { if (DefaultPalette_1.DefaultPalette.hasOwnProperty(colorName)) { // Foreground color _defineGetter(exports.ColorClassNames, colorName, '', false, 'color'); // Hover color _defineGetter(exports.ColorClassNames, colorName, 'Hover', true, 'color'); // Background color _defineGetter(exports.ColorClassNames, colorName, 'Background', false, 'background'); // Background hover _defineGetter(exports.ColorClassNames, colorName, 'BackgroundHover', true, 'background'); // Border color _defineGetter(exports.ColorClassNames, colorName, 'Border', false, 'borderColor'); // Border hover color _defineGetter(exports.ColorClassNames, colorName, 'BorderHover', true, 'borderColor'); } } /** * Defines a getter for the given class configuration. */ function _defineGetter(obj, colorName, suffix, isHover, cssProperty) { Object.defineProperty(obj, colorName + suffix, { get: function () { var _a; // eslint-disable-next-line @typescript-eslint/no-explicit-any var style = (_a = {}, _a[cssProperty] = (0, index_1.getTheme)().palette[colorName], _a); return (0, merge_styles_1.mergeStyles)(isHover ? { selectors: { ':hover': style } } : style).toString(); }, enumerable: true, configurable: true, }); } //# sourceMappingURL=ColorClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FontClassNames = void 0; var buildClassMap_1 = __webpack_require__(/*! ../utilities/buildClassMap */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js"); var DefaultFontStyles_1 = __webpack_require__(/*! ../styles/DefaultFontStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js"); /** * {@docCategory FontClassNames} */ exports.FontClassNames = (0, buildClassMap_1.buildClassMap)(DefaultFontStyles_1.DefaultFontStyles); //# sourceMappingURL=FontClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorClassNames = exports.FontClassNames = exports.AnimationClassNames = void 0; var AnimationClassNames_1 = __webpack_require__(/*! ./AnimationClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/AnimationClassNames.js"); Object.defineProperty(exports, "AnimationClassNames", ({ enumerable: true, get: function () { return AnimationClassNames_1.AnimationClassNames; } })); var FontClassNames_1 = __webpack_require__(/*! ./FontClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/FontClassNames.js"); Object.defineProperty(exports, "FontClassNames", ({ enumerable: true, get: function () { return FontClassNames_1.FontClassNames; } })); var ColorClassNames_1 = __webpack_require__(/*! ./ColorClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/ColorClassNames.js"); Object.defineProperty(exports, "ColorClassNames", ({ enumerable: true, get: function () { return ColorClassNames_1.ColorClassNames; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/style-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__(/*! ./classNames/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/classNames/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./styles/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./interfaces/index */ "./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MergeStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./cdn */ "./node_modules/@fluentui/style-utilities/lib-commonjs/cdn.js"), exports); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/style-utilities/lib-commonjs/version.js"); // Ensure theme is initialized when this package is referenced. var theme_1 = __webpack_require__(/*! ./styles/theme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js"); (0, theme_1.initializeThemeInCustomizations)(); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/interfaces/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationVariables = exports.AnimationStyles = void 0; 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; } })); //# sourceMappingURL=AnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getEdgeChromiumNoHighContrastAdjustSelector = exports.getHighContrastNoAdjustStyle = exports.getScreenSelector = exports.ScreenWidthMinUhfMobile = exports.ScreenWidthMaxXXLarge = exports.ScreenWidthMaxXLarge = exports.ScreenWidthMaxLarge = exports.ScreenWidthMaxMedium = exports.ScreenWidthMaxSmall = exports.ScreenWidthMinXXXLarge = exports.ScreenWidthMinXXLarge = exports.ScreenWidthMinXLarge = exports.ScreenWidthMinLarge = exports.ScreenWidthMinMedium = exports.ScreenWidthMinSmall = exports.EdgeChromiumHighContrastSelector = exports.HighContrastSelectorBlack = exports.HighContrastSelectorWhite = exports.HighContrastSelector = void 0; exports.HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)'; exports.HighContrastSelectorWhite = // eslint-disable-next-line @fluentui/max-len '@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)'; exports.HighContrastSelectorBlack = // eslint-disable-next-line @fluentui/max-len '@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)'; /** * @deprecated Use `HighContrastSelector` */ exports.EdgeChromiumHighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)'; exports.ScreenWidthMinSmall = 320; exports.ScreenWidthMinMedium = 480; exports.ScreenWidthMinLarge = 640; exports.ScreenWidthMinXLarge = 1024; exports.ScreenWidthMinXXLarge = 1366; exports.ScreenWidthMinXXXLarge = 1920; exports.ScreenWidthMaxSmall = exports.ScreenWidthMinMedium - 1; exports.ScreenWidthMaxMedium = exports.ScreenWidthMinLarge - 1; exports.ScreenWidthMaxLarge = exports.ScreenWidthMinXLarge - 1; exports.ScreenWidthMaxXLarge = exports.ScreenWidthMinXXLarge - 1; exports.ScreenWidthMaxXXLarge = exports.ScreenWidthMinXXXLarge - 1; exports.ScreenWidthMinUhfMobile = 768; function getScreenSelector(min, max) { var minSelector = typeof min === 'number' ? " and (min-width: ".concat(min, "px)") : ''; var maxSelector = typeof max === 'number' ? " and (max-width: ".concat(max, "px)") : ''; return "@media only screen".concat(minSelector).concat(maxSelector); } exports.getScreenSelector = getScreenSelector; /** * The style which turns off high contrast adjustment in browsers. */ function getHighContrastNoAdjustStyle() { return { forcedColorAdjust: 'none', MsHighContrastAdjust: 'none', }; } exports.getHighContrastNoAdjustStyle = getHighContrastNoAdjustStyle; /** * The style which turns off high contrast adjustment in (only) Edge Chromium browser. * @deprecated Use `getHighContrastNoAdjustStyle` */ // eslint-disable-next-line deprecation/deprecation function getEdgeChromiumNoHighContrastAdjustSelector() { var _a; return _a = {}, // eslint-disable-next-line deprecation/deprecation _a[exports.EdgeChromiumHighContrastSelector] = { forcedColorAdjust: 'none', MsHighContrastAdjust: 'none', }, _a; } exports.getEdgeChromiumNoHighContrastAdjustSelector = getEdgeChromiumNoHighContrastAdjustSelector; //# sourceMappingURL=CommonStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultEffects = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return theme_1.DefaultEffects; } })); //# sourceMappingURL=DefaultEffects.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return theme_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return theme_1.registerDefaultFontFaces; } })); //# sourceMappingURL=DefaultFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return theme_1.DefaultPalette; } })); //# sourceMappingURL=DefaultPalette.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.noWrap = exports.normalize = void 0; // This file mimics styles and mixins from _General.Mixins.scss exports.normalize = { boxShadow: 'none', margin: 0, padding: 0, boxSizing: 'border-box', }; exports.noWrap = { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', }; //# sourceMappingURL=GeneralStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PulsingBeaconAnimationStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var DEFAULT_DURATION = '14s'; var DEFAULT_DELAY = '2s'; var DEFAULT_ITERATION_COUNT = '1'; function _continuousPulseStepOne(beaconColorOne, innerDimension) { return { borderColor: beaconColorOne, borderWidth: '0px', width: innerDimension, height: innerDimension, }; } function _continuousPulseStepTwo(borderWidth) { return { opacity: 1, borderWidth: borderWidth, }; } function _continuousPulseStepThree() { return { opacity: 1, }; } function _continuousPulseStepFour(beaconColorTwo, outerDimension) { return { borderWidth: '0', width: outerDimension, height: outerDimension, opacity: 0, borderColor: beaconColorTwo, }; } function _continuousPulseStepFive(beaconColorOne, innerDimension) { return tslib_1.__assign(tslib_1.__assign({}, _continuousPulseStepOne(beaconColorOne, innerDimension)), { opacity: 0, }); } function _continuousPulseAnimationDouble(beaconColorOne, beaconColorTwo, innerDimension, outerDimension, borderWidth) { return (0, merge_styles_1.keyframes)({ '0%': _continuousPulseStepOne(beaconColorOne, innerDimension), '1.42%': _continuousPulseStepTwo(borderWidth), '3.57%': _continuousPulseStepThree(), '7.14%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '8%': _continuousPulseStepFive(beaconColorOne, innerDimension), '29.99%': _continuousPulseStepFive(beaconColorOne, innerDimension), '30%': _continuousPulseStepOne(beaconColorOne, innerDimension), '31.42%': _continuousPulseStepTwo(borderWidth), '33.57%': _continuousPulseStepThree(), '37.14%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '38%': _continuousPulseStepFive(beaconColorOne, innerDimension), '79.42%': _continuousPulseStepFive(beaconColorOne, innerDimension), '79.43': _continuousPulseStepOne(beaconColorOne, innerDimension), '81.85': _continuousPulseStepTwo(borderWidth), '83.42': _continuousPulseStepThree(), '87%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '100%': {}, }); } function _continuousPulseAnimationSingle(beaconColorOne, beaconColorTwo, innerDimension, outerDimension, borderWidth) { return (0, merge_styles_1.keyframes)({ '0%': _continuousPulseStepOne(beaconColorOne, innerDimension), '14.2%': _continuousPulseStepTwo(borderWidth), '35.7%': _continuousPulseStepThree(), '71.4%': _continuousPulseStepFour(beaconColorTwo, outerDimension), '100%': {}, }); } function _createDefaultAnimation(animationName, delayLength) { return { animationName: animationName, animationIterationCount: DEFAULT_ITERATION_COUNT, animationDuration: DEFAULT_DURATION, animationDelay: delayLength || DEFAULT_DELAY, }; } exports.PulsingBeaconAnimationStyles = { continuousPulseAnimationDouble: _continuousPulseAnimationDouble, continuousPulseAnimationSingle: _continuousPulseAnimationSingle, createDefaultAnimation: _createDefaultAnimation, }; //# sourceMappingURL=PulsingBeaconAnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFontStyles = exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.LocalizedFontFamilies = exports.LocalizedFontNames = void 0; var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "LocalizedFontNames", ({ enumerable: true, get: function () { return theme_1.LocalizedFontNames; } })); Object.defineProperty(exports, "LocalizedFontFamilies", ({ enumerable: true, get: function () { return theme_1.LocalizedFontFamilies; } })); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return theme_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return theme_1.FontWeights; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return theme_1.IconFontSizes; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return theme_1.createFontStyles; } })); //# sourceMappingURL=fonts.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFadedOverflowStyle = void 0; var DEFAULT_HEIGHT = '50%'; var DEFAULT_WIDTH = 20; /** * - Generates a style used to fade out an overflowing content by defining a style for an :after pseudo element. * - Apply it to the :after selector for all combination of states the parent of content might have (normal, hover, * selected, focus). * - Requires the target to have position set to relative and overflow set to hidden. * * @example * ```tsx * // Assuming the following DOM structure and the different background colors coming from * // the parent holding the content. * * Overflown Content * * ``` * ```ts * // This is how the style set would look in Component.styles.ts * const { bodyBackground } = theme.semanticColors; * const { neutralLighter } = theme.palette; * * // The second argument of getFadedOverflowStyle function is a string representing a key of * // ISemanticColors or IPalette. * * const styles = { * parent: [ * backgroundColor: bodyBackground, * selectors: { * '&:hover: { * backgroundColor: neutralLighter * }, * '$content:after': { * ...getFadedOverflowStyle(theme, 'bodyBackground') * }, * '&:hover $content:after': { * ...getFadedOverflowStyle(theme, 'neutralLighter') * } * } * ], * content: [ * width: '100%', * display: 'inline-block', * position: 'relative', * overflow: 'hidden' * ] * } * ``` * @param theme - The theme object to use. * @param color - The background color to fade out to. Accepts only keys of ISemanticColors or IPalette. * Defaults to 'bodyBackground'. * @param direction - The direction of the overflow. Defaults to horizontal. * @param width - The width of the fading overflow. Vertical direction defaults it to 100% vs 20px when horizontal. * @param height - The Height of the fading overflow. Vertical direction defaults it to 50% vs 100% when horizontal. * @returns The style object. */ function getFadedOverflowStyle(theme, color, direction, width, height) { if (color === void 0) { color = 'bodyBackground'; } if (direction === void 0) { direction = 'horizontal'; } if (width === void 0) { width = getDefaultValue('width', direction); } if (height === void 0) { height = getDefaultValue('height', direction); } // Get the color value string from the theme semanticColors or palette. var colorValue = theme.semanticColors[color] || theme.palette[color]; // Get the red, green, blue values of the colorValue. var rgbColor = color2rgb(colorValue); // Apply opacity 0 to serve as a start color of the gradient. var rgba = "rgba(".concat(rgbColor.r, ", ").concat(rgbColor.g, ", ").concat(rgbColor.b, ", 0)"); // Get the direction of the gradient. (mergeStyles takes care of RTL direction) var gradientDirection = direction === 'vertical' ? 'to bottom' : 'to right'; return { content: '""', position: 'absolute', right: 0, bottom: 0, width: width, height: height, pointerEvents: 'none', backgroundImage: "linear-gradient(".concat(gradientDirection, ", ").concat(rgba, " 0%, ").concat(colorValue, " 100%)"), }; } exports.getFadedOverflowStyle = getFadedOverflowStyle; // TODO consider moving this to a separate module along with some more color functions from OUFR/utilities. /** * Helper function to convert a string hex color to an RGB object. * * @param colorValue - Color to be converted from hex to rgba. */ function color2rgb(colorValue) { if (colorValue[0] === '#') { // If it's a hex code return { r: parseInt(colorValue.slice(1, 3), 16), g: parseInt(colorValue.slice(3, 5), 16), b: parseInt(colorValue.slice(5, 7), 16), }; } else if (colorValue.indexOf('rgba(') === 0) { // If it's an rgba color string colorValue = colorValue.match(/rgba\(([^)]+)\)/)[1]; var parts = colorValue.split(/ *, */).map(Number); return { r: parts[0], g: parts[1], b: parts[2], }; } // The only remaining possibility is transparent. return { r: 255, g: 255, b: 255, }; } /** * Helper function to get the default values for parameters of main function. * * @param style - Which style to get the default value for. * @param direction - What direction to take into consideration. */ function getDefaultValue(style, direction) { if (style === 'width') { return direction === 'horizontal' ? DEFAULT_WIDTH : '100%'; } else { return direction === 'vertical' ? DEFAULT_HEIGHT : '100%'; } } //# sourceMappingURL=getFadedOverflowStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getInputFocusStyle = exports.getFocusOutlineStyle = exports.focusClear = exports.getFocusStyle = void 0; var CommonStyles_1 = __webpack_require__(/*! ./CommonStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var zIndexes_1 = __webpack_require__(/*! ./zIndexes */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js"); function getFocusStyle(theme, insetOrOptions, position, highContrastStyle, borderColor, outlineColor, isFocusedOnly, borderRadius) { if (typeof insetOrOptions === 'number' || !insetOrOptions) { return _getFocusStyleInternal(theme, { inset: insetOrOptions, position: position, highContrastStyle: highContrastStyle, borderColor: borderColor, outlineColor: outlineColor, isFocusedOnly: isFocusedOnly, borderRadius: borderRadius, }); } else { return _getFocusStyleInternal(theme, insetOrOptions); } } exports.getFocusStyle = getFocusStyle; function _getFocusStyleInternal(theme, options) { var _a, _b; if (options === void 0) { options = {}; } var borderRadius = options.borderRadius, _c = options.inset, inset = _c === void 0 ? 0 : _c, _d = options.width, width = _d === void 0 ? 1 : _d, _e = options.position, position = _e === void 0 ? 'relative' : _e, highContrastStyle = options.highContrastStyle, _f = options.borderColor, borderColor = _f === void 0 ? theme.palette.white : _f, _g = options.outlineColor, outlineColor = _g === void 0 ? theme.palette.neutralSecondary : _g, _h = options.isFocusedOnly, isFocusedOnly = _h === void 0 ? true : _h, pointerEvents = options.pointerEvents; return { // Clear browser-specific focus styles and use 'transparent' as placeholder for focus style. outline: 'transparent', // Requirement because pseudo-element is absolutely positioned. position: position, selectors: (_a = { // Clear the focus border in Firefox. // Reference: http://stackoverflow.com/a/199319/1436671 '::-moz-focus-inner': { border: '0', } }, // When the element that uses this mixin is in a :focus state, add a pseudo-element to // create a border. _a[".".concat(utilities_1.IsFocusVisibleClassName, " &").concat(isFocusedOnly ? ':focus' : '', ":after")] = { content: '""', position: 'absolute', pointerEvents: pointerEvents, left: inset + 1, top: inset + 1, bottom: inset + 1, right: inset + 1, border: "".concat(width, "px solid ").concat(borderColor), outline: "".concat(width, "px solid ").concat(outlineColor), zIndex: zIndexes_1.ZIndexes.FocusStyle, borderRadius: borderRadius, selectors: (_b = {}, _b[CommonStyles_1.HighContrastSelector] = highContrastStyle, _b), }, _a), }; } /** * Generates style to clear browser specific focus styles. */ function focusClear() { return { selectors: { '&::-moz-focus-inner': { // Clear the focus border in Firefox. Reference: http://stackoverflow.com/a/199319/1436671 border: 0, }, '&': { // Clear browser specific focus styles and use transparent as placeholder for focus style outline: 'transparent', }, }, }; } exports.focusClear = focusClear; /** * Generates a style which can be used to set a border on focus. * * @param theme - The theme object to use. * @param inset - The number of pixels to inset the border (default 0) * @param width - The border width in pixels (default 1) * @param color - Color of the outline (default `theme.palette.neutralSecondary`) * @returns The style object. */ function getFocusOutlineStyle(theme, inset, width, color) { var _a; if (inset === void 0) { inset = 0; } if (width === void 0) { width = 1; } return { selectors: (_a = {}, _a[":global(".concat(utilities_1.IsFocusVisibleClassName, ") &:focus")] = { outline: "".concat(width, " solid ").concat(color || theme.palette.neutralSecondary), outlineOffset: "".concat(-inset, "px"), }, _a), }; } exports.getFocusOutlineStyle = getFocusOutlineStyle; /** * Generates text input border styles on focus. * * @param borderColor - Color of the border. * @param borderRadius - Radius of the border. * @param borderType - Type of the border. * @param borderPosition - Position of the border relative to the input element (default to -1 * as it's the most common border width of the input element) * @returns The style object. */ var getInputFocusStyle = function (borderColor, borderRadius, borderType, borderPosition) { var _a, _b, _c; if (borderType === void 0) { borderType = 'border'; } if (borderPosition === void 0) { borderPosition = -1; } var isBorderBottom = borderType === 'borderBottom'; return { borderColor: borderColor, selectors: { ':after': (_a = { pointerEvents: 'none', content: "''", position: 'absolute', left: isBorderBottom ? 0 : borderPosition, top: borderPosition, bottom: borderPosition, right: isBorderBottom ? 0 : borderPosition }, _a[borderType] = "2px solid ".concat(borderColor), _a.borderRadius = borderRadius, _a.width = borderType === 'borderBottom' ? '100%' : undefined, _a.selectors = (_b = {}, _b[CommonStyles_1.HighContrastSelector] = (_c = {}, _c[borderType === 'border' ? 'borderColor' : 'borderBottomColor'] = 'Highlight', _c), _b), _a), }, }; }; exports.getInputFocusStyle = getInputFocusStyle; //# sourceMappingURL=getFocusStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getGlobalClassNames = void 0; 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"); /** * Internal memoized function which simply takes in the class map and the * disable boolean. These immutable values can be memoized. */ var _getGlobalClassNames = (0, utilities_1.memoizeFunction)(function (classNames, disableGlobalClassNames) { var styleSheet = merge_styles_1.Stylesheet.getInstance(); if (disableGlobalClassNames) { // disable global classnames return Object.keys(classNames).reduce(function (acc, className) { acc[className] = styleSheet.getClassName(classNames[className]); return acc; }, {}); } // use global classnames return classNames; }); /** * Checks for the `disableGlobalClassNames` property on the `theme` to determine if it should return `classNames` * Note that calls to this function are memoized. * * @param classNames - The collection of global class names that apply when the flag is false. Make sure to pass in * the same instance on each call to benefit from memoization. * @param theme - The theme to check the flag on * @param disableGlobalClassNames - Optional. Explicitly opt in/out of disabling global classnames. Defaults to false. */ function getGlobalClassNames(classNames, theme, disableGlobalClassNames) { return _getGlobalClassNames(classNames, disableGlobalClassNames !== undefined ? disableGlobalClassNames : theme.disableGlobalClassNames); } exports.getGlobalClassNames = getGlobalClassNames; //# sourceMappingURL=getGlobalClassNames.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPlaceholderStyles = void 0; /** * Generates placeholder style for each of the browsers supported by `@fluentui/react`. * @param styles - The style to use. * @returns The placeholder style object for each browser depending on the placeholder directive it uses. */ function getPlaceholderStyles(styles) { return { selectors: { '::placeholder': styles, ':-ms-input-placeholder': styles, '::-ms-input-placeholder': styles, // Edge }, }; } exports.getPlaceholderStyles = getPlaceholderStyles; //# sourceMappingURL=getPlaceholderStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hiddenContentStyle = void 0; exports.hiddenContentStyle = { position: 'absolute', width: 1, height: 1, margin: -1, padding: 0, border: 0, overflow: 'hidden', whiteSpace: 'nowrap', }; //# sourceMappingURL=hiddenContentStyle.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/index.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.createTheme = exports.loadTheme = exports.getTheme = exports.ThemeSettingName = exports.getGlobalClassNames = exports.PulsingBeaconAnimationStyles = exports.hiddenContentStyle = exports.createFontStyles = exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.registerDefaultFontFaces = exports.DefaultFontStyles = exports.DefaultEffects = exports.DefaultPalette = exports.AnimationVariables = exports.AnimationStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var AnimationStyles_1 = __webpack_require__(/*! ./AnimationStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/AnimationStyles.js"); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return AnimationStyles_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return AnimationStyles_1.AnimationVariables; } })); var DefaultPalette_1 = __webpack_require__(/*! ./DefaultPalette */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultPalette.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return DefaultPalette_1.DefaultPalette; } })); var DefaultEffects_1 = __webpack_require__(/*! ./DefaultEffects */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultEffects.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return DefaultEffects_1.DefaultEffects; } })); var DefaultFontStyles_1 = __webpack_require__(/*! ./DefaultFontStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/DefaultFontStyles.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return DefaultFontStyles_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return DefaultFontStyles_1.registerDefaultFontFaces; } })); var fonts_1 = __webpack_require__(/*! ./fonts */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/fonts.js"); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return fonts_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return fonts_1.FontWeights; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return fonts_1.IconFontSizes; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return fonts_1.createFontStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./getFocusStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFocusStyle.js"), exports); var hiddenContentStyle_1 = __webpack_require__(/*! ./hiddenContentStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/hiddenContentStyle.js"); Object.defineProperty(exports, "hiddenContentStyle", ({ enumerable: true, get: function () { return hiddenContentStyle_1.hiddenContentStyle; } })); var PulsingBeaconAnimationStyles_1 = __webpack_require__(/*! ./PulsingBeaconAnimationStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/PulsingBeaconAnimationStyles.js"); Object.defineProperty(exports, "PulsingBeaconAnimationStyles", ({ enumerable: true, get: function () { return PulsingBeaconAnimationStyles_1.PulsingBeaconAnimationStyles; } })); var getGlobalClassNames_1 = __webpack_require__(/*! ./getGlobalClassNames */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getGlobalClassNames.js"); Object.defineProperty(exports, "getGlobalClassNames", ({ enumerable: true, get: function () { return getGlobalClassNames_1.getGlobalClassNames; } })); tslib_1.__exportStar(__webpack_require__(/*! ./scheme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js"), exports); var theme_1 = __webpack_require__(/*! ./theme */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js"); Object.defineProperty(exports, "ThemeSettingName", ({ enumerable: true, get: function () { return theme_1.ThemeSettingName; } })); Object.defineProperty(exports, "getTheme", ({ enumerable: true, get: function () { return theme_1.getTheme; } })); Object.defineProperty(exports, "loadTheme", ({ enumerable: true, get: function () { return theme_1.loadTheme; } })); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_1.createTheme; } })); Object.defineProperty(exports, "registerOnThemeChangeCallback", ({ enumerable: true, get: function () { return theme_1.registerOnThemeChangeCallback; } })); Object.defineProperty(exports, "removeOnThemeChangeCallback", ({ enumerable: true, get: function () { return theme_1.removeOnThemeChangeCallback; } })); tslib_1.__exportStar(__webpack_require__(/*! ./CommonStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/CommonStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./GeneralStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/GeneralStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getFadedOverflowStyle */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getFadedOverflowStyle.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getPlaceholderStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/getPlaceholderStyles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./zIndexes */ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/scheme.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getThemedContext = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * @internal * This function is still in experimental phase in support of Foundation experimental development. * Its API signature and existence are subject to change. * * Modify context to activate the specified scheme or theme. For schemes, look in context (if available) and fall back * to global Customizations. If both scheme and theme are specified, scheme will be looked up in theme. In this case, * scheme must be present in theme arg, otherwise new context will default to theme arg (there is no fallback to * settings to look up scheme.) * * @param context - Context in which to get schemed customizations. * @param scheme - Scheme to get customizations for from theme arg (if supplied) OR from context and global settings. * @param theme - Theme to merge into context. * @returns modified schemed context if scheme is valid and not already applied, unmodified context otherwise. */ function getThemedContext(context, scheme, theme) { var newContext = context; var newSettings; // Only fall back to context and customizations when theme arg is not provided. var schemeSource = theme || utilities_1.Customizations.getSettings(['theme'], undefined, context.customizations).theme; if (theme) { newSettings = { theme: theme }; } var schemeTheme = scheme && schemeSource && schemeSource.schemes && schemeSource.schemes[scheme]; // These first two checks are logically redundant but TS doesn't infer schemeSource.schemes is defined // when schemeTheme is defined. if (schemeSource && schemeTheme && schemeSource !== schemeTheme) { newSettings = { theme: schemeTheme }; newSettings.theme.schemes = schemeSource.schemes; } if (newSettings) { newContext = { customizations: { settings: (0, utilities_1.mergeSettings)(context.customizations.settings, newSettings), scopedSettings: context.customizations.scopedSettings, }, }; } return newContext; } exports.getThemedContext = getThemedContext; //# sourceMappingURL=scheme.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/theme.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.loadTheme = exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.getTheme = exports.initializeThemeInCustomizations = exports.ThemeSettingName = exports.createTheme = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); var theme_2 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_2.createTheme; } })); var _theme = (0, theme_1.createTheme)({}); var _onThemeChangeCallbacks = []; exports.ThemeSettingName = 'theme'; function initializeThemeInCustomizations() { var _a; var _b, _c; // eslint-disable-next-line @typescript-eslint/no-explicit-any var win = (0, utilities_1.getWindow)(); if ((_b = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _b === void 0 ? void 0 : _b.legacyTheme) { // does everything the `else` clause does and more, such as invoke legacy theming loadTheme(win.FabricConfig.legacyTheme); } else if (!utilities_1.Customizations.getSettings([exports.ThemeSettingName]).theme) { if ((_c = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _c === void 0 ? void 0 : _c.theme) { _theme = (0, theme_1.createTheme)(win.FabricConfig.theme); } // Set the default theme. utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a)); } } exports.initializeThemeInCustomizations = initializeThemeInCustomizations; initializeThemeInCustomizations(); /** * Gets the theme object * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function getTheme(depComments) { if (depComments === void 0) { depComments = false; } if (depComments === true) { _theme = (0, theme_1.createTheme)({}, depComments); } return _theme; } exports.getTheme = getTheme; /** * Registers a callback that gets called whenever the theme changes. * This should only be used when the component cannot automatically get theme changes through its state. * This will not register duplicate callbacks. */ function registerOnThemeChangeCallback(callback) { if (_onThemeChangeCallbacks.indexOf(callback) === -1) { _onThemeChangeCallbacks.push(callback); } } exports.registerOnThemeChangeCallback = registerOnThemeChangeCallback; /** * See registerOnThemeChangeCallback(). * Removes previously registered callbacks. */ function removeOnThemeChangeCallback(callback) { var i = _onThemeChangeCallbacks.indexOf(callback); if (i === -1) { return; } _onThemeChangeCallbacks.splice(i, 1); } exports.removeOnThemeChangeCallback = removeOnThemeChangeCallback; /** * Applies the theme, while filling in missing slots. * @param theme - Partial theme object. * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function loadTheme(theme, depComments) { var _a; if (depComments === void 0) { depComments = false; } _theme = (0, theme_1.createTheme)(theme, depComments); // Invoke the legacy method of theming the page as well. (0, load_themed_styles_1.loadTheme)(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, _theme.palette), _theme.semanticColors), _theme.effects), _loadFonts(_theme))); utilities_1.Customizations.applySettings((_a = {}, _a[exports.ThemeSettingName] = _theme, _a)); _onThemeChangeCallbacks.forEach(function (callback) { try { callback(_theme); } catch (e) { // don't let a bad callback break everything else } }); return _theme; } exports.loadTheme = loadTheme; /** * Loads font variables into a JSON object. * @param theme - The theme object */ function _loadFonts(theme) { var lines = {}; for (var _i = 0, _a = Object.keys(theme.fonts); _i < _a.length; _i++) { var fontName = _a[_i]; var font = theme.fonts[fontName]; for (var _b = 0, _c = Object.keys(font); _b < _c.length; _b++) { var propName = _c[_b]; var name_1 = fontName + propName.charAt(0).toUpperCase() + propName.slice(1); var value = font[propName]; if (propName === 'fontSize' && typeof value === 'number') { // if it's a number, convert it to px by default like our theming system does value = value + 'px'; } lines[name_1] = value; } } return lines; } //# sourceMappingURL=theme.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/styles/zIndexes.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ZIndexes = void 0; var ZIndexes; (function (ZIndexes) { ZIndexes.Nav = 1; /** * @deprecated Do not use */ ZIndexes.ScrollablePane = 1; ZIndexes.FocusStyle = 1; ZIndexes.Coachmark = 1000; ZIndexes.Layer = 1000000; ZIndexes.KeytipLayer = 1000001; })(ZIndexes = exports.ZIndexes || (exports.ZIndexes = {})); //# sourceMappingURL=zIndexes.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.buildClassMap = void 0; var MergeStyles_1 = __webpack_require__(/*! ../MergeStyles */ "./node_modules/@fluentui/style-utilities/lib-commonjs/MergeStyles.js"); /** * Builds a class names object from a given map. * * @param styles - Map of unprocessed styles. * @returns Map of property name to class name. */ function buildClassMap(styles) { var classes = {}; var _loop_1 = function (styleName) { if (styles.hasOwnProperty(styleName)) { var className_1; Object.defineProperty(classes, styleName, { get: function () { if (className_1 === undefined) { // eslint-disable-next-line @typescript-eslint/no-explicit-any className_1 = (0, MergeStyles_1.mergeStyles)(styles[styleName]).toString(); } return className_1; }, enumerable: true, configurable: true, }); } }; for (var styleName in styles) { _loop_1(styleName); } return classes; } exports.buildClassMap = buildClassMap; //# sourceMappingURL=buildClassMap.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIconClassName = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var icons_1 = __webpack_require__(/*! ./icons */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js"); var defaultIconStyles = { display: 'inline-block', }; /** * Gets an icon classname. You should be able to add this classname to an I tag with no * additional classnames, and render the icon. * * @public */ function getIconClassName(name) { var className = ''; var icon = (0, icons_1.getIcon)(name); if (icon) { className = (0, merge_styles_1.mergeStyles)(icon.subset.className, defaultIconStyles, { selectors: { '::before': { content: "\"".concat(icon.code, "\""), }, }, }); } return className; } exports.getIconClassName = getIconClassName; //# sourceMappingURL=getIconClassName.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setIconOptions = exports.getIcon = exports.registerIconAlias = exports.unregisterIcons = exports.registerIcons = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); 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 ICON_SETTING_NAME = 'icons'; var _iconSettings = utilities_1.GlobalSettings.getValue(ICON_SETTING_NAME, { __options: { disableWarnings: false, warnOnMissingIcons: true, }, __remapped: {}, }); // Reset icon registration on stylesheet resets. var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(function () { for (var name_1 in _iconSettings) { if (_iconSettings.hasOwnProperty(name_1) && !!_iconSettings[name_1].subset) { _iconSettings[name_1].subset.className = undefined; } } }); } /** * Normalizes an icon name for consistent mapping. * Current implementation is to convert the icon name to lower case. * * @param name - Icon name to normalize. * @returns {string} Normalized icon name to use for indexing and mapping. */ var normalizeIconName = function (name) { return name.toLowerCase(); }; /** * Registers a given subset of icons. * * @param iconSubset - the icon subset definition. */ function registerIcons(iconSubset, options) { var subset = tslib_1.__assign(tslib_1.__assign({}, iconSubset), { isRegistered: false, className: undefined }); var icons = iconSubset.icons; // Grab options, optionally mix user provided ones on top. options = options ? tslib_1.__assign(tslib_1.__assign({}, _iconSettings.__options), options) : _iconSettings.__options; for (var iconName in icons) { if (icons.hasOwnProperty(iconName)) { var code = icons[iconName]; var normalizedIconName = normalizeIconName(iconName); if (_iconSettings[normalizedIconName]) { _warnDuplicateIcon(iconName); } else { _iconSettings[normalizedIconName] = { code: code, subset: subset, }; } } } } exports.registerIcons = registerIcons; /** * Unregisters icons by name. * * @param iconNames - List of icons to unregister. */ function unregisterIcons(iconNames) { var options = _iconSettings.__options; var _loop_1 = function (iconName) { var normalizedIconName = normalizeIconName(iconName); if (_iconSettings[normalizedIconName]) { delete _iconSettings[normalizedIconName]; } else { // Warn that we are trying to delete an icon that doesn't exist if (!options.disableWarnings) { (0, utilities_1.warn)("The icon \"".concat(iconName, "\" tried to unregister but was not registered.")); } } // Delete any aliases for this iconName if (_iconSettings.__remapped[normalizedIconName]) { delete _iconSettings.__remapped[normalizedIconName]; } // Delete any items that were an alias for this iconName Object.keys(_iconSettings.__remapped).forEach(function (key) { if (_iconSettings.__remapped[key] === normalizedIconName) { delete _iconSettings.__remapped[key]; } }); }; for (var _i = 0, iconNames_1 = iconNames; _i < iconNames_1.length; _i++) { var iconName = iconNames_1[_i]; _loop_1(iconName); } } exports.unregisterIcons = unregisterIcons; /** * Remaps one icon name to another. */ function registerIconAlias(iconName, mappedToName) { _iconSettings.__remapped[normalizeIconName(iconName)] = normalizeIconName(mappedToName); } exports.registerIconAlias = registerIconAlias; /** * Gets an icon definition. If an icon is requested but the subset has yet to be registered, * it will get registered immediately. * * @public * @param name - Name of icon. */ function getIcon(name) { var icon = undefined; var options = _iconSettings.__options; name = name ? normalizeIconName(name) : ''; name = _iconSettings.__remapped[name] || name; if (name) { icon = _iconSettings[name]; if (icon) { var subset = icon.subset; if (subset && subset.fontFace) { if (!subset.isRegistered) { (0, merge_styles_1.fontFace)(subset.fontFace); subset.isRegistered = true; } if (!subset.className) { subset.className = (0, merge_styles_1.mergeStyles)(subset.style, { fontFamily: subset.fontFace.fontFamily, fontWeight: subset.fontFace.fontWeight || 'normal', fontStyle: subset.fontFace.fontStyle || 'normal', }); } } } else { // eslint-disable-next-line deprecation/deprecation if (!options.disableWarnings && options.warnOnMissingIcons) { (0, utilities_1.warn)("The icon \"".concat(name, "\" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.")); } } } return icon; } exports.getIcon = getIcon; /** * Sets the icon options. * * @public */ function setIconOptions(options) { _iconSettings.__options = tslib_1.__assign(tslib_1.__assign({}, _iconSettings.__options), options); } exports.setIconOptions = setIconOptions; var _missingIcons = []; var _missingIconsTimer = undefined; function _warnDuplicateIcon(iconName) { var options = _iconSettings.__options; var warningDelay = 2000; var maxIconsInMessage = 10; if (!options.disableWarnings) { _missingIcons.push(iconName); if (_missingIconsTimer === undefined) { _missingIconsTimer = setTimeout(function () { (0, utilities_1.warn)("Some icons were re-registered. Applications should only call registerIcons for any given " + "icon once. Redefining what an icon is may have unintended consequences. Duplicates " + "include: \n" + _missingIcons.slice(0, maxIconsInMessage).join(', ') + (_missingIcons.length > maxIconsInMessage ? " (+ ".concat(_missingIcons.length - maxIconsInMessage, " more)") : '')); _missingIconsTimer = undefined; _missingIcons = []; }, warningDelay); } } } //# sourceMappingURL=icons.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIconClassName = exports.setIconOptions = exports.unregisterIcons = exports.registerIconAlias = exports.registerIcons = exports.getIcon = exports.buildClassMap = void 0; var buildClassMap_1 = __webpack_require__(/*! ./buildClassMap */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/buildClassMap.js"); Object.defineProperty(exports, "buildClassMap", ({ enumerable: true, get: function () { return buildClassMap_1.buildClassMap; } })); var icons_1 = __webpack_require__(/*! ./icons */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/icons.js"); Object.defineProperty(exports, "getIcon", ({ enumerable: true, get: function () { return icons_1.getIcon; } })); Object.defineProperty(exports, "registerIcons", ({ enumerable: true, get: function () { return icons_1.registerIcons; } })); Object.defineProperty(exports, "registerIconAlias", ({ enumerable: true, get: function () { return icons_1.registerIconAlias; } })); Object.defineProperty(exports, "unregisterIcons", ({ enumerable: true, get: function () { return icons_1.unregisterIcons; } })); Object.defineProperty(exports, "setIconOptions", ({ enumerable: true, get: function () { return icons_1.setIconOptions; } })); var getIconClassName_1 = __webpack_require__(/*! ./getIconClassName */ "./node_modules/@fluentui/style-utilities/lib-commonjs/utilities/getIconClassName.js"); Object.defineProperty(exports, "getIconClassName", ({ enumerable: true, get: function () { return getIconClassName_1.getIconClassName; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/style-utilities/lib-commonjs/version.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/style-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/style-utilities', '8.9.17'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FluentTheme = void 0; var createTheme_1 = __webpack_require__(/*! ./createTheme */ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js"); exports.FluentTheme = (0, createTheme_1.createTheme)({}); //# sourceMappingURL=FluentTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; // When adding or removing a color, make sure you keep this consistent with IColorClassNames // by adding the color variants. exports.DefaultPalette = { themeDarker: '#004578', themeDark: '#005a9e', themeDarkAlt: '#106ebe', themePrimary: '#0078d4', themeSecondary: '#2b88d8', themeTertiary: '#71afe5', themeLight: '#c7e0f4', themeLighter: '#deecf9', themeLighterAlt: '#eff6fc', black: '#000000', blackTranslucent40: 'rgba(0,0,0,.4)', neutralDark: '#201f1e', neutralPrimary: '#323130', neutralPrimaryAlt: '#3b3a39', neutralSecondary: '#605e5c', neutralSecondaryAlt: '#8a8886', neutralTertiary: '#a19f9d', neutralTertiaryAlt: '#c8c6c4', neutralQuaternary: '#d2d0ce', neutralQuaternaryAlt: '#e1dfdd', neutralLight: '#edebe9', neutralLighter: '#f3f2f1', neutralLighterAlt: '#faf9f8', accent: '#0078d4', white: '#ffffff', whiteTranslucent40: 'rgba(255,255,255,.4)', yellowDark: '#d29200', yellow: '#ffb900', yellowLight: '#fff100', orange: '#d83b01', orangeLight: '#ea4300', orangeLighter: '#ff8c00', redDark: '#a4262c', red: '#e81123', magentaDark: '#5c005c', magenta: '#b4009e', magentaLight: '#e3008c', purpleDark: '#32145a', purple: '#5c2d91', purpleLight: '#b4a0ff', blueDark: '#002050', blueMid: '#00188f', blue: '#0078d4', blueLight: '#00bcf2', tealDark: '#004b50', teal: '#008272', tealLight: '#00b294', greenDark: '#004b1c', green: '#107c10', greenLight: '#bad80a', }; //# sourceMappingURL=DefaultPalette.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SharedColors = exports.NeutralColors = exports.CommunicationColors = void 0; var CommunicationColors; (function (CommunicationColors) { CommunicationColors.shade30 = '#004578'; CommunicationColors.shade20 = '#005a9e'; CommunicationColors.shade10 = '#106ebe'; CommunicationColors.primary = '#0078d4'; CommunicationColors.tint10 = '#2b88d8'; CommunicationColors.tint20 = '#c7e0f4'; CommunicationColors.tint30 = '#deecf9'; CommunicationColors.tint40 = '#eff6fc'; })(CommunicationColors = exports.CommunicationColors || (exports.CommunicationColors = {})); var NeutralColors; (function (NeutralColors) { NeutralColors.black = '#000000'; NeutralColors.gray220 = '#11100f'; NeutralColors.gray210 = '#161514'; NeutralColors.gray200 = '#1b1a19'; NeutralColors.gray190 = '#201f1e'; NeutralColors.gray180 = '#252423'; NeutralColors.gray170 = '#292827'; NeutralColors.gray160 = '#323130'; NeutralColors.gray150 = '#3b3a39'; NeutralColors.gray140 = '#484644'; NeutralColors.gray130 = '#605e5c'; NeutralColors.gray120 = '#797775'; NeutralColors.gray110 = '#8a8886'; NeutralColors.gray100 = '#979593'; NeutralColors.gray90 = '#a19f9d'; NeutralColors.gray80 = '#b3b0ad'; NeutralColors.gray70 = '#bebbb8'; NeutralColors.gray60 = '#c8c6c4'; NeutralColors.gray50 = '#d2d0ce'; NeutralColors.gray40 = '#e1dfdd'; NeutralColors.gray30 = '#edebe9'; NeutralColors.gray20 = '#f3f2f1'; NeutralColors.gray10 = '#faf9f8'; NeutralColors.white = '#ffffff'; })(NeutralColors = exports.NeutralColors || (exports.NeutralColors = {})); var SharedColors; (function (SharedColors) { SharedColors.pinkRed10 = '#750b1c'; SharedColors.red20 = '#a4262c'; SharedColors.red10 = '#d13438'; SharedColors.redOrange20 = '#603d30'; SharedColors.redOrange10 = '#da3b01'; SharedColors.orange30 = '#8e562e'; SharedColors.orange20 = '#ca5010'; SharedColors.orange10 = '#ffaa44'; SharedColors.yellow10 = '#fce100'; SharedColors.orangeYellow20 = '#986f0b'; SharedColors.orangeYellow10 = '#c19c00'; SharedColors.yellowGreen10 = '#8cbd18'; SharedColors.green20 = '#0b6a0b'; SharedColors.green10 = '#498205'; SharedColors.greenCyan10 = '#00ad56'; SharedColors.cyan40 = '#005e50'; SharedColors.cyan30 = '#005b70'; SharedColors.cyan20 = '#038387'; SharedColors.cyan10 = '#00b7c3'; SharedColors.cyanBlue20 = '#004e8c'; SharedColors.cyanBlue10 = '#0078d4'; SharedColors.blue10 = '#4f6bed'; SharedColors.blueMagenta40 = '#373277'; SharedColors.blueMagenta30 = '#5c2e91'; SharedColors.blueMagenta20 = '#8764b8'; SharedColors.blueMagenta10 = '#8378de'; SharedColors.magenta20 = '#881798'; SharedColors.magenta10 = '#c239b3'; SharedColors.magentaPink20 = '#9b0062'; SharedColors.magentaPink10 = '#e3008c'; SharedColors.gray40 = '#393939'; SharedColors.gray30 = '#7a7574'; SharedColors.gray20 = '#69797e'; SharedColors.gray10 = '#a0aeb2'; })(SharedColors = exports.SharedColors || (exports.SharedColors = {})); //# sourceMappingURL=FluentColors.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/colors/index.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultPalette = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FluentColors */ "./node_modules/@fluentui/theme/lib-commonjs/colors/FluentColors.js"), exports); var DefaultPalette_1 = __webpack_require__(/*! ./DefaultPalette */ "./node_modules/@fluentui/theme/lib-commonjs/colors/DefaultPalette.js"); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return DefaultPalette_1.DefaultPalette; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/createTheme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createTheme = void 0; var index_1 = __webpack_require__(/*! ./colors/index */ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js"); var index_2 = __webpack_require__(/*! ./effects/index */ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js"); var index_3 = __webpack_require__(/*! ./fonts/index */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js"); var mergeThemes_1 = __webpack_require__(/*! ./mergeThemes */ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js"); var index_4 = __webpack_require__(/*! ./spacing/index */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js"); var makeSemanticColors_1 = __webpack_require__(/*! ./utilities/makeSemanticColors */ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js"); /** * Creates a custom theme definition. * @param theme - Partial theme object. * @param depComments - Whether to include deprecated tags as comments for deprecated slots. */ function createTheme(theme, depComments) { if (theme === void 0) { theme = {}; } if (depComments === void 0) { depComments = false; } var isInverted = !!theme.isInverted; var baseTheme = { palette: index_1.DefaultPalette, effects: index_2.DefaultEffects, fonts: index_3.DefaultFontStyles, spacing: index_4.DefaultSpacing, isInverted: isInverted, disableGlobalClassNames: false, semanticColors: (0, makeSemanticColors_1.makeSemanticColors)(index_1.DefaultPalette, index_2.DefaultEffects, undefined, isInverted, depComments), rtl: undefined, }; return (0, mergeThemes_1.mergeThemes)(baseTheme, theme); } exports.createTheme = createTheme; //# sourceMappingURL=createTheme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultEffects = void 0; var FluentDepths_1 = __webpack_require__(/*! ./FluentDepths */ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js"); exports.DefaultEffects = { elevation4: FluentDepths_1.Depths.depth4, elevation8: FluentDepths_1.Depths.depth8, elevation16: FluentDepths_1.Depths.depth16, elevation64: FluentDepths_1.Depths.depth64, roundedCorner2: '2px', roundedCorner4: '4px', roundedCorner6: '6px', }; //# sourceMappingURL=DefaultEffects.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Depths = void 0; var Depths; (function (Depths) { Depths.depth0 = '0 0 0 0 transparent'; Depths.depth4 = '0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)'; Depths.depth8 = '0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)'; Depths.depth16 = '0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)'; Depths.depth64 = '0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)'; })(Depths = exports.Depths || (exports.Depths = {})); //# sourceMappingURL=FluentDepths.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/effects/index.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Depths = exports.DefaultEffects = void 0; var DefaultEffects_1 = __webpack_require__(/*! ./DefaultEffects */ "./node_modules/@fluentui/theme/lib-commonjs/effects/DefaultEffects.js"); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return DefaultEffects_1.DefaultEffects; } })); var FluentDepths_1 = __webpack_require__(/*! ./FluentDepths */ "./node_modules/@fluentui/theme/lib-commonjs/effects/FluentDepths.js"); Object.defineProperty(exports, "Depths", ({ enumerable: true, get: function () { return FluentDepths_1.Depths; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var FluentFonts_1 = __webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"); var createFontStyles_1 = __webpack_require__(/*! ./createFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); // Default urls. var DefaultBaseUrl = 'https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets'; // Standard font styling. exports.DefaultFontStyles = (0, createFontStyles_1.createFontStyles)((0, utilities_1.getLanguage)()); function _registerFontFace(fontFamily, url, fontWeight, localFontName) { fontFamily = "'".concat(fontFamily, "'"); var localFontSrc = localFontName !== undefined ? "local('".concat(localFontName, "'),") : ''; (0, merge_styles_1.fontFace)({ fontFamily: fontFamily, src: localFontSrc + "url('".concat(url, ".woff2') format('woff2'),") + "url('".concat(url, ".woff') format('woff')"), fontWeight: fontWeight, fontStyle: 'normal', fontDisplay: 'swap', }); } function _registerFontFaceSet(baseUrl, fontFamily, cdnFolder, cdnFontName, localFontName) { if (cdnFontName === void 0) { cdnFontName = 'segoeui'; } var urlBase = "".concat(baseUrl, "/").concat(cdnFolder, "/").concat(cdnFontName); _registerFontFace(fontFamily, urlBase + '-light', FluentFonts_1.FontWeights.light, localFontName && localFontName + ' Light'); _registerFontFace(fontFamily, urlBase + '-semilight', FluentFonts_1.FontWeights.semilight, localFontName && localFontName + ' SemiLight'); _registerFontFace(fontFamily, urlBase + '-regular', FluentFonts_1.FontWeights.regular, localFontName); _registerFontFace(fontFamily, urlBase + '-semibold', FluentFonts_1.FontWeights.semibold, localFontName && localFontName + ' SemiBold'); _registerFontFace(fontFamily, urlBase + '-bold', FluentFonts_1.FontWeights.bold, localFontName && localFontName + ' Bold'); } function registerDefaultFontFaces(baseUrl) { if (baseUrl) { var fontUrl = "".concat(baseUrl, "/fonts"); // Produce @font-face definitions for all supported web fonts. _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Thai, 'leelawadeeui-thai', 'leelawadeeui'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Arabic, 'segoeui-arabic'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Cyrillic, 'segoeui-cyrillic'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.EastEuropean, 'segoeui-easteuropean'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Greek, 'segoeui-greek'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Hebrew, 'segoeui-hebrew'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Vietnamese, 'segoeui-vietnamese'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.WestEuropean, 'segoeui-westeuropean', 'segoeui', 'Segoe UI'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontFamilies.Selawik, 'selawik', 'selawik'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Armenian, 'segoeui-armenian'); _registerFontFaceSet(fontUrl, FluentFonts_1.LocalizedFontNames.Georgian, 'segoeui-georgian'); // Leelawadee UI (Thai) does not have a 'light' weight, so we override // the font-face generated above to use the 'semilight' weight instead. _registerFontFace('Leelawadee UI Web', "".concat(fontUrl, "/leelawadeeui-thai/leelawadeeui-semilight"), FluentFonts_1.FontWeights.light); // Leelawadee UI (Thai) does not have a 'semibold' weight, so we override // the font-face generated above to use the 'bold' weight instead. _registerFontFace('Leelawadee UI Web', "".concat(fontUrl, "/leelawadeeui-thai/leelawadeeui-bold"), FluentFonts_1.FontWeights.semibold); } } exports.registerDefaultFontFaces = registerDefaultFontFaces; /** * Reads the fontBaseUrl from window.FabricConfig.fontBaseUrl or falls back to a default. */ function _getFontBaseUrl() { var _a, _b; // eslint-disable-next-line @typescript-eslint/no-explicit-any var fabricConfig = (_a = (0, utilities_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.FabricConfig; return (_b = fabricConfig === null || fabricConfig === void 0 ? void 0 : fabricConfig.fontBaseUrl) !== null && _b !== void 0 ? _b : DefaultBaseUrl; } /** * Register the font faces. */ registerDefaultFontFaces(_getFontBaseUrl()); //# sourceMappingURL=DefaultFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IconFontSizes = exports.FontWeights = exports.FontSizes = exports.LocalizedFontFamilies = exports.LocalizedFontNames = void 0; // Font face names to be registered. var LocalizedFontNames; (function (LocalizedFontNames) { LocalizedFontNames.Arabic = 'Segoe UI Web (Arabic)'; LocalizedFontNames.Cyrillic = 'Segoe UI Web (Cyrillic)'; LocalizedFontNames.EastEuropean = 'Segoe UI Web (East European)'; LocalizedFontNames.Greek = 'Segoe UI Web (Greek)'; LocalizedFontNames.Hebrew = 'Segoe UI Web (Hebrew)'; LocalizedFontNames.Thai = 'Leelawadee UI Web'; LocalizedFontNames.Vietnamese = 'Segoe UI Web (Vietnamese)'; LocalizedFontNames.WestEuropean = 'Segoe UI Web (West European)'; LocalizedFontNames.Selawik = 'Selawik Web'; LocalizedFontNames.Armenian = 'Segoe UI Web (Armenian)'; LocalizedFontNames.Georgian = 'Segoe UI Web (Georgian)'; })(LocalizedFontNames = exports.LocalizedFontNames || (exports.LocalizedFontNames = {})); // Font families with fallbacks, for the general regions. var LocalizedFontFamilies; (function (LocalizedFontFamilies) { LocalizedFontFamilies.Arabic = "'".concat(LocalizedFontNames.Arabic, "'"); LocalizedFontFamilies.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun"; LocalizedFontFamilies.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu"; LocalizedFontFamilies.Cyrillic = "'".concat(LocalizedFontNames.Cyrillic, "'"); LocalizedFontFamilies.EastEuropean = "'".concat(LocalizedFontNames.EastEuropean, "'"); LocalizedFontFamilies.Greek = "'".concat(LocalizedFontNames.Greek, "'"); LocalizedFontFamilies.Hebrew = "'".concat(LocalizedFontNames.Hebrew, "'"); LocalizedFontFamilies.Hindi = "'Nirmala UI'"; LocalizedFontFamilies.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka"; LocalizedFontFamilies.Korean = "'Malgun Gothic', Gulim"; LocalizedFontFamilies.Selawik = "'".concat(LocalizedFontNames.Selawik, "'"); LocalizedFontFamilies.Thai = "'Leelawadee UI Web', 'Kmer UI'"; LocalizedFontFamilies.Vietnamese = "'".concat(LocalizedFontNames.Vietnamese, "'"); LocalizedFontFamilies.WestEuropean = "'".concat(LocalizedFontNames.WestEuropean, "'"); LocalizedFontFamilies.Armenian = "'".concat(LocalizedFontNames.Armenian, "'"); LocalizedFontFamilies.Georgian = "'".concat(LocalizedFontNames.Georgian, "'"); })(LocalizedFontFamilies = exports.LocalizedFontFamilies || (exports.LocalizedFontFamilies = {})); // Standard font sizes. var FontSizes; (function (FontSizes) { FontSizes.size10 = '10px'; FontSizes.size12 = '12px'; FontSizes.size14 = '14px'; FontSizes.size16 = '16px'; FontSizes.size18 = '18px'; FontSizes.size20 = '20px'; FontSizes.size24 = '24px'; FontSizes.size28 = '28px'; FontSizes.size32 = '32px'; FontSizes.size42 = '42px'; FontSizes.size68 = '68px'; FontSizes.mini = '10px'; FontSizes.xSmall = '10px'; FontSizes.small = '12px'; FontSizes.smallPlus = '12px'; FontSizes.medium = '14px'; FontSizes.mediumPlus = '16px'; FontSizes.icon = '16px'; FontSizes.large = '18px'; FontSizes.xLarge = '20px'; FontSizes.xLargePlus = '24px'; FontSizes.xxLarge = '28px'; FontSizes.xxLargePlus = '32px'; FontSizes.superLarge = '42px'; FontSizes.mega = '68px'; })(FontSizes = exports.FontSizes || (exports.FontSizes = {})); // Standard font weights. var FontWeights; (function (FontWeights) { FontWeights.light = 100; FontWeights.semilight = 300; FontWeights.regular = 400; FontWeights.semibold = 600; FontWeights.bold = 700; })(FontWeights = exports.FontWeights || (exports.FontWeights = {})); // Standard Icon Sizes. var IconFontSizes; (function (IconFontSizes) { IconFontSizes.xSmall = '10px'; IconFontSizes.small = '12px'; IconFontSizes.medium = '16px'; IconFontSizes.large = '20px'; })(IconFontSizes = exports.IconFontSizes || (exports.IconFontSizes = {})); //# sourceMappingURL=FluentFonts.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFontStyles = void 0; var FluentFonts_1 = __webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"); // Fallback fonts, if specified system or web fonts are unavailable. var FontFamilyFallbacks = "'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"; // By default, we favor system fonts for the default. // All localized fonts use a web font and never use the system font. var defaultFontFamily = "'Segoe UI', '".concat(FluentFonts_1.LocalizedFontNames.WestEuropean, "'"); // Mapping of language prefix to to font family. var LanguageToFontMap = { ar: FluentFonts_1.LocalizedFontFamilies.Arabic, bg: FluentFonts_1.LocalizedFontFamilies.Cyrillic, cs: FluentFonts_1.LocalizedFontFamilies.EastEuropean, el: FluentFonts_1.LocalizedFontFamilies.Greek, et: FluentFonts_1.LocalizedFontFamilies.EastEuropean, he: FluentFonts_1.LocalizedFontFamilies.Hebrew, hi: FluentFonts_1.LocalizedFontFamilies.Hindi, hr: FluentFonts_1.LocalizedFontFamilies.EastEuropean, hu: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ja: FluentFonts_1.LocalizedFontFamilies.Japanese, kk: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ko: FluentFonts_1.LocalizedFontFamilies.Korean, lt: FluentFonts_1.LocalizedFontFamilies.EastEuropean, lv: FluentFonts_1.LocalizedFontFamilies.EastEuropean, pl: FluentFonts_1.LocalizedFontFamilies.EastEuropean, ru: FluentFonts_1.LocalizedFontFamilies.Cyrillic, sk: FluentFonts_1.LocalizedFontFamilies.EastEuropean, 'sr-latn': FluentFonts_1.LocalizedFontFamilies.EastEuropean, th: FluentFonts_1.LocalizedFontFamilies.Thai, tr: FluentFonts_1.LocalizedFontFamilies.EastEuropean, uk: FluentFonts_1.LocalizedFontFamilies.Cyrillic, vi: FluentFonts_1.LocalizedFontFamilies.Vietnamese, 'zh-hans': FluentFonts_1.LocalizedFontFamilies.ChineseSimplified, 'zh-hant': FluentFonts_1.LocalizedFontFamilies.ChineseTraditional, hy: FluentFonts_1.LocalizedFontFamilies.Armenian, ka: FluentFonts_1.LocalizedFontFamilies.Georgian, }; function _fontFamilyWithFallbacks(fontFamily) { return "".concat(fontFamily, ", ").concat(FontFamilyFallbacks); } /** * If there is a localized font for this language, return that. * Returns undefined if there is no localized font for that language. */ function _getLocalizedFontFamily(language) { for (var lang in LanguageToFontMap) { if (LanguageToFontMap.hasOwnProperty(lang) && language && lang.indexOf(language) === 0) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return LanguageToFontMap[lang]; } } return defaultFontFamily; } function _createFont(size, weight, fontFamily) { return { fontFamily: fontFamily, MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontSize: size, fontWeight: weight, }; } function createFontStyles(localeCode) { var localizedFont = _getLocalizedFontFamily(localeCode); var fontFamilyWithFallback = _fontFamilyWithFallbacks(localizedFont); var fontStyles = { tiny: _createFont(FluentFonts_1.FontSizes.mini, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), xSmall: _createFont(FluentFonts_1.FontSizes.xSmall, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), small: _createFont(FluentFonts_1.FontSizes.small, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), smallPlus: _createFont(FluentFonts_1.FontSizes.smallPlus, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), medium: _createFont(FluentFonts_1.FontSizes.medium, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), mediumPlus: _createFont(FluentFonts_1.FontSizes.mediumPlus, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), large: _createFont(FluentFonts_1.FontSizes.large, FluentFonts_1.FontWeights.regular, fontFamilyWithFallback), xLarge: _createFont(FluentFonts_1.FontSizes.xLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xLargePlus: _createFont(FluentFonts_1.FontSizes.xLargePlus, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xxLarge: _createFont(FluentFonts_1.FontSizes.xxLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), xxLargePlus: _createFont(FluentFonts_1.FontSizes.xxLargePlus, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), superLarge: _createFont(FluentFonts_1.FontSizes.superLarge, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), mega: _createFont(FluentFonts_1.FontSizes.mega, FluentFonts_1.FontWeights.semibold, fontFamilyWithFallback), }; return fontStyles; } exports.createFontStyles = createFontStyles; //# sourceMappingURL=createFontStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.DefaultFontStyles = exports.createFontStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FluentFonts */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/FluentFonts.js"), exports); var createFontStyles_1 = __webpack_require__(/*! ./createFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/createFontStyles.js"); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return createFontStyles_1.createFontStyles; } })); var DefaultFontStyles_1 = __webpack_require__(/*! ./DefaultFontStyles */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/DefaultFontStyles.js"); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return DefaultFontStyles_1.DefaultFontStyles; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return DefaultFontStyles_1.registerDefaultFontFaces; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/index.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/index.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FluentTheme = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./mergeThemes */ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./types/index */ "./node_modules/@fluentui/theme/lib-commonjs/types/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./colors/index */ "./node_modules/@fluentui/theme/lib-commonjs/colors/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./effects/index */ "./node_modules/@fluentui/theme/lib-commonjs/effects/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./spacing/index */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./motion/index */ "./node_modules/@fluentui/theme/lib-commonjs/motion/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./fonts/index */ "./node_modules/@fluentui/theme/lib-commonjs/fonts/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./createTheme */ "./node_modules/@fluentui/theme/lib-commonjs/createTheme.js"), exports); var FluentTheme_1 = __webpack_require__(/*! ./FluentTheme */ "./node_modules/@fluentui/theme/lib-commonjs/FluentTheme.js"); Object.defineProperty(exports, "FluentTheme", ({ enumerable: true, get: function () { return FluentTheme_1.FluentTheme; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/theme/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/mergeThemes.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeThemes = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var makeSemanticColors_1 = __webpack_require__(/*! ./utilities/makeSemanticColors */ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js"); /** * Merge a partial/full theme into a full theme and returns a merged full theme. */ function mergeThemes(theme, partialTheme) { var _a, _b, _c; if (partialTheme === void 0) { partialTheme = {}; } var mergedTheme = (0, utilities_1.merge)({}, theme, partialTheme, { semanticColors: (0, makeSemanticColors_1.getSemanticColors)(partialTheme.palette, partialTheme.effects, partialTheme.semanticColors, partialTheme.isInverted === undefined ? theme.isInverted : partialTheme.isInverted), }); if (((_a = partialTheme.palette) === null || _a === void 0 ? void 0 : _a.themePrimary) && !((_b = partialTheme.palette) === null || _b === void 0 ? void 0 : _b.accent)) { mergedTheme.palette.accent = partialTheme.palette.themePrimary; } if (partialTheme.defaultFontStyle) { for (var _i = 0, _d = Object.keys(mergedTheme.fonts); _i < _d.length; _i++) { var fontStyle = _d[_i]; mergedTheme.fonts[fontStyle] = (0, utilities_1.merge)(mergedTheme.fonts[fontStyle], partialTheme.defaultFontStyle, (_c = partialTheme === null || partialTheme === void 0 ? void 0 : partialTheme.fonts) === null || _c === void 0 ? void 0 : _c[fontStyle]); } } return mergedTheme; } exports.mergeThemes = mergeThemes; //# sourceMappingURL=mergeThemes.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationStyles = exports.AnimationVariables = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); /* Register the keyframes */ var EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)'; var EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)'; var DURATION_1 = '0.167s'; var DURATION_2 = '0.267s'; var DURATION_3 = '0.367s'; var DURATION_4 = '0.467s'; var FADE_IN = (0, merge_styles_1.keyframes)({ from: { opacity: 0 }, to: { opacity: 1 }, }); var FADE_OUT = (0, merge_styles_1.keyframes)({ from: { opacity: 1 }, to: { opacity: 0, visibility: 'hidden' }, }); var SLIDE_RIGHT_IN10 = _createSlideInX(-10); var SLIDE_RIGHT_IN20 = _createSlideInX(-20); var SLIDE_RIGHT_IN40 = _createSlideInX(-40); var SLIDE_RIGHT_IN400 = _createSlideInX(-400); var SLIDE_LEFT_IN10 = _createSlideInX(10); var SLIDE_LEFT_IN20 = _createSlideInX(20); var SLIDE_LEFT_IN40 = _createSlideInX(40); var SLIDE_LEFT_IN400 = _createSlideInX(400); var SLIDE_UP_IN10 = _createSlideInY(10); var SLIDE_UP_IN20 = _createSlideInY(20); var SLIDE_DOWN_IN10 = _createSlideInY(-10); var SLIDE_DOWN_IN20 = _createSlideInY(-20); var SLIDE_RIGHT_OUT10 = _createSlideOutX(10); var SLIDE_RIGHT_OUT20 = _createSlideOutX(20); var SLIDE_RIGHT_OUT40 = _createSlideOutX(40); var SLIDE_RIGHT_OUT400 = _createSlideOutX(400); var SLIDE_LEFT_OUT10 = _createSlideOutX(-10); var SLIDE_LEFT_OUT20 = _createSlideOutX(-20); var SLIDE_LEFT_OUT40 = _createSlideOutX(-40); var SLIDE_LEFT_OUT400 = _createSlideOutX(-400); var SLIDE_UP_OUT10 = _createSlideOutY(-10); var SLIDE_UP_OUT20 = _createSlideOutY(-20); var SLIDE_DOWN_OUT10 = _createSlideOutY(10); var SLIDE_DOWN_OUT20 = _createSlideOutY(20); var SCALE_UP100 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(.98,.98,1)' }, to: { transform: 'scale3d(1,1,1)' }, }); var SCALE_DOWN98 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1,1,1)' }, to: { transform: 'scale3d(.98,.98,1)' }, }); var SCALE_DOWN100 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1.03,1.03,1)' }, to: { transform: 'scale3d(1,1,1)' }, }); var SCALE_UP103 = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1,1,1)' }, to: { transform: 'scale3d(1.03,1.03,1)' }, }); var ROTATE90 = (0, merge_styles_1.keyframes)({ from: { transform: 'rotateZ(0deg)' }, to: { transform: 'rotateZ(90deg)' }, }); var ROTATE_N90 = (0, merge_styles_1.keyframes)({ from: { transform: 'rotateZ(0deg)' }, to: { transform: 'rotateZ(-90deg)' }, }); /** * Exporting raw duraction values and easing functions to be used in custom animations */ exports.AnimationVariables = { easeFunction1: EASING_FUNCTION_1, easeFunction2: EASING_FUNCTION_2, durationValue1: DURATION_1, durationValue2: DURATION_2, durationValue3: DURATION_3, durationValue4: DURATION_4, }; /** * All Fabric standard animations, exposed as json objects referencing predefined * keyframes. These objects can be mixed in with other class definitions. */ exports.AnimationStyles = { slideRightIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN10), DURATION_3, EASING_FUNCTION_1), slideRightIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN20), DURATION_3, EASING_FUNCTION_1), slideRightIn40: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN40), DURATION_3, EASING_FUNCTION_1), slideRightIn400: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_RIGHT_IN400), DURATION_3, EASING_FUNCTION_1), slideLeftIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN10), DURATION_3, EASING_FUNCTION_1), slideLeftIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN20), DURATION_3, EASING_FUNCTION_1), slideLeftIn40: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN40), DURATION_3, EASING_FUNCTION_1), slideLeftIn400: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_LEFT_IN400), DURATION_3, EASING_FUNCTION_1), slideUpIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_UP_IN10), DURATION_3, EASING_FUNCTION_1), slideUpIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_UP_IN20), DURATION_3, EASING_FUNCTION_1), slideDownIn10: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_DOWN_IN10), DURATION_3, EASING_FUNCTION_1), slideDownIn20: _createAnimation("".concat(FADE_IN, ",").concat(SLIDE_DOWN_IN20), DURATION_3, EASING_FUNCTION_1), slideRightOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT10), DURATION_3, EASING_FUNCTION_1), slideRightOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT20), DURATION_3, EASING_FUNCTION_1), slideRightOut40: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT40), DURATION_3, EASING_FUNCTION_1), slideRightOut400: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_RIGHT_OUT400), DURATION_3, EASING_FUNCTION_1), slideLeftOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT10), DURATION_3, EASING_FUNCTION_1), slideLeftOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT20), DURATION_3, EASING_FUNCTION_1), slideLeftOut40: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT40), DURATION_3, EASING_FUNCTION_1), slideLeftOut400: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_LEFT_OUT400), DURATION_3, EASING_FUNCTION_1), slideUpOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_UP_OUT10), DURATION_3, EASING_FUNCTION_1), slideUpOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_UP_OUT20), DURATION_3, EASING_FUNCTION_1), slideDownOut10: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_DOWN_OUT10), DURATION_3, EASING_FUNCTION_1), slideDownOut20: _createAnimation("".concat(FADE_OUT, ",").concat(SLIDE_DOWN_OUT20), DURATION_3, EASING_FUNCTION_1), scaleUpIn100: _createAnimation("".concat(FADE_IN, ",").concat(SCALE_UP100), DURATION_3, EASING_FUNCTION_1), scaleDownIn100: _createAnimation("".concat(FADE_IN, ",").concat(SCALE_DOWN100), DURATION_3, EASING_FUNCTION_1), scaleUpOut103: _createAnimation("".concat(FADE_OUT, ",").concat(SCALE_UP103), DURATION_1, EASING_FUNCTION_2), scaleDownOut98: _createAnimation("".concat(FADE_OUT, ",").concat(SCALE_DOWN98), DURATION_1, EASING_FUNCTION_2), fadeIn100: _createAnimation(FADE_IN, DURATION_1, EASING_FUNCTION_2), fadeIn200: _createAnimation(FADE_IN, DURATION_2, EASING_FUNCTION_2), fadeIn400: _createAnimation(FADE_IN, DURATION_3, EASING_FUNCTION_2), fadeIn500: _createAnimation(FADE_IN, DURATION_4, EASING_FUNCTION_2), fadeOut100: _createAnimation(FADE_OUT, DURATION_1, EASING_FUNCTION_2), fadeOut200: _createAnimation(FADE_OUT, DURATION_2, EASING_FUNCTION_2), fadeOut400: _createAnimation(FADE_OUT, DURATION_3, EASING_FUNCTION_2), fadeOut500: _createAnimation(FADE_OUT, DURATION_4, EASING_FUNCTION_2), rotate90deg: _createAnimation(ROTATE90, '0.1s', EASING_FUNCTION_2), rotateN90deg: _createAnimation(ROTATE_N90, '0.1s', EASING_FUNCTION_2), // expandCollapse 100/200/400, delay 100/200 }; function _createAnimation(animationName, animationDuration, animationTimingFunction) { return { animationName: animationName, animationDuration: animationDuration, animationTimingFunction: animationTimingFunction, animationFillMode: 'both', }; } function _createSlideInX(fromX) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(".concat(fromX, "px,0,0)"), pointerEvents: 'none' }, to: { transform: "translate3d(0,0,0)", pointerEvents: 'auto' }, }); } function _createSlideInY(fromY) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,".concat(fromY, "px,0)"), pointerEvents: 'none' }, to: { transform: "translate3d(0,0,0)", pointerEvents: 'auto' }, }); } function _createSlideOutX(toX) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,0,0)" }, to: { transform: "translate3d(".concat(toX, "px,0,0)") }, }); } function _createSlideOutY(toY) { return (0, merge_styles_1.keyframes)({ from: { transform: "translate3d(0,0,0)" }, to: { transform: "translate3d(0,".concat(toY, "px,0)") }, }); } //# sourceMappingURL=AnimationStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MotionAnimations = exports.MotionTimings = exports.MotionDurations = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var fadeInAnimationName = (0, merge_styles_1.keyframes)({ from: { opacity: 0 }, to: { opacity: 1 }, }); var fadeOutAnimationName = (0, merge_styles_1.keyframes)({ from: { opacity: 1 }, to: { opacity: 0 }, }); var scaleDownInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1.15, 1.15, 1)' }, to: { transform: 'scale3d(1, 1, 1)' }, }); var scaleDownOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'scale3d(1, 1, 1)' }, to: { transform: 'scale3d(0.9, 0.9, 1)' }, }); var slideLeftOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(-48px, 0, 0)' }, }); var slideRightOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(48px, 0, 0)' }, }); var slideLeftInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(48px, 0, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideRightInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(-48px, 0, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideUpOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(0, -48px, 0)' }, }); var slideDownOutAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 0, 0)' }, to: { transform: 'translate3d(0, 48px, 0)' }, }); var slideUpInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, 48px, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var slideDownInAnimationName = (0, merge_styles_1.keyframes)({ from: { transform: 'translate3d(0, -48px, 0)' }, to: { transform: 'translate3d(0, 0, 0)' }, }); var MotionDurations; (function (MotionDurations) { MotionDurations.duration1 = '100ms'; MotionDurations.duration2 = '200ms'; MotionDurations.duration3 = '300ms'; MotionDurations.duration4 = '400ms'; })(MotionDurations = exports.MotionDurations || (exports.MotionDurations = {})); var MotionTimings; (function (MotionTimings) { MotionTimings.accelerate = 'cubic-bezier(0.9, 0.1, 1, 0.2)'; MotionTimings.decelerate = 'cubic-bezier(0.1, 0.9, 0.2, 1)'; MotionTimings.linear = 'cubic-bezier(0, 0, 1, 1)'; MotionTimings.standard = 'cubic-bezier(0.8, 0, 0.2, 1)'; })(MotionTimings = exports.MotionTimings || (exports.MotionTimings = {})); function _createAnimation(animationName, animationDuration, animationTimingFunction) { return "".concat(animationName, " ").concat(animationDuration, " ").concat(animationTimingFunction); } var MotionAnimations; (function (MotionAnimations) { MotionAnimations.fadeIn = _createAnimation(fadeInAnimationName, MotionDurations.duration1, MotionTimings.linear); MotionAnimations.fadeOut = _createAnimation(fadeOutAnimationName, MotionDurations.duration1, MotionTimings.linear); MotionAnimations.scaleDownIn = _createAnimation(scaleDownInAnimationName, MotionDurations.duration3, MotionTimings.decelerate); MotionAnimations.scaleDownOut = _createAnimation(scaleDownOutAnimationName, MotionDurations.duration3, MotionTimings.decelerate); MotionAnimations.slideLeftOut = _createAnimation(slideLeftOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideRightOut = _createAnimation(slideRightOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideLeftIn = _createAnimation(slideLeftInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideRightIn = _createAnimation(slideRightInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideUpOut = _createAnimation(slideUpOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideDownOut = _createAnimation(slideDownOutAnimationName, MotionDurations.duration1, MotionTimings.accelerate); MotionAnimations.slideUpIn = _createAnimation(slideUpInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); MotionAnimations.slideDownIn = _createAnimation(slideDownInAnimationName, MotionDurations.duration1, MotionTimings.decelerate); })(MotionAnimations = exports.MotionAnimations || (exports.MotionAnimations = {})); //# sourceMappingURL=FluentMotion.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/motion/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/motion/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__(/*! ./FluentMotion */ "./node_modules/@fluentui/theme/lib-commonjs/motion/FluentMotion.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./AnimationStyles */ "./node_modules/@fluentui/theme/lib-commonjs/motion/AnimationStyles.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultSpacing = void 0; exports.DefaultSpacing = { s2: '4px', s1: '8px', m: '16px', l1: '20px', l2: '32px', }; //# sourceMappingURL=DefaultSpacing.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/spacing/index.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultSpacing = void 0; var DefaultSpacing_1 = __webpack_require__(/*! ./DefaultSpacing */ "./node_modules/@fluentui/theme/lib-commonjs/spacing/DefaultSpacing.js"); Object.defineProperty(exports, "DefaultSpacing", ({ enumerable: true, get: function () { return DefaultSpacing_1.DefaultSpacing; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Theme.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/types/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/types/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__(/*! ./Theme */ "./node_modules/@fluentui/theme/lib-commonjs/types/Theme.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/theme/lib-commonjs/utilities/makeSemanticColors.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSemanticColors = exports.makeSemanticColors = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** Generates all the semantic slot colors based on the theme so far * We'll use these as fallbacks for semantic slots that the passed in theme did not define. * The caller must still mix in the customized semantic slots at the end. */ function makeSemanticColors(p, e, s, isInverted, depComments) { if (depComments === void 0) { depComments = false; } var semanticColors = tslib_1.__assign({ primaryButtonBorder: 'transparent', errorText: !isInverted ? '#a4262c' : '#F1707B', messageText: !isInverted ? '#323130' : '#F3F2F1', messageLink: !isInverted ? '#005A9E' : '#6CB8F6', messageLinkHovered: !isInverted ? '#004578' : '#82C7FF', infoIcon: !isInverted ? '#605e5c' : '#C8C6C4', errorIcon: !isInverted ? '#A80000' : '#F1707B', blockingIcon: !isInverted ? '#FDE7E9' : '#442726', warningIcon: !isInverted ? '#797775' : '#C8C6C4', severeWarningIcon: !isInverted ? '#D83B01' : '#FCE100', successIcon: !isInverted ? '#107C10' : '#92C353', infoBackground: !isInverted ? '#f3f2f1' : '#323130', errorBackground: !isInverted ? '#FDE7E9' : '#442726', blockingBackground: !isInverted ? '#FDE7E9' : '#442726', warningBackground: !isInverted ? '#FFF4CE' : '#433519', severeWarningBackground: !isInverted ? '#FED9CC' : '#4F2A0F', successBackground: !isInverted ? '#DFF6DD' : '#393D1B', // deprecated warningHighlight: !isInverted ? '#ffb900' : '#fff100', successText: !isInverted ? '#107C10' : '#92c353' }, s); var fullSemanticColors = getSemanticColors(p, e, semanticColors, isInverted); return _fixDeprecatedSlots(fullSemanticColors, depComments); } exports.makeSemanticColors = makeSemanticColors; /** * Map partial platte and effects to partial semantic colors. */ function getSemanticColors(p, e, s, isInverted, depComments) { if (depComments === void 0) { depComments = false; } var result = {}; // map palette var _a = p || {}, white = _a.white, black = _a.black, themePrimary = _a.themePrimary, themeDark = _a.themeDark, themeDarker = _a.themeDarker, themeDarkAlt = _a.themeDarkAlt, themeLighter = _a.themeLighter, neutralLight = _a.neutralLight, neutralLighter = _a.neutralLighter, neutralDark = _a.neutralDark, neutralQuaternary = _a.neutralQuaternary, neutralQuaternaryAlt = _a.neutralQuaternaryAlt, neutralPrimary = _a.neutralPrimary, neutralSecondary = _a.neutralSecondary, neutralSecondaryAlt = _a.neutralSecondaryAlt, neutralTertiary = _a.neutralTertiary, neutralTertiaryAlt = _a.neutralTertiaryAlt, neutralLighterAlt = _a.neutralLighterAlt, accent = _a.accent; if (white) { result.bodyBackground = white; result.bodyFrameBackground = white; result.accentButtonText = white; result.buttonBackground = white; result.primaryButtonText = white; result.primaryButtonTextHovered = white; result.primaryButtonTextPressed = white; result.inputBackground = white; result.inputForegroundChecked = white; result.listBackground = white; result.menuBackground = white; result.cardStandoutBackground = white; } if (black) { result.bodyTextChecked = black; result.buttonTextCheckedHovered = black; } if (themePrimary) { result.link = themePrimary; result.primaryButtonBackground = themePrimary; result.inputBackgroundChecked = themePrimary; result.inputIcon = themePrimary; result.inputFocusBorderAlt = themePrimary; result.menuIcon = themePrimary; result.menuHeader = themePrimary; result.accentButtonBackground = themePrimary; } if (themeDark) { result.primaryButtonBackgroundPressed = themeDark; result.inputBackgroundCheckedHovered = themeDark; result.inputIconHovered = themeDark; } if (themeDarker) { result.linkHovered = themeDarker; } if (themeDarkAlt) { result.primaryButtonBackgroundHovered = themeDarkAlt; } if (themeLighter) { result.inputPlaceholderBackgroundChecked = themeLighter; } if (neutralLight) { result.bodyBackgroundChecked = neutralLight; result.bodyFrameDivider = neutralLight; result.bodyDivider = neutralLight; result.variantBorder = neutralLight; result.buttonBackgroundCheckedHovered = neutralLight; result.buttonBackgroundPressed = neutralLight; result.listItemBackgroundChecked = neutralLight; result.listHeaderBackgroundPressed = neutralLight; result.menuItemBackgroundPressed = neutralLight; // eslint-disable-next-line deprecation/deprecation result.menuItemBackgroundChecked = neutralLight; } if (neutralLighter) { result.bodyBackgroundHovered = neutralLighter; result.buttonBackgroundHovered = neutralLighter; result.buttonBackgroundDisabled = neutralLighter; result.buttonBorderDisabled = neutralLighter; result.primaryButtonBackgroundDisabled = neutralLighter; result.disabledBackground = neutralLighter; result.listItemBackgroundHovered = neutralLighter; result.listHeaderBackgroundHovered = neutralLighter; result.menuItemBackgroundHovered = neutralLighter; } if (neutralQuaternary) { result.primaryButtonTextDisabled = neutralQuaternary; result.disabledSubtext = neutralQuaternary; } if (neutralQuaternaryAlt) { result.listItemBackgroundCheckedHovered = neutralQuaternaryAlt; } if (neutralTertiary) { result.disabledBodyText = neutralTertiary; result.variantBorderHovered = (s === null || s === void 0 ? void 0 : s.variantBorderHovered) || neutralTertiary; result.buttonTextDisabled = neutralTertiary; result.inputIconDisabled = neutralTertiary; result.disabledText = neutralTertiary; } if (neutralPrimary) { result.bodyText = neutralPrimary; result.actionLink = neutralPrimary; result.buttonText = neutralPrimary; result.inputBorderHovered = neutralPrimary; result.inputText = neutralPrimary; result.listText = neutralPrimary; result.menuItemText = neutralPrimary; } if (neutralLighterAlt) { result.bodyStandoutBackground = neutralLighterAlt; result.defaultStateBackground = neutralLighterAlt; } if (neutralDark) { result.actionLinkHovered = neutralDark; result.buttonTextHovered = neutralDark; result.buttonTextChecked = neutralDark; result.buttonTextPressed = neutralDark; result.inputTextHovered = neutralDark; result.menuItemTextHovered = neutralDark; } if (neutralSecondary) { result.bodySubtext = neutralSecondary; result.focusBorder = neutralSecondary; result.inputBorder = neutralSecondary; result.smallInputBorder = neutralSecondary; result.inputPlaceholderText = neutralSecondary; } if (neutralSecondaryAlt) { result.buttonBorder = neutralSecondaryAlt; } if (neutralTertiaryAlt) { result.disabledBodySubtext = neutralTertiaryAlt; result.disabledBorder = neutralTertiaryAlt; result.buttonBackgroundChecked = neutralTertiaryAlt; result.menuDivider = neutralTertiaryAlt; } if (accent) { result.accentButtonBackground = accent; } // map effects if (e === null || e === void 0 ? void 0 : e.elevation4) { result.cardShadow = e.elevation4; } if (!isInverted && (e === null || e === void 0 ? void 0 : e.elevation8)) { result.cardShadowHovered = e.elevation8; } else if (result.variantBorderHovered) { result.cardShadowHovered = '0 0 1px ' + result.variantBorderHovered; } result = tslib_1.__assign(tslib_1.__assign({}, result), s); return result; } exports.getSemanticColors = getSemanticColors; function _fixDeprecatedSlots(s, depComments) { // Add @deprecated tag as comment if enabled var dep = ''; if (depComments === true) { dep = ' /* @deprecated */'; } /* eslint-disable deprecation/deprecation */ s.listTextColor = s.listText + dep; s.menuItemBackgroundChecked += dep; s.warningHighlight += dep; s.warningText = s.messageText + dep; s.successText += dep; /* eslint-enable deprecation/deprecation */ return s; } //# sourceMappingURL=makeSemanticColors.js.map /***/ }), /***/ "./node_modules/@fluentui/theme/lib-commonjs/version.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/theme/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/theme', '2.6.35'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/Async.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Async = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Bugs often appear in async code when stuff gets disposed, but async operations don't get canceled. * This Async helper class solves these issues by tying async code to the lifetime of a disposable object. * * Usage: Anything class extending from BaseModel can access this helper via this.async. Otherwise create a * new instance of the class and remember to call dispose() during your code's dispose handler. * * @public */ var Async = /** @class */ (function () { // eslint-disable-next-line @typescript-eslint/no-explicit-any function Async(parent, onError) { this._timeoutIds = null; this._immediateIds = null; this._intervalIds = null; this._animationFrameIds = null; this._isDisposed = false; this._parent = parent || null; this._onErrorHandler = onError; this._noop = function () { /* do nothing */ }; } /** * Dispose function, clears all async operations. */ Async.prototype.dispose = function () { var id; this._isDisposed = true; this._parent = null; // Clear timeouts. if (this._timeoutIds) { for (id in this._timeoutIds) { if (this._timeoutIds.hasOwnProperty(id)) { this.clearTimeout(parseInt(id, 10)); } } this._timeoutIds = null; } // Clear immediates. if (this._immediateIds) { for (id in this._immediateIds) { if (this._immediateIds.hasOwnProperty(id)) { this.clearImmediate(parseInt(id, 10)); } } this._immediateIds = null; } // Clear intervals. if (this._intervalIds) { for (id in this._intervalIds) { if (this._intervalIds.hasOwnProperty(id)) { this.clearInterval(parseInt(id, 10)); } } this._intervalIds = null; } // Clear animation frames. if (this._animationFrameIds) { for (id in this._animationFrameIds) { if (this._animationFrameIds.hasOwnProperty(id)) { this.cancelAnimationFrame(parseInt(id, 10)); } } this._animationFrameIds = null; } }; /** * SetTimeout override, which will auto cancel the timeout during dispose. * @param callback - Callback to execute. * @param duration - Duration in milliseconds. * @returns The setTimeout id. */ Async.prototype.setTimeout = function (callback, duration) { var _this = this; var timeoutId = 0; if (!this._isDisposed) { if (!this._timeoutIds) { this._timeoutIds = {}; } timeoutId = setTimeout(function () { // Time to execute the timeout, enqueue it as a foreground task to be executed. try { // Now delete the record and call the callback. if (_this._timeoutIds) { delete _this._timeoutIds[timeoutId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }, duration); this._timeoutIds[timeoutId] = true; } return timeoutId; }; /** * Clears the timeout. * @param id - Id to cancel. */ Async.prototype.clearTimeout = function (id) { if (this._timeoutIds && this._timeoutIds[id]) { clearTimeout(id); delete this._timeoutIds[id]; } }; /** * SetImmediate override, which will auto cancel the immediate during dispose. * @param callback - Callback to execute. * @param targetElement - Optional target element to use for identifying the correct window. * @returns The setTimeout id. */ Async.prototype.setImmediate = function (callback, targetElement) { var _this = this; var immediateId = 0; var win = (0, getWindow_1.getWindow)(targetElement); if (!this._isDisposed) { if (!this._immediateIds) { this._immediateIds = {}; } var setImmediateCallback = function () { // Time to execute the timeout, enqueue it as a foreground task to be executed. try { // Now delete the record and call the callback. if (_this._immediateIds) { delete _this._immediateIds[immediateId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }; immediateId = win.setTimeout(setImmediateCallback, 0); this._immediateIds[immediateId] = true; } return immediateId; }; /** * Clears the immediate. * @param id - Id to cancel. * @param targetElement - Optional target element to use for identifying the correct window. */ Async.prototype.clearImmediate = function (id, targetElement) { var win = (0, getWindow_1.getWindow)(targetElement); if (this._immediateIds && this._immediateIds[id]) { win.clearTimeout(id); delete this._immediateIds[id]; } }; /** * SetInterval override, which will auto cancel the timeout during dispose. * @param callback - Callback to execute. * @param duration - Duration in milliseconds. * @returns The setTimeout id. */ Async.prototype.setInterval = function (callback, duration) { var _this = this; var intervalId = 0; if (!this._isDisposed) { if (!this._intervalIds) { this._intervalIds = {}; } intervalId = setInterval(function () { // Time to execute the interval callback, enqueue it as a foreground task to be executed. try { callback.apply(_this._parent); } catch (e) { _this._logError(e); } }, duration); this._intervalIds[intervalId] = true; } return intervalId; }; /** * Clears the interval. * @param id - Id to cancel. */ Async.prototype.clearInterval = function (id) { if (this._intervalIds && this._intervalIds[id]) { clearInterval(id); delete this._intervalIds[id]; } }; /** * Creates a function that, when executed, will only call the func function at most once per * every wait milliseconds. Provide an options object to indicate that func should be invoked * on the leading and/or trailing edge of the wait timeout. Subsequent calls to the throttled * function will return the result of the last func call. * * Note: If leading and trailing options are true func will be called on the trailing edge of * the timeout only if the throttled function is invoked more than once during the wait timeout. * * @param func - The function to throttle. * @param wait - The number of milliseconds to throttle executions to. Defaults to 0. * @param options - The options object. * @returns The new throttled function. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype.throttle = function (func, wait, options) { var _this = this; if (this._isDisposed) { return this._noop; } var waitMS = wait || 0; var leading = true; var trailing = true; var lastExecuteTime = 0; var lastResult; // eslint-disable-next-line @typescript-eslint/no-explicit-any var lastArgs; var timeoutId = null; if (options && typeof options.leading === 'boolean') { leading = options.leading; } if (options && typeof options.trailing === 'boolean') { trailing = options.trailing; } var callback = function (userCall) { var now = Date.now(); var delta = now - lastExecuteTime; var waitLength = leading ? waitMS - delta : waitMS; if (delta >= waitMS && (!userCall || leading)) { lastExecuteTime = now; if (timeoutId) { _this.clearTimeout(timeoutId); timeoutId = null; } lastResult = func.apply(_this._parent, lastArgs); } else if (timeoutId === null && trailing) { timeoutId = _this.setTimeout(callback, waitLength); } return lastResult; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any var resultFunction = (function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } lastArgs = args; return callback(true); }); return resultFunction; }; /** * Creates a function that will delay the execution of func until after wait milliseconds have * elapsed since the last time it was invoked. Provide an options object to indicate that func * should be invoked on the leading and/or trailing edge of the wait timeout. Subsequent calls * to the debounced function will return the result of the last func call. * * Note: If leading and trailing options are true func will be called on the trailing edge of * the timeout only if the debounced function is invoked more than once during the wait * timeout. * * @param func - The function to debounce. * @param wait - The number of milliseconds to delay. * @param options - The options object. * @returns The new debounced function. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype.debounce = function (func, wait, options) { var _this = this; if (this._isDisposed) { var noOpFunction = (function () { /** Do nothing */ }); noOpFunction.cancel = function () { return; }; noOpFunction.flush = (function () { return null; }); noOpFunction.pending = function () { return false; }; return noOpFunction; } var waitMS = wait || 0; var leading = false; var trailing = true; var maxWait = null; var lastCallTime = 0; var lastExecuteTime = Date.now(); var lastResult; // eslint-disable-next-line @typescript-eslint/no-explicit-any var lastArgs; var timeoutId = null; if (options && typeof options.leading === 'boolean') { leading = options.leading; } if (options && typeof options.trailing === 'boolean') { trailing = options.trailing; } if (options && typeof options.maxWait === 'number' && !isNaN(options.maxWait)) { maxWait = options.maxWait; } var markExecuted = function (time) { if (timeoutId) { _this.clearTimeout(timeoutId); timeoutId = null; } lastExecuteTime = time; }; var invokeFunction = function (time) { markExecuted(time); lastResult = func.apply(_this._parent, lastArgs); }; var callback = function (userCall) { var now = Date.now(); var executeImmediately = false; if (userCall) { if (leading && now - lastCallTime >= waitMS) { executeImmediately = true; } lastCallTime = now; } var delta = now - lastCallTime; var waitLength = waitMS - delta; var maxWaitDelta = now - lastExecuteTime; var maxWaitExpired = false; if (maxWait !== null) { // maxWait only matters when there is a pending callback if (maxWaitDelta >= maxWait && timeoutId) { maxWaitExpired = true; } else { waitLength = Math.min(waitLength, maxWait - maxWaitDelta); } } if (delta >= waitMS || maxWaitExpired || executeImmediately) { invokeFunction(now); } else if ((timeoutId === null || !userCall) && trailing) { timeoutId = _this.setTimeout(callback, waitLength); } return lastResult; }; var pending = function () { return !!timeoutId; }; var cancel = function () { if (pending()) { // Mark the debounced function as having executed markExecuted(Date.now()); } }; var flush = function () { if (pending()) { invokeFunction(Date.now()); } return lastResult; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any var resultFunction = (function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } lastArgs = args; return callback(true); }); resultFunction.cancel = cancel; resultFunction.flush = flush; resultFunction.pending = pending; return resultFunction; }; Async.prototype.requestAnimationFrame = function (callback, targetElement) { var _this = this; var animationFrameId = 0; var win = (0, getWindow_1.getWindow)(targetElement); if (!this._isDisposed) { if (!this._animationFrameIds) { this._animationFrameIds = {}; } var animationFrameCallback = function () { try { // Now delete the record and call the callback. if (_this._animationFrameIds) { delete _this._animationFrameIds[animationFrameId]; } callback.apply(_this._parent); } catch (e) { _this._logError(e); } }; animationFrameId = win.requestAnimationFrame ? win.requestAnimationFrame(animationFrameCallback) : win.setTimeout(animationFrameCallback, 0); this._animationFrameIds[animationFrameId] = true; } return animationFrameId; }; Async.prototype.cancelAnimationFrame = function (id, targetElement) { var win = (0, getWindow_1.getWindow)(targetElement); if (this._animationFrameIds && this._animationFrameIds[id]) { win.cancelAnimationFrame ? win.cancelAnimationFrame(id) : win.clearTimeout(id); delete this._animationFrameIds[id]; } }; // eslint-disable-next-line @typescript-eslint/no-explicit-any Async.prototype._logError = function (e) { if (this._onErrorHandler) { this._onErrorHandler(e); } }; return Async; }()); exports.Async = Async; //# sourceMappingURL=Async.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AutoScroll = void 0; var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); var scroll_1 = __webpack_require__(/*! ./scroll */ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js"); var getRect_1 = __webpack_require__(/*! ./dom/getRect */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js"); var SCROLL_ITERATION_DELAY = 16; var SCROLL_GUTTER = 100; var MAX_SCROLL_VELOCITY = 15; /** * AutoScroll simply hooks up mouse events given a parent element, and scrolls the container * up/down depending on how close the mouse is to the top/bottom of the container. * * Once you don't want autoscroll any more, just dispose the helper and it will unhook events. * * @public * {@docCategory AutoScroll} */ var AutoScroll = /** @class */ (function () { function AutoScroll(element) { this._events = new EventGroup_1.EventGroup(this); this._scrollableParent = (0, scroll_1.findScrollableParent)(element); this._incrementScroll = this._incrementScroll.bind(this); this._scrollRect = (0, getRect_1.getRect)(this._scrollableParent); // eslint-disable-next-line @typescript-eslint/no-explicit-any if (this._scrollableParent === window) { this._scrollableParent = document.body; } if (this._scrollableParent) { this._events.on(window, 'mousemove', this._onMouseMove, true); this._events.on(window, 'touchmove', this._onTouchMove, true); } } AutoScroll.prototype.dispose = function () { this._events.dispose(); this._stopScroll(); }; AutoScroll.prototype._onMouseMove = function (ev) { this._computeScrollVelocity(ev); }; AutoScroll.prototype._onTouchMove = function (ev) { if (ev.touches.length > 0) { this._computeScrollVelocity(ev); } }; AutoScroll.prototype._computeScrollVelocity = function (ev) { if (!this._scrollRect) { return; } var clientX; var clientY; if ('clientX' in ev) { clientX = ev.clientX; clientY = ev.clientY; } else { clientX = ev.touches[0].clientX; clientY = ev.touches[0].clientY; } var scrollRectTop = this._scrollRect.top; var scrollRectLeft = this._scrollRect.left; var scrollClientBottom = scrollRectTop + this._scrollRect.height - SCROLL_GUTTER; var scrollClientRight = scrollRectLeft + this._scrollRect.width - SCROLL_GUTTER; // variables to use for alternating scroll direction var scrollRect; var clientDirection; var scrollClient; // if either of these conditions are met we are scrolling vertically else horizontally if (clientY < scrollRectTop + SCROLL_GUTTER || clientY > scrollClientBottom) { clientDirection = clientY; scrollRect = scrollRectTop; scrollClient = scrollClientBottom; this._isVerticalScroll = true; } else { clientDirection = clientX; scrollRect = scrollRectLeft; scrollClient = scrollClientRight; this._isVerticalScroll = false; } // calculate scroll velocity and direction if (clientDirection < scrollRect + SCROLL_GUTTER) { this._scrollVelocity = Math.max(-MAX_SCROLL_VELOCITY, -MAX_SCROLL_VELOCITY * ((SCROLL_GUTTER - (clientDirection - scrollRect)) / SCROLL_GUTTER)); } else if (clientDirection > scrollClient) { this._scrollVelocity = Math.min(MAX_SCROLL_VELOCITY, MAX_SCROLL_VELOCITY * ((clientDirection - scrollClient) / SCROLL_GUTTER)); } else { this._scrollVelocity = 0; } if (this._scrollVelocity) { this._startScroll(); } else { this._stopScroll(); } }; AutoScroll.prototype._startScroll = function () { if (!this._timeoutId) { this._incrementScroll(); } }; AutoScroll.prototype._incrementScroll = function () { if (this._scrollableParent) { if (this._isVerticalScroll) { this._scrollableParent.scrollTop += Math.round(this._scrollVelocity); } else { this._scrollableParent.scrollLeft += Math.round(this._scrollVelocity); } } this._timeoutId = setTimeout(this._incrementScroll, SCROLL_ITERATION_DELAY); }; AutoScroll.prototype._stopScroll = function () { if (this._timeoutId) { clearTimeout(this._timeoutId); delete this._timeoutId; } }; return AutoScroll; }()); exports.AutoScroll = AutoScroll; //# sourceMappingURL=AutoScroll.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.nullRender = exports.BaseComponent = 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 Async_1 = __webpack_require__(/*! ./Async */ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js"); var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); var warnConditionallyRequiredProps_1 = __webpack_require__(/*! ./warn/warnConditionallyRequiredProps */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js"); var warnMutuallyExclusive_1 = __webpack_require__(/*! ./warn/warnMutuallyExclusive */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js"); var warnDeprecations_1 = __webpack_require__(/*! ./warn/warnDeprecations */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js"); /** * BaseComponent class, which provides basic helpers for all components. * * @public * {@docCategory BaseComponent} * * @deprecated Do not use. We are moving away from class component. */ var BaseComponent = /** @class */ (function (_super) { tslib_1.__extends(BaseComponent, _super); /** * BaseComponent constructor * @param props - The props for the component. * @param context - The context for the component. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function BaseComponent(props, context) { var _this = _super.call(this, props, context) || this; // eslint-disable-next-line deprecation/deprecation _makeAllSafe(_this, BaseComponent.prototype, [ 'componentDidMount', 'shouldComponentUpdate', 'getSnapshotBeforeUpdate', 'render', 'componentDidUpdate', 'componentWillUnmount', ]); return _this; } /** * When the component receives props, make sure the componentRef is updated. */ BaseComponent.prototype.componentDidUpdate = function (prevProps, prevState) { this._updateComponentRef(prevProps, this.props); }; /** * When the component has mounted, update the componentRef. */ BaseComponent.prototype.componentDidMount = function () { this._setComponentRef(this.props.componentRef, this); }; /** * If we have disposables, dispose them automatically on unmount. */ BaseComponent.prototype.componentWillUnmount = function () { this._setComponentRef(this.props.componentRef, null); if (this.__disposables) { for (var i = 0, len = this._disposables.length; i < len; i++) { var disposable = this.__disposables[i]; if (disposable.dispose) { disposable.dispose(); } } this.__disposables = null; } }; Object.defineProperty(BaseComponent.prototype, "className", { /** * Gets the object's class name. */ get: function () { if (!this.__className) { var funcNameRegex = /function (.{1,})\(/; var results = funcNameRegex.exec(this.constructor.toString()); this.__className = results && results.length > 1 ? results[1] : ''; } return this.__className; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_disposables", { /** * Allows subclasses to push things to this._disposables to be auto disposed. */ get: function () { if (!this.__disposables) { this.__disposables = []; } return this.__disposables; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_async", { /** * Gets the async instance associated with the component, created on demand. The async instance gives * subclasses a way to execute setTimeout/setInterval async calls safely, where the callbacks * will be cleared/ignored automatically after unmounting. The helpers within the async object also * preserve the this pointer so that you don't need to "bind" the callbacks. */ get: function () { if (!this.__async) { this.__async = new Async_1.Async(this); this._disposables.push(this.__async); } return this.__async; }, enumerable: false, configurable: true }); Object.defineProperty(BaseComponent.prototype, "_events", { /** * Gets the event group instance assocaited with the component, created on demand. The event instance * provides on/off methods for listening to DOM (or regular javascript object) events. The event callbacks * will be automatically disconnected after unmounting. The helpers within the events object also * preserve the this reference so that you don't need to "bind" the callbacks. */ get: function () { if (!this.__events) { this.__events = new EventGroup_1.EventGroup(this); this._disposables.push(this.__events); } return this.__events; }, enumerable: false, configurable: true }); /** * Helper to return a memoized ref resolver function. * @param refName - Name of the member to assign the ref to. * @returns A function instance keyed from the given refname. * @deprecated Use `createRef` from React.createRef. */ BaseComponent.prototype._resolveRef = function (refName) { var _this = this; if (!this.__resolves) { this.__resolves = {}; } if (!this.__resolves[refName]) { this.__resolves[refName] = function (ref) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return (_this[refName] = ref); }; } return this.__resolves[refName]; }; /** * Updates the componentRef (by calling it with "this" when necessary.) */ BaseComponent.prototype._updateComponentRef = function (currentProps, newProps) { if (newProps === void 0) { newProps = {}; } // currentProps *should* always be defined, but verify that just in case a subclass is manually // calling a lifecycle method with no parameters (which has happened) or other odd usage. if (currentProps && newProps && currentProps.componentRef !== newProps.componentRef) { this._setComponentRef(currentProps.componentRef, null); this._setComponentRef(newProps.componentRef, this); } }; /** * Warns when a deprecated props are being used. * * @param deprecationMap - The map of deprecations, where key is the prop name and the value is * either null or a replacement prop name. */ BaseComponent.prototype._warnDeprecations = function (deprecationMap) { (0, warnDeprecations_1.warnDeprecations)(this.className, this.props, deprecationMap); }; /** * Warns when props which are mutually exclusive with each other are both used. * * @param mutuallyExclusiveMap - The map of mutually exclusive props. */ BaseComponent.prototype._warnMutuallyExclusive = function (mutuallyExclusiveMap) { (0, warnMutuallyExclusive_1.warnMutuallyExclusive)(this.className, this.props, mutuallyExclusiveMap); }; /** * Warns when props are required if a condition is met. * * @param requiredProps - The name of the props that are required when the condition is met. * @param conditionalPropName - The name of the prop that the condition is based on. * @param condition - Whether the condition is met. */ BaseComponent.prototype._warnConditionallyRequiredProps = function (requiredProps, conditionalPropName, condition) { (0, warnConditionallyRequiredProps_1.warnConditionallyRequiredProps)(this.className, this.props, requiredProps, conditionalPropName, condition); }; BaseComponent.prototype._setComponentRef = function (ref, value) { if (!this._skipComponentRefResolution && ref) { if (typeof ref === 'function') { ref(value); } if (typeof ref === 'object') { // eslint-disable-next-line @typescript-eslint/no-explicit-any ref.current = value; } } }; return BaseComponent; }(React.Component)); exports.BaseComponent = BaseComponent; /** * Helper to override a given method with a wrapper method that can try/catch the original, but also * ensures that the BaseComponent's methods are called before the subclass's. This ensures that * componentWillUnmount in the base is called and that things in the _disposables array are disposed. */ // eslint-disable-next-line deprecation/deprecation function _makeAllSafe(obj, prototype, methodNames) { for (var i = 0, len = methodNames.length; i < len; i++) { _makeSafe(obj, prototype, methodNames[i]); } } // eslint-disable-next-line deprecation/deprecation function _makeSafe(obj, prototype, methodName) { /* eslint-disable @typescript-eslint/no-explicit-any */ var classMethod = obj[methodName]; var prototypeMethod = prototype[methodName]; if (classMethod || prototypeMethod) { obj[methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } /* eslint-enable @typescript-eslint/no-explicit-any */ var retVal; if (prototypeMethod) { retVal = prototypeMethod.apply(this, args); } if (classMethod !== prototypeMethod) { retVal = classMethod.apply(this, args); } return retVal; }; } } /** * Simple constant function for returning null, used to render empty templates in JSX. * * @public */ function nullRender() { return null; } exports.nullRender = nullRender; //# sourceMappingURL=BaseComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DelayedRender = 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 getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Utility component for delaying the render of a child component after a given delay. This component * requires a single child component; don't pass in many components. Wrap multiple components in a DIV * if necessary. * * @public * {@docCategory DelayedRender} */ var DelayedRender = /** @class */ (function (_super) { tslib_1.__extends(DelayedRender, _super); function DelayedRender(props) { var _this = _super.call(this, props) || this; _this.state = { isRendered: (0, getWindow_1.getWindow)() === undefined, }; return _this; } DelayedRender.prototype.componentDidMount = function () { var _this = this; var delay = this.props.delay; this._timeoutId = window.setTimeout(function () { _this.setState({ isRendered: true, }); }, delay); }; DelayedRender.prototype.componentWillUnmount = function () { if (this._timeoutId) { clearTimeout(this._timeoutId); } }; DelayedRender.prototype.render = function () { return this.state.isRendered ? React.Children.only(this.props.children) : null; }; DelayedRender.defaultProps = { delay: 0, }; return DelayedRender; }(React.Component)); exports.DelayedRender = DelayedRender; //# sourceMappingURL=DelayedRender.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.EventGroup = void 0; var object_1 = __webpack_require__(/*! ./object */ "./node_modules/@fluentui/utilities/lib-commonjs/object.js"); /** An instance of EventGroup allows anything with a handle to it to trigger events on it. * If the target is an HTMLElement, the event will be attached to the element and can be * triggered as usual (like clicking for onClick). * The event can be triggered by calling EventGroup.raise() here. If the target is an * HTMLElement, the event gets raised and is handled by the browser. Otherwise, it gets * handled here in EventGroup, and the handler is called in the context of the parent * (which is passed in in the constructor). * * @public * {@docCategory EventGroup} */ var EventGroup = /** @class */ (function () { /** parent: the context in which events attached to non-HTMLElements are called */ function EventGroup(parent) { this._id = EventGroup._uniqueId++; this._parent = parent; this._eventRecords = []; } /** For IE8, bubbleEvent is ignored here and must be dealt with by the handler. * Events raised here by default have bubbling set to false and cancelable set to true. * This applies also to built-in events being raised manually here on HTMLElements, * which may lead to unexpected behavior if it differs from the defaults. * */ EventGroup.raise = function (target, eventName, eventArgs, bubbleEvent) { var retVal; if (EventGroup._isElement(target)) { if (typeof document !== 'undefined' && document.createEvent) { var ev = document.createEvent('HTMLEvents'); // eslint-disable-next-line deprecation/deprecation ev.initEvent(eventName, bubbleEvent || false, true); (0, object_1.assign)(ev, eventArgs); retVal = target.dispatchEvent(ev); } else if (typeof document !== 'undefined' && document.createEventObject) { // IE8 var evObj = document.createEventObject(eventArgs); // cannot set cancelBubble on evObj, fireEvent will overwrite it target.fireEvent('on' + eventName, evObj); } } else { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 while (target && retVal !== false) { var events = target.__events__; var eventRecords = events ? events[eventName] : null; if (eventRecords) { for (var id in eventRecords) { if (eventRecords.hasOwnProperty(id)) { var eventRecordList = eventRecords[id]; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 for (var listIndex = 0; retVal !== false && listIndex < eventRecordList.length; listIndex++) { var record = eventRecordList[listIndex]; if (record.objectCallback) { retVal = record.objectCallback.call(record.parent, eventArgs); } } } } } // If the target has a parent, bubble the event up. target = bubbleEvent ? target.parent : null; } } return retVal; }; EventGroup.isObserved = function (target, eventName) { var events = target && target.__events__; return !!events && !!events[eventName]; }; /** Check to see if the target has declared support of the given event. */ EventGroup.isDeclared = function (target, eventName) { var declaredEvents = target && target.__declaredEvents; return !!declaredEvents && !!declaredEvents[eventName]; }; EventGroup.stopPropagation = function (event) { if (event.stopPropagation) { event.stopPropagation(); } else { // IE8 event.cancelBubble = true; } }; EventGroup._isElement = function (target) { return (!!target && (!!target.addEventListener || (typeof HTMLElement !== 'undefined' && target instanceof HTMLElement))); }; EventGroup.prototype.dispose = function () { if (!this._isDisposed) { this._isDisposed = true; this.off(); this._parent = null; } }; /** On the target, attach a set of events, where the events object is a name to function mapping. */ EventGroup.prototype.onAll = function (target, events, useCapture) { for (var eventName in events) { if (events.hasOwnProperty(eventName)) { this.on(target, eventName, events[eventName], useCapture); } } }; /** * On the target, attach an event whose handler will be called in the context of the parent * of this instance of EventGroup. */ EventGroup.prototype.on = function (target, eventName, callback, options) { var _this = this; if (eventName.indexOf(',') > -1) { var events = eventName.split(/[ ,]+/); for (var i = 0; i < events.length; i++) { this.on(target, events[i], callback, options); } } else { var parent_1 = this._parent; var eventRecord = { target: target, eventName: eventName, parent: parent_1, callback: callback, options: options, }; // Initialize and wire up the record on the target, so that it can call the callback if the event fires. var events = (target.__events__ = target.__events__ || {}); events[eventName] = events[eventName] || { count: 0, }; events[eventName][this._id] = events[eventName][this._id] || []; events[eventName][this._id].push(eventRecord); events[eventName].count++; if (EventGroup._isElement(target)) { var processElementEvent = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (_this._isDisposed) { return; } var result; try { result = callback.apply(parent_1, args); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore -- FIXME: strictBindCallApply error - https://github.com/microsoft/fluentui/issues/17331 if (result === false && args[0]) { var e = args[0]; if (e.preventDefault) { e.preventDefault(); } if (e.stopPropagation) { e.stopPropagation(); } e.cancelBubble = true; } } catch (e) { // ignore } return result; }; eventRecord.elementCallback = processElementEvent; if (target.addEventListener) { target.addEventListener(eventName, processElementEvent, options); } else if (target.attachEvent) { // IE8 target.attachEvent('on' + eventName, processElementEvent); } } else { var processObjectEvent = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } if (_this._isDisposed) { return; } return callback.apply(parent_1, args); }; eventRecord.objectCallback = processObjectEvent; } // Remember the record locally, so that it can be removed. this._eventRecords.push(eventRecord); } }; EventGroup.prototype.off = function (target, eventName, callback, options) { for (var i = 0; i < this._eventRecords.length; i++) { var eventRecord = this._eventRecords[i]; if ((!target || target === eventRecord.target) && (!eventName || eventName === eventRecord.eventName) && (!callback || callback === eventRecord.callback) && (typeof options !== 'boolean' || options === eventRecord.options)) { var events = eventRecord.target.__events__; var targetArrayLookup = events[eventRecord.eventName]; var targetArray = targetArrayLookup ? targetArrayLookup[this._id] : null; // We may have already target's entries, so check for null. if (targetArray) { if (targetArray.length === 1 || !callback) { targetArrayLookup.count -= targetArray.length; delete events[eventRecord.eventName][this._id]; } else { targetArrayLookup.count--; targetArray.splice(targetArray.indexOf(eventRecord), 1); } if (!targetArrayLookup.count) { delete events[eventRecord.eventName]; } } if (eventRecord.elementCallback) { if (eventRecord.target.removeEventListener) { eventRecord.target.removeEventListener(eventRecord.eventName, eventRecord.elementCallback, eventRecord.options); } else if (eventRecord.target.detachEvent) { // IE8 eventRecord.target.detachEvent('on' + eventRecord.eventName, eventRecord.elementCallback); } } this._eventRecords.splice(i--, 1); } } }; /** Trigger the given event in the context of this instance of EventGroup. */ EventGroup.prototype.raise = function (eventName, eventArgs, bubbleEvent) { return EventGroup.raise(this._parent, eventName, eventArgs, bubbleEvent); }; /** Declare an event as being supported by this instance of EventGroup. */ EventGroup.prototype.declare = function (event) { var declaredEvents = (this._parent.__declaredEvents = this._parent.__declaredEvents || {}); if (typeof event === 'string') { declaredEvents[event] = true; } else { for (var i = 0; i < event.length; i++) { declaredEvents[event[i]] = true; } } }; EventGroup._uniqueId = 0; return EventGroup; }()); exports.EventGroup = EventGroup; //# sourceMappingURL=EventGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FabricPerformance = void 0; var now = function () { return typeof performance !== 'undefined' && !!performance.now ? performance.now() : Date.now(); }; var RESET_INTERVAL = 3 * 60 * 1000; // auto reset every 3 minutes /** * Performance helper class for measuring things. * * @public * {@docCategory FabricPerformance} */ var FabricPerformance = /** @class */ (function () { function FabricPerformance() { } /** * Measures execution time of the given syncronous function. If the same logic is executed multiple times, * each individual measurement will be collected as well the overall numbers. * @param name - The name of this measurement * @param func - The logic to be measured for execution time */ FabricPerformance.measure = function (name, func) { if (FabricPerformance._timeoutId) { FabricPerformance.setPeriodicReset(); } var start = now(); func(); var end = now(); var measurement = FabricPerformance.summary[name] || { totalDuration: 0, count: 0, all: [], }; var duration = end - start; measurement.totalDuration += duration; measurement.count++; measurement.all.push({ duration: duration, timeStamp: end, }); FabricPerformance.summary[name] = measurement; }; FabricPerformance.reset = function () { FabricPerformance.summary = {}; clearTimeout(FabricPerformance._timeoutId); FabricPerformance._timeoutId = NaN; }; FabricPerformance.setPeriodicReset = function () { FabricPerformance._timeoutId = setTimeout(function () { return FabricPerformance.reset(); }, RESET_INTERVAL); }; FabricPerformance.summary = {}; return FabricPerformance; }()); exports.FabricPerformance = FabricPerformance; //# sourceMappingURL=FabricPerformance.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusRectsProvider = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useFocusRects_1 = __webpack_require__(/*! ./useFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js"); var FocusRectsProvider = function (props) { var providerRef = props.providerRef, layerRoot = props.layerRoot; var registeredProviders = React.useState([])[0]; var parentContext = React.useContext(useFocusRects_1.FocusRectsContext); // Inherit the parent context if it exists, unless this is a layer root. // This allows the topmost provider element in the DOM tree to handle the focus events. // Since layers are in a separate HTML tree from their parent, they shouldn't use the parent's providerRef. var inheritParentContext = parentContext !== undefined && !layerRoot; var context = React.useMemo(function () { return inheritParentContext ? undefined : { providerRef: providerRef, registeredProviders: registeredProviders, registerProvider: function (ref) { // Register this child provider with the current context, and any parent contexts registeredProviders.push(ref); parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerProvider(ref); }, unregisterProvider: function (ref) { parentContext === null || parentContext === void 0 ? void 0 : parentContext.unregisterProvider(ref); var i = registeredProviders.indexOf(ref); if (i >= 0) { registeredProviders.splice(i, 1); } }, }; }, [providerRef, registeredProviders, parentContext, inheritParentContext]); React.useEffect(function () { if (context) { context.registerProvider(context.providerRef); return function () { return context.unregisterProvider(context.providerRef); }; } }, [context]); // Create a new context provider if this is not inheriting from the parent. if (context) { return React.createElement(useFocusRects_1.FocusRectsContext.Provider, { value: context }, props.children); } else { return React.createElement(React.Fragment, null, props.children); } }; exports.FocusRectsProvider = FocusRectsProvider; //# sourceMappingURL=FocusRectsProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GlobalSettings = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Storing global state in local module variables has issues when more than one copy * if the module gets loaded on the page (due to a bundling error or simply by consuming * a prebundled script.) * * This file contains helpers to deal with the getting and setting local state, and allows * callers to get called back when it mutates. */ var GLOBAL_SETTINGS_PROP_NAME = '__globalSettings__'; var CALLBACK_STATE_PROP_NAME = '__callbacks__'; var _counter = 0; /** * Global settings helper, which stores settings in the global (window) namespace. * If window is not provided, it will store settings in module scope. Provides a * way to observe changes as well when their values change. * * @public * {@docCategory GlobalSettings} */ var GlobalSettings = /** @class */ (function () { function GlobalSettings() { } GlobalSettings.getValue = function (key, defaultValue) { var globalSettings = _getGlobalSettings(); if (globalSettings[key] === undefined) { globalSettings[key] = typeof defaultValue === 'function' ? defaultValue() : defaultValue; } return globalSettings[key]; }; GlobalSettings.setValue = function (key, value) { var globalSettings = _getGlobalSettings(); var callbacks = globalSettings[CALLBACK_STATE_PROP_NAME]; var oldValue = globalSettings[key]; if (value !== oldValue) { globalSettings[key] = value; var changeDescription = { oldValue: oldValue, value: value, key: key, }; for (var id in callbacks) { if (callbacks.hasOwnProperty(id)) { callbacks[id](changeDescription); } } } return value; }; GlobalSettings.addChangeListener = function (cb) { // Note: we use generated ids on the callbacks to create a map of the callbacks, which optimizes removal. // (It's faster to delete a key than it is to look up the index of an object and splice an array.) var id = cb.__id__; var callbacks = _getCallbacks(); if (!id) { id = cb.__id__ = String(_counter++); } callbacks[id] = cb; }; GlobalSettings.removeChangeListener = function (cb) { var callbacks = _getCallbacks(); delete callbacks[cb.__id__]; }; return GlobalSettings; }()); exports.GlobalSettings = GlobalSettings; // eslint-disable-next-line @typescript-eslint/no-explicit-any function _getGlobalSettings() { var _a; var win = (0, getWindow_1.getWindow)(); // eslint-disable-next-line @typescript-eslint/no-explicit-any var globalObj = win || {}; if (!globalObj[GLOBAL_SETTINGS_PROP_NAME]) { globalObj[GLOBAL_SETTINGS_PROP_NAME] = (_a = {}, _a[CALLBACK_STATE_PROP_NAME] = {}, _a); } return globalObj[GLOBAL_SETTINGS_PROP_NAME]; } function _getCallbacks() { var globalSettings = _getGlobalSettings(); return globalSettings[CALLBACK_STATE_PROP_NAME]; } //# sourceMappingURL=GlobalSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.KeyCodes = void 0; /** * Simulated enum for keycodes. These will get inlined by uglify when used much like an enum * * @public * {@docCategory KeyCodes} */ exports.KeyCodes = { backspace: 8, tab: 9, enter: 13, shift: 16, ctrl: 17, alt: 18, pauseBreak: 19, capslock: 20, escape: 27, space: 32, pageUp: 33, pageDown: 34, end: 35, home: 36, left: 37, up: 38, right: 39, down: 40, insert: 45, del: 46, zero: 48, one: 49, two: 50, three: 51, four: 52, five: 53, six: 54, seven: 55, eight: 56, nine: 57, colon: 58, a: 65, b: 66, c: 67, d: 68, e: 69, f: 70, g: 71, h: 72, i: 73, j: 74, k: 75, l: 76, m: 77, n: 78, o: 79, p: 80, q: 81, r: 82, s: 83, t: 84, u: 85, v: 86, w: 87, x: 88, y: 89, z: 90, leftWindow: 91, rightWindow: 92, select: 93, /* eslint-disable @typescript-eslint/naming-convention */ zero_numpad: 96, one_numpad: 97, two_numpad: 98, three_numpad: 99, four_numpad: 100, five_numpad: 101, six_numpad: 102, seven_numpad: 103, eight_numpad: 104, nine_numpad: 105, /* eslint-enable @typescript-eslint/naming-convention */ multiply: 106, add: 107, subtract: 109, decimalPoint: 110, divide: 111, f1: 112, f2: 113, f3: 114, f4: 115, f5: 116, f6: 117, f7: 118, f8: 119, f9: 120, f10: 121, f11: 122, f12: 123, numlock: 144, scrollLock: 145, semicolon: 186, equalSign: 187, comma: 188, dash: 189, period: 190, forwardSlash: 191, graveAccent: 192, openBracket: 219, backSlash: 220, closeBracket: 221, singleQuote: 222, }; //# sourceMappingURL=KeyCodes.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Rectangle = void 0; /** * Rectangle helper class. * * @public * {@docCategory Rectangle} */ var Rectangle = /** @class */ (function () { function Rectangle(left, right, top, bottom) { if (left === void 0) { left = 0; } if (right === void 0) { right = 0; } if (top === void 0) { top = 0; } if (bottom === void 0) { bottom = 0; } this.top = top; this.bottom = bottom; this.left = left; this.right = right; } Object.defineProperty(Rectangle.prototype, "width", { /** * Calculated automatically by subtracting the right from left */ get: function () { return this.right - this.left; }, enumerable: false, configurable: true }); Object.defineProperty(Rectangle.prototype, "height", { /** * Calculated automatically by subtracting the bottom from top. */ get: function () { return this.bottom - this.top; }, enumerable: false, configurable: true }); /** * Tests if another rect is approximately equal to this rect (within 4 decimal places.) */ Rectangle.prototype.equals = function (rect) { // Fixing to 4 decimal places because it allows enough precision and will handle cases when something // should be rounded, like .999999 should round to 1. return (parseFloat(this.top.toFixed(4)) === parseFloat(rect.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(rect.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(rect.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(rect.right.toFixed(4))); }; return Rectangle; }()); exports.Rectangle = Rectangle; //# sourceMappingURL=Rectangle.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.appendFunction = void 0; /** * Returns a single function which will call each of the given functions in the context of the * parent. */ function appendFunction(parent) { var functions = []; for (var _i = 1; _i < arguments.length; _i++) { functions[_i - 1] = arguments[_i]; } if (functions.length < 2) { return functions[0]; } return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } functions.forEach(function (f) { return f && f.apply(parent, args); }); }; } exports.appendFunction = appendFunction; //# sourceMappingURL=appendFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/aria.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/aria.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeAriaAttributeValues = void 0; /** * ARIA helper to concatenate attributes, returning undefined if all attributes * are undefined. (Empty strings are not a valid ARIA attribute value.) * * @param ariaAttributes - ARIA attributes to merge */ function mergeAriaAttributeValues() { var ariaAttributes = []; for (var _i = 0; _i < arguments.length; _i++) { ariaAttributes[_i] = arguments[_i]; } var mergedAttribute = ariaAttributes .filter(function (arg) { return arg; }) .join(' ') .trim(); return mergedAttribute === '' ? undefined : mergedAttribute; } exports.mergeAriaAttributeValues = mergeAriaAttributeValues; //# sourceMappingURL=aria.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/array.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/array.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.arraysEqual = exports.flatten = exports.addElementAtIndex = exports.replaceElement = exports.removeIndex = exports.toMatrix = exports.createArray = exports.find = exports.findIndex = void 0; /** * Helper to find the index of an item within an array, using a callback to * determine the match. * * @public * @param array - Array to search. * @param cb - Callback which returns true on matches. * @param fromIndex - Optional index to start from (defaults to 0) */ function findIndex(array, cb, fromIndex) { if (fromIndex === void 0) { fromIndex = 0; } var index = -1; for (var i = fromIndex; array && i < array.length; i++) { if (cb(array[i], i)) { index = i; break; } } return index; } exports.findIndex = findIndex; /** * Helper to find the first item within an array that satisfies the callback. * @param array - Array to search * @param cb - Callback which returns true on matches */ function find(array, cb) { var index = findIndex(array, cb); if (index < 0) { return undefined; } return array[index]; } exports.find = find; /** * Creates an array of a given size and helper method to populate. * * @public * @param size - Size of array. * @param getItem - Callback to populate given cell index. */ function createArray(size, getItem) { var array = []; for (var i = 0; i < size; i++) { array.push(getItem(i)); } return array; } exports.createArray = createArray; /** * Convert the given array to a matrix with columnCount number * of columns. * * @public * @param items - The array to convert * @param columnCount - The number of columns for the resulting matrix * @returns A matrix of items */ function toMatrix(items, columnCount) { return items.reduce(function (rows, currentValue, index) { if (index % columnCount === 0) { rows.push([currentValue]); } else { rows[rows.length - 1].push(currentValue); } return rows; }, []); } exports.toMatrix = toMatrix; /** * Given an array, it returns a new array that does not contain the item at the given index. * @param array - The array to operate on * @param index - The index of the element to remove */ function removeIndex(array, index) { return array.filter(function (_, i) { return index !== i; }); } exports.removeIndex = removeIndex; /** * Given an array, this function returns a new array where the element at a given index has been replaced. * @param array - The array to operate on * @param newElement - The element that will be placed in the new array * @param index - The index of the element that should be replaced */ function replaceElement(array, newElement, index) { var copy = array.slice(); copy[index] = newElement; return copy; } exports.replaceElement = replaceElement; /** * Given an array, this function returns a new array where an element has been inserted at the given index. * @param array - The array to operate on * @param index - The index where an element should be inserted * @param itemToAdd - The element to insert */ function addElementAtIndex(array, index, itemToAdd) { var copy = array.slice(); copy.splice(index, 0, itemToAdd); return copy; } exports.addElementAtIndex = addElementAtIndex; /** * Given an array where each element is of type T or T[], flatten it into an array of T * @param array - The array where each element can optionally also be an array */ function flatten(array) { var result = []; array.forEach(function (item) { return (result = result.concat(item)); }); return result; } exports.flatten = flatten; /** * Returns a boolean indicating if the two given arrays are equal in length and values. * * @param array1 - First array to compare * @param array2 - Second array to compare * @returns True if the arrays are the same length and have the same values in the same positions, false otherwise. */ function arraysEqual(array1, array2) { if (array1.length !== array2.length) { return false; } for (var i = 0; i < array1.length; i++) { if (array1[i] !== array2[i]) { return false; } } return true; } exports.arraysEqual = arraysEqual; //# sourceMappingURL=array.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** * asAsync - a HOC for async loading components. * * Usage: * * const AsyncDialog = asAsync({ * load: () => import('Dialog').then(result => result.default), * }); * * React.render(domElement, } { ...dialogProps } />); * * Note the `asyncPlaceholder` prop will be respected when rendering the async component and it hasn't * been loaded yet. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.asAsync = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * If possible, use a WeakMap to maintain a cache of loaded components. * This can be used to synchronously render components that have already been loaded, * rather than having to wait for at least one async tick. */ var _syncModuleCache = typeof WeakMap !== 'undefined' ? // eslint-disable-next-line @typescript-eslint/no-explicit-any new WeakMap() : undefined; /** * Produces a component which internally loads the target component before first mount. * The component passes all props through to the loaded component. * * This overload accepts a module with a default export for the component. */ function asAsync(options) { var Async = /** @class */ (function (_super) { tslib_1.__extends(Async, _super); function Async() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { Component: _syncModuleCache ? _syncModuleCache.get(options.load) : undefined, }; return _this; } Async.prototype.render = function () { // Typescript issue: the rest can't be pulled without the any cast, as TypeScript fails with rest on generics. // eslint-disable-next-line @typescript-eslint/no-explicit-any var _a = this.props, forwardedRef = _a.forwardedRef, Placeholder = _a.asyncPlaceholder, rest = tslib_1.__rest(_a, ["forwardedRef", "asyncPlaceholder"]); var Component = this.state.Component; return Component ? (React.createElement(Component, tslib_1.__assign(tslib_1.__assign({}, rest), { ref: forwardedRef }))) : Placeholder ? (React.createElement(Placeholder, null)) : null; }; Async.prototype.componentDidMount = function () { var _this = this; var Component = this.state.Component; if (!Component) { options .load() .then(function (LoadedComponent) { if (LoadedComponent) { // Cache component for future reference. _syncModuleCache && _syncModuleCache.set(options.load, LoadedComponent); // Set state. _this.setState({ Component: LoadedComponent, }, options.onLoad); } }) .catch(options.onError); } }; return Async; }(React.Component)); return React.forwardRef(function (props, ref) { return React.createElement(Async, tslib_1.__assign({}, props, { forwardedRef: ref })); }); } exports.asAsync = asAsync; //# sourceMappingURL=asAsync.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.assertNever = void 0; /** * AssertNever is a utility function that can be used for exhaustiveness checks in switch statements. * * @public */ function assertNever(x) { throw new Error('Unexpected object: ' + x); } exports.assertNever = assertNever; //# sourceMappingURL=assertNever.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.classNamesFunction = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var rtl_1 = __webpack_require__(/*! ./rtl */ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js"); var dom_1 = __webpack_require__(/*! ./dom */ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js"); var MAX_CACHE_COUNT = 50; var DEFAULT_SPECIFICITY_MULTIPLIER = 5; var _memoizedClassNames = 0; var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(function () { return _memoizedClassNames++; }); } // Note that because of the caching nature within the classNames memoization, // I've disabled this rule to simply be able to work with any types. /* eslint-disable @typescript-eslint/no-explicit-any */ // This represents a prop we attach to each Map to indicate the cached return value // associated with the graph node. var retVal = '__retval__'; /** * Creates a getClassNames function which calls getStyles given the props, and injects them * into mergeStyleSets. * * Note that the props you pass in on every render should be in the same order and * immutable (numbers, strings, and booleans). This will allow the results to be memoized. Violating * these will cause extra recalcs to occur. */ function classNamesFunction(options) { // We build a trie where each node is a Map. The map entry key represents an argument // value, and the entry value is another node (Map). Each node has a `__retval__` // property which is used to hold the cached response. if (options === void 0) { options = {}; } // To derive the response, we can simply ensure the arguments are added or already // exist in the trie. At the last node, if there is a `__retval__` we return that. Otherwise // we call the `getStyles` api to evaluate, cache on the property, and return that. var map = new Map(); var styleCalcCount = 0; var getClassNamesCount = 0; var currentMemoizedClassNames = _memoizedClassNames; var getClassNames = function (styleFunctionOrObject, styleProps) { var _a; if (styleProps === void 0) { styleProps = {}; } // If useStaticStyles is true, styleFunctionOrObject returns slot to classname mappings. // If there is also no style overrides, we can skip merge styles completely and // simply return the result from the style funcion. if (options.useStaticStyles && typeof styleFunctionOrObject === 'function' && styleFunctionOrObject.__noStyleOverride__) { return styleFunctionOrObject(styleProps); } getClassNamesCount++; var current = map; var theme = styleProps.theme; var rtl = theme && theme.rtl !== undefined ? theme.rtl : (0, rtl_1.getRTL)(); var disableCaching = options.disableCaching; // On reset of our stylesheet, reset memoized cache. if (currentMemoizedClassNames !== _memoizedClassNames) { currentMemoizedClassNames = _memoizedClassNames; map = new Map(); styleCalcCount = 0; } if (!options.disableCaching) { current = _traverseMap(map, styleFunctionOrObject); current = _traverseMap(current, styleProps); } if (disableCaching || !current[retVal]) { if (styleFunctionOrObject === undefined) { current[retVal] = {}; } else { current[retVal] = (0, merge_styles_1.mergeCssSets)([ (typeof styleFunctionOrObject === 'function' ? styleFunctionOrObject(styleProps) : styleFunctionOrObject), ], { rtl: !!rtl, specificityMultiplier: options.useStaticStyles ? DEFAULT_SPECIFICITY_MULTIPLIER : undefined }); } if (!disableCaching) { styleCalcCount++; } } if (styleCalcCount > (options.cacheSize || MAX_CACHE_COUNT)) { var win = (0, dom_1.getWindow)(); if ((_a = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _a === void 0 ? void 0 : _a.enableClassNameCacheFullWarning) { // eslint-disable-next-line no-console console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(styleCalcCount, "/").concat(getClassNamesCount, ".")); // eslint-disable-next-line no-console console.trace(); } map.clear(); styleCalcCount = 0; // Mutate the options passed in, that's all we can do. options.disableCaching = true; } // Note: the retVal is an attached property on the Map; not a key in the Map. We use this attached property to // cache the return value for this branch of the graph. return current[retVal]; }; return getClassNames; } exports.classNamesFunction = classNamesFunction; function _traverseEdge(current, value) { value = _normalizeValue(value); if (!current.has(value)) { current.set(value, new Map()); } return current.get(value); } function _traverseMap(current, inputs) { if (typeof inputs === 'function') { var cachedInputsFromStyled = inputs.__cachedInputs__; if (cachedInputsFromStyled) { // The styled helper will generate the styles function and will attach the cached // inputs (consisting of the default styles, customzied styles, and user provided styles.) // These should be used as cache keys for deriving the memoized value. for (var _i = 0, _a = inputs.__cachedInputs__; _i < _a.length; _i++) { var input = _a[_i]; current = _traverseEdge(current, input); } } else { current = _traverseEdge(current, inputs); } } else if (typeof inputs === 'object') { for (var propName in inputs) { if (inputs.hasOwnProperty(propName)) { current = _traverseEdge(current, inputs[propName]); } } } return current; } function _normalizeValue(value) { switch (value) { case undefined: return '__undefined__'; case null: return '__null__'; default: return value; } } //# sourceMappingURL=classNamesFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.composeComponentAs = 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 memoize_1 = __webpack_require__(/*! ../memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); function createComposedComponent(outer) { var Outer = outer; var outerMemoizer = (0, memoize_1.createMemoizer)(function (inner) { if (outer === inner) { throw new Error('Attempted to compose a component with itself.'); } var Inner = inner; var innerMemoizer = (0, memoize_1.createMemoizer)(function (defaultRender) { var InnerWithDefaultRender = function (innerProps) { return React.createElement(Inner, tslib_1.__assign({}, innerProps, { defaultRender: defaultRender })); }; return InnerWithDefaultRender; }); var OuterWithDefaultRender = function (outerProps) { var defaultRender = outerProps.defaultRender; return React.createElement(Outer, tslib_1.__assign({}, outerProps, { defaultRender: defaultRender ? innerMemoizer(defaultRender) : Inner })); }; return OuterWithDefaultRender; }); return outerMemoizer; } var componentAsMemoizer = (0, memoize_1.createMemoizer)(createComposedComponent); /** * Composes two components which conform to the `IComponentAs` specification; that is, two * components which accept a `defaultRender` prop, which is a 'default' implementation of * a component which accepts the same overall props. * * @public */ function composeComponentAs(outer, inner) { return componentAsMemoizer(outer)(inner); } exports.composeComponentAs = composeComponentAs; //# sourceMappingURL=composeComponentAs.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/controlled.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isControlled = void 0; /** * Determines whether a component is controlled. * @param props - Component props * @param valueProp - Prop containing the controlled value * @returns true if controlled, false if uncontrolled */ function isControlled(props, valueProp) { // React's built-in considers a prop to be provided if its value is non-null/undefined. // Mirror that behavior here (rather than checking for just undefined). return props[valueProp] !== undefined && props[valueProp] !== null; } exports.isControlled = isControlled; //# sourceMappingURL=controlled.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createMergedRef = void 0; var array_1 = __webpack_require__(/*! ./array */ "./node_modules/@fluentui/utilities/lib-commonjs/array.js"); /** * Set up a ref resolver function given internal state managed for the ref. * @param local Set */ var createResolver = function (local) { return function (newValue) { for (var _i = 0, _a = local.refs; _i < _a.length; _i++) { var ref = _a[_i]; if (typeof ref === 'function') { ref(newValue); } else if (ref) { // work around the immutability of the React.Ref type ref.current = newValue; } } }; }; /** * Helper to merge refs from within class components. */ var createMergedRef = function (value) { var local = { refs: [], }; return function () { var newRefs = []; for (var _i = 0; _i < arguments.length; _i++) { newRefs[_i] = arguments[_i]; } if (!local.resolver || !(0, array_1.arraysEqual)(local.refs, newRefs)) { local.resolver = createResolver(local); } local.refs = newRefs; return local.resolver; }; }; exports.createMergedRef = createMergedRef; //# sourceMappingURL=createMergedRef.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/css.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/css.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.css = void 0; /** * Concatination helper, which can merge class names together. Skips over falsey values. * * @public */ function css() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var classes = []; for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var arg = args_1[_a]; if (arg) { if (typeof arg === 'string') { classes.push(arg); } else if (arg.hasOwnProperty('toString') && typeof arg.toString === 'function') { classes.push(arg.toString()); } else { // eslint-disable-next-line @typescript-eslint/no-explicit-any for (var key in arg) { // eslint-disable-next-line @typescript-eslint/no-explicit-any if (arg[key]) { classes.push(key); } } } } } return classes.join(' '); } exports.css = css; //# sourceMappingURL=css.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Customizations = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var GlobalSettings_1 = __webpack_require__(/*! ../GlobalSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js"); var CustomizationsGlobalKey = 'customizations'; var NO_CUSTOMIZATIONS = { settings: {}, scopedSettings: {}, inCustomizerContext: false }; var _allSettings = GlobalSettings_1.GlobalSettings.getValue(CustomizationsGlobalKey, { settings: {}, scopedSettings: {}, inCustomizerContext: false, }); var _events = []; var Customizations = /** @class */ (function () { function Customizations() { } Customizations.reset = function () { _allSettings.settings = {}; _allSettings.scopedSettings = {}; }; /** Apply global Customization settings. * @example Customizations.applySettings(\{ theme: \{...\} \}); */ Customizations.applySettings = function (settings) { _allSettings.settings = tslib_1.__assign(tslib_1.__assign({}, _allSettings.settings), settings); Customizations._raiseChange(); }; /** Apply Customizations to a particular named scope, like a component. * @example Customizations.applyScopedSettings('Nav', \{ styles: () =\> \{\} \}); */ Customizations.applyScopedSettings = function (scopeName, settings) { _allSettings.scopedSettings[scopeName] = tslib_1.__assign(tslib_1.__assign({}, _allSettings.scopedSettings[scopeName]), settings); Customizations._raiseChange(); }; Customizations.getSettings = function (properties, scopeName, localSettings) { if (localSettings === void 0) { localSettings = NO_CUSTOMIZATIONS; } var settings = {}; var localScopedSettings = (scopeName && localSettings.scopedSettings[scopeName]) || {}; var globalScopedSettings = (scopeName && _allSettings.scopedSettings[scopeName]) || {}; for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) { var property = properties_1[_i]; settings[property] = localScopedSettings[property] || localSettings.settings[property] || globalScopedSettings[property] || _allSettings.settings[property]; } return settings; }; /** Used to run some code that sets Customizations without triggering an update until the end. * Useful for applying Customizations that don't affect anything currently rendered, or for * applying many customizations at once. * @param suppressUpdate - Do not raise the change event at the end, preventing all updates */ Customizations.applyBatchedUpdates = function (code, suppressUpdate) { Customizations._suppressUpdates = true; try { code(); } catch (_a) { /* do nothing */ } Customizations._suppressUpdates = false; if (!suppressUpdate) { Customizations._raiseChange(); } }; Customizations.observe = function (onChange) { _events.push(onChange); }; Customizations.unobserve = function (onChange) { _events = _events.filter(function (cb) { return cb !== onChange; }); }; Customizations._raiseChange = function () { if (!Customizations._suppressUpdates) { _events.forEach(function (cb) { return cb(); }); } }; return Customizations; }()); exports.Customizations = Customizations; //# sourceMappingURL=Customizations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Customizer = 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 Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); var mergeCustomizations_1 = __webpack_require__(/*! ./mergeCustomizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js"); /** * The Customizer component allows for default props to be mixed into components which * are decorated with the customizable() decorator, or use the styled HOC. This enables * injection scenarios like: * * 1. render svg icons instead of the icon font within all buttons * 2. inject a custom theme object into a component * * Props are provided via the settings prop which should be one of the following: * - A json map which contains 1 or more name/value pairs representing injectable props. * - A function that receives the current settings and returns the new ones that apply to the scope * * @public * * @deprecated This component is deprecated for purpose of applying theme to components * as of `@fluentui/react` version 8. Use `ThemeProvider` for applying theme instead. */ var Customizer = /** @class */ (function (_super) { tslib_1.__extends(Customizer, _super); function Customizer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._onCustomizationChange = function () { return _this.forceUpdate(); }; return _this; } Customizer.prototype.componentDidMount = function () { Customizations_1.Customizations.observe(this._onCustomizationChange); }; Customizer.prototype.componentWillUnmount = function () { Customizations_1.Customizations.unobserve(this._onCustomizationChange); }; Customizer.prototype.render = function () { var _this = this; var contextTransform = this.props.contextTransform; return (React.createElement(CustomizerContext_1.CustomizerContext.Consumer, null, function (parentContext) { var newContext = (0, mergeCustomizations_1.mergeCustomizations)(_this.props, parentContext); if (contextTransform) { newContext = contextTransform(newContext); } return React.createElement(CustomizerContext_1.CustomizerContext.Provider, { value: newContext }, _this.props.children); })); }; return Customizer; }(React.Component)); exports.Customizer = Customizer; //# sourceMappingURL=Customizer.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CustomizerContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); exports.CustomizerContext = React.createContext({ customizations: { inCustomizerContext: false, settings: {}, scopedSettings: {}, }, }); //# sourceMappingURL=CustomizerContext.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.customizable = 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 Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var hoistStatics_1 = __webpack_require__(/*! ../hoistStatics */ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); function customizable(scope, fields, concatStyles) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return function customizableFactory(ComposedComponent) { var _a; var resultClass = (_a = /** @class */ (function (_super) { tslib_1.__extends(ComponentWithInjectedProps, _super); function ComponentWithInjectedProps(props) { var _this = _super.call(this, props) || this; // eslint-disable-next-line @typescript-eslint/no-explicit-any _this._styleCache = {}; _this._onSettingChanged = _this._onSettingChanged.bind(_this); return _this; } ComponentWithInjectedProps.prototype.componentDidMount = function () { Customizations_1.Customizations.observe(this._onSettingChanged); }; ComponentWithInjectedProps.prototype.componentWillUnmount = function () { Customizations_1.Customizations.unobserve(this._onSettingChanged); }; ComponentWithInjectedProps.prototype.render = function () { var _this = this; return (React.createElement(CustomizerContext_1.CustomizerContext.Consumer, null, function (context) { var defaultProps = Customizations_1.Customizations.getSettings(fields, scope, context.customizations); // eslint-disable-next-line @typescript-eslint/no-explicit-any var componentProps = _this.props; // If defaultProps.styles is a function, evaluate it before calling concatStyleSets if (defaultProps.styles && typeof defaultProps.styles === 'function') { defaultProps.styles = defaultProps.styles(tslib_1.__assign(tslib_1.__assign({}, defaultProps), componentProps)); } // If concatStyles is true and custom styles have been defined compute those styles if (concatStyles && defaultProps.styles) { if (_this._styleCache.default !== defaultProps.styles || _this._styleCache.component !== componentProps.styles) { var mergedStyles = (0, merge_styles_1.concatStyleSets)(defaultProps.styles, componentProps.styles); _this._styleCache.default = defaultProps.styles; _this._styleCache.component = componentProps.styles; _this._styleCache.merged = mergedStyles; } return React.createElement(ComposedComponent, tslib_1.__assign({}, defaultProps, componentProps, { styles: _this._styleCache.merged })); } return React.createElement(ComposedComponent, tslib_1.__assign({}, defaultProps, componentProps)); })); }; ComponentWithInjectedProps.prototype._onSettingChanged = function () { this.forceUpdate(); }; return ComponentWithInjectedProps; }(React.Component)), _a.displayName = 'Customized' + scope, _a); return (0, hoistStatics_1.hoistStatics)(ComposedComponent, resultClass); }; } exports.customizable = customizable; //# sourceMappingURL=customizable.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeCustomizations = void 0; var mergeSettings_1 = __webpack_require__(/*! ./mergeSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js"); /** * Merge props and customizations giving priority to props over context. * NOTE: This function will always perform multiple merge operations. Use with caution. * @param props - New settings to merge in. * @param parentContext - Context containing current settings. * @returns Merged customizations. */ function mergeCustomizations(props, parentContext) { var _a = (parentContext || {}).customizations, customizations = _a === void 0 ? { settings: {}, scopedSettings: {} } : _a; return { customizations: { settings: (0, mergeSettings_1.mergeSettings)(customizations.settings, props.settings), scopedSettings: (0, mergeSettings_1.mergeScopedSettings)(customizations.scopedSettings, props.scopedSettings), inCustomizerContext: true, }, }; } exports.mergeCustomizations = mergeCustomizations; //# sourceMappingURL=mergeCustomizations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeScopedSettings = exports.mergeSettings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Merge new and old settings, giving priority to new settings. * New settings is optional in which case oldSettings is returned as-is. * @param oldSettings - Old settings to fall back to. * @param newSettings - New settings that will be merged over oldSettings. * @returns Merged settings. */ function mergeSettings(oldSettings, newSettings) { if (oldSettings === void 0) { oldSettings = {}; } var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _settingsMergeWith(newSettings); return mergeSettingsWith(oldSettings); } exports.mergeSettings = mergeSettings; function mergeScopedSettings(oldSettings, newSettings) { if (oldSettings === void 0) { oldSettings = {}; } var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _scopedSettingsMergeWith(newSettings); return mergeSettingsWith(oldSettings); } exports.mergeScopedSettings = mergeScopedSettings; function _isSettingsFunction(settings) { return typeof settings === 'function'; } function _settingsMergeWith(newSettings) { return function (settings) { return (newSettings ? tslib_1.__assign(tslib_1.__assign({}, settings), newSettings) : settings); }; } function _scopedSettingsMergeWith(scopedSettingsFromProps) { if (scopedSettingsFromProps === void 0) { scopedSettingsFromProps = {}; } return function (oldScopedSettings) { var newScopedSettings = tslib_1.__assign({}, oldScopedSettings); for (var scopeName in scopedSettingsFromProps) { if (scopedSettingsFromProps.hasOwnProperty(scopeName)) { newScopedSettings[scopeName] = tslib_1.__assign(tslib_1.__assign({}, oldScopedSettings[scopeName]), scopedSettingsFromProps[scopeName]); } } return newScopedSettings; }; } //# sourceMappingURL=mergeSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useCustomizationSettings = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Customizations_1 = __webpack_require__(/*! ./Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); var CustomizerContext_1 = __webpack_require__(/*! ./CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); /** * Hook to get Customizations settings from Customizations singleton or CustomizerContext. * It will trigger component state update on settings change observed. */ function useCustomizationSettings(properties, scopeName) { var forceUpdate = useForceUpdate(); var customizations = React.useContext(CustomizerContext_1.CustomizerContext).customizations; var inCustomizerContext = customizations.inCustomizerContext; React.useEffect(function () { if (!inCustomizerContext) { Customizations_1.Customizations.observe(forceUpdate); } return function () { if (!inCustomizerContext) { Customizations_1.Customizations.unobserve(forceUpdate); } }; // eslint-disable-next-line react-hooks/exhaustive-deps -- exclude forceUpdate }, [inCustomizerContext]); return Customizations_1.Customizations.getSettings(properties, scopeName, customizations); } exports.useCustomizationSettings = useCustomizationSettings; function useForceUpdate() { var _a = React.useState(0), setValue = _a[1]; return function () { return setValue(function (value) { return ++value; }); }; } //# sourceMappingURL=useCustomizationSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVirtualParent = exports.setPortalAttribute = exports.DATA_PORTAL_ATTRIBUTE = exports.raiseClick = exports.portalContainsElement = exports.on = exports.isVirtualElement = exports.getWindow = exports.getVirtualParent = exports.getRect = exports.getParent = exports.getFirstVisibleElementFromSelector = exports.getDocument = exports.getChildren = exports.findElementRecursive = exports.elementContainsAttribute = exports.elementContains = void 0; var elementContains_1 = __webpack_require__(/*! ./dom/elementContains */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js"); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return elementContains_1.elementContains; } })); var elementContainsAttribute_1 = __webpack_require__(/*! ./dom/elementContainsAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js"); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return elementContainsAttribute_1.elementContainsAttribute; } })); var findElementRecursive_1 = __webpack_require__(/*! ./dom/findElementRecursive */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js"); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return findElementRecursive_1.findElementRecursive; } })); var getChildren_1 = __webpack_require__(/*! ./dom/getChildren */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js"); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return getChildren_1.getChildren; } })); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); Object.defineProperty(exports, "getDocument", ({ enumerable: true, get: function () { return getDocument_1.getDocument; } })); var getFirstVisibleElementFromSelector_1 = __webpack_require__(/*! ./dom/getFirstVisibleElementFromSelector */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js"); Object.defineProperty(exports, "getFirstVisibleElementFromSelector", ({ enumerable: true, get: function () { return getFirstVisibleElementFromSelector_1.getFirstVisibleElementFromSelector; } })); var getParent_1 = __webpack_require__(/*! ./dom/getParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js"); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return getParent_1.getParent; } })); var getRect_1 = __webpack_require__(/*! ./dom/getRect */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js"); Object.defineProperty(exports, "getRect", ({ enumerable: true, get: function () { return getRect_1.getRect; } })); var getVirtualParent_1 = __webpack_require__(/*! ./dom/getVirtualParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js"); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return getVirtualParent_1.getVirtualParent; } })); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); Object.defineProperty(exports, "getWindow", ({ enumerable: true, get: function () { return getWindow_1.getWindow; } })); var isVirtualElement_1 = __webpack_require__(/*! ./dom/isVirtualElement */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js"); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return isVirtualElement_1.isVirtualElement; } })); var on_1 = __webpack_require__(/*! ./dom/on */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js"); Object.defineProperty(exports, "on", ({ enumerable: true, get: function () { return on_1.on; } })); var portalContainsElement_1 = __webpack_require__(/*! ./dom/portalContainsElement */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js"); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return portalContainsElement_1.portalContainsElement; } })); var raiseClick_1 = __webpack_require__(/*! ./dom/raiseClick */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "raiseClick", ({ enumerable: true, get: function () { return raiseClick_1.raiseClick; } })); var setPortalAttribute_1 = __webpack_require__(/*! ./dom/setPortalAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return setPortalAttribute_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return setPortalAttribute_1.setPortalAttribute; } })); var setVirtualParent_1 = __webpack_require__(/*! ./dom/setVirtualParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js"); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return setVirtualParent_1.setVirtualParent; } })); //# sourceMappingURL=dom.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.canUseDOM = void 0; /** * Verifies if an application can use DOM. */ function canUseDOM() { return (typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line deprecation/deprecation window.document.createElement)); } exports.canUseDOM = canUseDOM; //# sourceMappingURL=canUseDOM.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContains = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return dom_utilities_1.elementContains; } })); //# sourceMappingURL=elementContains.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContainsAttribute = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return dom_utilities_1.elementContainsAttribute; } })); //# sourceMappingURL=elementContainsAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/findElementRecursive.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findElementRecursive = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return dom_utilities_1.findElementRecursive; } })); //# sourceMappingURL=findElementRecursive.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getChildren.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getChildren = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return dom_utilities_1.getChildren; } })); //# sourceMappingURL=getChildren.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDocument = void 0; var canUseDOM_1 = __webpack_require__(/*! ./canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); /** * Helper to get the document object. Note that in popup window cases, document * might be the wrong document, which is why we look at ownerDocument for the * truth. * * @public */ function getDocument(rootElement) { if (!(0, canUseDOM_1.canUseDOM)() || typeof document === 'undefined') { return undefined; } else { var el = rootElement; return el && el.ownerDocument ? el.ownerDocument : document; } } exports.getDocument = getDocument; //# sourceMappingURL=getDocument.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getFirstVisibleElementFromSelector.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getFirstVisibleElementFromSelector = void 0; var focus_1 = __webpack_require__(/*! ../focus */ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js"); var getDocument_1 = __webpack_require__(/*! ./getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); /** * Gets the first visible element that matches the given selector * @param selector - The selector to use to find potential visible elements * @returns The first visible element that matches the selector, otherwise undefined * * @public */ function getFirstVisibleElementFromSelector(selector) { var elements = (0, getDocument_1.getDocument)().querySelectorAll(selector); // Iterate across the elements that match the selector and return the first visible/non-hidden element return Array.from(elements).find(function (element) { return (0, focus_1.isElementVisibleAndNotHidden)(element); }); } exports.getFirstVisibleElementFromSelector = getFirstVisibleElementFromSelector; //# sourceMappingURL=getFirstVisibleElementFromSelector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return dom_utilities_1.getParent; } })); //# sourceMappingURL=getParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getRect.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRect = void 0; /** * Helper to get bounding client rect. Passing in window will get the window size. * * @public */ function getRect(element) { var rect; if (element) { if (element === window) { rect = { left: 0, top: 0, width: window.innerWidth, height: window.innerHeight, right: window.innerWidth, bottom: window.innerHeight, }; } else if (element.getBoundingClientRect) { rect = element.getBoundingClientRect(); } } return rect; } exports.getRect = getRect; //# sourceMappingURL=getRect.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getVirtualParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return dom_utilities_1.getVirtualParent; } })); //# sourceMappingURL=getVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getWindow = void 0; var canUseDOM_1 = __webpack_require__(/*! ./canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); var _window = undefined; // Note: Accessing "window" in IE11 is somewhat expensive, and calling "typeof window" // hits a memory leak, whereas aliasing it and calling "typeof _window" does not. // Caching the window value at the file scope lets us minimize the impact. try { _window = window; } catch (e) { /* no-op */ } /** * Helper to get the window object. The helper will make sure to use a cached variable * of "window", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the * window object won't match the "global" window object, and for these scenarios, you should * pass in an element hosted within the popup. * * @public */ function getWindow(rootElement) { if (!(0, canUseDOM_1.canUseDOM)() || typeof _window === 'undefined') { return undefined; } else { var el = rootElement; return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window; } } exports.getWindow = getWindow; //# sourceMappingURL=getWindow.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/isVirtualElement.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isVirtualElement = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return dom_utilities_1.isVirtualElement; } })); //# sourceMappingURL=isVirtualElement.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/on.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.on = void 0; function on(element, eventName, callback, options) { element.addEventListener(eventName, callback, options); return function () { return element.removeEventListener(eventName, callback, options); }; } exports.on = on; //# sourceMappingURL=on.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/portalContainsElement.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.portalContainsElement = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return dom_utilities_1.portalContainsElement; } })); //# sourceMappingURL=portalContainsElement.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/raiseClick.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.raiseClick = void 0; /** Raises a click event. * @deprecated Moved to `FocusZone` component since it was the only place internally using this function. */ function raiseClick(target) { var event = createNewEvent('MouseEvents'); // eslint-disable-next-line deprecation/deprecation event.initEvent('click', true, true); target.dispatchEvent(event); } exports.raiseClick = raiseClick; function createNewEvent(eventName) { var event; if (typeof Event === 'function') { // Chrome, Opera, Firefox event = new Event(eventName); } else { // IE event = document.createEvent('Event'); // eslint-disable-next-line deprecation/deprecation event.initEvent(eventName, true, true); } return event; } //# sourceMappingURL=raiseClick.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setPortalAttribute.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setPortalAttribute = exports.DATA_PORTAL_ATTRIBUTE = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return dom_utilities_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return dom_utilities_1.setPortalAttribute; } })); //# sourceMappingURL=setPortalAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setSSR = exports._isSSR = void 0; /** * @deprecated Use `canUseDOM` from `@fluentui/utilities` instead. */ exports._isSSR = false; /** * Helper to set ssr mode to simulate no window object returned from getWindow helper. * * @deprecated Use `canUseDOM` from `@fluentui/utilities` instead. */ function setSSR(isEnabled) { throw new Error('setSSR has been deprecated and is not used in any utilities anymore.' + ' Use canUseDOM from @fluentui/utilities instead.'); } exports.setSSR = setSSR; //# sourceMappingURL=setSSR.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/dom/setVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVirtualParent = void 0; var dom_utilities_1 = __webpack_require__(/*! @fluentui/dom-utilities */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return dom_utilities_1.setVirtualParent; } })); //# sourceMappingURL=setVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.extendComponent = void 0; var appendFunction_1 = __webpack_require__(/*! ./appendFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js"); /** * Extends a component's lifetime methods by appending new functions to the existing lifetime functions. */ function extendComponent(parent, methods) { for (var name_1 in methods) { if (methods.hasOwnProperty(name_1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any parent[name_1] = (0, appendFunction_1.appendFunction)(parent, parent[name_1], methods[name_1]); } } } exports.extendComponent = extendComponent; //# sourceMappingURL=extendComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/focus.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getElementIndexPath = exports.getFocusableByIndexPath = exports.focusAsync = exports.shouldWrapFocus = exports.doesElementContainFocus = exports.isElementFocusSubZone = exports.isElementFocusZone = exports.isElementTabbable = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.getNextElement = exports.getPreviousElement = exports.focusFirstChild = exports.getLastTabbable = exports.getFirstTabbable = exports.getLastFocusable = exports.getFirstFocusable = void 0; var elementContainsAttribute_1 = __webpack_require__(/*! ./dom/elementContainsAttribute */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContainsAttribute.js"); var elementContains_1 = __webpack_require__(/*! ./dom/elementContains */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/elementContains.js"); var getParent_1 = __webpack_require__(/*! ./dom/getParent */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getParent.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'; var IS_VISIBLE_ATTRIBUTE = 'data-is-visible'; var FOCUSZONE_ID_ATTRIBUTE = 'data-focuszone-id'; var FOCUSZONE_SUB_ATTRIBUTE = 'data-is-sub-focuszone'; /** * Gets the first focusable element. * * @public */ function getFirstFocusable(rootElement, currentElement, includeElementsInFocusZones) { return getNextElement(rootElement, currentElement, true /*checkNode*/, false /*suppressParentTraversal*/, false /*suppressChildTraversal*/, includeElementsInFocusZones); } exports.getFirstFocusable = getFirstFocusable; /** * Gets the last focusable element. * * @public */ function getLastFocusable(rootElement, currentElement, includeElementsInFocusZones) { return getPreviousElement(rootElement, currentElement, true /*checkNode*/, false /*suppressParentTraversal*/, true /*traverseChildren*/, includeElementsInFocusZones); } exports.getLastFocusable = getLastFocusable; /** * Gets the first tabbable element. (The difference between focusable and tabbable is that tabbable elements are * focusable elements that also have tabIndex != -1.) * @param rootElement - The parent element to search beneath. * @param currentElement - The descendant of rootElement to start the search at. This element is the first one checked, * and iteration continues forward. Typical use passes rootElement.firstChild. * @param includeElementsInFocusZones - true if traversal should go into FocusZone descendants. * @param checkNode - Include currentElement in search when true. Defaults to true. * @public */ function getFirstTabbable(rootElement, currentElement, includeElementsInFocusZones, checkNode) { if (checkNode === void 0) { checkNode = true; } return getNextElement(rootElement, currentElement, checkNode, false /*suppressParentTraversal*/, false /*suppressChildTraversal*/, includeElementsInFocusZones, false /*allowFocusRoot*/, true /*tabbable*/); } exports.getFirstTabbable = getFirstTabbable; /** * Gets the last tabbable element. (The difference between focusable and tabbable is that tabbable elements are * focusable elements that also have tabIndex != -1.) * @param rootElement - The parent element to search beneath. * @param currentElement - The descendant of rootElement to start the search at. This element is the first one checked, * and iteration continues in reverse. Typical use passes rootElement.lastChild. * @param includeElementsInFocusZones - true if traversal should go into FocusZone descendants. * @param checkNode - Include currentElement in search when true. Defaults to true. * @public */ function getLastTabbable(rootElement, currentElement, includeElementsInFocusZones, checkNode) { if (checkNode === void 0) { checkNode = true; } return getPreviousElement(rootElement, currentElement, checkNode, false /*suppressParentTraversal*/, true /*traverseChildren*/, includeElementsInFocusZones, false /*allowFocusRoot*/, true /*tabbable*/); } exports.getLastTabbable = getLastTabbable; /** * Attempts to focus the first focusable element that is a child or child's child of the rootElement. * * @public * @param rootElement - Element to start the search for a focusable child. * @param bypassHiddenElements - If true, focus will be not be set on hidden elements. * @returns True if focus was set, false if it was not. */ function focusFirstChild(rootElement, bypassHiddenElements) { var element = getNextElement(rootElement, rootElement, true, false, false, true, undefined, undefined, bypassHiddenElements); if (element) { focusAsync(element); return true; } return false; } exports.focusFirstChild = focusFirstChild; /** * Traverse to find the previous element. * If tabbable is true, the element must have tabIndex != -1. * * @public */ function getPreviousElement(rootElement, currentElement, checkNode, suppressParentTraversal, traverseChildren, includeElementsInFocusZones, allowFocusRoot, tabbable) { if (!currentElement || (!allowFocusRoot && currentElement === rootElement)) { return null; } var isCurrentElementVisible = isElementVisible(currentElement); // Check its children. if (traverseChildren && isCurrentElementVisible && (includeElementsInFocusZones || !(isElementFocusZone(currentElement) || isElementFocusSubZone(currentElement)))) { var childMatch = getPreviousElement(rootElement, currentElement.lastElementChild, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatch) { if ((tabbable && isElementTabbable(childMatch, true)) || !tabbable) { return childMatch; } var childMatchSiblingMatch = getPreviousElement(rootElement, childMatch.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatchSiblingMatch) { return childMatchSiblingMatch; } var childMatchParent = childMatch.parentElement; // At this point if we have not found any potential matches // start looking at the rest of the subtree under the currentParent. // NOTE: We do not want to recurse here because doing so could // cause elements to get skipped. while (childMatchParent && childMatchParent !== currentElement) { var childMatchParentMatch = getPreviousElement(rootElement, childMatchParent.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (childMatchParentMatch) { return childMatchParentMatch; } childMatchParent = childMatchParent.parentElement; } } } // Check the current node, if it's not the first traversal. if (checkNode && isCurrentElementVisible && isElementTabbable(currentElement, tabbable)) { return currentElement; } // Check its previous sibling. var siblingMatch = getPreviousElement(rootElement, currentElement.previousElementSibling, true, true, true, includeElementsInFocusZones, allowFocusRoot, tabbable); if (siblingMatch) { return siblingMatch; } // Check its parent. if (!suppressParentTraversal) { return getPreviousElement(rootElement, currentElement.parentElement, true, false, false, includeElementsInFocusZones, allowFocusRoot, tabbable); } return null; } exports.getPreviousElement = getPreviousElement; /** * Traverse to find the next focusable element. * If tabbable is true, the element must have tabIndex != -1. * * @public * @param checkNode - Include currentElement in search when true. */ function getNextElement(rootElement, currentElement, checkNode, suppressParentTraversal, suppressChildTraversal, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements) { if (!currentElement || (currentElement === rootElement && suppressChildTraversal && !allowFocusRoot)) { return null; } var checkElementVisibility = bypassHiddenElements ? isElementVisibleAndNotHidden : isElementVisible; var isCurrentElementVisible = checkElementVisibility(currentElement); // Check the current node, if it's not the first traversal. if (checkNode && isCurrentElementVisible && isElementTabbable(currentElement, tabbable)) { return currentElement; } // Check its children. if (!suppressChildTraversal && isCurrentElementVisible && (includeElementsInFocusZones || !(isElementFocusZone(currentElement) || isElementFocusSubZone(currentElement)))) { var childMatch = getNextElement(rootElement, currentElement.firstElementChild, true, true, false, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); if (childMatch) { return childMatch; } } if (currentElement === rootElement) { return null; } // Check its sibling. var siblingMatch = getNextElement(rootElement, currentElement.nextElementSibling, true, true, false, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); if (siblingMatch) { return siblingMatch; } if (!suppressParentTraversal) { return getNextElement(rootElement, currentElement.parentElement, false, false, true, includeElementsInFocusZones, allowFocusRoot, tabbable, bypassHiddenElements); } return null; } exports.getNextElement = getNextElement; /** * Determines if an element is visible. * * @public */ function isElementVisible(element) { // If the element is not valid, return false. if (!element || !element.getAttribute) { return false; } var visibilityAttribute = element.getAttribute(IS_VISIBLE_ATTRIBUTE); // If the element is explicitly marked with the visibility attribute, return that value as boolean. if (visibilityAttribute !== null && visibilityAttribute !== undefined) { return visibilityAttribute === 'true'; } // Fallback to other methods of determining actual visibility. return (element.offsetHeight !== 0 || element.offsetParent !== null || // eslint-disable-next-line @typescript-eslint/no-explicit-any element.isVisible === true); // used as a workaround for testing. } exports.isElementVisible = isElementVisible; /** * Determines if an element is visible and not hidden * @param element - Element to check * @returns Returns true if the given element is visible and not hidden * * @public */ function isElementVisibleAndNotHidden(element) { return (!!element && isElementVisible(element) && !element.hidden && window.getComputedStyle(element).visibility !== 'hidden'); } exports.isElementVisibleAndNotHidden = isElementVisibleAndNotHidden; /** * Determines if an element can receive focus programmatically or via a mouse click. * If checkTabIndex is true, additionally checks to ensure the element can be focused with the tab key, * meaning tabIndex != -1. * * @public */ function isElementTabbable(element, checkTabIndex) { // If this element is null or is disabled, it is not considered tabbable. if (!element || element.disabled) { return false; } var tabIndex = 0; var tabIndexAttributeValue = null; if (element && element.getAttribute) { tabIndexAttributeValue = element.getAttribute('tabIndex'); if (tabIndexAttributeValue) { tabIndex = parseInt(tabIndexAttributeValue, 10); } } var isFocusableAttribute = element.getAttribute ? element.getAttribute(IS_FOCUSABLE_ATTRIBUTE) : null; var isTabIndexSet = tabIndexAttributeValue !== null && tabIndex >= 0; var result = !!element && isFocusableAttribute !== 'false' && (element.tagName === 'A' || element.tagName === 'BUTTON' || element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.tagName === 'SELECT' || isFocusableAttribute === 'true' || isTabIndexSet); return checkTabIndex ? tabIndex !== -1 && result : result; } exports.isElementTabbable = isElementTabbable; /** * Determines if a given element is a focus zone. * * @public */ function isElementFocusZone(element) { return !!(element && element.getAttribute && !!element.getAttribute(FOCUSZONE_ID_ATTRIBUTE)); } exports.isElementFocusZone = isElementFocusZone; /** * Determines if a given element is a focus sub zone. * * @public */ function isElementFocusSubZone(element) { return !!(element && element.getAttribute && element.getAttribute(FOCUSZONE_SUB_ATTRIBUTE) === 'true'); } exports.isElementFocusSubZone = isElementFocusSubZone; /** * Determines if an element, or any of its children, contain focus. * * @public */ function doesElementContainFocus(element) { var document = (0, getDocument_1.getDocument)(element); var currentActiveElement = document && document.activeElement; if (currentActiveElement && (0, elementContains_1.elementContains)(element, currentActiveElement)) { return true; } return false; } exports.doesElementContainFocus = doesElementContainFocus; /** * Determines if an, or any of its ancestors, sepcificies that it doesn't want focus to wrap * @param element - element to start searching from * @param noWrapDataAttribute - the no wrap data attribute to match (either) * @returns true if focus should wrap, false otherwise */ function shouldWrapFocus(element, noWrapDataAttribute) { return (0, elementContainsAttribute_1.elementContainsAttribute)(element, noWrapDataAttribute) === 'true' ? false : true; } exports.shouldWrapFocus = shouldWrapFocus; var targetToFocusOnNextRepaint = undefined; /** * Sets focus to an element asynchronously. The focus will be set at the next browser repaint, * meaning it won't cause any extra recalculations. If more than one focusAsync is called during one frame, * only the latest called focusAsync element will actually be focused * @param element - The element to focus */ function focusAsync(element) { if (element) { // An element was already queued to be focused, so replace that one with the new element if (targetToFocusOnNextRepaint) { targetToFocusOnNextRepaint = element; return; } targetToFocusOnNextRepaint = element; var win = (0, getWindow_1.getWindow)(element); if (win) { // element.focus() is a no-op if the element is no longer in the DOM, meaning this is always safe win.requestAnimationFrame(function () { targetToFocusOnNextRepaint && targetToFocusOnNextRepaint.focus(); // We are done focusing for this frame, so reset the queued focus element targetToFocusOnNextRepaint = undefined; }); } } } exports.focusAsync = focusAsync; /** * Finds the closest focusable element via an index path from a parent. See * `getElementIndexPath` for getting an index path from an element to a child. */ function getFocusableByIndexPath(parent, path) { var element = parent; for (var _i = 0, path_1 = path; _i < path_1.length; _i++) { var index = path_1[_i]; var nextChild = element.children[Math.min(index, element.children.length - 1)]; if (!nextChild) { break; } element = nextChild; } element = isElementTabbable(element) && isElementVisible(element) ? element : getNextElement(parent, element, true) || getPreviousElement(parent, element); return element; } exports.getFocusableByIndexPath = getFocusableByIndexPath; /** * Finds the element index path from a parent element to a child element. * * If you had this node structure: "A has children [B, C] and C has child D", * the index path from A to D would be [1, 0], or `parent.chidren[1].children[0]`. */ function getElementIndexPath(fromElement, toElement) { var path = []; while (toElement && fromElement && toElement !== fromElement) { var parent_1 = (0, getParent_1.getParent)(toElement, true); if (parent_1 === null) { return []; } path.unshift(Array.prototype.indexOf.call(parent_1.children, toElement)); toElement = parent_1; } return path; } exports.getElementIndexPath = getElementIndexPath; //# sourceMappingURL=focus.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getId.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getId.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.resetIds = exports.getId = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); // Initialize global window id. var CURRENT_ID_PROPERTY = '__currentId__'; var DEFAULT_ID_STRING = 'id__'; // eslint-disable-next-line @typescript-eslint/no-explicit-any var _global = (0, getWindow_1.getWindow)() || {}; if (_global[CURRENT_ID_PROPERTY] === undefined) { _global[CURRENT_ID_PROPERTY] = 0; } var _initializedStylesheetResets = false; /** * Generates a unique id in the global scope (this spans across duplicate copies of the same library.) * * @public */ function getId(prefix) { if (!_initializedStylesheetResets) { // Configure ids to reset on stylesheet resets. var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { stylesheet.onReset(resetIds); } _initializedStylesheetResets = true; } var index = _global[CURRENT_ID_PROPERTY]++; return (prefix === undefined ? DEFAULT_ID_STRING : prefix) + index; } exports.getId = getId; /** * Resets id counter to an (optional) number. * * @public */ function resetIds(counter) { if (counter === void 0) { counter = 0; } _global[CURRENT_ID_PROPERTY] = counter; } exports.resetIds = resetIds; //# sourceMappingURL=getId.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getNativeElementProps = void 0; var properties_1 = __webpack_require__(/*! ./properties */ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js"); var nativeElementMap = { label: properties_1.labelProperties, audio: properties_1.audioProperties, video: properties_1.videoProperties, ol: properties_1.olProperties, li: properties_1.liProperties, a: properties_1.anchorProperties, button: properties_1.buttonProperties, input: properties_1.inputProperties, textarea: properties_1.textAreaProperties, select: properties_1.selectProperties, option: properties_1.optionProperties, table: properties_1.tableProperties, tr: properties_1.trProperties, th: properties_1.thProperties, td: properties_1.tdProperties, colGroup: properties_1.colGroupProperties, col: properties_1.colProperties, form: properties_1.formProperties, iframe: properties_1.iframeProperties, img: properties_1.imgProperties, }; /** * Given an element tagname and user props, filters the props to only allowed props for the given * element type. * @param tagName - Tag name (e.g. "div") * @param props - Props object * @param excludedPropNames - List of props to disallow */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function getNativeElementProps(tagName, props, excludedPropNames) { var allowedPropNames = (tagName && nativeElementMap[tagName]) || properties_1.htmlElementProperties; return (0, properties_1.getNativeProps)(props, allowedPropNames, excludedPropNames); } exports.getNativeElementProps = getNativeElementProps; //# sourceMappingURL=getNativeElementProps.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getPropsWithDefaults = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Function to apply default values to a component props object. This function is intended for function components, * to maintain parity with the `defaultProps` feature of class components. It accounts for properties that are * specified, but undefined. * @param defaultProps- An object with default values for various properties * @param propsWithoutDefaults- The props object passed into the component */ function getPropsWithDefaults(defaultProps, propsWithoutDefaults) { var props = tslib_1.__assign({}, propsWithoutDefaults); for (var _i = 0, _a = Object.keys(defaultProps); _i < _a.length; _i++) { var key = _a[_i]; if (props[key] === undefined) { props[key] = defaultProps[key]; } } return props; } exports.getPropsWithDefaults = getPropsWithDefaults; //# sourceMappingURL=getPropsWithDefaults.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/hoist.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/hoist.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.unhoistMethods = exports.hoistMethods = void 0; var REACT_LIFECYCLE_EXCLUSIONS = [ 'setState', 'render', 'componentWillMount', 'UNSAFE_componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'UNSAFE_componentWillReceiveProps', 'shouldComponentUpdate', 'componentWillUpdate', 'getSnapshotBeforeUpdate', 'UNSAFE_componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', ]; /** * Allows you to hoist methods, except those in an exclusion set from a source object into a destination object. * * @public * @param destination - The instance of the object to hoist the methods onto. * @param source - The instance of the object where the methods are hoisted from. * @param exclusions - (Optional) What methods to exclude from being hoisted. * @returns An array of names of methods that were hoisted. */ function hoistMethods( // eslint-disable-next-line @typescript-eslint/no-explicit-any destination, // eslint-disable-next-line @typescript-eslint/no-explicit-any source, exclusions) { if (exclusions === void 0) { exclusions = REACT_LIFECYCLE_EXCLUSIONS; } var hoisted = []; var _loop_1 = function (methodName) { if (typeof source[methodName] === 'function' && destination[methodName] === undefined && (!exclusions || exclusions.indexOf(methodName) === -1)) { hoisted.push(methodName); // eslint-disable-next-line @typescript-eslint/no-explicit-any destination[methodName] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } source[methodName].apply(source, args); }; } }; for (var methodName in source) { _loop_1(methodName); } return hoisted; } exports.hoistMethods = hoistMethods; /** * Provides a method for convenience to unhoist hoisted methods. * * @public * @param source - The source object upon which methods were hoisted. * @param methodNames - An array of method names to unhoist. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function unhoistMethods(source, methodNames) { methodNames.forEach(function (methodName) { return delete source[methodName]; }); } exports.unhoistMethods = unhoistMethods; //# sourceMappingURL=hoist.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * Allows you to hoist static functions in components. * Created for the purpose of fixing broken static functions in classes * that utilize decorators. * * @public * @param source - The object where the methods are hoisted from. * @param dest - The object to hoist the methods onto. * @returns The dest object with methods added */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hoistStatics = void 0; function hoistStatics(source, dest) { for (var name_1 in source) { if (source.hasOwnProperty(name_1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any dest[name_1] = source[name_1]; } } return dest; } exports.hoistStatics = hoistStatics; //# sourceMappingURL=hoistStatics.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isIE11 = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var isIE11 = function () { var _a; var win = (0, getWindow_1.getWindow)(); if (!((_a = win === null || win === void 0 ? void 0 : win.navigator) === null || _a === void 0 ? void 0 : _a.userAgent)) { return false; } return win.navigator.userAgent.indexOf('rv:11.0') > -1; }; exports.isIE11 = isIE11; //# sourceMappingURL=ie11Detector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/index.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/index.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.raiseClick = exports.portalContainsElement = exports.on = exports.isVirtualElement = exports.getWindow = exports.getVirtualParent = exports.getRect = exports.getParent = exports.getFirstVisibleElementFromSelector = exports.getDocument = exports.getChildren = exports.findElementRecursive = exports.elementContainsAttribute = exports.elementContains = exports.DATA_PORTAL_ATTRIBUTE = exports.mergeSettings = exports.mergeScopedSettings = exports.mergeCustomizations = exports.useCustomizationSettings = exports.customizable = exports.CustomizerContext = exports.Customizer = exports.Customizations = exports.css = exports.isControlled = exports.composeComponentAs = exports.classNamesFunction = exports.assertNever = exports.asAsync = exports.toMatrix = exports.replaceElement = exports.removeIndex = exports.flatten = exports.findIndex = exports.find = exports.createArray = exports.arraysEqual = exports.addElementAtIndex = exports.mergeAriaAttributeValues = exports.appendFunction = exports.Rectangle = exports.KeyCodes = exports.GlobalSettings = exports.FabricPerformance = exports.EventGroup = exports.DelayedRender = exports.nullRender = exports.BaseComponent = exports.AutoScroll = exports.Async = void 0; exports.modalize = exports.isIOS = exports.merge = exports.setMemoizeWeakMap = exports.resetMemoizations = exports.memoizeFunction = exports.memoize = exports.createMemoizer = exports.precisionRound = exports.getDistanceBetweenPoints = exports.fitContentToBounds = exports.calculatePrecision = exports.setLanguage = exports.getLanguage = exports.removeDirectionalKeyCode = exports.isDirectionalKeyCode = exports.addDirectionalKeyCode = exports.getInitials = exports.useFocusRects = exports.FocusRectsContext = exports.FocusRects = exports.FocusRectsProvider = exports.initializeFocusRects = exports.initializeComponentRef = exports.hoistStatics = exports.unhoistMethods = exports.hoistMethods = exports.getNativeElementProps = exports.resetIds = exports.getId = exports.shouldWrapFocus = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.isElementTabbable = exports.isElementFocusZone = exports.isElementFocusSubZone = exports.getPreviousElement = exports.getNextElement = exports.getLastTabbable = exports.getLastFocusable = exports.getFocusableByIndexPath = exports.getFirstTabbable = exports.getFirstFocusable = exports.getElementIndexPath = exports.focusFirstChild = exports.focusAsync = exports.doesElementContainFocus = exports.extendComponent = exports.setVirtualParent = exports.setPortalAttribute = void 0; exports.findScrollableParent = exports.enableBodyScroll = exports.disableBodyScroll = exports.allowScrollOnElement = exports.allowOverscrollOnElement = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.setRTL = exports.getRTLSafeKeyCode = exports.getRTL = exports.setBaseUrl = exports.getResourceUrl = exports.composeRenderFunction = exports.videoProperties = exports.trProperties = exports.thProperties = exports.textAreaProperties = exports.tdProperties = exports.tableProperties = exports.selectProperties = exports.optionProperties = exports.olProperties = exports.liProperties = exports.labelProperties = exports.inputProperties = exports.imgProperties = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.getNativeProps = exports.formProperties = exports.divProperties = exports.colProperties = exports.colGroupProperties = exports.buttonProperties = exports.baseElementProperties = exports.baseElementEvents = exports.audioProperties = exports.anchorProperties = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.isMac = exports.omit = exports.values = exports.shallowCompare = exports.mapEnumByName = exports.filteredAssign = exports.assign = void 0; exports.useIsomorphicLayoutEffect = exports.createMergedRef = exports.setSSR = exports.canUseDOM = exports.IsFocusVisibleClassName = exports.setFocusVisibility = exports.getPropsWithDefaults = exports.isIE11 = exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.warnConditionallyRequiredProps = exports.warn = exports.setWarningCallback = exports.resetControlledWarnings = exports.styled = exports.format = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = exports.getScrollbarWidth = void 0; var Async_1 = __webpack_require__(/*! ./Async */ "./node_modules/@fluentui/utilities/lib-commonjs/Async.js"); Object.defineProperty(exports, "Async", ({ enumerable: true, get: function () { return Async_1.Async; } })); var AutoScroll_1 = __webpack_require__(/*! ./AutoScroll */ "./node_modules/@fluentui/utilities/lib-commonjs/AutoScroll.js"); Object.defineProperty(exports, "AutoScroll", ({ enumerable: true, get: function () { return AutoScroll_1.AutoScroll; } })); var BaseComponent_1 = __webpack_require__(/*! ./BaseComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/BaseComponent.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "BaseComponent", ({ enumerable: true, get: function () { return BaseComponent_1.BaseComponent; } })); Object.defineProperty(exports, "nullRender", ({ enumerable: true, get: function () { return BaseComponent_1.nullRender; } })); var DelayedRender_1 = __webpack_require__(/*! ./DelayedRender */ "./node_modules/@fluentui/utilities/lib-commonjs/DelayedRender.js"); Object.defineProperty(exports, "DelayedRender", ({ enumerable: true, get: function () { return DelayedRender_1.DelayedRender; } })); var EventGroup_1 = __webpack_require__(/*! ./EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); Object.defineProperty(exports, "EventGroup", ({ enumerable: true, get: function () { return EventGroup_1.EventGroup; } })); var FabricPerformance_1 = __webpack_require__(/*! ./FabricPerformance */ "./node_modules/@fluentui/utilities/lib-commonjs/FabricPerformance.js"); Object.defineProperty(exports, "FabricPerformance", ({ enumerable: true, get: function () { return FabricPerformance_1.FabricPerformance; } })); var GlobalSettings_1 = __webpack_require__(/*! ./GlobalSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/GlobalSettings.js"); Object.defineProperty(exports, "GlobalSettings", ({ enumerable: true, get: function () { return GlobalSettings_1.GlobalSettings; } })); var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); Object.defineProperty(exports, "KeyCodes", ({ enumerable: true, get: function () { return KeyCodes_1.KeyCodes; } })); var Rectangle_1 = __webpack_require__(/*! ./Rectangle */ "./node_modules/@fluentui/utilities/lib-commonjs/Rectangle.js"); Object.defineProperty(exports, "Rectangle", ({ enumerable: true, get: function () { return Rectangle_1.Rectangle; } })); var appendFunction_1 = __webpack_require__(/*! ./appendFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/appendFunction.js"); Object.defineProperty(exports, "appendFunction", ({ enumerable: true, get: function () { return appendFunction_1.appendFunction; } })); var aria_1 = __webpack_require__(/*! ./aria */ "./node_modules/@fluentui/utilities/lib-commonjs/aria.js"); Object.defineProperty(exports, "mergeAriaAttributeValues", ({ enumerable: true, get: function () { return aria_1.mergeAriaAttributeValues; } })); var array_1 = __webpack_require__(/*! ./array */ "./node_modules/@fluentui/utilities/lib-commonjs/array.js"); Object.defineProperty(exports, "addElementAtIndex", ({ enumerable: true, get: function () { return array_1.addElementAtIndex; } })); Object.defineProperty(exports, "arraysEqual", ({ enumerable: true, get: function () { return array_1.arraysEqual; } })); Object.defineProperty(exports, "createArray", ({ enumerable: true, get: function () { return array_1.createArray; } })); Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return array_1.find; } })); Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return array_1.findIndex; } })); Object.defineProperty(exports, "flatten", ({ enumerable: true, get: function () { return array_1.flatten; } })); Object.defineProperty(exports, "removeIndex", ({ enumerable: true, get: function () { return array_1.removeIndex; } })); Object.defineProperty(exports, "replaceElement", ({ enumerable: true, get: function () { return array_1.replaceElement; } })); Object.defineProperty(exports, "toMatrix", ({ enumerable: true, get: function () { return array_1.toMatrix; } })); var asAsync_1 = __webpack_require__(/*! ./asAsync */ "./node_modules/@fluentui/utilities/lib-commonjs/asAsync.js"); Object.defineProperty(exports, "asAsync", ({ enumerable: true, get: function () { return asAsync_1.asAsync; } })); var assertNever_1 = __webpack_require__(/*! ./assertNever */ "./node_modules/@fluentui/utilities/lib-commonjs/assertNever.js"); Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assertNever_1.assertNever; } })); var classNamesFunction_1 = __webpack_require__(/*! ./classNamesFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.js"); Object.defineProperty(exports, "classNamesFunction", ({ enumerable: true, get: function () { return classNamesFunction_1.classNamesFunction; } })); var composeComponentAs_1 = __webpack_require__(/*! ./componentAs/composeComponentAs */ "./node_modules/@fluentui/utilities/lib-commonjs/componentAs/composeComponentAs.js"); Object.defineProperty(exports, "composeComponentAs", ({ enumerable: true, get: function () { return composeComponentAs_1.composeComponentAs; } })); var controlled_1 = __webpack_require__(/*! ./controlled */ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js"); Object.defineProperty(exports, "isControlled", ({ enumerable: true, get: function () { return controlled_1.isControlled; } })); var css_1 = __webpack_require__(/*! ./css */ "./node_modules/@fluentui/utilities/lib-commonjs/css.js"); Object.defineProperty(exports, "css", ({ enumerable: true, get: function () { return css_1.css; } })); var Customizations_1 = __webpack_require__(/*! ./customizations/Customizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizations.js"); Object.defineProperty(exports, "Customizations", ({ enumerable: true, get: function () { return Customizations_1.Customizations; } })); var Customizer_1 = __webpack_require__(/*! ./customizations/Customizer */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/Customizer.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Customizer", ({ enumerable: true, get: function () { return Customizer_1.Customizer; } })); var CustomizerContext_1 = __webpack_require__(/*! ./customizations/CustomizerContext */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/CustomizerContext.js"); Object.defineProperty(exports, "CustomizerContext", ({ enumerable: true, get: function () { return CustomizerContext_1.CustomizerContext; } })); var customizable_1 = __webpack_require__(/*! ./customizations/customizable */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/customizable.js"); Object.defineProperty(exports, "customizable", ({ enumerable: true, get: function () { return customizable_1.customizable; } })); var useCustomizationSettings_1 = __webpack_require__(/*! ./customizations/useCustomizationSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js"); Object.defineProperty(exports, "useCustomizationSettings", ({ enumerable: true, get: function () { return useCustomizationSettings_1.useCustomizationSettings; } })); var mergeCustomizations_1 = __webpack_require__(/*! ./customizations/mergeCustomizations */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeCustomizations.js"); Object.defineProperty(exports, "mergeCustomizations", ({ enumerable: true, get: function () { return mergeCustomizations_1.mergeCustomizations; } })); var mergeSettings_1 = __webpack_require__(/*! ./customizations/mergeSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/mergeSettings.js"); Object.defineProperty(exports, "mergeScopedSettings", ({ enumerable: true, get: function () { return mergeSettings_1.mergeScopedSettings; } })); Object.defineProperty(exports, "mergeSettings", ({ enumerable: true, get: function () { return mergeSettings_1.mergeSettings; } })); var dom_1 = __webpack_require__(/*! ./dom */ "./node_modules/@fluentui/utilities/lib-commonjs/dom.js"); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return dom_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return dom_1.elementContains; } })); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return dom_1.elementContainsAttribute; } })); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return dom_1.findElementRecursive; } })); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return dom_1.getChildren; } })); Object.defineProperty(exports, "getDocument", ({ enumerable: true, get: function () { return dom_1.getDocument; } })); Object.defineProperty(exports, "getFirstVisibleElementFromSelector", ({ enumerable: true, get: function () { return dom_1.getFirstVisibleElementFromSelector; } })); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return dom_1.getParent; } })); Object.defineProperty(exports, "getRect", ({ enumerable: true, get: function () { return dom_1.getRect; } })); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return dom_1.getVirtualParent; } })); Object.defineProperty(exports, "getWindow", ({ enumerable: true, get: function () { return dom_1.getWindow; } })); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return dom_1.isVirtualElement; } })); Object.defineProperty(exports, "on", ({ enumerable: true, get: function () { return dom_1.on; } })); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return dom_1.portalContainsElement; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "raiseClick", ({ enumerable: true, get: function () { return dom_1.raiseClick; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return dom_1.setPortalAttribute; } })); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return dom_1.setVirtualParent; } })); var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); Object.defineProperty(exports, "extendComponent", ({ enumerable: true, get: function () { return extendComponent_1.extendComponent; } })); var focus_1 = __webpack_require__(/*! ./focus */ "./node_modules/@fluentui/utilities/lib-commonjs/focus.js"); Object.defineProperty(exports, "doesElementContainFocus", ({ enumerable: true, get: function () { return focus_1.doesElementContainFocus; } })); Object.defineProperty(exports, "focusAsync", ({ enumerable: true, get: function () { return focus_1.focusAsync; } })); Object.defineProperty(exports, "focusFirstChild", ({ enumerable: true, get: function () { return focus_1.focusFirstChild; } })); Object.defineProperty(exports, "getElementIndexPath", ({ enumerable: true, get: function () { return focus_1.getElementIndexPath; } })); Object.defineProperty(exports, "getFirstFocusable", ({ enumerable: true, get: function () { return focus_1.getFirstFocusable; } })); Object.defineProperty(exports, "getFirstTabbable", ({ enumerable: true, get: function () { return focus_1.getFirstTabbable; } })); Object.defineProperty(exports, "getFocusableByIndexPath", ({ enumerable: true, get: function () { return focus_1.getFocusableByIndexPath; } })); Object.defineProperty(exports, "getLastFocusable", ({ enumerable: true, get: function () { return focus_1.getLastFocusable; } })); Object.defineProperty(exports, "getLastTabbable", ({ enumerable: true, get: function () { return focus_1.getLastTabbable; } })); Object.defineProperty(exports, "getNextElement", ({ enumerable: true, get: function () { return focus_1.getNextElement; } })); Object.defineProperty(exports, "getPreviousElement", ({ enumerable: true, get: function () { return focus_1.getPreviousElement; } })); Object.defineProperty(exports, "isElementFocusSubZone", ({ enumerable: true, get: function () { return focus_1.isElementFocusSubZone; } })); Object.defineProperty(exports, "isElementFocusZone", ({ enumerable: true, get: function () { return focus_1.isElementFocusZone; } })); Object.defineProperty(exports, "isElementTabbable", ({ enumerable: true, get: function () { return focus_1.isElementTabbable; } })); Object.defineProperty(exports, "isElementVisible", ({ enumerable: true, get: function () { return focus_1.isElementVisible; } })); Object.defineProperty(exports, "isElementVisibleAndNotHidden", ({ enumerable: true, get: function () { return focus_1.isElementVisibleAndNotHidden; } })); Object.defineProperty(exports, "shouldWrapFocus", ({ enumerable: true, get: function () { return focus_1.shouldWrapFocus; } })); var getId_1 = __webpack_require__(/*! ./getId */ "./node_modules/@fluentui/utilities/lib-commonjs/getId.js"); Object.defineProperty(exports, "getId", ({ enumerable: true, get: function () { return getId_1.getId; } })); Object.defineProperty(exports, "resetIds", ({ enumerable: true, get: function () { return getId_1.resetIds; } })); var getNativeElementProps_1 = __webpack_require__(/*! ./getNativeElementProps */ "./node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.js"); Object.defineProperty(exports, "getNativeElementProps", ({ enumerable: true, get: function () { return getNativeElementProps_1.getNativeElementProps; } })); var hoist_1 = __webpack_require__(/*! ./hoist */ "./node_modules/@fluentui/utilities/lib-commonjs/hoist.js"); Object.defineProperty(exports, "hoistMethods", ({ enumerable: true, get: function () { return hoist_1.hoistMethods; } })); Object.defineProperty(exports, "unhoistMethods", ({ enumerable: true, get: function () { return hoist_1.unhoistMethods; } })); var hoistStatics_1 = __webpack_require__(/*! ./hoistStatics */ "./node_modules/@fluentui/utilities/lib-commonjs/hoistStatics.js"); Object.defineProperty(exports, "hoistStatics", ({ enumerable: true, get: function () { return hoistStatics_1.hoistStatics; } })); var initializeComponentRef_1 = __webpack_require__(/*! ./initializeComponentRef */ "./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js"); Object.defineProperty(exports, "initializeComponentRef", ({ enumerable: true, get: function () { return initializeComponentRef_1.initializeComponentRef; } })); var initializeFocusRects_1 = __webpack_require__(/*! ./initializeFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "initializeFocusRects", ({ enumerable: true, get: function () { return initializeFocusRects_1.initializeFocusRects; } })); var FocusRectsProvider_1 = __webpack_require__(/*! ./FocusRectsProvider */ "./node_modules/@fluentui/utilities/lib-commonjs/FocusRectsProvider.js"); Object.defineProperty(exports, "FocusRectsProvider", ({ enumerable: true, get: function () { return FocusRectsProvider_1.FocusRectsProvider; } })); var useFocusRects_1 = __webpack_require__(/*! ./useFocusRects */ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js"); Object.defineProperty(exports, "FocusRects", ({ enumerable: true, get: function () { return useFocusRects_1.FocusRects; } })); Object.defineProperty(exports, "FocusRectsContext", ({ enumerable: true, get: function () { return useFocusRects_1.FocusRectsContext; } })); Object.defineProperty(exports, "useFocusRects", ({ enumerable: true, get: function () { return useFocusRects_1.useFocusRects; } })); var initials_1 = __webpack_require__(/*! ./initials */ "./node_modules/@fluentui/utilities/lib-commonjs/initials.js"); Object.defineProperty(exports, "getInitials", ({ enumerable: true, get: function () { return initials_1.getInitials; } })); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); Object.defineProperty(exports, "addDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.addDirectionalKeyCode; } })); Object.defineProperty(exports, "isDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.isDirectionalKeyCode; } })); Object.defineProperty(exports, "removeDirectionalKeyCode", ({ enumerable: true, get: function () { return keyboard_1.removeDirectionalKeyCode; } })); var language_1 = __webpack_require__(/*! ./language */ "./node_modules/@fluentui/utilities/lib-commonjs/language.js"); Object.defineProperty(exports, "getLanguage", ({ enumerable: true, get: function () { return language_1.getLanguage; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setLanguage", ({ enumerable: true, get: function () { return language_1.setLanguage; } })); var math_1 = __webpack_require__(/*! ./math */ "./node_modules/@fluentui/utilities/lib-commonjs/math.js"); Object.defineProperty(exports, "calculatePrecision", ({ enumerable: true, get: function () { return math_1.calculatePrecision; } })); Object.defineProperty(exports, "fitContentToBounds", ({ enumerable: true, get: function () { return math_1.fitContentToBounds; } })); Object.defineProperty(exports, "getDistanceBetweenPoints", ({ enumerable: true, get: function () { return math_1.getDistanceBetweenPoints; } })); Object.defineProperty(exports, "precisionRound", ({ enumerable: true, get: function () { return math_1.precisionRound; } })); var memoize_1 = __webpack_require__(/*! ./memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); Object.defineProperty(exports, "createMemoizer", ({ enumerable: true, get: function () { return memoize_1.createMemoizer; } })); Object.defineProperty(exports, "memoize", ({ enumerable: true, get: function () { return memoize_1.memoize; } })); Object.defineProperty(exports, "memoizeFunction", ({ enumerable: true, get: function () { return memoize_1.memoizeFunction; } })); Object.defineProperty(exports, "resetMemoizations", ({ enumerable: true, get: function () { return memoize_1.resetMemoizations; } })); Object.defineProperty(exports, "setMemoizeWeakMap", ({ enumerable: true, get: function () { return memoize_1.setMemoizeWeakMap; } })); var merge_1 = __webpack_require__(/*! ./merge */ "./node_modules/@fluentui/utilities/lib-commonjs/merge.js"); Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return merge_1.merge; } })); var mobileDetector_1 = __webpack_require__(/*! ./mobileDetector */ "./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js"); Object.defineProperty(exports, "isIOS", ({ enumerable: true, get: function () { return mobileDetector_1.isIOS; } })); var modalize_1 = __webpack_require__(/*! ./modalize */ "./node_modules/@fluentui/utilities/lib-commonjs/modalize.js"); Object.defineProperty(exports, "modalize", ({ enumerable: true, get: function () { return modalize_1.modalize; } })); var object_1 = __webpack_require__(/*! ./object */ "./node_modules/@fluentui/utilities/lib-commonjs/object.js"); Object.defineProperty(exports, "assign", ({ enumerable: true, get: function () { return object_1.assign; } })); Object.defineProperty(exports, "filteredAssign", ({ enumerable: true, get: function () { return object_1.filteredAssign; } })); Object.defineProperty(exports, "mapEnumByName", ({ enumerable: true, get: function () { return object_1.mapEnumByName; } })); Object.defineProperty(exports, "shallowCompare", ({ enumerable: true, get: function () { return object_1.shallowCompare; } })); Object.defineProperty(exports, "values", ({ enumerable: true, get: function () { return object_1.values; } })); Object.defineProperty(exports, "omit", ({ enumerable: true, get: function () { return object_1.omit; } })); var osDetector_1 = __webpack_require__(/*! ./osDetector */ "./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js"); Object.defineProperty(exports, "isMac", ({ enumerable: true, get: function () { return osDetector_1.isMac; } })); var overflow_1 = __webpack_require__(/*! ./overflow */ "./node_modules/@fluentui/utilities/lib-commonjs/overflow.js"); Object.defineProperty(exports, "hasHorizontalOverflow", ({ enumerable: true, get: function () { return overflow_1.hasHorizontalOverflow; } })); Object.defineProperty(exports, "hasOverflow", ({ enumerable: true, get: function () { return overflow_1.hasOverflow; } })); Object.defineProperty(exports, "hasVerticalOverflow", ({ enumerable: true, get: function () { return overflow_1.hasVerticalOverflow; } })); var properties_1 = __webpack_require__(/*! ./properties */ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js"); Object.defineProperty(exports, "anchorProperties", ({ enumerable: true, get: function () { return properties_1.anchorProperties; } })); Object.defineProperty(exports, "audioProperties", ({ enumerable: true, get: function () { return properties_1.audioProperties; } })); Object.defineProperty(exports, "baseElementEvents", ({ enumerable: true, get: function () { return properties_1.baseElementEvents; } })); Object.defineProperty(exports, "baseElementProperties", ({ enumerable: true, get: function () { return properties_1.baseElementProperties; } })); Object.defineProperty(exports, "buttonProperties", ({ enumerable: true, get: function () { return properties_1.buttonProperties; } })); Object.defineProperty(exports, "colGroupProperties", ({ enumerable: true, get: function () { return properties_1.colGroupProperties; } })); Object.defineProperty(exports, "colProperties", ({ enumerable: true, get: function () { return properties_1.colProperties; } })); Object.defineProperty(exports, "divProperties", ({ enumerable: true, get: function () { return properties_1.divProperties; } })); Object.defineProperty(exports, "formProperties", ({ enumerable: true, get: function () { return properties_1.formProperties; } })); Object.defineProperty(exports, "getNativeProps", ({ enumerable: true, get: function () { return properties_1.getNativeProps; } })); Object.defineProperty(exports, "htmlElementProperties", ({ enumerable: true, get: function () { return properties_1.htmlElementProperties; } })); Object.defineProperty(exports, "iframeProperties", ({ enumerable: true, get: function () { return properties_1.iframeProperties; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "imageProperties", ({ enumerable: true, get: function () { return properties_1.imageProperties; } })); Object.defineProperty(exports, "imgProperties", ({ enumerable: true, get: function () { return properties_1.imgProperties; } })); Object.defineProperty(exports, "inputProperties", ({ enumerable: true, get: function () { return properties_1.inputProperties; } })); Object.defineProperty(exports, "labelProperties", ({ enumerable: true, get: function () { return properties_1.labelProperties; } })); Object.defineProperty(exports, "liProperties", ({ enumerable: true, get: function () { return properties_1.liProperties; } })); Object.defineProperty(exports, "olProperties", ({ enumerable: true, get: function () { return properties_1.olProperties; } })); Object.defineProperty(exports, "optionProperties", ({ enumerable: true, get: function () { return properties_1.optionProperties; } })); Object.defineProperty(exports, "selectProperties", ({ enumerable: true, get: function () { return properties_1.selectProperties; } })); Object.defineProperty(exports, "tableProperties", ({ enumerable: true, get: function () { return properties_1.tableProperties; } })); Object.defineProperty(exports, "tdProperties", ({ enumerable: true, get: function () { return properties_1.tdProperties; } })); Object.defineProperty(exports, "textAreaProperties", ({ enumerable: true, get: function () { return properties_1.textAreaProperties; } })); Object.defineProperty(exports, "thProperties", ({ enumerable: true, get: function () { return properties_1.thProperties; } })); Object.defineProperty(exports, "trProperties", ({ enumerable: true, get: function () { return properties_1.trProperties; } })); Object.defineProperty(exports, "videoProperties", ({ enumerable: true, get: function () { return properties_1.videoProperties; } })); var composeRenderFunction_1 = __webpack_require__(/*! ./renderFunction/composeRenderFunction */ "./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js"); Object.defineProperty(exports, "composeRenderFunction", ({ enumerable: true, get: function () { return composeRenderFunction_1.composeRenderFunction; } })); var resources_1 = __webpack_require__(/*! ./resources */ "./node_modules/@fluentui/utilities/lib-commonjs/resources.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getResourceUrl", ({ enumerable: true, get: function () { return resources_1.getResourceUrl; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setBaseUrl", ({ enumerable: true, get: function () { return resources_1.setBaseUrl; } })); var rtl_1 = __webpack_require__(/*! ./rtl */ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js"); Object.defineProperty(exports, "getRTL", ({ enumerable: true, get: function () { return rtl_1.getRTL; } })); Object.defineProperty(exports, "getRTLSafeKeyCode", ({ enumerable: true, get: function () { return rtl_1.getRTLSafeKeyCode; } })); Object.defineProperty(exports, "setRTL", ({ enumerable: true, get: function () { return rtl_1.setRTL; } })); var safeRequestAnimationFrame_1 = __webpack_require__(/*! ./safeRequestAnimationFrame */ "./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js"); Object.defineProperty(exports, "safeRequestAnimationFrame", ({ enumerable: true, get: function () { return safeRequestAnimationFrame_1.safeRequestAnimationFrame; } })); var safeSetTimeout_1 = __webpack_require__(/*! ./safeSetTimeout */ "./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js"); Object.defineProperty(exports, "safeSetTimeout", ({ enumerable: true, get: function () { return safeSetTimeout_1.safeSetTimeout; } })); var scroll_1 = __webpack_require__(/*! ./scroll */ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js"); Object.defineProperty(exports, "DATA_IS_SCROLLABLE_ATTRIBUTE", ({ enumerable: true, get: function () { return scroll_1.DATA_IS_SCROLLABLE_ATTRIBUTE; } })); Object.defineProperty(exports, "allowOverscrollOnElement", ({ enumerable: true, get: function () { return scroll_1.allowOverscrollOnElement; } })); Object.defineProperty(exports, "allowScrollOnElement", ({ enumerable: true, get: function () { return scroll_1.allowScrollOnElement; } })); Object.defineProperty(exports, "disableBodyScroll", ({ enumerable: true, get: function () { return scroll_1.disableBodyScroll; } })); Object.defineProperty(exports, "enableBodyScroll", ({ enumerable: true, get: function () { return scroll_1.enableBodyScroll; } })); Object.defineProperty(exports, "findScrollableParent", ({ enumerable: true, get: function () { return scroll_1.findScrollableParent; } })); Object.defineProperty(exports, "getScrollbarWidth", ({ enumerable: true, get: function () { return scroll_1.getScrollbarWidth; } })); var index_1 = __webpack_require__(/*! ./selection/index */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return index_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SELECTION_ITEMS_CHANGE", ({ enumerable: true, get: function () { return index_1.SELECTION_ITEMS_CHANGE; } })); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return index_1.Selection; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return index_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return index_1.SelectionMode; } })); var string_1 = __webpack_require__(/*! ./string */ "./node_modules/@fluentui/utilities/lib-commonjs/string.js"); Object.defineProperty(exports, "format", ({ enumerable: true, get: function () { return string_1.format; } })); var styled_1 = __webpack_require__(/*! ./styled */ "./node_modules/@fluentui/utilities/lib-commonjs/styled.js"); Object.defineProperty(exports, "styled", ({ enumerable: true, get: function () { return styled_1.styled; } })); var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn.js"); Object.defineProperty(exports, "resetControlledWarnings", ({ enumerable: true, get: function () { return warn_1.resetControlledWarnings; } })); Object.defineProperty(exports, "setWarningCallback", ({ enumerable: true, get: function () { return warn_1.setWarningCallback; } })); Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warn_1.warn; } })); Object.defineProperty(exports, "warnConditionallyRequiredProps", ({ enumerable: true, get: function () { return warn_1.warnConditionallyRequiredProps; } })); Object.defineProperty(exports, "warnControlledUsage", ({ enumerable: true, get: function () { return warn_1.warnControlledUsage; } })); Object.defineProperty(exports, "warnDeprecations", ({ enumerable: true, get: function () { return warn_1.warnDeprecations; } })); Object.defineProperty(exports, "warnMutuallyExclusive", ({ enumerable: true, get: function () { return warn_1.warnMutuallyExclusive; } })); var ie11Detector_1 = __webpack_require__(/*! ./ie11Detector */ "./node_modules/@fluentui/utilities/lib-commonjs/ie11Detector.js"); Object.defineProperty(exports, "isIE11", ({ enumerable: true, get: function () { return ie11Detector_1.isIE11; } })); var getPropsWithDefaults_1 = __webpack_require__(/*! ./getPropsWithDefaults */ "./node_modules/@fluentui/utilities/lib-commonjs/getPropsWithDefaults.js"); Object.defineProperty(exports, "getPropsWithDefaults", ({ enumerable: true, get: function () { return getPropsWithDefaults_1.getPropsWithDefaults; } })); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); Object.defineProperty(exports, "setFocusVisibility", ({ enumerable: true, get: function () { return setFocusVisibility_1.setFocusVisibility; } })); Object.defineProperty(exports, "IsFocusVisibleClassName", ({ enumerable: true, get: function () { return setFocusVisibility_1.IsFocusVisibleClassName; } })); var canUseDOM_1 = __webpack_require__(/*! ./dom/canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); Object.defineProperty(exports, "canUseDOM", ({ enumerable: true, get: function () { return canUseDOM_1.canUseDOM; } })); // eslint-disable-next-line deprecation/deprecation var setSSR_1 = __webpack_require__(/*! ./dom/setSSR */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/setSSR.js"); Object.defineProperty(exports, "setSSR", ({ enumerable: true, get: function () { return setSSR_1.setSSR; } })); var createMergedRef_1 = __webpack_require__(/*! ./createMergedRef */ "./node_modules/@fluentui/utilities/lib-commonjs/createMergedRef.js"); Object.defineProperty(exports, "createMergedRef", ({ enumerable: true, get: function () { return createMergedRef_1.createMergedRef; } })); var useIsomorphicLayoutEffect_1 = __webpack_require__(/*! ./useIsomorphicLayoutEffect */ "./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js"); Object.defineProperty(exports, "useIsomorphicLayoutEffect", ({ enumerable: true, get: function () { return useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/utilities/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initializeComponentRef.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeComponentRef = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Helper to manage componentRef resolution. Internally appends logic to * lifetime methods to resolve componentRef to the passed in object. * * Usage: call initializeComponentRef(this) in the constructor, */ function initializeComponentRef(obj) { (0, extendComponent_1.extendComponent)(obj, { componentDidMount: _onMount, componentDidUpdate: _onUpdate, componentWillUnmount: _onUnmount, }); } exports.initializeComponentRef = initializeComponentRef; // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onMount() { _setComponentRef(this.props.componentRef, this); } // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onUpdate(prevProps) { if (prevProps.componentRef !== this.props.componentRef) { // eslint-disable-next-line @typescript-eslint/no-explicit-any _setComponentRef(prevProps.componentRef, null); _setComponentRef(this.props.componentRef, this); } } // eslint-disable-next-line @typescript-eslint/no-explicit-any function _onUnmount() { _setComponentRef(this.props.componentRef, null); } function _setComponentRef(componentRef, value) { if (componentRef) { if (typeof componentRef === 'object') { componentRef.current = value; } else if (typeof componentRef === 'function') { componentRef(value); } } } //# sourceMappingURL=initializeComponentRef.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initializeFocusRects.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeFocusRects = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); /** * Initializes the logic which: * * 1. Subscribes keydown and mousedown events. (It will only do it once per window, * so it's safe to call this method multiple times.) * 2. When the user presses directional keyboard keys, adds the 'ms-Fabric--isFocusVisible' classname * to the document body, removes the 'ms-Fabric-isFocusHidden' classname. * 3. When the user clicks a mouse button, adds the 'ms-Fabric-isFocusHidden' classname to the * document body, removes the 'ms-Fabric--isFocusVisible' classname. * * This logic allows components on the page to conditionally render focus treatments based on * the existence of global classnames, which simplifies logic overall. * * @param window - the window used to add the event listeners * @deprecated Use useFocusRects hook or FocusRects component instead. */ function initializeFocusRects(window) { var _a; var win = (window || (0, getWindow_1.getWindow)()); if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return; } if (!win.__hasInitializeFocusRects__) { win.__hasInitializeFocusRects__ = true; win.addEventListener('mousedown', _onMouseDown, true); win.addEventListener('pointerdown', _onPointerDown, true); win.addEventListener('keydown', _onKeyDown, true); } } exports.initializeFocusRects = initializeFocusRects; function _onMouseDown(ev) { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target); } function _onPointerDown(ev) { if (ev.pointerType !== 'mouse') { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target); } } function _onKeyDown(ev) { // eslint-disable-next-line deprecation/deprecation (0, keyboard_1.isDirectionalKeyCode)(ev.which) && (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target); } //# sourceMappingURL=initializeFocusRects.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/initials.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/initials.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /** * Regular expressions matching characters to ignore when calculating the initials. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getInitials = void 0; /** * Regular expression matching characters within various types of enclosures, including the enclosures themselves * so for example, (xyz) [xyz] {xyz} all would be ignored */ var UNWANTED_ENCLOSURES_REGEX = /[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g; /** * Regular expression matching special ASCII characters except space, plus some unicode special characters. * Applies after unwanted enclosures have been removed */ var UNWANTED_CHARS_REGEX = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g; /** * Regular expression matching phone numbers. Applied after chars matching UNWANTED_CHARS_REGEX have been removed * and number has been trimmed for whitespaces */ var PHONENUMBER_REGEX = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i; /** Regular expression matching one or more spaces. */ var MULTIPLE_WHITESPACES_REGEX = /\s+/g; /** * Regular expression matching languages for which we currently don't support initials. * Arabic: Arabic, Arabic Supplement, Arabic Extended-A. * Korean: Hangul Jamo, Hangul Compatibility Jamo, Hangul Jamo Extended-A, Hangul Syllables, Hangul Jamo Extended-B. * Japanese: Hiragana, Katakana. * CJK: CJK Unified Ideographs Extension A, CJK Unified Ideographs, CJK Compatibility Ideographs, * CJK Unified Ideographs Extension B */ var UNSUPPORTED_TEXT_REGEX = // eslint-disable-next-line @fluentui/max-len /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/; function getInitialsLatin(displayName, isRtl) { var initials = ''; var splits = displayName.split(' '); if (splits.length === 2) { initials += splits[0].charAt(0).toUpperCase(); initials += splits[1].charAt(0).toUpperCase(); } else if (splits.length === 3) { initials += splits[0].charAt(0).toUpperCase(); initials += splits[2].charAt(0).toUpperCase(); } else if (splits.length !== 0) { initials += splits[0].charAt(0).toUpperCase(); } if (isRtl && initials.length > 1) { return initials.charAt(1) + initials.charAt(0); } return initials; } function cleanupDisplayName(displayName) { displayName = displayName.replace(UNWANTED_ENCLOSURES_REGEX, ''); displayName = displayName.replace(UNWANTED_CHARS_REGEX, ''); displayName = displayName.replace(MULTIPLE_WHITESPACES_REGEX, ' '); displayName = displayName.trim(); return displayName; } /** * Get (up to 2 characters) initials based on display name of the persona. * * @public */ function getInitials(displayName, isRtl, allowPhoneInitials) { if (!displayName) { return ''; } displayName = cleanupDisplayName(displayName); // For names containing CJK characters, and phone numbers, we don't display initials if (UNSUPPORTED_TEXT_REGEX.test(displayName) || (!allowPhoneInitials && PHONENUMBER_REGEX.test(displayName))) { return ''; } return getInitialsLatin(displayName, isRtl); } exports.getInitials = getInitials; //# sourceMappingURL=initials.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeDirectionalKeyCode = exports.addDirectionalKeyCode = exports.isDirectionalKeyCode = void 0; var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); var DirectionalKeyCodes = (_a = {}, _a[KeyCodes_1.KeyCodes.up] = 1, _a[KeyCodes_1.KeyCodes.down] = 1, _a[KeyCodes_1.KeyCodes.left] = 1, _a[KeyCodes_1.KeyCodes.right] = 1, _a[KeyCodes_1.KeyCodes.home] = 1, _a[KeyCodes_1.KeyCodes.end] = 1, _a[KeyCodes_1.KeyCodes.tab] = 1, _a[KeyCodes_1.KeyCodes.pageUp] = 1, _a[KeyCodes_1.KeyCodes.pageDown] = 1, _a); /** * Returns true if the keycode is a directional keyboard key. */ function isDirectionalKeyCode(which) { return !!DirectionalKeyCodes[which]; } exports.isDirectionalKeyCode = isDirectionalKeyCode; /** * Adds a keycode to the list of keys that, when pressed, should cause the focus outlines to be visible. * This can be used to add global shortcut keys that directionally move from section to section within * an app or between focus trap zones. */ function addDirectionalKeyCode(which) { DirectionalKeyCodes[which] = 1; } exports.addDirectionalKeyCode = addDirectionalKeyCode; /** * Removes a keycode to the list of keys that, when pressed, should cause the focus outlines to be visible. * This can be used to remove global shortcut keys that directionally move from section to section within * an app or between focus trap zones. */ function removeDirectionalKeyCode(which) { delete DirectionalKeyCodes[which]; } exports.removeDirectionalKeyCode = removeDirectionalKeyCode; //# sourceMappingURL=keyboard.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/language.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/language.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setLanguage = exports.getLanguage = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var localStorage = __webpack_require__(/*! ./localStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js"); var sessionStorage = __webpack_require__(/*! ./sessionStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js"); // Default to undefined so that we initialize on first read. var _language; var STORAGE_KEY = 'language'; /** * Gets the language set for the page. * @param persistenceType - Where to persist the value. Default is `sessionStorage` if available. */ function getLanguage(persistenceType) { if (persistenceType === void 0) { persistenceType = 'sessionStorage'; } if (_language === undefined) { var doc = (0, getDocument_1.getDocument)(); var savedLanguage = persistenceType === 'localStorage' ? localStorage.getItem(STORAGE_KEY) : persistenceType === 'sessionStorage' ? sessionStorage.getItem(STORAGE_KEY) : undefined; if (savedLanguage) { _language = savedLanguage; } if (_language === undefined && doc) { _language = doc.documentElement.getAttribute('lang'); } if (_language === undefined) { _language = 'en'; } } return _language; } exports.getLanguage = getLanguage; function setLanguage(language, persistenceParam) { var doc = (0, getDocument_1.getDocument)(); if (doc) { doc.documentElement.setAttribute('lang', language); } var persistenceType = persistenceParam === true ? 'none' : !persistenceParam ? 'sessionStorage' : persistenceParam; if (persistenceType === 'localStorage') { localStorage.setItem(STORAGE_KEY, language); } else if (persistenceType === 'sessionStorage') { sessionStorage.setItem(STORAGE_KEY, language); } _language = language; } exports.setLanguage = setLanguage; //# sourceMappingURL=language.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/localStorage.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setItem = exports.getItem = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Fetches an item from local storage without throwing an exception * @param key The key of the item to fetch from local storage */ function getItem(key) { var result = null; try { var win = (0, getWindow_1.getWindow)(); result = win ? win.localStorage.getItem(key) : null; } catch (e) { /* Eat the exception */ } return result; } exports.getItem = getItem; /** * Inserts an item into local storage without throwing an exception * @param key The key of the item to add to local storage * @param data The data to put into local storage */ function setItem(key, data) { try { var win = (0, getWindow_1.getWindow)(); win && win.localStorage.setItem(key, data); } catch (e) { /* Eat the exception */ } } exports.setItem = setItem; //# sourceMappingURL=localStorage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/math.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/math.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.precisionRound = exports.calculatePrecision = exports.fitContentToBounds = exports.getDistanceBetweenPoints = void 0; /** * Determines the distance between two points. * * @public */ /* eslint-disable deprecation/deprecation */ function getDistanceBetweenPoints(point1, point2) { var left1 = point1.left || point1.x || 0; var top1 = point1.top || point1.y || 0; var left2 = point2.left || point2.x || 0; var top2 = point2.top || point2.y || 0; /* eslint-enable deprecation/deprecation */ var distance = Math.sqrt(Math.pow(left1 - left2, 2) + Math.pow(top1 - top2, 2)); return distance; } exports.getDistanceBetweenPoints = getDistanceBetweenPoints; /** * Produces a proportionally-scaled version of an input content size when fit to a bounding size. * Given a `contentSize` and a `boundsSize`, this function scales `contentSize` proportionally * using either `contain` or `cover` fit behaviors. * Use this function to pre-calculate the layout for the CSS `object-fit` and `background-fit` behaviors. * With `contain`, the output size must be the largest it can be while completely within the `boundsSize`. * With `cover`, the output size must be the smallest it can be while completely around the `boundsSize`. * By default, there is a `maxScale` value of 1, which prevents the `contentSize` from being scaled larger. * * @param options - the options for the bounds fit operation */ function fitContentToBounds(options) { var contentSize = options.contentSize, boundsSize = options.boundsSize, _a = options.mode, mode = _a === void 0 ? 'contain' : _a, _b = options.maxScale, maxScale = _b === void 0 ? 1 : _b; var contentAspectRatio = contentSize.width / contentSize.height; var boundsAspectRatio = boundsSize.width / boundsSize.height; var scale; if (mode === 'contain' ? contentAspectRatio > boundsAspectRatio : contentAspectRatio < boundsAspectRatio) { scale = boundsSize.width / contentSize.width; } else { scale = boundsSize.height / contentSize.height; } var finalScale = Math.min(maxScale, scale); return { width: contentSize.width * finalScale, height: contentSize.height * finalScale, }; } exports.fitContentToBounds = fitContentToBounds; /** * Calculates a number's precision based on the number of trailing * zeros if the number does not have a decimal indicated by a negative * precision. Otherwise, it calculates the number of digits after * the decimal point indicated by a positive precision. * @param value - the value to determine the precision of */ function calculatePrecision(value) { /** * Group 1: * [1-9]([0]+$) matches trailing zeros * Group 2: * \.([0-9]*) matches all digits after a decimal point. */ var groups = /[1-9]([0]+$)|\.([0-9]*)/.exec(String(value)); if (!groups) { return 0; } if (groups[1]) { return -groups[1].length; } if (groups[2]) { return groups[2].length; } return 0; } exports.calculatePrecision = calculatePrecision; /** * Rounds a number to a certain level of precision. Accepts negative precision. * @param value - The value that is being rounded. * @param precision - The number of decimal places to round the number to */ function precisionRound(value, precision, base) { if (base === void 0) { base = 10; } var exp = Math.pow(base, precision); return Math.round(value * exp) / exp; } exports.precisionRound = precisionRound; //# sourceMappingURL=math.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/memoize.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createMemoizer = exports.memoizeFunction = exports.memoize = exports.resetMemoizations = exports.setMemoizeWeakMap = void 0; var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var _initializedStylesheetResets = false; var _resetCounter = 0; var _emptyObject = { empty: true }; var _dictionary = {}; var _weakMap = typeof WeakMap === 'undefined' ? null : WeakMap; /** * Test utility for providing a custom weakmap. * * @internal * */ function setMemoizeWeakMap(weakMap) { _weakMap = weakMap; } exports.setMemoizeWeakMap = setMemoizeWeakMap; /** * Reset memoizations. */ function resetMemoizations() { _resetCounter++; } exports.resetMemoizations = resetMemoizations; /** * Memoize decorator to be used on class methods. WARNING: the `this` reference * will be inaccessible within a memoized method, given that a cached method's `this` * would not be instance-specific. * * @public */ function memoize(_target, _key, descriptor) { // We bind to "null" to prevent people from inadvertently pulling values from "this", // rather than passing them in as input values which can be memoized. var fn = memoizeFunction(descriptor.value && descriptor.value.bind(null)); return { configurable: true, get: function () { return fn; }, }; } exports.memoize = memoize; /** * Memoizes a function; when you pass in the same parameters multiple times, it returns a cached result. * Be careful when passing in objects, you need to pass in the same INSTANCE for caching to work. Otherwise * it will grow the cache unnecessarily. Also avoid using default values that evaluate functions; passing in * undefined for a value and relying on a default function will execute it the first time, but will not * re-evaluate subsequent times which may have been unexpected. * * By default, the cache will reset after 100 permutations, to avoid abuse cases where the function is * unintendedly called with unique objects. Without a reset, the cache could grow infinitely, so we safeguard * by resetting. To override this behavior, pass a value of 0 to the maxCacheSize parameter. * * @public * @param cb - The function to memoize. * @param maxCacheSize - Max results to cache. If the cache exceeds this value, it will reset on the next call. * @param ignoreNullOrUndefinedResult - Flag to decide whether to cache callback result if it is undefined/null. * If the flag is set to true, the callback result is recomputed every time till the callback result is * not undefined/null for the first time, and then the non-undefined/null version gets cached. * @returns A memoized version of the function. */ function memoizeFunction(cb, maxCacheSize, ignoreNullOrUndefinedResult) { if (maxCacheSize === void 0) { maxCacheSize = 100; } if (ignoreNullOrUndefinedResult === void 0) { ignoreNullOrUndefinedResult = false; } // Avoid breaking scenarios which don't have weak map. if (!_weakMap) { return cb; } if (!_initializedStylesheetResets) { var stylesheet = merge_styles_1.Stylesheet.getInstance(); if (stylesheet && stylesheet.onReset) { merge_styles_1.Stylesheet.getInstance().onReset(resetMemoizations); } _initializedStylesheetResets = true; } var rootNode; var cacheSize = 0; var localResetCounter = _resetCounter; return function memoizedFunction() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var currentNode = rootNode; if (rootNode === undefined || localResetCounter !== _resetCounter || (maxCacheSize > 0 && cacheSize > maxCacheSize)) { rootNode = _createNode(); cacheSize = 0; localResetCounter = _resetCounter; } currentNode = rootNode; // Traverse the tree until we find the match. for (var i = 0; i < args.length; i++) { var arg = _normalizeArg(args[i]); if (!currentNode.map.has(arg)) { currentNode.map.set(arg, _createNode()); } currentNode = currentNode.map.get(arg); } if (!currentNode.hasOwnProperty('value')) { currentNode.value = cb.apply(void 0, args); cacheSize++; } if (ignoreNullOrUndefinedResult && (currentNode.value === null || currentNode.value === undefined)) { currentNode.value = cb.apply(void 0, args); } return currentNode.value; }; } exports.memoizeFunction = memoizeFunction; /** * Creates a memoizer for a single-value function, backed by a WeakMap. * With a WeakMap, the memoized values are only kept as long as the source objects, * ensuring that there is no memory leak. * * This function assumes that the input values passed to the wrapped function will be * `function` or `object` types. To memoize functions which accept other inputs, use * `memoizeFunction`, which memoizes against arbitrary inputs using a lookup cache. * * @public */ function createMemoizer(getValue) { if (!_weakMap) { // Without a `WeakMap` implementation, memoization is not possible. return getValue; } var cache = new _weakMap(); function memoizedGetValue(input) { if (!input || (typeof input !== 'function' && typeof input !== 'object')) { // A WeakMap can only be used to test against reference values, i.e. 'function' and 'object'. // All other inputs cannot be memoized against in this manner. return getValue(input); } if (cache.has(input)) { return cache.get(input); } var value = getValue(input); cache.set(input, value); return value; } return memoizedGetValue; } exports.createMemoizer = createMemoizer; function _normalizeArg(val) { if (!val) { return _emptyObject; } else if (typeof val === 'object' || typeof val === 'function') { return val; } else if (!_dictionary[val]) { _dictionary[val] = { val: val }; } return _dictionary[val]; } function _createNode() { return { map: _weakMap ? new _weakMap() : null, }; } //# sourceMappingURL=memoize.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/merge.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/merge.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.merge = void 0; /** * Simple deep merge function. Takes all arguments and returns a deep copy of the objects merged * together in the order provided. If an object creates a circular reference, it will assign the * original reference. */ function merge(target) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var arg = args_1[_a]; _merge(target || {}, arg); } return target; } exports.merge = merge; /** * The _merge helper iterates through all props on source and assigns them to target. * When the value is an object, we will create a deep clone of the object. However if * there is a circular reference, the value will not be deep cloned and will persist * the reference. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function _merge(target, source, circularReferences) { if (circularReferences === void 0) { circularReferences = []; } circularReferences.push(source); for (var name_1 in source) { if (source.hasOwnProperty(name_1)) { if (name_1 !== '__proto__' && name_1 !== 'constructor' && name_1 !== 'prototype') { var value = source[name_1]; if (typeof value === 'object' && value !== null && !Array.isArray(value)) { var isCircularReference = circularReferences.indexOf(value) > -1; target[name_1] = (isCircularReference ? value : _merge(target[name_1] || {}, value, circularReferences)); } else { target[name_1] = value; } } } } circularReferences.pop(); return target; } //# sourceMappingURL=merge.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/mobileDetector.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isIOS = void 0; /** * Returns true if and only if the user is on a iOS device. * Used to determine whether iOS-specific behavior should be applied. */ var isIOS = function () { if (!window || !window.navigator || !window.navigator.userAgent) { return false; } return /iPad|iPhone|iPod/i.test(window.navigator.userAgent); }; exports.isIOS = isIOS; //# sourceMappingURL=mobileDetector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/modalize.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/modalize.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** * The helper functions here will make the target element as modal to screen readers, by placing aria-hidden on elements * that are siblings to the target element and the target element's ancestors (because aria-hidden gets inherited). * That way, all other elements on the page are hidden to the screen reader. */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.modalize = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); /** Tag names to ignore when modalizing */ var tagsToIgnore = ['TEMPLATE', 'STYLE', 'SCRIPT']; /** * Call this on a target element to make it modal to screen readers. * Returns a function that undoes the changes it made. */ function modalize(target) { var targetDocument = (0, getDocument_1.getDocument)(target); if (!targetDocument) { // can't do this in SSR return function () { return undefined; }; } var affectedNodes = []; // start at target, then recurse and do the same for parent, until we reach while (target !== targetDocument.body && target.parentElement) { // grab all siblings of current element for (var _i = 0, _a = target.parentElement.children; _i < _a.length; _i++) { var sibling = _a[_i]; // but ignore elements that are already aria-hidden var ariaHidden = sibling.getAttribute('aria-hidden'); if (sibling !== target && (ariaHidden === null || ariaHidden === void 0 ? void 0 : ariaHidden.toLowerCase()) !== 'true' && tagsToIgnore.indexOf(sibling.tagName) === -1) { affectedNodes.push([sibling, ariaHidden]); } } target = target.parentElement; } // take all those elements and set aria-hidden=true on them affectedNodes.forEach(function (_a) { var node = _a[0]; node.setAttribute('aria-hidden', 'true'); }); return function () { unmodalize(affectedNodes); affectedNodes = []; // dispose }; } exports.modalize = modalize; /** * Undoes the changes that modalize() did. */ function unmodalize(affectedNodes) { affectedNodes.forEach(function (_a) { var node = _a[0], originalValue = _a[1]; // Restore the original value (false or unset) if (originalValue) { node.setAttribute('aria-hidden', originalValue); } else { node.removeAttribute('aria-hidden'); } }); } //# sourceMappingURL=modalize.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/object.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/object.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.omit = exports.values = exports.mapEnumByName = exports.filteredAssign = exports.assign = exports.shallowCompare = void 0; /** * Compares a to b and b to a. * * @public */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function shallowCompare(a, b) { if (!a || !b) { // only return true if both a and b are falsy return !a && !b; } for (var propName in a) { if (a.hasOwnProperty(propName)) { if (!b.hasOwnProperty(propName) || b[propName] !== a[propName]) { return false; } } } for (var propName in b) { if (b.hasOwnProperty(propName)) { if (!a.hasOwnProperty(propName)) { return false; } } } return true; } exports.shallowCompare = shallowCompare; /** * Makes a resulting merge of a bunch of objects. Pass in the target object followed by 1 or more * objects as arguments and they will be merged sequentially into the target. Note that this will * shallow merge; it will not create new cloned values for target members. * * @public * @param target - Target object to merge following object arguments into. * @param args - One or more objects that will be mixed into the target in the order they are provided. * @returns Resulting merged target. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function assign(target) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return filteredAssign.apply(this, [null, target].concat(args)); } exports.assign = assign; /** * Makes a resulting merge of a bunch of objects, but allows a filter function to be passed in to filter * the resulting merges. This allows for scenarios where you want to merge "everything except that one thing" * or "properties that start with data-". Note that this will shallow merge; it will not create new cloned * values for target members. * * @public * @param isAllowed - Callback to determine if the given propName is allowed in the result. * @param target - Target object to merge following object arguments into. * @param args - One or more objects that will be mixed into the target in the order they are provided. * @returns Resulting merged target. */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function filteredAssign(isAllowed, target) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } target = target || {}; for (var _a = 0, args_1 = args; _a < args_1.length; _a++) { var sourceObject = args_1[_a]; if (sourceObject) { for (var propName in sourceObject) { if (sourceObject.hasOwnProperty(propName) && (!isAllowed || isAllowed(propName))) { target[propName] = sourceObject[propName]; } } } } return target; } exports.filteredAssign = filteredAssign; /** * Takes an enum and iterates over each value of the enum (as a string), running the callback on each, * returning a mapped array. * @param theEnum - Enum to iterate over * @param callback - The first parameter the name of the entry, and the second parameter is the value * of that entry, which is the value you'd normally use when using the enum (usually a number). */ function mapEnumByName( // eslint-disable-next-line @typescript-eslint/no-explicit-any theEnum, callback) { // map to satisfy compiler since it doesn't realize we strip out undefineds in the .filter() call return Object.keys(theEnum) .map(function (p) { // map on each property name as a string if (String(Number(p)) !== p) { // if the property is not just a number (because enums in TypeScript will map both ways) return callback(p, theEnum[p]); } return undefined; }) .filter(function (v) { return !!v; }); // only return elements with values } exports.mapEnumByName = mapEnumByName; /** * Get all values in an object dictionary * * @param obj - The dictionary to get values for */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function values(obj) { return Object.keys(obj).reduce(function (arr, key) { arr.push(obj[key]); return arr; }, []); } exports.values = values; /** * Tiny helper to do the minimal amount of work in duplicating an object but omitting some * props. This ends up faster than using object ...rest or reduce to filter. * * This behaves very much like filteredAssign, but does not merge many objects together, * uses an exclusion object map, and avoids spreads all for optimal performance. * * See perf test for background: * https://jsperf.com/omit-vs-rest-vs-reduce/1 * * @param obj - The object to clone * @param exclusions - The array of keys to exclude */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function omit(obj, exclusions) { // eslint-disable-next-line @typescript-eslint/no-explicit-any var result = {}; for (var key in obj) { if (exclusions.indexOf(key) === -1 && obj.hasOwnProperty(key)) { result[key] = obj[key]; } } return result; } exports.omit = omit; //# sourceMappingURL=object.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/osDetector.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isMac = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var isMacResult; /** * Returns true if the user is on a Mac. Caches the result value. * @param reset - Reset the cached result value (mainly for testing). */ function isMac(reset) { var _a; if (typeof isMacResult === 'undefined' || reset) { var win = (0, getWindow_1.getWindow)(); // In certain SSR frameworks, `window` will be defined even on the server but `navigator` will be undefined var userAgent = (_a = win === null || win === void 0 ? void 0 : win.navigator) === null || _a === void 0 ? void 0 : _a.userAgent; isMacResult = !!userAgent && userAgent.indexOf('Macintosh') !== -1; } return !!isMacResult; } exports.isMac = isMac; //# sourceMappingURL=osDetector.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/overflow.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/overflow.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hasOverflow = exports.hasVerticalOverflow = exports.hasHorizontalOverflow = void 0; /** * Detects whether an element's content has horizontal overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasHorizontalOverflow(element) { return element.clientWidth < element.scrollWidth; } exports.hasHorizontalOverflow = hasHorizontalOverflow; /** * Detects whether an element's content has vertical overflow * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasVerticalOverflow(element) { return element.clientHeight < element.scrollHeight; } exports.hasVerticalOverflow = hasVerticalOverflow; /** * Detects whether an element's content has overflow in any direction * * @public * @param element - Element to check for overflow * @returns True if element's content overflows */ function hasOverflow(element) { return hasHorizontalOverflow(element) || hasVerticalOverflow(element); } exports.hasOverflow = hasOverflow; //# sourceMappingURL=overflow.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/properties.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/properties.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getNativeProps = exports.divProperties = exports.imageProperties = exports.imgProperties = exports.iframeProperties = exports.formProperties = exports.colProperties = exports.colGroupProperties = exports.tdProperties = exports.thProperties = exports.trProperties = exports.tableProperties = exports.optionProperties = exports.selectProperties = exports.textAreaProperties = exports.inputProperties = exports.buttonProperties = exports.anchorProperties = exports.liProperties = exports.olProperties = exports.videoProperties = exports.audioProperties = exports.labelProperties = exports.htmlElementProperties = exports.baseElementProperties = exports.baseElementEvents = void 0; var toObjectMap = function () { var items = []; for (var _i = 0; _i < arguments.length; _i++) { items[_i] = arguments[_i]; } var result = {}; for (var _a = 0, items_1 = items; _a < items_1.length; _a++) { var item = items_1[_a]; var keys = Array.isArray(item) ? item : Object.keys(item); for (var _b = 0, keys_1 = keys; _b < keys_1.length; _b++) { var key = keys_1[_b]; result[key] = 1; } } return result; }; /** * An array of events that are allowed on every html element type. * * @public */ exports.baseElementEvents = toObjectMap([ 'onCopy', 'onCut', 'onPaste', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onInput', 'onSubmit', 'onLoad', 'onError', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyUp', 'onAbort', 'onCanPlay', 'onCanPlayThrough', 'onDurationChange', 'onEmptied', 'onEncrypted', 'onEnded', 'onLoadedData', 'onLoadedMetadata', 'onLoadStart', 'onPause', 'onPlay', 'onPlaying', 'onProgress', 'onRateChange', 'onSeeked', 'onSeeking', 'onStalled', 'onSuspend', 'onTimeUpdate', 'onVolumeChange', 'onWaiting', 'onClick', 'onClickCapture', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onScroll', 'onWheel', 'onPointerCancel', 'onPointerDown', 'onPointerEnter', 'onPointerLeave', 'onPointerMove', 'onPointerOut', 'onPointerOver', 'onPointerUp', 'onGotPointerCapture', 'onLostPointerCapture', ]); /** * An array of element attributes which are allowed on every html element type. * * @public */ exports.baseElementProperties = toObjectMap([ 'accessKey', 'children', 'className', 'contentEditable', 'dir', 'draggable', 'hidden', 'htmlFor', 'id', 'lang', 'ref', 'role', 'style', 'tabIndex', 'title', 'translate', 'spellCheck', 'name', // global ]); /** * An array of HTML element properties and events. * * @public */ exports.htmlElementProperties = toObjectMap(exports.baseElementProperties, exports.baseElementEvents); /** * An array of LABEL tag properties and events. * * @public */ exports.labelProperties = toObjectMap(exports.htmlElementProperties, [ 'form', // button, fieldset, input, label, meter, object, output, select, textarea ]); /** * An array of AUDIO tag properties and events. * @public */ exports.audioProperties = toObjectMap(exports.htmlElementProperties, [ 'height', 'loop', 'muted', 'preload', 'src', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * An array of VIDEO tag properties and events. * * @public */ exports.videoProperties = toObjectMap(exports.audioProperties, [ 'poster', // video ]); /** * An array of OL tag properties and events. * * @public */ exports.olProperties = toObjectMap(exports.htmlElementProperties, [ 'start', // ol ]); /** * An array of LI tag properties and events. * * @public */ exports.liProperties = toObjectMap(exports.htmlElementProperties, [ 'value', // button, input, li, option, meter, progress, param ]); /** * An array of A tag properties and events. * * @public */ exports.anchorProperties = toObjectMap(exports.htmlElementProperties, [ 'download', 'href', 'hrefLang', 'media', 'rel', 'target', 'type', // a, button, input, link, menu, object, script, source, style ]); /** * An array of BUTTON tag properties and events. * * @public */ exports.buttonProperties = toObjectMap(exports.htmlElementProperties, [ 'autoFocus', 'disabled', 'form', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', 'type', 'value', // button, input, li, option, meter, progress, param, ]); /** * An array of INPUT tag properties and events. * * @public */ exports.inputProperties = toObjectMap(exports.buttonProperties, [ 'accept', 'alt', 'autoCapitalize', 'autoComplete', 'checked', 'dirname', 'form', 'height', 'inputMode', 'list', 'max', 'maxLength', 'min', 'minLength', 'multiple', 'pattern', 'placeholder', 'readOnly', 'required', 'src', 'step', 'size', 'type', 'value', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * An array of TEXTAREA tag properties and events. * * @public */ exports.textAreaProperties = toObjectMap(exports.buttonProperties, [ 'autoCapitalize', 'cols', 'dirname', 'form', 'maxLength', 'minLength', 'placeholder', 'readOnly', 'required', 'rows', 'wrap', // textarea ]); /** * An array of SELECT tag properties and events. * * @public */ exports.selectProperties = toObjectMap(exports.buttonProperties, [ 'form', 'multiple', 'required', // input, select, textarea ]); exports.optionProperties = toObjectMap(exports.htmlElementProperties, [ 'selected', 'value', // button, input, li, option, meter, progress, param ]); /** * An array of TABLE tag properties and events. * * @public */ exports.tableProperties = toObjectMap(exports.htmlElementProperties, [ 'cellPadding', 'cellSpacing', // table ]); /** * An array of TR tag properties and events. * * @public */ exports.trProperties = exports.htmlElementProperties; /** * An array of TH tag properties and events. * * @public */ exports.thProperties = toObjectMap(exports.htmlElementProperties, [ 'rowSpan', 'scope', // th ]); /** * An array of TD tag properties and events. * * @public */ exports.tdProperties = toObjectMap(exports.htmlElementProperties, [ 'colSpan', 'headers', 'rowSpan', 'scope', // th ]); exports.colGroupProperties = toObjectMap(exports.htmlElementProperties, [ 'span', // col, colgroup ]); exports.colProperties = toObjectMap(exports.htmlElementProperties, [ 'span', // col, colgroup ]); /** * An array of FORM tag properties and events. * * @public */ exports.formProperties = toObjectMap(exports.htmlElementProperties, [ 'acceptCharset', 'action', 'encType', 'encType', 'method', 'noValidate', 'target', // form ]); /** * An array of IFRAME tag properties and events. * * @public */ exports.iframeProperties = toObjectMap(exports.htmlElementProperties, [ 'allow', 'allowFullScreen', 'allowPaymentRequest', 'allowTransparency', 'csp', 'height', 'importance', 'referrerPolicy', 'sandbox', 'src', 'srcDoc', 'width', // canvas, embed, iframe, img, input, object, video, ]); /** * An array of IMAGE tag properties and events. * * @public */ exports.imgProperties = toObjectMap(exports.htmlElementProperties, [ 'alt', 'crossOrigin', 'height', 'src', 'srcSet', 'useMap', 'width', // canvas, embed, iframe, img, input, object, video ]); /** * @deprecated Use imgProperties for img elements. */ exports.imageProperties = exports.imgProperties; /** * An array of DIV tag properties and events. * * @public */ exports.divProperties = exports.htmlElementProperties; /** * Gets native supported props for an html element provided the allowance set. Use one of the property * sets defined (divProperties, buttonPropertes, etc) to filter out supported properties from a given * props set. Note that all data- and aria- prefixed attributes will be allowed. * NOTE: getNativeProps should always be applied first when adding props to a react component. The * non-native props should be applied second. This will prevent getNativeProps from overriding your custom props. * For example, if props passed to getNativeProps has an onClick function and getNativeProps is added to * the component after an onClick function is added, then the getNativeProps onClick will override it. * * @public * @param props - The unfiltered input props * @param allowedPropsNames - The array or record of allowed prop names. * @returns The filtered props */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function getNativeProps( // eslint-disable-next-line @typescript-eslint/no-explicit-any props, allowedPropNames, excludedPropNames) { // It'd be great to properly type this while allowing 'aria-` and 'data-' attributes like TypeScript does for // JSX attributes, but that ability is hardcoded into the TS compiler with no analog in TypeScript typings. // Then we'd be able to enforce props extends native props (including aria- and data- attributes), and then // return native props. // We should be able to do this once this PR is merged: https://github.com/microsoft/TypeScript/pull/26797 var isArray = Array.isArray(allowedPropNames); // eslint-disable-next-line @typescript-eslint/no-explicit-any var result = {}; var keys = Object.keys(props); for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) { var key = keys_2[_i]; var isNativeProp = (!isArray && allowedPropNames[key]) || (isArray && allowedPropNames.indexOf(key) >= 0) || key.indexOf('data-') === 0 || key.indexOf('aria-') === 0; if (isNativeProp && (!excludedPropNames || (excludedPropNames === null || excludedPropNames === void 0 ? void 0 : excludedPropNames.indexOf(key)) === -1)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any result[key] = props[key]; } } return result; } exports.getNativeProps = getNativeProps; //# sourceMappingURL=properties.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/renderFunction/composeRenderFunction.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.composeRenderFunction = void 0; var memoize_1 = __webpack_require__(/*! ../memoize */ "./node_modules/@fluentui/utilities/lib-commonjs/memoize.js"); function createComposedRenderFunction(outer) { var outerMemoizer = (0, memoize_1.createMemoizer)(function (inner) { var innerMemoizer = (0, memoize_1.createMemoizer)(function (defaultRender) { return function (innerProps) { return inner(innerProps, defaultRender); }; }); return function (outerProps, defaultRender) { return outer(outerProps, defaultRender ? innerMemoizer(defaultRender) : inner); }; }); return outerMemoizer; } var memoizer = (0, memoize_1.createMemoizer)(createComposedRenderFunction); /** * Composes two 'render functions' to produce a final render function that renders * the outer function, passing the inner function as 'default render'. The inner function * is then passed the original 'default render' prop. * @public */ function composeRenderFunction(outer, inner) { return memoizer(outer)(inner); } exports.composeRenderFunction = composeRenderFunction; //# sourceMappingURL=composeRenderFunction.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/resources.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/resources.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setBaseUrl = exports.getResourceUrl = void 0; var _baseUrl = ''; /** * @deprecated Unused as of version 8 */ function getResourceUrl(url) { return _baseUrl + url; } exports.getResourceUrl = getResourceUrl; /** * @deprecated Unused as of version 8 */ function setBaseUrl(baseUrl) { _baseUrl = baseUrl; } exports.setBaseUrl = setBaseUrl; //# sourceMappingURL=resources.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/rtl.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/rtl.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRTLSafeKeyCode = exports.setRTL = exports.getRTL = void 0; var KeyCodes_1 = __webpack_require__(/*! ./KeyCodes */ "./node_modules/@fluentui/utilities/lib-commonjs/KeyCodes.js"); var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var sessionStorage_1 = __webpack_require__(/*! ./sessionStorage */ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var RTL_LOCAL_STORAGE_KEY = 'isRTL'; // Default to undefined so that we initialize on first read. var _isRTL; /** * Gets the rtl state of the page (returns true if in rtl.) */ function getRTL(theme) { if (theme === void 0) { theme = {}; } if (theme.rtl !== undefined) { return theme.rtl; } if (_isRTL === undefined) { // Fabric supports persisting the RTL setting between page refreshes via session storage var savedRTL = (0, sessionStorage_1.getItem)(RTL_LOCAL_STORAGE_KEY); if (savedRTL !== null) { _isRTL = savedRTL === '1'; setRTL(_isRTL); } var doc = (0, getDocument_1.getDocument)(); if (_isRTL === undefined && doc) { _isRTL = ((doc.body && doc.body.getAttribute('dir')) || doc.documentElement.getAttribute('dir')) === 'rtl'; (0, merge_styles_1.setRTL)(_isRTL); } } return !!_isRTL; } exports.getRTL = getRTL; /** * Sets the rtl state of the page (by adjusting the dir attribute of the html element.) */ function setRTL(isRTL, persistSetting) { if (persistSetting === void 0) { persistSetting = false; } var doc = (0, getDocument_1.getDocument)(); if (doc) { doc.documentElement.setAttribute('dir', isRTL ? 'rtl' : 'ltr'); } if (persistSetting) { (0, sessionStorage_1.setItem)(RTL_LOCAL_STORAGE_KEY, isRTL ? '1' : '0'); } _isRTL = isRTL; (0, merge_styles_1.setRTL)(_isRTL); } exports.setRTL = setRTL; /** * Returns the given key, but flips right/left arrows if necessary. */ function getRTLSafeKeyCode(key, theme) { if (theme === void 0) { theme = {}; } if (getRTL(theme)) { if (key === KeyCodes_1.KeyCodes.left) { key = KeyCodes_1.KeyCodes.right; } else if (key === KeyCodes_1.KeyCodes.right) { key = KeyCodes_1.KeyCodes.left; } } return key; } exports.getRTLSafeKeyCode = getRTLSafeKeyCode; //# sourceMappingURL=rtl.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/safeRequestAnimationFrame.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.safeRequestAnimationFrame = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Generates a function to be attached to a React component, which can be called * as a replacement to RAF. In-flight async calls will be auto canceled if the component * is unmounting before the async code is executed, preventing bugs where code * accesses things within the component after being unmounted. */ var safeRequestAnimationFrame = function (component) { var activeTimeouts; return function (cb) { if (!activeTimeouts) { activeTimeouts = new Set(); (0, extendComponent_1.extendComponent)(component, { componentWillUnmount: function () { activeTimeouts.forEach(function (id) { return cancelAnimationFrame(id); }); }, }); } var timeoutId = requestAnimationFrame(function () { activeTimeouts.delete(timeoutId); cb(); }); activeTimeouts.add(timeoutId); }; }; exports.safeRequestAnimationFrame = safeRequestAnimationFrame; //# sourceMappingURL=safeRequestAnimationFrame.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/safeSetTimeout.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.safeSetTimeout = void 0; var extendComponent_1 = __webpack_require__(/*! ./extendComponent */ "./node_modules/@fluentui/utilities/lib-commonjs/extendComponent.js"); /** * Generates a function to be attached to a React component, which can be called * as a replacement to setTimeout. In-flight async calls will be auto canceled if the component * is unmounting before the async code is executed, preventing bugs where code * accesses things within the component after being unmounted. */ var safeSetTimeout = function (component) { var activeTimeouts; return function (cb, duration) { if (!activeTimeouts) { activeTimeouts = new Set(); (0, extendComponent_1.extendComponent)(component, { componentWillUnmount: function () { activeTimeouts.forEach(function (id) { return clearTimeout(id); }); }, }); } var timeoutId = setTimeout(function () { activeTimeouts.delete(timeoutId); cb(); }, duration); activeTimeouts.add(timeoutId); }; }; exports.safeSetTimeout = safeSetTimeout; //# sourceMappingURL=safeSetTimeout.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/scroll.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/scroll.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findScrollableParent = exports.getScrollbarWidth = exports.enableBodyScroll = exports.disableBodyScroll = exports.allowOverscrollOnElement = exports.allowScrollOnElement = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = void 0; var getDocument_1 = __webpack_require__(/*! ./dom/getDocument */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getDocument.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var _scrollbarWidth; var _bodyScrollDisabledCount = 0; var DisabledScrollClassName = (0, merge_styles_1.mergeStyles)({ overflow: 'hidden !important', }); /** * Placing this attribute on scrollable divs optimizes detection to know * if the div is scrollable or not (given we can avoid expensive operations * like getComputedStyle.) * * @public */ exports.DATA_IS_SCROLLABLE_ATTRIBUTE = 'data-is-scrollable'; /** * Allows the user to scroll within a element, * while preventing the user from scrolling the body */ var allowScrollOnElement = function (element, events) { if (!element) { return; } var _previousClientY = 0; var _element = null; // remember the clientY for future calls of _preventOverscrolling var _saveClientY = function (event) { if (event.targetTouches.length === 1) { _previousClientY = event.targetTouches[0].clientY; } }; // prevent the body from scrolling when the user attempts // to scroll past the top or bottom of the element var _preventOverscrolling = function (event) { // only respond to a single-finger touch if (event.targetTouches.length !== 1) { return; } // prevent the body touchmove handler from firing // so that scrolling is allowed within the element event.stopPropagation(); if (!_element) { return; } var clientY = event.targetTouches[0].clientY - _previousClientY; var scrollableParent = findScrollableParent(event.target); if (scrollableParent) { _element = scrollableParent; } // if the element is scrolled to the top, // prevent the user from scrolling up if (_element.scrollTop === 0 && clientY > 0) { event.preventDefault(); } // if the element is scrolled to the bottom, // prevent the user from scrolling down if (_element.scrollHeight - Math.ceil(_element.scrollTop) <= _element.clientHeight && clientY < 0) { event.preventDefault(); } }; events.on(element, 'touchstart', _saveClientY, { passive: false }); events.on(element, 'touchmove', _preventOverscrolling, { passive: false }); _element = element; }; exports.allowScrollOnElement = allowScrollOnElement; /** * Same as allowScrollOnElement but does not prevent overscrolling. */ var allowOverscrollOnElement = function (element, events) { if (!element) { return; } var _allowElementScroll = function (event) { event.stopPropagation(); }; events.on(element, 'touchmove', _allowElementScroll, { passive: false }); }; exports.allowOverscrollOnElement = allowOverscrollOnElement; var _disableIosBodyScroll = function (event) { event.preventDefault(); }; /** * Disables the body scrolling. * * @public */ function disableBodyScroll() { var doc = (0, getDocument_1.getDocument)(); if (doc && doc.body && !_bodyScrollDisabledCount) { doc.body.classList.add(DisabledScrollClassName); doc.body.addEventListener('touchmove', _disableIosBodyScroll, { passive: false, capture: false }); } _bodyScrollDisabledCount++; } exports.disableBodyScroll = disableBodyScroll; /** * Enables the body scrolling. * * @public */ function enableBodyScroll() { if (_bodyScrollDisabledCount > 0) { var doc = (0, getDocument_1.getDocument)(); if (doc && doc.body && _bodyScrollDisabledCount === 1) { doc.body.classList.remove(DisabledScrollClassName); doc.body.removeEventListener('touchmove', _disableIosBodyScroll); } _bodyScrollDisabledCount--; } } exports.enableBodyScroll = enableBodyScroll; /** * Calculates the width of a scrollbar for the browser/os. * * @public */ function getScrollbarWidth() { if (_scrollbarWidth === undefined) { var scrollDiv = document.createElement('div'); scrollDiv.style.setProperty('width', '100px'); scrollDiv.style.setProperty('height', '100px'); scrollDiv.style.setProperty('overflow', 'scroll'); scrollDiv.style.setProperty('position', 'absolute'); scrollDiv.style.setProperty('top', '-9999px'); document.body.appendChild(scrollDiv); // Get the scrollbar width _scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; // Delete the DIV document.body.removeChild(scrollDiv); } return _scrollbarWidth; } exports.getScrollbarWidth = getScrollbarWidth; /** * Traverses up the DOM for the element with the data-is-scrollable=true attribute, or returns * document.body. * * @public */ function findScrollableParent(startingElement) { var el = startingElement; var doc = (0, getDocument_1.getDocument)(startingElement); // First do a quick scan for the scrollable attribute. while (el && el !== doc.body) { if (el.getAttribute(exports.DATA_IS_SCROLLABLE_ATTRIBUTE) === 'true') { return el; } el = el.parentElement; } // If we haven't found it, the use the slower method: compute styles to evaluate if overflow is set. el = startingElement; while (el && el !== doc.body) { if (el.getAttribute(exports.DATA_IS_SCROLLABLE_ATTRIBUTE) !== 'false') { var computedStyles = getComputedStyle(el); var overflowY = computedStyles ? computedStyles.getPropertyValue('overflow-y') : ''; if (overflowY && (overflowY === 'scroll' || overflowY === 'auto')) { return el; } } el = el.parentElement; } // Fall back to window scroll. if (!el || el === doc.body) { el = (0, getWindow_1.getWindow)(startingElement); } return el; } exports.findScrollableParent = findScrollableParent; //# sourceMappingURL=scroll.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = void 0; var Selection_types_1 = __webpack_require__(/*! ./Selection.types */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js"); var EventGroup_1 = __webpack_require__(/*! ../EventGroup */ "./node_modules/@fluentui/utilities/lib-commonjs/EventGroup.js"); /** * {@docCategory Selection} */ var Selection = /** @class */ (function () { /** * Create a new Selection. If `TItem` does not have a `key` property, you must provide an options * object with a `getKey` implementation. Providing options is optional otherwise. * (At most one `options` object is accepted.) */ function Selection() { var options = []; // Otherwise, arguments require options with `getKey`. for (var _i = 0 // Otherwise, arguments require options with `getKey`. ; _i < arguments.length // Otherwise, arguments require options with `getKey`. ; _i++ // Otherwise, arguments require options with `getKey`. ) { options[_i] = arguments[_i]; // Otherwise, arguments require options with `getKey`. } var _a = options[0] || {}, onSelectionChanged = _a.onSelectionChanged, onItemsChanged = _a.onItemsChanged, getKey = _a.getKey, _b = _a.canSelectItem, canSelectItem = _b === void 0 ? function () { return true; } : _b, items = _a.items, _c = _a.selectionMode, selectionMode = _c === void 0 ? Selection_types_1.SelectionMode.multiple : _c; this.mode = selectionMode; this._getKey = getKey || defaultGetKey; this._changeEventSuppressionCount = 0; this._exemptedCount = 0; this._anchoredIndex = 0; this._unselectableCount = 0; this._onSelectionChanged = onSelectionChanged; this._onItemsChanged = onItemsChanged; this._canSelectItem = canSelectItem; this._keyToIndexMap = {}; this._isModal = false; this.setItems(items || [], true); this.count = this.getSelectedCount(); } Selection.prototype.canSelectItem = function (item, index) { if (typeof index === 'number' && index < 0) { return false; } return this._canSelectItem(item, index); }; Selection.prototype.getKey = function (item, index) { var key = this._getKey(item, index); return typeof key === 'number' || key ? "".concat(key) : ''; }; Selection.prototype.setChangeEvents = function (isEnabled, suppressChange) { this._changeEventSuppressionCount += isEnabled ? -1 : 1; if (this._changeEventSuppressionCount === 0 && this._hasChanged) { this._hasChanged = false; if (!suppressChange) { this._change(); } } }; Selection.prototype.isModal = function () { return this._isModal; }; Selection.prototype.setModal = function (isModal) { if (this._isModal !== isModal) { this.setChangeEvents(false); this._isModal = isModal; if (!isModal) { this.setAllSelected(false); } this._change(); this.setChangeEvents(true); } }; /** * Selection needs the items, call this method to set them. If the set * of items is the same, this will re-evaluate selection and index maps. * Otherwise, shouldClear should be set to true, so that selection is * cleared. */ Selection.prototype.setItems = function (items, shouldClear) { if (shouldClear === void 0) { shouldClear = true; } var newKeyToIndexMap = {}; var newUnselectableIndices = {}; var hasSelectionChanged = false; this.setChangeEvents(false); // Reset the unselectable count. this._unselectableCount = 0; var haveItemsChanged = false; // Build lookup table for quick selection evaluation. for (var i = 0; i < items.length; i++) { var item = items[i]; if (item) { var key = this.getKey(item, i); if (key) { if (!haveItemsChanged && (!(key in this._keyToIndexMap) || this._keyToIndexMap[key] !== i)) { haveItemsChanged = true; } newKeyToIndexMap[key] = i; } } newUnselectableIndices[i] = item && !this.canSelectItem(item); if (newUnselectableIndices[i]) { this._unselectableCount++; } } if (shouldClear || items.length === 0) { this._setAllSelected(false, true); } // Check the exemption list for discrepencies. var newExemptedIndicies = {}; var newExemptedCount = 0; for (var indexProperty in this._exemptedIndices) { if (this._exemptedIndices.hasOwnProperty(indexProperty)) { var index = Number(indexProperty); var item = this._items[index]; var exemptKey = item ? this.getKey(item, Number(index)) : undefined; var newIndex = exemptKey ? newKeyToIndexMap[exemptKey] : index; if (newIndex === undefined) { // The item has likely been replaced or removed. hasSelectionChanged = true; } else { // We know the new index of the item. update the existing exemption table. newExemptedIndicies[newIndex] = true; newExemptedCount++; hasSelectionChanged = hasSelectionChanged || newIndex !== index; } } } if (this._items && this._exemptedCount === 0 && items.length !== this._items.length && this._isAllSelected) { // If everything was selected but the number of items has changed, selection has changed. hasSelectionChanged = true; } if (!haveItemsChanged) { for (var _i = 0, _a = Object.keys(this._keyToIndexMap); _i < _a.length; _i++) { var key = _a[_i]; if (!(key in newKeyToIndexMap)) { haveItemsChanged = true; break; } } } this._exemptedIndices = newExemptedIndicies; this._exemptedCount = newExemptedCount; this._keyToIndexMap = newKeyToIndexMap; this._unselectableIndices = newUnselectableIndices; this._items = items; this._selectedItems = null; if (hasSelectionChanged) { this._updateCount(); } if (haveItemsChanged) { EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_ITEMS_CHANGE); if (this._onItemsChanged) { this._onItemsChanged(); } } if (hasSelectionChanged) { this._change(); } this.setChangeEvents(true); }; Selection.prototype.getItems = function () { return this._items; }; Selection.prototype.getSelection = function () { if (!this._selectedItems) { this._selectedItems = []; var items = this._items; if (items) { for (var i = 0; i < items.length; i++) { if (this.isIndexSelected(i)) { this._selectedItems.push(items[i]); } } } } return this._selectedItems; }; Selection.prototype.getSelectedCount = function () { return this._isAllSelected ? this._items.length - this._exemptedCount - this._unselectableCount : this._exemptedCount; }; Selection.prototype.getSelectedIndices = function () { if (!this._selectedIndices) { this._selectedIndices = []; var items = this._items; if (items) { for (var i = 0; i < items.length; i++) { if (this.isIndexSelected(i)) { this._selectedIndices.push(i); } } } } return this._selectedIndices; }; Selection.prototype.getItemIndex = function (key) { var index = this._keyToIndexMap[key]; return index !== null && index !== void 0 ? index : -1; }; Selection.prototype.isRangeSelected = function (fromIndex, count) { if (count === 0) { return false; } var endIndex = fromIndex + count; for (var i = fromIndex; i < endIndex; i++) { if (!this.isIndexSelected(i)) { return false; } } return true; }; Selection.prototype.isAllSelected = function () { var selectableCount = this._items.length - this._unselectableCount; // In single mode, we can only have a max of 1 item. if (this.mode === Selection_types_1.SelectionMode.single) { selectableCount = Math.min(selectableCount, 1); } return ((this.count > 0 && this._isAllSelected && this._exemptedCount === 0) || (!this._isAllSelected && this._exemptedCount === selectableCount && selectableCount > 0)); }; Selection.prototype.isKeySelected = function (key) { var index = this._keyToIndexMap[key]; return this.isIndexSelected(index); }; Selection.prototype.isIndexSelected = function (index) { return !!((this.count > 0 && this._isAllSelected && !this._exemptedIndices[index] && !this._unselectableIndices[index]) || (!this._isAllSelected && this._exemptedIndices[index])); }; Selection.prototype.setAllSelected = function (isAllSelected) { if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) { return; } var selectableCount = this._items ? this._items.length - this._unselectableCount : 0; this.setChangeEvents(false); if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) { this._exemptedIndices = {}; if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) { this._exemptedCount = 0; this._isAllSelected = isAllSelected; this._change(); } this._updateCount(); } this.setChangeEvents(true); }; Selection.prototype.setKeySelected = function (key, isSelected, shouldAnchor) { var index = this._keyToIndexMap[key]; if (index >= 0) { this.setIndexSelected(index, isSelected, shouldAnchor); } }; Selection.prototype.setIndexSelected = function (index, isSelected, shouldAnchor) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } // Clamp the index. index = Math.min(Math.max(0, index), this._items.length - 1); // No-op on out of bounds selections. if (index < 0 || index >= this._items.length) { return; } this.setChangeEvents(false); var isExempt = this._exemptedIndices[index]; var canSelect = !this._unselectableIndices[index]; if (canSelect) { if (isSelected && this.mode === Selection_types_1.SelectionMode.single) { // If this is single-select, the previous selection should be removed. this._setAllSelected(false, true); } // Determine if we need to remove the exemption. if (isExempt && ((isSelected && this._isAllSelected) || (!isSelected && !this._isAllSelected))) { delete this._exemptedIndices[index]; this._exemptedCount--; } // Determine if we need to add the exemption. if (!isExempt && ((isSelected && !this._isAllSelected) || (!isSelected && this._isAllSelected))) { this._exemptedIndices[index] = true; this._exemptedCount++; } if (shouldAnchor) { this._anchoredIndex = index; } } this._updateCount(); this.setChangeEvents(true); }; Selection.prototype.setRangeSelected = function (fromIndex, count, isSelected, shouldAnchor) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } // Clamp the index. fromIndex = Math.min(Math.max(0, fromIndex), this._items.length - 1); // Clamp the range. count = Math.min(Math.max(0, count), this._items.length - fromIndex); // No-op on out of bounds selections. if (fromIndex < 0 || fromIndex >= this._items.length || count === 0) { return; } this.setChangeEvents(false); var anchorIndex = this._anchoredIndex || 0; var startIndex = fromIndex; var endIndex = fromIndex + count - 1; var newAnchorIndex = anchorIndex >= endIndex ? startIndex : endIndex; for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, isSelected, shouldAnchor ? startIndex === newAnchorIndex : false); } this.setChangeEvents(true); }; Selection.prototype.selectToKey = function (key, clearSelection) { this.selectToIndex(this._keyToIndexMap[key], clearSelection); }; Selection.prototype.selectToRange = function (fromIndex, count, clearSelection) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } if (this.mode === Selection_types_1.SelectionMode.single) { if (count === 1) { this.setIndexSelected(fromIndex, true, true); } return; } var anchorIndex = this._anchoredIndex || 0; var startIndex = Math.min(fromIndex, anchorIndex); var endIndex = Math.max(fromIndex + count - 1, anchorIndex); this.setChangeEvents(false); if (clearSelection) { this._setAllSelected(false, true); } for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, true, false); } this.setChangeEvents(true); }; Selection.prototype.selectToIndex = function (index, clearSelection) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } if (this.mode === Selection_types_1.SelectionMode.single) { this.setIndexSelected(index, true, true); return; } var anchorIndex = this._anchoredIndex || 0; var startIndex = Math.min(index, anchorIndex); var endIndex = Math.max(index, anchorIndex); this.setChangeEvents(false); if (clearSelection) { this._setAllSelected(false, true); } for (; startIndex <= endIndex; startIndex++) { this.setIndexSelected(startIndex, true, false); } this.setChangeEvents(true); }; Selection.prototype.toggleAllSelected = function () { this.setAllSelected(!this.isAllSelected()); }; Selection.prototype.toggleKeySelected = function (key) { this.setKeySelected(key, !this.isKeySelected(key), true); }; Selection.prototype.toggleIndexSelected = function (index) { this.setIndexSelected(index, !this.isIndexSelected(index), true); }; Selection.prototype.toggleRangeSelected = function (fromIndex, count) { if (this.mode === Selection_types_1.SelectionMode.none) { return; } var isRangeSelected = this.isRangeSelected(fromIndex, count); var endIndex = fromIndex + count; if (this.mode === Selection_types_1.SelectionMode.single && count > 1) { return; } this.setChangeEvents(false); for (var i = fromIndex; i < endIndex; i++) { this.setIndexSelected(i, !isRangeSelected, false); } this.setChangeEvents(true); }; Selection.prototype._updateCount = function (preserveModalState) { if (preserveModalState === void 0) { preserveModalState = false; } var count = this.getSelectedCount(); if (count !== this.count) { this.count = count; this._change(); } if (!this.count && !preserveModalState) { this.setModal(false); } }; Selection.prototype._setAllSelected = function (isAllSelected, preserveModalState) { if (preserveModalState === void 0) { preserveModalState = false; } if (isAllSelected && this.mode !== Selection_types_1.SelectionMode.multiple) { return; } var selectableCount = this._items ? this._items.length - this._unselectableCount : 0; this.setChangeEvents(false); if (selectableCount > 0 && (this._exemptedCount > 0 || isAllSelected !== this._isAllSelected)) { this._exemptedIndices = {}; if (isAllSelected !== this._isAllSelected || this._exemptedCount > 0) { this._exemptedCount = 0; this._isAllSelected = isAllSelected; this._change(); } this._updateCount(preserveModalState); } this.setChangeEvents(true); }; Selection.prototype._change = function () { if (this._changeEventSuppressionCount === 0) { this._selectedItems = null; this._selectedIndices = undefined; EventGroup_1.EventGroup.raise(this, Selection_types_1.SELECTION_CHANGE); if (this._onSelectionChanged) { this._onSelectionChanged(); } } else { this._hasChanged = true; } }; return Selection; }()); exports.Selection = Selection; function defaultGetKey(item, index) { // 0 may be used as a key var _a = (item || {}).key, key = _a === void 0 ? "".concat(index) : _a; return key; } //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectionDirection = exports.SelectionMode = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = void 0; exports.SELECTION_CHANGE = 'change'; exports.SELECTION_ITEMS_CHANGE = 'items-change'; /** * {@docCategory Selection} */ var SelectionMode; (function (SelectionMode) { SelectionMode[SelectionMode["none"] = 0] = "none"; SelectionMode[SelectionMode["single"] = 1] = "single"; SelectionMode[SelectionMode["multiple"] = 2] = "multiple"; })(SelectionMode = exports.SelectionMode || (exports.SelectionMode = {})); /** * {@docCategory Selection} */ var SelectionDirection; (function (SelectionDirection) { SelectionDirection[SelectionDirection["horizontal"] = 0] = "horizontal"; SelectionDirection[SelectionDirection["vertical"] = 1] = "vertical"; })(SelectionDirection = exports.SelectionDirection || (exports.SelectionDirection = {})); //# sourceMappingURL=Selection.types.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/selection/index.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Selection = exports.SelectionMode = exports.SelectionDirection = exports.SELECTION_ITEMS_CHANGE = exports.SELECTION_CHANGE = void 0; var Selection_types_1 = __webpack_require__(/*! ./Selection.types */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.types.js"); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return Selection_types_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "SELECTION_ITEMS_CHANGE", ({ enumerable: true, get: function () { return Selection_types_1.SELECTION_ITEMS_CHANGE; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return Selection_types_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return Selection_types_1.SelectionMode; } })); var Selection_1 = __webpack_require__(/*! ./Selection */ "./node_modules/@fluentui/utilities/lib-commonjs/selection/Selection.js"); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return Selection_1.Selection; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/sessionStorage.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setItem = exports.getItem = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); /** * Fetches an item from session storage without throwing an exception * @param key The key of the item to fetch from session storage */ function getItem(key) { var result = null; try { var win = (0, getWindow_1.getWindow)(); result = win ? win.sessionStorage.getItem(key) : null; } catch (e) { /* Eat the exception */ } return result; } exports.getItem = getItem; /** * Inserts an item into session storage without throwing an exception * @param key The key of the item to add to session storage * @param data The data to put into session storage */ function setItem(key, data) { var _a; try { (_a = (0, getWindow_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.sessionStorage.setItem(key, data); } catch (e) { /* Eat the exception */ } } exports.setItem = setItem; //# sourceMappingURL=sessionStorage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setFocusVisibility = exports.IsFocusHiddenClassName = exports.IsFocusVisibleClassName = void 0; var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); exports.IsFocusVisibleClassName = 'ms-Fabric--isFocusVisible'; exports.IsFocusHiddenClassName = 'ms-Fabric--isFocusHidden'; function updateClassList(el, enabled) { if (el) { el.classList.add(enabled ? exports.IsFocusVisibleClassName : exports.IsFocusHiddenClassName); el.classList.remove(enabled ? exports.IsFocusHiddenClassName : exports.IsFocusVisibleClassName); } } /** * Sets the visibility of focus styling. * * By default, focus styles (the box surrounding a focused Button, for example) only show up when navigational * keypresses occur (through Tab, arrows, PgUp/PgDn, Home and End), and are hidden when mouse interactions occur. * This API provides an imperative way to turn them on/off. * * A use case might be when you have a keypress like ctrl-f6 navigate to a particular region on the page, * and want focus to show up. * * @param enabled - Whether to turn focus visibility on or off. * @param target - Optional target from which to get window in case no `providerElem` has been specified. * @param registeredProviders - Array of provider refs that are associated with a FocusRectsProvider. If no array * is passed in, the classnames are attached to the document body that contains `target`. */ function setFocusVisibility(enabled, target, registeredProviders) { var _a; if (registeredProviders) { registeredProviders.forEach(function (ref) { return updateClassList(ref.current, enabled); }); } else { updateClassList((_a = (0, getWindow_1.getWindow)(target)) === null || _a === void 0 ? void 0 : _a.document.body, enabled); } } exports.setFocusVisibility = setFocusVisibility; //# sourceMappingURL=setFocusVisibility.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/string.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/string.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.format = void 0; // Regex that finds { and } so they can be removed on a lookup for string format var FORMAT_ARGS_REGEX = /[\{\}]/g; // Regex that finds {#} so it can be replaced by the arguments in string format var FORMAT_REGEX = /\{\d+\}/g; /** * String format method, used for scenarios where at runtime you * need to evaluate a formatted string given a tokenized string. This * usually only is needed in localization scenarios. * @example * ```tsx * "I love {0} every {1}".format("CXP") * ``` * will result in a Debug Exception. * * @public */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function format(s) { var values = []; for (var _i = 1; _i < arguments.length; _i++) { values[_i - 1] = arguments[_i]; } var args = values; // Callback match function function replaceFunc(match) { // looks up in the args // eslint-disable-next-line @typescript-eslint/no-explicit-any var replacement = args[match.replace(FORMAT_ARGS_REGEX, '')]; // catches undefined in nondebug and null in debug and nondebug if (replacement === null || replacement === undefined) { replacement = ''; } return replacement; } return s.replace(FORMAT_REGEX, replaceFunc); } exports.format = format; //# sourceMappingURL=string.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/styled.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/styled.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styled = 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 useCustomizationSettings_1 = __webpack_require__(/*! ./customizations/useCustomizationSettings */ "./node_modules/@fluentui/utilities/lib-commonjs/customizations/useCustomizationSettings.js"); var DefaultFields = ['theme', 'styles']; function styled(Component, baseStyles, getProps, customizable, pure) { customizable = customizable || { scope: '', fields: undefined }; var scope = customizable.scope, _a = customizable.fields, fields = _a === void 0 ? DefaultFields : _a; var Wrapped = React.forwardRef(function (props, forwardedRef) { var styles = React.useRef(); var settings = (0, useCustomizationSettings_1.useCustomizationSettings)(fields, scope); var customizedStyles = settings.styles, dir = settings.dir, rest = tslib_1.__rest(settings, ["styles", "dir"]); var additionalProps = getProps ? getProps(props) : undefined; // eslint-disable-next-line @typescript-eslint/no-explicit-any var cache = (styles.current && styles.current.__cachedInputs__) || []; var propStyles = props.styles; if (!styles.current || customizedStyles !== cache[1] || propStyles !== cache[2]) { // Using styled components as the Component arg will result in nested styling arrays. // The function can be cached and in order to prevent the props from being retained within it's closure // we pass in just the styles and not the entire props var concatenatedStyles = function (styleProps) { return (0, merge_styles_1.concatStyleSetsWithProps)(styleProps, baseStyles, customizedStyles, propStyles); }; // The __cachedInputs__ array is attached to the function and consumed by the // classNamesFunction as a list of keys to include for memoizing classnames. concatenatedStyles.__cachedInputs__ = [ baseStyles, customizedStyles, propStyles, ]; concatenatedStyles.__noStyleOverride__ = !customizedStyles && !propStyles; styles.current = concatenatedStyles; } return React.createElement(Component, tslib_1.__assign({ ref: forwardedRef }, rest, additionalProps, props, { styles: styles.current })); }); // Function.prototype.name is an ES6 feature, so the cast to any is required until we're // able to drop IE 11 support and compile with ES6 libs // eslint-disable-next-line @typescript-eslint/no-explicit-any Wrapped.displayName = "Styled".concat(Component.displayName || Component.name); // This preserves backwards compatibility. var pureComponent = pure ? React.memo(Wrapped) : Wrapped; // Check if the wrapper has a displayName after it has been memoized. Then assign it to the pure component. if (Wrapped.displayName) { pureComponent.displayName = Wrapped.displayName; } return pureComponent; } exports.styled = styled; //# sourceMappingURL=styled.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/useFocusRects.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusRects = exports.useFocusRects = exports.FocusRectsContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var getWindow_1 = __webpack_require__(/*! ./dom/getWindow */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/getWindow.js"); var keyboard_1 = __webpack_require__(/*! ./keyboard */ "./node_modules/@fluentui/utilities/lib-commonjs/keyboard.js"); var setFocusVisibility_1 = __webpack_require__(/*! ./setFocusVisibility */ "./node_modules/@fluentui/utilities/lib-commonjs/setFocusVisibility.js"); var mountCounters = new WeakMap(); var callbackMap = new WeakMap(); function setMountCounters(key, delta) { var newValue; var currValue = mountCounters.get(key); if (currValue) { newValue = currValue + delta; } else { newValue = 1; } mountCounters.set(key, newValue); return newValue; } function setCallbackMap(context) { var callbacks = callbackMap.get(context); if (callbacks) { return callbacks; } var onMouseDown = function (ev) { return _onMouseDown(ev, context.registeredProviders); }; var onPointerDown = function (ev) { return _onPointerDown(ev, context.registeredProviders); }; var onKeyDown = function (ev) { return _onKeyDown(ev, context.registeredProviders); }; var onKeyUp = function (ev) { return _onKeyUp(ev, context.registeredProviders); }; callbacks = { onMouseDown: onMouseDown, onPointerDown: onPointerDown, onKeyDown: onKeyDown, onKeyUp: onKeyUp }; callbackMap.set(context, callbacks); return callbacks; } exports.FocusRectsContext = React.createContext(undefined); /** * Initializes the logic which: * * 1. Subscribes keydown, keyup, mousedown and pointerdown events. (It will only do it once for the current element of * the FocusRectsContext providerRef or once per window if no such element is provided via context, so it's safe to * call this method multiple times.) * 2. When the user presses triggers a keydown or keyup event via directional keyboard keys, adds the * 'ms-Fabric--isFocusVisible' classname to the current element of the FocusRectsContext providerRef or the document * body if no such element is provided via context, and removes the 'ms-Fabric-isFocusHidden' classname. * 3. When the user triggers a mousedown or pointerdown event, adds the 'ms-Fabric-isFocusHidden' classname to the * current element of the FocusRectsContext providerRef or the document body if no such element is provided via * context, and removes the 'ms-Fabric--isFocusVisible' classname. * * This logic allows components on the page to conditionally render focus treatments based on * the existence of global classnames, which simplifies logic overall. * * @param rootRef - A Ref object. Focus rectangle can be applied on itself and all its children. */ function useFocusRects(rootRef) { var context = React.useContext(exports.FocusRectsContext); React.useEffect(function () { var _a, _b, _c, _d; var win = (0, getWindow_1.getWindow)(rootRef === null || rootRef === void 0 ? void 0 : rootRef.current); if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return undefined; } var el = win; var onMouseDown; var onPointerDown; var onKeyDown; var onKeyUp; if (((_b = context === null || context === void 0 ? void 0 : context.providerRef) === null || _b === void 0 ? void 0 : _b.current) && ((_d = (_c = context === null || context === void 0 ? void 0 : context.providerRef) === null || _c === void 0 ? void 0 : _c.current) === null || _d === void 0 ? void 0 : _d.addEventListener)) { el = context.providerRef.current; // The NOINLINE directive tells terser not to move the setCallbackMap implementation into the call site during // minification. // This prevents the function from capturing additional variables in the closure, which can cause memory leaks. var callbacks = /*@__NOINLINE__*/ setCallbackMap(context); onMouseDown = callbacks.onMouseDown; onPointerDown = callbacks.onPointerDown; onKeyDown = callbacks.onKeyDown; onKeyUp = callbacks.onKeyUp; } else { onMouseDown = _onMouseDown; onPointerDown = _onPointerDown; onKeyDown = _onKeyDown; onKeyUp = _onKeyUp; } var count = setMountCounters(el, 1); if (count <= 1) { el.addEventListener('mousedown', onMouseDown, true); el.addEventListener('pointerdown', onPointerDown, true); el.addEventListener('keydown', onKeyDown, true); el.addEventListener('keyup', onKeyUp, true); } return function () { var _a; if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) { return; } count = setMountCounters(el, -1); if (count === 0) { el.removeEventListener('mousedown', onMouseDown, true); el.removeEventListener('pointerdown', onPointerDown, true); el.removeEventListener('keydown', onKeyDown, true); el.removeEventListener('keyup', onKeyUp, true); } }; }, [context, rootRef]); } exports.useFocusRects = useFocusRects; /** * Function Component wrapper which enables calling `useFocusRects` hook. * Renders nothing. */ var FocusRects = function (props) { useFocusRects(props.rootRef); return null; }; exports.FocusRects = FocusRects; function _onMouseDown(ev, registeredProviders) { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target, registeredProviders); } function _onPointerDown(ev, registeredProviders) { if (ev.pointerType !== 'mouse') { (0, setFocusVisibility_1.setFocusVisibility)(false, ev.target, registeredProviders); } } // You need both a keydown and a keyup listener that sets focus visibility to true to handle two distinct scenarios when // attaching the listeners and classnames to the provider instead of the document body. // If you only have a keydown listener, then the focus rectangles will not show when moving from outside of the provider // to inside it. That is why a keyup listener is needed, since it will always trigger after the focus event is fired. // If you only have a keyup listener, then the focus rectangles will not show moving between different tabbable elements // if the tab key is pressed without being released. That's is why we need a keydown listener, since it will trigger for // every element that is being tabbed into. // This works because `classList.add` is smart and will not duplicate a classname that already exists on the classList // when focus visibility is turned on. function _onKeyDown(ev, registeredProviders) { // eslint-disable-next-line deprecation/deprecation if ((0, keyboard_1.isDirectionalKeyCode)(ev.which)) { (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target, registeredProviders); } } function _onKeyUp(ev, registeredProviders) { // eslint-disable-next-line deprecation/deprecation if ((0, keyboard_1.isDirectionalKeyCode)(ev.which)) { (0, setFocusVisibility_1.setFocusVisibility)(true, ev.target, registeredProviders); } } //# sourceMappingURL=useFocusRects.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/useIsomorphicLayoutEffect.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useIsomorphicLayoutEffect = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var canUseDOM_1 = __webpack_require__(/*! ./dom/canUseDOM */ "./node_modules/@fluentui/utilities/lib-commonjs/dom/canUseDOM.js"); /** * React currently throws a warning when using `useLayoutEffect` on the server. To get around it, * this hook calls `useEffect` on the server (no-op) and `useLayoutEffect` in the browser. * * Prefer `useEffect` unless you have a specific need to do something after mount and before paint, * such as to avoid a render flash for certain operations. * * Server-side rendering is detected based on `canUseDOM` from `@fluentui/utilities`. * * https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85 * https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js */ // eslint-disable-next-line no-restricted-properties exports.useIsomorphicLayoutEffect = (0, canUseDOM_1.canUseDOM)() ? React.useLayoutEffect : React.useEffect; //# sourceMappingURL=useIsomorphicLayoutEffect.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/version.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/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/utilities', '8.13.18'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.resetControlledWarnings = exports.warnConditionallyRequiredProps = exports.warn = exports.setWarningCallback = void 0; var warn_1 = __webpack_require__(/*! ./warn/warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); Object.defineProperty(exports, "setWarningCallback", ({ enumerable: true, get: function () { return warn_1.setWarningCallback; } })); Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warn_1.warn; } })); var warnConditionallyRequiredProps_1 = __webpack_require__(/*! ./warn/warnConditionallyRequiredProps */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js"); Object.defineProperty(exports, "warnConditionallyRequiredProps", ({ enumerable: true, get: function () { return warnConditionallyRequiredProps_1.warnConditionallyRequiredProps; } })); var warnControlledUsage_1 = __webpack_require__(/*! ./warn/warnControlledUsage */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js"); Object.defineProperty(exports, "resetControlledWarnings", ({ enumerable: true, get: function () { return warnControlledUsage_1.resetControlledWarnings; } })); Object.defineProperty(exports, "warnControlledUsage", ({ enumerable: true, get: function () { return warnControlledUsage_1.warnControlledUsage; } })); var warnDeprecations_1 = __webpack_require__(/*! ./warn/warnDeprecations */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js"); Object.defineProperty(exports, "warnDeprecations", ({ enumerable: true, get: function () { return warnDeprecations_1.warnDeprecations; } })); var warnMutuallyExclusive_1 = __webpack_require__(/*! ./warn/warnMutuallyExclusive */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js"); Object.defineProperty(exports, "warnMutuallyExclusive", ({ enumerable: true, get: function () { return warnMutuallyExclusive_1.warnMutuallyExclusive; } })); //# sourceMappingURL=warn.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; /* eslint-disable no-console */ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setWarningCallback = exports.warn = void 0; var _warningCallback = undefined; /** * Sends a warning to console, if the api is present. * * @public * @param message - Warning message. */ function warn(message) { if (_warningCallback && "development" !== 'production') { _warningCallback(message); } else if (console && console.warn) { console.warn(message); } } exports.warn = warn; /** * Configures the warning callback. Passing in undefined will reset it to use the default * console.warn function. * * @public * @param warningCallback - Callback to override the generated warnings. */ function setWarningCallback(warningCallback) { _warningCallback = warningCallback; } exports.setWarningCallback = setWarningCallback; //# sourceMappingURL=warn.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnConditionallyRequiredProps.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnConditionallyRequiredProps = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when props are required if a condition is met. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param requiredProps - The name of the props that are required when the condition is met. * @param conditionalPropName - The name of the prop that the condition is based on. * @param condition - Whether the condition is met. */ function warnConditionallyRequiredProps(componentName, props, requiredProps, conditionalPropName, condition) { if (condition === true && "development" !== 'production') { for (var _i = 0, requiredProps_1 = requiredProps; _i < requiredProps_1.length; _i++) { var requiredPropName = requiredProps_1[_i]; if (!(requiredPropName in props)) { (0, warn_1.warn)("".concat(componentName, " property '").concat(requiredPropName, "' is required when '").concat(conditionalPropName, "' is used.'")); } } } } exports.warnConditionallyRequiredProps = warnConditionallyRequiredProps; //# sourceMappingURL=warnConditionallyRequiredProps.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnControlledUsage.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnControlledUsage = exports.resetControlledWarnings = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); var controlled_1 = __webpack_require__(/*! ../controlled */ "./node_modules/@fluentui/utilities/lib-commonjs/controlled.js"); var warningsMap; if (true) { warningsMap = { valueOnChange: {}, valueDefaultValue: {}, controlledToUncontrolled: {}, uncontrolledToControlled: {}, }; } /** Reset controlled usage warnings for testing purposes. */ function resetControlledWarnings() { if (true) { warningsMap.valueOnChange = {}; warningsMap.valueDefaultValue = {}; warningsMap.controlledToUncontrolled = {}; warningsMap.uncontrolledToControlled = {}; } } exports.resetControlledWarnings = resetControlledWarnings; /** * Check for and warn on the following error conditions with a form component: * - A value prop is provided (indicated it's being used as controlled) without a change handler, * and the component is not read-only * - Both the value and defaultValue props are provided * - The component is attempting to switch between controlled and uncontrolled * * The messages mimic the warnings React gives for these error conditions on input elements. * The warning will only be displayed once per component ID. */ function warnControlledUsage(params) { if (true) { var componentId = params.componentId, componentName = params.componentName, defaultValueProp = params.defaultValueProp, props = params.props, oldProps = params.oldProps, onChangeProp = params.onChangeProp, readOnlyProp = params.readOnlyProp, valueProp = params.valueProp; // This warning logic closely follows what React does for native elements. var oldIsControlled = oldProps ? (0, controlled_1.isControlled)(oldProps, valueProp) : undefined; var newIsControlled = (0, controlled_1.isControlled)(props, valueProp); if (newIsControlled) { // onChange (or readOnly) must be provided if value is provided var hasOnChange = !!props[onChangeProp]; var isReadOnly = !!(readOnlyProp && props[readOnlyProp]); if (!(hasOnChange || isReadOnly) && !warningsMap.valueOnChange[componentId]) { warningsMap.valueOnChange[componentId] = true; (0, warn_1.warn)("Warning: You provided a '".concat(String(valueProp), "' prop to a ").concat(String(componentName), " without an '").concat(String(onChangeProp), "' handler. ") + "This will render a read-only field. If the field should be mutable use '".concat(String(defaultValueProp), "'. ") + "Otherwise, set '".concat(String(onChangeProp), "'").concat(readOnlyProp ? " or '".concat(String(readOnlyProp), "'") : '', ".")); } // value and defaultValue are mutually exclusive var defaultValue = props[defaultValueProp]; if (defaultValue !== undefined && defaultValue !== null && !warningsMap.valueDefaultValue[componentId]) { warningsMap.valueDefaultValue[componentId] = true; (0, warn_1.warn)("Warning: You provided both '".concat(String(valueProp), "' and '").concat(String(defaultValueProp), "' to a ").concat(componentName, ". ") + "Form fields must be either controlled or uncontrolled (specify either the '".concat(String(valueProp), "' prop, ") + "or the '".concat(String(defaultValueProp), "' prop, but not both). Decide between using a controlled or uncontrolled ") + "".concat(componentName, " and remove one of these props. More info: https://fb.me/react-controlled-components")); } } // Warn if switching between uncontrolled and controlled. (One difference between this implementation // and React's is that if oldIsControlled is indeterminate and newIsControlled true, we don't warn.) if (oldProps && newIsControlled !== oldIsControlled) { var oldType = oldIsControlled ? 'a controlled' : 'an uncontrolled'; var newType = oldIsControlled ? 'uncontrolled' : 'controlled'; var warnMap = oldIsControlled ? warningsMap.controlledToUncontrolled : warningsMap.uncontrolledToControlled; if (!warnMap[componentId]) { warnMap[componentId] = true; (0, warn_1.warn)("Warning: A component is changing ".concat(oldType, " ").concat(componentName, " to be ").concat(newType, ". ") + "".concat(componentName, "s should not switch from controlled to uncontrolled (or vice versa). ") + "Decide between using controlled or uncontrolled for the lifetime of the component. " + "More info: https://fb.me/react-controlled-components"); } } } } exports.warnControlledUsage = warnControlledUsage; //# sourceMappingURL=warnControlledUsage.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnDeprecations.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnDeprecations = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when a deprecated props are being used. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param deprecationMap - The map of deprecations, where key is the prop name and the value is * either null or a replacement prop name. */ function warnDeprecations(componentName, props, deprecationMap) { if (true) { for (var propName in deprecationMap) { if (props && propName in props) { var deprecationMessage = "".concat(componentName, " property '").concat(propName, "' was used but has been deprecated."); var replacementPropName = deprecationMap[propName]; if (replacementPropName) { deprecationMessage += " Use '".concat(replacementPropName, "' instead."); } (0, warn_1.warn)(deprecationMessage); } } } } exports.warnDeprecations = warnDeprecations; //# sourceMappingURL=warnDeprecations.js.map /***/ }), /***/ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/utilities/lib-commonjs/warn/warnMutuallyExclusive.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.warnMutuallyExclusive = void 0; var warn_1 = __webpack_require__(/*! ./warn */ "./node_modules/@fluentui/utilities/lib-commonjs/warn/warn.js"); /** * Warns when two props which are mutually exclusive are both being used. * * @public * @param componentName - The name of the component being used. * @param props - The props passed into the component. * @param exclusiveMap - A map where the key is a parameter, and the value is the other parameter. */ function warnMutuallyExclusive(componentName, props, exclusiveMap) { if (true) { for (var propName in exclusiveMap) { if (props && props[propName] !== undefined) { var propInExclusiveMapValue = exclusiveMap[propName]; if (propInExclusiveMapValue && props[propInExclusiveMapValue] !== undefined) { (0, warn_1.warn)("".concat(componentName, " property '").concat(propName, "' is mutually exclusive with '").concat(exclusiveMap[propName], "'. ") + "Use one or the other."); } } } } } exports.warnMutuallyExclusive = warnMutuallyExclusive; //# sourceMappingURL=warnMutuallyExclusive.js.map /***/ }), /***/ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js": /*!*********************************************************************!*\ !*** ./node_modules/@microsoft/load-themed-styles/lib-es6/index.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ clearStyles: function() { return /* binding */ clearStyles; }, /* harmony export */ configureLoadStyles: function() { return /* binding */ configureLoadStyles; }, /* harmony export */ configureRunMode: function() { return /* binding */ configureRunMode; }, /* harmony export */ detokenize: function() { return /* binding */ detokenize; }, /* harmony export */ flush: function() { return /* binding */ flush; }, /* harmony export */ loadStyles: function() { return /* binding */ loadStyles; }, /* harmony export */ loadTheme: function() { return /* binding */ loadTheme; }, /* harmony export */ splitStyles: function() { return /* binding */ splitStyles; } /* harmony export */ }); // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; // Store the theming state in __themeState__ global scope for reuse in the case of duplicate // load-themed-styles hosted on the page. var _root = typeof window === 'undefined' ? __webpack_require__.g : window; // eslint-disable-line @typescript-eslint/no-explicit-any // Nonce string to inject into script tag if one provided. This is used in CSP (Content Security Policy). var _styleNonce = _root && _root.CSPSettings && _root.CSPSettings.nonce; var _themeState = initializeThemeState(); /** * Matches theming tokens. For example, "[theme: themeSlotName, default: #FFF]" (including the quotes). */ var _themeTokenRegex = /[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g; var now = function () { return typeof performance !== 'undefined' && !!performance.now ? performance.now() : Date.now(); }; function measure(func) { var start = now(); func(); var end = now(); _themeState.perf.duration += end - start; } /** * initialize global state object */ function initializeThemeState() { var state = _root.__themeState__ || { theme: undefined, lastStyleElement: undefined, registeredStyles: [] }; if (!state.runState) { state = __assign(__assign({}, state), { perf: { count: 0, duration: 0 }, runState: { flushTimer: 0, mode: 0 /* Mode.sync */, buffer: [] } }); } if (!state.registeredThemableStyles) { state = __assign(__assign({}, state), { registeredThemableStyles: [] }); } _root.__themeState__ = state; return state; } /** * Loads a set of style text. If it is registered too early, we will register it when the window.load * event is fired. * @param {string | ThemableArray} styles Themable style text to register. * @param {boolean} loadAsync When true, always load styles in async mode, irrespective of current sync mode. */ function loadStyles(styles, loadAsync) { if (loadAsync === void 0) { loadAsync = false; } measure(function () { var styleParts = Array.isArray(styles) ? styles : splitStyles(styles); var _a = _themeState.runState, mode = _a.mode, buffer = _a.buffer, flushTimer = _a.flushTimer; if (loadAsync || mode === 1 /* Mode.async */) { buffer.push(styleParts); if (!flushTimer) { _themeState.runState.flushTimer = asyncLoadStyles(); } } else { applyThemableStyles(styleParts); } }); } /** * Allows for customizable loadStyles logic. e.g. for server side rendering application * @param {(processedStyles: string, rawStyles?: string | ThemableArray) => void} * a loadStyles callback that gets called when styles are loaded or reloaded */ function configureLoadStyles(loadStylesFn) { _themeState.loadStyles = loadStylesFn; } /** * Configure run mode of load-themable-styles * @param mode load-themable-styles run mode, async or sync */ function configureRunMode(mode) { _themeState.runState.mode = mode; } /** * external code can call flush to synchronously force processing of currently buffered styles */ function flush() { measure(function () { var styleArrays = _themeState.runState.buffer.slice(); _themeState.runState.buffer = []; var mergedStyleArray = [].concat.apply([], styleArrays); if (mergedStyleArray.length > 0) { applyThemableStyles(mergedStyleArray); } }); } /** * register async loadStyles */ function asyncLoadStyles() { return setTimeout(function () { _themeState.runState.flushTimer = 0; flush(); }, 0); } /** * Loads a set of style text. If it is registered too early, we will register it when the window.load event * is fired. * @param {string} styleText Style to register. * @param {IStyleRecord} styleRecord Existing style record to re-apply. */ function applyThemableStyles(stylesArray, styleRecord) { if (_themeState.loadStyles) { _themeState.loadStyles(resolveThemableArray(stylesArray).styleString, stylesArray); } else { registerStyles(stylesArray); } } /** * Registers a set theme tokens to find and replace. If styles were already registered, they will be * replaced. * @param {theme} theme JSON object of theme tokens to values. */ function loadTheme(theme) { _themeState.theme = theme; // reload styles. reloadStyles(); } /** * Clear already registered style elements and style records in theme_State object * @param option - specify which group of registered styles should be cleared. * Default to be both themable and non-themable styles will be cleared */ function clearStyles(option) { if (option === void 0) { option = 3 /* ClearStyleOptions.all */; } if (option === 3 /* ClearStyleOptions.all */ || option === 2 /* ClearStyleOptions.onlyNonThemable */) { clearStylesInternal(_themeState.registeredStyles); _themeState.registeredStyles = []; } if (option === 3 /* ClearStyleOptions.all */ || option === 1 /* ClearStyleOptions.onlyThemable */) { clearStylesInternal(_themeState.registeredThemableStyles); _themeState.registeredThemableStyles = []; } } function clearStylesInternal(records) { records.forEach(function (styleRecord) { var styleElement = styleRecord && styleRecord.styleElement; if (styleElement && styleElement.parentElement) { styleElement.parentElement.removeChild(styleElement); } }); } /** * Reloads styles. */ function reloadStyles() { if (_themeState.theme) { var themableStyles = []; for (var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++) { var styleRecord = _a[_i]; themableStyles.push(styleRecord.themableStyle); } if (themableStyles.length > 0) { clearStyles(1 /* ClearStyleOptions.onlyThemable */); applyThemableStyles([].concat.apply([], themableStyles)); } } } /** * Find theme tokens and replaces them with provided theme values. * @param {string} styles Tokenized styles to fix. */ function detokenize(styles) { if (styles) { styles = resolveThemableArray(splitStyles(styles)).styleString; } return styles; } /** * Resolves ThemingInstruction objects in an array and joins the result into a string. * @param {ThemableArray} splitStyleArray ThemableArray to resolve and join. */ function resolveThemableArray(splitStyleArray) { var theme = _themeState.theme; var themable = false; // Resolve the array of theming instructions to an array of strings. // Then join the array to produce the final CSS string. var resolvedArray = (splitStyleArray || []).map(function (currentValue) { var themeSlot = currentValue.theme; if (themeSlot) { themable = true; // A theming annotation. Resolve it. var themedValue = theme ? theme[themeSlot] : undefined; var defaultValue = currentValue.defaultValue || 'inherit'; // Warn to console if we hit an unthemed value even when themes are provided, but only if "DEBUG" is true. // Allow the themedValue to be undefined to explicitly request the default value. if (theme && !themedValue && console && !(themeSlot in theme) && typeof DEBUG !== 'undefined' && DEBUG) { console.warn("Theming value not provided for \"".concat(themeSlot, "\". Falling back to \"").concat(defaultValue, "\".")); } return themedValue || defaultValue; } else { // A non-themable string. Preserve it. return currentValue.rawString; } }); return { styleString: resolvedArray.join(''), themable: themable }; } /** * Split tokenized CSS into an array of strings and theme specification objects * @param {string} styles Tokenized styles to split. */ function splitStyles(styles) { var result = []; if (styles) { var pos = 0; // Current position in styles. var tokenMatch = void 0; while ((tokenMatch = _themeTokenRegex.exec(styles))) { var matchIndex = tokenMatch.index; if (matchIndex > pos) { result.push({ rawString: styles.substring(pos, matchIndex) }); } result.push({ theme: tokenMatch[1], defaultValue: tokenMatch[2] // May be undefined }); // index of the first character after the current match pos = _themeTokenRegex.lastIndex; } // Push the rest of the string after the last match. result.push({ rawString: styles.substring(pos) }); } return result; } /** * Registers a set of style text. If it is registered too early, we will register it when the * window.load event is fired. * @param {ThemableArray} styleArray Array of IThemingInstruction objects to register. * @param {IStyleRecord} styleRecord May specify a style Element to update. */ function registerStyles(styleArray) { if (typeof document === 'undefined') { return; } var head = document.getElementsByTagName('head')[0]; var styleElement = document.createElement('style'); var _a = resolveThemableArray(styleArray), styleString = _a.styleString, themable = _a.themable; styleElement.setAttribute('data-load-themed-styles', 'true'); if (_styleNonce) { styleElement.setAttribute('nonce', _styleNonce); } styleElement.appendChild(document.createTextNode(styleString)); _themeState.perf.count++; head.appendChild(styleElement); var ev = document.createEvent('HTMLEvents'); ev.initEvent('styleinsert', true /* bubbleEvent */, false /* cancelable */); ev.args = { newStyle: styleElement }; document.dispatchEvent(ev); var record = { styleElement: styleElement, themableStyle: styleArray }; if (themable) { _themeState.registeredThemableStyles.push(record); } else { _themeState.registeredStyles.push(record); } } //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/focusManager.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/focusManager.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); class FocusManager extends subscribable.Subscribable { constructor() { super(); this.setup = onFocus => { // addEventListener does not exist in React Native, but window does // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (!utils.isServer && window.addEventListener) { const listener = () => onFocus(); // Listen to visibillitychange and focus window.addEventListener('visibilitychange', listener, false); window.addEventListener('focus', listener, false); return () => { // Be sure to unsubscribe if a new handler is set window.removeEventListener('visibilitychange', listener); window.removeEventListener('focus', listener); }; } return; }; } onSubscribe() { if (!this.cleanup) { this.setEventListener(this.setup); } } onUnsubscribe() { if (!this.hasListeners()) { var _this$cleanup; (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this); this.cleanup = undefined; } } setEventListener(setup) { var _this$cleanup2; this.setup = setup; (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this); this.cleanup = setup(focused => { if (typeof focused === 'boolean') { this.setFocused(focused); } else { this.onFocus(); } }); } setFocused(focused) { const changed = this.focused !== focused; if (changed) { this.focused = focused; this.onFocus(); } } onFocus() { this.listeners.forEach(({ listener }) => { listener(); }); } isFocused() { if (typeof this.focused === 'boolean') { return this.focused; } // document global can be unavailable in react native if (typeof document === 'undefined') { return true; } return [undefined, 'visible', 'prerender'].includes(document.visibilityState); } } const focusManager = new FocusManager(); exports.FocusManager = FocusManager; exports.focusManager = focusManager; //# sourceMappingURL=focusManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/hydration.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/hydration.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // TYPES // FUNCTIONS function dehydrateMutation(mutation) { return { mutationKey: mutation.options.mutationKey, state: mutation.state }; } // Most config is not dehydrated but instead meant to configure again when // consuming the de/rehydrated data, typically with useQuery on the client. // Sometimes it might make sense to prefetch data on the server and include // in the html-payload, but not consume it on the initial render. function dehydrateQuery(query) { return { state: query.state, queryKey: query.queryKey, queryHash: query.queryHash }; } function defaultShouldDehydrateMutation(mutation) { return mutation.state.isPaused; } function defaultShouldDehydrateQuery(query) { return query.state.status === 'success'; } function dehydrate(client, options = {}) { const mutations = []; const queries = []; if (options.dehydrateMutations !== false) { const shouldDehydrateMutation = options.shouldDehydrateMutation || defaultShouldDehydrateMutation; client.getMutationCache().getAll().forEach(mutation => { if (shouldDehydrateMutation(mutation)) { mutations.push(dehydrateMutation(mutation)); } }); } if (options.dehydrateQueries !== false) { const shouldDehydrateQuery = options.shouldDehydrateQuery || defaultShouldDehydrateQuery; client.getQueryCache().getAll().forEach(query => { if (shouldDehydrateQuery(query)) { queries.push(dehydrateQuery(query)); } }); } return { mutations, queries }; } function hydrate(client, dehydratedState, options) { if (typeof dehydratedState !== 'object' || dehydratedState === null) { return; } const mutationCache = client.getMutationCache(); const queryCache = client.getQueryCache(); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const mutations = dehydratedState.mutations || []; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const queries = dehydratedState.queries || []; mutations.forEach(dehydratedMutation => { var _options$defaultOptio; mutationCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio = options.defaultOptions) == null ? void 0 : _options$defaultOptio.mutations), mutationKey: dehydratedMutation.mutationKey }, dehydratedMutation.state); }); queries.forEach(dehydratedQuery => { var _options$defaultOptio2; const query = queryCache.get(dehydratedQuery.queryHash); // Reset fetch status to idle in the dehydrated state to avoid // query being stuck in fetching state upon hydration const dehydratedQueryState = { ...dehydratedQuery.state, fetchStatus: 'idle' }; // Do not hydrate if an existing query exists with newer data if (query) { if (query.state.dataUpdatedAt < dehydratedQueryState.dataUpdatedAt) { query.setState(dehydratedQueryState); } return; } // Restore query queryCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio2 = options.defaultOptions) == null ? void 0 : _options$defaultOptio2.queries), queryKey: dehydratedQuery.queryKey, queryHash: dehydratedQuery.queryHash }, dehydratedQueryState); }); } exports.defaultShouldDehydrateMutation = defaultShouldDehydrateMutation; exports.defaultShouldDehydrateQuery = defaultShouldDehydrateQuery; exports.dehydrate = dehydrate; exports.hydrate = hydrate; //# sourceMappingURL=hydration.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/index.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/index.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); var queryCache = __webpack_require__(/*! ./queryCache.js */ "./node_modules/@tanstack/query-core/build/lib/queryCache.js"); var queryClient = __webpack_require__(/*! ./queryClient.js */ "./node_modules/@tanstack/query-core/build/lib/queryClient.js"); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var queriesObserver = __webpack_require__(/*! ./queriesObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queriesObserver.js"); var infiniteQueryObserver = __webpack_require__(/*! ./infiniteQueryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js"); var mutationCache = __webpack_require__(/*! ./mutationCache.js */ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js"); var mutationObserver = __webpack_require__(/*! ./mutationObserver.js */ "./node_modules/@tanstack/query-core/build/lib/mutationObserver.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var hydration = __webpack_require__(/*! ./hydration.js */ "./node_modules/@tanstack/query-core/build/lib/hydration.js"); var query = __webpack_require__(/*! ./query.js */ "./node_modules/@tanstack/query-core/build/lib/query.js"); exports.CancelledError = retryer.CancelledError; exports.isCancelledError = retryer.isCancelledError; exports.QueryCache = queryCache.QueryCache; exports.QueryClient = queryClient.QueryClient; exports.QueryObserver = queryObserver.QueryObserver; exports.QueriesObserver = queriesObserver.QueriesObserver; exports.InfiniteQueryObserver = infiniteQueryObserver.InfiniteQueryObserver; exports.MutationCache = mutationCache.MutationCache; exports.MutationObserver = mutationObserver.MutationObserver; exports.notifyManager = notifyManager.notifyManager; exports.focusManager = focusManager.focusManager; exports.onlineManager = onlineManager.onlineManager; exports.hashQueryKey = utils.hashQueryKey; exports.isError = utils.isError; exports.isServer = utils.isServer; exports.matchQuery = utils.matchQuery; exports.parseFilterArgs = utils.parseFilterArgs; exports.parseMutationArgs = utils.parseMutationArgs; exports.parseMutationFilterArgs = utils.parseMutationFilterArgs; exports.parseQueryArgs = utils.parseQueryArgs; exports.replaceEqualDeep = utils.replaceEqualDeep; exports.defaultShouldDehydrateMutation = hydration.defaultShouldDehydrateMutation; exports.defaultShouldDehydrateQuery = hydration.defaultShouldDehydrateQuery; exports.dehydrate = hydration.dehydrate; exports.hydrate = hydration.hydrate; exports.Query = query.Query; //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); function infiniteQueryBehavior() { return { onFetch: context => { context.fetchFn = () => { var _context$fetchOptions, _context$fetchOptions2, _context$fetchOptions3, _context$fetchOptions4, _context$state$data, _context$state$data2; const refetchPage = (_context$fetchOptions = context.fetchOptions) == null ? void 0 : (_context$fetchOptions2 = _context$fetchOptions.meta) == null ? void 0 : _context$fetchOptions2.refetchPage; const fetchMore = (_context$fetchOptions3 = context.fetchOptions) == null ? void 0 : (_context$fetchOptions4 = _context$fetchOptions3.meta) == null ? void 0 : _context$fetchOptions4.fetchMore; const pageParam = fetchMore == null ? void 0 : fetchMore.pageParam; const isFetchingNextPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'forward'; const isFetchingPreviousPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'backward'; const oldPages = ((_context$state$data = context.state.data) == null ? void 0 : _context$state$data.pages) || []; const oldPageParams = ((_context$state$data2 = context.state.data) == null ? void 0 : _context$state$data2.pageParams) || []; let newPageParams = oldPageParams; let cancelled = false; const addSignalProperty = object => { Object.defineProperty(object, 'signal', { enumerable: true, get: () => { var _context$signal; if ((_context$signal = context.signal) != null && _context$signal.aborted) { cancelled = true; } else { var _context$signal2; (_context$signal2 = context.signal) == null ? void 0 : _context$signal2.addEventListener('abort', () => { cancelled = true; }); } return context.signal; } }); }; // Get query function const queryFn = context.options.queryFn || (() => Promise.reject("Missing queryFn for queryKey '" + context.options.queryHash + "'")); const buildNewPages = (pages, param, page, previous) => { newPageParams = previous ? [param, ...newPageParams] : [...newPageParams, param]; return previous ? [page, ...pages] : [...pages, page]; }; // Create function to fetch a page const fetchPage = (pages, manual, param, previous) => { if (cancelled) { return Promise.reject('Cancelled'); } if (typeof param === 'undefined' && !manual && pages.length) { return Promise.resolve(pages); } const queryFnContext = { queryKey: context.queryKey, pageParam: param, meta: context.options.meta }; addSignalProperty(queryFnContext); const queryFnResult = queryFn(queryFnContext); const promise = Promise.resolve(queryFnResult).then(page => buildNewPages(pages, param, page, previous)); return promise; }; let promise; // Fetch first page? if (!oldPages.length) { promise = fetchPage([]); } // Fetch next page? else if (isFetchingNextPage) { const manual = typeof pageParam !== 'undefined'; const param = manual ? pageParam : getNextPageParam(context.options, oldPages); promise = fetchPage(oldPages, manual, param); } // Fetch previous page? else if (isFetchingPreviousPage) { const manual = typeof pageParam !== 'undefined'; const param = manual ? pageParam : getPreviousPageParam(context.options, oldPages); promise = fetchPage(oldPages, manual, param, true); } // Refetch pages else { newPageParams = []; const manual = typeof context.options.getNextPageParam === 'undefined'; const shouldFetchFirstPage = refetchPage && oldPages[0] ? refetchPage(oldPages[0], 0, oldPages) : true; // Fetch first page promise = shouldFetchFirstPage ? fetchPage([], manual, oldPageParams[0]) : Promise.resolve(buildNewPages([], oldPageParams[0], oldPages[0])); // Fetch remaining pages for (let i = 1; i < oldPages.length; i++) { promise = promise.then(pages => { const shouldFetchNextPage = refetchPage && oldPages[i] ? refetchPage(oldPages[i], i, oldPages) : true; if (shouldFetchNextPage) { const param = manual ? oldPageParams[i] : getNextPageParam(context.options, pages); return fetchPage(pages, manual, param); } return Promise.resolve(buildNewPages(pages, oldPageParams[i], oldPages[i])); }); } } const finalPromise = promise.then(pages => ({ pages, pageParams: newPageParams })); return finalPromise; }; } }; } function getNextPageParam(options, pages) { return options.getNextPageParam == null ? void 0 : options.getNextPageParam(pages[pages.length - 1], pages); } function getPreviousPageParam(options, pages) { return options.getPreviousPageParam == null ? void 0 : options.getPreviousPageParam(pages[0], pages); } /** * Checks if there is a next page. * Returns `undefined` if it cannot be determined. */ function hasNextPage(options, pages) { if (options.getNextPageParam && Array.isArray(pages)) { const nextPageParam = getNextPageParam(options, pages); return typeof nextPageParam !== 'undefined' && nextPageParam !== null && nextPageParam !== false; } return; } /** * Checks if there is a previous page. * Returns `undefined` if it cannot be determined. */ function hasPreviousPage(options, pages) { if (options.getPreviousPageParam && Array.isArray(pages)) { const previousPageParam = getPreviousPageParam(options, pages); return typeof previousPageParam !== 'undefined' && previousPageParam !== null && previousPageParam !== false; } return; } exports.getNextPageParam = getNextPageParam; exports.getPreviousPageParam = getPreviousPageParam; exports.hasNextPage = hasNextPage; exports.hasPreviousPage = hasPreviousPage; exports.infiniteQueryBehavior = infiniteQueryBehavior; //# sourceMappingURL=infiniteQueryBehavior.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js"); class InfiniteQueryObserver extends queryObserver.QueryObserver { // Type override // Type override // Type override // eslint-disable-next-line @typescript-eslint/no-useless-constructor constructor(client, options) { super(client, options); } bindMethods() { super.bindMethods(); this.fetchNextPage = this.fetchNextPage.bind(this); this.fetchPreviousPage = this.fetchPreviousPage.bind(this); } setOptions(options, notifyOptions) { super.setOptions({ ...options, behavior: infiniteQueryBehavior.infiniteQueryBehavior() }, notifyOptions); } getOptimisticResult(options) { options.behavior = infiniteQueryBehavior.infiniteQueryBehavior(); return super.getOptimisticResult(options); } fetchNextPage({ pageParam, ...options } = {}) { return this.fetch({ ...options, meta: { fetchMore: { direction: 'forward', pageParam } } }); } fetchPreviousPage({ pageParam, ...options } = {}) { return this.fetch({ ...options, meta: { fetchMore: { direction: 'backward', pageParam } } }); } createResult(query, options) { var _state$fetchMeta, _state$fetchMeta$fetc, _state$fetchMeta2, _state$fetchMeta2$fet, _state$data, _state$data2; const { state } = query; const result = super.createResult(query, options); const { isFetching, isRefetching } = result; const isFetchingNextPage = isFetching && ((_state$fetchMeta = state.fetchMeta) == null ? void 0 : (_state$fetchMeta$fetc = _state$fetchMeta.fetchMore) == null ? void 0 : _state$fetchMeta$fetc.direction) === 'forward'; const isFetchingPreviousPage = isFetching && ((_state$fetchMeta2 = state.fetchMeta) == null ? void 0 : (_state$fetchMeta2$fet = _state$fetchMeta2.fetchMore) == null ? void 0 : _state$fetchMeta2$fet.direction) === 'backward'; return { ...result, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage: infiniteQueryBehavior.hasNextPage(options, (_state$data = state.data) == null ? void 0 : _state$data.pages), hasPreviousPage: infiniteQueryBehavior.hasPreviousPage(options, (_state$data2 = state.data) == null ? void 0 : _state$data2.pages), isFetchingNextPage, isFetchingPreviousPage, isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage }; } } exports.InfiniteQueryObserver = InfiniteQueryObserver; //# sourceMappingURL=infiniteQueryObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/logger.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/logger.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); const defaultLogger = console; exports.defaultLogger = defaultLogger; //# sourceMappingURL=logger.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutation.js": /*!*****************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutation.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var removable = __webpack_require__(/*! ./removable.js */ "./node_modules/@tanstack/query-core/build/lib/removable.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); // CLASS class Mutation extends removable.Removable { constructor(config) { super(); this.defaultOptions = config.defaultOptions; this.mutationId = config.mutationId; this.mutationCache = config.mutationCache; this.logger = config.logger || logger.defaultLogger; this.observers = []; this.state = config.state || getDefaultState(); this.setOptions(config.options); this.scheduleGc(); } setOptions(options) { this.options = { ...this.defaultOptions, ...options }; this.updateCacheTime(this.options.cacheTime); } get meta() { return this.options.meta; } setState(state) { this.dispatch({ type: 'setState', state }); } addObserver(observer) { if (!this.observers.includes(observer)) { this.observers.push(observer); // Stop the mutation from being garbage collected this.clearGcTimeout(); this.mutationCache.notify({ type: 'observerAdded', mutation: this, observer }); } } removeObserver(observer) { this.observers = this.observers.filter(x => x !== observer); this.scheduleGc(); this.mutationCache.notify({ type: 'observerRemoved', mutation: this, observer }); } optionalRemove() { if (!this.observers.length) { if (this.state.status === 'loading') { this.scheduleGc(); } else { this.mutationCache.remove(this); } } } continue() { var _this$retryer$continu, _this$retryer; return (_this$retryer$continu = (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.continue()) != null ? _this$retryer$continu : this.execute(); } async execute() { const executeMutation = () => { var _this$options$retry; this.retryer = retryer.createRetryer({ fn: () => { if (!this.options.mutationFn) { return Promise.reject('No mutationFn found'); } return this.options.mutationFn(this.state.variables); }, onFail: (failureCount, error) => { this.dispatch({ type: 'failed', failureCount, error }); }, onPause: () => { this.dispatch({ type: 'pause' }); }, onContinue: () => { this.dispatch({ type: 'continue' }); }, retry: (_this$options$retry = this.options.retry) != null ? _this$options$retry : 0, retryDelay: this.options.retryDelay, networkMode: this.options.networkMode }); return this.retryer.promise; }; const restored = this.state.status === 'loading'; try { var _this$mutationCache$c3, _this$mutationCache$c4, _this$options$onSucce, _this$options2, _this$mutationCache$c5, _this$mutationCache$c6, _this$options$onSettl, _this$options3; if (!restored) { var _this$mutationCache$c, _this$mutationCache$c2, _this$options$onMutat, _this$options; this.dispatch({ type: 'loading', variables: this.options.variables }); // Notify cache callback await ((_this$mutationCache$c = (_this$mutationCache$c2 = this.mutationCache.config).onMutate) == null ? void 0 : _this$mutationCache$c.call(_this$mutationCache$c2, this.state.variables, this)); const context = await ((_this$options$onMutat = (_this$options = this.options).onMutate) == null ? void 0 : _this$options$onMutat.call(_this$options, this.state.variables)); if (context !== this.state.context) { this.dispatch({ type: 'loading', context, variables: this.state.variables }); } } const data = await executeMutation(); // Notify cache callback await ((_this$mutationCache$c3 = (_this$mutationCache$c4 = this.mutationCache.config).onSuccess) == null ? void 0 : _this$mutationCache$c3.call(_this$mutationCache$c4, data, this.state.variables, this.state.context, this)); await ((_this$options$onSucce = (_this$options2 = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options2, data, this.state.variables, this.state.context)); // Notify cache callback await ((_this$mutationCache$c5 = (_this$mutationCache$c6 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c5.call(_this$mutationCache$c6, data, null, this.state.variables, this.state.context, this)); await ((_this$options$onSettl = (_this$options3 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options3, data, null, this.state.variables, this.state.context)); this.dispatch({ type: 'success', data }); return data; } catch (error) { try { var _this$mutationCache$c7, _this$mutationCache$c8, _this$options$onError, _this$options4, _this$mutationCache$c9, _this$mutationCache$c10, _this$options$onSettl2, _this$options5; // Notify cache callback await ((_this$mutationCache$c7 = (_this$mutationCache$c8 = this.mutationCache.config).onError) == null ? void 0 : _this$mutationCache$c7.call(_this$mutationCache$c8, error, this.state.variables, this.state.context, this)); if (true) { this.logger.error(error); } await ((_this$options$onError = (_this$options4 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options4, error, this.state.variables, this.state.context)); // Notify cache callback await ((_this$mutationCache$c9 = (_this$mutationCache$c10 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c9.call(_this$mutationCache$c10, undefined, error, this.state.variables, this.state.context, this)); await ((_this$options$onSettl2 = (_this$options5 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options5, undefined, error, this.state.variables, this.state.context)); throw error; } finally { this.dispatch({ type: 'error', error: error }); } } } dispatch(action) { const reducer = state => { switch (action.type) { case 'failed': return { ...state, failureCount: action.failureCount, failureReason: action.error }; case 'pause': return { ...state, isPaused: true }; case 'continue': return { ...state, isPaused: false }; case 'loading': return { ...state, context: action.context, data: undefined, failureCount: 0, failureReason: null, error: null, isPaused: !retryer.canFetch(this.options.networkMode), status: 'loading', variables: action.variables }; case 'success': return { ...state, data: action.data, failureCount: 0, failureReason: null, error: null, status: 'success', isPaused: false }; case 'error': return { ...state, data: undefined, error: action.error, failureCount: state.failureCount + 1, failureReason: action.error, isPaused: false, status: 'error' }; case 'setState': return { ...state, ...action.state }; } }; this.state = reducer(this.state); notifyManager.notifyManager.batch(() => { this.observers.forEach(observer => { observer.onMutationUpdate(action); }); this.mutationCache.notify({ mutation: this, type: 'updated', action }); }); } } function getDefaultState() { return { context: undefined, data: undefined, error: null, failureCount: 0, failureReason: null, isPaused: false, status: 'idle', variables: undefined }; } exports.Mutation = Mutation; exports.getDefaultState = getDefaultState; //# sourceMappingURL=mutation.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutationCache.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var mutation = __webpack_require__(/*! ./mutation.js */ "./node_modules/@tanstack/query-core/build/lib/mutation.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); // CLASS class MutationCache extends subscribable.Subscribable { constructor(config) { super(); this.config = config || {}; this.mutations = []; this.mutationId = 0; } build(client, options, state) { const mutation$1 = new mutation.Mutation({ mutationCache: this, logger: client.getLogger(), mutationId: ++this.mutationId, options: client.defaultMutationOptions(options), state, defaultOptions: options.mutationKey ? client.getMutationDefaults(options.mutationKey) : undefined }); this.add(mutation$1); return mutation$1; } add(mutation) { this.mutations.push(mutation); this.notify({ type: 'added', mutation }); } remove(mutation) { this.mutations = this.mutations.filter(x => x !== mutation); this.notify({ type: 'removed', mutation }); } clear() { notifyManager.notifyManager.batch(() => { this.mutations.forEach(mutation => { this.remove(mutation); }); }); } getAll() { return this.mutations; } find(filters) { if (typeof filters.exact === 'undefined') { filters.exact = true; } return this.mutations.find(mutation => utils.matchMutation(filters, mutation)); } findAll(filters) { return this.mutations.filter(mutation => utils.matchMutation(filters, mutation)); } notify(event) { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(event); }); }); } resumePausedMutations() { var _this$resuming; this.resuming = ((_this$resuming = this.resuming) != null ? _this$resuming : Promise.resolve()).then(() => { const pausedMutations = this.mutations.filter(x => x.state.isPaused); return notifyManager.notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(utils.noop)), Promise.resolve())); }).then(() => { this.resuming = undefined; }); return this.resuming; } } exports.MutationCache = MutationCache; //# sourceMappingURL=mutationCache.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/mutationObserver.js": /*!*************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/mutationObserver.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var mutation = __webpack_require__(/*! ./mutation.js */ "./node_modules/@tanstack/query-core/build/lib/mutation.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); // CLASS class MutationObserver extends subscribable.Subscribable { constructor(client, options) { super(); this.client = client; this.setOptions(options); this.bindMethods(); this.updateResult(); } bindMethods() { this.mutate = this.mutate.bind(this); this.reset = this.reset.bind(this); } setOptions(options) { var _this$currentMutation; const prevOptions = this.options; this.options = this.client.defaultMutationOptions(options); if (!utils.shallowEqualObjects(prevOptions, this.options)) { this.client.getMutationCache().notify({ type: 'observerOptionsUpdated', mutation: this.currentMutation, observer: this }); } (_this$currentMutation = this.currentMutation) == null ? void 0 : _this$currentMutation.setOptions(this.options); } onUnsubscribe() { if (!this.hasListeners()) { var _this$currentMutation2; (_this$currentMutation2 = this.currentMutation) == null ? void 0 : _this$currentMutation2.removeObserver(this); } } onMutationUpdate(action) { this.updateResult(); // Determine which callbacks to trigger const notifyOptions = { listeners: true }; if (action.type === 'success') { notifyOptions.onSuccess = true; } else if (action.type === 'error') { notifyOptions.onError = true; } this.notify(notifyOptions); } getCurrentResult() { return this.currentResult; } reset() { this.currentMutation = undefined; this.updateResult(); this.notify({ listeners: true }); } mutate(variables, options) { this.mutateOptions = options; if (this.currentMutation) { this.currentMutation.removeObserver(this); } this.currentMutation = this.client.getMutationCache().build(this.client, { ...this.options, variables: typeof variables !== 'undefined' ? variables : this.options.variables }); this.currentMutation.addObserver(this); return this.currentMutation.execute(); } updateResult() { const state = this.currentMutation ? this.currentMutation.state : mutation.getDefaultState(); const result = { ...state, isLoading: state.status === 'loading', isSuccess: state.status === 'success', isError: state.status === 'error', isIdle: state.status === 'idle', mutate: this.mutate, reset: this.reset }; this.currentResult = result; } notify(options) { notifyManager.notifyManager.batch(() => { // First trigger the mutate callbacks if (this.mutateOptions && this.hasListeners()) { if (options.onSuccess) { var _this$mutateOptions$o, _this$mutateOptions, _this$mutateOptions$o2, _this$mutateOptions2; (_this$mutateOptions$o = (_this$mutateOptions = this.mutateOptions).onSuccess) == null ? void 0 : _this$mutateOptions$o.call(_this$mutateOptions, this.currentResult.data, this.currentResult.variables, this.currentResult.context); (_this$mutateOptions$o2 = (_this$mutateOptions2 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o2.call(_this$mutateOptions2, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context); } else if (options.onError) { var _this$mutateOptions$o3, _this$mutateOptions3, _this$mutateOptions$o4, _this$mutateOptions4; (_this$mutateOptions$o3 = (_this$mutateOptions3 = this.mutateOptions).onError) == null ? void 0 : _this$mutateOptions$o3.call(_this$mutateOptions3, this.currentResult.error, this.currentResult.variables, this.currentResult.context); (_this$mutateOptions$o4 = (_this$mutateOptions4 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o4.call(_this$mutateOptions4, undefined, this.currentResult.error, this.currentResult.variables, this.currentResult.context); } } // Then trigger the listeners if (options.listeners) { this.listeners.forEach(({ listener }) => { listener(this.currentResult); }); } }); } } exports.MutationObserver = MutationObserver; //# sourceMappingURL=mutationObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/notifyManager.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); function createNotifyManager() { let queue = []; let transactions = 0; let notifyFn = callback => { callback(); }; let batchNotifyFn = callback => { callback(); }; const batch = callback => { let result; transactions++; try { result = callback(); } finally { transactions--; if (!transactions) { flush(); } } return result; }; const schedule = callback => { if (transactions) { queue.push(callback); } else { utils.scheduleMicrotask(() => { notifyFn(callback); }); } }; /** * All calls to the wrapped function will be batched. */ const batchCalls = callback => { return (...args) => { schedule(() => { callback(...args); }); }; }; const flush = () => { const originalQueue = queue; queue = []; if (originalQueue.length) { utils.scheduleMicrotask(() => { batchNotifyFn(() => { originalQueue.forEach(callback => { notifyFn(callback); }); }); }); } }; /** * Use this method to set a custom notify function. * This can be used to for example wrap notifications with `React.act` while running tests. */ const setNotifyFunction = fn => { notifyFn = fn; }; /** * Use this method to set a custom function to batch notifications together into a single tick. * By default React Query will use the batch function provided by ReactDOM or React Native. */ const setBatchNotifyFunction = fn => { batchNotifyFn = fn; }; return { batch, batchCalls, schedule, setNotifyFunction, setBatchNotifyFunction }; } // SINGLETON const notifyManager = createNotifyManager(); exports.createNotifyManager = createNotifyManager; exports.notifyManager = notifyManager; //# sourceMappingURL=notifyManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/onlineManager.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); const onlineEvents = ['online', 'offline']; class OnlineManager extends subscribable.Subscribable { constructor() { super(); this.setup = onOnline => { // addEventListener does not exist in React Native, but window does // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (!utils.isServer && window.addEventListener) { const listener = () => onOnline(); // Listen to online onlineEvents.forEach(event => { window.addEventListener(event, listener, false); }); return () => { // Be sure to unsubscribe if a new handler is set onlineEvents.forEach(event => { window.removeEventListener(event, listener); }); }; } return; }; } onSubscribe() { if (!this.cleanup) { this.setEventListener(this.setup); } } onUnsubscribe() { if (!this.hasListeners()) { var _this$cleanup; (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this); this.cleanup = undefined; } } setEventListener(setup) { var _this$cleanup2; this.setup = setup; (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this); this.cleanup = setup(online => { if (typeof online === 'boolean') { this.setOnline(online); } else { this.onOnline(); } }); } setOnline(online) { const changed = this.online !== online; if (changed) { this.online = online; this.onOnline(); } } onOnline() { this.listeners.forEach(({ listener }) => { listener(); }); } isOnline() { if (typeof this.online === 'boolean') { return this.online; } if (typeof navigator === 'undefined' || typeof navigator.onLine === 'undefined') { return true; } return navigator.onLine; } } const onlineManager = new OnlineManager(); exports.OnlineManager = OnlineManager; exports.onlineManager = onlineManager; //# sourceMappingURL=onlineManager.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queriesObserver.js": /*!************************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queriesObserver.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var queryObserver = __webpack_require__(/*! ./queryObserver.js */ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); class QueriesObserver extends subscribable.Subscribable { constructor(client, queries) { super(); this.client = client; this.queries = []; this.result = []; this.observers = []; this.observersMap = {}; if (queries) { this.setQueries(queries); } } onSubscribe() { if (this.listeners.size === 1) { this.observers.forEach(observer => { observer.subscribe(result => { this.onUpdate(observer, result); }); }); } } onUnsubscribe() { if (!this.listeners.size) { this.destroy(); } } destroy() { this.listeners = new Set(); this.observers.forEach(observer => { observer.destroy(); }); } setQueries(queries, notifyOptions) { this.queries = queries; notifyManager.notifyManager.batch(() => { const prevObservers = this.observers; const newObserverMatches = this.findMatchingObservers(this.queries); // set options for the new observers to notify of changes newObserverMatches.forEach(match => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions)); const newObservers = newObserverMatches.map(match => match.observer); const newObserversMap = Object.fromEntries(newObservers.map(observer => [observer.options.queryHash, observer])); const newResult = newObservers.map(observer => observer.getCurrentResult()); const hasIndexChange = newObservers.some((observer, index) => observer !== prevObservers[index]); if (prevObservers.length === newObservers.length && !hasIndexChange) { return; } this.observers = newObservers; this.observersMap = newObserversMap; this.result = newResult; if (!this.hasListeners()) { return; } utils.difference(prevObservers, newObservers).forEach(observer => { observer.destroy(); }); utils.difference(newObservers, prevObservers).forEach(observer => { observer.subscribe(result => { this.onUpdate(observer, result); }); }); this.notify(); }); } getCurrentResult() { return this.result; } getQueries() { return this.observers.map(observer => observer.getCurrentQuery()); } getObservers() { return this.observers; } getOptimisticResult(queries) { return this.findMatchingObservers(queries).map(match => match.observer.getOptimisticResult(match.defaultedQueryOptions)); } findMatchingObservers(queries) { const prevObservers = this.observers; const prevObserversMap = new Map(prevObservers.map(observer => [observer.options.queryHash, observer])); const defaultedQueryOptions = queries.map(options => this.client.defaultQueryOptions(options)); const matchingObservers = defaultedQueryOptions.flatMap(defaultedOptions => { const match = prevObserversMap.get(defaultedOptions.queryHash); if (match != null) { return [{ defaultedQueryOptions: defaultedOptions, observer: match }]; } return []; }); const matchedQueryHashes = new Set(matchingObservers.map(match => match.defaultedQueryOptions.queryHash)); const unmatchedQueries = defaultedQueryOptions.filter(defaultedOptions => !matchedQueryHashes.has(defaultedOptions.queryHash)); const matchingObserversSet = new Set(matchingObservers.map(match => match.observer)); const unmatchedObservers = prevObservers.filter(prevObserver => !matchingObserversSet.has(prevObserver)); const getObserver = options => { const defaultedOptions = this.client.defaultQueryOptions(options); const currentObserver = this.observersMap[defaultedOptions.queryHash]; return currentObserver != null ? currentObserver : new queryObserver.QueryObserver(this.client, defaultedOptions); }; const newOrReusedObservers = unmatchedQueries.map((options, index) => { if (options.keepPreviousData) { // return previous data from one of the observers that no longer match const previouslyUsedObserver = unmatchedObservers[index]; if (previouslyUsedObserver !== undefined) { return { defaultedQueryOptions: options, observer: previouslyUsedObserver }; } } return { defaultedQueryOptions: options, observer: getObserver(options) }; }); const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions); return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries); } onUpdate(observer, result) { const index = this.observers.indexOf(observer); if (index !== -1) { this.result = utils.replaceAt(this.result, index, result); this.notify(); } } notify() { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(this.result); }); }); } } exports.QueriesObserver = QueriesObserver; //# sourceMappingURL=queriesObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/query.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/query.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); var removable = __webpack_require__(/*! ./removable.js */ "./node_modules/@tanstack/query-core/build/lib/removable.js"); // CLASS class Query extends removable.Removable { constructor(config) { super(); this.abortSignalConsumed = false; this.defaultOptions = config.defaultOptions; this.setOptions(config.options); this.observers = []; this.cache = config.cache; this.logger = config.logger || logger.defaultLogger; this.queryKey = config.queryKey; this.queryHash = config.queryHash; this.initialState = config.state || getDefaultState(this.options); this.state = this.initialState; this.scheduleGc(); } get meta() { return this.options.meta; } setOptions(options) { this.options = { ...this.defaultOptions, ...options }; this.updateCacheTime(this.options.cacheTime); } optionalRemove() { if (!this.observers.length && this.state.fetchStatus === 'idle') { this.cache.remove(this); } } setData(newData, options) { const data = utils.replaceData(this.state.data, newData, this.options); // Set data and mark it as cached this.dispatch({ data, type: 'success', dataUpdatedAt: options == null ? void 0 : options.updatedAt, manual: options == null ? void 0 : options.manual }); return data; } setState(state, setStateOptions) { this.dispatch({ type: 'setState', state, setStateOptions }); } cancel(options) { var _this$retryer; const promise = this.promise; (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options); return promise ? promise.then(utils.noop).catch(utils.noop) : Promise.resolve(); } destroy() { super.destroy(); this.cancel({ silent: true }); } reset() { this.destroy(); this.setState(this.initialState); } isActive() { return this.observers.some(observer => observer.options.enabled !== false); } isDisabled() { return this.getObserversCount() > 0 && !this.isActive(); } isStale() { return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(observer => observer.getCurrentResult().isStale); } isStaleByTime(staleTime = 0) { return this.state.isInvalidated || !this.state.dataUpdatedAt || !utils.timeUntilStale(this.state.dataUpdatedAt, staleTime); } onFocus() { var _this$retryer2; const observer = this.observers.find(x => x.shouldFetchOnWindowFocus()); if (observer) { observer.refetch({ cancelRefetch: false }); } // Continue fetch if currently paused (_this$retryer2 = this.retryer) == null ? void 0 : _this$retryer2.continue(); } onOnline() { var _this$retryer3; const observer = this.observers.find(x => x.shouldFetchOnReconnect()); if (observer) { observer.refetch({ cancelRefetch: false }); } // Continue fetch if currently paused (_this$retryer3 = this.retryer) == null ? void 0 : _this$retryer3.continue(); } addObserver(observer) { if (!this.observers.includes(observer)) { this.observers.push(observer); // Stop the query from being garbage collected this.clearGcTimeout(); this.cache.notify({ type: 'observerAdded', query: this, observer }); } } removeObserver(observer) { if (this.observers.includes(observer)) { this.observers = this.observers.filter(x => x !== observer); if (!this.observers.length) { // If the transport layer does not support cancellation // we'll let the query continue so the result can be cached if (this.retryer) { if (this.abortSignalConsumed) { this.retryer.cancel({ revert: true }); } else { this.retryer.cancelRetry(); } } this.scheduleGc(); } this.cache.notify({ type: 'observerRemoved', query: this, observer }); } } getObserversCount() { return this.observers.length; } invalidate() { if (!this.state.isInvalidated) { this.dispatch({ type: 'invalidate' }); } } fetch(options, fetchOptions) { var _this$options$behavio, _context$fetchOptions; if (this.state.fetchStatus !== 'idle') { if (this.state.dataUpdatedAt && fetchOptions != null && fetchOptions.cancelRefetch) { // Silently cancel current fetch if the user wants to cancel refetches this.cancel({ silent: true }); } else if (this.promise) { var _this$retryer4; // make sure that retries that were potentially cancelled due to unmounts can continue (_this$retryer4 = this.retryer) == null ? void 0 : _this$retryer4.continueRetry(); // Return current promise if we are already fetching return this.promise; } } // Update config if passed, otherwise the config from the last execution is used if (options) { this.setOptions(options); } // Use the options from the first observer with a query function if no function is found. // This can happen when the query is hydrated or created with setQueryData. if (!this.options.queryFn) { const observer = this.observers.find(x => x.options.queryFn); if (observer) { this.setOptions(observer.options); } } if (!Array.isArray(this.options.queryKey)) { if (true) { this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"); } } const abortController = utils.getAbortController(); // Create query function context const queryFnContext = { queryKey: this.queryKey, pageParam: undefined, meta: this.meta }; // Adds an enumerable signal property to the object that // which sets abortSignalConsumed to true when the signal // is read. const addSignalProperty = object => { Object.defineProperty(object, 'signal', { enumerable: true, get: () => { if (abortController) { this.abortSignalConsumed = true; return abortController.signal; } return undefined; } }); }; addSignalProperty(queryFnContext); // Create fetch function const fetchFn = () => { if (!this.options.queryFn) { return Promise.reject("Missing queryFn for queryKey '" + this.options.queryHash + "'"); } this.abortSignalConsumed = false; return this.options.queryFn(queryFnContext); }; // Trigger behavior hook const context = { fetchOptions, options: this.options, queryKey: this.queryKey, state: this.state, fetchFn }; addSignalProperty(context); (_this$options$behavio = this.options.behavior) == null ? void 0 : _this$options$behavio.onFetch(context); // Store state in case the current fetch needs to be reverted this.revertState = this.state; // Set to fetching state if not already in it if (this.state.fetchStatus === 'idle' || this.state.fetchMeta !== ((_context$fetchOptions = context.fetchOptions) == null ? void 0 : _context$fetchOptions.meta)) { var _context$fetchOptions2; this.dispatch({ type: 'fetch', meta: (_context$fetchOptions2 = context.fetchOptions) == null ? void 0 : _context$fetchOptions2.meta }); } const onError = error => { // Optimistically update state if needed if (!(retryer.isCancelledError(error) && error.silent)) { this.dispatch({ type: 'error', error: error }); } if (!retryer.isCancelledError(error)) { var _this$cache$config$on, _this$cache$config, _this$cache$config$on2, _this$cache$config2; // Notify cache callback (_this$cache$config$on = (_this$cache$config = this.cache.config).onError) == null ? void 0 : _this$cache$config$on.call(_this$cache$config, error, this); (_this$cache$config$on2 = (_this$cache$config2 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on2.call(_this$cache$config2, this.state.data, error, this); if (true) { this.logger.error(error); } } if (!this.isFetchingOptimistic) { // Schedule query gc after fetching this.scheduleGc(); } this.isFetchingOptimistic = false; }; // Try to fetch the data this.retryer = retryer.createRetryer({ fn: context.fetchFn, abort: abortController == null ? void 0 : abortController.abort.bind(abortController), onSuccess: data => { var _this$cache$config$on3, _this$cache$config3, _this$cache$config$on4, _this$cache$config4; if (typeof data === 'undefined') { if (true) { this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: " + this.queryHash); } onError(new Error(this.queryHash + " data is undefined")); return; } this.setData(data); // Notify cache callback (_this$cache$config$on3 = (_this$cache$config3 = this.cache.config).onSuccess) == null ? void 0 : _this$cache$config$on3.call(_this$cache$config3, data, this); (_this$cache$config$on4 = (_this$cache$config4 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on4.call(_this$cache$config4, data, this.state.error, this); if (!this.isFetchingOptimistic) { // Schedule query gc after fetching this.scheduleGc(); } this.isFetchingOptimistic = false; }, onError, onFail: (failureCount, error) => { this.dispatch({ type: 'failed', failureCount, error }); }, onPause: () => { this.dispatch({ type: 'pause' }); }, onContinue: () => { this.dispatch({ type: 'continue' }); }, retry: context.options.retry, retryDelay: context.options.retryDelay, networkMode: context.options.networkMode }); this.promise = this.retryer.promise; return this.promise; } dispatch(action) { const reducer = state => { var _action$meta, _action$dataUpdatedAt; switch (action.type) { case 'failed': return { ...state, fetchFailureCount: action.failureCount, fetchFailureReason: action.error }; case 'pause': return { ...state, fetchStatus: 'paused' }; case 'continue': return { ...state, fetchStatus: 'fetching' }; case 'fetch': return { ...state, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: (_action$meta = action.meta) != null ? _action$meta : null, fetchStatus: retryer.canFetch(this.options.networkMode) ? 'fetching' : 'paused', ...(!state.dataUpdatedAt && { error: null, status: 'loading' }) }; case 'success': return { ...state, data: action.data, dataUpdateCount: state.dataUpdateCount + 1, dataUpdatedAt: (_action$dataUpdatedAt = action.dataUpdatedAt) != null ? _action$dataUpdatedAt : Date.now(), error: null, isInvalidated: false, status: 'success', ...(!action.manual && { fetchStatus: 'idle', fetchFailureCount: 0, fetchFailureReason: null }) }; case 'error': const error = action.error; if (retryer.isCancelledError(error) && error.revert && this.revertState) { return { ...this.revertState }; } return { ...state, error: error, errorUpdateCount: state.errorUpdateCount + 1, errorUpdatedAt: Date.now(), fetchFailureCount: state.fetchFailureCount + 1, fetchFailureReason: error, fetchStatus: 'idle', status: 'error' }; case 'invalidate': return { ...state, isInvalidated: true }; case 'setState': return { ...state, ...action.state }; } }; this.state = reducer(this.state); notifyManager.notifyManager.batch(() => { this.observers.forEach(observer => { observer.onQueryUpdate(action); }); this.cache.notify({ query: this, type: 'updated', action }); }); } } function getDefaultState(options) { const data = typeof options.initialData === 'function' ? options.initialData() : options.initialData; const hasData = typeof data !== 'undefined'; const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === 'function' ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0; return { data, dataUpdateCount: 0, dataUpdatedAt: hasData ? initialDataUpdatedAt != null ? initialDataUpdatedAt : Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: false, status: hasData ? 'success' : 'loading', fetchStatus: 'idle' }; } exports.Query = Query; //# sourceMappingURL=query.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryCache.js": /*!*******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryCache.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var query = __webpack_require__(/*! ./query.js */ "./node_modules/@tanstack/query-core/build/lib/query.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); // CLASS class QueryCache extends subscribable.Subscribable { constructor(config) { super(); this.config = config || {}; this.queries = []; this.queriesMap = {}; } build(client, options, state) { var _options$queryHash; const queryKey = options.queryKey; const queryHash = (_options$queryHash = options.queryHash) != null ? _options$queryHash : utils.hashQueryKeyByOptions(queryKey, options); let query$1 = this.get(queryHash); if (!query$1) { query$1 = new query.Query({ cache: this, logger: client.getLogger(), queryKey, queryHash, options: client.defaultQueryOptions(options), state, defaultOptions: client.getQueryDefaults(queryKey) }); this.add(query$1); } return query$1; } add(query) { if (!this.queriesMap[query.queryHash]) { this.queriesMap[query.queryHash] = query; this.queries.push(query); this.notify({ type: 'added', query }); } } remove(query) { const queryInMap = this.queriesMap[query.queryHash]; if (queryInMap) { query.destroy(); this.queries = this.queries.filter(x => x !== query); if (queryInMap === query) { delete this.queriesMap[query.queryHash]; } this.notify({ type: 'removed', query }); } } clear() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { this.remove(query); }); }); } get(queryHash) { return this.queriesMap[queryHash]; } getAll() { return this.queries; } find(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); if (typeof filters.exact === 'undefined') { filters.exact = true; } return this.queries.find(query => utils.matchQuery(filters, query)); } findAll(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); return Object.keys(filters).length > 0 ? this.queries.filter(query => utils.matchQuery(filters, query)) : this.queries; } notify(event) { notifyManager.notifyManager.batch(() => { this.listeners.forEach(({ listener }) => { listener(event); }); }); } onFocus() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { query.onFocus(); }); }); } onOnline() { notifyManager.notifyManager.batch(() => { this.queries.forEach(query => { query.onOnline(); }); }); } } exports.QueryCache = QueryCache; //# sourceMappingURL=queryCache.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryClient.js": /*!********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryClient.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var queryCache = __webpack_require__(/*! ./queryCache.js */ "./node_modules/@tanstack/query-core/build/lib/queryCache.js"); var mutationCache = __webpack_require__(/*! ./mutationCache.js */ "./node_modules/@tanstack/query-core/build/lib/mutationCache.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var infiniteQueryBehavior = __webpack_require__(/*! ./infiniteQueryBehavior.js */ "./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js"); var logger = __webpack_require__(/*! ./logger */ "./node_modules/@tanstack/query-core/build/lib/logger.js"); // CLASS class QueryClient { constructor(config = {}) { this.queryCache = config.queryCache || new queryCache.QueryCache(); this.mutationCache = config.mutationCache || new mutationCache.MutationCache(); this.logger = config.logger || logger.defaultLogger; this.defaultOptions = config.defaultOptions || {}; this.queryDefaults = []; this.mutationDefaults = []; this.mountCount = 0; if ( true && config.logger) { this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version."); } } mount() { this.mountCount++; if (this.mountCount !== 1) return; this.unsubscribeFocus = focusManager.focusManager.subscribe(() => { if (focusManager.focusManager.isFocused()) { this.resumePausedMutations(); this.queryCache.onFocus(); } }); this.unsubscribeOnline = onlineManager.onlineManager.subscribe(() => { if (onlineManager.onlineManager.isOnline()) { this.resumePausedMutations(); this.queryCache.onOnline(); } }); } unmount() { var _this$unsubscribeFocu, _this$unsubscribeOnli; this.mountCount--; if (this.mountCount !== 0) return; (_this$unsubscribeFocu = this.unsubscribeFocus) == null ? void 0 : _this$unsubscribeFocu.call(this); this.unsubscribeFocus = undefined; (_this$unsubscribeOnli = this.unsubscribeOnline) == null ? void 0 : _this$unsubscribeOnli.call(this); this.unsubscribeOnline = undefined; } isFetching(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); filters.fetchStatus = 'fetching'; return this.queryCache.findAll(filters).length; } isMutating(filters) { return this.mutationCache.findAll({ ...filters, fetching: true }).length; } getQueryData(queryKey, filters) { var _this$queryCache$find; return (_this$queryCache$find = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find.state.data; } ensureQueryData(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); const cachedData = this.getQueryData(parsedOptions.queryKey); return cachedData ? Promise.resolve(cachedData) : this.fetchQuery(parsedOptions); } getQueriesData(queryKeyOrFilters) { return this.getQueryCache().findAll(queryKeyOrFilters).map(({ queryKey, state }) => { const data = state.data; return [queryKey, data]; }); } setQueryData(queryKey, updater, options) { const query = this.queryCache.find(queryKey); const prevData = query == null ? void 0 : query.state.data; const data = utils.functionalUpdate(updater, prevData); if (typeof data === 'undefined') { return undefined; } const parsedOptions = utils.parseQueryArgs(queryKey); const defaultedOptions = this.defaultQueryOptions(parsedOptions); return this.queryCache.build(this, defaultedOptions).setData(data, { ...options, manual: true }); } setQueriesData(queryKeyOrFilters, updater, options) { return notifyManager.notifyManager.batch(() => this.getQueryCache().findAll(queryKeyOrFilters).map(({ queryKey }) => [queryKey, this.setQueryData(queryKey, updater, options)])); } getQueryState(queryKey, filters) { var _this$queryCache$find2; return (_this$queryCache$find2 = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find2.state; } removeQueries(arg1, arg2) { const [filters] = utils.parseFilterArgs(arg1, arg2); const queryCache = this.queryCache; notifyManager.notifyManager.batch(() => { queryCache.findAll(filters).forEach(query => { queryCache.remove(query); }); }); } resetQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); const queryCache = this.queryCache; const refetchFilters = { type: 'active', ...filters }; return notifyManager.notifyManager.batch(() => { queryCache.findAll(filters).forEach(query => { query.reset(); }); return this.refetchQueries(refetchFilters, options); }); } cancelQueries(arg1, arg2, arg3) { const [filters, cancelOptions = {}] = utils.parseFilterArgs(arg1, arg2, arg3); if (typeof cancelOptions.revert === 'undefined') { cancelOptions.revert = true; } const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).map(query => query.cancel(cancelOptions))); return Promise.all(promises).then(utils.noop).catch(utils.noop); } invalidateQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); return notifyManager.notifyManager.batch(() => { var _ref, _filters$refetchType; this.queryCache.findAll(filters).forEach(query => { query.invalidate(); }); if (filters.refetchType === 'none') { return Promise.resolve(); } const refetchFilters = { ...filters, type: (_ref = (_filters$refetchType = filters.refetchType) != null ? _filters$refetchType : filters.type) != null ? _ref : 'active' }; return this.refetchQueries(refetchFilters, options); }); } refetchQueries(arg1, arg2, arg3) { const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3); const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).filter(query => !query.isDisabled()).map(query => { var _options$cancelRefetc; return query.fetch(undefined, { ...options, cancelRefetch: (_options$cancelRefetc = options == null ? void 0 : options.cancelRefetch) != null ? _options$cancelRefetc : true, meta: { refetchPage: filters.refetchPage } }); })); let promise = Promise.all(promises).then(utils.noop); if (!(options != null && options.throwOnError)) { promise = promise.catch(utils.noop); } return promise; } fetchQuery(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); const defaultedOptions = this.defaultQueryOptions(parsedOptions); // https://github.com/tannerlinsley/react-query/issues/652 if (typeof defaultedOptions.retry === 'undefined') { defaultedOptions.retry = false; } const query = this.queryCache.build(this, defaultedOptions); return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data); } prefetchQuery(arg1, arg2, arg3) { return this.fetchQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop); } fetchInfiniteQuery(arg1, arg2, arg3) { const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3); parsedOptions.behavior = infiniteQueryBehavior.infiniteQueryBehavior(); return this.fetchQuery(parsedOptions); } prefetchInfiniteQuery(arg1, arg2, arg3) { return this.fetchInfiniteQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop); } resumePausedMutations() { return this.mutationCache.resumePausedMutations(); } getQueryCache() { return this.queryCache; } getMutationCache() { return this.mutationCache; } getLogger() { return this.logger; } getDefaultOptions() { return this.defaultOptions; } setDefaultOptions(options) { this.defaultOptions = options; } setQueryDefaults(queryKey, options) { const result = this.queryDefaults.find(x => utils.hashQueryKey(queryKey) === utils.hashQueryKey(x.queryKey)); if (result) { result.defaultOptions = options; } else { this.queryDefaults.push({ queryKey, defaultOptions: options }); } } getQueryDefaults(queryKey) { if (!queryKey) { return undefined; } // Get the first matching defaults const firstMatchingDefaults = this.queryDefaults.find(x => utils.partialMatchKey(queryKey, x.queryKey)); // Additional checks and error in dev mode if (true) { // Retrieve all matching defaults for the given key const matchingDefaults = this.queryDefaults.filter(x => utils.partialMatchKey(queryKey, x.queryKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key if (matchingDefaults.length > 1) { this.logger.error("[QueryClient] Several query defaults match with key '" + JSON.stringify(queryKey) + "'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."); } } return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions; } setMutationDefaults(mutationKey, options) { const result = this.mutationDefaults.find(x => utils.hashQueryKey(mutationKey) === utils.hashQueryKey(x.mutationKey)); if (result) { result.defaultOptions = options; } else { this.mutationDefaults.push({ mutationKey, defaultOptions: options }); } } getMutationDefaults(mutationKey) { if (!mutationKey) { return undefined; } // Get the first matching defaults const firstMatchingDefaults = this.mutationDefaults.find(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // Additional checks and error in dev mode if (true) { // Retrieve all matching defaults for the given key const matchingDefaults = this.mutationDefaults.filter(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key if (matchingDefaults.length > 1) { this.logger.error("[QueryClient] Several mutation defaults match with key '" + JSON.stringify(mutationKey) + "'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."); } } return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions; } defaultQueryOptions(options) { if (options != null && options._defaulted) { return options; } const defaultedOptions = { ...this.defaultOptions.queries, ...this.getQueryDefaults(options == null ? void 0 : options.queryKey), ...options, _defaulted: true }; if (!defaultedOptions.queryHash && defaultedOptions.queryKey) { defaultedOptions.queryHash = utils.hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions); } // dependent default values if (typeof defaultedOptions.refetchOnReconnect === 'undefined') { defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== 'always'; } if (typeof defaultedOptions.useErrorBoundary === 'undefined') { defaultedOptions.useErrorBoundary = !!defaultedOptions.suspense; } return defaultedOptions; } defaultMutationOptions(options) { if (options != null && options._defaulted) { return options; } return { ...this.defaultOptions.mutations, ...this.getMutationDefaults(options == null ? void 0 : options.mutationKey), ...options, _defaulted: true }; } clear() { this.queryCache.clear(); this.mutationCache.clear(); } } exports.QueryClient = QueryClient; //# sourceMappingURL=queryClient.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/queryObserver.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/queryObserver.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); var notifyManager = __webpack_require__(/*! ./notifyManager.js */ "./node_modules/@tanstack/query-core/build/lib/notifyManager.js"); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var subscribable = __webpack_require__(/*! ./subscribable.js */ "./node_modules/@tanstack/query-core/build/lib/subscribable.js"); var retryer = __webpack_require__(/*! ./retryer.js */ "./node_modules/@tanstack/query-core/build/lib/retryer.js"); class QueryObserver extends subscribable.Subscribable { constructor(client, options) { super(); this.client = client; this.options = options; this.trackedProps = new Set(); this.selectError = null; this.bindMethods(); this.setOptions(options); } bindMethods() { this.remove = this.remove.bind(this); this.refetch = this.refetch.bind(this); } onSubscribe() { if (this.listeners.size === 1) { this.currentQuery.addObserver(this); if (shouldFetchOnMount(this.currentQuery, this.options)) { this.executeFetch(); } this.updateTimers(); } } onUnsubscribe() { if (!this.hasListeners()) { this.destroy(); } } shouldFetchOnReconnect() { return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect); } shouldFetchOnWindowFocus() { return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus); } destroy() { this.listeners = new Set(); this.clearStaleTimeout(); this.clearRefetchInterval(); this.currentQuery.removeObserver(this); } setOptions(options, notifyOptions) { const prevOptions = this.options; const prevQuery = this.currentQuery; this.options = this.client.defaultQueryOptions(options); if ( true && typeof (options == null ? void 0 : options.isDataEqual) !== 'undefined') { this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"); } if (!utils.shallowEqualObjects(prevOptions, this.options)) { this.client.getQueryCache().notify({ type: 'observerOptionsUpdated', query: this.currentQuery, observer: this }); } if (typeof this.options.enabled !== 'undefined' && typeof this.options.enabled !== 'boolean') { throw new Error('Expected enabled to be a boolean'); } // Keep previous query key if the user does not supply one if (!this.options.queryKey) { this.options.queryKey = prevOptions.queryKey; } this.updateQuery(); const mounted = this.hasListeners(); // Fetch if there are subscribers if (mounted && shouldFetchOptionally(this.currentQuery, prevQuery, this.options, prevOptions)) { this.executeFetch(); } // Update result this.updateResult(notifyOptions); // Update stale interval if needed if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) { this.updateStaleTimeout(); } const nextRefetchInterval = this.computeRefetchInterval(); // Update refetch interval if needed if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.currentRefetchInterval)) { this.updateRefetchInterval(nextRefetchInterval); } } getOptimisticResult(options) { const query = this.client.getQueryCache().build(this.client, options); const result = this.createResult(query, options); if (shouldAssignObserverCurrentProperties(this, result, options)) { // this assigns the optimistic result to the current Observer // because if the query function changes, useQuery will be performing // an effect where it would fetch again. // When the fetch finishes, we perform a deep data cloning in order // to reuse objects references. This deep data clone is performed against // the `observer.currentResult.data` property // When QueryKey changes, we refresh the query and get new `optimistic` // result, while we leave the `observer.currentResult`, so when new data // arrives, it finds the old `observer.currentResult` which is related // to the old QueryKey. Which means that currentResult and selectData are // out of sync already. // To solve this, we move the cursor of the currentResult everytime // an observer reads an optimistic value. // When keeping the previous data, the result doesn't change until new // data arrives. this.currentResult = result; this.currentResultOptions = this.options; this.currentResultState = this.currentQuery.state; } return result; } getCurrentResult() { return this.currentResult; } trackResult(result) { const trackedResult = {}; Object.keys(result).forEach(key => { Object.defineProperty(trackedResult, key, { configurable: false, enumerable: true, get: () => { this.trackedProps.add(key); return result[key]; } }); }); return trackedResult; } getCurrentQuery() { return this.currentQuery; } remove() { this.client.getQueryCache().remove(this.currentQuery); } refetch({ refetchPage, ...options } = {}) { return this.fetch({ ...options, meta: { refetchPage } }); } fetchOptimistic(options) { const defaultedOptions = this.client.defaultQueryOptions(options); const query = this.client.getQueryCache().build(this.client, defaultedOptions); query.isFetchingOptimistic = true; return query.fetch().then(() => this.createResult(query, defaultedOptions)); } fetch(fetchOptions) { var _fetchOptions$cancelR; return this.executeFetch({ ...fetchOptions, cancelRefetch: (_fetchOptions$cancelR = fetchOptions.cancelRefetch) != null ? _fetchOptions$cancelR : true }).then(() => { this.updateResult(); return this.currentResult; }); } executeFetch(fetchOptions) { // Make sure we reference the latest query as the current one might have been removed this.updateQuery(); // Fetch let promise = this.currentQuery.fetch(this.options, fetchOptions); if (!(fetchOptions != null && fetchOptions.throwOnError)) { promise = promise.catch(utils.noop); } return promise; } updateStaleTimeout() { this.clearStaleTimeout(); if (utils.isServer || this.currentResult.isStale || !utils.isValidTimeout(this.options.staleTime)) { return; } const time = utils.timeUntilStale(this.currentResult.dataUpdatedAt, this.options.staleTime); // The timeout is sometimes triggered 1 ms before the stale time expiration. // To mitigate this issue we always add 1 ms to the timeout. const timeout = time + 1; this.staleTimeoutId = setTimeout(() => { if (!this.currentResult.isStale) { this.updateResult(); } }, timeout); } computeRefetchInterval() { var _this$options$refetch; return typeof this.options.refetchInterval === 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (_this$options$refetch = this.options.refetchInterval) != null ? _this$options$refetch : false; } updateRefetchInterval(nextInterval) { this.clearRefetchInterval(); this.currentRefetchInterval = nextInterval; if (utils.isServer || this.options.enabled === false || !utils.isValidTimeout(this.currentRefetchInterval) || this.currentRefetchInterval === 0) { return; } this.refetchIntervalId = setInterval(() => { if (this.options.refetchIntervalInBackground || focusManager.focusManager.isFocused()) { this.executeFetch(); } }, this.currentRefetchInterval); } updateTimers() { this.updateStaleTimeout(); this.updateRefetchInterval(this.computeRefetchInterval()); } clearStaleTimeout() { if (this.staleTimeoutId) { clearTimeout(this.staleTimeoutId); this.staleTimeoutId = undefined; } } clearRefetchInterval() { if (this.refetchIntervalId) { clearInterval(this.refetchIntervalId); this.refetchIntervalId = undefined; } } createResult(query, options) { const prevQuery = this.currentQuery; const prevOptions = this.options; const prevResult = this.currentResult; const prevResultState = this.currentResultState; const prevResultOptions = this.currentResultOptions; const queryChange = query !== prevQuery; const queryInitialState = queryChange ? query.state : this.currentQueryInitialState; const prevQueryResult = queryChange ? this.currentResult : this.previousQueryResult; const { state } = query; let { dataUpdatedAt, error, errorUpdatedAt, fetchStatus, status } = state; let isPreviousData = false; let isPlaceholderData = false; let data; // Optimistically set result in fetching state if needed if (options._optimisticResults) { const mounted = this.hasListeners(); const fetchOnMount = !mounted && shouldFetchOnMount(query, options); const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions); if (fetchOnMount || fetchOptionally) { fetchStatus = retryer.canFetch(query.options.networkMode) ? 'fetching' : 'paused'; if (!dataUpdatedAt) { status = 'loading'; } } if (options._optimisticResults === 'isRestoring') { fetchStatus = 'idle'; } } // Keep previous data if needed if (options.keepPreviousData && !state.dataUpdatedAt && prevQueryResult != null && prevQueryResult.isSuccess && status !== 'error') { data = prevQueryResult.data; dataUpdatedAt = prevQueryResult.dataUpdatedAt; status = prevQueryResult.status; isPreviousData = true; } // Select data if needed else if (options.select && typeof state.data !== 'undefined') { // Memoize select result if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === this.selectFn) { data = this.selectResult; } else { try { this.selectFn = options.select; data = options.select(state.data); data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, data, options); this.selectResult = data; this.selectError = null; } catch (selectError) { if (true) { this.client.getLogger().error(selectError); } this.selectError = selectError; } } } // Use query data else { data = state.data; } // Show placeholder data if needed if (typeof options.placeholderData !== 'undefined' && typeof data === 'undefined' && status === 'loading') { let placeholderData; // Memoize placeholder data if (prevResult != null && prevResult.isPlaceholderData && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) { placeholderData = prevResult.data; } else { placeholderData = typeof options.placeholderData === 'function' ? options.placeholderData() : options.placeholderData; if (options.select && typeof placeholderData !== 'undefined') { try { placeholderData = options.select(placeholderData); this.selectError = null; } catch (selectError) { if (true) { this.client.getLogger().error(selectError); } this.selectError = selectError; } } } if (typeof placeholderData !== 'undefined') { status = 'success'; data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options); isPlaceholderData = true; } } if (this.selectError) { error = this.selectError; data = this.selectResult; errorUpdatedAt = Date.now(); status = 'error'; } const isFetching = fetchStatus === 'fetching'; const isLoading = status === 'loading'; const isError = status === 'error'; const result = { status, fetchStatus, isLoading, isSuccess: status === 'success', isError, isInitialLoading: isLoading && isFetching, data, dataUpdatedAt, error, errorUpdatedAt, failureCount: state.fetchFailureCount, failureReason: state.fetchFailureReason, errorUpdateCount: state.errorUpdateCount, isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0, isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount, isFetching, isRefetching: isFetching && !isLoading, isLoadingError: isError && state.dataUpdatedAt === 0, isPaused: fetchStatus === 'paused', isPlaceholderData, isPreviousData, isRefetchError: isError && state.dataUpdatedAt !== 0, isStale: isStale(query, options), refetch: this.refetch, remove: this.remove }; return result; } updateResult(notifyOptions) { const prevResult = this.currentResult; const nextResult = this.createResult(this.currentQuery, this.options); this.currentResultState = this.currentQuery.state; this.currentResultOptions = this.options; // Only notify and update result if something has changed if (utils.shallowEqualObjects(nextResult, prevResult)) { return; } this.currentResult = nextResult; // Determine which callbacks to trigger const defaultNotifyOptions = { cache: true }; const shouldNotifyListeners = () => { if (!prevResult) { return true; } const { notifyOnChangeProps } = this.options; const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps; if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) { return true; } const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps); if (this.options.useErrorBoundary) { includedProps.add('error'); } return Object.keys(this.currentResult).some(key => { const typedKey = key; const changed = this.currentResult[typedKey] !== prevResult[typedKey]; return changed && includedProps.has(typedKey); }); }; if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) { defaultNotifyOptions.listeners = true; } this.notify({ ...defaultNotifyOptions, ...notifyOptions }); } updateQuery() { const query = this.client.getQueryCache().build(this.client, this.options); if (query === this.currentQuery) { return; } const prevQuery = this.currentQuery; this.currentQuery = query; this.currentQueryInitialState = query.state; this.previousQueryResult = this.currentResult; if (this.hasListeners()) { prevQuery == null ? void 0 : prevQuery.removeObserver(this); query.addObserver(this); } } onQueryUpdate(action) { const notifyOptions = {}; if (action.type === 'success') { notifyOptions.onSuccess = !action.manual; } else if (action.type === 'error' && !retryer.isCancelledError(action.error)) { notifyOptions.onError = true; } this.updateResult(notifyOptions); if (this.hasListeners()) { this.updateTimers(); } } notify(notifyOptions) { notifyManager.notifyManager.batch(() => { // First trigger the configuration callbacks if (notifyOptions.onSuccess) { var _this$options$onSucce, _this$options, _this$options$onSettl, _this$options2; (_this$options$onSucce = (_this$options = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options, this.currentResult.data); (_this$options$onSettl = (_this$options2 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options2, this.currentResult.data, null); } else if (notifyOptions.onError) { var _this$options$onError, _this$options3, _this$options$onSettl2, _this$options4; (_this$options$onError = (_this$options3 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options3, this.currentResult.error); (_this$options$onSettl2 = (_this$options4 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options4, undefined, this.currentResult.error); } // Then trigger the listeners if (notifyOptions.listeners) { this.listeners.forEach(({ listener }) => { listener(this.currentResult); }); } // Then the cache listeners if (notifyOptions.cache) { this.client.getQueryCache().notify({ query: this.currentQuery, type: 'observerResultsUpdated' }); } }); } } function shouldLoadOnMount(query, options) { return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === 'error' && options.retryOnMount === false); } function shouldFetchOnMount(query, options) { return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount); } function shouldFetchOn(query, options, field) { if (options.enabled !== false) { const value = typeof field === 'function' ? field(query) : field; return value === 'always' || value !== false && isStale(query, options); } return false; } function shouldFetchOptionally(query, prevQuery, options, prevOptions) { return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== 'error') && isStale(query, options); } function isStale(query, options) { return query.isStaleByTime(options.staleTime); } // this function would decide if we will update the observer's 'current' // properties after an optimistic reading via getOptimisticResult function shouldAssignObserverCurrentProperties(observer, optimisticResult, options) { // it is important to keep this condition like this for three reasons: // 1. It will get removed in the v5 // 2. it reads: don't update the properties if we want to keep the previous // data. // 3. The opposite condition (!options.keepPreviousData) would fallthrough // and will result in a bad decision if (options.keepPreviousData) { return false; } // this means we want to put some placeholder data when pending and queryKey // changed. if (options.placeholderData !== undefined) { // re-assign properties only if current data is placeholder data // which means that data did not arrive yet, so, if there is some cached data // we need to "prepare" to receive it return optimisticResult.isPlaceholderData; } // if the newly created result isn't what the observer is holding as current, // then we'll need to update the properties as well if (!utils.shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) { return true; } // basically, just keep previous properties if nothing changed return false; } exports.QueryObserver = QueryObserver; //# sourceMappingURL=queryObserver.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/removable.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/removable.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); class Removable { destroy() { this.clearGcTimeout(); } scheduleGc() { this.clearGcTimeout(); if (utils.isValidTimeout(this.cacheTime)) { this.gcTimeout = setTimeout(() => { this.optionalRemove(); }, this.cacheTime); } } updateCacheTime(newCacheTime) { // Default to 5 minutes (Infinity for server-side) if no cache time is set this.cacheTime = Math.max(this.cacheTime || 0, newCacheTime != null ? newCacheTime : utils.isServer ? Infinity : 5 * 60 * 1000); } clearGcTimeout() { if (this.gcTimeout) { clearTimeout(this.gcTimeout); this.gcTimeout = undefined; } } } exports.Removable = Removable; //# sourceMappingURL=removable.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/retryer.js": /*!****************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/retryer.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); var focusManager = __webpack_require__(/*! ./focusManager.js */ "./node_modules/@tanstack/query-core/build/lib/focusManager.js"); var onlineManager = __webpack_require__(/*! ./onlineManager.js */ "./node_modules/@tanstack/query-core/build/lib/onlineManager.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/query-core/build/lib/utils.js"); function defaultRetryDelay(failureCount) { return Math.min(1000 * 2 ** failureCount, 30000); } function canFetch(networkMode) { return (networkMode != null ? networkMode : 'online') === 'online' ? onlineManager.onlineManager.isOnline() : true; } class CancelledError { constructor(options) { this.revert = options == null ? void 0 : options.revert; this.silent = options == null ? void 0 : options.silent; } } function isCancelledError(value) { return value instanceof CancelledError; } function createRetryer(config) { let isRetryCancelled = false; let failureCount = 0; let isResolved = false; let continueFn; let promiseResolve; let promiseReject; const promise = new Promise((outerResolve, outerReject) => { promiseResolve = outerResolve; promiseReject = outerReject; }); const cancel = cancelOptions => { if (!isResolved) { reject(new CancelledError(cancelOptions)); config.abort == null ? void 0 : config.abort(); } }; const cancelRetry = () => { isRetryCancelled = true; }; const continueRetry = () => { isRetryCancelled = false; }; const shouldPause = () => !focusManager.focusManager.isFocused() || config.networkMode !== 'always' && !onlineManager.onlineManager.isOnline(); const resolve = value => { if (!isResolved) { isResolved = true; config.onSuccess == null ? void 0 : config.onSuccess(value); continueFn == null ? void 0 : continueFn(); promiseResolve(value); } }; const reject = value => { if (!isResolved) { isResolved = true; config.onError == null ? void 0 : config.onError(value); continueFn == null ? void 0 : continueFn(); promiseReject(value); } }; const pause = () => { return new Promise(continueResolve => { continueFn = value => { const canContinue = isResolved || !shouldPause(); if (canContinue) { continueResolve(value); } return canContinue; }; config.onPause == null ? void 0 : config.onPause(); }).then(() => { continueFn = undefined; if (!isResolved) { config.onContinue == null ? void 0 : config.onContinue(); } }); }; // Create loop function const run = () => { // Do nothing if already resolved if (isResolved) { return; } let promiseOrValue; // Execute query try { promiseOrValue = config.fn(); } catch (error) { promiseOrValue = Promise.reject(error); } Promise.resolve(promiseOrValue).then(resolve).catch(error => { var _config$retry, _config$retryDelay; // Stop if the fetch is already resolved if (isResolved) { return; } // Do we need to retry the request? const retry = (_config$retry = config.retry) != null ? _config$retry : 3; const retryDelay = (_config$retryDelay = config.retryDelay) != null ? _config$retryDelay : defaultRetryDelay; const delay = typeof retryDelay === 'function' ? retryDelay(failureCount, error) : retryDelay; const shouldRetry = retry === true || typeof retry === 'number' && failureCount < retry || typeof retry === 'function' && retry(failureCount, error); if (isRetryCancelled || !shouldRetry) { // We are done if the query does not need to be retried reject(error); return; } failureCount++; // Notify on fail config.onFail == null ? void 0 : config.onFail(failureCount, error); // Delay utils.sleep(delay) // Pause if the document is not visible or when the device is offline .then(() => { if (shouldPause()) { return pause(); } return; }).then(() => { if (isRetryCancelled) { reject(error); } else { run(); } }); }); }; // Start loop if (canFetch(config.networkMode)) { run(); } else { pause().then(run); } return { promise, cancel, continue: () => { const didContinue = continueFn == null ? void 0 : continueFn(); return didContinue ? promise : Promise.resolve(); }, cancelRetry, continueRetry }; } exports.CancelledError = CancelledError; exports.canFetch = canFetch; exports.createRetryer = createRetryer; exports.isCancelledError = isCancelledError; //# sourceMappingURL=retryer.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/subscribable.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/subscribable.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); class Subscribable { constructor() { this.listeners = new Set(); this.subscribe = this.subscribe.bind(this); } subscribe(listener) { const identity = { listener }; this.listeners.add(identity); this.onSubscribe(); return () => { this.listeners.delete(identity); this.onUnsubscribe(); }; } hasListeners() { return this.listeners.size > 0; } onSubscribe() {// Do nothing } onUnsubscribe() {// Do nothing } } exports.Subscribable = Subscribable; //# sourceMappingURL=subscribable.js.map /***/ }), /***/ "./node_modules/@tanstack/query-core/build/lib/utils.js": /*!**************************************************************!*\ !*** ./node_modules/@tanstack/query-core/build/lib/utils.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"]; Object.defineProperty(exports, "__esModule", ({ value: true })); // TYPES // UTILS const isServer = typeof window === 'undefined' || 'Deno' in window; function noop() { return undefined; } function functionalUpdate(updater, input) { return typeof updater === 'function' ? updater(input) : updater; } function isValidTimeout(value) { return typeof value === 'number' && value >= 0 && value !== Infinity; } function difference(array1, array2) { return array1.filter(x => !array2.includes(x)); } function replaceAt(array, index, value) { const copy = array.slice(0); copy[index] = value; return copy; } function timeUntilStale(updatedAt, staleTime) { return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0); } function parseQueryArgs(arg1, arg2, arg3) { if (!isQueryKey(arg1)) { return arg1; } if (typeof arg2 === 'function') { return { ...arg3, queryKey: arg1, queryFn: arg2 }; } return { ...arg2, queryKey: arg1 }; } function parseMutationArgs(arg1, arg2, arg3) { if (isQueryKey(arg1)) { if (typeof arg2 === 'function') { return { ...arg3, mutationKey: arg1, mutationFn: arg2 }; } return { ...arg2, mutationKey: arg1 }; } if (typeof arg1 === 'function') { return { ...arg2, mutationFn: arg1 }; } return { ...arg1 }; } function parseFilterArgs(arg1, arg2, arg3) { return isQueryKey(arg1) ? [{ ...arg2, queryKey: arg1 }, arg3] : [arg1 || {}, arg2]; } function parseMutationFilterArgs(arg1, arg2, arg3) { return isQueryKey(arg1) ? [{ ...arg2, mutationKey: arg1 }, arg3] : [arg1 || {}, arg2]; } function matchQuery(filters, query) { const { type = 'all', exact, fetchStatus, predicate, queryKey, stale } = filters; if (isQueryKey(queryKey)) { if (exact) { if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) { return false; } } else if (!partialMatchKey(query.queryKey, queryKey)) { return false; } } if (type !== 'all') { const isActive = query.isActive(); if (type === 'active' && !isActive) { return false; } if (type === 'inactive' && isActive) { return false; } } if (typeof stale === 'boolean' && query.isStale() !== stale) { return false; } if (typeof fetchStatus !== 'undefined' && fetchStatus !== query.state.fetchStatus) { return false; } if (predicate && !predicate(query)) { return false; } return true; } function matchMutation(filters, mutation) { const { exact, fetching, predicate, mutationKey } = filters; if (isQueryKey(mutationKey)) { if (!mutation.options.mutationKey) { return false; } if (exact) { if (hashQueryKey(mutation.options.mutationKey) !== hashQueryKey(mutationKey)) { return false; } } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) { return false; } } if (typeof fetching === 'boolean' && mutation.state.status === 'loading' !== fetching) { return false; } if (predicate && !predicate(mutation)) { return false; } return true; } function hashQueryKeyByOptions(queryKey, options) { const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashQueryKey; return hashFn(queryKey); } /** * Default query keys hash function. * Hashes the value into a stable hash. */ function hashQueryKey(queryKey) { return JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => { result[key] = val[key]; return result; }, {}) : val); } /** * Checks if key `b` partially matches with key `a`. */ function partialMatchKey(a, b) { return partialDeepEqual(a, b); } /** * Checks if `b` partially matches with `a`. */ function partialDeepEqual(a, b) { if (a === b) { return true; } if (typeof a !== typeof b) { return false; } if (a && b && typeof a === 'object' && typeof b === 'object') { return !Object.keys(b).some(key => !partialDeepEqual(a[key], b[key])); } return false; } /** * This function returns `a` if `b` is deeply equal. * If not, it will replace any deeply equal children of `b` with those of `a`. * This can be used for structural sharing between JSON values for example. */ function replaceEqualDeep(a, b) { if (a === b) { return a; } const array = isPlainArray(a) && isPlainArray(b); if (array || isPlainObject(a) && isPlainObject(b)) { const aSize = array ? a.length : Object.keys(a).length; const bItems = array ? b : Object.keys(b); const bSize = bItems.length; const copy = array ? [] : {}; let equalItems = 0; for (let i = 0; i < bSize; i++) { const key = array ? i : bItems[i]; copy[key] = replaceEqualDeep(a[key], b[key]); if (copy[key] === a[key]) { equalItems++; } } return aSize === bSize && equalItems === aSize ? a : copy; } return b; } /** * Shallow compare objects. Only works with objects that always have the same properties. */ function shallowEqualObjects(a, b) { if (a && !b || b && !a) { return false; } for (const key in a) { if (a[key] !== b[key]) { return false; } } return true; } function isPlainArray(value) { return Array.isArray(value) && value.length === Object.keys(value).length; } // Copied from: https://github.com/jonschlinkert/is-plain-object function isPlainObject(o) { if (!hasObjectPrototype(o)) { return false; } // If has modified constructor const ctor = o.constructor; if (typeof ctor === 'undefined') { return true; } // If has modified prototype const prot = ctor.prototype; if (!hasObjectPrototype(prot)) { return false; } // If constructor does not have an Object-specific method if (!prot.hasOwnProperty('isPrototypeOf')) { return false; } // Most likely a plain Object return true; } function hasObjectPrototype(o) { return Object.prototype.toString.call(o) === '[object Object]'; } function isQueryKey(value) { return Array.isArray(value); } function isError(value) { return value instanceof Error; } function sleep(timeout) { return new Promise(resolve => { setTimeout(resolve, timeout); }); } /** * Schedules a microtask. * This can be useful to schedule state updates after rendering. */ function scheduleMicrotask(callback) { sleep(0).then(callback); } function getAbortController() { if (typeof AbortController === 'function') { return new AbortController(); } return; } function replaceData(prevData, data, options) { // Use prev data if an isDataEqual function is defined and returns `true` if (options.isDataEqual != null && options.isDataEqual(prevData, data)) { return prevData; } else if (typeof options.structuralSharing === 'function') { return options.structuralSharing(prevData, data); } else if (options.structuralSharing !== false) { // Structurally share data between prev and new data if needed return replaceEqualDeep(prevData, data); } return data; } exports.difference = difference; exports.functionalUpdate = functionalUpdate; exports.getAbortController = getAbortController; exports.hashQueryKey = hashQueryKey; exports.hashQueryKeyByOptions = hashQueryKeyByOptions; exports.isError = isError; exports.isPlainArray = isPlainArray; exports.isPlainObject = isPlainObject; exports.isQueryKey = isQueryKey; exports.isServer = isServer; exports.isValidTimeout = isValidTimeout; exports.matchMutation = matchMutation; exports.matchQuery = matchQuery; exports.noop = noop; exports.parseFilterArgs = parseFilterArgs; exports.parseMutationArgs = parseMutationArgs; exports.parseMutationFilterArgs = parseMutationFilterArgs; exports.parseQueryArgs = parseQueryArgs; exports.partialDeepEqual = partialDeepEqual; exports.partialMatchKey = partialMatchKey; exports.replaceAt = replaceAt; exports.replaceData = replaceData; exports.replaceEqualDeep = replaceEqualDeep; exports.scheduleMicrotask = scheduleMicrotask; exports.shallowEqualObjects = shallowEqualObjects; exports.sleep = sleep; exports.timeUntilStale = timeUntilStale; //# sourceMappingURL=utils.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/Hydrate.js": /*!*****************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/Hydrate.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useHydrate(state, options = {}) { const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const optionsRef = React__namespace.useRef(options); optionsRef.current = options; // Running hydrate again with the same queries is safe, // it wont overwrite or initialize existing queries, // relying on useMemo here is only a performance optimization. // hydrate can and should be run *during* render here for SSR to work properly React__namespace.useMemo(() => { if (state) { queryCore.hydrate(queryClient, state, optionsRef.current); } }, [queryClient, state]); } const Hydrate = ({ children, options, state }) => { useHydrate(state, options); return children; }; exports.Hydrate = Hydrate; exports.useHydrate = useHydrate; //# sourceMappingURL=Hydrate.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js": /*!*****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const defaultContext = /*#__PURE__*/React__namespace.createContext(undefined); const QueryClientSharingContext = /*#__PURE__*/React__namespace.createContext(false); // If we are given a context, we will use it. // Otherwise, if contextSharing is on, we share the first and at least one // instance of the context across the window // to ensure that if React Query is used across // different bundles or microfrontends they will // all use the same **instance** of context, regardless // of module scoping. function getQueryClientContext(context, contextSharing) { if (context) { return context; } if (contextSharing && typeof window !== 'undefined') { if (!window.ReactQueryClientContext) { window.ReactQueryClientContext = defaultContext; } return window.ReactQueryClientContext; } return defaultContext; } const useQueryClient = ({ context } = {}) => { const queryClient = React__namespace.useContext(getQueryClientContext(context, React__namespace.useContext(QueryClientSharingContext))); if (!queryClient) { throw new Error('No QueryClient set, use QueryClientProvider to set one'); } return queryClient; }; const QueryClientProvider = ({ client, children, context, contextSharing = false }) => { React__namespace.useEffect(() => { client.mount(); return () => { client.unmount(); }; }, [client]); if ( true && contextSharing) { client.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version"); } const Context = getQueryClientContext(context, contextSharing); return /*#__PURE__*/React__namespace.createElement(QueryClientSharingContext.Provider, { value: !context && contextSharing }, /*#__PURE__*/React__namespace.createElement(Context.Provider, { value: client }, children)); }; exports.QueryClientProvider = QueryClientProvider; exports.defaultContext = defaultContext; exports.useQueryClient = useQueryClient; //# sourceMappingURL=QueryClientProvider.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js": /*!*********************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function createValue() { let isReset = false; return { clearReset: () => { isReset = false; }, reset: () => { isReset = true; }, isReset: () => { return isReset; } }; } const QueryErrorResetBoundaryContext = /*#__PURE__*/React__namespace.createContext(createValue()); // HOOK const useQueryErrorResetBoundary = () => React__namespace.useContext(QueryErrorResetBoundaryContext); // COMPONENT const QueryErrorResetBoundary = ({ children }) => { const [value] = React__namespace.useState(() => createValue()); return /*#__PURE__*/React__namespace.createElement(QueryErrorResetBoundaryContext.Provider, { value: value }, typeof children === 'function' ? children(value) : children); }; exports.QueryErrorResetBoundary = QueryErrorResetBoundary; exports.useQueryErrorResetBoundary = useQueryErrorResetBoundary; //# sourceMappingURL=QueryErrorResetBoundary.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js": /*!****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/react-query/build/lib/utils.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => { if (options.suspense || options.useErrorBoundary) { // Prevent retrying failed query if the error boundary has not been reset yet if (!errorResetBoundary.isReset()) { options.retryOnMount = false; } } }; const useClearResetErrorBoundary = errorResetBoundary => { React__namespace.useEffect(() => { errorResetBoundary.clearReset(); }, [errorResetBoundary]); }; const getHasError = ({ result, errorResetBoundary, useErrorBoundary, query }) => { return result.isError && !errorResetBoundary.isReset() && !result.isFetching && utils.shouldThrowError(useErrorBoundary, [result.error, query]); }; exports.ensurePreventErrorBoundaryRetry = ensurePreventErrorBoundaryRetry; exports.getHasError = getHasError; exports.useClearResetErrorBoundary = useClearResetErrorBoundary; //# sourceMappingURL=errorBoundaryUtils.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/index.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/index.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); __webpack_require__(/*! ./setBatchUpdatesFn.js */ "./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useQueries = __webpack_require__(/*! ./useQueries.js */ "./node_modules/@tanstack/react-query/build/lib/useQueries.js"); var useQuery = __webpack_require__(/*! ./useQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useQuery.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var Hydrate = __webpack_require__(/*! ./Hydrate.js */ "./node_modules/@tanstack/react-query/build/lib/Hydrate.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var useIsFetching = __webpack_require__(/*! ./useIsFetching.js */ "./node_modules/@tanstack/react-query/build/lib/useIsFetching.js"); var useIsMutating = __webpack_require__(/*! ./useIsMutating.js */ "./node_modules/@tanstack/react-query/build/lib/useIsMutating.js"); var useMutation = __webpack_require__(/*! ./useMutation.js */ "./node_modules/@tanstack/react-query/build/lib/useMutation.js"); var useInfiniteQuery = __webpack_require__(/*! ./useInfiniteQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); exports.useQueries = useQueries.useQueries; exports.useQuery = useQuery.useQuery; exports.QueryClientProvider = QueryClientProvider.QueryClientProvider; exports.defaultContext = QueryClientProvider.defaultContext; exports.useQueryClient = QueryClientProvider.useQueryClient; exports.Hydrate = Hydrate.Hydrate; exports.useHydrate = Hydrate.useHydrate; exports.QueryErrorResetBoundary = QueryErrorResetBoundary.QueryErrorResetBoundary; exports.useQueryErrorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary; exports.useIsFetching = useIsFetching.useIsFetching; exports.useIsMutating = useIsMutating.useIsMutating; exports.useMutation = useMutation.useMutation; exports.useInfiniteQuery = useInfiniteQuery.useInfiniteQuery; exports.IsRestoringProvider = isRestoring.IsRestoringProvider; exports.useIsRestoring = isRestoring.useIsRestoring; Object.keys(queryCore).forEach(function (k) { if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { enumerable: true, get: function () { return queryCore[k]; } }); }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/isRestoring.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); const IsRestoringContext = /*#__PURE__*/React__namespace.createContext(false); const useIsRestoring = () => React__namespace.useContext(IsRestoringContext); const IsRestoringProvider = IsRestoringContext.Provider; exports.IsRestoringProvider = IsRestoringProvider; exports.useIsRestoring = useIsRestoring; //# sourceMappingURL=isRestoring.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js": /*!*****************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var ReactDOM = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM); const unstable_batchedUpdates = ReactDOM__namespace.unstable_batchedUpdates; exports.unstable_batchedUpdates = unstable_batchedUpdates; //# sourceMappingURL=reactBatchedUpdates.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js": /*!***************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/setBatchUpdatesFn.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { "use strict"; var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var reactBatchedUpdates = __webpack_require__(/*! ./reactBatchedUpdates */ "./node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.js"); queryCore.notifyManager.setBatchNotifyFunction(reactBatchedUpdates.unstable_batchedUpdates); //# sourceMappingURL=setBatchUpdatesFn.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/suspense.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/suspense.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); const ensureStaleTime = defaultedOptions => { if (defaultedOptions.suspense) { // Always set stale time when using suspense to prevent // fetching again when directly mounting after suspending if (typeof defaultedOptions.staleTime !== 'number') { defaultedOptions.staleTime = 1000; } } }; const willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring; const shouldSuspend = (defaultedOptions, result, isRestoring) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && willFetch(result, isRestoring); const fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).then(({ data }) => { defaultedOptions.onSuccess == null ? void 0 : defaultedOptions.onSuccess(data); defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(data, null); }).catch(error => { errorResetBoundary.clearReset(); defaultedOptions.onError == null ? void 0 : defaultedOptions.onError(error); defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(undefined, error); }); exports.ensureStaleTime = ensureStaleTime; exports.fetchOptimistic = fetchOptimistic; exports.shouldSuspend = shouldSuspend; exports.willFetch = willFetch; //# sourceMappingURL=suspense.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js": /*!**********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); var errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.js */ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js"); var suspense = __webpack_require__(/*! ./suspense.js */ "./node_modules/@tanstack/react-query/build/lib/suspense.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useBaseQuery(options, Observer) { const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const isRestoring$1 = isRestoring.useIsRestoring(); const errorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary(); const defaultedOptions = queryClient.defaultQueryOptions(options); // Make sure results are optimistically set in fetching state before subscribing or updating options defaultedOptions._optimisticResults = isRestoring$1 ? 'isRestoring' : 'optimistic'; // Include callbacks in batch renders if (defaultedOptions.onError) { defaultedOptions.onError = queryCore.notifyManager.batchCalls(defaultedOptions.onError); } if (defaultedOptions.onSuccess) { defaultedOptions.onSuccess = queryCore.notifyManager.batchCalls(defaultedOptions.onSuccess); } if (defaultedOptions.onSettled) { defaultedOptions.onSettled = queryCore.notifyManager.batchCalls(defaultedOptions.onSettled); } suspense.ensureStaleTime(defaultedOptions); errorBoundaryUtils.ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary); errorBoundaryUtils.useClearResetErrorBoundary(errorResetBoundary); const [observer] = React__namespace.useState(() => new Observer(queryClient, defaultedOptions)); const result = observer.getOptimisticResult(defaultedOptions); useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => { const unsubscribe = isRestoring$1 ? () => undefined : observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)); // Update result to make sure we did not miss any query updates // between creating the observer and subscribing to it. observer.updateResult(); return unsubscribe; }, [observer, isRestoring$1]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); React__namespace.useEffect(() => { // Do not notify on updates because of changes in the options because // these changes should already be reflected in the optimistic result. observer.setOptions(defaultedOptions, { listeners: false }); }, [defaultedOptions, observer]); // Handle suspense if (suspense.shouldSuspend(defaultedOptions, result, isRestoring$1)) { throw suspense.fetchOptimistic(defaultedOptions, observer, errorResetBoundary); } // Handle error boundary if (errorBoundaryUtils.getHasError({ result, errorResetBoundary, useErrorBoundary: defaultedOptions.useErrorBoundary, query: observer.getCurrentQuery() })) { throw result.error; } // Handle result property usage tracking return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result; } exports.useBaseQuery = useBaseQuery; //# sourceMappingURL=useBaseQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js": /*!**************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useBaseQuery = __webpack_require__(/*! ./useBaseQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js"); function useInfiniteQuery(arg1, arg2, arg3) { const options = queryCore.parseQueryArgs(arg1, arg2, arg3); return useBaseQuery.useBaseQuery(options, queryCore.InfiniteQueryObserver); } exports.useInfiniteQuery = useInfiniteQuery; //# sourceMappingURL=useInfiniteQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useIsFetching.js": /*!***********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useIsFetching.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useIsFetching(arg1, arg2, arg3) { const [filters, options = {}] = queryCore.parseFilterArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const queryCache = queryClient.getQueryCache(); return useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => queryCache.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [queryCache]), () => queryClient.isFetching(filters), () => queryClient.isFetching(filters)); } exports.useIsFetching = useIsFetching; //# sourceMappingURL=useIsFetching.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useIsMutating.js": /*!***********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useIsMutating.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useIsMutating(arg1, arg2, arg3) { const [filters, options = {}] = queryCore.parseMutationFilterArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const mutationCache = queryClient.getMutationCache(); return useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => mutationCache.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [mutationCache]), () => queryClient.isMutating(filters), () => queryClient.isMutating(filters)); } exports.useIsMutating = useIsMutating; //# sourceMappingURL=useIsMutating.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useMutation.js": /*!*********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useMutation.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var utils = __webpack_require__(/*! ./utils.js */ "./node_modules/@tanstack/react-query/build/lib/utils.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useMutation(arg1, arg2, arg3) { const options = queryCore.parseMutationArgs(arg1, arg2, arg3); const queryClient = QueryClientProvider.useQueryClient({ context: options.context }); const [observer] = React__namespace.useState(() => new queryCore.MutationObserver(queryClient, options)); React__namespace.useEffect(() => { observer.setOptions(options); }, [observer, options]); const result = useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [observer]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); const mutate = React__namespace.useCallback((variables, mutateOptions) => { observer.mutate(variables, mutateOptions).catch(noop); }, [observer]); if (result.error && utils.shouldThrowError(observer.options.useErrorBoundary, [result.error])) { throw result.error; } return { ...result, mutate, mutateAsync: result.mutate }; } // eslint-disable-next-line @typescript-eslint/no-empty-function function noop() {} exports.useMutation = useMutation; //# sourceMappingURL=useMutation.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useQueries.js": /*!********************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useQueries.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { /* provided dependency */ var Promise = __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js")["Promise"]; 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useSyncExternalStore = __webpack_require__(/*! ./useSyncExternalStore */ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js"); var QueryClientProvider = __webpack_require__(/*! ./QueryClientProvider.js */ "./node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js"); var isRestoring = __webpack_require__(/*! ./isRestoring.js */ "./node_modules/@tanstack/react-query/build/lib/isRestoring.js"); var QueryErrorResetBoundary = __webpack_require__(/*! ./QueryErrorResetBoundary.js */ "./node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js"); var errorBoundaryUtils = __webpack_require__(/*! ./errorBoundaryUtils.js */ "./node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js"); var suspense = __webpack_require__(/*! ./suspense.js */ "./node_modules/@tanstack/react-query/build/lib/suspense.js"); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespace(React); function useQueries({ queries, context }) { const queryClient = QueryClientProvider.useQueryClient({ context }); const isRestoring$1 = isRestoring.useIsRestoring(); const errorResetBoundary = QueryErrorResetBoundary.useQueryErrorResetBoundary(); const defaultedQueries = React__namespace.useMemo(() => queries.map(options => { const defaultedOptions = queryClient.defaultQueryOptions(options); // Make sure the results are already in fetching state before subscribing or updating options defaultedOptions._optimisticResults = isRestoring$1 ? 'isRestoring' : 'optimistic'; return defaultedOptions; }), [queries, queryClient, isRestoring$1]); defaultedQueries.forEach(query => { suspense.ensureStaleTime(query); errorBoundaryUtils.ensurePreventErrorBoundaryRetry(query, errorResetBoundary); }); errorBoundaryUtils.useClearResetErrorBoundary(errorResetBoundary); const [observer] = React__namespace.useState(() => new queryCore.QueriesObserver(queryClient, defaultedQueries)); const optimisticResult = observer.getOptimisticResult(defaultedQueries); useSyncExternalStore.useSyncExternalStore(React__namespace.useCallback(onStoreChange => isRestoring$1 ? () => undefined : observer.subscribe(queryCore.notifyManager.batchCalls(onStoreChange)), [observer, isRestoring$1]), () => observer.getCurrentResult(), () => observer.getCurrentResult()); React__namespace.useEffect(() => { // Do not notify on updates because of changes in the options because // these changes should already be reflected in the optimistic result. observer.setQueries(defaultedQueries, { listeners: false }); }, [defaultedQueries, observer]); const shouldAtLeastOneSuspend = optimisticResult.some((result, index) => suspense.shouldSuspend(defaultedQueries[index], result, isRestoring$1)); const suspensePromises = shouldAtLeastOneSuspend ? optimisticResult.flatMap((result, index) => { const options = defaultedQueries[index]; const queryObserver = observer.getObservers()[index]; if (options && queryObserver) { if (suspense.shouldSuspend(options, result, isRestoring$1)) { return suspense.fetchOptimistic(options, queryObserver, errorResetBoundary); } else if (suspense.willFetch(result, isRestoring$1)) { void suspense.fetchOptimistic(options, queryObserver, errorResetBoundary); } } return []; }) : []; if (suspensePromises.length > 0) { throw Promise.all(suspensePromises); } const observerQueries = observer.getQueries(); const firstSingleResultWhichShouldThrow = optimisticResult.find((result, index) => { var _defaultedQueries$ind, _defaultedQueries$ind2; return errorBoundaryUtils.getHasError({ result, errorResetBoundary, useErrorBoundary: (_defaultedQueries$ind = (_defaultedQueries$ind2 = defaultedQueries[index]) == null ? void 0 : _defaultedQueries$ind2.useErrorBoundary) != null ? _defaultedQueries$ind : false, query: observerQueries[index] }); }); if (firstSingleResultWhichShouldThrow != null && firstSingleResultWhichShouldThrow.error) { throw firstSingleResultWhichShouldThrow.error; } return optimisticResult; } exports.useQueries = useQueries; //# sourceMappingURL=useQueries.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useQuery.js": /*!******************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useQuery.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var queryCore = __webpack_require__(/*! @tanstack/query-core */ "./node_modules/@tanstack/query-core/build/lib/index.js"); var useBaseQuery = __webpack_require__(/*! ./useBaseQuery.js */ "./node_modules/@tanstack/react-query/build/lib/useBaseQuery.js"); function useQuery(arg1, arg2, arg3) { const parsedOptions = queryCore.parseQueryArgs(arg1, arg2, arg3); return useBaseQuery.useBaseQuery(parsedOptions, queryCore.QueryObserver); } exports.useQuery = useQuery; //# sourceMappingURL=useQuery.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js": /*!******************************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { 'use client'; 'use strict'; Object.defineProperty(exports, "__esModule", ({ value: true })); var index_js = __webpack_require__(/*! use-sync-external-store/shim/index.js */ "./node_modules/use-sync-external-store/shim/index.js"); const useSyncExternalStore = index_js.useSyncExternalStore; exports.useSyncExternalStore = useSyncExternalStore; //# sourceMappingURL=useSyncExternalStore.js.map /***/ }), /***/ "./node_modules/@tanstack/react-query/build/lib/utils.js": /*!***************************************************************!*\ !*** ./node_modules/@tanstack/react-query/build/lib/utils.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); function shouldThrowError(_useErrorBoundary, params) { // Allow useErrorBoundary function to override throwing behavior on a per-error basis if (typeof _useErrorBoundary === 'function') { return _useErrorBoundary(...params); } return !!_useErrorBoundary; } exports.shouldThrowError = shouldThrowError; //# sourceMappingURL=utils.js.map /***/ }), /***/ "./src/taskpane/lib/react-query.ts": /*!*****************************************!*\ !*** ./src/taskpane/lib/react-query.ts ***! \*****************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.queryClient = void 0; var react_query_1 = __webpack_require__(/*! @tanstack/react-query */ "./node_modules/@tanstack/react-query/build/lib/index.js"); var queryConfig = { queries: { useErrorBoundary: false, refetchOnWindowFocus: false, retry: false } }; exports.queryClient = new react_query_1.QueryClient({ defaultOptions: queryConfig }); void function register() { /* react-hot-loader/webpack */var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined; if (!reactHotLoader) { return; } /* eslint-disable camelcase, no-undef */ var webpackExports = typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__ : exports; /* eslint-enable camelcase, no-undef */ if (!webpackExports) { return; } if (typeof webpackExports === 'function') { reactHotLoader.register(webpackExports, 'module.exports', "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/lib/react-query.ts"); return; } /* eslint-disable no-restricted-syntax */ for (var key in webpackExports) { /* eslint-enable no-restricted-syntax */if (!Object.prototype.hasOwnProperty.call(webpackExports, key)) { continue; } var namedExport = void 0; try { namedExport = webpackExports[key]; } catch (err) { continue; } reactHotLoader.register(namedExport, key, "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/lib/react-query.ts"); } }(); /***/ }), /***/ "./src/taskpane/providers/index.ts": /*!*****************************************!*\ !*** ./src/taskpane/providers/index.ts ***! \*****************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function () { return m[k]; } }; } Object.defineProperty(o, k2, desc); } : function (o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }); var __exportStar = this && this.__exportStar || function (m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); __exportStar(__webpack_require__(/*! ./react-query */ "./src/taskpane/providers/react-query.tsx"), exports); void function register() { /* react-hot-loader/webpack */var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined; if (!reactHotLoader) { return; } /* eslint-disable camelcase, no-undef */ var webpackExports = typeof __webpack_exports__ !== 'undefined' ? __webpack_exports__ : exports; /* eslint-enable camelcase, no-undef */ if (!webpackExports) { return; } if (typeof webpackExports === 'function') { reactHotLoader.register(webpackExports, 'module.exports', "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/providers/index.ts"); return; } /* eslint-disable no-restricted-syntax */ for (var key in webpackExports) { /* eslint-enable no-restricted-syntax */if (!Object.prototype.hasOwnProperty.call(webpackExports, key)) { continue; } var namedExport = void 0; try { namedExport = webpackExports[key]; } catch (err) { continue; } reactHotLoader.register(namedExport, key, "/Users/pavel/work/cp-press-release-word-plugin/src/taskpane/providers/index.ts"); } }(); /***/ }), /***/ "./node_modules/es6-promise/dist/es6-promise.js": /*!******************************************************!*\ !*** ./node_modules/es6-promise/dist/es6-promise.js ***! \******************************************************/ /***/ (function(module, __unused_webpack_exports, __webpack_require__) { /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */ (function (global, factory) { true ? module.exports = factory() : 0; }(this, (function () { 'use strict'; function objectOrFunction(x) { var type = typeof x; return x !== null && (type === 'object' || type === 'function'); } function isFunction(x) { return typeof x === 'function'; } var _isArray = void 0; if (Array.isArray) { _isArray = Array.isArray; } else { _isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } var isArray = _isArray; var len = 0; var vertxNext = void 0; var customSchedulerFn = void 0; var asap = function asap(callback, arg) { queue[len] = callback; queue[len + 1] = arg; len += 2; if (len === 2) { // If len is 2, that means that we need to schedule an async flush. // If additional callbacks are queued before the queue is flushed, they // will be processed by this flush that we are scheduling. if (customSchedulerFn) { customSchedulerFn(flush); } else { scheduleFlush(); } } }; function setScheduler(scheduleFn) { customSchedulerFn = scheduleFn; } function setAsap(asapFn) { asap = asapFn; } var browserWindow = typeof window !== 'undefined' ? window : undefined; var browserGlobal = browserWindow || {}; var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; // test for web worker but not in IE10 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node function useNextTick() { // node version 0.10.x displays a deprecation warning when nextTick is used recursively // see https://github.com/cujojs/when/issues/410 for details return function () { return process.nextTick(flush); }; } // vertx function useVertxTimer() { if (typeof vertxNext !== 'undefined') { return function () { vertxNext(flush); }; } return useSetTimeout(); } function useMutationObserver() { var iterations = 0; var observer = new BrowserMutationObserver(flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function () { node.data = iterations = ++iterations % 2; }; } // web worker function useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = flush; return function () { return channel.port2.postMessage(0); }; } function useSetTimeout() { // Store setTimeout reference so es6-promise will be unaffected by // other code modifying setTimeout (like sinon.useFakeTimers()) var globalSetTimeout = setTimeout; return function () { return globalSetTimeout(flush, 1); }; } var queue = new Array(1000); function flush() { for (var i = 0; i < len; i += 2) { var callback = queue[i]; var arg = queue[i + 1]; callback(arg); queue[i] = undefined; queue[i + 1] = undefined; } len = 0; } function attemptVertx() { try { var vertx = Function('return this')().require('vertx'); vertxNext = vertx.runOnLoop || vertx.runOnContext; return useVertxTimer(); } catch (e) { return useSetTimeout(); } } var scheduleFlush = void 0; // Decide what async method to use to triggering processing of queued callbacks: if (isNode) { scheduleFlush = useNextTick(); } else if (BrowserMutationObserver) { scheduleFlush = useMutationObserver(); } else if (isWorker) { scheduleFlush = useMessageChannel(); } else if (browserWindow === undefined && "function" === 'function') { scheduleFlush = attemptVertx(); } else { scheduleFlush = useSetTimeout(); } function then(onFulfillment, onRejection) { var parent = this; var child = new this.constructor(noop); if (child[PROMISE_ID] === undefined) { makePromise(child); } var _state = parent._state; if (_state) { var callback = arguments[_state - 1]; asap(function () { return invokeCallback(_state, child, callback, parent._result); }); } else { subscribe(parent, child, onFulfillment, onRejection); } return child; } /** `Promise.resolve` returns a promise that will become resolved with the passed `value`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ resolve(1); }); promise.then(function(value){ // value === 1 }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.resolve(1); promise.then(function(value){ // value === 1 }); ``` @method resolve @static @param {Any} value value that the returned promise will be resolved with Useful for tooling. @return {Promise} a promise that will become fulfilled with the given `value` */ function resolve$1(object) { /*jshint validthis:true */ var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor(noop); resolve(promise, object); return promise; } var PROMISE_ID = Math.random().toString(36).substring(2); function noop() {} var PENDING = void 0; var FULFILLED = 1; var REJECTED = 2; function selfFulfillment() { return new TypeError("You cannot resolve a promise with itself"); } function cannotReturnOwn() { return new TypeError('A promises callback cannot return that same promise.'); } function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { try { then$$1.call(value, fulfillmentHandler, rejectionHandler); } catch (e) { return e; } } function handleForeignThenable(promise, thenable, then$$1) { asap(function (promise) { var sealed = false; var error = tryThen(then$$1, thenable, function (value) { if (sealed) { return; } sealed = true; if (thenable !== value) { resolve(promise, value); } else { fulfill(promise, value); } }, function (reason) { if (sealed) { return; } sealed = true; reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; reject(promise, error); } }, promise); } function handleOwnThenable(promise, thenable) { if (thenable._state === FULFILLED) { fulfill(promise, thenable._result); } else if (thenable._state === REJECTED) { reject(promise, thenable._result); } else { subscribe(thenable, undefined, function (value) { return resolve(promise, value); }, function (reason) { return reject(promise, reason); }); } } function handleMaybeThenable(promise, maybeThenable, then$$1) { if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { handleOwnThenable(promise, maybeThenable); } else { if (then$$1 === undefined) { fulfill(promise, maybeThenable); } else if (isFunction(then$$1)) { handleForeignThenable(promise, maybeThenable, then$$1); } else { fulfill(promise, maybeThenable); } } } function resolve(promise, value) { if (promise === value) { reject(promise, selfFulfillment()); } else if (objectOrFunction(value)) { var then$$1 = void 0; try { then$$1 = value.then; } catch (error) { reject(promise, error); return; } handleMaybeThenable(promise, value, then$$1); } else { fulfill(promise, value); } } function publishRejection(promise) { if (promise._onerror) { promise._onerror(promise._result); } publish(promise); } function fulfill(promise, value) { if (promise._state !== PENDING) { return; } promise._result = value; promise._state = FULFILLED; if (promise._subscribers.length !== 0) { asap(publish, promise); } } function reject(promise, reason) { if (promise._state !== PENDING) { return; } promise._state = REJECTED; promise._result = reason; asap(publishRejection, promise); } function subscribe(parent, child, onFulfillment, onRejection) { var _subscribers = parent._subscribers; var length = _subscribers.length; parent._onerror = null; _subscribers[length] = child; _subscribers[length + FULFILLED] = onFulfillment; _subscribers[length + REJECTED] = onRejection; if (length === 0 && parent._state) { asap(publish, parent); } } function publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (subscribers.length === 0) { return; } var child = void 0, callback = void 0, detail = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { invokeCallback(settled, child, callback, detail); } else { callback(detail); } } promise._subscribers.length = 0; } function invokeCallback(settled, promise, callback, detail) { var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true; if (hasCallback) { try { value = callback(detail); } catch (e) { succeeded = false; error = e; } if (promise === value) { reject(promise, cannotReturnOwn()); return; } } else { value = detail; } if (promise._state !== PENDING) { // noop } else if (hasCallback && succeeded) { resolve(promise, value); } else if (succeeded === false) { reject(promise, error); } else if (settled === FULFILLED) { fulfill(promise, value); } else if (settled === REJECTED) { reject(promise, value); } } function initializePromise(promise, resolver) { try { resolver(function resolvePromise(value) { resolve(promise, value); }, function rejectPromise(reason) { reject(promise, reason); }); } catch (e) { reject(promise, e); } } var id = 0; function nextId() { return id++; } function makePromise(promise) { promise[PROMISE_ID] = id++; promise._state = undefined; promise._result = undefined; promise._subscribers = []; } function validationError() { return new Error('Array Methods must be provided an Array'); } var Enumerator = function () { function Enumerator(Constructor, input) { this._instanceConstructor = Constructor; this.promise = new Constructor(noop); if (!this.promise[PROMISE_ID]) { makePromise(this.promise); } if (isArray(input)) { this.length = input.length; this._remaining = input.length; this._result = new Array(this.length); if (this.length === 0) { fulfill(this.promise, this._result); } else { this.length = this.length || 0; this._enumerate(input); if (this._remaining === 0) { fulfill(this.promise, this._result); } } } else { reject(this.promise, validationError()); } } Enumerator.prototype._enumerate = function _enumerate(input) { for (var i = 0; this._state === PENDING && i < input.length; i++) { this._eachEntry(input[i], i); } }; Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { var c = this._instanceConstructor; var resolve$$1 = c.resolve; if (resolve$$1 === resolve$1) { var _then = void 0; var error = void 0; var didError = false; try { _then = entry.then; } catch (e) { didError = true; error = e; } if (_then === then && entry._state !== PENDING) { this._settledAt(entry._state, i, entry._result); } else if (typeof _then !== 'function') { this._remaining--; this._result[i] = entry; } else if (c === Promise$1) { var promise = new c(noop); if (didError) { reject(promise, error); } else { handleMaybeThenable(promise, entry, _then); } this._willSettleAt(promise, i); } else { this._willSettleAt(new c(function (resolve$$1) { return resolve$$1(entry); }), i); } } else { this._willSettleAt(resolve$$1(entry), i); } }; Enumerator.prototype._settledAt = function _settledAt(state, i, value) { var promise = this.promise; if (promise._state === PENDING) { this._remaining--; if (state === REJECTED) { reject(promise, value); } else { this._result[i] = value; } } if (this._remaining === 0) { fulfill(promise, this._result); } }; Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { var enumerator = this; subscribe(promise, undefined, function (value) { return enumerator._settledAt(FULFILLED, i, value); }, function (reason) { return enumerator._settledAt(REJECTED, i, reason); }); }; return Enumerator; }(); /** `Promise.all` accepts an array of promises, and returns a new promise which is fulfilled with an array of fulfillment values for the passed promises, or rejected with the reason of the first passed promise to be rejected. It casts all elements of the passed iterable to promises as it runs this algorithm. Example: ```javascript let promise1 = resolve(1); let promise2 = resolve(2); let promise3 = resolve(3); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // The array here would be [ 1, 2, 3 ]; }); ``` If any of the `promises` given to `all` are rejected, the first promise that is rejected will be given as an argument to the returned promises's rejection handler. For example: Example: ```javascript let promise1 = resolve(1); let promise2 = reject(new Error("2")); let promise3 = reject(new Error("3")); let promises = [ promise1, promise2, promise3 ]; Promise.all(promises).then(function(array){ // Code here never runs because there are rejected promises! }, function(error) { // error.message === "2" }); ``` @method all @static @param {Array} entries array of promises @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} promise that is fulfilled when all `promises` have been fulfilled, or rejected if any of them become rejected. @static */ function all(entries) { return new Enumerator(this, entries).promise; } /** `Promise.race` returns a new promise which is settled in the same way as the first passed promise to settle. Example: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 2'); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // result === 'promise 2' because it was resolved before promise1 // was resolved. }); ``` `Promise.race` is deterministic in that only the state of the first settled promise matters. For example, even if other promises given to the `promises` array argument are resolved, but the first settled promise has become rejected before the other promises became fulfilled, the returned promise will become rejected: ```javascript let promise1 = new Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new Promise(function(resolve, reject){ setTimeout(function(){ reject(new Error('promise 2')); }, 100); }); Promise.race([promise1, promise2]).then(function(result){ // Code here never runs }, function(reason){ // reason.message === 'promise 2' because promise 2 became rejected before // promise 1 became fulfilled }); ``` An example real-world use case is implementing timeouts: ```javascript Promise.race([ajax('foo.json'), timeout(5000)]) ``` @method race @static @param {Array} promises array of promises to observe Useful for tooling. @return {Promise} a promise which settles in the same way as the first passed promise to settle. */ function race(entries) { /*jshint validthis:true */ var Constructor = this; if (!isArray(entries)) { return new Constructor(function (_, reject) { return reject(new TypeError('You must pass an array to race.')); }); } else { return new Constructor(function (resolve, reject) { var length = entries.length; for (var i = 0; i < length; i++) { Constructor.resolve(entries[i]).then(resolve, reject); } }); } } /** `Promise.reject` returns a promise rejected with the passed `reason`. It is shorthand for the following: ```javascript let promise = new Promise(function(resolve, reject){ reject(new Error('WHOOPS')); }); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = Promise.reject(new Error('WHOOPS')); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` @method reject @static @param {Any} reason value that the returned promise will be rejected with. Useful for tooling. @return {Promise} a promise rejected with the given `reason`. */ function reject$1(reason) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop); reject(promise, reason); return promise; } function needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. Terminology ----------- - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - `thenable` is an object or function that defines a `then` method. - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - `exception` is a value that is thrown using the throw statement. - `reason` is a value that indicates why a promise was rejected. - `settled` the final resting state of a promise, fulfilled or rejected. A promise can be in one of three states: pending, fulfilled, or rejected. Promises that are fulfilled have a fulfillment value and are in the fulfilled state. Promises that are rejected have a rejection reason and are in the rejected state. A fulfillment value is never a thenable. Promises can also be said to *resolve* a value. If this value is also a promise, then the original promise's settled state will match the value's settled state. So a promise that *resolves* a promise that rejects will itself reject, and a promise that *resolves* a promise that fulfills will itself fulfill. Basic Usage: ------------ ```js let promise = new Promise(function(resolve, reject) { // on success resolve(value); // on failure reject(reason); }); promise.then(function(value) { // on fulfillment }, function(reason) { // on rejection }); ``` Advanced Usage: --------------- Promises shine when abstracting away asynchronous interactions such as `XMLHttpRequest`s. ```js function getJSON(url) { return new Promise(function(resolve, reject){ let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onreadystatechange = handler; xhr.responseType = 'json'; xhr.setRequestHeader('Accept', 'application/json'); xhr.send(); function handler() { if (this.readyState === this.DONE) { if (this.status === 200) { resolve(this.response); } else { reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); } } }; }); } getJSON('/posts.json').then(function(json) { // on fulfillment }, function(reason) { // on rejection }); ``` Unlike callbacks, promises are great composable primitives. ```js Promise.all([ getJSON('/posts'), getJSON('/comments') ]).then(function(values){ values[0] // => postsJSON values[1] // => commentsJSON return values; }); ``` @class Promise @param {Function} resolver Useful for tooling. @constructor */ var Promise$1 = function () { function Promise(resolver) { this[PROMISE_ID] = nextId(); this._result = this._state = undefined; this._subscribers = []; if (noop !== resolver) { typeof resolver !== 'function' && needsResolver(); this instanceof Promise ? initializePromise(this, resolver) : needsNew(); } } /** The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. ```js findUser().then(function(user){ // user is available }, function(reason){ // user is unavailable, and you are given the reason why }); ``` Chaining -------- The return value of `then` is itself a promise. This second, 'downstream' promise is resolved with the return value of the first promise's fulfillment or rejection handler, or rejected if the handler throws an exception. ```js findUser().then(function (user) { return user.name; }, function (reason) { return 'default name'; }).then(function (userName) { // If `findUser` fulfilled, `userName` will be the user's name, otherwise it // will be `'default name'` }); findUser().then(function (user) { throw new Error('Found user, but still unhappy'); }, function (reason) { throw new Error('`findUser` rejected and we're unhappy'); }).then(function (value) { // never reached }, function (reason) { // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. }); ``` If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. ```js findUser().then(function (user) { throw new PedagogicalException('Upstream error'); }).then(function (value) { // never reached }).then(function (value) { // never reached }, function (reason) { // The `PedgagocialException` is propagated all the way down to here }); ``` Assimilation ------------ Sometimes the value you want to propagate to a downstream promise can only be retrieved asynchronously. This can be achieved by returning a promise in the fulfillment or rejection handler. The downstream promise will then be pending until the returned promise is settled. This is called *assimilation*. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // The user's comments are now available }); ``` If the assimliated promise rejects, then the downstream promise will also reject. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // If `findCommentsByAuthor` fulfills, we'll have the value here }, function (reason) { // If `findCommentsByAuthor` rejects, we'll have the reason here }); ``` Simple Example -------------- Synchronous Example ```javascript let result; try { result = findResult(); // success } catch(reason) { // failure } ``` Errback Example ```js findResult(function(result, err){ if (err) { // failure } else { // success } }); ``` Promise Example; ```javascript findResult().then(function(result){ // success }, function(reason){ // failure }); ``` Advanced Example -------------- Synchronous Example ```javascript let author, books; try { author = findAuthor(); books = findBooksByAuthor(author); // success } catch(reason) { // failure } ``` Errback Example ```js function foundBooks(books) { } function failure(reason) { } findAuthor(function(author, err){ if (err) { failure(err); // failure } else { try { findBoooksByAuthor(author, function(books, err) { if (err) { failure(err); } else { try { foundBooks(books); } catch(reason) { failure(reason); } } }); } catch(error) { failure(err); } // success } }); ``` Promise Example; ```javascript findAuthor(). then(findBooksByAuthor). then(function(books){ // found books }).catch(function(reason){ // something went wrong }); ``` @method then @param {Function} onFulfilled @param {Function} onRejected Useful for tooling. @return {Promise} */ /** `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same as the catch block of a try/catch statement. ```js function findAuthor(){ throw new Error('couldn't find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); ``` @method catch @param {Function} onRejection Useful for tooling. @return {Promise} */ Promise.prototype.catch = function _catch(onRejection) { return this.then(null, onRejection); }; /** `finally` will be invoked regardless of the promise's fate just as native try/catch/finally behaves Synchronous example: ```js findAuthor() { if (Math.random() > 0.5) { throw new Error(); } return new Author(); } try { return findAuthor(); // succeed or fail } catch(error) { return findOtherAuther(); } finally { // always runs // doesn't affect the return value } ``` Asynchronous example: ```js findAuthor().catch(function(reason){ return findOtherAuther(); }).finally(function(){ // author was either found, or not }); ``` @method finally @param {Function} callback @return {Promise} */ Promise.prototype.finally = function _finally(callback) { var promise = this; var constructor = promise.constructor; if (isFunction(callback)) { return promise.then(function (value) { return constructor.resolve(callback()).then(function () { return value; }); }, function (reason) { return constructor.resolve(callback()).then(function () { throw reason; }); }); } return promise.then(callback, callback); }; return Promise; }(); Promise$1.prototype.then = then; Promise$1.all = all; Promise$1.race = race; Promise$1.resolve = resolve$1; Promise$1.reject = reject$1; Promise$1._setScheduler = setScheduler; Promise$1._setAsap = setAsap; Promise$1._asap = asap; /*global self*/ function polyfill() { var local = void 0; if (typeof __webpack_require__.g !== 'undefined') { local = __webpack_require__.g; } else if (typeof self !== 'undefined') { local = self; } else { try { local = Function('return this')(); } catch (e) { throw new Error('polyfill failed because global object is unavailable in this environment'); } } var P = local.Promise; if (P) { var promiseToString = null; try { promiseToString = Object.prototype.toString.call(P.resolve()); } catch (e) { // silently ignored } if (promiseToString === '[object Promise]' && !P.cast) { return; } } local.Promise = Promise$1; } // Strange compat.. Promise$1.polyfill = polyfill; Promise$1.Promise = Promise$1; return Promise$1; }))); //# sourceMappingURL=es6-promise.map /***/ }), /***/ "./src/taskpane/taskpane.html": /*!************************************!*\ !*** ./src/taskpane/taskpane.html ***! \************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/html-loader/dist/runtime/getUrl.js */ "./node_modules/html-loader/dist/runtime/getUrl.js"); /* harmony import */ var _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0__); // Imports var ___HTML_LOADER_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(/*! ./taskpane.css */ "./src/taskpane/taskpane.css"), __webpack_require__.b); // Module var ___HTML_LOADER_REPLACEMENT_0___ = _node_modules_html_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_0___default()(___HTML_LOADER_IMPORT_0___); var code = "\n\n\n\n\n\n\n \n \n \n Press-release analyzer\n\n \n <" + "script type=\"text/javascript\" src=\"https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js\"><" + "/script>\n\n \n \n\n \n \n\n\n\n \n\n\n\n"; // Exports /* harmony default export */ __webpack_exports__["default"] = (code); /***/ }), /***/ "./node_modules/html-loader/dist/runtime/getUrl.js": /*!*********************************************************!*\ !*** ./node_modules/html-loader/dist/runtime/getUrl.js ***! \*********************************************************/ /***/ (function(module) { "use strict"; module.exports = function (url, options) { if (!options) { // eslint-disable-next-line no-param-reassign options = {}; } if (!url) { return url; } // eslint-disable-next-line no-underscore-dangle, no-param-reassign url = String(url.__esModule ? url.default : url); if (options.hash) { // eslint-disable-next-line no-param-reassign url += options.hash; } if (options.maybeNeedQuotes && /[\t\n\f\r "'=<>`]/.test(url)) { return "\"".concat(url, "\""); } return url; }; /***/ }), /***/ "./node_modules/object-assign/index.js": /*!*********************************************!*\ !*** ./node_modules/object-assign/index.js ***! \*********************************************/ /***/ (function(module) { "use strict"; /* object-assign (c) Sindre Sorhus @license MIT */ /* eslint-disable no-unused-vars */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === undefined) { throw new TypeError('Object.assign cannot be called with null or undefined'); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } // Detect buggy property enumeration order in older V8 versions. // https://bugs.chromium.org/p/v8/issues/detail?id=4118 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers test1[5] = 'de'; if (Object.getOwnPropertyNames(test1)[0] === '5') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test2 = {}; for (var i = 0; i < 10; i++) { test2['_' + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function (n) { return test2[n]; }); if (order2.join('') !== '0123456789') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test3 = {}; 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { return false; } return true; } catch (err) { // We don't expect any of the above to throw, but better to be safe. return false; } } module.exports = shouldUseNative() ? Object.assign : function (target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; /***/ }), /***/ "./node_modules/react-dom/cjs/react-dom.development.js": /*!*************************************************************!*\ !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /** @license React v17.0.2 * react-dom.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js"); var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js"); var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // by calls to these methods by a Babel plugin. // // In PROD (or in packages without access to React internals), // they are left as they are instead. function warn(format) { { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } printWarning('warn', format, args); } } function error(format) { { for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } printWarning('error', format, args); } } function printWarning(level, format, args) { // When changing this logic, you might want to also // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== '') { format += '%s'; args = args.concat([stack]); } var argsWithFormat = args.map(function (item) { return '' + item; }); // Careful: RN currently depends on this prefix argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it // breaks IE9: https://github.com/facebook/react/issues/13610 // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } } if (!React) { { throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." ); } } var FunctionComponent = 0; var ClassComponent = 1; var IndeterminateComponent = 2; // Before we know whether it is function or class var HostRoot = 3; // Root of a host tree. Could be nested inside another node. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. var HostComponent = 5; var HostText = 6; var Fragment = 7; var Mode = 8; var ContextConsumer = 9; var ContextProvider = 10; var ForwardRef = 11; var Profiler = 12; var SuspenseComponent = 13; var MemoComponent = 14; var SimpleMemoComponent = 15; var LazyComponent = 16; var IncompleteClassComponent = 17; var DehydratedFragment = 18; var SuspenseListComponent = 19; var FundamentalComponent = 20; var ScopeComponent = 21; var Block = 22; var OffscreenComponent = 23; var LegacyHiddenComponent = 24; // Filter certain DOM attributes (e.g. src, href) if their values are empty strings. var enableProfilerTimer = true; // Record durations for commit and passive effects phases. var enableFundamentalAPI = false; // Experimental Scope support. var enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects) var warnAboutStringRefs = false; var allNativeEvents = new Set(); /** * Mapping from registration name to event name */ var registrationNameDependencies = {}; /** * Mapping from lowercase registration names to the properly cased version, * used to warn in the case of missing event handlers. Available * only in true. * @type {Object} */ var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true function registerTwoPhaseEvent(registrationName, dependencies) { registerDirectEvent(registrationName, dependencies); registerDirectEvent(registrationName + 'Capture', dependencies); } function registerDirectEvent(registrationName, dependencies) { { if (registrationNameDependencies[registrationName]) { error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName); } } registrationNameDependencies[registrationName] = dependencies; { var lowerCasedName = registrationName.toLowerCase(); possibleRegistrationNames[lowerCasedName] = registrationName; if (registrationName === 'onDoubleClick') { possibleRegistrationNames.ondblclick = registrationName; } } for (var i = 0; i < dependencies.length; i++) { allNativeEvents.add(dependencies[i]); } } var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); // A reserved attribute. // It is handled by React separately and shouldn't be written to the DOM. var RESERVED = 0; // A simple string attribute. // Attributes that aren't in the filter are presumed to have this type. var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called // "enumerated" attributes with "true" and "false" as possible values. // When true, it should be set to a "true" string. // When false, it should be set to a "false" string. var BOOLEANISH_STRING = 2; // A real boolean attribute. // When true, it should be present (set either to an empty string or its name). // When false, it should be omitted. var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value. // When true, it should be present (set either to an empty string or its name). // When false, it should be omitted. // For any other value, should be present with that value. var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric. // When falsy, it should be removed. var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric. // When falsy, it should be removed. var POSITIVE_NUMERIC = 6; /* eslint-disable max-len */ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; /* eslint-enable max-len */ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; var ROOT_ATTRIBUTE_NAME = 'data-reactroot'; var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); var hasOwnProperty = Object.prototype.hasOwnProperty; var illegalAttributeNameCache = {}; var validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { return true; } if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { return false; } if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { validatedAttributeNameCache[attributeName] = true; return true; } illegalAttributeNameCache[attributeName] = true; { error('Invalid attribute name: `%s`', attributeName); } return false; } function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { if (propertyInfo !== null) { return propertyInfo.type === RESERVED; } if (isCustomComponentTag) { return false; } if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) { return true; } return false; } function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { if (propertyInfo !== null && propertyInfo.type === RESERVED) { return false; } switch (typeof value) { case 'function': // $FlowIssue symbol is perfectly valid here case 'symbol': // eslint-disable-line return true; case 'boolean': { if (isCustomComponentTag) { return false; } if (propertyInfo !== null) { return !propertyInfo.acceptsBooleans; } else { var prefix = name.toLowerCase().slice(0, 5); return prefix !== 'data-' && prefix !== 'aria-'; } } default: return false; } } function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { if (value === null || typeof value === 'undefined') { return true; } if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { return true; } if (isCustomComponentTag) { return false; } if (propertyInfo !== null) { switch (propertyInfo.type) { case BOOLEAN: return !value; case OVERLOADED_BOOLEAN: return value === false; case NUMERIC: return isNaN(value); case POSITIVE_NUMERIC: return isNaN(value) || value < 1; } } return false; } function getPropertyInfo(name) { return properties.hasOwnProperty(name) ? properties[name] : null; } function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) { this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; this.attributeName = attributeName; this.attributeNamespace = attributeNamespace; this.mustUseProperty = mustUseProperty; this.propertyName = name; this.type = type; this.sanitizeURL = sanitizeURL; this.removeEmptyString = removeEmptyString; } // When adding attributes to this list, be sure to also add them to // the `possibleStandardNames` module to ensure casing and incorrect // name warnings. var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM. var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular // elements (not just inputs). Now that ReactDOMInput assigns to the // defaultValue property -- do we need this? 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style']; reservedProps.forEach(function (name) { properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // A few React string attributes have a different name. // This is a mapping from React prop names to the attribute names. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) { var name = _ref[0], attributeName = _ref[1]; properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are "enumerated" HTML attributes that accept "true" and "false". // In React, we let users pass `true` and `false` even though technically // these aren't boolean attributes (they are coerced to strings). ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are "enumerated" SVG attributes that accept "true" and "false". // In React, we let users pass `true` and `false` even though technically // these aren't boolean attributes (they are coerced to strings). // Since these are SVG attributes, their attribute names are case-sensitive. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML boolean attributes. ['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM // on the client side because the browsers are inconsistent. Instead we call focus(). 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata 'itemScope'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are the few React props that we set as DOM properties // rather than attributes. These are all booleans. ['checked', // Note: `option.selected` is not updated if `select.multiple` is // disabled with `removeAttribute`. We have special logic for handling this. 'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that are "overloaded booleans": they behave like // booleans, but can also accept a string value. ['capture', 'download' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that must be positive numbers. ['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty name, // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These are HTML attributes that must be numbers. ['rowSpan', 'start'].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty name.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); var CAMELIZE = /[\-\:]([a-z])/g; var capitalize = function (token) { return token[1].toUpperCase(); }; // This is a list of all SVG attributes that need special casing, namespacing, // or boolean value assignment. Regular attributes that just accept strings // and have the same names are omitted, just like in the HTML attribute filter. // Some of these attributes can be hard to find. This list was created by // scraping the MDN documentation. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, null, // attributeNamespace false, // sanitizeURL false); }); // String SVG attributes with the xlink namespace. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL false); }); // String SVG attributes with the xml namespace. ['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list, // you'll need to set attributeName to name.toLowerCase() // instead in the assignment below. ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL false); }); // These attribute exists both in HTML and SVG. // The attribute name is case-sensitive in SVG so we can't just use // the React name like we do for attributes that exist only in HTML. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty attributeName.toLowerCase(), // attributeName null, // attributeNamespace false, // sanitizeURL false); }); // These attributes accept URLs. These must not allow javascript: URLS. // These will also need to accept Trusted Types object in the future. var xlinkHref = 'xlinkHref'; properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty 'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL false); ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty attributeName.toLowerCase(), // attributeName null, // attributeNamespace true, // sanitizeURL true); }); // and any newline or tab are filtered out as if they're not part of the URL. // https://url.spec.whatwg.org/#url-parsing // Tab or newline are defined as \r\n\t: // https://infra.spec.whatwg.org/#ascii-tab-or-newline // A C0 control is a code point in the range \u0000 NULL to \u001F // INFORMATION SEPARATOR ONE, inclusive: // https://infra.spec.whatwg.org/#c0-control-or-space /* eslint-disable max-len */ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; var didWarn = false; function sanitizeURL(url) { { if (!didWarn && isJavaScriptProtocol.test(url)) { didWarn = true; error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); } } } /** * Get the value for a property on a node. Only used in DEV for SSR validation. * The "expected" argument is used as a hint of what the expected value is. * Some properties have multiple equivalent values. */ function getValueForProperty(node, name, expected, propertyInfo) { { if (propertyInfo.mustUseProperty) { var propertyName = propertyInfo.propertyName; return node[propertyName]; } else { if ( propertyInfo.sanitizeURL) { // If we haven't fully disabled javascript: URLs, and if // the hydration is successful of a javascript: URL, we // still want to warn on the client. sanitizeURL('' + expected); } var attributeName = propertyInfo.attributeName; var stringValue = null; if (propertyInfo.type === OVERLOADED_BOOLEAN) { if (node.hasAttribute(attributeName)) { var value = node.getAttribute(attributeName); if (value === '') { return true; } if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { return value; } if (value === '' + expected) { return expected; } return value; } } else if (node.hasAttribute(attributeName)) { if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { // We had an attribute but shouldn't have had one, so read it // for the error message. return node.getAttribute(attributeName); } if (propertyInfo.type === BOOLEAN) { // If this was a boolean, it doesn't matter what the value is // the fact that we have it is the same as the expected. return expected; } // Even if this property uses a namespace we use getAttribute // because we assume its namespaced name is the same as our config. // To use getAttributeNS we need the local name which we don't have // in our config atm. stringValue = node.getAttribute(attributeName); } if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { return stringValue === null ? expected : stringValue; } else if (stringValue === '' + expected) { return expected; } else { return stringValue; } } } } /** * Get the value for a attribute on a node. Only used in DEV for SSR validation. * The third argument is used as a hint of what the expected value is. Some * attributes have multiple equivalent values. */ function getValueForAttribute(node, name, expected) { { if (!isAttributeNameSafe(name)) { return; } // If the object is an opaque reference ID, it's expected that // the next prop is different than the server value, so just return // expected if (isOpaqueHydratingObject(expected)) { return expected; } if (!node.hasAttribute(name)) { return expected === undefined ? undefined : null; } var value = node.getAttribute(name); if (value === '' + expected) { return expected; } return value; } } /** * Sets the value for a property on a node. * * @param {DOMElement} node * @param {string} name * @param {*} value */ function setValueForProperty(node, name, value, isCustomComponentTag) { var propertyInfo = getPropertyInfo(name); if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { return; } if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { value = null; } // If the prop isn't in the special list, treat it as a simple attribute. if (isCustomComponentTag || propertyInfo === null) { if (isAttributeNameSafe(name)) { var _attributeName = name; if (value === null) { node.removeAttribute(_attributeName); } else { node.setAttribute(_attributeName, '' + value); } } return; } var mustUseProperty = propertyInfo.mustUseProperty; if (mustUseProperty) { var propertyName = propertyInfo.propertyName; if (value === null) { var type = propertyInfo.type; node[propertyName] = type === BOOLEAN ? false : ''; } else { // Contrary to `setAttribute`, object properties are properly // `toString`ed by IE8/9. node[propertyName] = value; } return; } // The rest are treated as attributes with special cases. var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; if (value === null) { node.removeAttribute(attributeName); } else { var _type = propertyInfo.type; var attributeValue; if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { // If attribute type is boolean, we know for sure it won't be an execution sink // and we won't require Trusted Type here. attributeValue = ''; } else { // `setAttribute` with objects becomes only `[object]` in IE8/9, // ('' + value) makes it output the correct toString()-value. { attributeValue = '' + value; } if (propertyInfo.sanitizeURL) { sanitizeURL(attributeValue.toString()); } } if (attributeNamespace) { node.setAttributeNS(attributeNamespace, attributeName, attributeValue); } else { node.setAttribute(attributeName, attributeValue); } } } // ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. If there is no native Symbol // nor polyfill, then a plain number is used for performance. var REACT_ELEMENT_TYPE = 0xeac7; var REACT_PORTAL_TYPE = 0xeaca; var REACT_FRAGMENT_TYPE = 0xeacb; var REACT_STRICT_MODE_TYPE = 0xeacc; var REACT_PROFILER_TYPE = 0xead2; var REACT_PROVIDER_TYPE = 0xeacd; var REACT_CONTEXT_TYPE = 0xeace; var REACT_FORWARD_REF_TYPE = 0xead0; var REACT_SUSPENSE_TYPE = 0xead1; var REACT_SUSPENSE_LIST_TYPE = 0xead8; var REACT_MEMO_TYPE = 0xead3; var REACT_LAZY_TYPE = 0xead4; var REACT_BLOCK_TYPE = 0xead9; var REACT_SERVER_BLOCK_TYPE = 0xeada; var REACT_FUNDAMENTAL_TYPE = 0xead5; var REACT_SCOPE_TYPE = 0xead7; var REACT_OPAQUE_ID_TYPE = 0xeae0; var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1; var REACT_OFFSCREEN_TYPE = 0xeae2; var REACT_LEGACY_HIDDEN_TYPE = 0xeae3; if (typeof Symbol === 'function' && Symbol.for) { var symbolFor = Symbol.for; REACT_ELEMENT_TYPE = symbolFor('react.element'); REACT_PORTAL_TYPE = symbolFor('react.portal'); REACT_FRAGMENT_TYPE = symbolFor('react.fragment'); REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode'); REACT_PROFILER_TYPE = symbolFor('react.profiler'); REACT_PROVIDER_TYPE = symbolFor('react.provider'); REACT_CONTEXT_TYPE = symbolFor('react.context'); REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref'); REACT_SUSPENSE_TYPE = symbolFor('react.suspense'); REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list'); REACT_MEMO_TYPE = symbolFor('react.memo'); REACT_LAZY_TYPE = symbolFor('react.lazy'); REACT_BLOCK_TYPE = symbolFor('react.block'); REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block'); REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental'); REACT_SCOPE_TYPE = symbolFor('react.scope'); REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id'); REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode'); REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen'); REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden'); } var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; function getIteratorFn(maybeIterable) { if (maybeIterable === null || typeof maybeIterable !== 'object') { return null; } var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; if (typeof maybeIterator === 'function') { return maybeIterator; } return null; } // Helpers to patch console.logs to avoid logging during side-effect free // replaying on render function. This currently only patches the object // lazily which won't cover if the log function was extracted eagerly. // We could also eagerly patch the method. var disabledDepth = 0; var prevLog; var prevInfo; var prevWarn; var prevError; var prevGroup; var prevGroupCollapsed; var prevGroupEnd; function disabledLog() {} disabledLog.__reactDisabledLog = true; function disableLogs() { { if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ prevLog = console.log; prevInfo = console.info; prevWarn = console.warn; prevError = console.error; prevGroup = console.group; prevGroupCollapsed = console.groupCollapsed; prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 var props = { configurable: true, enumerable: true, value: disabledLog, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { info: props, log: props, warn: props, error: props, group: props, groupCollapsed: props, groupEnd: props }); /* eslint-enable react-internal/no-production-logging */ } disabledDepth++; } } function reenableLogs() { { disabledDepth--; if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ var props = { configurable: true, enumerable: true, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { log: _assign({}, props, { value: prevLog }), info: _assign({}, props, { value: prevInfo }), warn: _assign({}, props, { value: prevWarn }), error: _assign({}, props, { value: prevError }), group: _assign({}, props, { value: prevGroup }), groupCollapsed: _assign({}, props, { value: prevGroupCollapsed }), groupEnd: _assign({}, props, { value: prevGroupEnd }) }); /* eslint-enable react-internal/no-production-logging */ } if (disabledDepth < 0) { error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); } } } var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === undefined) { // Extract the VM specific prefix used by each line. try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ''; } } // We use the prefix to ensure our stacks line up with native stack frames. return '\n' + prefix + name; } } var reentry = false; var componentFrameCache; { var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; componentFrameCache = new PossiblyWeakMap(); } function describeNativeComponentFrame(fn, construct) { // If something asked for a stack inside a fake render, it should get ignored. if (!fn || reentry) { return ''; } { var frame = componentFrameCache.get(fn); if (frame !== undefined) { return frame; } } var control; reentry = true; var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined. Error.prepareStackTrace = undefined; var previousDispatcher; { previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. ReactCurrentDispatcher.current = null; disableLogs(); } try { // This should throw. if (construct) { // Something should be setting the props in the constructor. var Fake = function () { throw Error(); }; // $FlowFixMe Object.defineProperty(Fake.prototype, 'props', { set: function () { // We use a throwing setter instead of frozen or non-writable props // because that won't throw in a non-strict mode function. throw Error(); } }); if (typeof Reflect === 'object' && Reflect.construct) { // We construct a different control for this case to include any extra // frames added by the construct call. try { Reflect.construct(Fake, []); } catch (x) { control = x; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); } catch (x) { control = x; } fn.call(Fake.prototype); } } else { try { throw Error(); } catch (x) { control = x; } fn(); } } catch (sample) { // This is inlined manually because closure doesn't do it for us. if (sample && control && typeof sample.stack === 'string') { // This extracts the first frame from the sample that isn't also in the control. // Skipping one frame that we assume is the frame that calls the two. var sampleLines = sample.stack.split('\n'); var controlLines = control.stack.split('\n'); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { // We expect at least one stack frame to be shared. // Typically this will be the root most one. However, stack frames may be // cut off due to maximum stack limits. In this case, one maybe cut off // earlier than the other. We assume that the sample is longer or the same // and there for cut off earlier. So we should find the root most frame in // the sample somewhere in the control. c--; } for (; s >= 1 && c >= 0; s--, c--) { // Next we find the first one that isn't the same which should be the // frame that called our sample function and the control. if (sampleLines[s] !== controlLines[c]) { // In V8, the first line is describing the message but other VMs don't. // If we're about to return the first line, and the control is also on the same // line, that's a pretty good indicator that our sample threw at same line as // the control. I.e. before we entered the sample frame. So we ignore this result. // This can happen if you passed a class to function component, or non-function. if (s !== 1 || c !== 1) { do { s--; c--; // We may still have similar intermediate frames from the construct call. // The next one that isn't the same should be our match though. if (c < 0 || sampleLines[s] !== controlLines[c]) { // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); { if (typeof fn === 'function') { componentFrameCache.set(fn, _frame); } } // Return the line we found. return _frame; } } while (s >= 1 && c >= 0); } break; } } } } finally { reentry = false; { ReactCurrentDispatcher.current = previousDispatcher; reenableLogs(); } Error.prepareStackTrace = previousPrepareStackTrace; } // Fallback to just using the name if we couldn't make it throw. var name = fn ? fn.displayName || fn.name : ''; var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; { if (typeof fn === 'function') { componentFrameCache.set(fn, syntheticFrame); } } return syntheticFrame; } function describeClassComponentFrame(ctor, source, ownerFn) { { return describeNativeComponentFrame(ctor, true); } } function describeFunctionComponentFrame(fn, source, ownerFn) { { return describeNativeComponentFrame(fn, false); } } function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (type == null) { return ''; } if (typeof type === 'function') { { return describeNativeComponentFrame(type, shouldConstruct(type)); } } if (typeof type === 'string') { return describeBuiltInComponentFrame(type); } switch (type) { case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame('Suspense'); case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame('SuspenseList'); } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render); case REACT_MEMO_TYPE: // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_BLOCK_TYPE: return describeFunctionComponentFrame(type._render); case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } } } return ''; } function describeFiber(fiber) { var owner = fiber._debugOwner ? fiber._debugOwner.type : null ; var source = fiber._debugSource ; switch (fiber.tag) { case HostComponent: return describeBuiltInComponentFrame(fiber.type); case LazyComponent: return describeBuiltInComponentFrame('Lazy'); case SuspenseComponent: return describeBuiltInComponentFrame('Suspense'); case SuspenseListComponent: return describeBuiltInComponentFrame('SuspenseList'); case FunctionComponent: case IndeterminateComponent: case SimpleMemoComponent: return describeFunctionComponentFrame(fiber.type); case ForwardRef: return describeFunctionComponentFrame(fiber.type.render); case Block: return describeFunctionComponentFrame(fiber.type._render); case ClassComponent: return describeClassComponentFrame(fiber.type); default: return ''; } } function getStackByFiberInDevAndProd(workInProgress) { try { var info = ''; var node = workInProgress; do { info += describeFiber(node); node = node.return; } while (node); return info; } catch (x) { return '\nError generating stack: ' + x.message + '\n' + x.stack; } } function getWrappedName(outerType, innerType, wrapperName) { var functionName = innerType.displayName || innerType.name || ''; return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); } function getContextName(type) { return type.displayName || 'Context'; } function getComponentName(type) { if (type == null) { // Host root, text node or just invalid type. return null; } { if (typeof type.tag === 'number') { error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); } } if (typeof type === 'function') { return type.displayName || type.name || null; } if (typeof type === 'string') { return type; } switch (type) { case REACT_FRAGMENT_TYPE: return 'Fragment'; case REACT_PORTAL_TYPE: return 'Portal'; case REACT_PROFILER_TYPE: return 'Profiler'; case REACT_STRICT_MODE_TYPE: return 'StrictMode'; case REACT_SUSPENSE_TYPE: return 'Suspense'; case REACT_SUSPENSE_LIST_TYPE: return 'SuspenseList'; } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; return getContextName(context) + '.Consumer'; case REACT_PROVIDER_TYPE: var provider = type; return getContextName(provider._context) + '.Provider'; case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, 'ForwardRef'); case REACT_MEMO_TYPE: return getComponentName(type.type); case REACT_BLOCK_TYPE: return getComponentName(type._render); case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { return getComponentName(init(payload)); } catch (x) { return null; } } } } return null; } var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var current = null; var isRendering = false; function getCurrentFiberOwnerNameInDevOrNull() { { if (current === null) { return null; } var owner = current._debugOwner; if (owner !== null && typeof owner !== 'undefined') { return getComponentName(owner.type); } } return null; } function getCurrentFiberStackInDev() { { if (current === null) { return ''; } // Safe because if current fiber exists, we are reconciling, // and it is guaranteed to be the work-in-progress version. return getStackByFiberInDevAndProd(current); } } function resetCurrentFiber() { { ReactDebugCurrentFrame.getCurrentStack = null; current = null; isRendering = false; } } function setCurrentFiber(fiber) { { ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev; current = fiber; isRendering = false; } } function setIsRendering(rendering) { { isRendering = rendering; } } function getIsRendering() { { return isRendering; } } // Flow does not allow string concatenation of most non-string types. To work // around this limitation, we use an opaque type that can only be obtained by // passing the value through getToStringValue first. function toString(value) { return '' + value; } function getToStringValue(value) { switch (typeof value) { case 'boolean': case 'number': case 'object': case 'string': case 'undefined': return value; default: // function, symbol are assigned as empty strings return ''; } } var hasReadOnlyValue = { button: true, checkbox: true, image: true, hidden: true, radio: true, reset: true, submit: true }; function checkControlledValueProps(tagName, props) { { if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) { error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); } if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) { error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); } } } function isCheckable(elem) { var type = elem.type; var nodeName = elem.nodeName; return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); } function getTracker(node) { return node._valueTracker; } function detachTracker(node) { node._valueTracker = null; } function getValueFromNode(node) { var value = ''; if (!node) { return value; } if (isCheckable(node)) { value = node.checked ? 'true' : 'false'; } else { value = node.value; } return value; } function trackValueOnNode(node) { var valueField = isCheckable(node) ? 'checked' : 'value'; var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail // and don't track value will cause over reporting of changes, // but it's better then a hard failure // (needed for certain tests that spyOn input values and Safari) if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { return; } var get = descriptor.get, set = descriptor.set; Object.defineProperty(node, valueField, { configurable: true, get: function () { return get.call(this); }, set: function (value) { currentValue = '' + value; set.call(this, value); } }); // We could've passed this the first time // but it triggers a bug in IE11 and Edge 14/15. // Calling defineProperty() again should be equivalent. // https://github.com/facebook/react/issues/11768 Object.defineProperty(node, valueField, { enumerable: descriptor.enumerable }); var tracker = { getValue: function () { return currentValue; }, setValue: function (value) { currentValue = '' + value; }, stopTracking: function () { detachTracker(node); delete node[valueField]; } }; return tracker; } function track(node) { if (getTracker(node)) { return; } // TODO: Once it's just Fiber we can move this to node._wrapperState node._valueTracker = trackValueOnNode(node); } function updateValueIfChanged(node) { if (!node) { return false; } var tracker = getTracker(node); // if there is no tracker at this point it's unlikely // that trying again will succeed if (!tracker) { return true; } var lastValue = tracker.getValue(); var nextValue = getValueFromNode(node); if (nextValue !== lastValue) { tracker.setValue(nextValue); return true; } return false; } function getActiveElement(doc) { doc = doc || (typeof document !== 'undefined' ? document : undefined); if (typeof doc === 'undefined') { return null; } try { return doc.activeElement || doc.body; } catch (e) { return doc.body; } } var didWarnValueDefaultValue = false; var didWarnCheckedDefaultChecked = false; var didWarnControlledToUncontrolled = false; var didWarnUncontrolledToControlled = false; function isControlled(props) { var usesChecked = props.type === 'checkbox' || props.type === 'radio'; return usesChecked ? props.checked != null : props.value != null; } /** * Implements an host component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. * * If `checked` or `value` are not supplied (or null/undefined), user actions * that affect the checked state or value will trigger updates to the element. * * If they are supplied (and not null/undefined), the rendered element will not * trigger updates to the element. Instead, the props must change in order for * the rendered element to be updated. * * The rendered element will be initialized as unchecked (or `defaultChecked`) * with an empty value (or `defaultValue`). * * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html */ function getHostProps(element, props) { var node = element; var checked = props.checked; var hostProps = _assign({}, props, { defaultChecked: undefined, defaultValue: undefined, value: undefined, checked: checked != null ? checked : node._wrapperState.initialChecked }); return hostProps; } function initWrapperState(element, props) { { checkControlledValueProps('input', props); if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); didWarnCheckedDefaultChecked = true; } if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); didWarnValueDefaultValue = true; } } var node = element; var defaultValue = props.defaultValue == null ? '' : props.defaultValue; node._wrapperState = { initialChecked: props.checked != null ? props.checked : props.defaultChecked, initialValue: getToStringValue(props.value != null ? props.value : defaultValue), controlled: isControlled(props) }; } function updateChecked(element, props) { var node = element; var checked = props.checked; if (checked != null) { setValueForProperty(node, 'checked', checked, false); } } function updateWrapper(element, props) { var node = element; { var controlled = isControlled(props); if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components'); didWarnUncontrolledToControlled = true; } if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components'); didWarnControlledToUncontrolled = true; } } updateChecked(element, props); var value = getToStringValue(props.value); var type = props.type; if (value != null) { if (type === 'number') { if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible. // eslint-disable-next-line node.value != value) { node.value = toString(value); } } else if (node.value !== toString(value)) { node.value = toString(value); } } else if (type === 'submit' || type === 'reset') { // Submit/reset inputs need the attribute removed completely to avoid // blank-text buttons. node.removeAttribute('value'); return; } { // When syncing the value attribute, the value comes from a cascade of // properties: // 1. The value React property // 2. The defaultValue React property // 3. Otherwise there should be no change if (props.hasOwnProperty('value')) { setDefaultValue(node, props.type, value); } else if (props.hasOwnProperty('defaultValue')) { setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); } } { // When syncing the checked attribute, it only changes when it needs // to be removed, such as transitioning from a checkbox into a text input if (props.checked == null && props.defaultChecked != null) { node.defaultChecked = !!props.defaultChecked; } } } function postMountWrapper(element, props, isHydrating) { var node = element; // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) { var type = props.type; var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the // default value provided by the browser. See: #12872 if (isButton && (props.value === undefined || props.value === null)) { return; } var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input // from being lost during SSR hydration. if (!isHydrating) { { // When syncing the value attribute, the value property should use // the wrapperState._initialValue property. This uses: // // 1. The value React property when present // 2. The defaultValue React property when present // 3. An empty string if (initialValue !== node.value) { node.value = initialValue; } } } { // Otherwise, the value attribute is synchronized to the property, // so we assign defaultValue to the same thing as the value property // assignment step above. node.defaultValue = initialValue; } } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug // this is needed to work around a chrome bug where setting defaultChecked // will sometimes influence the value of checked (even after detachment). // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 // We need to temporarily unset name to avoid disrupting radio button groups. var name = node.name; if (name !== '') { node.name = ''; } { // When syncing the checked attribute, both the checked property and // attribute are assigned at the same time using defaultChecked. This uses: // // 1. The checked React property when present // 2. The defaultChecked React property when present // 3. Otherwise, false node.defaultChecked = !node.defaultChecked; node.defaultChecked = !!node._wrapperState.initialChecked; } if (name !== '') { node.name = name; } } function restoreControlledState(element, props) { var node = element; updateWrapper(node, props); updateNamedCousins(node, props); } function updateNamedCousins(rootNode, props) { var name = props.name; if (props.type === 'radio' && name != null) { var queryRoot = rootNode; while (queryRoot.parentNode) { queryRoot = queryRoot.parentNode; } // If `rootNode.form` was non-null, then we could try `form.elements`, // but that sometimes behaves strangely in IE8. We could also try using // `form.getElementsByName`, but that will only return direct children // and won't include inputs that use the HTML5 `form=` attribute. Since // the input might not even be in a form. It might not even be in the // document. Let's just use the local `querySelectorAll` to ensure we don't // miss anything. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); for (var i = 0; i < group.length; i++) { var otherNode = group[i]; if (otherNode === rootNode || otherNode.form !== rootNode.form) { continue; } // This will throw if radio buttons rendered by different copies of React // and the same name are rendered into the same form (same as #1939). // That's probably okay; we don't support it just as we don't support // mixing React radio buttons with non-React ones. var otherProps = getFiberCurrentPropsFromNode(otherNode); if (!otherProps) { { throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." ); } } // We need update the tracked value on the named cousin since the value // was changed but the input saw no event or value set updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that // was previously checked to update will cause it to be come re-checked // as appropriate. updateWrapper(otherNode, otherProps); } } } // In Chrome, assigning defaultValue to certain input types triggers input validation. // For number inputs, the display value loses trailing decimal points. For email inputs, // Chrome raises "The specified value is not a valid email address". // // Here we check to see if the defaultValue has actually changed, avoiding these problems // when the user is inputting text // // https://github.com/facebook/react/issues/7253 function setDefaultValue(node, type, value) { if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js type !== 'number' || getActiveElement(node.ownerDocument) !== node) { if (value == null) { node.defaultValue = toString(node._wrapperState.initialValue); } else if (node.defaultValue !== toString(value)) { node.defaultValue = toString(value); } } } var didWarnSelectedSetOnOption = false; var didWarnInvalidChild = false; function flattenChildren(children) { var content = ''; // Flatten children. We'll warn if they are invalid // during validateProps() which runs for hydration too. // Note that this would throw on non-element objects. // Elements are stringified (which is normally irrelevant // but matters for ). React.Children.forEach(children, function (child) { if (child == null) { return; } content += child; // Note: we don't warn about invalid children here. // Instead, this is done separately below so that // it happens during the hydration code path too. }); return content; } /** * Implements an host component that warns when `selected` is set. */ function validateProps(element, props) { { // This mirrors the code path above, but runs for hydration too. // Warn about invalid children here so that client and hydration are consistent. // TODO: this seems like it could cause a DEV-only throw for hydration // if children contains a non-element object. We should try to avoid that. if (typeof props.children === 'object' && props.children !== null) { React.Children.forEach(props.children, function (child) { if (child == null) { return; } if (typeof child === 'string' || typeof child === 'number') { return; } if (typeof child.type !== 'string') { return; } if (!didWarnInvalidChild) { didWarnInvalidChild = true; error('Only strings and numbers are supported as children.'); } }); } // TODO: Remove support for `selected` in . if (props.selected != null && !didWarnSelectedSetOnOption) { error('Use the `defaultValue` or `value` props on instead of ' + 'setting `selected` on .'); didWarnSelectedSetOnOption = true; } } } function postMountWrapper$1(element, props) { // value="" should make a value attribute (#6219) if (props.value != null) { element.setAttribute('value', toString(getToStringValue(props.value))); } } function getHostProps$1(element, props) { var hostProps = _assign({ children: undefined }, props); var content = flattenChildren(props.children); if (content) { hostProps.children = content; } return hostProps; } var didWarnValueDefaultValue$1; { didWarnValueDefaultValue$1 = false; } function getDeclarationErrorAddendum() { var ownerName = getCurrentFiberOwnerNameInDevOrNull(); if (ownerName) { return '\n\nCheck the render method of `' + ownerName + '`.'; } return ''; } var valuePropNames = ['value', 'defaultValue']; /** * Validation function for `value` and `defaultValue`. */ function checkSelectPropTypes(props) { { checkControlledValueProps('select', props); for (var i = 0; i < valuePropNames.length; i++) { var propName = valuePropNames[i]; if (props[propName] == null) { continue; } var isArray = Array.isArray(props[propName]); if (props.multiple && !isArray) { error('The `%s` prop supplied to must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum()); } else if (!props.multiple && isArray) { error('The `%s` prop supplied to must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum()); } } } } function updateOptions(node, multiple, propValue, setDefaultSelected) { var options = node.options; if (multiple) { var selectedValues = propValue; var selectedValue = {}; for (var i = 0; i < selectedValues.length; i++) { // Prefix to avoid chaos with special keys. selectedValue['$' + selectedValues[i]] = true; } for (var _i = 0; _i < options.length; _i++) { var selected = selectedValue.hasOwnProperty('$' + options[_i].value); if (options[_i].selected !== selected) { options[_i].selected = selected; } if (selected && setDefaultSelected) { options[_i].defaultSelected = true; } } } else { // Do not set `select.value` as exact behavior isn't consistent across all // browsers for all cases. var _selectedValue = toString(getToStringValue(propValue)); var defaultSelected = null; for (var _i2 = 0; _i2 < options.length; _i2++) { if (options[_i2].value === _selectedValue) { options[_i2].selected = true; if (setDefaultSelected) { options[_i2].defaultSelected = true; } return; } if (defaultSelected === null && !options[_i2].disabled) { defaultSelected = options[_i2]; } } if (defaultSelected !== null) { defaultSelected.selected = true; } } } /** * Implements a host component that allows optionally setting the * props `value` and `defaultValue`. If `multiple` is false, the prop must be a * stringable. If `multiple` is true, the prop must be an array of stringables. * * If `value` is not supplied (or null/undefined), user actions that change the * selected option will trigger updates to the rendered options. * * If it is supplied (and not null/undefined), the rendered options will not * update in response to user actions. Instead, the `value` prop must change in * order for the rendered options to update. * * If `defaultValue` is provided, any options with the supplied values will be * selected. */ function getHostProps$2(element, props) { return _assign({}, props, { value: undefined }); } function initWrapperState$1(element, props) { var node = element; { checkSelectPropTypes(props); } node._wrapperState = { wasMultiple: !!props.multiple }; { if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) { error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components'); didWarnValueDefaultValue$1 = true; } } } function postMountWrapper$2(element, props) { var node = element; node.multiple = !!props.multiple; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } else if (props.defaultValue != null) { updateOptions(node, !!props.multiple, props.defaultValue, true); } } function postUpdateWrapper(element, props) { var node = element; var wasMultiple = node._wrapperState.wasMultiple; node._wrapperState.wasMultiple = !!props.multiple; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } else if (wasMultiple !== !!props.multiple) { // For simplicity, reapply `defaultValue` if `multiple` is toggled. if (props.defaultValue != null) { updateOptions(node, !!props.multiple, props.defaultValue, true); } else { // Revert the select back to its default unselected state. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false); } } } function restoreControlledState$1(element, props) { var node = element; var value = props.value; if (value != null) { updateOptions(node, !!props.multiple, value, false); } } var didWarnValDefaultVal = false; /** * Implements a host component that allows setting `value`, and * `defaultValue`. This differs from the traditional DOM API because value is * usually set as PCDATA children. * * If `value` is not supplied (or null/undefined), user actions that affect the * value will trigger updates to the element. * * If `value` is supplied (and not null/undefined), the rendered element will * not trigger updates to the element. Instead, the `value` prop must change in * order for the rendered element to be updated. * * The rendered element will be initialized with an empty value, the prop * `defaultValue` if specified, or the children content (deprecated). */ function getHostProps$3(element, props) { var node = element; if (!(props.dangerouslySetInnerHTML == null)) { { throw Error( "`dangerouslySetInnerHTML` does not make sense on ." ); } } // Always set children to the same thing. In IE9, the selection range will // get reset if `textContent` is mutated. We could add a check in setTextContent // to only set the value if/when the value differs from the node value (which would // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this // solution. The value can be a boolean or object so that's why it's forced // to be a string. var hostProps = _assign({}, props, { value: undefined, defaultValue: undefined, children: toString(node._wrapperState.initialValue) }); return hostProps; } function initWrapperState$2(element, props) { var node = element; { checkControlledValueProps('textarea', props); if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) { error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component'); didWarnValDefaultVal = true; } } var initialValue = props.value; // Only bother fetching default value if we're going to use it if (initialValue == null) { var children = props.children, defaultValue = props.defaultValue; if (children != null) { { error('Use the `defaultValue` or `value` props instead of setting ' + 'children on .'); } { if (!(defaultValue == null)) { { throw Error( "If you supply `defaultValue` on a , do not pass children." ); } } if (Array.isArray(children)) { if (!(children.length <= 1)) { { throw Error( " can only have at most one child." ); } } children = children[0]; } defaultValue = children; } } if (defaultValue == null) { defaultValue = ''; } initialValue = defaultValue; } node._wrapperState = { initialValue: getToStringValue(initialValue) }; } function updateWrapper$1(element, props) { var node = element; var value = getToStringValue(props.value); var defaultValue = getToStringValue(props.defaultValue); if (value != null) { // Cast `value` to a string to ensure the value is set correctly. While // browsers typically do this as necessary, jsdom doesn't. var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed if (newValue !== node.value) { node.value = newValue; } if (props.defaultValue == null && node.defaultValue !== newValue) { node.defaultValue = newValue; } } if (defaultValue != null) { node.defaultValue = toString(defaultValue); } } function postMountWrapper$3(element, props) { var node = element; // This is in postMount because we need access to the DOM node, which is not // available until after the component has mounted. var textContent = node.textContent; // Only set node.value if textContent is equal to the expected // initial value. In IE10/IE11 there is a bug where the placeholder attribute // will populate textContent as well. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/ if (textContent === node._wrapperState.initialValue) { if (textContent !== '' && textContent !== null) { node.value = textContent; } } } function restoreControlledState$2(element, props) { // DOM component is still mounted; update updateWrapper$1(element, props); } var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; var Namespaces = { html: HTML_NAMESPACE, mathml: MATH_NAMESPACE, svg: SVG_NAMESPACE }; // Assumes there is no parent namespace. function getIntrinsicNamespace(type) { switch (type) { case 'svg': return SVG_NAMESPACE; case 'math': return MATH_NAMESPACE; default: return HTML_NAMESPACE; } } function getChildNamespace(parentNamespace, type) { if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { // No (or default) parent namespace: potential entry point. return getIntrinsicNamespace(type); } if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') { // We're leaving SVG. return HTML_NAMESPACE; } // By default, pass namespace below. return parentNamespace; } /* globals MSApp */ /** * Create a function which has 'unsafe' privileges (required by windows8 apps) */ var createMicrosoftUnsafeLocalFunction = function (func) { if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) { return function (arg0, arg1, arg2, arg3) { MSApp.execUnsafeLocalFunction(function () { return func(arg0, arg1, arg2, arg3); }); }; } else { return func; } }; var reusableSVGContainer; /** * Set the innerHTML property of a node * * @param {DOMElement} node * @param {string} html * @internal */ var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) { if (node.namespaceURI === Namespaces.svg) { if (!('innerHTML' in node)) { // IE does not have innerHTML for SVG nodes, so instead we inject the // new markup in a temp node and then move the child nodes across into // the target node reusableSVGContainer = reusableSVGContainer || document.createElement('div'); reusableSVGContainer.innerHTML = '' + html.valueOf().toString() + ''; var svgNode = reusableSVGContainer.firstChild; while (node.firstChild) { node.removeChild(node.firstChild); } while (svgNode.firstChild) { node.appendChild(svgNode.firstChild); } return; } } node.innerHTML = html; }); /** * HTML nodeType values that represent the type of the node */ var ELEMENT_NODE = 1; var TEXT_NODE = 3; var COMMENT_NODE = 8; var DOCUMENT_NODE = 9; var DOCUMENT_FRAGMENT_NODE = 11; /** * Set the textContent property of a node. For text updates, it's faster * to set the `nodeValue` of the Text node directly instead of using * `.textContent` which will remove the existing node and create a new one. * * @param {DOMElement} node * @param {string} text * @internal */ var setTextContent = function (node, text) { if (text) { var firstChild = node.firstChild; if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { firstChild.nodeValue = text; return; } } node.textContent = text; }; // List derived from Gecko source code: // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js var shorthandToLonghand = { animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'], background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'], backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'], border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'], borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'], borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'], borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'], borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'], borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'], borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'], borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'], borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'], borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'], borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'], borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'], borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'], borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'], columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'], columns: ['columnCount', 'columnWidth'], flex: ['flexBasis', 'flexGrow', 'flexShrink'], flexFlow: ['flexDirection', 'flexWrap'], font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'], fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'], gap: ['columnGap', 'rowGap'], grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'], gridColumn: ['gridColumnEnd', 'gridColumnStart'], gridColumnGap: ['columnGap'], gridGap: ['columnGap', 'rowGap'], gridRow: ['gridRowEnd', 'gridRowStart'], gridRowGap: ['rowGap'], gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'], listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'], margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'], marker: ['markerEnd', 'markerMid', 'markerStart'], mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'], maskPosition: ['maskPositionX', 'maskPositionY'], outline: ['outlineColor', 'outlineStyle', 'outlineWidth'], overflow: ['overflowX', 'overflowY'], padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'], placeContent: ['alignContent', 'justifyContent'], placeItems: ['alignItems', 'justifyItems'], placeSelf: ['alignSelf', 'justifySelf'], textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'], textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'], transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'], wordWrap: ['overflowWrap'] }; /** * CSS properties which accept numbers but are not in units of "px". */ var isUnitlessNumber = { animationIterationCount: true, borderImageOutset: true, borderImageSlice: true, borderImageWidth: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, columns: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, gridArea: true, gridRow: true, gridRowEnd: true, gridRowSpan: true, gridRowStart: true, gridColumn: true, gridColumnEnd: true, gridColumnSpan: true, gridColumnStart: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, // SVG-related properties fillOpacity: true, floodOpacity: true, stopOpacity: true, strokeDasharray: true, strokeDashoffset: true, strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true }; /** * @param {string} prefix vendor-specific prefix, eg: Webkit * @param {string} key style name, eg: transitionDuration * @return {string} style name prefixed with `prefix`, properly camelCased, eg: * WebkitTransitionDuration */ function prefixKey(prefix, key) { return prefix + key.charAt(0).toUpperCase() + key.substring(1); } /** * Support style names that may come passed in prefixed by adding permutations * of vendor prefixes. */ var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an // infinite loop, because it iterates over the newly added props too. Object.keys(isUnitlessNumber).forEach(function (prop) { prefixes.forEach(function (prefix) { isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; }); }); /** * Convert a value into the proper css writable value. The style name `name` * should be logical (no hyphens), as specified * in `CSSProperty.isUnitlessNumber`. * * @param {string} name CSS property name such as `topMargin`. * @param {*} value CSS property value such as `10px`. * @return {string} Normalized style value with dimensions applied. */ function dangerousStyleValue(name, value, isCustomProperty) { // Note that we've removed escapeTextForBrowser() calls here since the // whole string will be escaped when the attribute is injected into // the markup. If you provide unsafe user data here they can inject // arbitrary CSS which may be problematic (I couldn't repro this): // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/ // This is not an XSS hole but instead a potential CSS injection issue // which has lead to a greater discussion about how we're going to // trust URLs moving forward. See #2115901 var isEmpty = value == null || typeof value === 'boolean' || value === ''; if (isEmpty) { return ''; } if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers } return ('' + value).trim(); } var uppercasePattern = /([A-Z])/g; var msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix * is converted to `-ms-`. */ function hyphenateStyleName(name) { return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); } var warnValidStyle = function () {}; { // 'msTransform' is correct, but the other prefixes should be capitalized var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; var msPattern$1 = /^-ms-/; var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon var badStyleValueWithSemicolonPattern = /;\s*$/; var warnedStyleNames = {}; var warnedStyleValues = {}; var warnedForNaNValue = false; var warnedForInfinityValue = false; var camelize = function (string) { return string.replace(hyphenPattern, function (_, character) { return character.toUpperCase(); }); }; var warnHyphenatedStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix // is converted to lowercase `ms`. camelize(name.replace(msPattern$1, 'ms-'))); }; var warnBadVendoredStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1)); }; var warnStyleValueWithSemicolon = function (name, value) { if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { return; } warnedStyleValues[value] = true; error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, '')); }; var warnStyleValueIsNaN = function (name, value) { if (warnedForNaNValue) { return; } warnedForNaNValue = true; error('`NaN` is an invalid value for the `%s` css style property.', name); }; var warnStyleValueIsInfinity = function (name, value) { if (warnedForInfinityValue) { return; } warnedForInfinityValue = true; error('`Infinity` is an invalid value for the `%s` css style property.', name); }; warnValidStyle = function (name, value) { if (name.indexOf('-') > -1) { warnHyphenatedStyleName(name); } else if (badVendoredStyleNamePattern.test(name)) { warnBadVendoredStyleName(name); } else if (badStyleValueWithSemicolonPattern.test(value)) { warnStyleValueWithSemicolon(name, value); } if (typeof value === 'number') { if (isNaN(value)) { warnStyleValueIsNaN(name, value); } else if (!isFinite(value)) { warnStyleValueIsInfinity(name, value); } } }; } var warnValidStyle$1 = warnValidStyle; /** * Operations for dealing with CSS properties. */ /** * This creates a string that is expected to be equivalent to the style * attribute generated by server-side rendering. It by-passes warnings and * security checks so it's not safe to use this value for anything other than * comparison. It is only used in DEV for SSR validation. */ function createDangerousStringForStyles(styles) { { var serialized = ''; var delimiter = ''; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } var styleValue = styles[styleName]; if (styleValue != null) { var isCustomProperty = styleName.indexOf('--') === 0; serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':'; serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty); delimiter = ';'; } } return serialized || null; } } /** * Sets the value for multiple styles on a node. If a value is specified as * '' (empty string), the corresponding style property will be unset. * * @param {DOMElement} node * @param {object} styles */ function setValueForStyles(node, styles) { var style = node.style; for (var styleName in styles) { if (!styles.hasOwnProperty(styleName)) { continue; } var isCustomProperty = styleName.indexOf('--') === 0; { if (!isCustomProperty) { warnValidStyle$1(styleName, styles[styleName]); } } var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty); if (styleName === 'float') { styleName = 'cssFloat'; } if (isCustomProperty) { style.setProperty(styleName, styleValue); } else { style[styleName] = styleValue; } } } function isValueEmpty(value) { return value == null || typeof value === 'boolean' || value === ''; } /** * Given {color: 'red', overflow: 'hidden'} returns { * color: 'color', * overflowX: 'overflow', * overflowY: 'overflow', * }. This can be read as "the overflowY property was set by the overflow * shorthand". That is, the values are the property that each was derived from. */ function expandShorthandMap(styles) { var expanded = {}; for (var key in styles) { var longhands = shorthandToLonghand[key] || [key]; for (var i = 0; i < longhands.length; i++) { expanded[longhands[i]] = key; } } return expanded; } /** * When mixing shorthand and longhand property names, we warn during updates if * we expect an incorrect result to occur. In particular, we warn for: * * Updating a shorthand property (longhand gets overwritten): * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'} * becomes .style.font = 'baz' * Removing a shorthand property (longhand gets lost too): * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'} * becomes .style.font = '' * Removing a longhand property (should revert to shorthand; doesn't): * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'} * becomes .style.fontVariant = '' */ function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) { { if (!nextStyles) { return; } var expandedUpdates = expandShorthandMap(styleUpdates); var expandedStyles = expandShorthandMap(nextStyles); var warnedAbout = {}; for (var key in expandedUpdates) { var originalKey = expandedUpdates[key]; var correctOriginalKey = expandedStyles[key]; if (correctOriginalKey && originalKey !== correctOriginalKey) { var warningKey = originalKey + ',' + correctOriginalKey; if (warnedAbout[warningKey]) { continue; } warnedAbout[warningKey] = true; error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey); } } } } // For HTML, certain tags should omit their close tag. We keep a list for // those special-case tags. var omittedCloseTags = { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems. }; // `omittedCloseTags` except that `menuitem` should still have its closing tag. var voidElementTags = _assign({ menuitem: true }, omittedCloseTags); var HTML = '__html'; function assertValidProps(tag, props) { if (!props) { return; } // Note the use of `==` which checks for null or undefined. if (voidElementTags[tag]) { if (!(props.children == null && props.dangerouslySetInnerHTML == null)) { { throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." ); } } } if (props.dangerouslySetInnerHTML != null) { if (!(props.children == null)) { { throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." ); } } if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) { { throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." ); } } } { if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) { error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.'); } } if (!(props.style == null || typeof props.style === 'object')) { { throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." ); } } } function isCustomComponent(tagName, props) { if (tagName.indexOf('-') === -1) { return typeof props.is === 'string'; } switch (tagName) { // These are reserved SVG and MathML elements. // We don't mind this list too much because we expect it to never grow. // The alternative is to track the namespace in a few places which is convoluted. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return false; default: return true; } } // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. var possibleStandardNames = { // HTML accept: 'accept', acceptcharset: 'acceptCharset', 'accept-charset': 'acceptCharset', accesskey: 'accessKey', action: 'action', allowfullscreen: 'allowFullScreen', alt: 'alt', as: 'as', async: 'async', autocapitalize: 'autoCapitalize', autocomplete: 'autoComplete', autocorrect: 'autoCorrect', autofocus: 'autoFocus', autoplay: 'autoPlay', autosave: 'autoSave', capture: 'capture', cellpadding: 'cellPadding', cellspacing: 'cellSpacing', challenge: 'challenge', charset: 'charSet', checked: 'checked', children: 'children', cite: 'cite', class: 'className', classid: 'classID', classname: 'className', cols: 'cols', colspan: 'colSpan', content: 'content', contenteditable: 'contentEditable', contextmenu: 'contextMenu', controls: 'controls', controlslist: 'controlsList', coords: 'coords', crossorigin: 'crossOrigin', dangerouslysetinnerhtml: 'dangerouslySetInnerHTML', data: 'data', datetime: 'dateTime', default: 'default', defaultchecked: 'defaultChecked', defaultvalue: 'defaultValue', defer: 'defer', dir: 'dir', disabled: 'disabled', disablepictureinpicture: 'disablePictureInPicture', disableremoteplayback: 'disableRemotePlayback', download: 'download', draggable: 'draggable', enctype: 'encType', enterkeyhint: 'enterKeyHint', for: 'htmlFor', form: 'form', formmethod: 'formMethod', formaction: 'formAction', formenctype: 'formEncType', formnovalidate: 'formNoValidate', formtarget: 'formTarget', frameborder: 'frameBorder', headers: 'headers', height: 'height', hidden: 'hidden', high: 'high', href: 'href', hreflang: 'hrefLang', htmlfor: 'htmlFor', httpequiv: 'httpEquiv', 'http-equiv': 'httpEquiv', icon: 'icon', id: 'id', innerhtml: 'innerHTML', inputmode: 'inputMode', integrity: 'integrity', is: 'is', itemid: 'itemID', itemprop: 'itemProp', itemref: 'itemRef', itemscope: 'itemScope', itemtype: 'itemType', keyparams: 'keyParams', keytype: 'keyType', kind: 'kind', label: 'label', lang: 'lang', list: 'list', loop: 'loop', low: 'low', manifest: 'manifest', marginwidth: 'marginWidth', marginheight: 'marginHeight', max: 'max', maxlength: 'maxLength', media: 'media', mediagroup: 'mediaGroup', method: 'method', min: 'min', minlength: 'minLength', multiple: 'multiple', muted: 'muted', name: 'name', nomodule: 'noModule', nonce: 'nonce', novalidate: 'noValidate', open: 'open', optimum: 'optimum', pattern: 'pattern', placeholder: 'placeholder', playsinline: 'playsInline', poster: 'poster', preload: 'preload', profile: 'profile', radiogroup: 'radioGroup', readonly: 'readOnly', referrerpolicy: 'referrerPolicy', rel: 'rel', required: 'required', reversed: 'reversed', role: 'role', rows: 'rows', rowspan: 'rowSpan', sandbox: 'sandbox', scope: 'scope', scoped: 'scoped', scrolling: 'scrolling', seamless: 'seamless', selected: 'selected', shape: 'shape', size: 'size', sizes: 'sizes', span: 'span', spellcheck: 'spellCheck', src: 'src', srcdoc: 'srcDoc', srclang: 'srcLang', srcset: 'srcSet', start: 'start', step: 'step', style: 'style', summary: 'summary', tabindex: 'tabIndex', target: 'target', title: 'title', type: 'type', usemap: 'useMap', value: 'value', width: 'width', wmode: 'wmode', wrap: 'wrap', // SVG about: 'about', accentheight: 'accentHeight', 'accent-height': 'accentHeight', accumulate: 'accumulate', additive: 'additive', alignmentbaseline: 'alignmentBaseline', 'alignment-baseline': 'alignmentBaseline', allowreorder: 'allowReorder', alphabetic: 'alphabetic', amplitude: 'amplitude', arabicform: 'arabicForm', 'arabic-form': 'arabicForm', ascent: 'ascent', attributename: 'attributeName', attributetype: 'attributeType', autoreverse: 'autoReverse', azimuth: 'azimuth', basefrequency: 'baseFrequency', baselineshift: 'baselineShift', 'baseline-shift': 'baselineShift', baseprofile: 'baseProfile', bbox: 'bbox', begin: 'begin', bias: 'bias', by: 'by', calcmode: 'calcMode', capheight: 'capHeight', 'cap-height': 'capHeight', clip: 'clip', clippath: 'clipPath', 'clip-path': 'clipPath', clippathunits: 'clipPathUnits', cliprule: 'clipRule', 'clip-rule': 'clipRule', color: 'color', colorinterpolation: 'colorInterpolation', 'color-interpolation': 'colorInterpolation', colorinterpolationfilters: 'colorInterpolationFilters', 'color-interpolation-filters': 'colorInterpolationFilters', colorprofile: 'colorProfile', 'color-profile': 'colorProfile', colorrendering: 'colorRendering', 'color-rendering': 'colorRendering', contentscripttype: 'contentScriptType', contentstyletype: 'contentStyleType', cursor: 'cursor', cx: 'cx', cy: 'cy', d: 'd', datatype: 'datatype', decelerate: 'decelerate', descent: 'descent', diffuseconstant: 'diffuseConstant', direction: 'direction', display: 'display', divisor: 'divisor', dominantbaseline: 'dominantBaseline', 'dominant-baseline': 'dominantBaseline', dur: 'dur', dx: 'dx', dy: 'dy', edgemode: 'edgeMode', elevation: 'elevation', enablebackground: 'enableBackground', 'enable-background': 'enableBackground', end: 'end', exponent: 'exponent', externalresourcesrequired: 'externalResourcesRequired', fill: 'fill', fillopacity: 'fillOpacity', 'fill-opacity': 'fillOpacity', fillrule: 'fillRule', 'fill-rule': 'fillRule', filter: 'filter', filterres: 'filterRes', filterunits: 'filterUnits', floodopacity: 'floodOpacity', 'flood-opacity': 'floodOpacity', floodcolor: 'floodColor', 'flood-color': 'floodColor', focusable: 'focusable', fontfamily: 'fontFamily', 'font-family': 'fontFamily', fontsize: 'fontSize', 'font-size': 'fontSize', fontsizeadjust: 'fontSizeAdjust', 'font-size-adjust': 'fontSizeAdjust', fontstretch: 'fontStretch', 'font-stretch': 'fontStretch', fontstyle: 'fontStyle', 'font-style': 'fontStyle', fontvariant: 'fontVariant', 'font-variant': 'fontVariant', fontweight: 'fontWeight', 'font-weight': 'fontWeight', format: 'format', from: 'from', fx: 'fx', fy: 'fy', g1: 'g1', g2: 'g2', glyphname: 'glyphName', 'glyph-name': 'glyphName', glyphorientationhorizontal: 'glyphOrientationHorizontal', 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', glyphorientationvertical: 'glyphOrientationVertical', 'glyph-orientation-vertical': 'glyphOrientationVertical', glyphref: 'glyphRef', gradienttransform: 'gradientTransform', gradientunits: 'gradientUnits', hanging: 'hanging', horizadvx: 'horizAdvX', 'horiz-adv-x': 'horizAdvX', horizoriginx: 'horizOriginX', 'horiz-origin-x': 'horizOriginX', ideographic: 'ideographic', imagerendering: 'imageRendering', 'image-rendering': 'imageRendering', in2: 'in2', in: 'in', inlist: 'inlist', intercept: 'intercept', k1: 'k1', k2: 'k2', k3: 'k3', k4: 'k4', k: 'k', kernelmatrix: 'kernelMatrix', kernelunitlength: 'kernelUnitLength', kerning: 'kerning', keypoints: 'keyPoints', keysplines: 'keySplines', keytimes: 'keyTimes', lengthadjust: 'lengthAdjust', letterspacing: 'letterSpacing', 'letter-spacing': 'letterSpacing', lightingcolor: 'lightingColor', 'lighting-color': 'lightingColor', limitingconeangle: 'limitingConeAngle', local: 'local', markerend: 'markerEnd', 'marker-end': 'markerEnd', markerheight: 'markerHeight', markermid: 'markerMid', 'marker-mid': 'markerMid', markerstart: 'markerStart', 'marker-start': 'markerStart', markerunits: 'markerUnits', markerwidth: 'markerWidth', mask: 'mask', maskcontentunits: 'maskContentUnits', maskunits: 'maskUnits', mathematical: 'mathematical', mode: 'mode', numoctaves: 'numOctaves', offset: 'offset', opacity: 'opacity', operator: 'operator', order: 'order', orient: 'orient', orientation: 'orientation', origin: 'origin', overflow: 'overflow', overlineposition: 'overlinePosition', 'overline-position': 'overlinePosition', overlinethickness: 'overlineThickness', 'overline-thickness': 'overlineThickness', paintorder: 'paintOrder', 'paint-order': 'paintOrder', panose1: 'panose1', 'panose-1': 'panose1', pathlength: 'pathLength', patterncontentunits: 'patternContentUnits', patterntransform: 'patternTransform', patternunits: 'patternUnits', pointerevents: 'pointerEvents', 'pointer-events': 'pointerEvents', points: 'points', pointsatx: 'pointsAtX', pointsaty: 'pointsAtY', pointsatz: 'pointsAtZ', prefix: 'prefix', preservealpha: 'preserveAlpha', preserveaspectratio: 'preserveAspectRatio', primitiveunits: 'primitiveUnits', property: 'property', r: 'r', radius: 'radius', refx: 'refX', refy: 'refY', renderingintent: 'renderingIntent', 'rendering-intent': 'renderingIntent', repeatcount: 'repeatCount', repeatdur: 'repeatDur', requiredextensions: 'requiredExtensions', requiredfeatures: 'requiredFeatures', resource: 'resource', restart: 'restart', result: 'result', results: 'results', rotate: 'rotate', rx: 'rx', ry: 'ry', scale: 'scale', security: 'security', seed: 'seed', shaperendering: 'shapeRendering', 'shape-rendering': 'shapeRendering', slope: 'slope', spacing: 'spacing', specularconstant: 'specularConstant', specularexponent: 'specularExponent', speed: 'speed', spreadmethod: 'spreadMethod', startoffset: 'startOffset', stddeviation: 'stdDeviation', stemh: 'stemh', stemv: 'stemv', stitchtiles: 'stitchTiles', stopcolor: 'stopColor', 'stop-color': 'stopColor', stopopacity: 'stopOpacity', 'stop-opacity': 'stopOpacity', strikethroughposition: 'strikethroughPosition', 'strikethrough-position': 'strikethroughPosition', strikethroughthickness: 'strikethroughThickness', 'strikethrough-thickness': 'strikethroughThickness', string: 'string', stroke: 'stroke', strokedasharray: 'strokeDasharray', 'stroke-dasharray': 'strokeDasharray', strokedashoffset: 'strokeDashoffset', 'stroke-dashoffset': 'strokeDashoffset', strokelinecap: 'strokeLinecap', 'stroke-linecap': 'strokeLinecap', strokelinejoin: 'strokeLinejoin', 'stroke-linejoin': 'strokeLinejoin', strokemiterlimit: 'strokeMiterlimit', 'stroke-miterlimit': 'strokeMiterlimit', strokewidth: 'strokeWidth', 'stroke-width': 'strokeWidth', strokeopacity: 'strokeOpacity', 'stroke-opacity': 'strokeOpacity', suppresscontenteditablewarning: 'suppressContentEditableWarning', suppresshydrationwarning: 'suppressHydrationWarning', surfacescale: 'surfaceScale', systemlanguage: 'systemLanguage', tablevalues: 'tableValues', targetx: 'targetX', targety: 'targetY', textanchor: 'textAnchor', 'text-anchor': 'textAnchor', textdecoration: 'textDecoration', 'text-decoration': 'textDecoration', textlength: 'textLength', textrendering: 'textRendering', 'text-rendering': 'textRendering', to: 'to', transform: 'transform', typeof: 'typeof', u1: 'u1', u2: 'u2', underlineposition: 'underlinePosition', 'underline-position': 'underlinePosition', underlinethickness: 'underlineThickness', 'underline-thickness': 'underlineThickness', unicode: 'unicode', unicodebidi: 'unicodeBidi', 'unicode-bidi': 'unicodeBidi', unicoderange: 'unicodeRange', 'unicode-range': 'unicodeRange', unitsperem: 'unitsPerEm', 'units-per-em': 'unitsPerEm', unselectable: 'unselectable', valphabetic: 'vAlphabetic', 'v-alphabetic': 'vAlphabetic', values: 'values', vectoreffect: 'vectorEffect', 'vector-effect': 'vectorEffect', version: 'version', vertadvy: 'vertAdvY', 'vert-adv-y': 'vertAdvY', vertoriginx: 'vertOriginX', 'vert-origin-x': 'vertOriginX', vertoriginy: 'vertOriginY', 'vert-origin-y': 'vertOriginY', vhanging: 'vHanging', 'v-hanging': 'vHanging', videographic: 'vIdeographic', 'v-ideographic': 'vIdeographic', viewbox: 'viewBox', viewtarget: 'viewTarget', visibility: 'visibility', vmathematical: 'vMathematical', 'v-mathematical': 'vMathematical', vocab: 'vocab', widths: 'widths', wordspacing: 'wordSpacing', 'word-spacing': 'wordSpacing', writingmode: 'writingMode', 'writing-mode': 'writingMode', x1: 'x1', x2: 'x2', x: 'x', xchannelselector: 'xChannelSelector', xheight: 'xHeight', 'x-height': 'xHeight', xlinkactuate: 'xlinkActuate', 'xlink:actuate': 'xlinkActuate', xlinkarcrole: 'xlinkArcrole', 'xlink:arcrole': 'xlinkArcrole', xlinkhref: 'xlinkHref', 'xlink:href': 'xlinkHref', xlinkrole: 'xlinkRole', 'xlink:role': 'xlinkRole', xlinkshow: 'xlinkShow', 'xlink:show': 'xlinkShow', xlinktitle: 'xlinkTitle', 'xlink:title': 'xlinkTitle', xlinktype: 'xlinkType', 'xlink:type': 'xlinkType', xmlbase: 'xmlBase', 'xml:base': 'xmlBase', xmllang: 'xmlLang', 'xml:lang': 'xmlLang', xmlns: 'xmlns', 'xml:space': 'xmlSpace', xmlnsxlink: 'xmlnsXlink', 'xmlns:xlink': 'xmlnsXlink', xmlspace: 'xmlSpace', y1: 'y1', y2: 'y2', y: 'y', ychannelselector: 'yChannelSelector', z: 'z', zoomandpan: 'zoomAndPan' }; var ariaProperties = { 'aria-current': 0, // state 'aria-details': 0, 'aria-disabled': 0, // state 'aria-hidden': 0, // state 'aria-invalid': 0, // state 'aria-keyshortcuts': 0, 'aria-label': 0, 'aria-roledescription': 0, // Widget Attributes 'aria-autocomplete': 0, 'aria-checked': 0, 'aria-expanded': 0, 'aria-haspopup': 0, 'aria-level': 0, 'aria-modal': 0, 'aria-multiline': 0, 'aria-multiselectable': 0, 'aria-orientation': 0, 'aria-placeholder': 0, 'aria-pressed': 0, 'aria-readonly': 0, 'aria-required': 0, 'aria-selected': 0, 'aria-sort': 0, 'aria-valuemax': 0, 'aria-valuemin': 0, 'aria-valuenow': 0, 'aria-valuetext': 0, // Live Region Attributes 'aria-atomic': 0, 'aria-busy': 0, 'aria-live': 0, 'aria-relevant': 0, // Drag-and-Drop Attributes 'aria-dropeffect': 0, 'aria-grabbed': 0, // Relationship Attributes 'aria-activedescendant': 0, 'aria-colcount': 0, 'aria-colindex': 0, 'aria-colspan': 0, 'aria-controls': 0, 'aria-describedby': 0, 'aria-errormessage': 0, 'aria-flowto': 0, 'aria-labelledby': 0, 'aria-owns': 0, 'aria-posinset': 0, 'aria-rowcount': 0, 'aria-rowindex': 0, 'aria-rowspan': 0, 'aria-setsize': 0 }; var warnedProperties = {}; var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); var hasOwnProperty$1 = Object.prototype.hasOwnProperty; function validateProperty(tagName, name) { { if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) { return true; } if (rARIACamel.test(name)) { var ariaName = 'aria-' + name.slice(4).toLowerCase(); var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM // DOM properties, then it is an invalid aria-* attribute. if (correctName == null) { error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name); warnedProperties[name] = true; return true; } // aria-* attributes should be lowercase; suggest the lowercase version. if (name !== correctName) { error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName); warnedProperties[name] = true; return true; } } if (rARIA.test(name)) { var lowerCasedName = name.toLowerCase(); var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM // DOM properties, then it is an invalid aria-* attribute. if (standardName == null) { warnedProperties[name] = true; return false; } // aria-* attributes should be lowercase; suggest the lowercase version. if (name !== standardName) { error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName); warnedProperties[name] = true; return true; } } } return true; } function warnInvalidARIAProps(type, props) { { var invalidProps = []; for (var key in props) { var isValid = validateProperty(type, key); if (!isValid) { invalidProps.push(key); } } var unknownPropString = invalidProps.map(function (prop) { return '`' + prop + '`'; }).join(', '); if (invalidProps.length === 1) { error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); } else if (invalidProps.length > 1) { error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); } } } function validateProperties(type, props) { if (isCustomComponent(type, props)) { return; } warnInvalidARIAProps(type, props); } var didWarnValueNull = false; function validateProperties$1(type, props) { { if (type !== 'input' && type !== 'textarea' && type !== 'select') { return; } if (props != null && props.value === null && !didWarnValueNull) { didWarnValueNull = true; if (type === 'select' && props.multiple) { error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type); } else { error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type); } } } } var validateProperty$1 = function () {}; { var warnedProperties$1 = {}; var _hasOwnProperty = Object.prototype.hasOwnProperty; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'); var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); validateProperty$1 = function (tagName, name, value, eventRegistry) { if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { return true; } var lowerCasedName = name.toLowerCase(); if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') { error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.'); warnedProperties$1[name] = true; return true; } // We can't rely on the event system being injected on the server. if (eventRegistry != null) { var registrationNameDependencies = eventRegistry.registrationNameDependencies, possibleRegistrationNames = eventRegistry.possibleRegistrationNames; if (registrationNameDependencies.hasOwnProperty(name)) { return true; } var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; if (registrationName != null) { error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName); warnedProperties$1[name] = true; return true; } if (EVENT_NAME_REGEX.test(name)) { error('Unknown event handler property `%s`. It will be ignored.', name); warnedProperties$1[name] = true; return true; } } else if (EVENT_NAME_REGEX.test(name)) { // If no event plugins have been injected, we are in a server environment. // So we can't tell if the event name is correct for sure, but we can filter // out known bad ones like `onclick`. We can't suggest a specific replacement though. if (INVALID_EVENT_NAME_REGEX.test(name)) { error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name); } warnedProperties$1[name] = true; return true; } // Let the ARIA attribute hook validate ARIA attributes if (rARIA$1.test(name) || rARIACamel$1.test(name)) { return true; } if (lowerCasedName === 'innerhtml') { error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.'); warnedProperties$1[name] = true; return true; } if (lowerCasedName === 'aria') { error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.'); warnedProperties$1[name] = true; return true; } if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') { error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value); warnedProperties$1[name] = true; return true; } if (typeof value === 'number' && isNaN(value)) { error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name); warnedProperties$1[name] = true; return true; } var propertyInfo = getPropertyInfo(name); var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { var standardName = possibleStandardNames[lowerCasedName]; if (standardName !== name) { error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName); warnedProperties$1[name] = true; return true; } } else if (!isReserved && name !== lowerCasedName) { // Unknown attributes should have lowercase casing since that's how they // will be cased anyway with server rendering. error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName); warnedProperties$1[name] = true; return true; } if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { if (value) { error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name); } else { error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name); } warnedProperties$1[name] = true; return true; } // Now that we've validated casing, do not validate // data types for reserved props if (isReserved) { return true; } // Warn when a known attribute is a bad type if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { warnedProperties$1[name] = true; return false; } // Warn when passing the strings 'false' or 'true' into a boolean prop if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) { error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value); warnedProperties$1[name] = true; return true; } return true; }; } var warnUnknownProperties = function (type, props, eventRegistry) { { var unknownProps = []; for (var key in props) { var isValid = validateProperty$1(type, key, props[key], eventRegistry); if (!isValid) { unknownProps.push(key); } } var unknownPropString = unknownProps.map(function (prop) { return '`' + prop + '`'; }).join(', '); if (unknownProps.length === 1) { error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); } else if (unknownProps.length > 1) { error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); } } }; function validateProperties$2(type, props, eventRegistry) { if (isCustomComponent(type, props)) { return; } warnUnknownProperties(type, props, eventRegistry); } var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1; var IS_NON_DELEGATED = 1 << 1; var IS_CAPTURE_PHASE = 1 << 2; var IS_REPLAYED = 1 << 4; // set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when // we call willDeferLaterForLegacyFBSupport, thus not bailing out // will result in endless cycles like an infinite loop. // We also don't want to defer during event replaying. var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE; /** * Gets the target node from a native browser event by accounting for * inconsistencies in browser DOM APIs. * * @param {object} nativeEvent Native browser event. * @return {DOMEventTarget} Target node. */ function getEventTarget(nativeEvent) { // Fallback to nativeEvent.srcElement for IE9 // https://github.com/facebook/react/issues/12506 var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG element events #4963 if (target.correspondingUseElement) { target = target.correspondingUseElement; } // Safari may fire events on text nodes (Node.TEXT_NODE is 3). // @see http://www.quirksmode.org/js/events_properties.html return target.nodeType === TEXT_NODE ? target.parentNode : target; } var restoreImpl = null; var restoreTarget = null; var restoreQueue = null; function restoreStateOfTarget(target) { // We perform this translation at the end of the event loop so that we // always receive the correct fiber here var internalInstance = getInstanceFromNode(target); if (!internalInstance) { // Unmounted return; } if (!(typeof restoreImpl === 'function')) { { throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." ); } } var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted. if (stateNode) { var _props = getFiberCurrentPropsFromNode(stateNode); restoreImpl(internalInstance.stateNode, internalInstance.type, _props); } } function setRestoreImplementation(impl) { restoreImpl = impl; } function enqueueStateRestore(target) { if (restoreTarget) { if (restoreQueue) { restoreQueue.push(target); } else { restoreQueue = [target]; } } else { restoreTarget = target; } } function needsStateRestore() { return restoreTarget !== null || restoreQueue !== null; } function restoreStateIfNeeded() { if (!restoreTarget) { return; } var target = restoreTarget; var queuedTargets = restoreQueue; restoreTarget = null; restoreQueue = null; restoreStateOfTarget(target); if (queuedTargets) { for (var i = 0; i < queuedTargets.length; i++) { restoreStateOfTarget(queuedTargets[i]); } } } // the renderer. Such as when we're dispatching events or if third party // libraries need to call batchedUpdates. Eventually, this API will go away when // everything is batched by default. We'll then have a similar API to opt-out of // scheduled work and instead do synchronous work. // Defaults var batchedUpdatesImpl = function (fn, bookkeeping) { return fn(bookkeeping); }; var discreteUpdatesImpl = function (fn, a, b, c, d) { return fn(a, b, c, d); }; var flushDiscreteUpdatesImpl = function () {}; var batchedEventUpdatesImpl = batchedUpdatesImpl; var isInsideEventHandler = false; var isBatchingEventUpdates = false; function finishEventHandler() { // Here we wait until all updates have propagated, which is important // when using controlled components within layers: // https://github.com/facebook/react/issues/1698 // Then we restore state of any controlled component. var controlledComponentsHavePendingUpdates = needsStateRestore(); if (controlledComponentsHavePendingUpdates) { // If a controlled event was fired, we may need to restore the state of // the DOM node back to the controlled value. This is necessary when React // bails out of the update without touching the DOM. flushDiscreteUpdatesImpl(); restoreStateIfNeeded(); } } function batchedUpdates(fn, bookkeeping) { if (isInsideEventHandler) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. return fn(bookkeeping); } isInsideEventHandler = true; try { return batchedUpdatesImpl(fn, bookkeeping); } finally { isInsideEventHandler = false; finishEventHandler(); } } function batchedEventUpdates(fn, a, b) { if (isBatchingEventUpdates) { // If we are currently inside another batch, we need to wait until it // fully completes before restoring state. return fn(a, b); } isBatchingEventUpdates = true; try { return batchedEventUpdatesImpl(fn, a, b); } finally { isBatchingEventUpdates = false; finishEventHandler(); } } function discreteUpdates(fn, a, b, c, d) { var prevIsInsideEventHandler = isInsideEventHandler; isInsideEventHandler = true; try { return discreteUpdatesImpl(fn, a, b, c, d); } finally { isInsideEventHandler = prevIsInsideEventHandler; if (!isInsideEventHandler) { finishEventHandler(); } } } function flushDiscreteUpdatesIfNeeded(timeStamp) { { if (!isInsideEventHandler) { flushDiscreteUpdatesImpl(); } } } function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) { batchedUpdatesImpl = _batchedUpdatesImpl; discreteUpdatesImpl = _discreteUpdatesImpl; flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl; batchedEventUpdatesImpl = _batchedEventUpdatesImpl; } function isInteractive(tag) { return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; } function shouldPreventMouseEvent(name, type, props) { switch (name) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case 'onMouseUpCapture': case 'onMouseEnter': return !!(props.disabled && isInteractive(type)); default: return false; } } /** * @param {object} inst The instance, which is the source of events. * @param {string} registrationName Name of listener (e.g. `onClick`). * @return {?function} The stored callback. */ function getListener(inst, registrationName) { var stateNode = inst.stateNode; if (stateNode === null) { // Work in progress (ex: onload events in incremental mode). return null; } var props = getFiberCurrentPropsFromNode(stateNode); if (props === null) { // Work in progress. return null; } var listener = props[registrationName]; if (shouldPreventMouseEvent(registrationName, inst.type, props)) { return null; } if (!(!listener || typeof listener === 'function')) { { throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." ); } } return listener; } var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support if (canUseDOM) { try { var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value Object.defineProperty(options, 'passive', { get: function () { passiveBrowserEventsSupported = true; } }); window.addEventListener('test', options, options); window.removeEventListener('test', options, options); } catch (e) { passiveBrowserEventsSupported = false; } } function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { var funcArgs = Array.prototype.slice.call(arguments, 3); try { func.apply(context, funcArgs); } catch (error) { this.onError(error); } } var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; { // In DEV mode, we swap out invokeGuardedCallback for a special version // that plays more nicely with the browser's DevTools. The idea is to preserve // "Pause on exceptions" behavior. Because React wraps all user-provided // functions in invokeGuardedCallback, and the production version of // invokeGuardedCallback uses a try-catch, all user exceptions are treated // like caught exceptions, and the DevTools won't pause unless the developer // takes the extra step of enabling pause on caught exceptions. This is // unintuitive, though, because even though React has caught the error, from // the developer's perspective, the error is uncaught. // // To preserve the expected "Pause on exceptions" behavior, we don't use a // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake // DOM node, and call the user-provided callback from inside an event handler // for that fake event. If the callback throws, the error is "captured" using // a global event handler. But because the error happens in a different // event loop context, it does not interrupt the normal program flow. // Effectively, this gives us try-catch behavior without actually using // try-catch. Neat! // Check that the browser supports the APIs we need to implement our special // DEV version of invokeGuardedCallback if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { var fakeNode = document.createElement('react'); invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { // If document doesn't exist we know for sure we will crash in this method // when we call document.createEvent(). However this can cause confusing // errors: https://github.com/facebookincubator/create-react-app/issues/3482 // So we preemptively throw with a better message instead. if (!(typeof document !== 'undefined')) { { throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." ); } } var evt = document.createEvent('Event'); var didCall = false; // Keeps track of whether the user-provided callback threw an error. We // set this to true at the beginning, then set it to false right after // calling the function. If the function errors, `didError` will never be // set to false. This strategy works even if the browser is flaky and // fails to call our global error handler, because it doesn't rely on // the error event at all. var didError = true; // Keeps track of the value of window.event so that we can reset it // during the callback to let user code access window.event in the // browsers that support it. var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event // dispatching: https://github.com/facebook/react/issues/13688 var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); function restoreAfterDispatch() { // We immediately remove the callback from event listeners so that // nested `invokeGuardedCallback` calls do not clash. Otherwise, a // nested call would trigger the fake event handlers of any call higher // in the stack. fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the // window.event assignment in both IE <= 10 as they throw an error // "Member not found" in strict mode, and in Firefox which does not // support window.event. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) { window.event = windowEvent; } } // Create an event handler for our fake event. We will synchronously // dispatch our fake event using `dispatchEvent`. Inside the handler, we // call the user-provided callback. var funcArgs = Array.prototype.slice.call(arguments, 3); function callCallback() { didCall = true; restoreAfterDispatch(); func.apply(context, funcArgs); didError = false; } // Create a global error event handler. We use this to capture the value // that was thrown. It's possible that this error handler will fire more // than once; for example, if non-React code also calls `dispatchEvent` // and a handler for that event throws. We should be resilient to most of // those cases. Even if our error event handler fires more than once, the // last error event is always used. If the callback actually does error, // we know that the last error event is the correct one, because it's not // possible for anything else to have happened in between our callback // erroring and the code that follows the `dispatchEvent` call below. If // the callback doesn't error, but the error event was fired, we know to // ignore it because `didError` will be false, as described above. var error; // Use this to track whether the error event is ever called. var didSetError = false; var isCrossOriginError = false; function handleWindowError(event) { error = event.error; didSetError = true; if (error === null && event.colno === 0 && event.lineno === 0) { isCrossOriginError = true; } if (event.defaultPrevented) { // Some other error handler has prevented default. // Browsers silence the error report if this happens. // We'll remember this to later decide whether to log it or not. if (error != null && typeof error === 'object') { try { error._suppressLogging = true; } catch (inner) {// Ignore. } } } } // Create a fake event type. var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers window.addEventListener('error', handleWindowError); fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function // errors, it will trigger our global error handler. evt.initEvent(evtType, false, false); fakeNode.dispatchEvent(evt); if (windowEventDescriptor) { Object.defineProperty(window, 'event', windowEventDescriptor); } if (didCall && didError) { if (!didSetError) { // The callback errored, but the error event never fired. error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.'); } else if (isCrossOriginError) { error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.'); } this.onError(error); } // Remove our event listeners window.removeEventListener('error', handleWindowError); if (!didCall) { // Something went really wrong, and our event was not dispatched. // https://github.com/facebook/react/issues/16734 // https://github.com/facebook/react/issues/16585 // Fall back to the production implementation. restoreAfterDispatch(); return invokeGuardedCallbackProd.apply(this, arguments); } }; } } var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; var hasError = false; var caughtError = null; // Used by event system to capture/rethrow the first error. var hasRethrowError = false; var rethrowError = null; var reporter = { onError: function (error) { hasError = true; caughtError = error; } }; /** * Call a function while guarding against errors that happens within it. * Returns an error if it throws, otherwise null. * * In production, this is implemented using a try-catch. The reason we don't * use a try-catch directly is so that we can swap out a different * implementation in DEV mode. * * @param {String} name of the guard to use for logging or debugging * @param {Function} func The function to invoke * @param {*} context The context to use when calling the function * @param {...*} args Arguments for function */ function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { hasError = false; caughtError = null; invokeGuardedCallbackImpl$1.apply(reporter, arguments); } /** * Same as invokeGuardedCallback, but instead of returning an error, it stores * it in a global so it can be rethrown by `rethrowCaughtError` later. * TODO: See if caughtError and rethrowError can be unified. * * @param {String} name of the guard to use for logging or debugging * @param {Function} func The function to invoke * @param {*} context The context to use when calling the function * @param {...*} args Arguments for function */ function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) { invokeGuardedCallback.apply(this, arguments); if (hasError) { var error = clearCaughtError(); if (!hasRethrowError) { hasRethrowError = true; rethrowError = error; } } } /** * During execution of guarded functions we will capture the first error which * we will rethrow to be handled by the top level error handler. */ function rethrowCaughtError() { if (hasRethrowError) { var error = rethrowError; hasRethrowError = false; rethrowError = null; throw error; } } function hasCaughtError() { return hasError; } function clearCaughtError() { if (hasError) { var error = caughtError; hasError = false; caughtError = null; return error; } else { { { throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." ); } } } } /** * `ReactInstanceMap` maintains a mapping from a public facing stateful * instance (key) and the internal representation (value). This allows public * methods to accept the user facing instance as an argument and map them back * to internal methods. * * Note that this module is currently shared and assumed to be stateless. * If this becomes an actual Map, that will break. */ function get(key) { return key._reactInternals; } function has(key) { return key._reactInternals !== undefined; } function set(key, value) { key._reactInternals = value; } // Don't change these two values. They're used by React Dev Tools. var NoFlags = /* */ 0; var PerformedWork = /* */ 1; // You can change the rest (and add more). var Placement = /* */ 2; var Update = /* */ 4; var PlacementAndUpdate = /* */ 6; var Deletion = /* */ 8; var ContentReset = /* */ 16; var Callback = /* */ 32; var DidCapture = /* */ 64; var Ref = /* */ 128; var Snapshot = /* */ 256; var Passive = /* */ 512; // TODO (effects) Remove this bit once the new reconciler is synced to the old. var PassiveUnmountPendingDev = /* */ 8192; var Hydrating = /* */ 1024; var HydratingAndUpdate = /* */ 1028; // Passive & Update & Callback & Ref & Snapshot var LifecycleEffectMask = /* */ 932; // Union of all host effects var HostEffectMask = /* */ 2047; // These are not really side effects, but we still reuse this field. var Incomplete = /* */ 2048; var ShouldCapture = /* */ 4096; var ForceUpdateForLegacySuspense = /* */ 16384; // Static tags describe aspects of a fiber that are not specific to a render, var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; function getNearestMountedFiber(fiber) { var node = fiber; var nearestMounted = fiber; if (!fiber.alternate) { // If there is no alternate, this might be a new tree that isn't inserted // yet. If it is, then it will have a pending insertion effect on it. var nextNode = node; do { node = nextNode; if ((node.flags & (Placement | Hydrating)) !== NoFlags) { // This is an insertion or in-progress hydration. The nearest possible // mounted fiber is the parent but we need to continue to figure out // if that one is still mounted. nearestMounted = node.return; } nextNode = node.return; } while (nextNode); } else { while (node.return) { node = node.return; } } if (node.tag === HostRoot) { // TODO: Check if this was a nested HostRoot when used with // renderContainerIntoSubtree. return nearestMounted; } // If we didn't hit the root, that means that we're in an disconnected tree // that has been unmounted. return null; } function getSuspenseInstanceFromFiber(fiber) { if (fiber.tag === SuspenseComponent) { var suspenseState = fiber.memoizedState; if (suspenseState === null) { var current = fiber.alternate; if (current !== null) { suspenseState = current.memoizedState; } } if (suspenseState !== null) { return suspenseState.dehydrated; } } return null; } function getContainerFromFiber(fiber) { return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null; } function isFiberMounted(fiber) { return getNearestMountedFiber(fiber) === fiber; } function isMounted(component) { { var owner = ReactCurrentOwner.current; if (owner !== null && owner.tag === ClassComponent) { var ownerFiber = owner; var instance = ownerFiber.stateNode; if (!instance._warnedAboutRefsInRender) { error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component'); } instance._warnedAboutRefsInRender = true; } } var fiber = get(component); if (!fiber) { return false; } return getNearestMountedFiber(fiber) === fiber; } function assertIsMounted(fiber) { if (!(getNearestMountedFiber(fiber) === fiber)) { { throw Error( "Unable to find node on an unmounted component." ); } } } function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { // If there is no alternate, then we only need to check if it is mounted. var nearestMounted = getNearestMountedFiber(fiber); if (!(nearestMounted !== null)) { { throw Error( "Unable to find node on an unmounted component." ); } } if (nearestMounted !== fiber) { return null; } return fiber; } // If we have two possible branches, we'll walk backwards up to the root // to see what path the root points to. On the way we may hit one of the // special cases and we'll deal with them. var a = fiber; var b = alternate; while (true) { var parentA = a.return; if (parentA === null) { // We're at the root. break; } var parentB = parentA.alternate; if (parentB === null) { // There is no alternate. This is an unusual case. Currently, it only // happens when a Suspense component is hidden. An extra fragment fiber // is inserted in between the Suspense fiber and its children. Skip // over this extra fragment fiber and proceed to the next parent. var nextParent = parentA.return; if (nextParent !== null) { a = b = nextParent; continue; } // If there's no parent, we're at the root. break; } // If both copies of the parent fiber point to the same child, we can // assume that the child is current. This happens when we bailout on low // priority: the bailed out fiber's child reuses the current child. if (parentA.child === parentB.child) { var child = parentA.child; while (child) { if (child === a) { // We've determined that A is the current branch. assertIsMounted(parentA); return fiber; } if (child === b) { // We've determined that B is the current branch. assertIsMounted(parentA); return alternate; } child = child.sibling; } // We should never have an alternate for any mounting node. So the only // way this could possibly happen is if this was unmounted, if at all. { { throw Error( "Unable to find node on an unmounted component." ); } } } if (a.return !== b.return) { // The return pointer of A and the return pointer of B point to different // fibers. We assume that return pointers never criss-cross, so A must // belong to the child set of A.return, and B must belong to the child // set of B.return. a = parentA; b = parentB; } else { // The return pointers point to the same fiber. We'll have to use the // default, slow path: scan the child sets of each parent alternate to see // which child belongs to which set. // // Search parent A's child set var didFindChild = false; var _child = parentA.child; while (_child) { if (_child === a) { didFindChild = true; a = parentA; b = parentB; break; } if (_child === b) { didFindChild = true; b = parentA; a = parentB; break; } _child = _child.sibling; } if (!didFindChild) { // Search parent B's child set _child = parentB.child; while (_child) { if (_child === a) { didFindChild = true; a = parentB; b = parentA; break; } if (_child === b) { didFindChild = true; b = parentB; a = parentA; break; } _child = _child.sibling; } if (!didFindChild) { { throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." ); } } } } if (!(a.alternate === b)) { { throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." ); } } } // If the root is not a host container, we're in a disconnected tree. I.e. // unmounted. if (!(a.tag === HostRoot)) { { throw Error( "Unable to find node on an unmounted component." ); } } if (a.stateNode.current === a) { // We've determined that A is the current branch. return fiber; } // Otherwise B has to be current branch. return alternate; } function findCurrentHostFiber(parent) { var currentParent = findCurrentFiberUsingSlowPath(parent); if (!currentParent) { return null; } // Next we'll drill down this component to find the first HostComponent/Text. var node = currentParent; while (true) { if (node.tag === HostComponent || node.tag === HostText) { return node; } else if (node.child) { node.child.return = node; node = node.child; continue; } if (node === currentParent) { return null; } while (!node.sibling) { if (!node.return || node.return === currentParent) { return null; } node = node.return; } node.sibling.return = node.return; node = node.sibling; } // Flow needs the return null here, but ESLint complains about it. // eslint-disable-next-line no-unreachable return null; } function findCurrentHostFiberWithNoPortals(parent) { var currentParent = findCurrentFiberUsingSlowPath(parent); if (!currentParent) { return null; } // Next we'll drill down this component to find the first HostComponent/Text. var node = currentParent; while (true) { if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) { return node; } else if (node.child && node.tag !== HostPortal) { node.child.return = node; node = node.child; continue; } if (node === currentParent) { return null; } while (!node.sibling) { if (!node.return || node.return === currentParent) { return null; } node = node.return; } node.sibling.return = node.return; node = node.sibling; } // Flow needs the return null here, but ESLint complains about it. // eslint-disable-next-line no-unreachable return null; } function doesFiberContain(parentFiber, childFiber) { var node = childFiber; var parentFiberAlternate = parentFiber.alternate; while (node !== null) { if (node === parentFiber || node === parentFiberAlternate) { return true; } node = node.return; } return false; } var attemptUserBlockingHydration; function setAttemptUserBlockingHydration(fn) { attemptUserBlockingHydration = fn; } var attemptContinuousHydration; function setAttemptContinuousHydration(fn) { attemptContinuousHydration = fn; } var attemptHydrationAtCurrentPriority; function setAttemptHydrationAtCurrentPriority(fn) { attemptHydrationAtCurrentPriority = fn; } var attemptHydrationAtPriority; function setAttemptHydrationAtPriority(fn) { attemptHydrationAtPriority = fn; } // TODO: Upgrade this definition once we're on a newer version of Flow that var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed. var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout. // if the last target was dehydrated. var queuedFocus = null; var queuedDrag = null; var queuedMouse = null; // For pointer events there can be one latest event per pointerId. var queuedPointers = new Map(); var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too. var queuedExplicitHydrationTargets = []; function hasQueuedDiscreteEvents() { return queuedDiscreteEvents.length > 0; } var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase 'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit']; function isReplayableDiscreteEvent(eventType) { return discreteReplayableEvents.indexOf(eventType) > -1; } function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { return { blockedOn: blockedOn, domEventName: domEventName, eventSystemFlags: eventSystemFlags | IS_REPLAYED, nativeEvent: nativeEvent, targetContainers: [targetContainer] }; } function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); queuedDiscreteEvents.push(queuedEvent); } // Resets the replaying for this type of continuous event to no event. function clearIfContinuousEvent(domEventName, nativeEvent) { switch (domEventName) { case 'focusin': case 'focusout': queuedFocus = null; break; case 'dragenter': case 'dragleave': queuedDrag = null; break; case 'mouseover': case 'mouseout': queuedMouse = null; break; case 'pointerover': case 'pointerout': { var pointerId = nativeEvent.pointerId; queuedPointers.delete(pointerId); break; } case 'gotpointercapture': case 'lostpointercapture': { var _pointerId = nativeEvent.pointerId; queuedPointerCaptures.delete(_pointerId); break; } } } function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) { var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); if (blockedOn !== null) { var _fiber2 = getInstanceFromNode(blockedOn); if (_fiber2 !== null) { // Attempt to increase the priority of this target. attemptContinuousHydration(_fiber2); } } return queuedEvent; } // If we have already queued this exact event, then it's because // the different event systems have different DOM event listeners. // We can accumulate the flags, and the targetContainers, and // store a single event to be replayed. existingQueuedEvent.eventSystemFlags |= eventSystemFlags; var targetContainers = existingQueuedEvent.targetContainers; if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) { targetContainers.push(targetContainer); } return existingQueuedEvent; } function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { // These set relatedTarget to null because the replayed event will be treated as if we // moved from outside the window (no target) onto the target once it hydrates. // Instead of mutating we could clone the event. switch (domEventName) { case 'focusin': { var focusEvent = nativeEvent; queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent); return true; } case 'dragenter': { var dragEvent = nativeEvent; queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent); return true; } case 'mouseover': { var mouseEvent = nativeEvent; queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent); return true; } case 'pointerover': { var pointerEvent = nativeEvent; var pointerId = pointerEvent.pointerId; queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent)); return true; } case 'gotpointercapture': { var _pointerEvent = nativeEvent; var _pointerId2 = _pointerEvent.pointerId; queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent)); return true; } } return false; } // Check if this target is unblocked. Returns true if it's unblocked. function attemptExplicitHydrationTarget(queuedTarget) { // TODO: This function shares a lot of logic with attemptToDispatchEvent. // Try to unify them. It's a bit tricky since it would require two return // values. var targetInst = getClosestInstanceFromNode(queuedTarget.target); if (targetInst !== null) { var nearestMounted = getNearestMountedFiber(targetInst); if (nearestMounted !== null) { var tag = nearestMounted.tag; if (tag === SuspenseComponent) { var instance = getSuspenseInstanceFromFiber(nearestMounted); if (instance !== null) { // We're blocked on hydrating this boundary. // Increase its priority. queuedTarget.blockedOn = instance; attemptHydrationAtPriority(queuedTarget.lanePriority, function () { Scheduler.unstable_runWithPriority(queuedTarget.priority, function () { attemptHydrationAtCurrentPriority(nearestMounted); }); }); return; } } else if (tag === HostRoot) { var root = nearestMounted.stateNode; if (root.hydrate) { queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of // a root other than sync. return; } } } } queuedTarget.blockedOn = null; } function attemptReplayContinuousQueuedEvent(queuedEvent) { if (queuedEvent.blockedOn !== null) { return false; } var targetContainers = queuedEvent.targetContainers; while (targetContainers.length > 0) { var targetContainer = targetContainers[0]; var nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent); if (nextBlockedOn !== null) { // We're still blocked. Try again later. var _fiber3 = getInstanceFromNode(nextBlockedOn); if (_fiber3 !== null) { attemptContinuousHydration(_fiber3); } queuedEvent.blockedOn = nextBlockedOn; return false; } // This target container was successfully dispatched. Try the next. targetContainers.shift(); } return true; } function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { if (attemptReplayContinuousQueuedEvent(queuedEvent)) { map.delete(key); } } function replayUnblockedEvents() { hasScheduledReplayAttempt = false; // First replay discrete events. while (queuedDiscreteEvents.length > 0) { var nextDiscreteEvent = queuedDiscreteEvents[0]; if (nextDiscreteEvent.blockedOn !== null) { // We're still blocked. // Increase the priority of this boundary to unblock // the next discrete event. var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn); if (_fiber4 !== null) { attemptUserBlockingHydration(_fiber4); } break; } var targetContainers = nextDiscreteEvent.targetContainers; while (targetContainers.length > 0) { var targetContainer = targetContainers[0]; var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent); if (nextBlockedOn !== null) { // We're still blocked. Try again later. nextDiscreteEvent.blockedOn = nextBlockedOn; break; } // This target container was successfully dispatched. Try the next. targetContainers.shift(); } if (nextDiscreteEvent.blockedOn === null) { // We've successfully replayed the first event. Let's try the next one. queuedDiscreteEvents.shift(); } } // Next replay any continuous events. if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) { queuedFocus = null; } if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) { queuedDrag = null; } if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) { queuedMouse = null; } queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); } function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { if (queuedEvent.blockedOn === unblocked) { queuedEvent.blockedOn = null; if (!hasScheduledReplayAttempt) { hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are // now unblocked. This first might not actually be unblocked yet. // We could check it early to avoid scheduling an unnecessary callback. Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents); } } } function retryIfBlockedOn(unblocked) { // Mark anything that was blocked on this as no longer blocked // and eligible for a replay. if (queuedDiscreteEvents.length > 0) { scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's // worth it because we expect very few discrete events to queue up and once // we are actually fully unblocked it will be fast to replay them. for (var i = 1; i < queuedDiscreteEvents.length; i++) { var queuedEvent = queuedDiscreteEvents[i]; if (queuedEvent.blockedOn === unblocked) { queuedEvent.blockedOn = null; } } } if (queuedFocus !== null) { scheduleCallbackIfUnblocked(queuedFocus, unblocked); } if (queuedDrag !== null) { scheduleCallbackIfUnblocked(queuedDrag, unblocked); } if (queuedMouse !== null) { scheduleCallbackIfUnblocked(queuedMouse, unblocked); } var unblock = function (queuedEvent) { return scheduleCallbackIfUnblocked(queuedEvent, unblocked); }; queuedPointers.forEach(unblock); queuedPointerCaptures.forEach(unblock); for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) { var queuedTarget = queuedExplicitHydrationTargets[_i]; if (queuedTarget.blockedOn === unblocked) { queuedTarget.blockedOn = null; } } while (queuedExplicitHydrationTargets.length > 0) { var nextExplicitTarget = queuedExplicitHydrationTargets[0]; if (nextExplicitTarget.blockedOn !== null) { // We're still blocked. break; } else { attemptExplicitHydrationTarget(nextExplicitTarget); if (nextExplicitTarget.blockedOn === null) { // We're unblocked. queuedExplicitHydrationTargets.shift(); } } } } var DiscreteEvent = 0; var UserBlockingEvent = 1; var ContinuousEvent = 2; /** * Generate a mapping of standard vendor prefixes using the defined style property and event name. * * @param {string} styleProp * @param {string} eventName * @returns {object} */ function makePrefixMap(styleProp, eventName) { var prefixes = {}; prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); prefixes['Webkit' + styleProp] = 'webkit' + eventName; prefixes['Moz' + styleProp] = 'moz' + eventName; return prefixes; } /** * A list of event names to a configurable list of vendor prefixes. */ var vendorPrefixes = { animationend: makePrefixMap('Animation', 'AnimationEnd'), animationiteration: makePrefixMap('Animation', 'AnimationIteration'), animationstart: makePrefixMap('Animation', 'AnimationStart'), transitionend: makePrefixMap('Transition', 'TransitionEnd') }; /** * Event names that have already been detected and prefixed (if applicable). */ var prefixedEventNames = {}; /** * Element to check for prefixes on. */ var style = {}; /** * Bootstrap if a DOM exists. */ if (canUseDOM) { style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, // the un-prefixed "animation" and "transition" properties are defined on the // style object but the events that fire will still be prefixed, so we need // to check if the un-prefixed events are usable, and if not remove them from the map. if (!('AnimationEvent' in window)) { delete vendorPrefixes.animationend.animation; delete vendorPrefixes.animationiteration.animation; delete vendorPrefixes.animationstart.animation; } // Same as above if (!('TransitionEvent' in window)) { delete vendorPrefixes.transitionend.transition; } } /** * Attempts to determine the correct vendor prefixed event name. * * @param {string} eventName * @returns {string} */ function getVendorPrefixedEventName(eventName) { if (prefixedEventNames[eventName]) { return prefixedEventNames[eventName]; } else if (!vendorPrefixes[eventName]) { return eventName; } var prefixMap = vendorPrefixes[eventName]; for (var styleProp in prefixMap) { if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { return prefixedEventNames[eventName] = prefixMap[styleProp]; } } return eventName; } var ANIMATION_END = getVendorPrefixedEventName('animationend'); var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration'); var ANIMATION_START = getVendorPrefixedEventName('animationstart'); var TRANSITION_END = getVendorPrefixedEventName('transitionend'); var topLevelEventsToReactNames = new Map(); var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use // the code required to apply the same logic for event prioritization and that of the // SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code // duplication (for which there would be quite a bit). For the events that are not needed // for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an // array of top level events. // Lastly, we ignore prettier so we can keep the formatting sane. // prettier-ignore var discreteEventPairsForSimpleEventPlugin = ['cancel', 'cancel', 'click', 'click', 'close', 'close', 'contextmenu', 'contextMenu', 'copy', 'copy', 'cut', 'cut', 'auxclick', 'auxClick', 'dblclick', 'doubleClick', // Careful! 'dragend', 'dragEnd', 'dragstart', 'dragStart', 'drop', 'drop', 'focusin', 'focus', // Careful! 'focusout', 'blur', // Careful! 'input', 'input', 'invalid', 'invalid', 'keydown', 'keyDown', 'keypress', 'keyPress', 'keyup', 'keyUp', 'mousedown', 'mouseDown', 'mouseup', 'mouseUp', 'paste', 'paste', 'pause', 'pause', 'play', 'play', 'pointercancel', 'pointerCancel', 'pointerdown', 'pointerDown', 'pointerup', 'pointerUp', 'ratechange', 'rateChange', 'reset', 'reset', 'seeked', 'seeked', 'submit', 'submit', 'touchcancel', 'touchCancel', 'touchend', 'touchEnd', 'touchstart', 'touchStart', 'volumechange', 'volumeChange']; var otherDiscreteEvents = ['change', 'selectionchange', 'textInput', 'compositionstart', 'compositionend', 'compositionupdate']; var userBlockingPairsForSimpleEventPlugin = ['drag', 'drag', 'dragenter', 'dragEnter', 'dragexit', 'dragExit', 'dragleave', 'dragLeave', 'dragover', 'dragOver', 'mousemove', 'mouseMove', 'mouseout', 'mouseOut', 'mouseover', 'mouseOver', 'pointermove', 'pointerMove', 'pointerout', 'pointerOut', 'pointerover', 'pointerOver', 'scroll', 'scroll', 'toggle', 'toggle', 'touchmove', 'touchMove', 'wheel', 'wheel']; // prettier-ignore var continuousPairsForSimpleEventPlugin = ['abort', 'abort', ANIMATION_END, 'animationEnd', ANIMATION_ITERATION, 'animationIteration', ANIMATION_START, 'animationStart', 'canplay', 'canPlay', 'canplaythrough', 'canPlayThrough', 'durationchange', 'durationChange', 'emptied', 'emptied', 'encrypted', 'encrypted', 'ended', 'ended', 'error', 'error', 'gotpointercapture', 'gotPointerCapture', 'load', 'load', 'loadeddata', 'loadedData', 'loadedmetadata', 'loadedMetadata', 'loadstart', 'loadStart', 'lostpointercapture', 'lostPointerCapture', 'playing', 'playing', 'progress', 'progress', 'seeking', 'seeking', 'stalled', 'stalled', 'suspend', 'suspend', 'timeupdate', 'timeUpdate', TRANSITION_END, 'transitionEnd', 'waiting', 'waiting']; /** * Turns * ['abort', ...] * * into * * topLevelEventsToReactNames = new Map([ * ['abort', 'onAbort'], * ]); * * and registers them. */ function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) { // As the event types are in pairs of two, we need to iterate // through in twos. The events are in pairs of two to save code // and improve init perf of processing this array, as it will // result in far fewer object allocations and property accesses // if we only use three arrays to process all the categories of // instead of tuples. for (var i = 0; i < eventTypes.length; i += 2) { var topEvent = eventTypes[i]; var event = eventTypes[i + 1]; var capitalizedEvent = event[0].toUpperCase() + event.slice(1); var reactName = 'on' + capitalizedEvent; eventPriorities.set(topEvent, priority); topLevelEventsToReactNames.set(topEvent, reactName); registerTwoPhaseEvent(reactName, [topEvent]); } } function setEventPriorities(eventTypes, priority) { for (var i = 0; i < eventTypes.length; i++) { eventPriorities.set(eventTypes[i], priority); } } function getEventPriorityForPluginSystem(domEventName) { var priority = eventPriorities.get(domEventName); // Default to a ContinuousEvent. Note: we might // want to warn if we can't detect the priority // for the event. return priority === undefined ? ContinuousEvent : priority; } function registerSimpleEvents() { registerSimplePluginEventsAndSetTheirPriorities(discreteEventPairsForSimpleEventPlugin, DiscreteEvent); registerSimplePluginEventsAndSetTheirPriorities(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent); registerSimplePluginEventsAndSetTheirPriorities(continuousPairsForSimpleEventPlugin, ContinuousEvent); setEventPriorities(otherDiscreteEvents, DiscreteEvent); } var Scheduler_now = Scheduler.unstable_now; { // Provide explicit error message when production+profiling bundle of e.g. // react-dom is used with production (non-profiling) bundle of // scheduler/tracing if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) { { throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" ); } } } // ascending numbers so we can compare them like numbers. They start at 90 to // avoid clashing with Scheduler's priorities. var ImmediatePriority = 99; var UserBlockingPriority = 98; var NormalPriority = 97; var LowPriority = 96; var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only. var NoPriority = 90; var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly. var SyncLanePriority = 15; var SyncBatchedLanePriority = 14; var InputDiscreteHydrationLanePriority = 13; var InputDiscreteLanePriority = 12; var InputContinuousHydrationLanePriority = 11; var InputContinuousLanePriority = 10; var DefaultHydrationLanePriority = 9; var DefaultLanePriority = 8; var TransitionHydrationPriority = 7; var TransitionPriority = 6; var RetryLanePriority = 5; var SelectiveHydrationLanePriority = 4; var IdleHydrationLanePriority = 3; var IdleLanePriority = 2; var OffscreenLanePriority = 1; var NoLanePriority = 0; var TotalLanes = 31; var NoLanes = /* */ 0; var NoLane = /* */ 0; var SyncLane = /* */ 1; var SyncBatchedLane = /* */ 2; var InputDiscreteHydrationLane = /* */ 4; var InputDiscreteLanes = /* */ 24; var InputContinuousHydrationLane = /* */ 32; var InputContinuousLanes = /* */ 192; var DefaultHydrationLane = /* */ 256; var DefaultLanes = /* */ 3584; var TransitionHydrationLane = /* */ 4096; var TransitionLanes = /* */ 4186112; var RetryLanes = /* */ 62914560; var SomeRetryLane = /* */ 33554432; var SelectiveHydrationLane = /* */ 67108864; var NonIdleLanes = /* */ 134217727; var IdleHydrationLane = /* */ 134217728; var IdleLanes = /* */ 805306368; var OffscreenLane = /* */ 1073741824; var NoTimestamp = -1; function setCurrentUpdateLanePriority(newLanePriority) { } // "Registers" used to "return" multiple values // Used by getHighestPriorityLanes and getNextLanes: var return_highestLanePriority = DefaultLanePriority; function getHighestPriorityLanes(lanes) { if ((SyncLane & lanes) !== NoLanes) { return_highestLanePriority = SyncLanePriority; return SyncLane; } if ((SyncBatchedLane & lanes) !== NoLanes) { return_highestLanePriority = SyncBatchedLanePriority; return SyncBatchedLane; } if ((InputDiscreteHydrationLane & lanes) !== NoLanes) { return_highestLanePriority = InputDiscreteHydrationLanePriority; return InputDiscreteHydrationLane; } var inputDiscreteLanes = InputDiscreteLanes & lanes; if (inputDiscreteLanes !== NoLanes) { return_highestLanePriority = InputDiscreteLanePriority; return inputDiscreteLanes; } if ((lanes & InputContinuousHydrationLane) !== NoLanes) { return_highestLanePriority = InputContinuousHydrationLanePriority; return InputContinuousHydrationLane; } var inputContinuousLanes = InputContinuousLanes & lanes; if (inputContinuousLanes !== NoLanes) { return_highestLanePriority = InputContinuousLanePriority; return inputContinuousLanes; } if ((lanes & DefaultHydrationLane) !== NoLanes) { return_highestLanePriority = DefaultHydrationLanePriority; return DefaultHydrationLane; } var defaultLanes = DefaultLanes & lanes; if (defaultLanes !== NoLanes) { return_highestLanePriority = DefaultLanePriority; return defaultLanes; } if ((lanes & TransitionHydrationLane) !== NoLanes) { return_highestLanePriority = TransitionHydrationPriority; return TransitionHydrationLane; } var transitionLanes = TransitionLanes & lanes; if (transitionLanes !== NoLanes) { return_highestLanePriority = TransitionPriority; return transitionLanes; } var retryLanes = RetryLanes & lanes; if (retryLanes !== NoLanes) { return_highestLanePriority = RetryLanePriority; return retryLanes; } if (lanes & SelectiveHydrationLane) { return_highestLanePriority = SelectiveHydrationLanePriority; return SelectiveHydrationLane; } if ((lanes & IdleHydrationLane) !== NoLanes) { return_highestLanePriority = IdleHydrationLanePriority; return IdleHydrationLane; } var idleLanes = IdleLanes & lanes; if (idleLanes !== NoLanes) { return_highestLanePriority = IdleLanePriority; return idleLanes; } if ((OffscreenLane & lanes) !== NoLanes) { return_highestLanePriority = OffscreenLanePriority; return OffscreenLane; } { error('Should have found matching lanes. This is a bug in React.'); } // This shouldn't be reachable, but as a fallback, return the entire bitmask. return_highestLanePriority = DefaultLanePriority; return lanes; } function schedulerPriorityToLanePriority(schedulerPriorityLevel) { switch (schedulerPriorityLevel) { case ImmediatePriority: return SyncLanePriority; case UserBlockingPriority: return InputContinuousLanePriority; case NormalPriority: case LowPriority: // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration. return DefaultLanePriority; case IdlePriority: return IdleLanePriority; default: return NoLanePriority; } } function lanePriorityToSchedulerPriority(lanePriority) { switch (lanePriority) { case SyncLanePriority: case SyncBatchedLanePriority: return ImmediatePriority; case InputDiscreteHydrationLanePriority: case InputDiscreteLanePriority: case InputContinuousHydrationLanePriority: case InputContinuousLanePriority: return UserBlockingPriority; case DefaultHydrationLanePriority: case DefaultLanePriority: case TransitionHydrationPriority: case TransitionPriority: case SelectiveHydrationLanePriority: case RetryLanePriority: return NormalPriority; case IdleHydrationLanePriority: case IdleLanePriority: case OffscreenLanePriority: return IdlePriority; case NoLanePriority: return NoPriority; default: { { throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." ); } } } } function getNextLanes(root, wipLanes) { // Early bailout if there's no pending work left. var pendingLanes = root.pendingLanes; if (pendingLanes === NoLanes) { return_highestLanePriority = NoLanePriority; return NoLanes; } var nextLanes = NoLanes; var nextLanePriority = NoLanePriority; var expiredLanes = root.expiredLanes; var suspendedLanes = root.suspendedLanes; var pingedLanes = root.pingedLanes; // Check if any work has expired. if (expiredLanes !== NoLanes) { nextLanes = expiredLanes; nextLanePriority = return_highestLanePriority = SyncLanePriority; } else { // Do not work on any idle work until all the non-idle work has finished, // even if the work is suspended. var nonIdlePendingLanes = pendingLanes & NonIdleLanes; if (nonIdlePendingLanes !== NoLanes) { var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; if (nonIdleUnblockedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); nextLanePriority = return_highestLanePriority; } else { var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; if (nonIdlePingedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); nextLanePriority = return_highestLanePriority; } } } else { // The only remaining work is Idle. var unblockedLanes = pendingLanes & ~suspendedLanes; if (unblockedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(unblockedLanes); nextLanePriority = return_highestLanePriority; } else { if (pingedLanes !== NoLanes) { nextLanes = getHighestPriorityLanes(pingedLanes); nextLanePriority = return_highestLanePriority; } } } } if (nextLanes === NoLanes) { // This should only be reachable if we're suspended // TODO: Consider warning in this path if a fallback timer is not scheduled. return NoLanes; } // If there are higher priority lanes, we'll include them even if they // are suspended. nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes); // If we're already in the middle of a render, switching lanes will interrupt // it and we'll lose our progress. We should only do this if the new lanes are // higher priority. if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't // bother waiting until the root is complete. (wipLanes & suspendedLanes) === NoLanes) { getHighestPriorityLanes(wipLanes); var wipLanePriority = return_highestLanePriority; if (nextLanePriority <= wipLanePriority) { return wipLanes; } else { return_highestLanePriority = nextLanePriority; } } // Check for entangled lanes and add them to the batch. // // A lane is said to be entangled with another when it's not allowed to render // in a batch that does not also include the other lane. Typically we do this // when multiple updates have the same source, and we only want to respond to // the most recent event from that source. // // Note that we apply entanglements *after* checking for partial work above. // This means that if a lane is entangled during an interleaved event while // it's already rendering, we won't interrupt it. This is intentional, since // entanglement is usually "best effort": we'll try our best to render the // lanes in the same batch, but it's not worth throwing out partially // completed work in order to do it. // // For those exceptions where entanglement is semantically important, like // useMutableSource, we should ensure that there is no partial work at the // time we apply the entanglement. var entangledLanes = root.entangledLanes; if (entangledLanes !== NoLanes) { var entanglements = root.entanglements; var lanes = nextLanes & entangledLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; nextLanes |= entanglements[index]; lanes &= ~lane; } } return nextLanes; } function getMostRecentEventTime(root, lanes) { var eventTimes = root.eventTimes; var mostRecentEventTime = NoTimestamp; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; var eventTime = eventTimes[index]; if (eventTime > mostRecentEventTime) { mostRecentEventTime = eventTime; } lanes &= ~lane; } return mostRecentEventTime; } function computeExpirationTime(lane, currentTime) { // TODO: Expiration heuristic is constant per lane, so could use a map. getHighestPriorityLanes(lane); var priority = return_highestLanePriority; if (priority >= InputContinuousLanePriority) { // User interactions should expire slightly more quickly. // // NOTE: This is set to the corresponding constant as in Scheduler.js. When // we made it larger, a product metric in www regressed, suggesting there's // a user interaction that's being starved by a series of synchronous // updates. If that theory is correct, the proper solution is to fix the // starvation. However, this scenario supports the idea that expiration // times are an important safeguard when starvation does happen. // // Also note that, in the case of user input specifically, this will soon no // longer be an issue because we plan to make user input synchronous by // default (until you enter `startTransition`, of course.) // // If weren't planning to make these updates synchronous soon anyway, I // would probably make this number a configurable parameter. return currentTime + 250; } else if (priority >= TransitionPriority) { return currentTime + 5000; } else { // Anything idle priority or lower should never expire. return NoTimestamp; } } function markStarvedLanesAsExpired(root, currentTime) { // TODO: This gets called every time we yield. We can optimize by storing // the earliest expiration time on the root. Then use that to quickly bail out // of this function. var pendingLanes = root.pendingLanes; var suspendedLanes = root.suspendedLanes; var pingedLanes = root.pingedLanes; var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their // expiration time. If so, we'll assume the update is being starved and mark // it as expired to force it to finish. var lanes = pendingLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; var expirationTime = expirationTimes[index]; if (expirationTime === NoTimestamp) { // Found a pending lane with no expiration time. If it's not suspended, or // if it's pinged, assume it's CPU-bound. Compute a new expiration time // using the current time. if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { // Assumes timestamps are monotonically increasing. expirationTimes[index] = computeExpirationTime(lane, currentTime); } } else if (expirationTime <= currentTime) { // This lane expired root.expiredLanes |= lane; } lanes &= ~lane; } } // This returns the highest priority pending lanes regardless of whether they function getLanesToRetrySynchronouslyOnError(root) { var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; if (everythingButOffscreen !== NoLanes) { return everythingButOffscreen; } if (everythingButOffscreen & OffscreenLane) { return OffscreenLane; } return NoLanes; } function returnNextLanesPriority() { return return_highestLanePriority; } function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyTransitions(lanes) { return (lanes & TransitionLanes) === lanes; } // To ensure consistency across multiple updates in the same event, this should // be a pure function, so that it always returns the same lane for given inputs. function findUpdateLane(lanePriority, wipLanes) { switch (lanePriority) { case NoLanePriority: break; case SyncLanePriority: return SyncLane; case SyncBatchedLanePriority: return SyncBatchedLane; case InputDiscreteLanePriority: { var _lane = pickArbitraryLane(InputDiscreteLanes & ~wipLanes); if (_lane === NoLane) { // Shift to the next priority level return findUpdateLane(InputContinuousLanePriority, wipLanes); } return _lane; } case InputContinuousLanePriority: { var _lane2 = pickArbitraryLane(InputContinuousLanes & ~wipLanes); if (_lane2 === NoLane) { // Shift to the next priority level return findUpdateLane(DefaultLanePriority, wipLanes); } return _lane2; } case DefaultLanePriority: { var _lane3 = pickArbitraryLane(DefaultLanes & ~wipLanes); if (_lane3 === NoLane) { // If all the default lanes are already being worked on, look for a // lane in the transition range. _lane3 = pickArbitraryLane(TransitionLanes & ~wipLanes); if (_lane3 === NoLane) { // All the transition lanes are taken, too. This should be very // rare, but as a last resort, pick a default lane. This will have // the effect of interrupting the current work-in-progress render. _lane3 = pickArbitraryLane(DefaultLanes); } } return _lane3; } case TransitionPriority: // Should be handled by findTransitionLane instead case RetryLanePriority: // Should be handled by findRetryLane instead break; case IdleLanePriority: var lane = pickArbitraryLane(IdleLanes & ~wipLanes); if (lane === NoLane) { lane = pickArbitraryLane(IdleLanes); } return lane; } { { throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." ); } } } // To ensure consistency across multiple updates in the same event, this should // be pure function, so that it always returns the same lane for given inputs. function findTransitionLane(wipLanes, pendingLanes) { // First look for lanes that are completely unclaimed, i.e. have no // pending work. var lane = pickArbitraryLane(TransitionLanes & ~pendingLanes); if (lane === NoLane) { // If all lanes have pending work, look for a lane that isn't currently // being worked on. lane = pickArbitraryLane(TransitionLanes & ~wipLanes); if (lane === NoLane) { // If everything is being worked on, pick any lane. This has the // effect of interrupting the current work-in-progress. lane = pickArbitraryLane(TransitionLanes); } } return lane; } // To ensure consistency across multiple updates in the same event, this should // be pure function, so that it always returns the same lane for given inputs. function findRetryLane(wipLanes) { // This is a fork of `findUpdateLane` designed specifically for Suspense // "retries" — a special update that attempts to flip a Suspense boundary // from its placeholder state to its primary/resolved state. var lane = pickArbitraryLane(RetryLanes & ~wipLanes); if (lane === NoLane) { lane = pickArbitraryLane(RetryLanes); } return lane; } function getHighestPriorityLane(lanes) { return lanes & -lanes; } function getLowestPriorityLane(lanes) { // This finds the most significant non-zero bit. var index = 31 - clz32(lanes); return index < 0 ? NoLanes : 1 << index; } function getEqualOrHigherPriorityLanes(lanes) { return (getLowestPriorityLane(lanes) << 1) - 1; } function pickArbitraryLane(lanes) { // This wrapper function gets inlined. Only exists so to communicate that it // doesn't matter which bit is selected; you can pick any bit without // affecting the algorithms where its used. Here I'm using // getHighestPriorityLane because it requires the fewest operations. return getHighestPriorityLane(lanes); } function pickArbitraryLaneIndex(lanes) { return 31 - clz32(lanes); } function laneToIndex(lane) { return pickArbitraryLaneIndex(lane); } function includesSomeLane(a, b) { return (a & b) !== NoLanes; } function isSubsetOfLanes(set, subset) { return (set & subset) === subset; } function mergeLanes(a, b) { return a | b; } function removeLanes(set, subset) { return set & ~subset; } // Seems redundant, but it changes the type from a single lane (used for // updates) to a group of lanes (used for flushing work). function laneToLanes(lane) { return lane; } function higherPriorityLane(a, b) { // This works because the bit ranges decrease in priority as you go left. return a !== NoLane && a < b ? a : b; } function createLaneMap(initial) { // Intentionally pushing one by one. // https://v8.dev/blog/elements-kinds#avoid-creating-holes var laneMap = []; for (var i = 0; i < TotalLanes; i++) { laneMap.push(initial); } return laneMap; } function markRootUpdated(root, updateLane, eventTime) { root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But // it's not practical to try every single possible combination. We need a // heuristic to decide which lanes to attempt to render, and in which batches. // For now, we use the same heuristic as in the old ExpirationTimes model: // retry any lane at equal or lower priority, but don't try updates at higher // priority without also including the lower priority updates. This works well // when considering updates across different priority levels, but isn't // sufficient for updates within the same priority, since we want to treat // those updates as parallel. // Unsuspend any update at equal or lower priority. var higherPriorityLanes = updateLane - 1; // Turns 0b1000 into 0b0111 root.suspendedLanes &= higherPriorityLanes; root.pingedLanes &= higherPriorityLanes; var eventTimes = root.eventTimes; var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most // recent event, and we assume time is monotonically increasing. eventTimes[index] = eventTime; } function markRootSuspended(root, suspendedLanes) { root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times. var expirationTimes = root.expirationTimes; var lanes = suspendedLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; expirationTimes[index] = NoTimestamp; lanes &= ~lane; } } function markRootPinged(root, pingedLanes, eventTime) { root.pingedLanes |= root.suspendedLanes & pingedLanes; } function markDiscreteUpdatesExpired(root) { root.expiredLanes |= InputDiscreteLanes & root.pendingLanes; } function hasDiscreteLanes(lanes) { return (lanes & InputDiscreteLanes) !== NoLanes; } function markRootMutableRead(root, updateLane) { root.mutableReadLanes |= updateLane & root.pendingLanes; } function markRootFinished(root, remainingLanes) { var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; root.pendingLanes = remainingLanes; // Let's try everything again root.suspendedLanes = 0; root.pingedLanes = 0; root.expiredLanes &= remainingLanes; root.mutableReadLanes &= remainingLanes; root.entangledLanes &= remainingLanes; var entanglements = root.entanglements; var eventTimes = root.eventTimes; var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work var lanes = noLongerPendingLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; entanglements[index] = NoLanes; eventTimes[index] = NoTimestamp; expirationTimes[index] = NoTimestamp; lanes &= ~lane; } } function markRootEntangled(root, entangledLanes) { root.entangledLanes |= entangledLanes; var entanglements = root.entanglements; var lanes = entangledLanes; while (lanes > 0) { var index = pickArbitraryLaneIndex(lanes); var lane = 1 << index; entanglements[index] |= entangledLanes; lanes &= ~lane; } } var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. Only used on lanes, so assume input is an integer. // Based on: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32 var log = Math.log; var LN2 = Math.LN2; function clz32Fallback(lanes) { if (lanes === 0) { return 32; } return 31 - (log(lanes) / LN2 | 0) | 0; } // Intentionally not named imports because Rollup would use dynamic dispatch for var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority, runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these? var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra. // We'd like to remove this but it's not clear if this is safe. function setEnabled(enabled) { _enabled = !!enabled; } function isEnabled() { return _enabled; } function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) { var eventPriority = getEventPriorityForPluginSystem(domEventName); var listenerWrapper; switch (eventPriority) { case DiscreteEvent: listenerWrapper = dispatchDiscreteEvent; break; case UserBlockingEvent: listenerWrapper = dispatchUserBlockingUpdate; break; case ContinuousEvent: default: listenerWrapper = dispatchEvent; break; } return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer); } function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { { flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp); } discreteUpdates(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent); } function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) { { runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent)); } } function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { if (!_enabled) { return; } var allowReplay = true; { // TODO: replaying capture phase events is currently broken // because we used to do it during top-level native bubble handlers // but now we use different bubble and capture handlers. // In eager mode, we attach capture listeners early, so we need // to filter them out until we fix the logic to handle them correctly. // This could've been outside the flag but I put it inside to reduce risk. allowReplay = (eventSystemFlags & IS_CAPTURE_PHASE) === 0; } if (allowReplay && hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(domEventName)) { // If we already have a queue of discrete events, and this is another discrete // event, then we can't dispatch it regardless of its target, since they // need to dispatch in order. queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know. domEventName, eventSystemFlags, targetContainer, nativeEvent); return; } var blockedOn = attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent); if (blockedOn === null) { // We successfully dispatched this event. if (allowReplay) { clearIfContinuousEvent(domEventName, nativeEvent); } return; } if (allowReplay) { if (isReplayableDiscreteEvent(domEventName)) { // This this to be replayed later once the target is available. queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent); return; } if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) { return; } // We need to clear only if we didn't queue because // queueing is accummulative. clearIfContinuousEvent(domEventName, nativeEvent); } // This is not replayable so we'll invoke it but without a target, // in case the event system needs to trace it. dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer); } // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked. function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { // TODO: Warn if _enabled is false. var nativeEventTarget = getEventTarget(nativeEvent); var targetInst = getClosestInstanceFromNode(nativeEventTarget); if (targetInst !== null) { var nearestMounted = getNearestMountedFiber(targetInst); if (nearestMounted === null) { // This tree has been unmounted already. Dispatch without a target. targetInst = null; } else { var tag = nearestMounted.tag; if (tag === SuspenseComponent) { var instance = getSuspenseInstanceFromFiber(nearestMounted); if (instance !== null) { // Queue the event to be replayed later. Abort dispatching since we // don't want this event dispatched twice through the event system. // TODO: If this is the first discrete event in the queue. Schedule an increased // priority for this boundary. return instance; } // This shouldn't happen, something went wrong but to avoid blocking // the whole system, dispatch the event without a target. // TODO: Warn. targetInst = null; } else if (tag === HostRoot) { var root = nearestMounted.stateNode; if (root.hydrate) { // If this happens during a replay something went wrong and it might block // the whole system. return getContainerFromFiber(nearestMounted); } targetInst = null; } else if (nearestMounted !== targetInst) { // If we get an event (ex: img onload) before committing that // component's mount, ignore it for now (that is, treat it as if it was an // event on a non-React tree). We might also consider queueing events and // dispatching them after the mount. targetInst = null; } } } dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer); // We're not blocked on anything. return null; } function addEventBubbleListener(target, eventType, listener) { target.addEventListener(eventType, listener, false); return listener; } function addEventCaptureListener(target, eventType, listener) { target.addEventListener(eventType, listener, true); return listener; } function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) { target.addEventListener(eventType, listener, { capture: true, passive: passive }); return listener; } function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) { target.addEventListener(eventType, listener, { passive: passive }); return listener; } /** * These variables store information about text content of a target node, * allowing comparison of content before and after a given event. * * Identify the node where selection currently begins, then observe * both its text content and its current position in the DOM. Since the * browser may natively replace the target node during composition, we can * use its position to find its replacement. * * */ var root = null; var startText = null; var fallbackText = null; function initialize(nativeEventTarget) { root = nativeEventTarget; startText = getText(); return true; } function reset() { root = null; startText = null; fallbackText = null; } function getData() { if (fallbackText) { return fallbackText; } var start; var startValue = startText; var startLength = startValue.length; var end; var endValue = getText(); var endLength = endValue.length; for (start = 0; start < startLength; start++) { if (startValue[start] !== endValue[start]) { break; } } var minEnd = startLength - start; for (end = 1; end <= minEnd; end++) { if (startValue[startLength - end] !== endValue[endLength - end]) { break; } } var sliceTail = end > 1 ? 1 - end : undefined; fallbackText = endValue.slice(start, sliceTail); return fallbackText; } function getText() { if ('value' in root) { return root.value; } return root.textContent; } /** * `charCode` represents the actual "character code" and is safe to use with * `String.fromCharCode`. As such, only keys that correspond to printable * characters produce a valid `charCode`, the only exception to this is Enter. * The Tab-key is considered non-printable and does not have a `charCode`, * presumably because it does not produce a tab-character in browsers. * * @param {object} nativeEvent Native browser event. * @return {number} Normalized `charCode` property. */ function getEventCharCode(nativeEvent) { var charCode; var keyCode = nativeEvent.keyCode; if ('charCode' in nativeEvent) { charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`. if (charCode === 0 && keyCode === 13) { charCode = 13; } } else { // IE8 does not implement `charCode`, but `keyCode` has the correct value. charCode = keyCode; } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux) // report Enter as charCode 10 when ctrl is pressed. if (charCode === 10) { charCode = 13; } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them. // Must not discard the (non-)printable Enter-key. if (charCode >= 32 || charCode === 13) { return charCode; } return 0; } function functionThatReturnsTrue() { return true; } function functionThatReturnsFalse() { return false; } // This is intentionally a factory so that we have different returned constructors. // If we had a single constructor, it would be megamorphic and engines would deopt. function createSyntheticEvent(Interface) { /** * Synthetic events are dispatched by event plugins, typically in response to a * top-level event delegation handler. * * These systems should generally use pooling to reduce the frequency of garbage * collection. The system should check `isPersistent` to determine whether the * event should be released into the pool after being dispatched. Users that * need a persisted event should invoke `persist`. * * Synthetic events (and subclasses) implement the DOM Level 3 Events API by * normalizing browser quirks. Subclasses do not necessarily have to implement a * DOM interface; custom application-specific events can also subclass this. */ function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { this._reactName = reactName; this._targetInst = targetInst; this.type = reactEventType; this.nativeEvent = nativeEvent; this.target = nativeEventTarget; this.currentTarget = null; for (var _propName in Interface) { if (!Interface.hasOwnProperty(_propName)) { continue; } var normalize = Interface[_propName]; if (normalize) { this[_propName] = normalize(nativeEvent); } else { this[_propName] = nativeEvent[_propName]; } } var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false; if (defaultPrevented) { this.isDefaultPrevented = functionThatReturnsTrue; } else { this.isDefaultPrevented = functionThatReturnsFalse; } this.isPropagationStopped = functionThatReturnsFalse; return this; } _assign(SyntheticBaseEvent.prototype, { preventDefault: function () { this.defaultPrevented = true; var event = this.nativeEvent; if (!event) { return; } if (event.preventDefault) { event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE } else if (typeof event.returnValue !== 'unknown') { event.returnValue = false; } this.isDefaultPrevented = functionThatReturnsTrue; }, stopPropagation: function () { var event = this.nativeEvent; if (!event) { return; } if (event.stopPropagation) { event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE } else if (typeof event.cancelBubble !== 'unknown') { // The ChangeEventPlugin registers a "propertychange" event for // IE. This event does not support bubbling or cancelling, and // any references to cancelBubble throw "Member not found". A // typeof check of "unknown" circumvents this issue (and is also // IE specific). event.cancelBubble = true; } this.isPropagationStopped = functionThatReturnsTrue; }, /** * We release all dispatched `SyntheticEvent`s after each event loop, adding * them back into the pool. This allows a way to hold onto a reference that * won't be added back into the pool. */ persist: function () {// Modern event system doesn't use pooling. }, /** * Checks if this event should be released back into the pool. * * @return {boolean} True if this should not be released, false otherwise. */ isPersistent: functionThatReturnsTrue }); return SyntheticBaseEvent; } /** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var EventInterface = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (event) { return event.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0 }; var SyntheticEvent = createSyntheticEvent(EventInterface); var UIEventInterface = _assign({}, EventInterface, { view: 0, detail: 0 }); var SyntheticUIEvent = createSyntheticEvent(UIEventInterface); var lastMovementX; var lastMovementY; var lastMouseEvent; function updateMouseMovementPolyfillState(event) { if (event !== lastMouseEvent) { if (lastMouseEvent && event.type === 'mousemove') { lastMovementX = event.screenX - lastMouseEvent.screenX; lastMovementY = event.screenY - lastMouseEvent.screenY; } else { lastMovementX = 0; lastMovementY = 0; } lastMouseEvent = event; } } /** * @interface MouseEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var MouseEventInterface = _assign({}, UIEventInterface, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: getEventModifierState, button: 0, buttons: 0, relatedTarget: function (event) { if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement; return event.relatedTarget; }, movementX: function (event) { if ('movementX' in event) { return event.movementX; } updateMouseMovementPolyfillState(event); return lastMovementX; }, movementY: function (event) { if ('movementY' in event) { return event.movementY; } // Don't need to call updateMouseMovementPolyfillState() here // because it's guaranteed to have already run when movementX // was copied. return lastMovementY; } }); var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface); /** * @interface DragEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var DragEventInterface = _assign({}, MouseEventInterface, { dataTransfer: 0 }); var SyntheticDragEvent = createSyntheticEvent(DragEventInterface); /** * @interface FocusEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var FocusEventInterface = _assign({}, UIEventInterface, { relatedTarget: 0 }); var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface); /** * @interface Event * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent */ var AnimationEventInterface = _assign({}, EventInterface, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }); var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface); /** * @interface Event * @see http://www.w3.org/TR/clipboard-apis/ */ var ClipboardEventInterface = _assign({}, EventInterface, { clipboardData: function (event) { return 'clipboardData' in event ? event.clipboardData : window.clipboardData; } }); var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface); /** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents */ var CompositionEventInterface = _assign({}, EventInterface, { data: 0 }); var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface); /** * @interface Event * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105 * /#events-inputevents */ // Happens to share the same list for now. var SyntheticInputEvent = SyntheticCompositionEvent; /** * Normalization of deprecated HTML5 `key` values * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names */ var normalizeKey = { Esc: 'Escape', Spacebar: ' ', Left: 'ArrowLeft', Up: 'ArrowUp', Right: 'ArrowRight', Down: 'ArrowDown', Del: 'Delete', Win: 'OS', Menu: 'ContextMenu', Apps: 'ContextMenu', Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified' }; /** * Translation from legacy `keyCode` to HTML5 `key` * Only special keys supported, all others depend on keyboard layout or browser * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names */ var translateToKey = { '8': 'Backspace', '9': 'Tab', '12': 'Clear', '13': 'Enter', '16': 'Shift', '17': 'Control', '18': 'Alt', '19': 'Pause', '20': 'CapsLock', '27': 'Escape', '32': ' ', '33': 'PageUp', '34': 'PageDown', '35': 'End', '36': 'Home', '37': 'ArrowLeft', '38': 'ArrowUp', '39': 'ArrowRight', '40': 'ArrowDown', '45': 'Insert', '46': 'Delete', '112': 'F1', '113': 'F2', '114': 'F3', '115': 'F4', '116': 'F5', '117': 'F6', '118': 'F7', '119': 'F8', '120': 'F9', '121': 'F10', '122': 'F11', '123': 'F12', '144': 'NumLock', '145': 'ScrollLock', '224': 'Meta' }; /** * @param {object} nativeEvent Native browser event. * @return {string} Normalized `key` property. */ function getEventKey(nativeEvent) { if (nativeEvent.key) { // Normalize inconsistent values reported by browsers due to // implementations of a working draft specification. // FireFox implements `key` but returns `MozPrintableKey` for all // printable characters (normalized to `Unidentified`), ignore it. var key = normalizeKey[nativeEvent.key] || nativeEvent.key; if (key !== 'Unidentified') { return key; } } // Browser does not implement `key`, polyfill as much of it as we can. if (nativeEvent.type === 'keypress') { var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can // thus be captured by `keypress`, no other non-printable key should. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode); } if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') { // While user keyboard layout determines the actual meaning of each // `keyCode` value, almost all function keys have a universal value. return translateToKey[nativeEvent.keyCode] || 'Unidentified'; } return ''; } /** * Translation from modifier key to the associated property in the event. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers */ var modifierKeyToProp = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' }; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support // getModifierState. If getModifierState is not supported, we map it to a set of // modifier keys exposed by the event. In this case, Lock-keys are not supported. function modifierStateGetter(keyArg) { var syntheticEvent = this; var nativeEvent = syntheticEvent.nativeEvent; if (nativeEvent.getModifierState) { return nativeEvent.getModifierState(keyArg); } var keyProp = modifierKeyToProp[keyArg]; return keyProp ? !!nativeEvent[keyProp] : false; } function getEventModifierState(nativeEvent) { return modifierStateGetter; } /** * @interface KeyboardEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var KeyboardEventInterface = _assign({}, UIEventInterface, { key: getEventKey, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: getEventModifierState, // Legacy Interface charCode: function (event) { // `charCode` is the result of a KeyPress event and represents the value of // the actual printable character. // KeyPress is deprecated, but its replacement is not yet final and not // implemented in any major browser. Only KeyPress has charCode. if (event.type === 'keypress') { return getEventCharCode(event); } return 0; }, keyCode: function (event) { // `keyCode` is the result of a KeyDown/Up event and represents the value of // physical keyboard key. // The actual meaning of the value depends on the users' keyboard layout // which cannot be detected. Assuming that it is a US keyboard layout // provides a surprisingly accurate mapping for US and European users. // Due to this, it is left to the user to implement at this time. if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; }, which: function (event) { // `which` is an alias for either `keyCode` or `charCode` depending on the // type of the event. if (event.type === 'keypress') { return getEventCharCode(event); } if (event.type === 'keydown' || event.type === 'keyup') { return event.keyCode; } return 0; } }); var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface); /** * @interface PointerEvent * @see http://www.w3.org/TR/pointerevents/ */ var PointerEventInterface = _assign({}, MouseEventInterface, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }); var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface); /** * @interface TouchEvent * @see http://www.w3.org/TR/touch-events/ */ var TouchEventInterface = _assign({}, UIEventInterface, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: getEventModifierState }); var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface); /** * @interface Event * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent */ var TransitionEventInterface = _assign({}, EventInterface, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }); var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface); /** * @interface WheelEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var WheelEventInterface = _assign({}, MouseEventInterface, { deltaX: function (event) { return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). 'wheelDeltaX' in event ? -event.wheelDeltaX : 0; }, deltaY: function (event) { return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive). 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive). 'wheelDelta' in event ? -event.wheelDelta : 0; }, deltaZ: 0, // Browsers without "deltaMode" is reporting in raw wheel delta where one // notch on the scroll is always +/- 120, roughly equivalent to pixels. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size. deltaMode: 0 }); var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface); var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space var START_KEYCODE = 229; var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window; var documentMode = null; if (canUseDOM && 'documentMode' in document) { documentMode = document.documentMode; } // Webkit offers a very useful `textInput` event that can be used to // directly represent `beforeInput`. The IE `textinput` event is not as // useful, so we don't use it. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied // by the native compositionend event may be incorrect. Japanese ideographic // spaces, for instance (\u3000) are not recorded correctly. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11); var SPACEBAR_CODE = 32; var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); function registerEvents() { registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']); registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']); } // Track whether we've ever handled a keypress on the space key. var hasSpaceKeypress = false; /** * Return whether a native keypress event is assumed to be a command. * This is required because Firefox fires `keypress` events for key commands * (cut, copy, select-all, etc.) even though no character is inserted. */ function isKeypressCommand(nativeEvent) { return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command. !(nativeEvent.ctrlKey && nativeEvent.altKey); } /** * Translate native top level events into event types. */ function getCompositionEventType(domEventName) { switch (domEventName) { case 'compositionstart': return 'onCompositionStart'; case 'compositionend': return 'onCompositionEnd'; case 'compositionupdate': return 'onCompositionUpdate'; } } /** * Does our fallback best-guess model think this event signifies that * composition has begun? */ function isFallbackCompositionStart(domEventName, nativeEvent) { return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE; } /** * Does our fallback mode think that this event is the end of composition? */ function isFallbackCompositionEnd(domEventName, nativeEvent) { switch (domEventName) { case 'keyup': // Command keys insert or clear IME input. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; case 'keydown': // Expect IME keyCode on each keydown. If we get any other // code we must have exited earlier. return nativeEvent.keyCode !== START_KEYCODE; case 'keypress': case 'mousedown': case 'focusout': // Events are not possible without cancelling IME. return true; default: return false; } } /** * Google Input Tools provides composition data via a CustomEvent, * with the `data` property populated in the `detail` object. If this * is available on the event object, use it. If not, this is a plain * composition event and we have nothing special to extract. * * @param {object} nativeEvent * @return {?string} */ function getDataFromCustomEvent(nativeEvent) { var detail = nativeEvent.detail; if (typeof detail === 'object' && 'data' in detail) { return detail.data; } return null; } /** * Check if a composition event was triggered by Korean IME. * Our fallback mode does not work well with IE's Korean IME, * so just use native composition events when Korean IME is used. * Although CompositionEvent.locale property is deprecated, * it is available in IE, where our fallback mode is enabled. * * @param {object} nativeEvent * @return {boolean} */ function isUsingKoreanIME(nativeEvent) { return nativeEvent.locale === 'ko'; } // Track the current IME composition status, if any. var isComposing = false; /** * @return {?object} A SyntheticCompositionEvent. */ function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) { var eventType; var fallbackData; if (canUseCompositionEvent) { eventType = getCompositionEventType(domEventName); } else if (!isComposing) { if (isFallbackCompositionStart(domEventName, nativeEvent)) { eventType = 'onCompositionStart'; } } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) { eventType = 'onCompositionEnd'; } if (!eventType) { return null; } if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) { // The current composition is stored statically and must not be // overwritten while composition continues. if (!isComposing && eventType === 'onCompositionStart') { isComposing = initialize(nativeEventTarget); } else if (eventType === 'onCompositionEnd') { if (isComposing) { fallbackData = getData(); } } } var listeners = accumulateTwoPhaseListeners(targetInst, eventType); if (listeners.length > 0) { var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); if (fallbackData) { // Inject data generated from fallback path into the synthetic event. // This matches the property of native CompositionEventInterface. event.data = fallbackData; } else { var customData = getDataFromCustomEvent(nativeEvent); if (customData !== null) { event.data = customData; } } } } function getNativeBeforeInputChars(domEventName, nativeEvent) { switch (domEventName) { case 'compositionend': return getDataFromCustomEvent(nativeEvent); case 'keypress': /** * If native `textInput` events are available, our goal is to make * use of them. However, there is a special case: the spacebar key. * In Webkit, preventing default on a spacebar `textInput` event * cancels character insertion, but it *also* causes the browser * to fall back to its default spacebar behavior of scrolling the * page. * * Tracking at: * https://code.google.com/p/chromium/issues/detail?id=355103 * * To avoid this issue, use the keypress event as if no `textInput` * event is available. */ var which = nativeEvent.which; if (which !== SPACEBAR_CODE) { return null; } hasSpaceKeypress = true; return SPACEBAR_CHAR; case 'textInput': // Record the characters to be added to the DOM. var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled // it at the keypress level and bail immediately. Android Chrome // doesn't give us keycodes, so we need to ignore it. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) { return null; } return chars; default: // For other native event types, do nothing. return null; } } /** * For browsers that do not provide the `textInput` event, extract the * appropriate string to use for SyntheticInputEvent. */ function getFallbackBeforeInputChars(domEventName, nativeEvent) { // If we are currently composing (IME) and using a fallback to do so, // try to extract the composed characters from the fallback object. // If composition event is available, we extract a string only at // compositionevent, otherwise extract it at fallback events. if (isComposing) { if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) { var chars = getData(); reset(); isComposing = false; return chars; } return null; } switch (domEventName) { case 'paste': // If a paste event occurs after a keypress, throw out the input // chars. Paste events should not lead to BeforeInput events. return null; case 'keypress': /** * As of v27, Firefox may fire keypress events even when no character * will be inserted. A few possibilities: * * - `which` is `0`. Arrow keys, Esc key, etc. * * - `which` is the pressed key code, but no char is available. * Ex: 'AltGr + d` in Polish. There is no modified character for * this key combination and no character is inserted into the * document, but FF fires the keypress for char code `100` anyway. * No `input` event will occur. * * - `which` is the pressed key code, but a command combination is * being used. Ex: `Cmd+C`. No character is inserted, and no * `input` event will occur. */ if (!isKeypressCommand(nativeEvent)) { // IE fires the `keypress` event when a user types an emoji via // Touch keyboard of Windows. In such a case, the `char` property // holds an emoji character like `\uD83D\uDE0A`. Because its length // is 2, the property `which` does not represent an emoji correctly. // In such a case, we directly return the `char` property instead of // using `which`. if (nativeEvent.char && nativeEvent.char.length > 1) { return nativeEvent.char; } else if (nativeEvent.which) { return String.fromCharCode(nativeEvent.which); } } return null; case 'compositionend': return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data; default: return null; } } /** * Extract a SyntheticInputEvent for `beforeInput`, based on either native * `textInput` or fallback behavior. * * @return {?object} A SyntheticInputEvent. */ function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) { var chars; if (canUseTextInputEvent) { chars = getNativeBeforeInputChars(domEventName, nativeEvent); } else { chars = getFallbackBeforeInputChars(domEventName, nativeEvent); } // If no characters are being inserted, no BeforeInput event should // be fired. if (!chars) { return null; } var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput'); if (listeners.length > 0) { var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); event.data = chars; } } /** * Create an `onBeforeInput` event to match * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents. * * This event plugin is based on the native `textInput` event * available in Chrome, Safari, Opera, and IE. This event fires after * `onKeyPress` and `onCompositionEnd`, but before `onInput`. * * `beforeInput` is spec'd but not implemented in any browsers, and * the `input` event does not provide any useful information about what has * actually been added, contrary to the spec. Thus, `textInput` is the best * available event to identify the characters that have actually been inserted * into the target node. * * This plugin is also responsible for emitting `composition` events, thus * allowing us to share composition fallback code for both `beforeInput` and * `composition` event types. */ function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); } /** * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary */ var supportedInputTypes = { color: true, date: true, datetime: true, 'datetime-local': true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true }; function isTextInputElement(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); if (nodeName === 'input') { return !!supportedInputTypes[elem.type]; } if (nodeName === 'textarea') { return true; } return false; } /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ function isEventSupported(eventNameSuffix) { if (!canUseDOM) { return false; } var eventName = 'on' + eventNameSuffix; var isSupported = (eventName in document); if (!isSupported) { var element = document.createElement('div'); element.setAttribute(eventName, 'return;'); isSupported = typeof element[eventName] === 'function'; } return isSupported; } function registerEvents$1() { registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']); } function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { // Flag this event loop as needing state restore. enqueueStateRestore(target); var listeners = accumulateTwoPhaseListeners(inst, 'onChange'); if (listeners.length > 0) { var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target); dispatchQueue.push({ event: event, listeners: listeners }); } } /** * For IE shims */ var activeElement = null; var activeElementInst = null; /** * SECTION: handle `change` event */ function shouldUseChangeEvent(elem) { var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); return nodeName === 'select' || nodeName === 'input' && elem.type === 'file'; } function manualDispatchChangeEvent(nativeEvent) { var dispatchQueue = []; createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the // other events and have it go through ReactBrowserEventEmitter. Since it // doesn't, we manually listen for the events and so we have to enqueue and // process the abstract event manually. // // Batching is necessary here in order to ensure that all event handlers run // before the next rerender (including event handlers attached to ancestor // elements instead of directly on the input). Without this, controlled // components don't work properly in conjunction with event bubbling because // the component is rerendered and the value reverted before all the event // handlers can run. See https://github.com/facebook/react/issues/708. batchedUpdates(runEventInBatch, dispatchQueue); } function runEventInBatch(dispatchQueue) { processDispatchQueue(dispatchQueue, 0); } function getInstIfValueChanged(targetInst) { var targetNode = getNodeFromInstance(targetInst); if (updateValueIfChanged(targetNode)) { return targetInst; } } function getTargetInstForChangeEvent(domEventName, targetInst) { if (domEventName === 'change') { return targetInst; } } /** * SECTION: handle `input` event */ var isInputEventSupported = false; if (canUseDOM) { // IE9 claims to support the input event but fails to trigger it when // deleting text, so we ignore its input events. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9); } /** * (For IE <=9) Starts tracking propertychange events on the passed-in element * and override the value property so that we can distinguish user events from * value changes in JS. */ function startWatchingForValueChange(target, targetInst) { activeElement = target; activeElementInst = targetInst; activeElement.attachEvent('onpropertychange', handlePropertyChange); } /** * (For IE <=9) Removes the event listeners from the currently-tracked element, * if any exists. */ function stopWatchingForValueChange() { if (!activeElement) { return; } activeElement.detachEvent('onpropertychange', handlePropertyChange); activeElement = null; activeElementInst = null; } /** * (For IE <=9) Handles a propertychange event, sending a `change` event if * the value of the active element has changed. */ function handlePropertyChange(nativeEvent) { if (nativeEvent.propertyName !== 'value') { return; } if (getInstIfValueChanged(activeElementInst)) { manualDispatchChangeEvent(nativeEvent); } } function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { if (domEventName === 'focusin') { // In IE9, propertychange fires for most input events but is buggy and // doesn't fire when text is deleted, but conveniently, selectionchange // appears to fire in all of the remaining cases so we catch those and // forward the event if the value has changed // In either case, we don't want to call the event handler if the value // is changed from JS so we redefine a setter for `.value` that updates // our activeElementValue variable, allowing us to ignore those changes // // stopWatching() should be a noop here but we call it just in case we // missed a blur event somehow. stopWatchingForValueChange(); startWatchingForValueChange(target, targetInst); } else if (domEventName === 'focusout') { stopWatchingForValueChange(); } } // For IE8 and IE9. function getTargetInstForInputEventPolyfill(domEventName, targetInst) { if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') { // On the selectionchange event, the target is just document which isn't // helpful for us so just check activeElement instead. // // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire // propertychange on the first input event after setting `value` from a // script and fires only keydown, keypress, keyup. Catching keyup usually // gets it and catching keydown lets us fire an event for the first // keystroke if user does a key repeat (it'll be a little delayed: right // before the second keystroke). Other input methods (e.g., paste) seem to // fire selectionchange normally. return getInstIfValueChanged(activeElementInst); } } /** * SECTION: handle `click` event */ function shouldUseClickEvent(elem) { // Use the `click` event to detect changes to checkbox and radio inputs. // This approach works across all browsers, whereas `change` does not fire // until `blur` in IE8. var nodeName = elem.nodeName; return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio'); } function getTargetInstForClickEvent(domEventName, targetInst) { if (domEventName === 'click') { return getInstIfValueChanged(targetInst); } } function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { if (domEventName === 'input' || domEventName === 'change') { return getInstIfValueChanged(targetInst); } } function handleControlledInputBlur(node) { var state = node._wrapperState; if (!state || !state.controlled || node.type !== 'number') { return; } { // If controlled, assign the value attribute to the current value on blur setDefaultValue(node, 'number', node.value); } } /** * This plugin creates an `onChange` event that normalizes change events * across form elements. This event fires at a time when it's possible to * change the element's value without seeing a flicker. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - select */ function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var targetNode = targetInst ? getNodeFromInstance(targetInst) : window; var getTargetInstFunc, handleEventFunc; if (shouldUseChangeEvent(targetNode)) { getTargetInstFunc = getTargetInstForChangeEvent; } else if (isTextInputElement(targetNode)) { if (isInputEventSupported) { getTargetInstFunc = getTargetInstForInputOrChangeEvent; } else { getTargetInstFunc = getTargetInstForInputEventPolyfill; handleEventFunc = handleEventsForInputEventPolyfill; } } else if (shouldUseClickEvent(targetNode)) { getTargetInstFunc = getTargetInstForClickEvent; } if (getTargetInstFunc) { var inst = getTargetInstFunc(domEventName, targetInst); if (inst) { createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget); return; } } if (handleEventFunc) { handleEventFunc(domEventName, targetNode, targetInst); } // When blurring, set the value attribute for number inputs if (domEventName === 'focusout') { handleControlledInputBlur(targetNode); } } function registerEvents$2() { registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']); registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']); registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']); registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']); } /** * For almost every interaction we care about, there will be both a top-level * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that * we do not extract duplicate events. However, moving the mouse into the * browser from outside will not fire a `mouseout` event. In this case, we use * the `mouseover` top-level event. */ function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover'; var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout'; if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0) { // If this is an over event with a target, we might have already dispatched // the event in the out event of the other target. If this is replayed, // then it's because we couldn't dispatch against this target previously // so we have to do it now instead. var related = nativeEvent.relatedTarget || nativeEvent.fromElement; if (related) { // If the related node is managed by React, we can assume that we have // already dispatched the corresponding events during its mouseout. if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) { return; } } } if (!isOutEvent && !isOverEvent) { // Must not be a mouse or pointer in or out - ignoring. return; } var win; // TODO: why is this nullable in the types but we read from it? if (nativeEventTarget.window === nativeEventTarget) { // `nativeEventTarget` is probably a window object. win = nativeEventTarget; } else { // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8. var doc = nativeEventTarget.ownerDocument; if (doc) { win = doc.defaultView || doc.parentWindow; } else { win = window; } } var from; var to; if (isOutEvent) { var _related = nativeEvent.relatedTarget || nativeEvent.toElement; from = targetInst; to = _related ? getClosestInstanceFromNode(_related) : null; if (to !== null) { var nearestMounted = getNearestMountedFiber(to); if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) { to = null; } } } else { // Moving to a node from outside the window. from = null; to = targetInst; } if (from === to) { // Nothing pertains to our managed components. return; } var SyntheticEventCtor = SyntheticMouseEvent; var leaveEventType = 'onMouseLeave'; var enterEventType = 'onMouseEnter'; var eventTypePrefix = 'mouse'; if (domEventName === 'pointerout' || domEventName === 'pointerover') { SyntheticEventCtor = SyntheticPointerEvent; leaveEventType = 'onPointerLeave'; enterEventType = 'onPointerEnter'; eventTypePrefix = 'pointer'; } var fromNode = from == null ? win : getNodeFromInstance(from); var toNode = to == null ? win : getNodeFromInstance(to); var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget); leave.target = fromNode; leave.relatedTarget = toNode; var enter = null; // We should only process this nativeEvent if we are processing // the first ancestor. Next time, we will ignore the event. var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget); if (nativeTargetInst === targetInst) { var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget); enterEvent.target = toNode; enterEvent.relatedTarget = fromNode; enter = enterEvent; } accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to); } /** * inlined Object.is polyfill to avoid requiring consumers ship their own * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is */ function is(x, y) { return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare ; } var objectIs = typeof Object.is === 'function' ? Object.is : is; var hasOwnProperty$2 = Object.prototype.hasOwnProperty; /** * Performs equality by iterating through keys on an object and returning false * when any key has values which are not strictly equal between the arguments. * Returns true when the values of all keys are strictly equal. */ function shallowEqual(objA, objB) { if (objectIs(objA, objB)) { return true; } if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) { return false; } var keysA = Object.keys(objA); var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; } // Test for A's keys different from B. for (var i = 0; i < keysA.length; i++) { if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) { return false; } } return true; } /** * Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode} */ function getLeafNode(node) { while (node && node.firstChild) { node = node.firstChild; } return node; } /** * Get the next sibling within a container. This will walk up the * DOM if a node's siblings have been exhausted. * * @param {DOMElement|DOMTextNode} node * @return {?DOMElement|DOMTextNode} */ function getSiblingNode(node) { while (node) { if (node.nextSibling) { return node.nextSibling; } node = node.parentNode; } } /** * Get object describing the nodes which contain characters at offset. * * @param {DOMElement|DOMTextNode} root * @param {number} offset * @return {?object} */ function getNodeForCharacterOffset(root, offset) { var node = getLeafNode(root); var nodeStart = 0; var nodeEnd = 0; while (node) { if (node.nodeType === TEXT_NODE) { nodeEnd = nodeStart + node.textContent.length; if (nodeStart <= offset && nodeEnd >= offset) { return { node: node, offset: offset - nodeStart }; } nodeStart = nodeEnd; } node = getLeafNode(getSiblingNode(node)); } } /** * @param {DOMElement} outerNode * @return {?object} */ function getOffsets(outerNode) { var ownerDocument = outerNode.ownerDocument; var win = ownerDocument && ownerDocument.defaultView || window; var selection = win.getSelection && win.getSelection(); if (!selection || selection.rangeCount === 0) { return null; } var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the // up/down buttons on an . Anonymous divs do not seem to // expose properties, triggering a "Permission denied error" if any of its // properties are accessed. The only seemingly possible way to avoid erroring // is to access a property that typically works for non-anonymous divs and // catch any error that may otherwise arise. See // https://bugzilla.mozilla.org/show_bug.cgi?id=208427 try { /* eslint-disable no-unused-expressions */ anchorNode.nodeType; focusNode.nodeType; /* eslint-enable no-unused-expressions */ } catch (e) { return null; } return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); } /** * Returns {start, end} where `start` is the character/codepoint index of * (anchorNode, anchorOffset) within the textContent of `outerNode`, and * `end` is the index of (focusNode, focusOffset). * * Returns null if you pass in garbage input but we should probably just crash. * * Exported only for testing. */ function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { var length = 0; var start = -1; var end = -1; var indexWithinAnchor = 0; var indexWithinFocus = 0; var node = outerNode; var parentNode = null; outer: while (true) { var next = null; while (true) { if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) { start = length + anchorOffset; } if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) { end = length + focusOffset; } if (node.nodeType === TEXT_NODE) { length += node.nodeValue.length; } if ((next = node.firstChild) === null) { break; } // Moving from `node` to its first child `next`. parentNode = node; node = next; } while (true) { if (node === outerNode) { // If `outerNode` has children, this is always the second time visiting // it. If it has no children, this is still the first loop, and the only // valid selection is anchorNode and focusNode both equal to this node // and both offsets 0, in which case we will have handled above. break outer; } if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) { start = length; } if (parentNode === focusNode && ++indexWithinFocus === focusOffset) { end = length; } if ((next = node.nextSibling) !== null) { break; } node = parentNode; parentNode = node.parentNode; } // Moving from `node` to its next sibling `next`. node = next; } if (start === -1 || end === -1) { // This should never happen. (Would happen if the anchor/focus nodes aren't // actually inside the passed-in node.) return null; } return { start: start, end: end }; } /** * In modern non-IE browsers, we can support both forward and backward * selections. * * Note: IE10+ supports the Selection object, but it does not support * the `extend` method, which means that even in modern IE, it's not possible * to programmatically create a backward selection. Thus, for all IE * versions, we use the old IE API to create our selections. * * @param {DOMElement|DOMTextNode} node * @param {object} offsets */ function setOffsets(node, offsets) { var doc = node.ownerDocument || document; var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios. // (For instance: TinyMCE editor used in a list component that supports pasting to add more, // fails when pasting 100+ items) if (!win.getSelection) { return; } var selection = win.getSelection(); var length = node.textContent.length; var start = Math.min(offsets.start, length); var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method. // Flip backward selections, so we can set with a single range. if (!selection.extend && start > end) { var temp = end; end = start; start = temp; } var startMarker = getNodeForCharacterOffset(node, start); var endMarker = getNodeForCharacterOffset(node, end); if (startMarker && endMarker) { if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) { return; } var range = doc.createRange(); range.setStart(startMarker.node, startMarker.offset); selection.removeAllRanges(); if (start > end) { selection.addRange(range); selection.extend(endMarker.node, endMarker.offset); } else { range.setEnd(endMarker.node, endMarker.offset); selection.addRange(range); } } } function isTextNode(node) { return node && node.nodeType === TEXT_NODE; } function containsNode(outerNode, innerNode) { if (!outerNode || !innerNode) { return false; } else if (outerNode === innerNode) { return true; } else if (isTextNode(outerNode)) { return false; } else if (isTextNode(innerNode)) { return containsNode(outerNode, innerNode.parentNode); } else if ('contains' in outerNode) { return outerNode.contains(innerNode); } else if (outerNode.compareDocumentPosition) { return !!(outerNode.compareDocumentPosition(innerNode) & 16); } else { return false; } } function isInDocument(node) { return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node); } function isSameOriginFrame(iframe) { try { // Accessing the contentDocument of a HTMLIframeElement can cause the browser // to throw, e.g. if it has a cross-origin src attribute. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g: // iframe.contentDocument.defaultView; // A safety way is to access one of the cross origin properties: Window or Location // Which might result in "SecurityError" DOM Exception and it is compatible to Safari. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl return typeof iframe.contentWindow.location.href === 'string'; } catch (err) { return false; } } function getActiveElementDeep() { var win = window; var element = getActiveElement(); while (element instanceof win.HTMLIFrameElement) { if (isSameOriginFrame(element)) { win = element.contentWindow; } else { return element; } element = getActiveElement(win.document); } return element; } /** * @ReactInputSelection: React input selection module. Based on Selection.js, * but modified to be suitable for react and has a couple of bug fixes (doesn't * assume buttons have range selections allowed). * Input selection module for React. */ /** * @hasSelectionCapabilities: we get the element types that support selection * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart` * and `selectionEnd` rows. */ function hasSelectionCapabilities(elem) { var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); } function getSelectionInformation() { var focusedElem = getActiveElementDeep(); return { focusedElem: focusedElem, selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null }; } /** * @restoreSelection: If any selection information was potentially lost, * restore it. This is useful when performing operations that could remove dom * nodes and place them back in, resulting in focus being lost. */ function restoreSelection(priorSelectionInformation) { var curFocusedElem = getActiveElementDeep(); var priorFocusedElem = priorSelectionInformation.focusedElem; var priorSelectionRange = priorSelectionInformation.selectionRange; if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) { setSelection(priorFocusedElem, priorSelectionRange); } // Focusing a node can change the scroll position, which is undesirable var ancestors = []; var ancestor = priorFocusedElem; while (ancestor = ancestor.parentNode) { if (ancestor.nodeType === ELEMENT_NODE) { ancestors.push({ element: ancestor, left: ancestor.scrollLeft, top: ancestor.scrollTop }); } } if (typeof priorFocusedElem.focus === 'function') { priorFocusedElem.focus(); } for (var i = 0; i < ancestors.length; i++) { var info = ancestors[i]; info.element.scrollLeft = info.left; info.element.scrollTop = info.top; } } } /** * @getSelection: Gets the selection bounds of a focused textarea, input or * contentEditable node. * -@input: Look up selection bounds of this input * -@return {start: selectionStart, end: selectionEnd} */ function getSelection(input) { var selection; if ('selectionStart' in input) { // Modern browser with input or textarea. selection = { start: input.selectionStart, end: input.selectionEnd }; } else { // Content editable or old IE textarea. selection = getOffsets(input); } return selection || { start: 0, end: 0 }; } /** * @setSelection: Sets the selection bounds of a textarea or input and focuses * the input. * -@input Set selection bounds of this input or textarea * -@offsets Object of same form that is returned from get* */ function setSelection(input, offsets) { var start = offsets.start; var end = offsets.end; if (end === undefined) { end = start; } if ('selectionStart' in input) { input.selectionStart = start; input.selectionEnd = Math.min(end, input.value.length); } else { setOffsets(input, offsets); } } var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11; function registerEvents$3() { registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']); } var activeElement$1 = null; var activeElementInst$1 = null; var lastSelection = null; var mouseDown = false; /** * Get an object which is a unique representation of the current selection. * * The return value will not be consistent across nodes or browsers, but * two identical selections on the same node will return identical objects. */ function getSelection$1(node) { if ('selectionStart' in node && hasSelectionCapabilities(node)) { return { start: node.selectionStart, end: node.selectionEnd }; } else { var win = node.ownerDocument && node.ownerDocument.defaultView || window; var selection = win.getSelection(); return { anchorNode: selection.anchorNode, anchorOffset: selection.anchorOffset, focusNode: selection.focusNode, focusOffset: selection.focusOffset }; } } /** * Get document associated with the event target. */ function getEventTargetDocument(eventTarget) { return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument; } /** * Poll selection to see whether it's changed. * * @param {object} nativeEvent * @param {object} nativeEventTarget * @return {?SyntheticEvent} */ function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { // Ensure we have the right element, and that the user is not dragging a // selection (this matches native `select` event behavior). In HTML5, select // fires only on input and textarea thus if there's no focused element we // won't dispatch. var doc = getEventTargetDocument(nativeEventTarget); if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) { return; } // Only fire when selection has actually changed. var currentSelection = getSelection$1(activeElement$1); if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { lastSelection = currentSelection; var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect'); if (listeners.length > 0) { var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: event, listeners: listeners }); event.target = activeElement$1; } } } /** * This plugin creates an `onSelect` event that normalizes select events * across form elements. * * Supported elements are: * - input (see `isTextInputElement`) * - textarea * - contentEditable * * This differs from native browser implementations in the following ways: * - Fires on contentEditable fields as well as inputs. * - Fires for collapsed selection. * - Fires after user input. */ function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var targetNode = targetInst ? getNodeFromInstance(targetInst) : window; switch (domEventName) { // Track the input node that has focus. case 'focusin': if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { activeElement$1 = targetNode; activeElementInst$1 = targetInst; lastSelection = null; } break; case 'focusout': activeElement$1 = null; activeElementInst$1 = null; lastSelection = null; break; // Don't fire the event while the user is dragging. This matches the // semantics of the native select event. case 'mousedown': mouseDown = true; break; case 'contextmenu': case 'mouseup': case 'dragend': mouseDown = false; constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); break; // Chrome and IE fire non-standard event when selection is changed (and // sometimes when it hasn't). IE's event fires out of order with respect // to key and input events on deletion, so we discard it. // // Firefox doesn't support selectionchange, so check selection status // after each key entry. The selection changes after keydown and before // keyup, but we check on keydown as well in the case of holding down a // key, when multiple keydown events are fired but only one keyup is. // This is also our approach for IE handling, for the reason above. case 'selectionchange': if (skipSelectionChangeEvent) { break; } // falls through case 'keydown': case 'keyup': constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); } } function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { var reactName = topLevelEventsToReactNames.get(domEventName); if (reactName === undefined) { return; } var SyntheticEventCtor = SyntheticEvent; var reactEventType = domEventName; switch (domEventName) { case 'keypress': // Firefox creates a keypress event for function keys too. This removes // the unwanted keypress events. Enter is however both printable and // non-printable. One would expect Tab to be as well (but it isn't). if (getEventCharCode(nativeEvent) === 0) { return; } /* falls through */ case 'keydown': case 'keyup': SyntheticEventCtor = SyntheticKeyboardEvent; break; case 'focusin': reactEventType = 'focus'; SyntheticEventCtor = SyntheticFocusEvent; break; case 'focusout': reactEventType = 'blur'; SyntheticEventCtor = SyntheticFocusEvent; break; case 'beforeblur': case 'afterblur': SyntheticEventCtor = SyntheticFocusEvent; break; case 'click': // Firefox creates a click event on right mouse clicks. This removes the // unwanted click events. if (nativeEvent.button === 2) { return; } /* falls through */ case 'auxclick': case 'dblclick': case 'mousedown': case 'mousemove': case 'mouseup': // TODO: Disabled elements should not respond to mouse events /* falls through */ case 'mouseout': case 'mouseover': case 'contextmenu': SyntheticEventCtor = SyntheticMouseEvent; break; case 'drag': case 'dragend': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'dragstart': case 'drop': SyntheticEventCtor = SyntheticDragEvent; break; case 'touchcancel': case 'touchend': case 'touchmove': case 'touchstart': SyntheticEventCtor = SyntheticTouchEvent; break; case ANIMATION_END: case ANIMATION_ITERATION: case ANIMATION_START: SyntheticEventCtor = SyntheticAnimationEvent; break; case TRANSITION_END: SyntheticEventCtor = SyntheticTransitionEvent; break; case 'scroll': SyntheticEventCtor = SyntheticUIEvent; break; case 'wheel': SyntheticEventCtor = SyntheticWheelEvent; break; case 'copy': case 'cut': case 'paste': SyntheticEventCtor = SyntheticClipboardEvent; break; case 'gotpointercapture': case 'lostpointercapture': case 'pointercancel': case 'pointerdown': case 'pointermove': case 'pointerout': case 'pointerover': case 'pointerup': SyntheticEventCtor = SyntheticPointerEvent; break; } var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0; { // Some events don't bubble in the browser. // In the past, React has always bubbled them, but this can be surprising. // We're going to try aligning closer to the browser behavior by not bubbling // them in React either. We'll start by not bubbling onScroll, and then expand. var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from // nonDelegatedEvents list in DOMPluginEventSystem. // Then we can remove this special list. // This is a breaking change that can wait until React 18. domEventName === 'scroll'; var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly); if (_listeners.length > 0) { // Intentionally create event lazily. var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget); dispatchQueue.push({ event: _event, listeners: _listeners }); } } } // TODO: remove top-level side effect. registerSimpleEvents(); registerEvents$2(); registerEvents$1(); registerEvents$3(); registerEvents(); function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) { // TODO: we should remove the concept of a "SimpleEventPlugin". // This is the basic functionality of the event system. All // the other plugins are essentially polyfills. So the plugin // should probably be inlined somewhere and have its logic // be core the to event system. This would potentially allow // us to ship builds of React without the polyfilled plugins below. extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the // event's native "bubble" phase, which means that we're // not in the capture phase. That's because we emulate // the capture phase here still. This is a trade-off, // because in an ideal world we would not emulate and use // the phases properly, like we do with the SimpleEvent // plugin. However, the plugins below either expect // emulation (EnterLeave) or use state localized to that // plugin (BeforeInput, Change, Select). The state in // these modules complicates things, as you'll essentially // get the case where the capture phase event might change // state, only for the following bubble event to come in // later and not trigger anything as the state now // invalidates the heuristics of the event plugin. We // could alter all these plugins to work in such ways, but // that might cause other unknown side-effects that we // can't forsee right now. if (shouldProcessPolyfillPlugins) { extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); } } // List of events that need to be individually attached to media elements. var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather // set them on the actual target element itself. This is primarily // because these events do not consistently bubble in the DOM. var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes)); function executeDispatch(event, listener, currentTarget) { var type = event.type || 'unknown-event'; event.currentTarget = currentTarget; invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); event.currentTarget = null; } function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) { var previousInstance; if (inCapturePhase) { for (var i = dispatchListeners.length - 1; i >= 0; i--) { var _dispatchListeners$i = dispatchListeners[i], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget, listener = _dispatchListeners$i.listener; if (instance !== previousInstance && event.isPropagationStopped()) { return; } executeDispatch(event, listener, currentTarget); previousInstance = instance; } } else { for (var _i = 0; _i < dispatchListeners.length; _i++) { var _dispatchListeners$_i = dispatchListeners[_i], _instance = _dispatchListeners$_i.instance, _currentTarget = _dispatchListeners$_i.currentTarget, _listener = _dispatchListeners$_i.listener; if (_instance !== previousInstance && event.isPropagationStopped()) { return; } executeDispatch(event, _listener, _currentTarget); previousInstance = _instance; } } } function processDispatchQueue(dispatchQueue, eventSystemFlags) { var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0; for (var i = 0; i < dispatchQueue.length; i++) { var _dispatchQueue$i = dispatchQueue[i], event = _dispatchQueue$i.event, listeners = _dispatchQueue$i.listeners; processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); // event system doesn't use pooling. } // This would be a good time to rethrow if any of the event handlers threw. rethrowCaughtError(); } function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) { var nativeEventTarget = getEventTarget(nativeEvent); var dispatchQueue = []; extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); processDispatchQueue(dispatchQueue, eventSystemFlags); } function listenToNonDelegatedEvent(domEventName, targetElement) { var isCapturePhaseListener = false; var listenerSet = getEventListenerSet(targetElement); var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); if (!listenerSet.has(listenerSetKey)) { addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener); listenerSet.add(listenerSetKey); } } var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2); function listenToAllSupportedEvents(rootContainerElement) { { if (rootContainerElement[listeningMarker]) { // Performance optimization: don't iterate through events // for the same portal container or root node more than once. // TODO: once we remove the flag, we may be able to also // remove some of the bookkeeping maps used for laziness. return; } rootContainerElement[listeningMarker] = true; allNativeEvents.forEach(function (domEventName) { if (!nonDelegatedEvents.has(domEventName)) { listenToNativeEvent(domEventName, false, rootContainerElement, null); } listenToNativeEvent(domEventName, true, rootContainerElement, null); }); } } function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) { var eventSystemFlags = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; var target = rootContainerElement; // selectionchange needs to be attached to the document // otherwise it won't capture incoming events that are only // triggered on the document directly. if (domEventName === 'selectionchange' && rootContainerElement.nodeType !== DOCUMENT_NODE) { target = rootContainerElement.ownerDocument; } // If the event can be delegated (or is capture phase), we can // register it to the root container. Otherwise, we should // register the event to the target element and mark it as // a non-delegated event. if (targetElement !== null && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) { // For all non-delegated events, apart from scroll, we attach // their event listeners to the respective elements that their // events fire on. That means we can skip this step, as event // listener has already been added previously. However, we // special case the scroll event because the reality is that any // element can scroll. // TODO: ideally, we'd eventually apply the same logic to all // events from the nonDelegatedEvents list. Then we can remove // this special case and use the same logic for all events. if (domEventName !== 'scroll') { return; } eventSystemFlags |= IS_NON_DELEGATED; target = targetElement; } var listenerSet = getEventListenerSet(target); var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); // If the listener entry is empty or we should upgrade, then // we need to trap an event listener onto the target. if (!listenerSet.has(listenerSetKey)) { if (isCapturePhaseListener) { eventSystemFlags |= IS_CAPTURE_PHASE; } addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener); listenerSet.add(listenerSetKey); } } function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) { var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be // active and not passive. var isPassiveListener = undefined; if (passiveBrowserEventsSupported) { // Browsers introduced an intervention, making these events // passive by default on document. React doesn't bind them // to document anymore, but changing this now would undo // the performance wins from the change. So we emulate // the existing behavior manually on the roots now. // https://github.com/facebook/react/issues/19651 if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') { isPassiveListener = true; } } targetContainer = targetContainer; var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we if (isCapturePhaseListener) { if (isPassiveListener !== undefined) { unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener); } else { unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener); } } else { if (isPassiveListener !== undefined) { unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener); } else { unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener); } } } function isMatchingRootContainer(grandContainer, targetContainer) { return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer; } function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) { var ancestorInst = targetInst; if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) { var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we if (targetInst !== null) { // The below logic attempts to work out if we need to change // the target fiber to a different ancestor. We had similar logic // in the legacy event system, except the big difference between // systems is that the modern event system now has an event listener // attached to each React Root and React Portal Root. Together, // the DOM nodes representing these roots are the "rootContainer". // To figure out which ancestor instance we should use, we traverse // up the fiber tree from the target instance and attempt to find // root boundaries that match that of our current "rootContainer". // If we find that "rootContainer", we find the parent fiber // sub-tree for that root and make that our ancestor instance. var node = targetInst; mainLoop: while (true) { if (node === null) { return; } var nodeTag = node.tag; if (nodeTag === HostRoot || nodeTag === HostPortal) { var container = node.stateNode.containerInfo; if (isMatchingRootContainer(container, targetContainerNode)) { break; } if (nodeTag === HostPortal) { // The target is a portal, but it's not the rootContainer we're looking for. // Normally portals handle their own events all the way down to the root. // So we should be able to stop now. However, we don't know if this portal // was part of *our* root. var grandNode = node.return; while (grandNode !== null) { var grandTag = grandNode.tag; if (grandTag === HostRoot || grandTag === HostPortal) { var grandContainer = grandNode.stateNode.containerInfo; if (isMatchingRootContainer(grandContainer, targetContainerNode)) { // This is the rootContainer we're looking for and we found it as // a parent of the Portal. That means we can ignore it because the // Portal will bubble through to us. return; } } grandNode = grandNode.return; } } // Now we need to find it's corresponding host fiber in the other // tree. To do this we can use getClosestInstanceFromNode, but we // need to validate that the fiber is a host instance, otherwise // we need to traverse up through the DOM till we find the correct // node that is from the other tree. while (container !== null) { var parentNode = getClosestInstanceFromNode(container); if (parentNode === null) { return; } var parentTag = parentNode.tag; if (parentTag === HostComponent || parentTag === HostText) { node = ancestorInst = parentNode; continue mainLoop; } container = container.parentNode; } } node = node.return; } } } batchedEventUpdates(function () { return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst); }); } function createDispatchListener(instance, listener, currentTarget) { return { instance: instance, listener: listener, currentTarget: currentTarget }; } function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) { var captureName = reactName !== null ? reactName + 'Capture' : null; var reactEventName = inCapturePhase ? captureName : reactName; var listeners = []; var instance = targetFiber; var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path. while (instance !== null) { var _instance2 = instance, stateNode = _instance2.stateNode, tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. ) if (tag === HostComponent && stateNode !== null) { lastHostComponent = stateNode; // createEventHandle listeners if (reactEventName !== null) { var listener = getListener(instance, reactEventName); if (listener != null) { listeners.push(createDispatchListener(instance, listener, lastHostComponent)); } } } // If we are only accumulating events for the target, then we don't // continue to propagate through the React fiber tree to find other // listeners. if (accumulateTargetOnly) { break; } instance = instance.return; } return listeners; } // We should only use this function for: // - BeforeInputEventPlugin // - ChangeEventPlugin // - SelectEventPlugin // This is because we only process these plugins // in the bubble phase, so we need to accumulate two // phase event listeners (via emulation). function accumulateTwoPhaseListeners(targetFiber, reactName) { var captureName = reactName + 'Capture'; var listeners = []; var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path. while (instance !== null) { var _instance3 = instance, stateNode = _instance3.stateNode, tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. ) if (tag === HostComponent && stateNode !== null) { var currentTarget = stateNode; var captureListener = getListener(instance, captureName); if (captureListener != null) { listeners.unshift(createDispatchListener(instance, captureListener, currentTarget)); } var bubbleListener = getListener(instance, reactName); if (bubbleListener != null) { listeners.push(createDispatchListener(instance, bubbleListener, currentTarget)); } } instance = instance.return; } return listeners; } function getParent(inst) { if (inst === null) { return null; } do { inst = inst.return; // TODO: If this is a HostRoot we might want to bail out. // That is depending on if we want nested subtrees (layers) to bubble // events to their parent. We could also go through parentNode on the // host node but that wouldn't work for React Native and doesn't let us // do the portal feature. } while (inst && inst.tag !== HostComponent); if (inst) { return inst; } return null; } /** * Return the lowest common ancestor of A and B, or null if they are in * different trees. */ function getLowestCommonAncestor(instA, instB) { var nodeA = instA; var nodeB = instB; var depthA = 0; for (var tempA = nodeA; tempA; tempA = getParent(tempA)) { depthA++; } var depthB = 0; for (var tempB = nodeB; tempB; tempB = getParent(tempB)) { depthB++; } // If A is deeper, crawl up. while (depthA - depthB > 0) { nodeA = getParent(nodeA); depthA--; } // If B is deeper, crawl up. while (depthB - depthA > 0) { nodeB = getParent(nodeB); depthB--; } // Walk in lockstep until we find a match. var depth = depthA; while (depth--) { if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) { return nodeA; } nodeA = getParent(nodeA); nodeB = getParent(nodeB); } return null; } function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { var registrationName = event._reactName; var listeners = []; var instance = target; while (instance !== null) { if (instance === common) { break; } var _instance4 = instance, alternate = _instance4.alternate, stateNode = _instance4.stateNode, tag = _instance4.tag; if (alternate !== null && alternate === common) { break; } if (tag === HostComponent && stateNode !== null) { var currentTarget = stateNode; if (inCapturePhase) { var captureListener = getListener(instance, registrationName); if (captureListener != null) { listeners.unshift(createDispatchListener(instance, captureListener, currentTarget)); } } else if (!inCapturePhase) { var bubbleListener = getListener(instance, registrationName); if (bubbleListener != null) { listeners.push(createDispatchListener(instance, bubbleListener, currentTarget)); } } } instance = instance.return; } if (listeners.length !== 0) { dispatchQueue.push({ event: event, listeners: listeners }); } } // We should only use this function for: // - EnterLeaveEventPlugin // This is because we only process this plugin // in the bubble phase, so we need to accumulate two // phase event listeners. function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) { var common = from && to ? getLowestCommonAncestor(from, to) : null; if (from !== null) { accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false); } if (to !== null && enterEvent !== null) { accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true); } } function getListenerSetKey(domEventName, capture) { return domEventName + "__" + (capture ? 'capture' : 'bubble'); } var didWarnInvalidHydration = false; var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML'; var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning'; var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning'; var AUTOFOCUS = 'autoFocus'; var CHILDREN = 'children'; var STYLE = 'style'; var HTML$1 = '__html'; var HTML_NAMESPACE$1 = Namespaces.html; var warnedUnknownTags; var suppressHydrationWarning; var validatePropertiesInDevelopment; var warnForTextDifference; var warnForPropDifference; var warnForExtraAttributes; var warnForInvalidEventListener; var canDiffStyleForHydrationWarning; var normalizeMarkupForTextOrAttribute; var normalizeHTML; { warnedUnknownTags = { // There are working polyfills for . Let people use it. dialog: true, // Electron ships a custom tag to display external web content in // an isolated frame and process. // This tag is not present in non Electron environments such as JSDom which // is often used for testing purposes. // @see https://electronjs.org/docs/api/webview-tag webview: true }; validatePropertiesInDevelopment = function (type, props) { validateProperties(type, props); validateProperties$1(type, props); validateProperties$2(type, props, { registrationNameDependencies: registrationNameDependencies, possibleRegistrationNames: possibleRegistrationNames }); }; // IE 11 parses & normalizes the style attribute as opposed to other // browsers. It adds spaces and sorts the properties in some // non-alphabetical order. Handling that would require sorting CSS // properties in the client & server versions or applying // `expectedStyle` to a temporary DOM node to read its `style` attribute // normalized. Since it only affects IE, we're skipping style warnings // in that browser completely in favor of doing all that work. // See https://github.com/facebook/react/issues/11807 canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF. // It also can turn \u0000 into \uFFFD inside attributes. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream // If we have a mismatch, it might be caused by that. // We will still patch up in this case but not fire the warning. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g; var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; normalizeMarkupForTextOrAttribute = function (markup) { var markupString = typeof markup === 'string' ? markup : '' + markup; return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ''); }; warnForTextDifference = function (serverText, clientText) { if (didWarnInvalidHydration) { return; } var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText); var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText); if (normalizedServerText === normalizedClientText) { return; } didWarnInvalidHydration = true; error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText); }; warnForPropDifference = function (propName, serverValue, clientValue) { if (didWarnInvalidHydration) { return; } var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue); var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue); if (normalizedServerValue === normalizedClientValue) { return; } didWarnInvalidHydration = true; error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue)); }; warnForExtraAttributes = function (attributeNames) { if (didWarnInvalidHydration) { return; } didWarnInvalidHydration = true; var names = []; attributeNames.forEach(function (name) { names.push(name); }); error('Extra attributes from the server: %s', names); }; warnForInvalidEventListener = function (registrationName, listener) { if (listener === false) { error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName); } else { error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener); } }; // Parse the HTML and read it back to normalize the HTML string so that it // can be used for comparison. normalizeHTML = function (parent, html) { // We could have created a separate document here to avoid // re-initializing custom elements if they exist. But this breaks // how is being handled. So we use the same document. // See the discussion in https://github.com/facebook/react/pull/11157. var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName); testElement.innerHTML = html; return testElement.innerHTML; }; } function getOwnerDocumentFromRootContainer(rootContainerElement) { return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument; } function noop() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on // non-interactive elements, which means delegated click listeners do not // fire. The workaround for this bug involves attaching an empty click // listener on the target node. // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html // Just set it using the onclick property so that we don't have to manage any // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? node.onclick = noop; } function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) { for (var propKey in nextProps) { if (!nextProps.hasOwnProperty(propKey)) { continue; } var nextProp = nextProps[propKey]; if (propKey === STYLE) { { if (nextProp) { // Freeze the next style object so that we can assume it won't be // mutated. We have already warned for this in the past. Object.freeze(nextProp); } } // Relies on `updateStylesByID` not mutating `styleUpdates`. setValueForStyles(domElement, nextProp); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { var nextHtml = nextProp ? nextProp[HTML$1] : undefined; if (nextHtml != null) { setInnerHTML(domElement, nextHtml); } } else if (propKey === CHILDREN) { if (typeof nextProp === 'string') { // Avoid setting initial textContent when the text is empty. In IE11 setting // textContent on a will cause the placeholder to not // show within the until it has been focused and blurred again. // https://github.com/facebook/react/issues/6731#issuecomment-254874553 var canSetTextContent = tag !== 'textarea' || nextProp !== ''; if (canSetTextContent) { setTextContent(domElement, nextProp); } } else if (typeof nextProp === 'number') { setTextContent(domElement, '' + nextProp); } } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) { if (nextProp != null) { if ( typeof nextProp !== 'function') { warnForInvalidEventListener(propKey, nextProp); } if (propKey === 'onScroll') { listenToNonDelegatedEvent('scroll', domElement); } } } else if (nextProp != null) { setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag); } } } function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) { // TODO: Handle wasCustomComponentTag for (var i = 0; i < updatePayload.length; i += 2) { var propKey = updatePayload[i]; var propValue = updatePayload[i + 1]; if (propKey === STYLE) { setValueForStyles(domElement, propValue); } else if (propKey === DANGEROUSLY_SET_INNER_HTML) { setInnerHTML(domElement, propValue); } else if (propKey === CHILDREN) { setTextContent(domElement, propValue); } else { setValueForProperty(domElement, propKey, propValue, isCustomComponentTag); } } } function createElement(type, props, rootContainerElement, parentNamespace) { var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML // tags get no namespace. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement); var domElement; var namespaceURI = parentNamespace; if (namespaceURI === HTML_NAMESPACE$1) { namespaceURI = getIntrinsicNamespace(type); } if (namespaceURI === HTML_NAMESPACE$1) { { isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to // allow or . if (!isCustomComponentTag && type !== type.toLowerCase()) { error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type); } } if (type === 'script') { // Create the script via .innerHTML so its "parser-inserted" flag is // set to true and it does not execute var div = ownerDocument.createElement('div'); div.innerHTML = '