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B,IAAApjK,EAAA,KACMzB,KAAK8kK,oBACP9kK,KAAKyC,OAAOijB,aAAa1lB,KAAK8kK,mBAC9B9kK,KAAK8kK,uBAAoBzjK,GAG3BrB,KAAKiiK,UAAW,EAEZ4C,GACF7kK,KAAKyC,OAAOC,YAAW,WACrBjB,EAAKwgK,UAAW,CAClB,GAAG,IAEP,EAEQvlE,EAAA78F,UAAA6hK,kBAAR,WACU,IAAA7tF,EAAc7zE,KAAKC,MAAK4zE,UAExB9zE,EAAoEC,KAAKC,MAAK+yE,cAEtF,YAFqB,IAAAjzE,EAAG8zE,EAAYA,EAAUwjB,KAAO7jB,EAAAA,GAActnB,KAAInsD,CAGzE,EA3vBc28F,EAAAz7F,aAAe,CAC3Bo3F,mBAAmB,EACnBuE,8BAA8B,EAC9B5pB,cAAeQ,EAAAA,GAAcoQ,SAC7B+Y,+BAA+B,GAwvBnCD,C,CA7vBA,CAAmCj8F,EAAAA,U","sources":["../node_modules/@fluentui/react/lib/src/common/DirectionalHint.ts","../node_modules/@fluentui/react/lib/components/src/components/Announced/Announced.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Announced/Announced.ts","../node_modules/@fluentui/react/lib/components/src/components/Announced/Announced.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Autofill/Autofill.tsx","../node_modules/@fluentui/react/lib/components/src/components/Breadcrumb/Breadcrumb.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Breadcrumb/Breadcrumb.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Breadcrumb/Breadcrumb.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/ActionButton/ActionButton.styles.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/ActionButton/ActionButton.tsx","../node_modules/@fluentui/react/lib/components/src/components/Button/BaseButton.classNames.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Icon/ImageIcon.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/contextualMenu/contextualMenuUtility.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenuItem.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Divider/VerticalDivider.classNames.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.cnstyles.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.classNames.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenuItem.ts","../node_modules/@fluentui/react/lib/components/ContextualMenu/src/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/keytips/KeytipUtils.ts","../node_modules/@fluentui/react/lib/components/src/components/KeytipData/useKeytipData.ts","../node_modules/@fluentui/react/lib/components/src/components/KeytipData/KeytipData.tsx","../node_modules/@fluentui/react/lib/components/ContextualMenu/src/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.tsx","../node_modules/@fluentui/react/lib/components/ContextualMenu/src/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.tsx","../node_modules/@fluentui/react/lib/components/ContextualMenu/src/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/MenuContext/MenuContext.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/ContextualMenu/ContextualMenu.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/SplitButton/SplitButton.classNames.ts","../node_modules/@fluentui/react/lib/components/src/components/Button/BaseButton.tsx","../node_modules/@fluentui/react/lib/components/src/components/Button/BaseButton.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Button/Button.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Button/Button.tsx","../node_modules/@fluentui/react/lib/components/src/components/Button/ButtonThemes.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/CommandBarButton/CommandBarButton.styles.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/CommandBarButton/CommandBarButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/CommandButton/CommandButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/CompoundButton/CompoundButton.styles.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/CompoundButton/CompoundButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/DefaultButton/DefaultButton.styles.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/DefaultButton/DefaultButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/IconButton/IconButton.styles.ts","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/IconButton/IconButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/PrimaryButton/PrimaryButton.tsx","../node_modules/@fluentui/react/lib/components/Button/src/components/Button/SplitButton/SplitButton.styles.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/positioning/positioning.ts","../node_modules/@fluentui/react/lib/components/src/components/Callout/CalloutContent.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Callout/CalloutContent.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Callout/CalloutContent.tsx","../node_modules/@fluentui/react/lib/components/src/components/Callout/Callout.tsx","../node_modules/@fluentui/react/lib/components/src/components/Checkbox/Checkbox.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Checkbox/Checkbox.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Checkbox/Checkbox.tsx","../node_modules/@fluentui/react/lib/components/ChoiceGroup/src/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.tsx","../node_modules/@fluentui/react/lib/components/ChoiceGroup/src/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.ts","../node_modules/@fluentui/react/lib/components/ChoiceGroup/src/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.tsx","../node_modules/@fluentui/react/lib/components/src/components/ChoiceGroup/ChoiceGroup.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/ChoiceGroup/ChoiceGroup.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/ChoiceGroup/ChoiceGroup.tsx","../node_modules/@fluentui/react/lib/components/src/components/ComboBox/ComboBox.tsx","../node_modules/@fluentui/react/lib/components/src/components/ComboBox/ComboBox.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/ComboBox/ComboBox.classNames.ts","../node_modules/@fluentui/react/lib/components/src/components/ComboBox/VirtualizedComboBox.tsx","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarMonthHeaderRow.tsx","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarGridDayCell.tsx","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarGridRow.tsx","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarDayGrid.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Calendar/Calendar.types.ts","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarDayGrid.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/CalendarDayGrid/CalendarDayGrid.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarDay/CalendarDay.base.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarDay/CalendarDay.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarDay/CalendarDay.styles.ts","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarPicker/CalendarPicker.styles.ts","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarMonth/CalendarMonth.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Calendar/defaults.ts","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarYear/CalendarYear.base.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarYear/CalendarYear.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarYear/CalendarYear.styles.ts","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarMonth/CalendarMonth.base.tsx","../node_modules/@fluentui/react/lib/components/Calendar/src/components/Calendar/CalendarMonth/CalendarMonth.tsx","../node_modules/@fluentui/react/lib/components/src/components/Calendar/Calendar.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Calendar/Calendar.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Calendar/Calendar.tsx","../node_modules/@fluentui/react/lib/components/src/components/DatePicker/defaults.ts","../node_modules/@fluentui/react/lib/components/src/components/DatePicker/DatePicker.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DatePicker/DatePicker.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DatePicker/DatePicker.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupedList.types.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupSpacer.tsx","../node_modules/@fluentui/react/lib/components/src/components/Check/Check.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Check/Check.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Check/Check.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRow.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsHeader.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRowCheck.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRowCheck.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsHeader.types.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/dragdrop/DragDropHelper.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsColumn.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsColumn.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsColumn.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsHeader.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsHeader.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRowFields.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRow.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsRow.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupedList.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupHeader.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupHeader.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupHeader.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupShowAll.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupShowAll.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupShowAll.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupFooter.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupFooter.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupFooter.ts","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupedListSection.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupedList.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/GroupedList/GroupedList.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/decorators/withViewport.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/groupedList/GroupedListUtility.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsList.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsList.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsList.ts","../node_modules/@fluentui/react/lib/components/src/components/DetailsList/DetailsList.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogContent.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogContent.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogContent.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dialog/Dialog.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dialog/Dialog.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Dialog/Dialog.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogContent.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogFooter.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogFooter.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Dialog/DialogFooter.tsx","../node_modules/@fluentui/react/lib/components/src/components/Divider/VerticalDivider.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Divider/VerticalDivider.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Divider/VerticalDivider.tsx","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCard.types.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCard.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardPreview.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardActivity.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardLocation.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCard.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCard.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardDetails.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardDetails.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardDetails.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardImage.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardImage.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardImage.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardTitle.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardTitle.ts","../node_modules/@fluentui/react/lib/components/src/components/DocumentCard/DocumentCardTitle.styles.ts","../node_modules/@fluentui/react/lib/components/Dropdown/src/components/Dropdown/utilities/DropdownSizePosCache.ts","../node_modules/@fluentui/react/lib/components/src/components/Dropdown/Dropdown.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Dropdown/Dropdown.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Dropdown/Dropdown.tsx","../node_modules/@fluentui/react/lib/components/src/components/FocusTrapZone/FocusTrapZone.tsx","../node_modules/@fluentui/react/lib/components/src/components/Icon/FontIcon.tsx","../node_modules/@fluentui/react/lib/components/src/components/Icon/Icon.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Icon/Icon.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Icon/Icon.tsx","../node_modules/@fluentui/react/lib/components/src/components/Icon/Icon.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Image/Image.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Image/Image.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Image/Image.tsx","../node_modules/@fluentui/react/lib/components/src/components/Image/Image.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Label/Label.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Label/Label.tsx","../node_modules/@fluentui/react/lib/components/src/components/Label/Label.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Fabric/Fabric.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Fabric/Fabric.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Fabric/Fabric.tsx","../node_modules/@fluentui/react/lib/components/src/components/Layer/Layer.notification.ts","../node_modules/@fluentui/react/lib/components/src/components/Layer/Layer.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Layer/Layer.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Layer/Layer.tsx","../node_modules/@fluentui/react/lib/components/src/components/Link/useLink.ts","../node_modules/@fluentui/react/lib/components/src/components/Link/Link.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Link/Link.tsx","../node_modules/@fluentui/react/lib/components/src/components/Link/Link.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/List/List.types.ts","../node_modules/@fluentui/react/lib/components/List/src/components/List/utils/scroll.ts","../node_modules/@fluentui/react/lib/components/src/components/List/List.tsx","../node_modules/@fluentui/react/lib/components/src/components/MessageBar/MessageBar.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/MessageBar/MessageBar.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/MessageBar/MessageBar.tsx","../node_modules/@fluentui/react/lib/components/src/components/MessageBar/MessageBar.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Modal/Modal.styles.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/DraggableZone/DraggableZone.styles.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/DraggableZone/DraggableZone.tsx","../node_modules/@fluentui/react/lib/components/src/components/Modal/Modal.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Modal/Modal.ts","../node_modules/@fluentui/react/lib/components/src/components/OverflowSet/OverflowButton.tsx","../node_modules/@fluentui/react/lib/components/src/components/OverflowSet/OverflowSet.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/OverflowSet/OverflowSet.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/OverflowSet/OverflowSet.ts","../node_modules/@fluentui/react/lib/components/src/components/Overlay/Overlay.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Overlay/Overlay.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Overlay/Overlay.tsx","../node_modules/@fluentui/react/lib/components/src/components/Panel/Panel.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Panel/Panel.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Panel/Panel.ts","../node_modules/@fluentui/react/lib/components/src/components/Panel/Panel.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Persona/Persona.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Persona/Persona.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Persona/Persona.tsx","../node_modules/@fluentui/react/lib/components/src/components/Persona/Persona.types.ts","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaPresence/PersonaPresence.base.tsx","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaPresence/PersonaPresence.styles.ts","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaPresence/PersonaPresence.tsx","../node_modules/@fluentui/react/lib/components/src/components/Persona/PersonaInitialsColor.ts","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaCoin/PersonaCoin.base.tsx","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaCoin/PersonaCoin.styles.ts","../node_modules/@fluentui/react/lib/components/Persona/src/components/Persona/PersonaCoin/PersonaCoin.tsx","../node_modules/@fluentui/react/lib/components/src/components/Persona/PersonaConsts.tsx","../node_modules/@fluentui/react/lib/src/utilities/useOverflow.ts","../node_modules/@fluentui/react/lib/src/utilities/observeResize.ts","../node_modules/@fluentui/react/lib/components/src/components/Pivot/Pivot.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Pivot/Pivot.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Pivot/Pivot.tsx","../node_modules/@fluentui/react/lib/components/src/components/Pivot/PivotItem.tsx","../node_modules/@fluentui/react/lib/components/src/components/Popup/Popup.tsx","../node_modules/@fluentui/react/lib/components/src/components/ProgressIndicator/ProgressIndicator.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/ProgressIndicator/ProgressIndicator.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/ProgressIndicator/ProgressIndicator.tsx","../node_modules/@fluentui/react/lib/components/src/components/ResizeGroup/ResizeGroup.types.ts","../node_modules/@fluentui/react/lib/components/src/components/ResizeGroup/ResizeGroup.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/ResizeGroup/ResizeGroup.tsx","../node_modules/@fluentui/react/lib/components/src/components/ScrollablePane/ScrollablePane.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/ScrollablePane/ScrollablePane.types.ts","../node_modules/@fluentui/react/lib/components/src/components/ScrollablePane/ScrollablePane.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/ScrollablePane/ScrollablePane.tsx","../node_modules/@fluentui/react/lib/components/src/components/SearchBox/SearchBox.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/SearchBox/SearchBox.styles.tsx","../node_modules/@fluentui/react/lib/components/src/components/SearchBox/SearchBox.tsx","../node_modules/@fluentui/react/lib/components/src/components/Shimmer/Shimmer.styles.ts","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerLine/ShimmerLine.base.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerLine/ShimmerLine.styles.ts","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerLine/ShimmerLine.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerGap/ShimmerGap.base.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerGap/ShimmerGap.styles.ts","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerGap/ShimmerGap.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerCircle/ShimmerCircle.styles.ts","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerCircle/ShimmerCircle.base.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerCircle/ShimmerCircle.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.base.tsx","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.styles.ts","../node_modules/@fluentui/react/lib/components/Shimmer/src/components/Shimmer/ShimmerElementsGroup/ShimmerElementsGroup.tsx","../node_modules/@fluentui/react/lib/components/src/components/Shimmer/Shimmer.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Shimmer/Shimmer.tsx","../node_modules/@fluentui/react/lib/components/src/components/Shimmer/Shimmer.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Spinner/Spinner.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Spinner/Spinner.styles.tsx","../node_modules/@fluentui/react/lib/components/src/components/Spinner/Spinner.tsx","../node_modules/@fluentui/react/lib/components/src/components/Spinner/Spinner.types.ts","../node_modules/@fluentui/react/lib/components/Stack/src/components/Stack/StackItem/StackItem.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Stack/StackUtils.ts","../node_modules/@fluentui/react/lib/components/src/components/Stack/Stack.styles.ts","../node_modules/@fluentui/react/lib/components/Stack/src/components/Stack/StackItem/StackItem.tsx","../node_modules/@fluentui/react/lib/components/src/components/Stack/Stack.tsx","../node_modules/@fluentui/react/lib/components/src/components/TextField/TextField.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/TextField/TextField.styles.tsx","../node_modules/@fluentui/react/lib/components/src/components/TextField/TextField.ts","../node_modules/@fluentui/react/lib/components/src/components/Text/Text.ts","../node_modules/@fluentui/react/lib/components/src/components/Text/Text.view.tsx","../node_modules/@fluentui/react/lib/components/src/components/Text/Text.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Toggle/Toggle.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Toggle/Toggle.tsx","../node_modules/@fluentui/react/lib/components/src/components/Toggle/Toggle.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/Tooltip.types.ts","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/Tooltip.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/Tooltip.tsx","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/Tooltip.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/TooltipHost.base.tsx","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/TooltipHost.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/TooltipHost.ts","../node_modules/@fluentui/react/lib/components/src/components/Tooltip/TooltipHost.types.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/Suggestions.types.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/Suggestions.scss.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/SuggestionsItem.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/Suggestions.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/Suggestions.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/SuggestionsController.ts","../node_modules/@fluentui/react/lib/components/src/components/pickers/BasePicker.scss.ts","../node_modules/@fluentui/react/lib/components/src/components/pickers/BasePicker.tsx","../node_modules/@fluentui/react/lib/components/src/components/pickers/BasePicker.styles.ts","../node_modules/@fluentui/react/lib/components/src/components/pickers/BasePicker.types.ts","../node_modules/@fluentui/react/lib/components/pickers/PeoplePicker/src/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/PeoplePicker/src/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItemSuggestion.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/PeoplePicker/PeoplePicker.tsx","../node_modules/@fluentui/react/lib/components/pickers/PeoplePicker/src/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/PeoplePicker/src/components/pickers/PeoplePicker/PeoplePickerItems/PeoplePickerItem.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/Suggestions/SuggestionsItem.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/TagPicker/TagItem.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/TagPicker/TagItem.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/TagPicker/TagItemSuggestion.styles.ts","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/TagPicker/TagItemSuggestion.tsx","../node_modules/@fluentui/react/lib/components/pickers/src/components/pickers/TagPicker/TagPicker.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/decorators/BaseDecorator.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/decorators/withResponsiveMode.tsx","../node_modules/@fluentui/react/lib/src/utilities/dom.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/hooks/useResponsiveMode.tsx","../node_modules/@fluentui/react/lib/utilities/src/utilities/keytips/KeytipConstants.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/keytips/KeytipManager.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/positioning/positioning.types.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/selectableOption/SelectableOption.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/selectableOption/SelectableOption.types.ts","../node_modules/@fluentui/react/lib/utilities/src/utilities/selection/SelectionZone.tsx"],"sourcesContent":["export const DirectionalHint = {\n /**\n * Appear above the target element, with the left edges of the callout and target aligning.\n */\n topLeftEdge: 0 as 0,\n\n /**\n * Appear above the target element, with the centers of the callout and target aligning.\n */\n topCenter: 1 as 1,\n\n /**\n * Appear above the target element, with the right edges of the callout and target aligning.\n */\n topRightEdge: 2 as 2,\n\n /**\n * Appear above the target element, aligning with the target element such that the callout tends toward\n * the center of the screen.\n */\n topAutoEdge: 3 as 3,\n\n /**\n * Appear below the target element, with the left edges of the callout and target aligning.\n */\n bottomLeftEdge: 4 as 4,\n\n /**\n * Appear below the target element, with the centers of the callout and target aligning.\n */\n bottomCenter: 5 as 5,\n\n /**\n * Appear below the target element, with the right edges of the callout and target aligning.\n */\n bottomRightEdge: 6 as 6,\n\n /**\n * Appear below the target element, aligning with the target element such that the callout tends toward\n * the center of the screen.\n */\n bottomAutoEdge: 7 as 7,\n\n /**\n * Appear to the left of the target element, with the top edges of the callout and target aligning.\n */\n leftTopEdge: 8 as 8,\n\n /**\n * Appear to the left of the target element, with the centers of the callout and target aligning.\n */\n leftCenter: 9 as 9,\n\n /**\n * Appear to the left of the target element, with the bottom edges of the callout and target aligning.\n */\n leftBottomEdge: 10 as 10,\n\n /**\n * Appear to the right of the target element, with the top edges of the callout and target aligning.\n */\n rightTopEdge: 11 as 11,\n\n /**\n * Appear to the right of the target element, with the centers of the callout and target aligning.\n */\n rightCenter: 12 as 12,\n\n /**\n * Appear to the right of the target element, with the bottom edges of the callout and target aligning.\n */\n rightBottomEdge: 13 as 13,\n};\n\nexport type DirectionalHint = (typeof DirectionalHint)[keyof typeof DirectionalHint];\n","import * as React from 'react';\nimport { DelayedRender, classNamesFunction, getNativeProps, divProperties } from '../../Utilities';\nimport type { IAnnouncedProps, IAnnouncedStyles } from './Announced.types';\n\nconst getClassNames = classNamesFunction<{}, IAnnouncedStyles>();\n\n/**\n * {@docCategory Announced}\n */\nexport class AnnouncedBase extends React.Component {\n public static defaultProps: Partial = {\n 'aria-live': 'polite',\n };\n\n public render(): JSX.Element {\n const { message, styles, as: Root = 'div', className } = this.props;\n\n const classNames = getClassNames(styles, { className });\n\n return (\n \n \n
{message}
\n
\n
\n );\n }\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { AnnouncedBase } from './Announced.base';\nimport { getStyles } from './Announced.styles';\nimport type { IAnnouncedProps, IAnnouncedStyles } from './Announced.types';\n\nexport const Announced: React.FunctionComponent = styled(\n AnnouncedBase,\n getStyles,\n undefined,\n { scope: 'Announced' },\n);\n","import { hiddenContentStyle } from '../../Styling';\nimport type { IStyleFunction } from '../../Utilities';\nimport type { IAnnouncedStyles, IAnnouncedStyleProps } from './Announced.types';\n\nexport const getStyles: IStyleFunction = props => {\n return {\n root: props.className,\n screenReaderText: hiddenContentStyle,\n };\n};\n","import * as React from 'react';\nimport {\n Async,\n getDocument,\n getNativeProps,\n initializeComponentRef,\n inputProperties,\n isIE11,\n KeyCodes,\n} from '../../Utilities';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport type { IAutofill, IAutofillProps } from './Autofill.types';\n\nexport interface IAutofillState {\n inputValue: string;\n isComposing: boolean;\n}\n\ninterface ICursorLocation {\n start: number;\n end: number;\n dir: 'forward' | 'backward' | 'none' | undefined;\n}\n\nconst SELECTION_FORWARD = 'forward';\nconst SELECTION_BACKWARD = 'backward';\n\n/**\n * {@docCategory Autofill}\n */\nexport class Autofill extends React.Component implements IAutofill {\n public static defaultProps = {\n enableAutofillOnKeyPress: [KeyCodes.down, KeyCodes.up] as KeyCodes[],\n };\n // need to check WindowContext to get the provided document\n public static contextType = WindowContext;\n\n private _inputElement = React.createRef();\n private _autoFillEnabled = true;\n private _async: Async;\n\n public static getDerivedStateFromProps(props: IAutofillProps, state: IAutofillState): IAutofillState | null {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (props.updateValueInWillReceiveProps) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const updatedInputValue = props.updateValueInWillReceiveProps();\n // Don't update if we have a null value or the value isn't changing\n // the value should still update if an empty string is passed in\n if (updatedInputValue !== null && updatedInputValue !== state.inputValue && !state.isComposing) {\n return { ...state, inputValue: updatedInputValue };\n }\n }\n return null;\n }\n\n constructor(props: IAutofillProps) {\n super(props);\n\n initializeComponentRef(this);\n this._async = new Async(this);\n\n this.state = {\n inputValue: props.defaultVisibleValue || '',\n isComposing: false,\n };\n }\n\n public get cursorLocation(): number | null {\n if (this._inputElement.current) {\n const inputElement = this._inputElement.current;\n if (inputElement.selectionDirection !== SELECTION_FORWARD) {\n return inputElement.selectionEnd;\n } else {\n return inputElement.selectionStart;\n }\n } else {\n return -1;\n }\n }\n\n public get isValueSelected(): boolean {\n return Boolean(this.inputElement && this.inputElement.selectionStart !== this.inputElement.selectionEnd);\n }\n\n public get value(): string {\n return this._getControlledValue() || this.state.inputValue || '';\n }\n\n public get selectionStart(): number | null {\n return this._inputElement.current ? this._inputElement.current.selectionStart : -1;\n }\n\n public get selectionEnd(): number | null {\n return this._inputElement.current ? this._inputElement.current.selectionEnd : -1;\n }\n\n public get inputElement(): HTMLInputElement | null {\n return this._inputElement.current;\n }\n\n public componentDidUpdate(_: any, previousState: IAutofillState, cursor: ICursorLocation | null) {\n const { suggestedDisplayValue, shouldSelectFullInputValueInComponentDidUpdate, preventValueSelection } = this.props;\n let differenceIndex = 0;\n\n if (preventValueSelection) {\n return;\n }\n\n const document = this.context?.window.document || getDocument(this._inputElement.current);\n const isFocused = this._inputElement.current && this._inputElement.current === document?.activeElement;\n\n if (\n isFocused &&\n this._autoFillEnabled &&\n this.value &&\n suggestedDisplayValue &&\n _doesTextStartWith(suggestedDisplayValue, this.value) &&\n previousState.inputValue !== this.value\n ) {\n let shouldSelectFullRange = false;\n\n if (shouldSelectFullInputValueInComponentDidUpdate) {\n shouldSelectFullRange = shouldSelectFullInputValueInComponentDidUpdate();\n }\n\n if (shouldSelectFullRange) {\n this._inputElement.current!.setSelectionRange(0, suggestedDisplayValue.length, SELECTION_BACKWARD);\n } else {\n while (\n differenceIndex < this.value.length &&\n this.value[differenceIndex].toLocaleLowerCase() === suggestedDisplayValue[differenceIndex].toLocaleLowerCase()\n ) {\n differenceIndex++;\n }\n if (differenceIndex > 0) {\n this._inputElement.current!.setSelectionRange(\n differenceIndex,\n suggestedDisplayValue.length,\n SELECTION_BACKWARD,\n );\n }\n }\n } else if (this._inputElement.current) {\n if (cursor !== null && !this._autoFillEnabled && !this.state.isComposing) {\n this._inputElement.current.setSelectionRange(cursor.start, cursor.end, cursor.dir);\n }\n }\n }\n\n public componentWillUnmount(): void {\n this._async.dispose();\n }\n\n public render(): JSX.Element {\n const nativeProps = getNativeProps>(this.props, inputProperties);\n const style = { ...this.props.style, fontFamily: 'inherit' };\n return (\n \n );\n }\n\n public focus() {\n this._inputElement.current && this._inputElement.current.focus();\n }\n\n public clear() {\n this._autoFillEnabled = true;\n this._updateValue('', false);\n this._inputElement.current && this._inputElement.current.setSelectionRange(0, 0);\n }\n\n public getSnapshotBeforeUpdate(): ICursorLocation | null {\n const inel = this._inputElement.current;\n\n if (inel && inel.selectionStart !== this.value.length) {\n return {\n start: inel.selectionStart ?? inel.value.length,\n end: inel.selectionEnd ?? inel.value.length,\n dir: (inel.selectionDirection as 'forward') || 'backward' || 'none',\n };\n }\n return null;\n }\n\n // Composition events are used when the character/text requires several keystrokes to be completed.\n // Some examples of this are mobile text input and languages like Japanese or Arabic.\n // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart\n private _onCompositionStart = (ev: React.CompositionEvent) => {\n this.setState({ isComposing: true });\n this._autoFillEnabled = false;\n };\n\n // Composition events are used when the character/text requires several keystrokes to be completed.\n // Some examples of this are mobile text input and languages like Japanese or Arabic.\n // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart\n private _onCompositionUpdate = () => {\n if (isIE11()) {\n this._updateValue(this._getCurrentInputValue(), true);\n }\n };\n\n // Composition events are used when the character/text requires several keystrokes to be completed.\n // Some examples of this are mobile text input and languages like Japanese or Arabic.\n // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart\n private _onCompositionEnd = (ev: React.CompositionEvent) => {\n const inputValue = this._getCurrentInputValue();\n this._tryEnableAutofill(inputValue, this.value, false, true);\n this.setState({ isComposing: false });\n\n // Due to timing, this needs to be async, otherwise no text will be selected.\n this._async.setTimeout(() => {\n // it's technically possible that the value of isComposing is reset during this timeout,\n // so explicitly trigger this with composing=true here, since it is supposed to be the\n // update for composition end\n this._updateValue(this._getCurrentInputValue(), false);\n }, 0);\n };\n\n private _onClick = () => {\n if (this.value && this.value !== '' && this._autoFillEnabled) {\n this._autoFillEnabled = false;\n }\n };\n\n private _onKeyDown = (ev: React.KeyboardEvent) => {\n if (this.props.onKeyDown) {\n this.props.onKeyDown(ev);\n }\n\n // If the event is actively being composed, then don't alert autofill.\n // Right now typing does not have isComposing, once that has been fixed any should be removed.\n\n if (!(ev.nativeEvent as any).isComposing) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.which) {\n case KeyCodes.del:\n case KeyCodes.backspace:\n this._autoFillEnabled = false;\n break;\n case KeyCodes.left:\n case KeyCodes.right:\n if (this._autoFillEnabled) {\n this.setState(prev => ({\n inputValue: this.props.suggestedDisplayValue || prev.inputValue,\n }));\n this._autoFillEnabled = false;\n }\n break;\n default:\n if (!this._autoFillEnabled) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (this.props.enableAutofillOnKeyPress!.indexOf(ev.which) !== -1) {\n this._autoFillEnabled = true;\n }\n }\n break;\n }\n }\n };\n\n private _onInputChanged = (ev: React.FormEvent) => {\n const value: string = this._getCurrentInputValue(ev);\n\n if (!this.state.isComposing) {\n this._tryEnableAutofill(value, this.value, (ev.nativeEvent as any).isComposing);\n }\n\n // If it is not IE11 and currently composing, update the value\n if (!(isIE11() && this.state.isComposing)) {\n const nativeEventComposing = (ev.nativeEvent as any).isComposing;\n const isComposing = nativeEventComposing === undefined ? this.state.isComposing : nativeEventComposing;\n this._updateValue(value, isComposing);\n }\n };\n\n private _onChanged = (): void => {\n // Swallow this event, we don't care about it\n // We must provide it because React PropTypes marks it as required, but onInput serves the correct purpose\n return;\n };\n\n private _getCurrentInputValue(ev?: React.FormEvent): string {\n if (ev && ev.target && (ev.target as HTMLInputElement).value) {\n return (ev.target as HTMLInputElement).value;\n } else if (this.inputElement && this.inputElement.value) {\n return this.inputElement.value;\n } else {\n return '';\n }\n }\n\n /**\n * Attempts to enable autofill. Whether or not autofill is enabled depends on the input value,\n * whether or not any text is selected, and only if the new input value is longer than the old input value.\n * Autofill should never be set to true if the value is composing. Once compositionEnd is called, then\n * it should be completed.\n * See https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent for more information on composition.\n * @param newValue - new input value\n * @param oldValue - old input value\n * @param isComposing - if true then the text is actively being composed and it has not completed.\n * @param isComposed - if the text is a composed text value.\n */\n private _tryEnableAutofill(newValue: string, oldValue: string, isComposing?: boolean, isComposed?: boolean): void {\n if (\n !isComposing &&\n newValue &&\n this._inputElement.current &&\n this._inputElement.current.selectionStart === newValue.length &&\n !this._autoFillEnabled &&\n (newValue.length > oldValue.length || isComposed)\n ) {\n this._autoFillEnabled = true;\n }\n }\n\n /**\n * Updates the current input value as well as getting a new display value.\n * @param newValue - The new value from the input\n */\n private _updateValue = (newValue: string, composing: boolean) => {\n // Only proceed if the value is nonempty and is different from the old value\n // This is to work around the fact that, in IE 11, inputs with a placeholder fire an onInput event on focus\n if (!newValue && newValue === this.value) {\n return;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { onInputChange, onInputValueChange } = this.props;\n if (onInputChange) {\n newValue = onInputChange?.(newValue, composing) || '';\n }\n\n this.setState({ inputValue: newValue }, () => onInputValueChange?.(newValue, composing));\n };\n\n private _getDisplayValue(): string {\n if (this._autoFillEnabled) {\n return _getDisplayValue(this.value, this.props.suggestedDisplayValue);\n }\n\n return this.value;\n }\n\n private _getControlledValue(): string | undefined {\n const { value } = this.props;\n if (value === undefined || typeof value === 'string') {\n return value;\n }\n\n // eslint-disable-next-line no-console\n console.warn(`props.value of Autofill should be a string, but it is ${value} with type of ${typeof value}`);\n\n return value.toString();\n }\n}\n/**\n * Returns a string that should be used as the display value.\n * It evaluates this based on whether or not the suggested value starts with the input value\n * and whether or not autofill is enabled.\n * @param inputValue - the value that the input currently has.\n * @param suggestedDisplayValue - the possible full value\n */\nfunction _getDisplayValue(inputValue: string, suggestedDisplayValue?: string): string {\n let displayValue = inputValue;\n if (suggestedDisplayValue && inputValue && _doesTextStartWith(suggestedDisplayValue, displayValue)) {\n displayValue = suggestedDisplayValue;\n }\n return displayValue;\n}\n\nfunction _doesTextStartWith(text: string, startWith: string): boolean {\n if (!text || !startWith) {\n return false;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n for (const val of [text, startWith]) {\n if (typeof val !== 'string') {\n throw new Error(\n `${\n Autofill.name\n // eslint-disable-next-line @fluentui/max-len\n } received non-string value \"${val}\" of type ${typeof val} from either input's value or suggestedDisplayValue`,\n );\n }\n }\n }\n\n return text.toLocaleLowerCase().indexOf(startWith.toLocaleLowerCase()) === 0;\n}\n","import * as React from 'react';\nimport {\n initializeComponentRef,\n getRTL,\n classNamesFunction,\n getNativeProps,\n htmlElementProperties,\n} from '../../Utilities';\nimport { FocusZone, FocusZoneDirection } from '../../FocusZone';\nimport { Link } from '../../Link';\nimport { Icon } from '../../Icon';\nimport { IconButton } from '../../Button';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport { ResizeGroup } from '../../ResizeGroup';\nimport { TooltipHost, TooltipOverflowMode } from '../../Tooltip';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { IContextualMenuItem, IContextualMenuItemProps } from '../../ContextualMenu';\nimport type {\n IBreadcrumbProps,\n IBreadcrumbItem,\n IDividerAsProps,\n IBreadcrumbData,\n IBreadcrumbStyleProps,\n IBreadcrumbStyles,\n} from './Breadcrumb.types';\nimport { composeRenderFunction } from '../../Utilities';\n\n/** @deprecated Use IBreadcrumbData */\nexport type IBreadCrumbData = IBreadcrumbData;\n\nconst getClassNames = classNamesFunction();\n\nconst OVERFLOW_KEY = 'overflow';\nconst nullFunction = (): null => null;\n\nconst nonActionableItemProps: Partial = {\n styles: props => {\n const { theme } = props;\n return {\n root: {\n selectors: {\n '&.is-disabled': {\n color: theme.semanticColors.bodyText,\n },\n },\n },\n };\n },\n};\n\n/**\n * {@docCategory Breadcrumb}\n */\nexport class BreadcrumbBase extends React.Component {\n public static defaultProps: IBreadcrumbProps = {\n items: [],\n maxDisplayedItems: 999,\n overflowIndex: 0,\n };\n\n private _classNames: IProcessedStyleSet;\n private _focusZone = React.createRef();\n\n constructor(props: IBreadcrumbProps) {\n super(props);\n\n initializeComponentRef(this);\n this._validateProps(props);\n }\n\n /**\n * Sets focus to the first breadcrumb link.\n */\n public focus(): void {\n if (this._focusZone.current) {\n this._focusZone.current.focus();\n }\n }\n\n public render(): JSX.Element {\n this._validateProps(this.props);\n\n const {\n onReduceData = this._onReduceData,\n onGrowData = this._onGrowData,\n overflowIndex,\n maxDisplayedItems,\n items,\n className,\n theme,\n styles,\n } = this.props;\n const renderedItems = [...items];\n const renderedOverflowItems = renderedItems.splice(overflowIndex!, renderedItems.length - maxDisplayedItems!);\n const breadcrumbData: IBreadcrumbData = {\n props: this.props,\n renderedItems,\n renderedOverflowItems,\n };\n\n this._classNames = getClassNames(styles, {\n className,\n theme: theme!,\n });\n\n return (\n \n );\n }\n\n /**\n * Remove the first rendered item past the overlow point and put it and the end the overflow set.\n */\n private _onReduceData = (data: IBreadcrumbData): IBreadcrumbData | undefined => {\n let { renderedItems, renderedOverflowItems } = data;\n const { overflowIndex } = data.props;\n\n const movedItem = renderedItems[overflowIndex!];\n\n if (!movedItem) {\n return undefined;\n }\n\n renderedItems = [...renderedItems];\n renderedItems.splice(overflowIndex!, 1);\n\n renderedOverflowItems = [...renderedOverflowItems, movedItem];\n\n return { ...data, renderedItems, renderedOverflowItems };\n };\n\n /**\n * Remove the last item of the overflow set and insert the item as the start of the rendered set past the overflow\n * point.\n */\n private _onGrowData = (data: IBreadcrumbData): IBreadcrumbData | undefined => {\n let { renderedItems, renderedOverflowItems } = data;\n const { overflowIndex, maxDisplayedItems } = data.props;\n\n renderedOverflowItems = [...renderedOverflowItems];\n const movedItem = renderedOverflowItems.pop();\n\n if (!movedItem || renderedItems.length >= maxDisplayedItems!) {\n return undefined;\n }\n\n renderedItems = [...renderedItems];\n renderedItems.splice(overflowIndex!, 0, movedItem);\n\n return { ...data, renderedItems, renderedOverflowItems };\n };\n\n private _onRenderBreadcrumb = (data: IBreadcrumbData) => {\n const {\n ariaLabel,\n dividerAs: DividerType = Icon as React.ElementType,\n onRenderItem,\n overflowAriaLabel,\n overflowIndex,\n onRenderOverflowIcon,\n overflowButtonAs,\n } = data.props;\n const { renderedOverflowItems, renderedItems } = data;\n\n const contextualItems = renderedOverflowItems.map((item): IContextualMenuItem => {\n const isActionable = !!(item.onClick || item.href);\n return {\n text: item.text,\n name: item.text,\n key: item.key,\n onClick: item.onClick ? this._onBreadcrumbClicked.bind(this, item) : null,\n href: item.href,\n disabled: !isActionable,\n itemProps: isActionable ? undefined : nonActionableItemProps,\n };\n });\n\n // Find index of last rendered item so the divider icon\n // knows not to render on that item\n const lastItemIndex = renderedItems.length - 1;\n const hasOverflowItems = renderedOverflowItems && renderedOverflowItems.length !== 0;\n\n const itemElements: JSX.Element[] = renderedItems.map((item, index) => {\n let finalOnRenderItem = this._onRenderItem;\n\n if (item.onRender) {\n finalOnRenderItem = composeRenderFunction(item.onRender, finalOnRenderItem);\n }\n\n if (onRenderItem) {\n finalOnRenderItem = composeRenderFunction(onRenderItem, finalOnRenderItem);\n }\n\n return (\n
  • \n {finalOnRenderItem(item)}\n {(index !== lastItemIndex || (hasOverflowItems && index === overflowIndex! - 1)) && (\n \n )}\n
  • \n );\n });\n\n if (hasOverflowItems) {\n const iconProps = !onRenderOverflowIcon ? { iconName: 'More' } : {};\n const onRenderMenuIcon = onRenderOverflowIcon ? onRenderOverflowIcon : nullFunction;\n const OverflowButton = overflowButtonAs ? overflowButtonAs : IconButton;\n\n itemElements.splice(\n overflowIndex!,\n 0,\n
  • \n \n {overflowIndex !== lastItemIndex + 1 && (\n \n )}\n
  • ,\n );\n }\n\n const nativeProps = getNativeProps>(this.props, htmlElementProperties, [\n 'className',\n ]);\n\n return (\n
    \n \n
      {itemElements}
    \n \n
    \n );\n };\n\n private _onRenderItem = (item?: IBreadcrumbItem) => {\n if (!item) {\n return null;\n }\n\n const { as, href, onClick, isCurrentItem, text, onRenderContent, ...additionalProps } = item;\n\n let finalOnRenderContent = defaultOnRenderCrumbContent;\n\n if (onRenderContent) {\n finalOnRenderContent = composeRenderFunction(onRenderContent, finalOnRenderContent);\n }\n\n if (this.props.onRenderItemContent) {\n finalOnRenderContent = composeRenderFunction(this.props.onRenderItemContent, finalOnRenderContent);\n }\n\n if (onClick || href) {\n return (\n \n \n {finalOnRenderContent(item)}\n \n \n );\n } else {\n const Tag = as || 'span';\n return (\n \n \n {finalOnRenderContent(item)}\n \n \n );\n }\n };\n\n private _onBreadcrumbClicked = (item: IBreadcrumbItem, ev: React.MouseEvent) => {\n if (item.onClick) {\n item.onClick(ev, item);\n }\n };\n\n /**\n * Validate incoming props\n * @param props - Props to validate\n */\n private _validateProps(props: IBreadcrumbProps): void {\n const { maxDisplayedItems, overflowIndex, items } = props;\n if (\n overflowIndex! < 0 ||\n (maxDisplayedItems! > 1 && overflowIndex! > maxDisplayedItems! - 1) ||\n (items.length > 0 && overflowIndex! > items.length - 1)\n ) {\n throw new Error('Breadcrumb: overflowIndex out of range');\n }\n }\n}\n\nfunction defaultOnRenderCrumbContent(item?: IBreadcrumbItem): JSX.Element | null {\n return item ? <>{item.text} : null;\n}\n","import {\n HighContrastSelector,\n ScreenWidthMaxMedium,\n ScreenWidthMaxSmall,\n ScreenWidthMinMedium,\n getFocusStyle,\n getScreenSelector,\n getGlobalClassNames,\n FontWeights,\n getHighContrastNoAdjustStyle,\n} from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nimport type { IRawStyle } from '../../Styling';\nimport type { IBreadcrumbStyleProps, IBreadcrumbStyles } from './Breadcrumb.types';\n\nconst GlobalClassNames = {\n root: 'ms-Breadcrumb',\n list: 'ms-Breadcrumb-list',\n listItem: 'ms-Breadcrumb-listItem',\n chevron: 'ms-Breadcrumb-chevron',\n overflow: 'ms-Breadcrumb-overflow',\n overflowButton: 'ms-Breadcrumb-overflowButton',\n itemLink: 'ms-Breadcrumb-itemLink',\n item: 'ms-Breadcrumb-item',\n};\n\nconst SingleLineTextStyle: IRawStyle = {\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n};\n\nconst overflowButtonFontSize = 16;\nconst chevronSmallFontSize = 8;\nconst itemLineHeight = 36;\nconst itemFontSize = 18;\n\nconst MinimumScreenSelector = getScreenSelector(0, ScreenWidthMaxSmall);\nconst MediumScreenSelector = getScreenSelector(ScreenWidthMinMedium, ScreenWidthMaxMedium);\n\nexport const getStyles = (props: IBreadcrumbStyleProps): IBreadcrumbStyles => {\n const { className, theme } = props;\n const { palette, semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n // Tokens\n const itemBackgroundHoveredColor = semanticColors.menuItemBackgroundHovered;\n const itemBackgroundPressedColor = semanticColors.menuItemBackgroundPressed;\n const itemTextColor = palette.neutralSecondary;\n const itemTextFontWeight = FontWeights.regular;\n const itemTextHoveredOrPressedColor = palette.neutralPrimary;\n const itemLastChildTextColor = palette.neutralPrimary;\n const itemLastChildTextFontWeight = FontWeights.semibold;\n const chevronButtonColor = palette.neutralSecondary;\n const overflowButtonColor = palette.neutralSecondary;\n\n const lastChildItemStyles: IRawStyle = {\n fontWeight: itemLastChildTextFontWeight,\n color: itemLastChildTextColor,\n };\n\n const itemStateSelectors = {\n ':hover': {\n color: itemTextHoveredOrPressedColor,\n backgroundColor: itemBackgroundHoveredColor,\n cursor: 'pointer',\n selectors: {\n [HighContrastSelector]: {\n color: 'Highlight',\n backgroundColor: 'transparent',\n },\n },\n },\n ':active': {\n backgroundColor: itemBackgroundPressedColor,\n color: itemTextHoveredOrPressedColor,\n },\n '&:active:hover': {\n color: itemTextHoveredOrPressedColor,\n backgroundColor: itemBackgroundPressedColor,\n },\n '&:active, &:hover, &:active:hover': {\n textDecoration: 'none',\n },\n };\n\n const commonItemStyles: IRawStyle = {\n color: itemTextColor,\n padding: '0 8px',\n lineHeight: itemLineHeight,\n fontSize: itemFontSize,\n fontWeight: itemTextFontWeight,\n };\n\n const overflowButtonHighContrastFocus = {\n left: 1,\n right: 1,\n top: 1,\n bottom: 1,\n };\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n {\n margin: '11px 0 1px',\n },\n className,\n ],\n\n list: [\n classNames.list,\n {\n whiteSpace: 'nowrap',\n padding: 0,\n margin: 0,\n display: 'flex',\n alignItems: 'stretch',\n },\n ],\n\n listItem: [\n classNames.listItem,\n {\n listStyleType: 'none',\n margin: '0',\n padding: '0',\n display: 'flex',\n position: 'relative',\n alignItems: 'center',\n selectors: {\n '&:last-child .ms-Breadcrumb-itemLink': {\n ...lastChildItemStyles,\n [HighContrastSelector]: {\n MsHighContrastAdjust: 'auto',\n forcedColorAdjust: 'auto',\n },\n },\n '&:last-child .ms-Breadcrumb-item': lastChildItemStyles,\n },\n },\n ],\n\n chevron: [\n classNames.chevron,\n {\n color: chevronButtonColor,\n fontSize: fonts.small.fontSize,\n selectors: {\n [HighContrastSelector]: {\n color: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n [MediumScreenSelector]: {\n fontSize: chevronSmallFontSize,\n },\n [MinimumScreenSelector]: {\n fontSize: chevronSmallFontSize,\n },\n },\n },\n ],\n\n overflow: [\n classNames.overflow,\n {\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n },\n ],\n\n overflowButton: [\n classNames.overflowButton,\n getFocusStyle(theme, { highContrastStyle: overflowButtonHighContrastFocus }),\n SingleLineTextStyle,\n {\n fontSize: overflowButtonFontSize,\n color: overflowButtonColor,\n height: '100%',\n cursor: 'pointer',\n selectors: {\n ...itemStateSelectors,\n [MinimumScreenSelector]: {\n padding: '4px 6px',\n },\n [MediumScreenSelector]: {\n fontSize: fonts.mediumPlus.fontSize,\n },\n },\n },\n ],\n\n itemLink: [\n classNames.itemLink,\n getFocusStyle(theme),\n SingleLineTextStyle,\n {\n ...commonItemStyles,\n selectors: {\n ':focus': {\n color: palette.neutralDark,\n },\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: {\n outline: `none`,\n },\n ...itemStateSelectors,\n },\n },\n ],\n\n item: [\n classNames.item,\n {\n ...commonItemStyles,\n selectors: {\n ':hover': {\n cursor: 'default',\n },\n },\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { BreadcrumbBase } from './Breadcrumb.base';\nimport { getStyles } from './Breadcrumb.styles';\nimport type { IBreadcrumbProps, IBreadcrumbStyleProps, IBreadcrumbStyles } from './Breadcrumb.types';\n\nexport const Breadcrumb: React.FunctionComponent = styled<\n IBreadcrumbProps,\n IBreadcrumbStyleProps,\n IBreadcrumbStyles\n>(BreadcrumbBase, getStyles, undefined, { scope: 'Breadcrumb' });\n","import { concatStyleSets, HighContrastSelector } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nconst DEFAULT_BUTTON_HEIGHT = '40px';\nconst DEFAULT_PADDING = '0 4px';\n\nexport const getStyles = memoizeFunction((theme: ITheme, customStyles?: IButtonStyles): IButtonStyles => {\n const baseButtonStyles: IButtonStyles = getBaseButtonStyles(theme);\n const actionButtonStyles: IButtonStyles = {\n root: {\n padding: DEFAULT_PADDING,\n height: DEFAULT_BUTTON_HEIGHT,\n color: theme.palette.neutralPrimary,\n backgroundColor: 'transparent',\n border: '1px solid transparent',\n [HighContrastSelector]: {\n borderColor: 'Window',\n },\n },\n\n rootHovered: {\n color: theme.palette.themePrimary,\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n\n iconHovered: {\n color: theme.palette.themePrimary,\n },\n\n rootPressed: {\n color: theme.palette.black,\n },\n\n rootExpanded: {\n color: theme.palette.themePrimary,\n },\n\n iconPressed: {\n color: theme.palette.themeDarker,\n },\n\n rootDisabled: {\n color: theme.palette.neutralTertiary,\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n\n rootChecked: {\n color: theme.palette.black,\n },\n\n iconChecked: {\n color: theme.palette.themeDarker,\n },\n\n flexContainer: {\n justifyContent: 'flex-start',\n },\n\n icon: {\n color: theme.palette.themeDarkAlt,\n },\n\n iconDisabled: {\n color: 'inherit',\n },\n\n menuIcon: {\n color: theme.palette.neutralSecondary,\n },\n\n textContainer: {\n flexGrow: 0,\n },\n };\n\n return concatStyleSets(baseButtonStyles, actionButtonStyles, customStyles)!;\n});\n","import * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './ActionButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('ActionButton', ['theme', 'styles'], true)\nexport class ActionButton extends React.Component {\n public render(): JSX.Element {\n const { styles, theme } = this.props;\n\n return (\n \n );\n }\n}\n","import { memoizeFunction } from '../../Utilities';\nimport { getGlobalClassNames, mergeStyleSets } from '../../Styling';\nimport type { ITheme } from '../../Styling';\nimport type { IButtonStyles } from './Button.types';\n\nexport interface IButtonClassNames {\n root?: string;\n flexContainer?: string;\n textContainer?: string;\n icon?: string;\n label?: string;\n menuIcon?: string;\n description?: string;\n screenReaderText?: string;\n}\n\nexport const ButtonGlobalClassNames = {\n msButton: 'ms-Button',\n msButtonHasMenu: 'ms-Button--hasMenu',\n msButtonIcon: 'ms-Button-icon',\n msButtonMenuIcon: 'ms-Button-menuIcon',\n msButtonLabel: 'ms-Button-label',\n msButtonDescription: 'ms-Button-description',\n msButtonScreenReaderText: 'ms-Button-screenReaderText',\n msButtonFlexContainer: 'ms-Button-flexContainer',\n msButtonTextContainer: 'ms-Button-textContainer',\n};\n\nexport const getBaseButtonClassNames = memoizeFunction(\n (\n theme: ITheme,\n styles: IButtonStyles,\n className: string,\n variantClassName: string,\n iconClassName: string | undefined,\n menuIconClassName: string | undefined,\n disabled: boolean,\n hasMenu: boolean,\n checked: boolean,\n expanded: boolean,\n isSplit: boolean | undefined,\n ): IButtonClassNames => {\n const classNames = getGlobalClassNames(ButtonGlobalClassNames, theme || {});\n\n const isExpanded = expanded && !isSplit;\n return mergeStyleSets(styles.__shadowConfig__, {\n root: [\n classNames.msButton,\n styles.root,\n variantClassName,\n checked && ['is-checked', styles.rootChecked],\n isExpanded && [\n 'is-expanded',\n styles.rootExpanded,\n {\n [`:hover .${classNames.msButtonIcon}`]: styles.iconExpandedHovered,\n // menuIcon falls back to rootExpandedHovered to support original behavior\n [`:hover .${classNames.msButtonMenuIcon}`]: styles.menuIconExpandedHovered || styles.rootExpandedHovered,\n ':hover': styles.rootExpandedHovered,\n },\n ],\n hasMenu && [ButtonGlobalClassNames.msButtonHasMenu, styles.rootHasMenu],\n disabled && ['is-disabled', styles.rootDisabled],\n !disabled &&\n !isExpanded &&\n !checked && {\n ':hover': styles.rootHovered,\n [`:hover .${classNames.msButtonLabel}`]: styles.labelHovered,\n [`:hover .${classNames.msButtonIcon}`]: styles.iconHovered,\n [`:hover .${classNames.msButtonDescription}`]: styles.descriptionHovered,\n [`:hover .${classNames.msButtonMenuIcon}`]: styles.menuIconHovered,\n ':focus': styles.rootFocused,\n ':active': styles.rootPressed,\n [`:active .${classNames.msButtonIcon}`]: styles.iconPressed,\n [`:active .${classNames.msButtonDescription}`]: styles.descriptionPressed,\n [`:active .${classNames.msButtonMenuIcon}`]: styles.menuIconPressed,\n },\n disabled && checked && [styles.rootCheckedDisabled],\n !disabled &&\n checked && {\n ':hover': styles.rootCheckedHovered,\n ':active': styles.rootCheckedPressed,\n },\n className,\n ],\n flexContainer: [classNames.msButtonFlexContainer, styles.flexContainer],\n textContainer: [classNames.msButtonTextContainer, styles.textContainer],\n icon: [\n classNames.msButtonIcon,\n iconClassName,\n styles.icon,\n isExpanded && styles.iconExpanded,\n checked && styles.iconChecked,\n disabled && styles.iconDisabled,\n ],\n label: [classNames.msButtonLabel, styles.label, checked && styles.labelChecked, disabled && styles.labelDisabled],\n menuIcon: [\n classNames.msButtonMenuIcon,\n menuIconClassName,\n styles.menuIcon,\n checked && styles.menuIconChecked,\n disabled && !isSplit && styles.menuIconDisabled,\n !disabled &&\n !isExpanded &&\n !checked && {\n ':hover': styles.menuIconHovered,\n ':active': styles.menuIconPressed,\n },\n isExpanded && ['is-expanded', styles.menuIconExpanded],\n ],\n description: [\n classNames.msButtonDescription,\n styles.description,\n checked && styles.descriptionChecked,\n disabled && styles.descriptionDisabled,\n ],\n screenReaderText: [classNames.msButtonScreenReaderText, styles.screenReaderText],\n });\n },\n);\n","import * as React from 'react';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport type { IFocusZoneProps } from '../../FocusZone';\nimport type { IIconProps } from '../../Icon';\nimport type { ICalloutProps, ICalloutContentStyleProps } from '../../Callout';\nimport type { ITheme, IStyle } from '../../Styling';\nimport type { IButtonStyles } from '../../Button';\nimport type {\n IRefObject,\n IBaseProps,\n IRectangle,\n IRenderFunction,\n IStyleFunctionOrObject,\n IComponentAs,\n} from '../../Utilities';\nimport type { IWithResponsiveModeState } from '../../ResponsiveMode';\nimport type { IContextualMenuClassNames, IMenuItemClassNames } from './ContextualMenu.classNames';\nimport type { IVerticalDividerClassNames } from '../Divider/VerticalDivider.types';\nimport type {\n IContextualMenuItemProps,\n IContextualMenuRenderItem,\n IContextualMenuItemStyleProps,\n IContextualMenuItemRenderFunctions,\n} from './ContextualMenuItem.types';\nimport type { IKeytipProps } from '../../Keytip';\nimport type { Target } from '@fluentui/react-hooks';\nimport type { IPopupRestoreFocusParams } from '../../Popup';\nimport { IContextualMenuItemWrapperProps } from './ContextualMenuItemWrapper/ContextualMenuItemWrapper.types';\n\nexport { DirectionalHint } from '../../common/DirectionalHint';\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport enum ContextualMenuItemType {\n Normal = 0,\n Divider = 1,\n Header = 2,\n Section = 3,\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenu {}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuProps\n extends IBaseProps,\n React.RefAttributes,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n IWithResponsiveModeState {\n /**\n * Optional callback to access the IContextualMenu interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n * @deprecated ContextualMenu has no imperative methods, so componentRef no longer returns a ref\n */\n componentRef?: IRefObject;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by higher-order component.\n */\n theme?: ITheme;\n\n /**\n * Additional CSS class to apply to the ContextualMenu.\n */\n className?: string;\n\n /**\n * The target that the ContextualMenu should try to position itself based on.\n * It can be either an element, a query selector string resolving to a valid element,\n * or a MouseEvent. If a MouseEvent is given, the origin point of the event will be used.\n */\n target?: Target;\n\n /**\n * How the menu should be positioned\n * @defaultvalue DirectionalHint.bottomAutoEdge\n */\n directionalHint?: DirectionalHint;\n\n /**\n * How the menu should be positioned in RTL layouts.\n * If not specified, a mirror of `directionalHint` will be used.\n */\n directionalHintForRTL?: DirectionalHint;\n\n /**\n * The gap between the ContextualMenu and the target\n * @defaultvalue 0\n */\n gapSpace?: number;\n\n /**\n * The width of the beak.\n * @defaultvalue 16\n */\n beakWidth?: number;\n\n /**\n * If true the context menu will render as the same width as the target element\n * @defaultvalue false\n */\n useTargetWidth?: boolean;\n\n /**\n * If true the context menu will have a minimum width equal to the width of the target element\n * @defaultvalue false\n */\n useTargetAsMinWidth?: boolean;\n\n /**\n * The bounding rectangle (or callback that returns a rectangle) which the contextual menu can appear in.\n */\n bounds?: IRectangle | ((target?: Target, targetWindow?: Window) => IRectangle | undefined);\n\n /**\n * If true then the beak is visible. If false it will not be shown.\n */\n isBeakVisible?: boolean;\n\n /**\n * If true, the menu will be positioned to cover the target.\n * If false, it will be positioned next to the target.\n * @defaultvalue false\n */\n coverTarget?: boolean;\n\n /**\n * If true the positioning logic will prefer to flip edges rather than to nudge the rectangle to fit within bounds,\n * thus making sure the element aligns perfectly with target's alignment edge\n */\n alignTargetEdge?: boolean;\n\n /**\n * Menu items to display.\n */\n items: IContextualMenuItem[];\n\n /**\n * Used as `aria-labelledby` for the menu element inside the callout.\n */\n labelElementId?: string;\n\n /**\n * Whether to focus on the menu when mounted.\n * @defaultvalue true\n */\n shouldFocusOnMount?: boolean;\n\n /**\n * Whether to focus on the contextual menu container (as opposed to the first menu item).\n *\n * Avoid using as it breaks the default focus behaviour when using assistive technologies.\n */\n shouldFocusOnContainer?: boolean;\n\n /**\n * Callback when the ContextualMenu tries to close. If `dismissAll` is true then all\n * submenus will be dismissed.\n */\n onDismiss?: (ev?: Event | React.MouseEvent | React.KeyboardEvent, dismissAll?: boolean) => void;\n\n /**\n * Click handler which is invoked if `onClick` is not passed for individual contextual\n * menu item.\n * Returning true will dismiss the menu even if `ev.preventDefault()` was called.\n */\n onItemClick?: (\n ev?: React.MouseEvent | React.KeyboardEvent,\n item?: IContextualMenuItem,\n ) => boolean | void;\n\n /**\n * Whether this menu is a submenu of another menu.\n */\n isSubMenu?: boolean;\n\n /**\n * ID for the ContextualMenu's root element (inside the callout).\n * Should be used for `aria-owns` and other such uses, rather than direct reference for programmatic purposes.\n */\n id?: string;\n\n /**\n * Accessible label for the ContextualMenu's root element (inside the callout).\n */\n ariaLabel?: string;\n\n /**\n * If true do not render on a new layer. If false render on a new layer.\n * @defaultvalue false\n */\n doNotLayer?: boolean;\n\n /**\n * If true the position will not change sides in an attempt to fit the ContextualMenu within bounds.\n * It will still attempt to align it to whatever bounds are given.\n * @defaultvalue false\n */\n directionalHintFixed?: boolean;\n\n /**\n * Callback for when the menu has been opened.\n */\n onMenuOpened?: (contextualMenu?: IContextualMenuProps) => void;\n\n /**\n * Callback for when the menu is being closed (removing from the DOM).\n */\n onMenuDismissed?: (contextualMenu?: IContextualMenuProps) => void;\n\n /**\n * Additional custom props for the Callout.\n */\n calloutProps?: ICalloutProps;\n\n /**\n * Title to be displayed at the top of the menu, above the items.\n */\n title?: string;\n\n /**\n * Method to provide the classnames to style the contextual menu.\n * @deprecated Use `styles` instead to leverage mergeStyles API.\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n getMenuClassNames?: (theme: ITheme, className?: string) => IContextualMenuClassNames;\n\n /** Custom render function for a submenu. */\n onRenderSubMenu?: IRenderFunction;\n\n /**\n * Method to override the render of the list of menu items.\n */\n onRenderMenuList?: IRenderFunction;\n\n /**\n * Method to wrap menu items. Gives the ability to wrap a custom\n * tooltip to each menu item button.\n */\n onRenderContextualMenuItem?: IRenderFunction;\n\n /**\n * Delay (in milliseconds) to wait before expanding / dismissing a submenu on mouseEnter or mouseLeave\n */\n subMenuHoverDelay?: number;\n\n /**\n * Custom component to use for rendering individual menu items.\n * @defaultvalue ContextualMenuItem\n */\n contextualMenuItemAs?: IComponentAs;\n\n /**\n * Props to pass down to the FocusZone.\n * NOTE: the default FocusZoneDirection will be used unless a direction\n * is specified in the focusZoneProps (even if other focusZoneProps are defined)\n * @defaultvalue \\{ direction: FocusZoneDirection.vertical \\}\n */\n focusZoneProps?: IFocusZoneProps;\n\n /**\n * Custom component to use for rendering the focus zone (the root).\n * @defaultValue FocusZone\n */\n focusZoneAs?: IComponentAs;\n\n /**\n * If true, renders the ContextualMenu in a hidden state.\n * Use this flag, rather than rendering a ContextualMenu conditionally based on visibility,\n * to improve rendering performance when it becomes visible.\n * Note: When ContextualMenu is hidden its content will not be rendered. It will only render\n * once the ContextualMenu is visible.\n */\n hidden?: boolean;\n\n /**\n * If true, the menu will be updated even when `hidden=true`. Note that this will consume\n * resources to update even when nothing is being shown to the user. This might be helpful if\n * your updates are small and you want the menu to display quickly when `hidden` is set to false.\n */\n shouldUpdateWhenHidden?: boolean;\n\n /**\n * If true, the contextual menu will not be updated until focus enters the menu via other means.\n * This will only result in different behavior when `shouldFocusOnMount = false`.\n */\n delayUpdateFocusOnHover?: boolean;\n\n /**\n * Called when the component is unmounting, and focus needs to be restored. If this is provided,\n * focus will not be restored automatically, and you'll need to call `params.originalElement.focus()`.\n */\n onRestoreFocus?: (params: IPopupRestoreFocusParams) => void;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuItemRenderProps extends IContextualMenuItem {\n index: number;\n focusableElementIndex: number;\n totalItemCount: number;\n hasCheckmarks: boolean;\n hasIcons: boolean;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuListProps {\n items: IContextualMenuItem[];\n totalItemCount: number;\n hasCheckmarks: boolean;\n hasIcons: boolean;\n defaultMenuItemRenderer: (item: IContextualMenuItemRenderProps) => React.ReactNode;\n ariaLabel?: string;\n labelElementId?: string;\n role?: string;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuItem {\n /**\n * Optional callback to access the IContextualMenuRenderItem interface.\n * This will get passed down to ContextualMenuItem.\n */\n componentRef?: IRefObject;\n\n /**\n * Unique id to identify the item\n */\n key: string;\n\n /**\n * Text of the menu item.\n * If a standard hyphen (-) is passed in, then the item will be rendered as a divider.\n * If a dash must appear as text, use an emdash (—), figuredash (‒), or minus symbol (−) instead.\n */\n text?: string;\n\n /**\n * Secondary description for the menu item to display\n */\n secondaryText?: string;\n\n itemType?: ContextualMenuItemType;\n\n /**\n * Props for an icon to display next to the item.\n */\n iconProps?: IIconProps;\n\n /**\n * Custom render function for the menu item icon.\n * iconProps must be present on at least one item for onRenderIcon to be called.\n */\n onRenderIcon?: IRenderFunction;\n\n /**\n * Props for the Icon used for the chevron.\n */\n submenuIconProps?: IIconProps;\n\n /**\n * Whether the menu item is disabled\n * @defaultvalue false\n */\n disabled?: boolean;\n\n /**\n * If the menu item is a split button, this prop disables purely the primary action of the button.\n * @defaultvalue false\n */\n primaryDisabled?: boolean;\n\n /**\n * @deprecated Not used\n */\n shortCut?: string;\n\n /**\n * Whether or not this menu item can be checked\n * @defaultvalue false\n */\n canCheck?: boolean;\n\n /**\n * Whether or not this menu item is currently checked.\n * @defaultvalue false\n */\n checked?: boolean;\n\n /**\n * Whether or not this menu item is a splitButton.\n * @defaultvalue false\n */\n split?: boolean;\n\n /**\n * Any custom data the developer wishes to associate with the menu item.\n */\n data?: any;\n\n /**\n * Callback for when the menu item is invoked. If `ev.preventDefault()` is called in `onClick`,\n * the click will not close the menu.\n *\n * Only for ContextualMenu items, returning true will dismiss the menu even if `ev.preventDefault()`\n * was called (does not apply for button or CommandBar sub-menu items).\n */\n onClick?: (\n ev?: React.MouseEvent | React.KeyboardEvent,\n item?: IContextualMenuItem,\n ) => boolean | void;\n\n /**\n * Navigate to this URL when the menu item is clicked.\n */\n href?: string;\n\n /**\n * Target window when using `href`.\n */\n target?: string;\n\n /**\n * Link relation setting when using `href`.\n * If `target` is `_blank`, `rel` is defaulted to a value to prevent clickjacking.\n */\n rel?: string;\n\n /**\n * Properties to apply to a submenu to this item.\n *\n * The ContextualMenu will provide default values for `target`, `onDismiss`, `isSubMenu`,\n * `id`, `shouldFocusOnMount`, `directionalHint`, `className`, and `gapSpace`, all of which\n * can be overridden.\n */\n subMenuProps?: IContextualMenuProps;\n\n /**\n * Method to provide the classnames to style the individual items inside a menu.\n * @deprecated Use `styles` prop of `IContextualMenuItemProps` to leverage mergeStyles API.\n */\n getItemClassNames?: (\n theme: ITheme,\n disabled: boolean,\n expanded: boolean,\n checked: boolean,\n isAnchorLink: boolean,\n knownIcon: boolean,\n itemClassName?: string,\n dividerClassName?: string,\n iconClassName?: string,\n subMenuClassName?: string,\n primaryDisabled?: boolean,\n ) => // eslint-disable-next-line @typescript-eslint/no-deprecated\n IMenuItemClassNames;\n\n /**\n * Optional IContextualMenuItemProps overrides to customize behaviors such as item styling via `styles`.\n */\n itemProps?: Partial;\n\n /**\n * Method to provide the classnames to style the Vertical Divider of a split button inside a menu.\n * Default value is the `getSplitButtonVerticalDividerClassNames` func defined in `ContextualMenu.classnames.ts`.\n * @defaultvalue getSplitButtonVerticalDividerClassNames\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n getSplitButtonVerticalDividerClassNames?: (theme: ITheme) => IVerticalDividerClassNames;\n\n /**\n * Properties to apply to render this item as a section.\n * This prop is mutually exclusive with `subMenuProps`.\n */\n sectionProps?: IContextualMenuSection;\n\n /**\n * Additional CSS class to apply to the menu item.\n */\n className?: string;\n\n /**\n * Additional styles to apply to the menu item\n * @deprecated Use `styles` instead to leverage mergeStyles API.\n */\n style?: React.CSSProperties;\n\n /**\n * Custom accessible label for the element.\n * If no override is specified, the `aria-label` attribute will contain the item name.\n */\n ariaLabel?: string;\n\n /**\n * Title (tooltip) text displayed when hovering over an item.\n */\n title?: string;\n\n /**\n * Method to custom render this menu item.\n * For keyboard accessibility, the top-level rendered item should be a focusable element\n * (like an anchor or a button) or have the `data-is-focusable` property set to true.\n *\n * @param item - Item to render. Will typically be of type `IContextualMenuItem`.\n * (When rendering a command bar item, will be `ICommandBarItemProps`.)\n * @param dismissMenu - Function to dismiss the menu. Can be used to ensure that a custom menu\n * item click dismisses the menu. (Will be undefined if rendering a command bar item.)\n */\n onRender?: (item: any, dismissMenu: (ev?: any, dismissAll?: boolean) => void) => React.ReactNode;\n\n /**\n * An override for the child content of the contextual menu item.\n */\n contextualMenuItemAs?: IComponentAs;\n\n /**\n * An override for the entire component used to render the contextal menu item.\n */\n contextualMenuItemWrapperAs?: IComponentAs;\n\n /**\n * Method to customize sub-components rendering of this menu item.\n *\n * @param props - Props used to pass into render functions\n * @param defaultRenders - Default render functions that renders default sub-components\n */\n onRenderContent?: (\n props: IContextualMenuItemProps,\n defaultRenders: IContextualMenuItemRenderFunctions,\n ) => React.ReactNode;\n\n /**\n * A function to be executed on mouse down. This is executed before an `onClick` event and can\n * be used to interrupt native on click events as well. The click event should still handle\n * the commands. This should only be used in special cases when react and non-react are mixed.\n */\n onMouseDown?: (item: IContextualMenuItem, event: React.MouseEvent) => void;\n\n /**\n * Optional override for the menu button's role.\n * @default `menuitem` or `menuitemcheckbox`\n */\n role?: string;\n\n /**\n * When rendering a custom menu component that is passed in, the component might also be a list of\n * elements. We want to keep track of the correct index our menu is using based off of\n * the length of the custom list. It is up to the user to increment the count for their list.\n */\n customOnRenderListLength?: number;\n\n /**\n * Keytip for this contextual menu item\n */\n keytipProps?: IKeytipProps;\n\n /**\n * @deprecated Use subMenuProps.items instead.\n */\n items?: IContextualMenuItem[];\n\n /**\n * Any additional properties to use when custom rendering menu items.\n */\n [propertyName: string]: any;\n\n /**\n * Detailed description of the menu item for the benefit of screen readers.\n */\n ariaDescription?: string;\n\n /**\n * ID of the element that contains additional detailed descriptive information for screen readers\n */\n ariaDescribedBy?: string;\n\n /**\n * @deprecated No longer used. All contextual menu items are now focusable when disabled.\n */\n inactive?: boolean;\n\n /**\n * Text of the menu item.\n * @deprecated Use `text` instead.\n */\n name?: string;\n\n /**\n * Flag which indicates that, when the item is clicked, the 'target' for the click event should be\n * overridden to reflect the launch target from the root menu.\n * This avoids a situation where the 'target' of the event may wind up detached from the DOM\n * when the menu is dismissed in response to the click.\n */\n preferMenuTargetAsEventTarget?: boolean;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuSection extends React.ClassAttributes {\n /**\n * The items to include inside the section.\n */\n items: IContextualMenuItem[];\n\n /**\n * The optional section title.\n */\n title?: string | IContextualMenuItem;\n\n /**\n * If set to true, the section will display a divider at the top of the section.\n */\n topDivider?: boolean;\n\n /**\n * If set to true, the section will display a divider at the bottom of the section.\n */\n bottomDivider?: boolean;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IMenuItemStyles extends IButtonStyles {\n /**\n * Styles for a menu item that is an anchor link.\n */\n item?: IStyle;\n\n /**\n * Styles for the content inside the button/link of the menuItem.\n */\n linkContent?: IStyle;\n\n /**\n * Styles for a menu item that is an anchor link.\n */\n anchorLink?: IStyle;\n\n /**\n * Default icon color style for known icons.\n */\n iconColor?: IStyle;\n\n /**\n * Default style for checkmark icons.\n */\n checkmarkIcon?: IStyle;\n\n /**\n * Styles for the submenu icon of a menu item.\n */\n subMenuIcon?: IStyle;\n\n /**\n * Styles for a divider item of a ContextualMenu.\n */\n divider?: IStyle;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuStyleProps {\n theme: ITheme;\n\n className?: string;\n\n // Insert ContextualMenu style props below\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuStyles {\n /**\n * Style override for the contextual menu title.\n */\n title: IStyle;\n\n /**\n * Style for the container which parents all menu items.\n */\n container: IStyle;\n\n /**\n * Base styles for the root element of all ContextualMenus.\n */\n root: IStyle;\n\n /**\n * Styles for the header item of a ContextualMenu\n */\n header: IStyle;\n\n /**\n * Styles for the list that contains all menuItems.\n */\n list: IStyle;\n\n /**\n * SubComponent styles.\n */\n subComponentStyles: IContextualMenuSubComponentStyles;\n}\n\n/**\n * {@docCategory ContextualMenu}\n */\nexport interface IContextualMenuSubComponentStyles {\n /** Styles for the callout that hosts the ContextualMenu options. */\n callout: IStyleFunctionOrObject;\n\n /** Styles for each menu item. */\n menuItem: IStyleFunctionOrObject;\n}\n","import * as React from 'react';\nimport { Image } from '../Image/Image';\nimport { css, getNativeProps, htmlElementProperties } from '../../Utilities';\nimport { classNames, MS_ICON } from './Icon.styles';\nimport type { IImageIconProps } from './Icon.types';\n\n/**\n * Fast icon component which only supports images (not font glyphs) and can't be targeted by customizations.\n * To style the icon, use `className` or reference `ms-Icon` in CSS.\n * {@docCategory Icon}\n */\nexport const ImageIcon: React.FunctionComponent = props => {\n const { className, imageProps } = props;\n\n const nativeProps = getNativeProps>(props, htmlElementProperties, [\n 'aria-label',\n 'aria-labelledby',\n 'title',\n 'aria-describedby',\n ]);\n const altText = imageProps.alt || props['aria-label'];\n const hasName =\n altText ||\n props['aria-labelledby'] ||\n props.title ||\n imageProps['aria-label'] ||\n imageProps['aria-labelledby'] ||\n imageProps.title;\n\n // move naming or describing attributes from the container (where they are invalid) to the image\n const imageNameProps = {\n 'aria-labelledby': props['aria-labelledby'],\n 'aria-describedby': props['aria-describedby'],\n title: props.title,\n };\n\n const containerProps = hasName\n ? {}\n : {\n 'aria-hidden': true,\n };\n\n return (\n
    \n {hasName\n
    \n );\n};\n","import type { IContextualMenuItem } from '../../index';\n\n/**\n * Determines the effective checked state of a menu item.\n *\n * @param item {IContextualMenuItem} to get the check state of.\n * @returns {true} if the item is checked.\n * @returns {false} if the item is unchecked.\n * @returns {null} if the item is not checkable.\n */\nexport function getIsChecked(item: IContextualMenuItem): boolean | null {\n if (item.canCheck) {\n return !!(item.isChecked || item.checked);\n }\n\n if (typeof item.isChecked === 'boolean') {\n return item.isChecked;\n }\n\n if (typeof item.checked === 'boolean') {\n return item.checked;\n }\n\n // Item is not checkable.\n return null;\n}\n\nexport function hasSubmenu(item: IContextualMenuItem): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return !!(item.subMenuProps || item.items);\n}\n\nexport function isItemDisabled(item: IContextualMenuItem): boolean {\n return !!(item.isDisabled || item.disabled);\n}\n\nexport function getMenuItemAriaRole(item: IContextualMenuItem): string {\n const isChecked = getIsChecked(item);\n const canCheck: boolean = isChecked !== null;\n return canCheck ? 'menuitemcheckbox' : 'menuitem';\n}\n","import * as React from 'react';\nimport { hasSubmenu, getIsChecked } from '../../utilities/contextualMenu/index';\nimport { getRTL, initializeComponentRef } from '../../Utilities';\nimport { Icon } from '../../Icon';\nimport type { IContextualMenuItemProps, IContextualMenuItemRenderFunctions } from './ContextualMenuItem.types';\n\nconst defaultIconRenderer = (props: IContextualMenuItemProps) => {\n const { item, classNames } = props;\n const { iconProps } = item;\n return ;\n};\n\nconst renderItemIcon = (props: IContextualMenuItemProps) => {\n const { item, hasIcons } = props;\n if (!hasIcons) {\n return null;\n }\n\n if (item.onRenderIcon) {\n return item.onRenderIcon(props, defaultIconRenderer);\n }\n\n return defaultIconRenderer(props);\n};\n\nconst renderCheckMarkIcon = ({ onCheckmarkClick, item, classNames }: IContextualMenuItemProps) => {\n const isItemChecked = getIsChecked(item);\n if (onCheckmarkClick) {\n // Ensures that the item is passed as the first argument to the checkmark click callback.\n const onClick = (e: React.MouseEvent) => onCheckmarkClick(item, e);\n\n return (\n \n );\n }\n return null;\n};\n\nconst renderItemName = ({ item, classNames }: IContextualMenuItemProps) => {\n /* eslint-disable @typescript-eslint/no-deprecated */\n if (item.text || item.name) {\n return {item.text || item.name};\n }\n /* eslint-enable @typescript-eslint/no-deprecated */\n return null;\n};\n\nconst renderSecondaryText = ({ item, classNames }: IContextualMenuItemProps) => {\n if (item.secondaryText) {\n return {item.secondaryText};\n }\n return null;\n};\n\nconst renderSubMenuIcon = ({ item, classNames, theme }: IContextualMenuItemProps) => {\n if (hasSubmenu(item)) {\n return (\n \n );\n }\n return null;\n};\n\nexport class ContextualMenuItemBase extends React.Component {\n constructor(props: IContextualMenuItemProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render() {\n const { item, classNames } = this.props;\n const renderContent = item.onRenderContent || this._renderLayout;\n\n return (\n
    \n {renderContent(this.props, {\n renderCheckMarkIcon,\n renderItemIcon,\n renderItemName,\n renderSecondaryText,\n renderSubMenuIcon,\n })}\n
    \n );\n }\n\n public openSubMenu = (): void => {\n const { item, openSubMenu, getSubmenuTarget } = this.props;\n if (getSubmenuTarget) {\n const submenuTarget = getSubmenuTarget();\n if (hasSubmenu(item) && openSubMenu && submenuTarget) {\n openSubMenu(item, submenuTarget);\n }\n }\n };\n\n public dismissSubMenu = (): void => {\n const { item, dismissSubMenu } = this.props;\n if (hasSubmenu(item) && dismissSubMenu) {\n dismissSubMenu();\n }\n };\n\n public dismissMenu = (dismissAll?: boolean): void => {\n const { dismissMenu } = this.props;\n if (dismissMenu) {\n dismissMenu(undefined /* ev */, dismissAll);\n }\n };\n\n private _renderLayout(props: IContextualMenuItemProps, defaultRenders: IContextualMenuItemRenderFunctions) {\n return (\n <>\n {defaultRenders.renderCheckMarkIcon(props)}\n {defaultRenders.renderItemIcon(props)}\n {defaultRenders.renderItemName(props)}\n {defaultRenders.renderSecondaryText(props)}\n {defaultRenders.renderSubMenuIcon(props)}\n \n );\n }\n}\n","import { memoizeFunction } from '../../Utilities';\nimport { mergeStyleSets } from '../../Styling';\nimport type { ITheme } from '../../Styling';\nimport type { IVerticalDividerClassNames } from './VerticalDivider.types';\n\n/**\n * @deprecated use getStyles exported from VerticalDivider.styles.ts\n */\nexport const getDividerClassNames = memoizeFunction(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n (theme: ITheme): IVerticalDividerClassNames => {\n return mergeStyleSets({\n wrapper: {\n display: 'inline-flex',\n height: '100%',\n alignItems: 'center',\n },\n divider: {\n width: 1,\n height: '100%',\n backgroundColor: theme.palette.neutralTertiaryAlt,\n },\n });\n },\n);\n","import {\n concatStyleSets,\n getFocusStyle,\n HighContrastSelector,\n getScreenSelector,\n ScreenWidthMaxMedium,\n IconFontSizes,\n getHighContrastNoAdjustStyle,\n} from '../../Styling';\nimport { memoizeFunction } from '../../Utilities';\nimport type { ITheme } from '../../Styling';\nimport type { IMenuItemStyles } from './ContextualMenu.types';\n\nexport const CONTEXTUAL_MENU_ITEM_HEIGHT = 36;\n\nconst MediumScreenSelector = getScreenSelector(0, ScreenWidthMaxMedium);\n\nexport const getMenuItemStyles = memoizeFunction((theme: ITheme): IMenuItemStyles => {\n const { semanticColors, fonts, palette } = theme;\n const ContextualMenuItemBackgroundHoverColor = semanticColors.menuItemBackgroundHovered;\n const ContextualMenuItemTextHoverColor = semanticColors.menuItemTextHovered;\n const ContextualMenuItemBackgroundSelectedColor = semanticColors.menuItemBackgroundPressed;\n const ContextualMenuItemDividerColor = semanticColors.bodyDivider;\n\n const menuItemStyles: IMenuItemStyles = {\n item: [\n fonts.medium,\n {\n color: semanticColors.bodyText,\n position: 'relative',\n boxSizing: 'border-box',\n },\n ],\n divider: {\n display: 'block',\n height: '1px',\n backgroundColor: ContextualMenuItemDividerColor,\n position: 'relative',\n },\n root: [\n getFocusStyle(theme),\n fonts.medium,\n {\n color: semanticColors.bodyText,\n backgroundColor: 'transparent',\n border: 'none',\n width: '100%',\n height: CONTEXTUAL_MENU_ITEM_HEIGHT,\n lineHeight: CONTEXTUAL_MENU_ITEM_HEIGHT,\n display: 'block',\n cursor: 'pointer',\n padding: '0px 8px 0 4px', // inner elements have a margin of 4px (4 + 4 = 8px as on right side)\n textAlign: 'left',\n },\n ],\n rootDisabled: {\n color: semanticColors.disabledBodyText,\n cursor: 'default',\n pointerEvents: 'none',\n selectors: {\n [HighContrastSelector]: {\n // ensure disabled text looks different than enabled\n color: 'GrayText',\n opacity: 1,\n },\n },\n },\n rootHovered: {\n backgroundColor: ContextualMenuItemBackgroundHoverColor,\n color: ContextualMenuItemTextHoverColor,\n selectors: {\n '.ms-ContextualMenu-icon': {\n color: palette.themeDarkAlt,\n },\n '.ms-ContextualMenu-submenuIcon': {\n color: palette.neutralPrimary,\n },\n },\n },\n rootFocused: {\n backgroundColor: palette.white,\n },\n rootChecked: {\n selectors: {\n '.ms-ContextualMenu-checkmarkIcon': {\n color: palette.neutralPrimary,\n },\n },\n },\n rootPressed: {\n backgroundColor: ContextualMenuItemBackgroundSelectedColor,\n selectors: {\n '.ms-ContextualMenu-icon': {\n color: palette.themeDark,\n },\n '.ms-ContextualMenu-submenuIcon': {\n color: palette.neutralPrimary,\n },\n },\n },\n rootExpanded: {\n backgroundColor: ContextualMenuItemBackgroundSelectedColor,\n color: semanticColors.bodyTextChecked,\n selectors: {\n '.ms-ContextualMenu-submenuIcon': {\n [HighContrastSelector]: {\n // icons inside of anchor tags are not properly inheriting color in high contrast\n color: 'inherit',\n },\n },\n [HighContrastSelector]: {\n // allow change in background/text to be visible\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n linkContent: {\n whiteSpace: 'nowrap',\n height: 'inherit',\n display: 'flex',\n alignItems: 'center',\n maxWidth: '100%',\n },\n anchorLink: {\n padding: '0px 8px 0 4px', // inner elements have a margin of 4px (4 + 4 = 8px as on right side)\n textRendering: 'auto',\n color: 'inherit',\n letterSpacing: 'normal',\n wordSpacing: 'normal',\n textTransform: 'none',\n textIndent: '0px',\n textShadow: 'none',\n textDecoration: 'none',\n boxSizing: 'border-box',\n },\n label: {\n margin: '0 4px',\n verticalAlign: 'middle',\n display: 'inline-block',\n flexGrow: '1',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n },\n secondaryText: {\n color: theme.palette.neutralSecondary,\n paddingLeft: '20px',\n textAlign: 'right',\n },\n icon: {\n display: 'inline-block',\n minHeight: '1px',\n maxHeight: CONTEXTUAL_MENU_ITEM_HEIGHT,\n fontSize: IconFontSizes.medium,\n width: IconFontSizes.medium,\n margin: '0 4px',\n verticalAlign: 'middle',\n flexShrink: '0',\n selectors: {\n [MediumScreenSelector]: {\n fontSize: IconFontSizes.large,\n width: IconFontSizes.large,\n },\n },\n },\n iconColor: {\n color: semanticColors.menuIcon,\n },\n iconDisabled: {\n color: semanticColors.disabledBodyText,\n },\n checkmarkIcon: {\n color: semanticColors.bodySubtext,\n },\n subMenuIcon: {\n height: CONTEXTUAL_MENU_ITEM_HEIGHT,\n lineHeight: CONTEXTUAL_MENU_ITEM_HEIGHT,\n color: palette.neutralSecondary,\n textAlign: 'center',\n display: 'inline-block',\n verticalAlign: 'middle',\n flexShrink: '0',\n fontSize: IconFontSizes.small, // 12px\n selectors: {\n ':hover': {\n color: palette.neutralPrimary,\n },\n ':active': {\n color: palette.neutralPrimary,\n },\n [MediumScreenSelector]: {\n fontSize: IconFontSizes.medium, // 16px\n },\n },\n },\n splitButtonFlexContainer: [\n getFocusStyle(theme),\n {\n display: 'flex',\n height: CONTEXTUAL_MENU_ITEM_HEIGHT,\n flexWrap: 'nowrap',\n justifyContent: 'center',\n alignItems: 'flex-start',\n },\n ],\n };\n\n return concatStyleSets(menuItemStyles);\n});\n","import { getDividerClassNames } from '../Divider/VerticalDivider.classNames';\nimport { getMenuItemStyles } from './ContextualMenu.cnstyles';\nimport {\n mergeStyleSets,\n getGlobalClassNames,\n getScreenSelector,\n ScreenWidthMaxMedium,\n hiddenContentStyle,\n} from '../../Styling';\nimport { memoizeFunction, IsFocusVisibleClassName } from '../../Utilities';\nimport type { ITheme } from '../../Styling';\nimport type { IVerticalDividerClassNames } from '../Divider/VerticalDivider.types';\nimport type { IContextualMenuItemStyles, IContextualMenuItemStyleProps } from './ContextualMenuItem.types';\nimport type { IContextualMenuSubComponentStyles } from './ContextualMenu.types';\n\n/**\n * @deprecated Deprecated in favor of mergeStyles API.\n */\nexport interface IContextualMenuClassNames {\n container?: string;\n root?: string;\n list?: string;\n header?: string;\n title?: string;\n subComponentStyles?: IContextualMenuSubComponentStyles;\n}\n\n/**\n * @deprecated Deprecated in favor of mergeStyles API.\n */\nexport interface IMenuItemClassNames {\n item?: string;\n divider?: string;\n root?: string;\n linkContent?: string;\n icon?: string;\n checkmarkIcon?: string;\n subMenuIcon?: string;\n label?: string;\n secondaryText?: string;\n splitContainer?: string;\n splitPrimary?: string;\n splitMenu?: string;\n linkContentMenu?: string;\n screenReaderText?: string;\n}\n\nconst CONTEXTUAL_SPLIT_MENU_MINWIDTH = '28px';\n\nconst MediumScreenSelector = getScreenSelector(0, ScreenWidthMaxMedium);\n\nexport const getSplitButtonVerticalDividerClassNames = memoizeFunction(\n /* eslint-disable @typescript-eslint/no-deprecated */\n (theme: ITheme): IVerticalDividerClassNames => {\n return mergeStyleSets(getDividerClassNames(theme), {\n /* eslint-enable @typescript-eslint/no-deprecated */\n wrapper: {\n position: 'absolute',\n right: 28, // width of the splitMenu based on the padding plus icon fontSize\n selectors: {\n [MediumScreenSelector]: {\n right: 32, // fontSize of the icon increased from 12px to 16px\n },\n },\n },\n divider: {\n height: 16,\n width: 1,\n },\n });\n },\n);\n\nconst GlobalClassNames = {\n item: 'ms-ContextualMenu-item',\n divider: 'ms-ContextualMenu-divider',\n root: 'ms-ContextualMenu-link',\n isChecked: 'is-checked',\n isExpanded: 'is-expanded',\n isDisabled: 'is-disabled',\n linkContent: 'ms-ContextualMenu-linkContent',\n linkContentMenu: 'ms-ContextualMenu-linkContent',\n icon: 'ms-ContextualMenu-icon',\n iconColor: 'ms-ContextualMenu-iconColor',\n checkmarkIcon: 'ms-ContextualMenu-checkmarkIcon',\n subMenuIcon: 'ms-ContextualMenu-submenuIcon',\n label: 'ms-ContextualMenu-itemText',\n secondaryText: 'ms-ContextualMenu-secondaryText',\n splitMenu: 'ms-ContextualMenu-splitMenu',\n screenReaderText: 'ms-ContextualMenu-screenReaderText',\n};\n\n/**\n * @deprecated Will be removed in \\>= 7.0.\n * This is a package-internal method that has been depended on.\n * It is being kept in this form for backwards compatibility.\n * @internal\n */\n// TODO: Audit perf. impact of and potentially remove memoizeFunction.\n// https://github.com/microsoft/fluentui/issues/5534\nexport const getItemClassNames = memoizeFunction(\n (\n theme: ITheme,\n disabled: boolean,\n expanded: boolean,\n checked: boolean,\n isAnchorLink: boolean,\n knownIcon: boolean,\n itemClassName?: string,\n dividerClassName?: string,\n iconClassName?: string,\n subMenuClassName?: string,\n primaryDisabled?: boolean,\n className?: string,\n ): IContextualMenuItemStyles => {\n const styles = getMenuItemStyles(theme);\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return mergeStyleSets({\n item: [classNames.item, styles.item, itemClassName],\n divider: [classNames.divider, styles.divider, dividerClassName],\n root: [\n classNames.root,\n styles.root,\n checked && [classNames.isChecked, styles.rootChecked],\n isAnchorLink && styles.anchorLink,\n expanded && [classNames.isExpanded, styles.rootExpanded],\n disabled && [classNames.isDisabled, styles.rootDisabled],\n !disabled &&\n !expanded && [\n {\n selectors: {\n ':hover': styles.rootHovered,\n ':active': styles.rootPressed,\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus, .${IsFocusVisibleClassName} &:focus:hover, :host(.${IsFocusVisibleClassName}) &:focus, :host(.${IsFocusVisibleClassName}) &:focus:hover`]:\n styles.rootFocused,\n [`.${IsFocusVisibleClassName} &:hover, :host(.${IsFocusVisibleClassName}) &:hover`]: {\n background: 'inherit;',\n },\n },\n },\n ],\n className,\n ],\n splitPrimary: [\n styles.root,\n {\n width: `calc(100% - ${CONTEXTUAL_SPLIT_MENU_MINWIDTH})`,\n },\n checked && ['is-checked', styles.rootChecked],\n (disabled || primaryDisabled) && ['is-disabled', styles.rootDisabled],\n !(disabled || primaryDisabled) &&\n !checked && [\n {\n selectors: {\n ':hover': styles.rootHovered,\n // when hovering over the splitPrimary also affect the splitMenu\n [`:hover ~ .${classNames.splitMenu}`]: styles.rootHovered,\n ':active': styles.rootPressed,\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus, .${IsFocusVisibleClassName} &:focus:hover, :host(.${IsFocusVisibleClassName}) &:focus, :host(.${IsFocusVisibleClassName}) &:focus:hover`]:\n styles.rootFocused,\n [`.${IsFocusVisibleClassName} &:hover, :host(.${IsFocusVisibleClassName}) &:hover`]: {\n background: 'inherit;',\n },\n },\n },\n ],\n ],\n splitMenu: [\n classNames.splitMenu,\n styles.root,\n {\n flexBasis: '0',\n padding: '0 8px',\n minWidth: CONTEXTUAL_SPLIT_MENU_MINWIDTH,\n },\n expanded && ['is-expanded', styles.rootExpanded],\n disabled && ['is-disabled', styles.rootDisabled],\n !disabled &&\n !expanded && [\n {\n selectors: {\n ':hover': styles.rootHovered,\n ':active': styles.rootPressed,\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus, .${IsFocusVisibleClassName} &:focus:hover, :host(.${IsFocusVisibleClassName}) &:focus, :host(.${IsFocusVisibleClassName}) &:focus:hover`]:\n styles.rootFocused,\n [`.${IsFocusVisibleClassName} &:hover, :host(.${IsFocusVisibleClassName}) &:hover`]: {\n background: 'inherit;',\n },\n },\n },\n ],\n ],\n anchorLink: styles.anchorLink,\n linkContent: [classNames.linkContent, styles.linkContent],\n linkContentMenu: [\n classNames.linkContentMenu,\n styles.linkContent,\n {\n justifyContent: 'center',\n },\n ],\n icon: [\n classNames.icon,\n knownIcon && styles.iconColor,\n styles.icon,\n iconClassName,\n disabled && [classNames.isDisabled, styles.iconDisabled],\n ],\n iconColor: styles.iconColor,\n checkmarkIcon: [classNames.checkmarkIcon, knownIcon && styles.checkmarkIcon, styles.icon, iconClassName],\n subMenuIcon: [\n classNames.subMenuIcon,\n styles.subMenuIcon,\n subMenuClassName,\n expanded && { color: theme.palette.neutralPrimary },\n disabled && [styles.iconDisabled],\n ],\n label: [classNames.label, styles.label],\n secondaryText: [classNames.secondaryText, styles.secondaryText],\n splitContainer: [\n styles.splitButtonFlexContainer,\n !disabled &&\n !checked && [\n {\n selectors: {\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus, .${IsFocusVisibleClassName} &:focus:hover, :host(.${IsFocusVisibleClassName}) &:focus, :host(.${IsFocusVisibleClassName}) &:focus:hover`]:\n styles.rootFocused,\n },\n },\n ],\n ],\n screenReaderText: [\n classNames.screenReaderText,\n styles.screenReaderText,\n hiddenContentStyle,\n { visibility: 'hidden' },\n ],\n });\n },\n);\n\n/**\n * Wrapper function for generating ContextualMenuItem classNames which adheres to\n * the getStyles API, but invokes memoized className generator function with\n * primitive values.\n *\n * @param props - the ContextualMenuItem style props used to generate its styles.\n */\nexport const getItemStyles = (props: IContextualMenuItemStyleProps): IContextualMenuItemStyles => {\n const {\n theme,\n disabled,\n expanded,\n checked,\n isAnchorLink,\n knownIcon,\n itemClassName,\n dividerClassName,\n iconClassName,\n subMenuClassName,\n primaryDisabled,\n className,\n } = props;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return getItemClassNames(\n theme,\n disabled,\n expanded,\n checked,\n isAnchorLink,\n knownIcon,\n itemClassName,\n dividerClassName,\n iconClassName,\n subMenuClassName,\n primaryDisabled,\n className,\n );\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { ContextualMenuItemBase } from './ContextualMenuItem.base';\nimport { getItemStyles } from './ContextualMenu.classNames';\nimport type {\n IContextualMenuItemProps,\n IContextualMenuItemStyleProps,\n IContextualMenuItemStyles,\n} from './ContextualMenuItem.types';\n\n/**\n * ContextualMenuItem description\n */\nexport const ContextualMenuItem: React.FunctionComponent = styled<\n IContextualMenuItemProps,\n IContextualMenuItemStyleProps,\n IContextualMenuItemStyles\n>(ContextualMenuItemBase, getItemStyles, undefined, { scope: 'ContextualMenuItem' });\n","import * as React from 'react';\nimport { initializeComponentRef, shallowCompare } from '../../../Utilities';\nimport type { IContextualMenuItemWrapperProps } from './ContextualMenuItemWrapper.types';\n\nexport class ContextualMenuItemWrapper extends React.Component {\n constructor(props: IContextualMenuItemWrapperProps) {\n super(props);\n initializeComponentRef(this);\n }\n\n public shouldComponentUpdate(newProps: IContextualMenuItemWrapperProps): boolean {\n return !shallowCompare(newProps, this.props);\n }\n\n protected _onItemMouseEnter = (ev: React.MouseEvent): void => {\n const { item, onItemMouseEnter } = this.props;\n if (onItemMouseEnter) {\n onItemMouseEnter(item, ev, ev.currentTarget as HTMLElement);\n }\n };\n\n protected _onItemClick = (ev: React.MouseEvent): void => {\n const { item, onItemClickBase } = this.props;\n if (onItemClickBase) {\n onItemClickBase(item, ev, ev.currentTarget as HTMLElement);\n }\n };\n\n protected _onItemMouseLeave = (ev: React.MouseEvent): void => {\n const { item, onItemMouseLeave } = this.props;\n if (onItemMouseLeave) {\n onItemMouseLeave(item, ev);\n }\n };\n\n protected _onItemKeyDown = (ev: React.KeyboardEvent): void => {\n const { item, onItemKeyDown } = this.props;\n if (onItemKeyDown) {\n onItemKeyDown(item, ev);\n }\n };\n\n protected _onItemMouseMove = (ev: React.MouseEvent): void => {\n const { item, onItemMouseMove } = this.props;\n if (onItemMouseMove) {\n onItemMouseMove(item, ev, ev.currentTarget as HTMLElement);\n }\n };\n\n protected _getSubmenuTarget = (): HTMLElement | undefined => {\n return undefined;\n };\n}\n","import { KTP_SEPARATOR, KTP_PREFIX, DATAKTP_TARGET, DATAKTP_EXECUTE_TARGET, KTP_LAYER_ID } from './KeytipConstants';\nimport { addElementAtIndex } from '../../Utilities';\n\n/**\n * Converts a whole set of KeySequences into one keytip ID, which will be the ID for the last keytip sequence specified\n * keySequences should not include the initial keytip 'start' sequence.\n *\n * @param keySequences - Full path of IKeySequences for one keytip.\n * @returns String to use for the keytip ID.\n */\nexport function sequencesToID(keySequences: string[]): string {\n return keySequences.reduce((prevValue: string, keySequence: string): string => {\n return prevValue + KTP_SEPARATOR + keySequence.split('').join(KTP_SEPARATOR);\n }, KTP_PREFIX);\n}\n\n/**\n * Merges an overflow sequence with a key sequence.\n *\n * @param keySequences - Full sequence for one keytip.\n * @param overflowKeySequences - Full overflow keytip sequence.\n * @returns Sequence that will be used by the keytip when in the overflow.\n */\nexport function mergeOverflows(keySequences: string[], overflowKeySequences: string[]): string[] {\n const overflowSequenceLen = overflowKeySequences.length;\n const overflowSequence = [...overflowKeySequences].pop();\n const newKeySequences = [...keySequences];\n return addElementAtIndex(newKeySequences, overflowSequenceLen - 1, overflowSequence!);\n}\n\n/**\n * Constructs the data-ktp-target attribute selector from a full key sequence.\n *\n * @param keySequences - Full string[] for a Keytip.\n * @returns String selector to use to query for the keytip target.\n */\nexport function ktpTargetFromSequences(keySequences: string[]): string {\n return '[' + DATAKTP_TARGET + '=\"' + sequencesToID(keySequences) + '\"]';\n}\n\n/**\n * Constructs the data-ktp-execute-target attribute selector from a keytip ID.\n *\n * @param keytipId - ID of the Keytip.\n * @returns String selector to use to query for the keytip execute target.\n */\nexport function ktpTargetFromId(keytipId: string): string {\n return '[' + DATAKTP_EXECUTE_TARGET + '=\"' + keytipId + '\"]';\n}\n\n/**\n * Gets the aria-describedby value to put on the component with this keytip.\n *\n * @param keySequences - KeySequences of the keytip.\n * @returns The aria-describedby value to set on the component with this keytip.\n */\nexport function getAriaDescribedBy(keySequences: string[]): string {\n const describedby = ' ' + KTP_LAYER_ID;\n if (!keySequences.length) {\n // Return just the layer ID\n return describedby;\n }\n\n return describedby + ' ' + sequencesToID(keySequences);\n}\n","import * as React from 'react';\nimport { useConst, useIsomorphicLayoutEffect, usePrevious } from '@fluentui/react-hooks';\nimport { mergeAriaAttributeValues } from '../../Utilities';\nimport { KeytipManager, mergeOverflows, sequencesToID, getAriaDescribedBy } from '../../utilities/keytips/index';\nimport type { KeytipDataOptions } from './KeytipData.types';\nimport type { IKeytipProps } from '../../Keytip';\n\nexport interface IKeytipData {\n ariaDescribedBy: string | undefined;\n keytipId: string | undefined;\n}\n\n/**\n * Hook that creates attributes for components which are enabled with Keytip.\n */\nexport function useKeytipData(options: KeytipDataOptions): IKeytipData {\n const uniqueId = React.useRef();\n const keytipProps: IKeytipProps | undefined = options.keytipProps\n ? {\n disabled: options.disabled,\n ...options.keytipProps,\n }\n : undefined;\n\n const keytipManager = useConst(KeytipManager.getInstance());\n const prevOptions = usePrevious(options);\n\n // useLayoutEffect used to strictly emulate didUpdate/didMount behavior\n useIsomorphicLayoutEffect(() => {\n if (\n uniqueId.current &&\n keytipProps &&\n (prevOptions?.keytipProps !== options.keytipProps || prevOptions?.disabled !== options.disabled)\n ) {\n keytipManager.update(keytipProps, uniqueId.current);\n }\n });\n\n useIsomorphicLayoutEffect(() => {\n // Register Keytip in KeytipManager\n if (keytipProps) {\n uniqueId.current = keytipManager.register(keytipProps);\n }\n\n return () => {\n // Unregister Keytip in KeytipManager\n keytipProps && keytipManager.unregister(keytipProps, uniqueId.current!);\n };\n // this is meant to run only at mount, and updates are handled separately\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n let nativeKeytipProps: IKeytipData = {\n ariaDescribedBy: options.ariaDescribedBy,\n keytipId: undefined,\n };\n\n if (keytipProps) {\n nativeKeytipProps = getKeytipData(keytipManager, keytipProps, options.ariaDescribedBy);\n }\n\n return nativeKeytipProps;\n}\n\n/**\n * Gets the aria- and data- attributes to attach to the component\n * @param keytipProps - options for Keytip\n * @param describedByPrepend - ariaDescribedBy value to prepend\n */\nfunction getKeytipData(\n keytipManager: KeytipManager,\n keytipProps: IKeytipProps,\n describedByPrepend?: string,\n): IKeytipData {\n // Add the parent overflow sequence if necessary\n const newKeytipProps = keytipManager.addParentOverflow(keytipProps);\n\n // Construct aria-describedby and data-ktp-id attributes\n const ariaDescribedBy = mergeAriaAttributeValues(\n describedByPrepend,\n getAriaDescribedBy(newKeytipProps.keySequences),\n )!;\n\n let keySequences = [...newKeytipProps.keySequences];\n if (newKeytipProps.overflowSetSequence) {\n keySequences = mergeOverflows(keySequences, newKeytipProps.overflowSetSequence);\n }\n const keytipId = sequencesToID(keySequences);\n\n return {\n ariaDescribedBy,\n keytipId,\n };\n}\n","import * as React from 'react';\nimport { DATAKTP_TARGET, DATAKTP_EXECUTE_TARGET } from '../../utilities/keytips/index';\nimport { useKeytipData } from './useKeytipData';\nimport type { IRenderComponent } from '../../Utilities';\nimport type { IKeytipDataProps } from './KeytipData.types';\n\n/**\n * A small element to help the target component correctly read out its aria-describedby for its Keytip\n * {@docCategory Keytips}\n */\nexport const KeytipData: React.FunctionComponent> = props => {\n const { children, ...keytipDataProps } = props;\n const { keytipId, ariaDescribedBy } = useKeytipData(keytipDataProps);\n\n return children({\n [DATAKTP_TARGET]: keytipId,\n [DATAKTP_EXECUTE_TARGET]: keytipId,\n 'aria-describedby': ariaDescribedBy,\n });\n};\n","import * as React from 'react';\nimport {\n anchorProperties,\n getNativeProps,\n memoizeFunction,\n getId,\n mergeAriaAttributeValues,\n IComponentAs,\n composeComponentAs,\n} from '../../../Utilities';\nimport { ContextualMenuItemWrapper } from './ContextualMenuItemWrapper';\nimport { KeytipData } from '../../../KeytipData';\nimport { isItemDisabled, hasSubmenu } from '../../../utilities/contextualMenu/index';\nimport { ContextualMenuItem } from '../ContextualMenuItem';\nimport type { IKeytipDataProps } from '../../../KeytipData';\nimport type { IKeytipProps } from '../../../Keytip';\nimport { IContextualMenuItemProps } from '../ContextualMenuItem.types';\n\nexport class ContextualMenuAnchor extends ContextualMenuItemWrapper {\n private _anchor = React.createRef();\n private _ariaDescriptionId: string;\n\n private _getMemoizedMenuButtonKeytipProps = memoizeFunction((keytipProps: IKeytipProps) => {\n return {\n ...keytipProps,\n hasMenu: true,\n };\n });\n\n public render() {\n const {\n item,\n classNames,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n expandedMenuItemKey,\n onItemClick,\n openSubMenu,\n dismissSubMenu,\n dismissMenu,\n } = this.props;\n\n let ChildrenRenderer: IComponentAs = ContextualMenuItem;\n\n if (this.props.item.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(this.props.item.contextualMenuItemAs, ChildrenRenderer);\n }\n\n if (this.props.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(this.props.contextualMenuItemAs, ChildrenRenderer);\n }\n\n let anchorRel = item.rel;\n if (item.target && item.target.toLowerCase() === '_blank') {\n anchorRel = anchorRel ? anchorRel : 'nofollow noopener noreferrer'; // Safe default to prevent tabjacking\n }\n\n const itemHasSubmenu = hasSubmenu(item);\n const nativeProps = getNativeProps>(item, anchorProperties);\n const disabled = isItemDisabled(item);\n const { itemProps, ariaDescription } = item;\n\n let { keytipProps } = item;\n if (keytipProps && itemHasSubmenu) {\n keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps);\n }\n\n // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with\n // the description in it to be added to ariaDescribedBy\n if (ariaDescription) {\n this._ariaDescriptionId = getId();\n }\n const ariaDescribedByIds = mergeAriaAttributeValues(\n item.ariaDescribedBy,\n ariaDescription ? this._ariaDescriptionId : undefined,\n nativeProps['aria-describedby'],\n );\n\n const additionalItemProperties = {\n 'aria-describedby': ariaDescribedByIds,\n };\n\n return (\n
    \n \n {(keytipAttributes: IKeytipDataProps): JSX.Element => (\n \n \n {this._renderAriaDescription(ariaDescription, classNames.screenReaderText)}\n \n )}\n \n
    \n );\n }\n\n protected _getSubmenuTarget = (): HTMLElement | undefined => {\n return this._anchor.current ? this._anchor.current : undefined;\n };\n\n protected _onItemClick = (ev: React.MouseEvent): void => {\n const { item, onItemClick } = this.props;\n if (onItemClick) {\n onItemClick(item, ev);\n }\n };\n\n protected _renderAriaDescription = (ariaDescription?: string, className?: string) => {\n // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan\n return ariaDescription ? (\n \n {ariaDescription}\n \n ) : null;\n };\n}\n","import * as React from 'react';\nimport {\n buttonProperties,\n getNativeProps,\n KeyCodes,\n mergeAriaAttributeValues,\n memoizeFunction,\n Async,\n EventGroup,\n getId,\n composeComponentAs,\n IComponentAs,\n} from '../../../Utilities';\nimport { ContextualMenuItem } from '../ContextualMenuItem';\nimport { getSplitButtonVerticalDividerClassNames } from '../ContextualMenu.classNames';\nimport { KeytipData } from '../../../KeytipData';\nimport { getIsChecked, getMenuItemAriaRole, hasSubmenu, isItemDisabled } from '../../../utilities/contextualMenu/index';\nimport { VerticalDivider } from '../../../Divider';\nimport { ContextualMenuItemWrapper } from './ContextualMenuItemWrapper';\nimport type { IContextualMenuItem } from '../ContextualMenu.types';\nimport type { IMenuItemClassNames } from '../ContextualMenu.classNames';\nimport type { IKeytipProps } from '../../../Keytip';\nimport type { IContextualMenuItemWrapperProps } from './ContextualMenuItemWrapper.types';\nimport { IContextualMenuItemProps } from '../ContextualMenuItem.types';\n\nexport interface IContextualMenuSplitButtonState {}\n\nconst TouchIdleDelay = 500; /* ms */\n\nexport class ContextualMenuSplitButton extends ContextualMenuItemWrapper {\n private _splitButton: HTMLDivElement;\n private _lastTouchTimeoutId: number | undefined;\n private _processingTouch: boolean;\n private _ariaDescriptionId: string;\n private _dismissLabelId: string;\n\n private _async: Async;\n private _events: EventGroup;\n\n private _getMemoizedMenuButtonKeytipProps = memoizeFunction((keytipProps: IKeytipProps) => {\n return {\n ...keytipProps,\n hasMenu: true,\n };\n });\n\n constructor(props: IContextualMenuItemWrapperProps) {\n super(props);\n\n this._async = new Async(this);\n this._events = new EventGroup(this);\n this._dismissLabelId = getId();\n }\n\n public componentDidMount() {\n if (this._splitButton && 'onpointerdown' in this._splitButton) {\n this._events.on(this._splitButton, 'pointerdown', this._onPointerDown, true);\n }\n }\n\n public componentWillUnmount(): void {\n this._async.dispose();\n this._events.dispose();\n }\n\n public render(): JSX.Element | null {\n const {\n item,\n classNames,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n onItemMouseLeave,\n expandedMenuItemKey,\n } = this.props;\n\n const itemHasSubmenu = hasSubmenu(item);\n\n let { keytipProps } = item;\n if (keytipProps) {\n keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps);\n }\n\n // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with\n // the description in it to be added to ariaDescribedBy\n const { ariaDescription } = item;\n if (ariaDescription) {\n this._ariaDescriptionId = getId();\n }\n\n const ariaChecked = getIsChecked(item) ?? undefined;\n\n return (\n \n {(keytipAttributes: any): JSX.Element => (\n (this._splitButton = splitButton)}\n role={getMenuItemAriaRole(item)}\n aria-label={item.ariaLabel}\n className={classNames.splitContainer}\n aria-disabled={isItemDisabled(item)}\n aria-expanded={itemHasSubmenu ? item.key === expandedMenuItemKey : undefined}\n aria-haspopup={true}\n aria-describedby={mergeAriaAttributeValues(\n item.ariaDescribedBy,\n ariaDescription ? this._ariaDescriptionId : undefined,\n keytipAttributes['aria-describedby'],\n )}\n aria-checked={ariaChecked}\n aria-posinset={focusableElementIndex + 1}\n aria-setsize={totalItemCount}\n onMouseEnter={this._onItemMouseEnterPrimary}\n onMouseLeave={\n onItemMouseLeave ? onItemMouseLeave.bind(this, { ...item, subMenuProps: null, items: null }) : undefined\n }\n onMouseMove={this._onItemMouseMovePrimary}\n onKeyDown={this._onItemKeyDown}\n onClick={this._executeItemClick}\n onTouchStart={this._onTouchStart}\n tabIndex={0}\n data-is-focusable={true}\n aria-roledescription={item['aria-roledescription']}\n >\n {this._renderSplitPrimaryButton(item, classNames, index, hasCheckmarks!, hasIcons!)}\n {this._renderSplitDivider(item)}\n {this._renderSplitIconButton(item, classNames, index, keytipAttributes)}\n {this._renderAriaDescription(ariaDescription, classNames.screenReaderText)}\n \n )}\n \n );\n }\n\n protected _onItemKeyDown = (ev: React.KeyboardEvent): void => {\n const { item, onItemKeyDown } = this.props;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter) {\n this._executeItemClick(ev);\n ev.preventDefault();\n ev.stopPropagation();\n } else if (onItemKeyDown) {\n onItemKeyDown(item, ev);\n }\n };\n\n protected _getSubmenuTarget = (): HTMLElement | undefined => {\n return this._splitButton;\n };\n\n protected _renderAriaDescription = (ariaDescription?: string, className?: string) => {\n // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan\n return ariaDescription ? (\n \n {ariaDescription}\n \n ) : null;\n };\n\n private _renderSplitPrimaryButton(\n item: IContextualMenuItem,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n classNames: IMenuItemClassNames,\n index: number,\n hasCheckmarks: boolean,\n hasIcons: boolean,\n ) {\n const { contextualMenuItemAs: ChildrenRenderer = ContextualMenuItem, onItemClick } = this.props;\n\n const itemProps: IContextualMenuItem = {\n key: item.key,\n disabled: isItemDisabled(item) || item.primaryDisabled,\n /* eslint-disable @typescript-eslint/no-deprecated */\n name: item.name,\n text: item.text || item.name,\n secondaryText: item.secondaryText,\n /* eslint-enable @typescript-eslint/no-deprecated */\n className: classNames.splitPrimary,\n canCheck: item.canCheck,\n isChecked: item.isChecked,\n checked: item.checked,\n iconProps: item.iconProps,\n id: this._dismissLabelId,\n onClick: item.onClick,\n onRenderIcon: item.onRenderIcon,\n data: item.data,\n 'data-is-focusable': false,\n };\n\n const { itemProps: itemComponentProps } = item;\n\n return (\n \n );\n }\n\n private _renderSplitDivider(item: IContextualMenuItem) {\n const getDividerClassNames =\n item.getSplitButtonVerticalDividerClassNames || getSplitButtonVerticalDividerClassNames;\n return ;\n }\n\n private _renderSplitIconButton(\n item: IContextualMenuItem,\n classNames: IMenuItemClassNames, // eslint-disable-line @typescript-eslint/no-deprecated\n index: number,\n keytipAttributes: any,\n ) {\n const { onItemMouseLeave, onItemMouseDown, openSubMenu, dismissSubMenu, dismissMenu } = this.props;\n\n let ChildrenRenderer: IComponentAs = ContextualMenuItem;\n\n if (this.props.item.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(this.props.item.contextualMenuItemAs, ChildrenRenderer);\n }\n\n if (this.props.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(this.props.contextualMenuItemAs, ChildrenRenderer);\n }\n\n const itemProps: IContextualMenuItem = {\n onClick: this._onIconItemClick,\n disabled: isItemDisabled(item),\n className: classNames.splitMenu,\n subMenuProps: item.subMenuProps,\n submenuIconProps: item.submenuIconProps,\n split: true,\n key: item.key,\n 'aria-labelledby': this._dismissLabelId,\n };\n\n const buttonProps = {\n ...getNativeProps>(itemProps, buttonProperties),\n ...{\n onMouseEnter: this._onItemMouseEnterIcon,\n onMouseLeave: onItemMouseLeave ? onItemMouseLeave.bind(this, item) : undefined,\n onMouseDown: (ev: React.MouseEvent) =>\n onItemMouseDown ? onItemMouseDown(item, ev) : undefined,\n onMouseMove: this._onItemMouseMoveIcon,\n 'data-is-focusable': false,\n 'data-ktp-execute-target': keytipAttributes['data-ktp-execute-target'],\n 'aria-haspopup': true,\n },\n };\n\n const { itemProps: itemComponentProps } = item;\n\n return (\n \n );\n }\n\n private _onItemMouseEnterPrimary = (ev: React.MouseEvent): void => {\n const { item, onItemMouseEnter } = this.props;\n if (onItemMouseEnter) {\n onItemMouseEnter({ ...item, subMenuProps: undefined, items: undefined }, ev, this._splitButton);\n }\n };\n\n private _onItemMouseEnterIcon = (ev: React.MouseEvent): void => {\n const { item, onItemMouseEnter } = this.props;\n if (onItemMouseEnter) {\n onItemMouseEnter(item, ev, this._splitButton);\n }\n };\n\n private _onItemMouseMovePrimary = (ev: React.MouseEvent): void => {\n const { item, onItemMouseMove } = this.props;\n if (onItemMouseMove) {\n onItemMouseMove({ ...item, subMenuProps: undefined, items: undefined }, ev, this._splitButton);\n }\n };\n\n private _onItemMouseMoveIcon = (ev: React.MouseEvent): void => {\n const { item, onItemMouseMove } = this.props;\n if (onItemMouseMove) {\n onItemMouseMove(item, ev, this._splitButton);\n }\n };\n\n private _onIconItemClick = (ev: React.MouseEvent): void => {\n const { item, onItemClickBase } = this.props;\n if (onItemClickBase) {\n onItemClickBase(item, ev, (this._splitButton ? this._splitButton : ev.currentTarget) as HTMLElement);\n }\n };\n\n private _executeItemClick = (ev: React.MouseEvent | React.KeyboardEvent): void => {\n const { item, executeItemClick, onItemClick } = this.props;\n\n if (item.disabled || item.isDisabled) {\n return;\n }\n\n if (this._processingTouch && !item.canCheck && onItemClick) {\n return onItemClick(item, ev);\n }\n\n if (executeItemClick) {\n executeItemClick(item, ev);\n }\n };\n\n private _onTouchStart = (ev: React.TouchEvent): void => {\n if (this._splitButton && !('onpointerdown' in this._splitButton)) {\n this._handleTouchAndPointerEvent(ev);\n }\n };\n\n private _onPointerDown = (ev: PointerEvent): void => {\n if (ev.pointerType === 'touch') {\n this._handleTouchAndPointerEvent(ev);\n ev.preventDefault();\n ev.stopImmediatePropagation();\n }\n };\n\n private _handleTouchAndPointerEvent(ev: React.TouchEvent | PointerEvent) {\n const { onTap } = this.props;\n\n if (onTap) {\n onTap(ev);\n }\n // If we already have an existing timeout from a previous touch/pointer event\n // cancel that timeout so we can set a new one.\n if (this._lastTouchTimeoutId) {\n this._async.clearTimeout(this._lastTouchTimeoutId);\n this._lastTouchTimeoutId = undefined;\n }\n this._processingTouch = true;\n this._lastTouchTimeoutId = this._async.setTimeout(() => {\n this._processingTouch = false;\n this._lastTouchTimeoutId = undefined;\n }, TouchIdleDelay);\n }\n}\n","import * as React from 'react';\nimport {\n buttonProperties,\n getNativeProps,\n memoizeFunction,\n getId,\n mergeAriaAttributeValues,\n IComponentAs,\n composeComponentAs,\n} from '../../../Utilities';\nimport { ContextualMenuItemWrapper } from './ContextualMenuItemWrapper';\nimport { KeytipData } from '../../../KeytipData';\nimport { getIsChecked, isItemDisabled, hasSubmenu, getMenuItemAriaRole } from '../../../utilities/contextualMenu/index';\nimport { ContextualMenuItem } from '../ContextualMenuItem';\nimport type { IKeytipDataProps } from '../../../KeytipData';\nimport type { IKeytipProps } from '../../../Keytip';\nimport { IContextualMenuItemProps } from '../ContextualMenuItem.types';\n\nexport class ContextualMenuButton extends ContextualMenuItemWrapper {\n private _btn = React.createRef();\n private _ariaDescriptionId: string;\n\n private _getMemoizedMenuButtonKeytipProps = memoizeFunction((keytipProps: IKeytipProps) => {\n return {\n ...keytipProps,\n hasMenu: true,\n };\n });\n\n public render() {\n const {\n item,\n classNames,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n contextualMenuItemAs,\n expandedMenuItemKey,\n onItemMouseDown,\n onItemClick,\n openSubMenu,\n dismissSubMenu,\n dismissMenu,\n } = this.props;\n\n let ChildrenRenderer: IComponentAs = ContextualMenuItem;\n\n if (item.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(item.contextualMenuItemAs, ChildrenRenderer);\n }\n\n if (contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(contextualMenuItemAs, ChildrenRenderer);\n }\n\n const isChecked: boolean | null | undefined = getIsChecked(item);\n const canCheck: boolean = isChecked !== null;\n const defaultRole = getMenuItemAriaRole(item);\n const itemHasSubmenu = hasSubmenu(item);\n const { itemProps, ariaLabel, ariaDescription } = item;\n\n const buttonNativeProperties = getNativeProps>(\n item,\n buttonProperties,\n );\n // Do not add the disabled attribute to the button so that it is focusable\n delete buttonNativeProperties.disabled;\n\n const itemRole = item.role || defaultRole;\n\n // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with\n // the description in it to be added to ariaDescribedBy\n if (ariaDescription) {\n this._ariaDescriptionId = getId();\n }\n const ariaDescribedByIds = mergeAriaAttributeValues(\n item.ariaDescribedBy,\n ariaDescription ? this._ariaDescriptionId : undefined,\n buttonNativeProperties['aria-describedby'],\n );\n\n const itemButtonProperties = {\n className: classNames.root,\n onClick: this._onItemClick,\n onKeyDown: itemHasSubmenu ? this._onItemKeyDown : undefined,\n onMouseEnter: this._onItemMouseEnter,\n onMouseLeave: this._onItemMouseLeave,\n onMouseDown: (ev: React.MouseEvent) =>\n onItemMouseDown ? onItemMouseDown(item, ev) : undefined,\n onMouseMove: this._onItemMouseMove,\n href: item.href,\n title: item.title,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedByIds,\n 'aria-haspopup': itemHasSubmenu || undefined,\n 'aria-expanded': itemHasSubmenu ? item.key === expandedMenuItemKey : undefined,\n 'aria-posinset': focusableElementIndex + 1,\n 'aria-setsize': totalItemCount,\n 'aria-disabled': isItemDisabled(item),\n 'aria-checked':\n (itemRole === 'menuitemcheckbox' || itemRole === 'menuitemradio') && canCheck ? !!isChecked : undefined,\n 'aria-selected': itemRole === 'menuitem' && canCheck ? !!isChecked : undefined,\n role: itemRole,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n style: item.style,\n };\n\n let { keytipProps } = item;\n if (keytipProps && itemHasSubmenu) {\n keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps);\n }\n\n return (\n \n {(keytipAttributes: IKeytipDataProps): JSX.Element => (\n \n )}\n \n );\n }\n\n protected _renderAriaDescription = (ariaDescription?: string, className?: string) => {\n // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan\n return ariaDescription ? (\n \n {ariaDescription}\n \n ) : null;\n };\n\n protected _getSubmenuTarget = (): HTMLElement | undefined => {\n return this._btn.current ? this._btn.current : undefined;\n };\n}\n","import * as React from 'react';\nimport type { MinimalMenuProps } from './types';\n\nexport const MenuContext = React.createContext({});\n\nexport const useMenuContext = () => {\n return React.useContext(MenuContext);\n};\n","import * as React from 'react';\nimport { ContextualMenuItemType } from './ContextualMenu.types';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport { FocusZone, FocusZoneDirection, FocusZoneTabbableElements } from '../../FocusZone';\nimport {\n divProperties,\n getNativeProps,\n shallowCompare,\n Async,\n assign,\n classNamesFunction,\n css,\n getFirstFocusable,\n getLastFocusable,\n getRTL,\n KeyCodes,\n shouldWrapFocus,\n isIOS,\n isMac,\n memoizeFunction,\n getPropsWithDefaults,\n getDocument,\n FocusRects,\n IComponentAs,\n composeComponentAs,\n} from '../../Utilities';\nimport { hasSubmenu, getIsChecked, isItemDisabled } from '../../utilities/contextualMenu/index';\nimport { Callout } from '../../Callout';\nimport { ContextualMenuItem } from './ContextualMenuItem';\nimport {\n ContextualMenuSplitButton,\n ContextualMenuButton,\n ContextualMenuAnchor,\n IContextualMenuItemWrapperProps,\n} from './ContextualMenuItemWrapper/index';\nimport { concatStyleSetsWithProps } from '../../Styling';\nimport { getItemStyles } from './ContextualMenu.classNames';\nimport {\n useTarget,\n usePrevious,\n useAsync,\n useWarnings,\n useId,\n Target,\n useIsomorphicLayoutEffect,\n} from '@fluentui/react-hooks';\nimport { useResponsiveMode, ResponsiveMode } from '../../ResponsiveMode';\nimport { MenuContext } from '../../utilities/MenuContext/index';\nimport type {\n IContextualMenuProps,\n IContextualMenuItem,\n IContextualMenuListProps,\n IContextualMenuStyleProps,\n IContextualMenuStyles,\n IContextualMenuItemRenderProps,\n} from './ContextualMenu.types';\nimport type { IFocusZoneProps } from '../../FocusZone';\nimport type { IMenuItemClassNames, IContextualMenuClassNames } from './ContextualMenu.classNames';\nimport type { IRenderFunction, IStyleFunctionOrObject } from '../../Utilities';\nimport type { ICalloutContentStyleProps, ICalloutContentStyles } from '../../Callout';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type {\n IContextualMenuItemProps,\n IContextualMenuItemStyleProps,\n IContextualMenuItemStyles,\n} from './ContextualMenuItem.types';\nimport type { IPopupRestoreFocusParams } from '../../Popup';\n\nconst getClassNames = classNamesFunction();\nconst getContextualMenuItemClassNames = classNamesFunction();\n\n// The default ContextualMenu properties have no items and beak, the default submenu direction is right and top.\nconst DEFAULT_PROPS: Partial = {\n items: [],\n shouldFocusOnMount: true,\n gapSpace: 0,\n directionalHint: DirectionalHint.bottomAutoEdge,\n beakWidth: 16,\n};\n\n/* return number of menu items, excluding headers and dividers */\nfunction getItemCount(items: IContextualMenuItem[]): number {\n let totalItemCount = 0;\n for (const item of items) {\n if (item.itemType !== ContextualMenuItemType.Divider && item.itemType !== ContextualMenuItemType.Header) {\n const itemCount = item.customOnRenderListLength ? item.customOnRenderListLength : 1;\n totalItemCount += itemCount;\n }\n }\n return totalItemCount;\n}\n\nexport function getSubmenuItems(\n item: IContextualMenuItem,\n options?: {\n target?: Target;\n },\n): IContextualMenuItem[] | undefined {\n const target = options?.target;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const items = item.subMenuProps ? item.subMenuProps.items : item.items;\n\n if (items) {\n const overrideItems: typeof items = [];\n\n for (const subItem of items) {\n if (subItem.preferMenuTargetAsEventTarget) {\n // For sub-items which need an overridden target, intercept `onClick`\n const { onClick, ...contextItem } = subItem;\n\n overrideItems.push({\n ...contextItem,\n onClick: getOnClickWithOverrideTarget(onClick, target),\n });\n } else {\n overrideItems.push(subItem);\n }\n }\n\n return overrideItems;\n }\n}\n\n/**\n * Returns true if a list of menu items can contain a checkbox\n */\nexport function canAnyMenuItemsCheck(items: IContextualMenuItem[]): boolean {\n return items.some(item => {\n if (item.canCheck) {\n return true;\n }\n\n // If the item is a section, check if any of the items in the section can check.\n if (item.sectionProps && item.sectionProps.items.some(submenuItem => submenuItem.canCheck === true)) {\n return true;\n }\n\n return false;\n });\n}\n\nconst NavigationIdleDelay = 250; /* ms */\n\nconst COMPONENT_NAME = 'ContextualMenu';\n\nconst _getMenuItemStylesFunction = memoizeFunction(\n (\n ...styles: (IStyleFunctionOrObject | undefined)[]\n ): IStyleFunctionOrObject => {\n return (styleProps: IContextualMenuItemStyleProps) =>\n concatStyleSetsWithProps(styleProps, getItemStyles, ...styles) as IContextualMenuItemStyles;\n },\n);\n\n//#region Custom hooks\nfunction useVisibility(props: IContextualMenuProps, targetWindow: Window | undefined) {\n const { hidden = false, onMenuDismissed, onMenuOpened } = props;\n const previousHidden = usePrevious(hidden);\n\n const onMenuOpenedRef = React.useRef(onMenuOpened);\n const onMenuClosedRef = React.useRef(onMenuDismissed);\n const propsRef = React.useRef(props);\n\n onMenuOpenedRef.current = onMenuOpened;\n onMenuClosedRef.current = onMenuDismissed;\n propsRef.current = props;\n\n React.useEffect(() => {\n // Don't issue dismissed callbacks on initial mount\n if (hidden && previousHidden === false) {\n onMenuClosedRef.current?.(propsRef.current);\n } else if (!hidden && previousHidden !== false) {\n onMenuOpenedRef.current?.(propsRef.current);\n }\n }, [hidden, previousHidden]);\n\n // Issue onDismissedCallback on unmount\n React.useEffect(() => () => onMenuClosedRef.current?.(propsRef.current), []);\n}\n\nfunction useSubMenuState(\n { hidden, items, theme, className, id, target: menuTarget }: IContextualMenuProps,\n dismiss: () => void,\n) {\n const [expandedMenuItemKey, setExpandedMenuItemKey] = React.useState();\n const [submenuTarget, setSubmenuTarget] = React.useState();\n /** True if the menu was expanded by mouse click OR hover (as opposed to by keyboard) */\n const [shouldFocusOnContainer, setShouldFocusOnContainer] = React.useState();\n const subMenuId = useId(COMPONENT_NAME, id);\n\n const closeSubMenu = React.useCallback(() => {\n setShouldFocusOnContainer(undefined);\n setExpandedMenuItemKey(undefined);\n setSubmenuTarget(undefined);\n }, []);\n\n const openSubMenu = React.useCallback(\n ({ key: submenuItemKey }: IContextualMenuItem, target: HTMLElement, focusContainer?: boolean) => {\n if (expandedMenuItemKey === submenuItemKey) {\n return;\n }\n\n target.focus();\n setShouldFocusOnContainer(focusContainer);\n setExpandedMenuItemKey(submenuItemKey);\n setSubmenuTarget(target);\n },\n [expandedMenuItemKey],\n );\n\n React.useEffect(() => {\n if (hidden) {\n closeSubMenu();\n }\n }, [hidden, closeSubMenu]);\n\n const onSubMenuDismiss = useOnSubmenuDismiss(dismiss, closeSubMenu);\n\n const getSubmenuProps = (): IContextualMenuProps | null => {\n const item = findItemByKeyFromItems(expandedMenuItemKey!, items);\n let submenuProps: IContextualMenuProps | null = null;\n\n if (item) {\n submenuProps = {\n items: getSubmenuItems(item, { target: menuTarget })!,\n target: submenuTarget,\n onDismiss: onSubMenuDismiss,\n isSubMenu: true,\n id: subMenuId,\n shouldFocusOnMount: true,\n shouldFocusOnContainer,\n directionalHint: getRTL(theme) ? DirectionalHint.leftTopEdge : DirectionalHint.rightTopEdge,\n className,\n gapSpace: 0,\n isBeakVisible: false,\n };\n\n if (item.subMenuProps) {\n assign(submenuProps, item.subMenuProps);\n }\n\n if (item.preferMenuTargetAsEventTarget) {\n const { onItemClick } = item;\n\n submenuProps.onItemClick = getOnClickWithOverrideTarget(onItemClick, menuTarget);\n }\n }\n return submenuProps;\n };\n\n return [expandedMenuItemKey, openSubMenu, getSubmenuProps, onSubMenuDismiss] as const;\n}\n\nfunction useShouldUpdateFocusOnMouseMove({ delayUpdateFocusOnHover, hidden }: IContextualMenuProps) {\n const shouldUpdateFocusOnMouseEvent = React.useRef(!delayUpdateFocusOnHover);\n const gotMouseMove = React.useRef(false);\n\n React.useEffect(() => {\n shouldUpdateFocusOnMouseEvent.current = !delayUpdateFocusOnHover;\n gotMouseMove.current = hidden ? false : !delayUpdateFocusOnHover && gotMouseMove.current;\n }, [delayUpdateFocusOnHover, hidden]);\n\n const onMenuFocusCapture = React.useCallback(() => {\n if (delayUpdateFocusOnHover) {\n shouldUpdateFocusOnMouseEvent.current = false;\n }\n }, [delayUpdateFocusOnHover]);\n\n return [shouldUpdateFocusOnMouseEvent, gotMouseMove, onMenuFocusCapture] as const;\n}\n\nfunction usePreviousActiveElement(\n { hidden, onRestoreFocus }: IContextualMenuProps,\n targetWindow: Window | undefined,\n hostElement: any,\n) {\n const previousActiveElement = React.useRef();\n\n const tryFocusPreviousActiveElement = React.useCallback(\n (options: IPopupRestoreFocusParams) => {\n if (onRestoreFocus) {\n onRestoreFocus(options);\n } else if (options?.documentContainsFocus) {\n // Make sure that the focus method actually exists\n // In some cases the object might exist but not be a real element.\n // This is primarily for IE 11 and should be removed once IE 11 is no longer in use.\n previousActiveElement.current?.focus?.();\n }\n },\n [onRestoreFocus],\n );\n\n useIsomorphicLayoutEffect(() => {\n if (!hidden) {\n const newElement = targetWindow?.document.activeElement as HTMLElement;\n if (!hostElement.current?.contains(newElement) && newElement.tagName !== 'BODY') {\n previousActiveElement.current = newElement;\n }\n } else if (previousActiveElement.current) {\n tryFocusPreviousActiveElement({\n originalElement: previousActiveElement.current,\n containsFocus: true,\n documentContainsFocus: getDocument()?.hasFocus() || false,\n });\n\n previousActiveElement.current = undefined;\n }\n }, [hidden, targetWindow?.document.activeElement, tryFocusPreviousActiveElement, hostElement]);\n\n return [tryFocusPreviousActiveElement] as const;\n}\n\nfunction useKeyHandlers(\n {\n theme,\n isSubMenu,\n focusZoneProps: { checkForNoWrap, direction: focusZoneDirection = FocusZoneDirection.vertical } = {},\n }: IContextualMenuProps,\n dismiss: (ev?: any, dismissAll?: boolean | undefined) => void | undefined,\n hostElement: React.RefObject,\n openSubMenu: (submenuItemKey: IContextualMenuItem, target: HTMLElement) => void,\n) {\n /** True if the most recent keydown event was for alt (option) or meta (command). */\n const lastKeyDownWasAltOrMeta = React.useRef();\n\n /**\n * Calls `shouldHandleKey` to determine whether the keyboard event should be handled;\n * if so, stops event propagation and dismisses menu(s).\n * @param ev - The keyboard event.\n * @param shouldHandleKey - Returns whether we should handle this keyboard event.\n * @param dismissAllMenus - If true, dismiss all menus. Otherwise, dismiss only the current menu.\n * Only does anything if `shouldHandleKey` returns true.\n * @returns Whether the event was handled.\n */\n const keyHandler = (\n ev: React.KeyboardEvent,\n shouldHandleKey: (ev: React.KeyboardEvent) => boolean,\n dismissAllMenus?: boolean,\n ): boolean => {\n let handled = false;\n\n if (shouldHandleKey(ev)) {\n dismiss(ev, dismissAllMenus);\n ev.preventDefault();\n ev.stopPropagation();\n handled = true;\n }\n\n return handled;\n };\n\n /**\n * Checks if the submenu should be closed\n */\n const shouldCloseSubMenu = (ev: React.KeyboardEvent): boolean => {\n const submenuCloseKey = getRTL(theme) ? KeyCodes.right : KeyCodes.left;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which !== submenuCloseKey || !isSubMenu) {\n return false;\n }\n\n return !!(\n focusZoneDirection === FocusZoneDirection.vertical ||\n (checkForNoWrap && !shouldWrapFocus(ev.target as HTMLElement, 'data-no-horizontal-wrap'))\n );\n };\n\n const shouldHandleKeyDown = (ev: React.KeyboardEvent) => {\n return (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ev.which === KeyCodes.escape ||\n shouldCloseSubMenu(ev) ||\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n (ev.which === KeyCodes.up && (ev.altKey || ev.metaKey))\n );\n };\n\n const onKeyDown = (ev: React.KeyboardEvent): boolean => {\n // Take note if we are processing an alt (option) or meta (command) keydown.\n // See comment in shouldHandleKeyUp for reasoning.\n lastKeyDownWasAltOrMeta.current = isAltOrMeta(ev);\n\n // On Mac, pressing escape dismisses all levels of native context menus\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const dismissAllMenus = ev.which === KeyCodes.escape && (isMac() || isIOS());\n\n return keyHandler(ev, shouldHandleKeyDown, dismissAllMenus);\n };\n\n /**\n * We close the menu on key up only if ALL of the following are true:\n * - Most recent key down was alt or meta (command)\n * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to\n * expand/collapse the menu)\n * - We're not on a Mac (or iOS)\n *\n * This is because on Windows, pressing alt moves focus to the application menu bar or similar,\n * closing any open context menus. There is not a similar behavior on Macs.\n */\n const shouldHandleKeyUp = (ev: React.KeyboardEvent) => {\n const keyPressIsAltOrMetaAlone = lastKeyDownWasAltOrMeta.current && isAltOrMeta(ev);\n lastKeyDownWasAltOrMeta.current = false;\n return !!keyPressIsAltOrMetaAlone && !(isIOS() || isMac());\n };\n\n const onKeyUp = (ev: React.KeyboardEvent): boolean => {\n return keyHandler(ev, shouldHandleKeyUp, true /* dismissAllMenus */);\n };\n\n const onMenuKeyDown = (ev: React.KeyboardEvent) => {\n // Mark as handled if onKeyDown returns true (for handling collapse cases)\n // or if we are attempting to expand a submenu\n const handled = onKeyDown(ev);\n\n if (handled || !hostElement.current) {\n return;\n }\n\n // If we have a modifier key being pressed, we do not want to move focus.\n // Otherwise, handle up and down keys.\n const hasModifier = !!(ev.altKey || ev.metaKey);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isUp = ev.which === KeyCodes.up;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isDown = ev.which === KeyCodes.down;\n if (!hasModifier && (isUp || isDown)) {\n const elementToFocus = isUp\n ? getLastFocusable(hostElement.current, hostElement.current.lastChild as HTMLElement, true)\n : getFirstFocusable(hostElement.current, hostElement.current.firstChild as HTMLElement, true);\n\n if (elementToFocus) {\n elementToFocus.focus();\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n };\n\n const onItemKeyDown = (item: any, ev: React.KeyboardEvent): void => {\n const openKey = getRTL(theme) ? KeyCodes.left : KeyCodes.right;\n\n if (\n !item.disabled &&\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n (ev.which === openKey || ev.which === KeyCodes.enter || (ev.which === KeyCodes.down && (ev.altKey || ev.metaKey)))\n ) {\n openSubMenu(item, ev.currentTarget as HTMLElement);\n ev.preventDefault();\n }\n };\n\n return [onKeyDown, onKeyUp, onMenuKeyDown, onItemKeyDown] as const;\n}\n\nfunction useScrollHandler(asyncTracker: Async) {\n const isScrollIdle = React.useRef(true);\n const scrollIdleTimeoutId = React.useRef();\n\n /**\n * Scroll handler for the callout to make sure the mouse events\n * for updating focus are not interacting during scroll\n */\n const onScroll = (): void => {\n if (!isScrollIdle.current && scrollIdleTimeoutId.current !== undefined) {\n asyncTracker.clearTimeout(scrollIdleTimeoutId.current);\n scrollIdleTimeoutId.current = undefined;\n } else {\n isScrollIdle.current = false;\n }\n\n scrollIdleTimeoutId.current = asyncTracker.setTimeout(() => {\n isScrollIdle.current = true;\n }, NavigationIdleDelay);\n };\n\n return [onScroll, isScrollIdle] as const;\n}\n\nfunction useOnSubmenuDismiss(dismiss: (ev?: any, dismissAll?: boolean) => void, closeSubMenu: () => void) {\n const isMountedRef = React.useRef(false);\n React.useEffect(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n\n /**\n * This function is called ASYNCHRONOUSLY, and so there is a chance it is called\n * after the component is unmounted. The isMountedRef is added to prevent\n * from calling setState() after unmount. Do NOT copy this pattern in synchronous\n * code.\n */\n const onSubMenuDismiss = (ev?: any, dismissAll?: boolean): void => {\n if (dismissAll) {\n dismiss(ev, dismissAll);\n } else if (isMountedRef.current) {\n closeSubMenu();\n }\n };\n\n return onSubMenuDismiss;\n}\n\nfunction useSubmenuEnterTimer({ subMenuHoverDelay = NavigationIdleDelay }: IContextualMenuProps, asyncTracker: Async) {\n const enterTimerRef = React.useRef(undefined);\n\n const cancelSubMenuTimer = () => {\n if (enterTimerRef.current !== undefined) {\n asyncTracker.clearTimeout(enterTimerRef.current);\n enterTimerRef.current = undefined;\n }\n };\n\n const startSubmenuTimer = (onTimerExpired: () => void) => {\n enterTimerRef.current = asyncTracker.setTimeout(() => {\n onTimerExpired();\n cancelSubMenuTimer();\n }, subMenuHoverDelay);\n };\n\n return [cancelSubMenuTimer, startSubmenuTimer, enterTimerRef as React.RefObject] as const;\n}\n\nfunction useMouseHandlers(\n props: IContextualMenuProps,\n isScrollIdle: React.MutableRefObject,\n subMenuEntryTimer: React.RefObject,\n targetWindow: Window | undefined,\n shouldUpdateFocusOnMouseEvent: React.MutableRefObject,\n gotMouseMove: React.MutableRefObject,\n expandedMenuItemKey: string | undefined,\n hostElement: React.RefObject,\n startSubmenuTimer: (onTimerExpired: () => void) => void,\n cancelSubMenuTimer: () => void,\n openSubMenu: (submenuItemKey: IContextualMenuItem, target: HTMLElement, openedByMouseClick?: boolean) => void,\n onSubMenuDismiss: (ev?: any, dismissAll?: boolean) => void,\n dismiss: (ev?: any, dismissAll?: boolean) => void,\n) {\n const { target: menuTarget } = props;\n\n const onItemMouseEnterBase = (item: any, ev: React.MouseEvent, target?: HTMLElement): void => {\n if (shouldUpdateFocusOnMouseEvent.current) {\n gotMouseMove.current = true;\n }\n\n if (shouldIgnoreMouseEvent()) {\n return;\n }\n\n updateFocusOnMouseEvent(item, ev, target);\n };\n\n const onItemMouseMoveBase = (item: any, ev: React.MouseEvent, target: HTMLElement): void => {\n const targetElement = ev.currentTarget as HTMLElement;\n\n // Always do this check to make sure we record a mouseMove if needed (even if we are timed out)\n if (shouldUpdateFocusOnMouseEvent.current) {\n gotMouseMove.current = true;\n } else {\n return;\n }\n\n if (\n !isScrollIdle.current ||\n subMenuEntryTimer.current !== undefined ||\n targetElement === (targetWindow?.document.activeElement as HTMLElement)\n ) {\n return;\n }\n\n updateFocusOnMouseEvent(item, ev, target);\n };\n\n const shouldIgnoreMouseEvent = (): boolean => {\n return !isScrollIdle.current || !gotMouseMove.current;\n };\n\n const onMouseItemLeave = (item: any, ev: React.MouseEvent): void => {\n if (shouldIgnoreMouseEvent()) {\n return;\n }\n\n cancelSubMenuTimer();\n\n if (expandedMenuItemKey !== undefined) {\n return;\n }\n\n /**\n * IE11 focus() method forces parents to scroll to top of element.\n * Edge and IE expose a setActive() function for focusable divs that\n * sets the page focus but does not scroll the parent element.\n */\n if ((hostElement.current as any).setActive) {\n try {\n (hostElement.current as any).setActive();\n } catch (e) {\n /* no-op */\n }\n } else {\n hostElement.current?.focus();\n }\n };\n\n /**\n * Handles updating focus when mouseEnter or mouseMove fire.\n * As part of updating focus, This function will also update\n * the expand/collapse state accordingly.\n */\n const updateFocusOnMouseEvent = (\n item: IContextualMenuItem,\n ev: React.MouseEvent,\n target?: HTMLElement,\n ) => {\n const targetElement = target ? target : (ev.currentTarget as HTMLElement);\n\n if (item.key === expandedMenuItemKey) {\n return;\n }\n\n cancelSubMenuTimer();\n\n // If the menu is not expanded we can update focus without any delay\n if (expandedMenuItemKey === undefined) {\n targetElement.focus();\n }\n\n // Delay updating expanding/dismissing the submenu\n // and only set focus if we have not already done so\n if (hasSubmenu(item)) {\n ev.stopPropagation();\n startSubmenuTimer(() => {\n targetElement.focus();\n openSubMenu(item, targetElement, true);\n });\n } else {\n startSubmenuTimer(() => {\n onSubMenuDismiss(ev);\n targetElement.focus();\n });\n }\n };\n\n const onItemClick = (\n item: IContextualMenuItem,\n ev: React.MouseEvent | React.KeyboardEvent,\n ): void => {\n onItemClickBase(item, ev, ev.currentTarget as HTMLElement);\n };\n\n const onItemClickBase = (\n item: IContextualMenuItem,\n ev: React.MouseEvent | React.KeyboardEvent,\n target: HTMLElement,\n ): void => {\n const items = getSubmenuItems(item, { target: menuTarget });\n\n // Cancel an async menu item hover timeout action from being taken and instead\n // just trigger the click event instead.\n cancelSubMenuTimer();\n\n if (!hasSubmenu(item) && (!items || !items.length)) {\n // This is an item without a menu. Click it.\n executeItemClick(item, ev);\n } else {\n if (item.key !== expandedMenuItemKey) {\n // This has a collapsed sub menu. Expand it.\n\n // focus on the container by default when the menu is opened with a click event\n // this differentiates from a keyboard interaction triggering the click event\n const shouldFocusOnContainer =\n typeof props.shouldFocusOnContainer === 'boolean'\n ? props.shouldFocusOnContainer\n : (ev.nativeEvent as PointerEvent).pointerType === 'mouse';\n openSubMenu(item, target, shouldFocusOnContainer);\n }\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n };\n\n const onAnchorClick = (item: IContextualMenuItem, ev: React.MouseEvent) => {\n executeItemClick(item, ev);\n ev.stopPropagation();\n };\n\n const executeItemClick = (\n item: IContextualMenuItem,\n ev: React.MouseEvent | React.KeyboardEvent,\n ): void => {\n if (item.disabled || item.isDisabled) {\n return;\n }\n\n if (item.preferMenuTargetAsEventTarget) {\n overrideTarget(ev, menuTarget);\n }\n\n let shouldDismiss = false;\n if (item.onClick) {\n shouldDismiss = !!item.onClick(ev, item);\n } else if (props.onItemClick) {\n shouldDismiss = !!props.onItemClick(ev, item);\n }\n\n if (shouldDismiss || !ev.defaultPrevented) {\n dismiss(ev, true);\n }\n };\n\n return [\n onItemMouseEnterBase,\n onItemMouseMoveBase,\n onMouseItemLeave,\n onItemClick,\n onAnchorClick,\n executeItemClick,\n onItemClickBase,\n ] as const;\n}\n//#endregion\n\nexport const ContextualMenuBase: React.FunctionComponent = React.memo(\n React.forwardRef((propsWithoutDefaults, forwardedRef) => {\n const { ref, ...props } = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n const hostElement = React.useRef(null);\n const asyncTracker = useAsync();\n const menuId = useId(COMPONENT_NAME, props.id);\n\n useWarnings({\n name: COMPONENT_NAME,\n props,\n deprecations: {\n getMenuClassNames: 'styles',\n },\n });\n\n const dismiss = (ev?: any, dismissAll?: boolean) => props.onDismiss?.(ev, dismissAll);\n const [targetRef, targetWindow] = useTarget(props.target, hostElement);\n const [tryFocusPreviousActiveElement] = usePreviousActiveElement(props, targetWindow, hostElement);\n const [expandedMenuItemKey, openSubMenu, getSubmenuProps, onSubMenuDismiss] = useSubMenuState(props, dismiss);\n const [shouldUpdateFocusOnMouseEvent, gotMouseMove, onMenuFocusCapture] = useShouldUpdateFocusOnMouseMove(props);\n const [onScroll, isScrollIdle] = useScrollHandler(asyncTracker);\n const [cancelSubMenuTimer, startSubmenuTimer, subMenuEntryTimer] = useSubmenuEnterTimer(props, asyncTracker);\n\n const responsiveMode = useResponsiveMode(hostElement, props.responsiveMode);\n\n useVisibility(props, targetWindow);\n\n const [onKeyDown, onKeyUp, onMenuKeyDown, onItemKeyDown] = useKeyHandlers(props, dismiss, hostElement, openSubMenu);\n const [\n onItemMouseEnterBase,\n onItemMouseMoveBase,\n onMouseItemLeave,\n onItemClick,\n onAnchorClick,\n executeItemClick,\n onItemClickBase,\n ] = useMouseHandlers(\n props,\n isScrollIdle,\n subMenuEntryTimer,\n targetWindow,\n shouldUpdateFocusOnMouseEvent,\n gotMouseMove,\n expandedMenuItemKey,\n hostElement,\n startSubmenuTimer,\n cancelSubMenuTimer,\n openSubMenu,\n onSubMenuDismiss,\n dismiss,\n );\n\n //#region Render helpers\n\n const onDefaultRenderMenuList = (\n menuListProps: IContextualMenuListProps,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuClassNames: IProcessedStyleSet | IContextualMenuClassNames,\n defaultRender?: IRenderFunction,\n ): JSX.Element => {\n let indexCorrection = 0;\n const { items, totalItemCount, hasCheckmarks, hasIcons } = menuListProps;\n\n return (\n
      \n {items.map((item, index) => {\n const menuItem = renderMenuItem(\n item,\n index,\n indexCorrection,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n menuClassNames,\n );\n if (item.itemType !== ContextualMenuItemType.Divider && item.itemType !== ContextualMenuItemType.Header) {\n const indexIncrease = item.customOnRenderListLength ? item.customOnRenderListLength : 1;\n indexCorrection += indexIncrease;\n }\n return menuItem;\n })}\n
    \n );\n };\n\n const renderFocusZone = (children: JSX.Element | null, adjustedFocusZoneProps: IFocusZoneProps): JSX.Element => {\n const { focusZoneAs: ChildrenRenderer = FocusZone } = props;\n return {children};\n };\n\n /**\n * !!!IMPORTANT!!! Avoid mutating `item: IContextualMenuItem` argument. It will\n * cause the menu items to always re-render because the component update is based on shallow comparison.\n */\n const renderMenuItem = (\n item: IContextualMenuItem,\n index: number,\n focusableElementIndex: number,\n totalItemCount: number,\n hasCheckmarks: boolean,\n hasIcons: boolean,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuClassNames: IProcessedStyleSet | IContextualMenuClassNames,\n ): JSX.Element => {\n const renderedItems: React.ReactNode[] = [];\n const iconProps = item.iconProps || { iconName: 'None' };\n const {\n getItemClassNames, // eslint-disable-line @typescript-eslint/no-deprecated\n itemProps,\n } = item;\n const styles = itemProps ? itemProps.styles : undefined;\n\n // We only send a dividerClassName when the item to be rendered is a divider.\n // For all other cases, the default divider style is used.\n const dividerClassName = item.itemType === ContextualMenuItemType.Divider ? item.className : undefined;\n const subMenuIconClassName = item.submenuIconProps ? item.submenuIconProps.className : '';\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n let itemClassNames: IMenuItemClassNames;\n\n // IContextualMenuItem#getItemClassNames for backwards compatibility\n // otherwise uses mergeStyles for class names.\n if (getItemClassNames) {\n itemClassNames = getItemClassNames(\n props.theme!,\n isItemDisabled(item),\n expandedMenuItemKey === item.key,\n !!getIsChecked(item),\n !!item.href,\n iconProps.iconName !== 'None',\n item.className,\n dividerClassName,\n iconProps.className,\n subMenuIconClassName,\n item.primaryDisabled,\n );\n } else {\n const itemStyleProps: IContextualMenuItemStyleProps = {\n theme: props.theme!,\n disabled: isItemDisabled(item),\n expanded: expandedMenuItemKey === item.key,\n checked: !!getIsChecked(item),\n isAnchorLink: !!item.href,\n knownIcon: iconProps.iconName !== 'None',\n itemClassName: item.className,\n dividerClassName,\n iconClassName: iconProps.className,\n subMenuClassName: subMenuIconClassName,\n primaryDisabled: item.primaryDisabled,\n };\n\n // We need to generate default styles then override if styles are provided\n // since the ContextualMenu currently handles item classNames.\n itemClassNames = getContextualMenuItemClassNames(\n _getMenuItemStylesFunction(menuClassNames.subComponentStyles?.menuItem, styles),\n itemStyleProps,\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (item.text === '-' || item.name === '-') {\n item.itemType = ContextualMenuItemType.Divider;\n }\n switch (item.itemType) {\n case ContextualMenuItemType.Divider:\n renderedItems.push(renderSeparator(index, itemClassNames));\n break;\n case ContextualMenuItemType.Header:\n renderedItems.push(renderSeparator(index, itemClassNames));\n const headerItem = renderHeaderMenuItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons);\n renderedItems.push(renderListItem(headerItem, item.key || index, itemClassNames, item.title));\n break;\n case ContextualMenuItemType.Section:\n renderedItems.push(renderSectionItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons));\n break;\n default:\n const defaultRenderNormalItem = () =>\n renderNormalItem(\n item,\n itemClassNames,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n ) as JSX.Element;\n\n const menuItem = props.onRenderContextualMenuItem\n ? props.onRenderContextualMenuItem(item, defaultRenderNormalItem)\n : defaultRenderNormalItem();\n renderedItems.push(renderListItem(menuItem, item.key || index, itemClassNames, item.title));\n break;\n }\n\n // Since multiple nodes *could* be rendered, wrap them all in a fragment with this item's key.\n // This ensures the reconciler handles multi-item output per-node correctly and does not re-mount content.\n return {renderedItems};\n };\n\n const defaultMenuItemRenderer = (\n item: IContextualMenuItemRenderProps,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuClassNames: IProcessedStyleSet | IContextualMenuClassNames,\n ): React.ReactNode => {\n const { index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons } = item;\n return renderMenuItem(\n item,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n menuClassNames,\n );\n };\n\n const renderSectionItem = (\n sectionItem: IContextualMenuItem,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n itemClassNames: IMenuItemClassNames,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuClassNames: IProcessedStyleSet | IContextualMenuClassNames,\n index: number,\n hasCheckmarks: boolean,\n hasIcons: boolean,\n ) => {\n const sectionProps = sectionItem.sectionProps;\n if (!sectionProps) {\n return;\n }\n\n let headerItem;\n let groupProps;\n if (sectionProps.title) {\n let headerContextualMenuItem: IContextualMenuItem | undefined = undefined;\n let ariaLabelledby = '';\n if (typeof sectionProps.title === 'string') {\n // Since title is a user-facing string, it needs to be stripped\n // of whitespace in order to build a valid element ID\n const id = menuId + sectionProps.title.replace(/\\s/g, '');\n headerContextualMenuItem = {\n key: `section-${sectionProps.title}-title`,\n itemType: ContextualMenuItemType.Header,\n text: sectionProps.title,\n id,\n };\n ariaLabelledby = id;\n } else {\n const id = sectionProps.title.id || menuId + sectionProps.title.key.replace(/\\s/g, '');\n headerContextualMenuItem = { ...sectionProps.title, id };\n ariaLabelledby = id;\n }\n\n if (headerContextualMenuItem) {\n groupProps = {\n role: 'group',\n 'aria-labelledby': ariaLabelledby,\n };\n headerItem = renderHeaderMenuItem(\n headerContextualMenuItem,\n itemClassNames,\n menuClassNames,\n index,\n hasCheckmarks,\n hasIcons,\n );\n }\n }\n\n if (sectionProps.items && sectionProps.items.length > 0) {\n let correctedIndex = 0;\n return (\n
  • \n
    \n
      \n {sectionProps.topDivider && renderSeparator(index, itemClassNames, true, true)}\n {headerItem && renderListItem(headerItem, sectionItem.key || index, itemClassNames, sectionItem.title)}\n {sectionProps.items.map((contextualMenuItem, itemsIndex) => {\n const menuItem = renderMenuItem(\n contextualMenuItem,\n itemsIndex,\n correctedIndex,\n getItemCount(sectionProps.items),\n hasCheckmarks,\n hasIcons,\n menuClassNames,\n );\n if (\n contextualMenuItem.itemType !== ContextualMenuItemType.Divider &&\n contextualMenuItem.itemType !== ContextualMenuItemType.Header\n ) {\n const indexIncrease = contextualMenuItem.customOnRenderListLength\n ? contextualMenuItem.customOnRenderListLength\n : 1;\n correctedIndex += indexIncrease;\n }\n return menuItem;\n })}\n {sectionProps.bottomDivider && renderSeparator(index, itemClassNames, false, true)}\n
    \n
    \n
  • \n );\n }\n };\n\n const renderListItem = (\n content: React.ReactNode,\n key: string | number,\n classNames: IMenuItemClassNames, // eslint-disable-line @typescript-eslint/no-deprecated\n title?: string,\n ) => {\n return (\n
  • \n {content}\n
  • \n );\n };\n\n const renderSeparator = (\n index: number,\n classNames: IMenuItemClassNames, // eslint-disable-line @typescript-eslint/no-deprecated\n top?: boolean,\n fromSection?: boolean,\n ): React.ReactNode => {\n if (fromSection || index > 0) {\n return (\n \n );\n }\n return null;\n };\n\n const renderNormalItem = (\n item: IContextualMenuItem,\n classNames: IMenuItemClassNames, // eslint-disable-line @typescript-eslint/no-deprecated\n index: number,\n focusableElementIndex: number,\n totalItemCount: number,\n hasCheckmarks: boolean,\n hasIcons: boolean,\n ): React.ReactNode => {\n if (item.onRender) {\n return item.onRender(\n { 'aria-posinset': focusableElementIndex + 1, 'aria-setsize': totalItemCount, ...item },\n dismiss,\n );\n }\n\n const { contextualMenuItemAs } = props;\n\n const commonProps = {\n item,\n classNames,\n index,\n focusableElementIndex,\n totalItemCount,\n hasCheckmarks,\n hasIcons,\n contextualMenuItemAs,\n onItemMouseEnter: onItemMouseEnterBase,\n onItemMouseLeave: onMouseItemLeave,\n onItemMouseMove: onItemMouseMoveBase,\n onItemMouseDown,\n executeItemClick,\n onItemKeyDown,\n expandedMenuItemKey,\n openSubMenu,\n dismissSubMenu: onSubMenuDismiss,\n dismissMenu: dismiss,\n } as const;\n\n if (item.href) {\n let ContextualMenuAnchorAs: IComponentAs = ContextualMenuAnchor;\n\n if (item.contextualMenuItemWrapperAs) {\n ContextualMenuAnchorAs = composeComponentAs(item.contextualMenuItemWrapperAs, ContextualMenuAnchorAs);\n }\n\n return ;\n }\n\n if (item.split && hasSubmenu(item)) {\n let ContextualMenuSplitButtonAs: IComponentAs = ContextualMenuSplitButton;\n\n if (item.contextualMenuItemWrapperAs) {\n ContextualMenuSplitButtonAs = composeComponentAs(\n item.contextualMenuItemWrapperAs,\n ContextualMenuSplitButtonAs,\n );\n }\n\n return (\n \n );\n }\n\n let ContextualMenuButtonAs: IComponentAs = ContextualMenuButton;\n\n if (item.contextualMenuItemWrapperAs) {\n ContextualMenuButtonAs = composeComponentAs(item.contextualMenuItemWrapperAs, ContextualMenuButtonAs);\n }\n\n return ;\n };\n\n const renderHeaderMenuItem = (\n item: IContextualMenuItem,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n itemClassNames: IMenuItemClassNames,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n menuClassNames: IProcessedStyleSet | IContextualMenuClassNames,\n index: number,\n hasCheckmarks: boolean,\n hasIcons: boolean,\n ): React.ReactNode => {\n let ChildrenRenderer: IComponentAs = ContextualMenuItem;\n\n if (item.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(item.contextualMenuItemAs, ChildrenRenderer);\n }\n\n if (props.contextualMenuItemAs) {\n ChildrenRenderer = composeComponentAs(props.contextualMenuItemAs, ChildrenRenderer);\n }\n\n const { itemProps, id } = item;\n const divHtmlProperties =\n itemProps && getNativeProps>(itemProps, divProperties);\n return (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n
    \n \n
    \n );\n };\n //#endregion\n\n //#region Main render\n let { isBeakVisible } = props;\n\n const {\n items,\n labelElementId,\n id,\n className,\n beakWidth,\n directionalHint,\n directionalHintForRTL,\n alignTargetEdge,\n gapSpace,\n coverTarget,\n ariaLabel,\n doNotLayer,\n target,\n bounds,\n useTargetWidth,\n useTargetAsMinWidth,\n directionalHintFixed,\n shouldFocusOnMount,\n shouldFocusOnContainer,\n title,\n styles,\n theme,\n calloutProps,\n onRenderSubMenu = onDefaultRenderSubMenu,\n onRenderMenuList = (\n menuListProps: IContextualMenuListProps,\n defaultRender?: IRenderFunction,\n ) => onDefaultRenderMenuList(menuListProps, classNames, defaultRender),\n focusZoneProps,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n getMenuClassNames,\n } = props;\n\n const classNames = getMenuClassNames\n ? getMenuClassNames(theme!, className)\n : getClassNames(styles, {\n theme: theme!,\n className,\n });\n\n const hasIcons = itemsHaveIcons(items);\n\n function itemsHaveIcons(contextualMenuItems: IContextualMenuItem[]): boolean {\n for (const item of contextualMenuItems) {\n if (item.iconProps) {\n return true;\n }\n\n if (\n item.itemType === ContextualMenuItemType.Section &&\n item.sectionProps &&\n itemsHaveIcons(item.sectionProps.items)\n ) {\n return true;\n }\n }\n\n return false;\n }\n\n const adjustedFocusZoneProps = {\n direction: FocusZoneDirection.vertical,\n handleTabKey: FocusZoneTabbableElements.all,\n isCircularNavigation: true,\n 'data-tabster': '{\"uncontrolled\": {}, \"focusable\": { \"excludeFromMover\": true }}',\n ...focusZoneProps,\n className: css(classNames.root, props.focusZoneProps?.className),\n };\n\n const hasCheckmarks = canAnyMenuItemsCheck(items);\n const submenuProps = expandedMenuItemKey && props.hidden !== true ? getSubmenuProps() : null;\n\n isBeakVisible = isBeakVisible === undefined ? responsiveMode! <= ResponsiveMode.medium : isBeakVisible;\n /**\n * When useTargetWidth is true, get the width of the target element and apply it for the context menu container\n */\n let contextMenuStyle: React.CSSProperties;\n const targetAsHtmlElement = targetRef.current as HTMLElement;\n if ((useTargetWidth || useTargetAsMinWidth) && targetAsHtmlElement && targetAsHtmlElement.offsetWidth) {\n const targetBoundingRect = targetAsHtmlElement.getBoundingClientRect();\n const targetWidth = targetBoundingRect.width - 2; /* Accounts for 1px border */\n\n if (useTargetWidth) {\n contextMenuStyle = {\n width: targetWidth,\n };\n } else if (useTargetAsMinWidth) {\n contextMenuStyle = {\n minWidth: targetWidth,\n };\n }\n }\n\n // The menu should only return if items were provided, if no items were provided then it should not appear.\n if (items && items.length > 0) {\n const totalItemCount = getItemCount(items);\n\n const calloutStyles = classNames.subComponentStyles\n ? (classNames.subComponentStyles.callout as IStyleFunctionOrObject<\n ICalloutContentStyleProps,\n ICalloutContentStyles\n >)\n : undefined;\n\n return (\n \n {menuContext => (\n \n );\n } else {\n return null;\n }\n //#endregion\n }),\n (prevProps, newProps) => {\n if (!newProps.shouldUpdateWhenHidden && prevProps.hidden && newProps.hidden) {\n // Do not update when hidden.\n return true;\n }\n\n return shallowCompare(prevProps, newProps);\n },\n);\nContextualMenuBase.displayName = 'ContextualMenuBase';\n\n/**\n * Returns true if the key for the event is alt (Mac option) or meta (Mac command).\n */\nfunction isAltOrMeta(ev: React.KeyboardEvent): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return ev.which === KeyCodes.alt || ev.key === 'Meta';\n}\n\nfunction onItemMouseDown(item: IContextualMenuItem, ev: React.MouseEvent): void {\n item.onMouseDown?.(item, ev);\n}\n\nfunction onDefaultRenderSubMenu(\n subMenuProps: IContextualMenuProps,\n defaultRender?: IRenderFunction,\n): JSX.Element {\n throw Error(\n 'ContextualMenuBase: onRenderSubMenu callback is null or undefined. ' +\n 'Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.',\n );\n}\n\n/**\n * Returns the item that matches a given key if any.\n * @param key - The key of the item to match\n * @param items - The items to look for the key\n */\nfunction findItemByKeyFromItems(key: string, items: IContextualMenuItem[]): IContextualMenuItem | undefined {\n for (const item of items) {\n if (item.itemType === ContextualMenuItemType.Section && item.sectionProps) {\n const match = findItemByKeyFromItems(key, item.sectionProps.items);\n if (match) {\n return match;\n }\n } else if (item.key && item.key === key) {\n return item;\n }\n }\n}\n\nfunction getOnClickWithOverrideTarget(\n onClick:\n | ((\n ev?: React.MouseEvent | React.KeyboardEvent | undefined,\n item?: IContextualMenuItem | undefined,\n ) => boolean | void)\n | undefined,\n target: Target | undefined,\n) {\n return onClick\n ? (\n ev?: React.MouseEvent | React.KeyboardEvent | undefined,\n item?: IContextualMenuItem | undefined,\n ) => {\n overrideTarget(ev, target);\n\n return onClick(ev, item);\n }\n : onClick;\n}\n\nfunction overrideTarget(\n ev?: React.MouseEvent | React.KeyboardEvent | undefined,\n target?: Target,\n): void {\n if (ev && target) {\n ev.persist();\n\n if (target instanceof Event) {\n ev.target = target.target as HTMLElement;\n } else if (target instanceof Element) {\n ev.target = target;\n }\n }\n}\n","import { getGlobalClassNames, FontWeights } from '../../Styling';\nimport { CONTEXTUAL_MENU_ITEM_HEIGHT } from './ContextualMenu.cnstyles';\nimport type { IContextualMenuStyleProps, IContextualMenuStyles } from './ContextualMenu.types';\n\nconst GlobalClassNames = {\n root: 'ms-ContextualMenu',\n container: 'ms-ContextualMenu-container',\n list: 'ms-ContextualMenu-list',\n header: 'ms-ContextualMenu-header',\n title: 'ms-ContextualMenu-title',\n isopen: 'is-open',\n};\n\nexport const getStyles = (props: IContextualMenuStyleProps): IContextualMenuStyles => {\n const { className, theme } = props;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const { fonts, semanticColors, effects } = theme;\n\n return {\n root: [\n theme.fonts.medium,\n classNames.root,\n classNames.isopen,\n {\n backgroundColor: semanticColors.menuBackground,\n minWidth: '180px',\n },\n className,\n ],\n container: [\n classNames.container,\n {\n selectors: {\n ':focus': { outline: 0 },\n },\n },\n ],\n list: [\n classNames.list,\n classNames.isopen,\n {\n listStyleType: 'none',\n margin: '0',\n padding: '0',\n },\n ],\n header: [\n classNames.header,\n fonts.small,\n {\n fontWeight: FontWeights.semibold,\n color: semanticColors.menuHeader,\n background: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n height: CONTEXTUAL_MENU_ITEM_HEIGHT,\n lineHeight: CONTEXTUAL_MENU_ITEM_HEIGHT,\n cursor: 'default',\n padding: '0px 6px',\n userSelect: 'none',\n textAlign: 'left',\n },\n ],\n title: [\n classNames.title,\n {\n fontSize: fonts.mediumPlus.fontSize,\n paddingRight: '14px',\n paddingLeft: '14px',\n paddingBottom: '5px',\n paddingTop: '5px',\n backgroundColor: semanticColors.menuItemBackgroundPressed,\n },\n ],\n subComponentStyles: {\n callout: {\n root: {\n boxShadow: effects.elevation8,\n },\n },\n menuItem: {},\n },\n };\n};\n","import * as React from 'react';\nimport { styled, composeRenderFunction } from '../../Utilities';\nimport { ContextualMenuBase } from './ContextualMenu.base';\nimport { getStyles } from './ContextualMenu.styles';\nimport type { IContextualMenuProps, IContextualMenuStyleProps, IContextualMenuStyles } from './ContextualMenu.types';\n\nfunction onRenderSubMenu(subMenuProps: IContextualMenuProps) {\n return ;\n}\n\n// This is to prevent cyclic import with ContextualMenu.base.tsx.\nconst LocalContextualMenu: React.FunctionComponent = styled<\n IContextualMenuProps,\n IContextualMenuStyleProps,\n IContextualMenuStyles\n>(\n ContextualMenuBase,\n getStyles,\n (props: IContextualMenuProps) => ({\n onRenderSubMenu: props.onRenderSubMenu\n ? composeRenderFunction(props.onRenderSubMenu, onRenderSubMenu)\n : onRenderSubMenu,\n }),\n { scope: 'ContextualMenu' },\n);\n\n/**\n * ContextualMenu description\n */\nexport const ContextualMenu: React.FunctionComponent = LocalContextualMenu;\nContextualMenu.displayName = 'ContextualMenu';\n","import { memoizeFunction } from '../../../Utilities';\nimport { mergeStyles } from '../../../Styling';\nimport type { IButtonStyles } from '../Button.types';\n\nexport interface ISplitButtonClassNames {\n root?: string;\n icon?: string;\n splitButtonContainer?: string;\n flexContainer?: string;\n divider?: string;\n}\n\nexport const SplitButtonGlobalClassNames = {\n msSplitButtonDivider: 'ms-SplitButton-divider',\n};\n\nexport const getSplitButtonClassNames = memoizeFunction(\n (\n styles: IButtonStyles,\n disabled: boolean,\n expanded: boolean,\n checked: boolean,\n primaryDisabled?: boolean,\n ): ISplitButtonClassNames => {\n return {\n root: mergeStyles(\n styles.splitButtonMenuButton,\n expanded && [styles.splitButtonMenuButtonExpanded],\n disabled && [styles.splitButtonMenuButtonDisabled],\n checked && !disabled && [styles.splitButtonMenuButtonChecked],\n primaryDisabled &&\n !disabled && [\n {\n ':focus': styles.splitButtonMenuFocused,\n },\n ],\n ),\n\n splitButtonContainer: mergeStyles(\n styles.splitButtonContainer,\n !disabled &&\n checked && [\n styles.splitButtonContainerChecked,\n {\n ':hover': styles.splitButtonContainerCheckedHovered,\n },\n ],\n !disabled &&\n !checked && [\n {\n ':hover': styles.splitButtonContainerHovered,\n ':focus': styles.splitButtonContainerFocused,\n },\n ],\n disabled && styles.splitButtonContainerDisabled,\n ),\n\n icon: mergeStyles(\n styles.splitButtonMenuIcon,\n disabled && styles.splitButtonMenuIconDisabled,\n !disabled && primaryDisabled && styles.splitButtonMenuIcon,\n ),\n\n flexContainer: mergeStyles(styles.splitButtonFlexContainer),\n\n divider: mergeStyles(\n SplitButtonGlobalClassNames.msSplitButtonDivider,\n styles.splitButtonDivider,\n (primaryDisabled || disabled) && styles.splitButtonDividerDisabled,\n ),\n };\n },\n);\n","import * as React from 'react';\nimport {\n anchorProperties,\n assign,\n buttonProperties,\n createMergedRef,\n css,\n getId,\n getNativeProps,\n initializeComponentRef,\n memoizeFunction,\n mergeAriaAttributeValues,\n nullRender,\n portalContainsElement,\n setFocusVisibility,\n warnConditionallyRequiredProps,\n warnDeprecations,\n Async,\n EventGroup,\n FocusRects,\n FocusRectsContext,\n KeyCodes,\n} from '../../Utilities';\nimport { Icon, FontIcon, ImageIcon } from '../../Icon';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport { ContextualMenu } from '../../ContextualMenu';\nimport { getBaseButtonClassNames } from './BaseButton.classNames';\nimport { getSplitButtonClassNames as getBaseSplitButtonClassNames } from './SplitButton/SplitButton.classNames';\nimport { KeytipData } from '../../KeytipData';\nimport type { IFocusRectsContext, IRenderFunction } from '../../Utilities';\nimport type { IContextualMenuProps } from '../../ContextualMenu';\nimport type { IButtonProps, IButton } from './Button.types';\nimport type { IButtonClassNames } from './BaseButton.classNames';\nimport type { ISplitButtonClassNames } from './SplitButton/SplitButton.classNames';\nimport type { IKeytipProps } from '../../Keytip';\nimport { composeComponentAs } from '../../Utilities';\n\n/**\n * {@docCategory Button}\n */\nexport interface IBaseButtonProps extends IButtonProps {\n baseClassName?: string;\n variantClassName?: string;\n}\n\n/**\n * {@docCategory Button}\n */\nexport interface IBaseButtonState {\n menuHidden: boolean;\n}\n\nconst TouchIdleDelay = 500; /* ms */\nconst COMPONENT_NAME = 'BaseButton';\n\n/**\n * {@docCategory Button}\n */\nexport class BaseButton extends React.Component implements IButton {\n private get _isSplitButton(): boolean {\n return !!this.props.menuProps && !!this.props.onClick && this.props.split === true;\n }\n\n public static defaultProps: Partial = {\n baseClassName: 'ms-Button',\n styles: {},\n split: false,\n };\n\n // needed to access registeredProviders when manually setting focus visibility\n public static contextType = FocusRectsContext;\n public context: IFocusRectsContext;\n\n private _async: Async;\n private _events: EventGroup;\n private _buttonElement = React.createRef();\n private _splitButtonContainer = React.createRef();\n private _mergedRef = createMergedRef();\n private _labelId: string;\n private _descriptionId: string;\n private _ariaDescriptionId: string;\n private _classNames: IButtonClassNames;\n private _processingTouch: boolean;\n private _lastTouchTimeoutId: number | undefined;\n private _renderedVisibleMenu: boolean = false;\n\n // These fields will be used to set corresponding props on the menu.\n private _menuShouldFocusOnContainer: boolean | undefined;\n private _menuShouldFocusOnMount: boolean | undefined;\n\n private _getMemoizedMenuButtonKeytipProps = memoizeFunction((keytipProps: IKeytipProps) => {\n return {\n ...keytipProps,\n hasMenu: true,\n };\n });\n\n constructor(props: IBaseButtonProps) {\n super(props);\n\n initializeComponentRef(this);\n this._async = new Async(this);\n this._events = new EventGroup(this);\n\n warnConditionallyRequiredProps(COMPONENT_NAME, props, ['menuProps', 'onClick'], 'split', this.props.split!);\n\n warnDeprecations(COMPONENT_NAME, props, {\n rootProps: undefined,\n description: 'secondaryText',\n toggled: 'checked',\n });\n this._labelId = getId();\n this._descriptionId = getId();\n this._ariaDescriptionId = getId();\n\n this.state = {\n menuHidden: true,\n };\n }\n\n public render(): JSX.Element {\n const {\n ariaDescription,\n ariaLabel,\n ariaHidden,\n className,\n disabled,\n allowDisabledFocus,\n primaryDisabled,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n secondaryText = this.props.description,\n href,\n iconProps,\n menuIconProps,\n styles,\n checked,\n variantClassName,\n theme,\n toggle,\n getClassNames,\n role,\n } = this.props;\n\n const { menuHidden } = this.state;\n\n // Button is disabled if the whole button (in case of splitButton is disabled) or if the primary action is disabled\n const isPrimaryButtonDisabled = disabled || primaryDisabled;\n\n this._classNames = getClassNames\n ? getClassNames(\n theme!,\n className!,\n variantClassName!,\n iconProps && iconProps.className,\n menuIconProps && menuIconProps.className,\n isPrimaryButtonDisabled!,\n checked!,\n !menuHidden,\n !!this.props.menuProps,\n this.props.split,\n !!allowDisabledFocus,\n )\n : getBaseButtonClassNames(\n theme!,\n styles!,\n className!,\n variantClassName!,\n iconProps && iconProps.className,\n menuIconProps && menuIconProps.className,\n isPrimaryButtonDisabled!,\n !!this.props.menuProps,\n checked!,\n !menuHidden,\n this.props.split,\n );\n\n const { _ariaDescriptionId, _labelId, _descriptionId } = this;\n // Anchor tag cannot be disabled hence in disabled state rendering\n // anchor button as normal button\n const renderAsAnchor: boolean = !isPrimaryButtonDisabled && !!href;\n const tag = renderAsAnchor ? 'a' : 'button';\n\n const nativeProps = getNativeProps(\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n assign(renderAsAnchor ? {} : { type: 'button' }, this.props.rootProps, this.props),\n renderAsAnchor ? anchorProperties : buttonProperties,\n [\n 'disabled', // let disabled buttons be focused and styled as disabled.\n ],\n );\n\n // Check for ariaLabel passed in via Button props, and fall back to aria-label passed in via native props\n const resolvedAriaLabel = ariaLabel || (nativeProps as any)['aria-label'];\n\n // Check for ariaDescription, secondaryText or aria-describedby in the native props to determine source of\n // aria-describedby. Otherwise default to undefined so property does not appear in output.\n let ariaDescribedBy = undefined;\n if (ariaDescription) {\n ariaDescribedBy = _ariaDescriptionId;\n } else if (secondaryText && this.props.onRenderDescription !== nullRender) {\n // for buttons like CompoundButton with a valid onRenderDescription, we need to set an ariaDescribedBy\n // for buttons that do not render anything (via nullRender), we should not set an ariaDescribedBy\n ariaDescribedBy = _descriptionId;\n } else if ((nativeProps as any)['aria-describedby']) {\n ariaDescribedBy = (nativeProps as any)['aria-describedby'];\n }\n\n // If an explicit aria-labelledby is given, use that and we're done.\n // If any kind of description is given (which will end up as an aria-describedby attribute)\n // and no ariaLabel is specified, set the labelledby element.\n // Otherwise, the button is labeled implicitly by the descendent text on the button (if it exists).\n let ariaLabelledBy = undefined;\n if ((nativeProps as any)['aria-labelledby']) {\n ariaLabelledBy = (nativeProps as any)['aria-labelledby'];\n } else if (ariaDescribedBy && !resolvedAriaLabel) {\n ariaLabelledBy = this._hasText() ? _labelId : undefined;\n }\n\n const dataIsFocusable =\n (this.props as any)['data-is-focusable'] === false || (disabled && !allowDisabledFocus) || this._isSplitButton\n ? false\n : true;\n\n const isCheckboxTypeRole = role === 'menuitemcheckbox' || role === 'checkbox';\n // if isCheckboxTypeRole, always return a checked value.\n // Otherwise only return checked value if toggle is set to true.\n // This is because role=\"checkbox\" always needs to have an aria-checked value\n // but our checked prop only sets aria-pressed if we mark the button as a toggle=\"true\"\n const checkedOrPressedValue = isCheckboxTypeRole ? !!checked : toggle === true ? !!checked : undefined;\n\n const buttonProps = assign(nativeProps, {\n className: this._classNames.root,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ref: this._mergedRef(this.props.elementRef, this._buttonElement),\n disabled: isPrimaryButtonDisabled && !allowDisabledFocus,\n onKeyDown: this._onKeyDown,\n onKeyPress: this._onKeyPress,\n onKeyUp: this._onKeyUp,\n onMouseDown: this._onMouseDown,\n onMouseUp: this._onMouseUp,\n onClick: this._onClick,\n 'aria-label': resolvedAriaLabel,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n 'aria-disabled': isPrimaryButtonDisabled,\n 'data-is-focusable': dataIsFocusable,\n // aria-pressed attribute should only be present for toggle buttons\n // aria-checked attribute should only be present for toggle buttons with checkbox type role\n [isCheckboxTypeRole ? 'aria-checked' : 'aria-pressed']: checkedOrPressedValue,\n });\n\n if (ariaHidden) {\n buttonProps['aria-hidden'] = true;\n }\n\n if (this._isSplitButton) {\n return this._onRenderSplitButtonContent(tag, buttonProps);\n } else if (this.props.menuProps) {\n const { id = `${this._labelId}-menu` } = this.props.menuProps;\n assign(buttonProps, {\n 'aria-expanded': !menuHidden,\n 'aria-controls': !menuHidden ? id : null,\n 'aria-haspopup': true,\n });\n }\n\n return this._onRenderContent(tag, buttonProps);\n }\n\n public componentDidMount() {\n // For split buttons, touching anywhere in the button should drop the dropdown, which should contain the\n // primary action. This gives more hit target space for touch environments. We're setting the onpointerdown here,\n // because React does not support Pointer events yet.\n if (this._isSplitButton && this._splitButtonContainer.current) {\n if ('onpointerdown' in this._splitButtonContainer.current) {\n this._events.on(this._splitButtonContainer.current, 'pointerdown', this._onPointerDown, true);\n }\n if ('onpointerup' in this._splitButtonContainer.current && this.props.onPointerUp) {\n this._events.on(this._splitButtonContainer.current, 'pointerup', this.props.onPointerUp, true);\n }\n }\n }\n\n public componentDidUpdate(prevProps: IBaseButtonProps, prevState: IBaseButtonState) {\n // If Button's menu was closed, run onAfterMenuDismiss.\n if (this.props.onAfterMenuDismiss && !prevState.menuHidden && this.state.menuHidden) {\n this.props.onAfterMenuDismiss();\n }\n }\n\n public componentWillUnmount(): void {\n this._async.dispose();\n this._events.dispose();\n }\n\n public focus(): void {\n if (this._isSplitButton && this._splitButtonContainer.current) {\n setFocusVisibility(true, undefined, this.context?.registeredProviders);\n this._splitButtonContainer.current.focus();\n } else if (this._buttonElement.current) {\n setFocusVisibility(true, undefined, this.context?.registeredProviders);\n this._buttonElement.current.focus();\n }\n }\n\n public dismissMenu(): void {\n this._dismissMenu();\n }\n\n public openMenu(shouldFocusOnContainer?: boolean, shouldFocusOnMount?: boolean): void {\n this._openMenu(shouldFocusOnContainer, shouldFocusOnMount);\n }\n\n private _onRenderContent(tag: any, buttonProps: IButtonProps): JSX.Element {\n const props = this.props;\n const Tag = tag;\n const {\n menuIconProps,\n menuProps,\n onRenderIcon = this._onRenderIcon,\n onRenderAriaDescription = this._onRenderAriaDescription,\n onRenderChildren = this._onRenderChildren,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onRenderMenu = this._onRenderMenu,\n onRenderMenuIcon = this._onRenderMenuIcon,\n disabled,\n } = props;\n let { keytipProps } = props;\n if (keytipProps && menuProps) {\n keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps);\n }\n\n const Button = (keytipAttributes?: any): JSX.Element => (\n \n \n {onRenderIcon(props, this._onRenderIcon)}\n {this._onRenderTextContents()}\n {onRenderAriaDescription(props, this._onRenderAriaDescription)}\n {onRenderChildren(props, this._onRenderChildren)}\n {!this._isSplitButton &&\n (menuProps || menuIconProps || this.props.onRenderMenuIcon) &&\n onRenderMenuIcon(this.props, this._onRenderMenuIcon)}\n {menuProps &&\n !menuProps.doNotLayer &&\n this._shouldRenderMenu() &&\n onRenderMenu(this._getMenuProps(menuProps), this._onRenderMenu)}\n \n \n );\n\n const Content = keytipProps ? (\n // If we're making a split button, we won't put the keytip here\n \n {(keytipAttributes: any): JSX.Element => Button(keytipAttributes)}\n \n ) : (\n Button()\n );\n\n if (menuProps && menuProps.doNotLayer) {\n return (\n <>\n {Content}\n {this._shouldRenderMenu() && onRenderMenu(this._getMenuProps(menuProps), this._onRenderMenu)}\n \n );\n }\n\n return (\n <>\n {Content}\n \n \n );\n }\n\n /**\n * Method to help determine if the menu's component tree should\n * be rendered. It takes into account whether the menu is expanded,\n * whether it is a persisted menu and whether it has been shown to the user.\n */\n private _shouldRenderMenu() {\n const { menuHidden } = this.state;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { persistMenu, renderPersistedMenuHiddenOnMount } = this.props;\n\n if (!menuHidden) {\n // Always should render a menu when it is expanded\n return true;\n } else if (persistMenu && (this._renderedVisibleMenu || renderPersistedMenuHiddenOnMount)) {\n // _renderedVisibleMenu ensures that the first rendering of\n // the menu happens on-screen, as edge's scrollbar calculations are off if done while hidden.\n return true;\n }\n\n return false;\n }\n\n private _onRenderIcon = (\n buttonProps?: IButtonProps,\n defaultRender?: IRenderFunction,\n ): JSX.Element | null => {\n const { iconProps } = this.props;\n\n if (iconProps && (iconProps.iconName !== undefined || iconProps.imageProps)) {\n const { className, imageProps, ...rest } = iconProps;\n\n // If the styles prop is specified as part of iconProps, fall back to regular Icon as FontIcon and ImageIcon\n // do not have this prop.\n if (iconProps.styles) {\n return ;\n }\n if (iconProps.iconName) {\n return ;\n }\n if (imageProps) {\n return ;\n }\n }\n return null;\n };\n\n private _onRenderTextContents = (): JSX.Element | (JSX.Element | null)[] => {\n const {\n text,\n children,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n secondaryText = this.props.description,\n onRenderText = this._onRenderText,\n onRenderDescription = this._onRenderDescription,\n } = this.props;\n\n if (text || typeof children === 'string' || secondaryText) {\n return (\n \n {onRenderText(this.props, this._onRenderText)}\n {onRenderDescription(this.props, this._onRenderDescription)}\n \n );\n }\n return [onRenderText(this.props, this._onRenderText), onRenderDescription(this.props, this._onRenderDescription)];\n };\n\n private _onRenderText = (): JSX.Element | null => {\n let { text } = this.props;\n const { children } = this.props;\n\n // For backwards compat, we should continue to take in the text content from children.\n if (text === undefined && typeof children === 'string') {\n text = children;\n }\n\n if (this._hasText()) {\n return (\n \n {text}\n \n );\n }\n\n return null;\n };\n\n private _hasText(): boolean {\n // _onRenderTextContents and _onRenderText do not perform the same checks. Below is parity with what _onRenderText\n // used to have before the refactor that introduced this function. _onRenderTextContents does not require props.\n // text to be undefined in order for props.children to be used as a fallback.\n // Purely a code maintainability/reuse issue, but logged as Issue #4979.\n return this.props.text !== null && (this.props.text !== undefined || typeof this.props.children === 'string');\n }\n\n private _onRenderChildren = (): JSX.Element | null => {\n const { children } = this.props;\n\n // If children is just a string, either it or the text will be rendered via onRenderLabel\n // If children is another component, it will be rendered after text\n if (typeof children === 'string') {\n return null;\n }\n\n return children as any;\n };\n\n private _onRenderDescription = (props: IButtonProps) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { secondaryText = this.props.description } = props;\n\n // ms-Button-description is only shown when the button type is compound.\n // In other cases it will not be displayed.\n return secondaryText ? (\n \n {secondaryText}\n \n ) : null;\n };\n\n private _onRenderAriaDescription = () => {\n const { ariaDescription } = this.props;\n\n // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan,\n // otherwise it will be assigned to descriptionSpan.\n return ariaDescription ? (\n \n {ariaDescription}\n \n ) : null;\n };\n\n private _onRenderMenuIcon = (props: IButtonProps): JSX.Element | null => {\n const { menuIconProps } = this.props;\n\n return ;\n };\n\n private _getMenuProps(menuProps: IContextualMenuProps): IContextualMenuProps {\n const { persistMenu } = this.props;\n const { menuHidden } = this.state;\n\n // the accessible menu label (accessible name) has a relationship to the button.\n // If the menu props do not specify an explicit value for aria-label or aria-labelledBy,\n // AND the button has text, we'll set the menu aria-labelledBy to the text element id.\n if (!menuProps.ariaLabel && !menuProps.labelElementId && this._hasText()) {\n menuProps = { ...menuProps, labelElementId: this._labelId };\n }\n\n return {\n id: this._labelId + '-menu',\n directionalHint: DirectionalHint.bottomLeftEdge,\n ...menuProps,\n shouldFocusOnContainer: this._menuShouldFocusOnContainer,\n shouldFocusOnMount: this._menuShouldFocusOnMount,\n hidden: persistMenu ? menuHidden : undefined,\n className: css('ms-BaseButton-menuhost', menuProps.className),\n target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current,\n onDismiss: this._onDismissMenu,\n };\n }\n\n private _onRenderMenu = (menuProps: IContextualMenuProps): JSX.Element => {\n const MenuType = this.props.menuAs ? composeComponentAs(this.props.menuAs, ContextualMenu) : ContextualMenu;\n\n return ;\n };\n\n private _onDismissMenu: IContextualMenuProps['onDismiss'] = ev => {\n const { menuProps } = this.props;\n\n if (menuProps && menuProps.onDismiss) {\n menuProps.onDismiss(ev);\n }\n if (!ev || !ev.defaultPrevented) {\n this._dismissMenu();\n }\n };\n\n private _dismissMenu = (): void => {\n this._menuShouldFocusOnMount = undefined;\n this._menuShouldFocusOnContainer = undefined;\n this.setState({ menuHidden: true });\n };\n\n private _openMenu = (shouldFocusOnContainer?: boolean, shouldFocusOnMount: boolean = true): void => {\n if (this.props.menuProps) {\n this._menuShouldFocusOnContainer = shouldFocusOnContainer;\n this._menuShouldFocusOnMount = shouldFocusOnMount;\n this._renderedVisibleMenu = true;\n this.setState({ menuHidden: false });\n }\n };\n\n private _onToggleMenu = (shouldFocusOnContainer: boolean): void => {\n let shouldFocusOnMount = true;\n if (this.props.menuProps && this.props.menuProps.shouldFocusOnMount === false) {\n shouldFocusOnMount = false;\n }\n\n this.state.menuHidden ? this._openMenu(shouldFocusOnContainer, shouldFocusOnMount) : this._dismissMenu();\n };\n\n private _onRenderSplitButtonContent(tag: any, buttonProps: IButtonProps): JSX.Element {\n const {\n styles = {},\n disabled,\n allowDisabledFocus,\n checked,\n getSplitButtonClassNames,\n primaryDisabled,\n menuProps,\n toggle,\n role,\n primaryActionButtonProps,\n } = this.props;\n let { keytipProps } = this.props;\n const { menuHidden } = this.state;\n\n const classNames = getSplitButtonClassNames\n ? getSplitButtonClassNames(!!disabled, !menuHidden, !!checked, !!allowDisabledFocus)\n : styles && getBaseSplitButtonClassNames(styles!, !!disabled, !menuHidden, !!checked, !!primaryDisabled);\n\n assign(buttonProps, {\n onClick: undefined,\n onPointerDown: undefined,\n onPointerUp: undefined,\n tabIndex: -1,\n 'data-is-focusable': false,\n });\n\n if (keytipProps && menuProps) {\n keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps);\n }\n\n const containerProps = getNativeProps>(buttonProps, [], ['disabled']);\n\n // Add additional props to apply on primary action button\n if (primaryActionButtonProps) {\n assign(buttonProps, primaryActionButtonProps);\n }\n\n const SplitButton = (keytipAttributes?: any): JSX.Element => (\n \n \n {this._onRenderContent(tag, buttonProps)}\n {this._onRenderSplitButtonMenuButton(classNames, keytipAttributes)}\n {this._onRenderSplitButtonDivider(classNames)}\n \n \n );\n\n return keytipProps ? (\n \n {(keytipAttributes: any): JSX.Element => SplitButton(keytipAttributes)}\n \n ) : (\n SplitButton()\n );\n }\n\n private _onSplitContainerFocusCapture = (ev: React.FocusEvent) => {\n const container = this._splitButtonContainer.current;\n\n // If the target is coming from the portal we do not need to set focus on the container.\n if (!container || (ev.target && portalContainsElement(ev.target, container))) {\n return;\n }\n\n // We should never be able to focus the individual buttons in a split button. Focus\n // should always remain on the container.\n container.focus();\n };\n\n private _onSplitButtonPrimaryClick = (ev: React.MouseEvent) => {\n if (!this.state.menuHidden) {\n this._dismissMenu();\n }\n\n // toggle split buttons need two separate targets, even for touch\n const singleTouchTarget = this._processingTouch && !this.props.toggle;\n\n if (!singleTouchTarget && this.props.onClick) {\n this.props.onClick(ev);\n } else if (singleTouchTarget) {\n this._onMenuClick(ev);\n }\n };\n\n private _onRenderSplitButtonDivider(classNames: ISplitButtonClassNames | undefined): JSX.Element | null {\n if (classNames && classNames.divider) {\n const onClick = (ev: React.MouseEvent) => {\n ev.stopPropagation();\n };\n return ;\n }\n return null;\n }\n\n private _onRenderSplitButtonMenuButton(\n classNames: ISplitButtonClassNames | undefined,\n keytipAttributes: any,\n ): JSX.Element {\n const { allowDisabledFocus, checked, disabled, splitButtonMenuProps, splitButtonAriaLabel, primaryDisabled } =\n this.props;\n const { menuHidden } = this.state;\n let menuIconProps = this.props.menuIconProps;\n\n if (menuIconProps === undefined) {\n menuIconProps = {\n iconName: 'ChevronDown',\n };\n }\n\n const splitButtonProps = {\n ...splitButtonMenuProps,\n styles: classNames,\n checked,\n disabled,\n allowDisabledFocus,\n onClick: this._onMenuClick,\n menuProps: undefined,\n iconProps: { ...menuIconProps, className: this._classNames.menuIcon },\n ariaLabel: splitButtonAriaLabel,\n 'aria-haspopup': true,\n 'aria-expanded': !menuHidden,\n 'data-is-focusable': false,\n };\n\n // Add data-ktp-execute-target to the split button if the keytip is defined\n return (\n \n );\n }\n\n private _onKeyDown = (ev: React.KeyboardEvent) => {\n // explicity cancelling event so click won't fire after this\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (this.props.disabled && (ev.which === KeyCodes.enter || ev.which === KeyCodes.space)) {\n ev.preventDefault();\n ev.stopPropagation();\n } else if (!this.props.disabled) {\n if (this.props.menuProps) {\n this._onMenuKeyDown(ev);\n } else if (this.props.onKeyDown !== undefined) {\n this.props.onKeyDown(ev); // not cancelling event because it's not disabled\n }\n }\n };\n\n private _onKeyUp = (\n ev: React.KeyboardEvent,\n ) => {\n if (!this.props.disabled && this.props.onKeyUp !== undefined) {\n this.props.onKeyUp(ev); // not cancelling event because it's not disabled\n }\n };\n\n private _onKeyPress = (\n ev: React.KeyboardEvent,\n ) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (!this.props.disabled && this.props.onKeyPress !== undefined) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this.props.onKeyPress(ev); // not cancelling event because it's not disabled\n }\n };\n\n private _onMouseUp = (\n ev: React.MouseEvent,\n ) => {\n if (!this.props.disabled && this.props.onMouseUp !== undefined) {\n this.props.onMouseUp(ev); // not cancelling event because it's not disabled\n }\n };\n\n private _onMouseDown = (\n ev: React.MouseEvent,\n ) => {\n if (!this.props.disabled && this.props.onMouseDown !== undefined) {\n this.props.onMouseDown(ev); // not cancelling event because it's not disabled\n }\n };\n\n private _onClick = (\n ev: React.MouseEvent,\n ) => {\n if (!this.props.disabled) {\n if (this.props.menuProps) {\n this._onMenuClick(ev);\n } else if (this.props.onClick !== undefined) {\n this.props.onClick(ev); // not cancelling event because it's not disabled\n }\n }\n };\n\n private _onSplitButtonContainerKeyDown = (ev: React.KeyboardEvent) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter || ev.which === KeyCodes.space) {\n if (this._buttonElement.current) {\n this._buttonElement.current.click();\n ev.preventDefault();\n ev.stopPropagation();\n }\n } else {\n this._onMenuKeyDown(ev);\n }\n };\n\n private _onMenuKeyDown = (ev: React.KeyboardEvent) => {\n if (this.props.disabled) {\n return;\n }\n\n if (this.props.onKeyDown) {\n this.props.onKeyDown(ev);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isUp = ev.which === KeyCodes.up;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isDown = ev.which === KeyCodes.down;\n\n if (!ev.defaultPrevented && this._isValidMenuOpenKey(ev)) {\n const { onMenuClick } = this.props;\n if (onMenuClick) {\n onMenuClick(ev, this.props);\n }\n\n this._onToggleMenu(false);\n ev.preventDefault();\n ev.stopPropagation();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter || ev.which === KeyCodes.space) {\n // We manually set the focus visibility to true if opening via Enter or Space to account for the scenario where\n // a user clicks on the button, closes the menu and then opens it via keyboard. In this scenario our default logic\n // for setting focus visibility is not triggered since there is no keyboard navigation present beforehand.\n setFocusVisibility(true, ev.target as Element, this.context?.registeredProviders);\n }\n\n if (!(ev.altKey || ev.metaKey) && (isUp || isDown)) {\n // Suppose a menu, with shouldFocusOnMount: false, is open, and user wants to keyboard to the menu items\n // We need to re-render the menu with shouldFocusOnMount as true.\n\n if (!this.state.menuHidden && this.props.menuProps) {\n const currentShouldFocusOnMount =\n this._menuShouldFocusOnMount !== undefined\n ? this._menuShouldFocusOnMount\n : this.props.menuProps.shouldFocusOnMount;\n if (!currentShouldFocusOnMount) {\n ev.preventDefault();\n ev.stopPropagation();\n this._menuShouldFocusOnMount = true;\n this.forceUpdate();\n }\n }\n }\n };\n\n private _onTouchStart: () => void = () => {\n if (\n this._isSplitButton &&\n this._splitButtonContainer.current &&\n !('onpointerdown' in this._splitButtonContainer.current)\n ) {\n this._handleTouchAndPointerEvent();\n }\n };\n\n private _onPointerDown(\n ev: PointerEvent &\n React.PointerEvent,\n ) {\n const { onPointerDown } = this.props;\n if (onPointerDown) {\n onPointerDown(ev);\n }\n\n if (ev.pointerType === 'touch') {\n this._handleTouchAndPointerEvent();\n\n ev.preventDefault();\n ev.stopImmediatePropagation();\n }\n }\n\n private _handleTouchAndPointerEvent() {\n // If we already have an existing timeout from a previous touch and pointer event\n // cancel that timeout so we can set a new one.\n if (this._lastTouchTimeoutId !== undefined) {\n this._async.clearTimeout(this._lastTouchTimeoutId);\n this._lastTouchTimeoutId = undefined;\n }\n this._processingTouch = true;\n\n this._lastTouchTimeoutId = this._async.setTimeout(() => {\n this._processingTouch = false;\n this._lastTouchTimeoutId = undefined;\n\n // Touch and pointer events don't focus the button naturally,\n // so adding an imperative focus call to guarantee this behavior.\n // Only focus the button if a splitbutton menu is not open\n if (this.state.menuHidden) {\n this.focus();\n }\n }, TouchIdleDelay);\n }\n\n /**\n * Returns if the user hits a valid keyboard key to open the menu\n * @param ev - the keyboard event\n * @returns True if user clicks on custom trigger key if enabled or alt + down arrow if not. False otherwise.\n */\n private _isValidMenuOpenKey(\n ev: React.KeyboardEvent,\n ): boolean {\n if (this.props.menuTriggerKeyCode) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return ev.which === this.props.menuTriggerKeyCode;\n } else if (this.props.menuProps) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return ev.which === KeyCodes.down && (ev.altKey || ev.metaKey);\n }\n\n // Note: When enter is pressed, we will let the event continue to propagate\n // to trigger the onClick event on the button\n return false;\n }\n\n private _onMenuClick = (\n ev: React.MouseEvent,\n ) => {\n const { onMenuClick, menuProps } = this.props;\n if (onMenuClick) {\n onMenuClick(ev, this.props);\n }\n\n // focus on the container by default when the menu is opened with a click event\n // this differentiates from a keyboard interaction triggering the click event\n const shouldFocusOnContainer =\n typeof menuProps?.shouldFocusOnContainer === 'boolean'\n ? menuProps.shouldFocusOnContainer\n : (ev.nativeEvent as PointerEvent).pointerType === 'mouse';\n\n if (!ev.defaultPrevented) {\n this._onToggleMenu(shouldFocusOnContainer);\n ev.preventDefault();\n ev.stopPropagation();\n }\n };\n}\n","import { memoizeFunction } from '../../Utilities';\nimport { HighContrastSelector, getFocusStyle, hiddenContentStyle } from '../../Styling';\nimport type { IButtonStyles } from './Button.types';\nimport type { ITheme, IRawStyle } from '../../Styling';\n\nconst noOutline: IRawStyle = {\n outline: 0,\n};\n\nconst iconStyle = (fontSize?: string | number): IRawStyle => {\n return {\n fontSize,\n margin: '0 4px',\n height: '16px',\n lineHeight: '16px',\n textAlign: 'center',\n flexShrink: 0,\n };\n};\n\n/**\n * Gets the base button styles. Note: because it is a base class to be used with the `mergeRules`\n * helper, it should have values for all class names in the interface. This let `mergeRules` optimize\n * mixing class names together.\n */\nexport const getStyles = memoizeFunction((theme: ITheme): IButtonStyles => {\n const { semanticColors, effects, fonts } = theme;\n\n const border = semanticColors.buttonBorder;\n const disabledBackground = semanticColors.disabledBackground;\n const disabledText = semanticColors.disabledText;\n const buttonHighContrastFocus = {\n left: -2,\n top: -2,\n bottom: -2,\n right: -2,\n outlineColor: 'ButtonText',\n };\n\n return {\n root: [\n getFocusStyle(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }),\n theme.fonts.medium,\n {\n border: '1px solid ' + border,\n borderRadius: effects.roundedCorner2,\n boxSizing: 'border-box',\n cursor: 'pointer',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '0 16px',\n textDecoration: 'none',\n textAlign: 'center',\n userSelect: 'none',\n\n // IE11 workaround for preventing shift of child elements of a button when active.\n ':active > span': {\n position: 'relative',\n left: 0,\n top: 0,\n },\n },\n ],\n\n rootDisabled: [\n getFocusStyle(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }),\n {\n backgroundColor: disabledBackground,\n borderColor: disabledBackground,\n color: disabledText,\n cursor: 'default',\n ':hover': noOutline,\n ':focus': noOutline,\n },\n ],\n\n iconDisabled: {\n color: disabledText,\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n\n menuIconDisabled: {\n color: disabledText,\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n\n flexContainer: {\n display: 'flex',\n height: '100%',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n alignItems: 'center',\n },\n description: {\n display: 'block',\n },\n\n textContainer: {\n flexGrow: 1,\n display: 'block',\n },\n\n icon: iconStyle(fonts.mediumPlus.fontSize),\n\n menuIcon: iconStyle(fonts.small.fontSize),\n\n label: {\n margin: '0 4px',\n lineHeight: '100%',\n display: 'block',\n },\n\n screenReaderText: hiddenContentStyle,\n };\n});\n","import * as React from 'react';\nimport { BaseButton } from './BaseButton';\nimport { Button } from './Button';\nimport { KeyCodes } from '../../Utilities';\nimport type { IButtonClassNames } from './BaseButton.classNames';\nimport type { ISplitButtonClassNames } from './SplitButton/SplitButton.classNames';\nimport type { IRefObject, IRenderFunction, IComponentAs } from '../../Utilities';\nimport type { IContextualMenuProps } from '../../ContextualMenu';\nimport type { IIconProps } from '../../Icon';\nimport type { IShadowDomStyle, IStyle, ITheme } from '../../Styling';\nimport type { IKeytipProps } from '../../Keytip';\n\n/**\n * {@docCategory Button}\n */\nexport interface IButton {\n /**\n * Sets focus to the button.\n */\n focus: () => void;\n\n /**\n * If there is a menu associated with this button and it is visible, this will dismiss the menu\n */\n dismissMenu: () => void;\n\n /**\n * If there is a menu associated with this button and it is visible, this will open the menu.\n * Params are optional overrides to the ones defined in `menuProps` to apply to just this instance of\n * opening the menu.\n *\n * @param shouldFocusOnContainer - override to the ContextualMenu `shouldFocusOnContainer` prop.\n * BaseButton implementation defaults to `undefined`.\n * Avoid using `shouldFocusOnContainer` as it breaks the default focus behaviour when using\n * assistive technologies.\n * @param shouldFocusOnMount - override to the ContextualMenu `shouldFocusOnMount` prop.\n * BaseButton implementation defaults to `true`.\n */\n openMenu: (shouldFocusOnContainer?: boolean, shouldFocusOnMount?: boolean) => void;\n}\n\n/**\n * {@docCategory Button}\n */\n/* eslint-disable @typescript-eslint/no-deprecated */\nexport interface IButtonProps\n extends React.AllHTMLAttributes<\n HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | BaseButton | Button | HTMLSpanElement\n > {\n /* eslint-enable @typescript-eslint/no-deprecated */\n /**\n * Optional callback to access the `IButton` interface. Use this instead of `ref` for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Optional callback to access the root DOM element.\n * @deprecated Temporary solution which will be replaced with ref in the V8 release.\n */\n elementRef?: React.Ref;\n\n /**\n * If provided, this component will be rendered as an anchor.\n * @defaultvalue ElementType.anchor\n */\n href?: string;\n\n /**\n * Changes the visual presentation of the button to be emphasized.\n * @defaultvalue false\n */\n primary?: boolean;\n\n /**\n * Unique ID to identify the item. Typically a duplicate of key value.\n */\n uniqueId?: string | number;\n\n /**\n * Whether the button is disabled\n */\n disabled?: boolean;\n\n /**\n * Whether the button can have focus in disabled mode\n */\n allowDisabledFocus?: boolean;\n\n /**\n * If set to true and this is a split button (`split` is true), the split button's primary action is disabled.\n */\n primaryDisabled?: boolean;\n\n /**\n * Custom styling for individual elements within the button DOM.\n */\n styles?: IButtonStyles;\n\n /**\n * Theme provided by HOC.\n */\n theme?: ITheme;\n\n /**\n * Whether the button is checked. Should be used with the `toggle` attribute when creating a standalone on/off button.\n */\n checked?: boolean;\n\n /**\n * Whether button is a toggle button with distinct on and off states. This should be true for buttons that permanently\n * change state when a press event finishes, such as a volume mute button.\n */\n toggle?: boolean;\n\n /**\n * If provided, additional class name to provide on the root element.\n */\n className?: string;\n\n /**\n * The aria label of the button for the benefit of screen readers.\n */\n ariaLabel?: string;\n\n /**\n * Detailed description of the button for the benefit of screen readers.\n *\n * Besides the compound button, other button types will need more information provided to screen reader.\n */\n ariaDescription?: string;\n\n /**\n * If true, add an `aria-hidden` attribute instructing screen readers to ignore the element.\n */\n ariaHidden?: boolean;\n\n /**\n * Text to render button label. If text is supplied, it will override any string in button children.\n * Other children components will be passed through after the text.\n */\n text?: string;\n\n /**\n * The props for the icon shown in the button.\n */\n iconProps?: IIconProps;\n\n /**\n * Props for button menu. Providing this will default to showing the menu icon. See `menuIconProps` for overriding\n * how the default icon looks. Providing this in addition to `onClick` and setting the `split` property to `true`\n * will render a SplitButton.\n */\n menuProps?: IContextualMenuProps;\n\n /**\n * Callback that runs after Button's contextual menu was closed (removed from the DOM)\n */\n onAfterMenuDismiss?: () => void;\n\n /**\n * If set to true, and if `menuProps` and `onClick` are provided, the button will render as a SplitButton.\n * @default false\n */\n split?: boolean;\n\n /**\n * The props for the icon shown when providing a menu dropdown.\n */\n menuIconProps?: IIconProps;\n\n /**\n * Accessible label for the dropdown chevron button if this button is split.\n */\n splitButtonAriaLabel?: string;\n\n /**\n * Optional callback when menu is clicked.\n */\n onMenuClick?: (ev?: React.MouseEvent | React.KeyboardEvent, button?: IButtonProps) => void;\n\n /**\n * Custom render function for the icon\n */\n onRenderIcon?: IRenderFunction;\n\n /**\n * Custom render function for the label text.\n */\n onRenderText?: IRenderFunction;\n\n /**\n * Custom render function for the description text.\n */\n onRenderDescription?: IRenderFunction;\n\n /**\n * Custom render function for the aria description element.\n */\n onRenderAriaDescription?: IRenderFunction;\n\n /**\n * Custom render function for rendering the button children.\n */\n onRenderChildren?: IRenderFunction;\n\n /**\n * Custom render function for button menu icon\n */\n onRenderMenuIcon?: IRenderFunction;\n\n /**\n * @deprecated Deprecated at v6.3.2, to be removed at \\>= v7.0.0.\n * Use `menuAs` instead.\n */\n onRenderMenu?: IRenderFunction;\n\n /**\n * Render a custom menu in place of the normal one.\n */\n menuAs?: IComponentAs;\n\n /**\n * Description of the action this button takes.\n * Only used for compound buttons.\n */\n secondaryText?: string;\n\n /**\n * @defaultvalue ButtonType.default\n * @deprecated Deprecated at v1.2.3, to be removed at \\>= v2.0.0.\n * Use specific button component instead.\n */\n\n buttonType?: ButtonType;\n\n /**\n * @deprecated Deprecated at v0.56.2, to be removed at \\>= v1.0.0.\n * Use native props on the Button itself instead.\n * They will be mixed into the button/anchor element rendered by the component.\n */\n rootProps?: React.ButtonHTMLAttributes | React.AnchorHTMLAttributes;\n\n /**\n * @deprecated No longer used. Use `checked` if setting state.\n */\n toggled?: boolean;\n\n /**\n * Any custom data the developer wishes to associate with the button.\n */\n data?: any;\n\n /**\n * Method to provide the classnames to style a button.\n * The default value for this prop is the `getClassnames` func defined in `BaseButton.classnames.ts`.\n * @defaultvalue getBaseButtonClassNames\n */\n getClassNames?: (\n theme: ITheme,\n className: string,\n variantClassName: string,\n iconClassName: string | undefined,\n menuIconClassName: string | undefined,\n disabled: boolean,\n checked: boolean,\n expanded: boolean,\n hasMenu: boolean,\n isSplit: boolean | undefined,\n allowDisabledFocus: boolean,\n ) => IButtonClassNames;\n\n /**\n * Method to provide the classnames to style a button.\n * The default value for this prop is the `getClassnames` func defined in `BaseButton.classnames.ts`.\n * @defaultvalue getBaseSplitButtonClassNames\n */\n getSplitButtonClassNames?: (\n disabled: boolean,\n expanded: boolean,\n checked: boolean,\n allowDisabledFocus: boolean,\n ) => ISplitButtonClassNames;\n\n /**\n * Provides a custom KeyCode that can be used to open the button menu.\n * A value of `null` can be provided to disable opening the button menu with a key press.\n * @default KeyCodes.down\n */\n menuTriggerKeyCode?: KeyCodes | null;\n\n /**\n * Optional keytip for this button\n */\n keytipProps?: IKeytipProps;\n\n /**\n * Menu will not be created or destroyed when opened or closed, instead it\n * will be hidden. This will improve perf of the menu opening but could potentially\n * impact overall perf by having more elements in the dom. Should only be used\n * when menu perf is important.\n *\n * Note: This may increase the amount of time it takes for the button itself to mount.\n */\n persistMenu?: boolean;\n\n /**\n * If true, the persisted menu is rendered hidden when the button initially mounts.\n * Non-persisted menus will not be in the component tree unless they are being shown.\n *\n * Note: This increases the time the button will take to mount, but\n * can improve perceived menu open perf. when the user opens the menu.\n *\n * @defaultvalue `undefined`, equivalent to false\n *\n * @deprecated There is known bug in Edge when this prop is true where scrollbars\n * overlap with the content when a menu is first rendered hidden.\n * Please do not start using this. If you are already using this,\n * please make sure that you are doing so only in non-Edge browsers.\n * See: https://github.com/microsoft/fluentui/issues/9034\n */\n renderPersistedMenuHiddenOnMount?: boolean;\n\n /**\n * Experimental prop that get passed into the menuButton that's rendered as part of\n * split button. Anything passed in will likely need to have accompanying\n * style changes.\n */\n splitButtonMenuProps?: IButtonProps;\n\n /**\n * Style for the description text if applicable (for compound buttons).\n * @deprecated Use `secondaryText` instead.\n */\n description?: string;\n\n /**\n * yet unknown docs\n */\n defaultRender?: any;\n\n /**\n * Optional props to be applied only to the primary action button of SplitButton and not to the\n * overall SplitButton container\n */\n primaryActionButtonProps?: IButtonProps;\n}\n\n/**\n * {@docCategory Button}\n */\nexport enum ElementType {\n /** `button` element. */\n button = 0,\n /** `a` element. */\n anchor = 1,\n}\n\n/**\n * {@docCategory Button}\n */\nexport enum ButtonType {\n normal = 0,\n primary = 1,\n hero = 2,\n compound = 3,\n command = 4,\n icon = 5,\n default = 6,\n}\n\n/**\n * {@docCategory Button}\n */\nexport interface IButtonStyles extends IShadowDomStyle {\n /**\n * Style for the root element in the default enabled, non-toggled state.\n */\n root?: IStyle;\n\n /**\n * Style override for the root element in a checked state, layered on top of the root style.\n */\n rootChecked?: IStyle;\n\n /**\n * Style override for the root element in a disabled state, layered on top of the root style.\n */\n rootDisabled?: IStyle;\n\n /**\n * Style override applied to the root on hover in the default, enabled, non-toggled state.\n */\n rootHovered?: IStyle;\n\n /**\n * Style override applied to the root on focus in the default, enabled, non-toggled state.\n */\n rootFocused?: IStyle;\n\n /**\n * Style override applied to the root on pressed in the default, enabled, non-toggled state.\n */\n rootPressed?: IStyle;\n\n /**\n * Style override applied to the root on when menu is expanded in the default, enabled, non-toggled state.\n */\n rootExpanded?: IStyle;\n\n /**\n * Style override applied to the root on hover in a checked, enabled state\n */\n rootCheckedHovered?: IStyle;\n\n /**\n * Style override applied to the root on pressed in a checked, enabled state\n */\n rootCheckedPressed?: IStyle;\n\n /**\n * Style override applied to the root on hover in a checked, disabled state\n */\n rootCheckedDisabled?: IStyle;\n\n /**\n * Style override applied to the root on hover in a expanded state on hover\n */\n rootExpandedHovered?: IStyle;\n\n /**\n * Style override for the root element when it has a menu button, layered on top of the root style.\n */\n rootHasMenu?: IStyle;\n\n /**\n * Style for the flexbox container within the root element.\n */\n flexContainer?: IStyle;\n\n /**\n * Style for the text container within the flexbox container element (and contains the text and description).\n */\n textContainer?: IStyle;\n\n /**\n * Style for the icon on the near side of the label.\n */\n icon?: IStyle;\n\n /**\n * Style for the icon on the near side of the label on hover.\n */\n iconHovered?: IStyle;\n\n /**\n * Style for the icon on the near side of the label when pressed.\n */\n iconPressed?: IStyle;\n\n /**\n * Style for the icon on the near side of the label when expanded.\n */\n iconExpanded?: IStyle;\n\n /**\n * Style for the icon on the near side of the label when expanded and hovered.\n */\n iconExpandedHovered?: IStyle;\n\n /**\n * Style override for the icon when the button is disabled.\n */\n iconDisabled?: IStyle;\n\n /**\n * Style override for the icon when the button is checked.\n */\n iconChecked?: IStyle;\n\n /**\n * Style for the text content of the button.\n */\n label?: IStyle;\n\n /**\n * Style override for the text content when the button is hovered.\n */\n labelHovered?: IStyle;\n\n /**\n * Style override for the text content when the button is disabled.\n */\n labelDisabled?: IStyle;\n\n /**\n * Style override for the text content when the button is checked.\n */\n labelChecked?: IStyle;\n\n /**\n * Style for the menu chevron.\n */\n menuIcon?: IStyle;\n\n /**\n * Style for the menu chevron on hover.\n */\n menuIconHovered?: IStyle;\n\n /**\n * Style for the menu chevron when pressed.\n */\n menuIconPressed?: IStyle;\n\n /**\n * Style for the menu chevron when expanded.\n */\n menuIconExpanded?: IStyle;\n\n /**\n * Style for the menu chevron when expanded and hovered.\n */\n menuIconExpandedHovered?: IStyle;\n\n /**\n * Style override for the menu chevron when the button is disabled.\n */\n menuIconDisabled?: IStyle;\n\n /**\n * Style override for the menu chevron when the button is checked.\n */\n menuIconChecked?: IStyle;\n\n /**\n * Style for the description text if applicable (for compound buttons).\n */\n description?: IStyle;\n\n /**\n * Style for the description text if applicable (for compound buttons).\n */\n secondaryText?: IStyle;\n\n /**\n * Style override for the description text when the button is hovered.\n */\n descriptionHovered?: IStyle;\n\n /**\n * Style for the description text when the button is pressed.\n */\n descriptionPressed?: IStyle;\n\n /**\n * Style override for the description text when the button is disabled.\n */\n descriptionDisabled?: IStyle;\n\n /**\n * Style override for the description text when the button is checked.\n */\n descriptionChecked?: IStyle;\n\n /**\n * Style override for the screen reader text.\n */\n screenReaderText?: IStyle;\n\n /**\n * Style override for the container div around a SplitButton element\n */\n splitButtonContainer?: IStyle;\n\n /**\n * Style for container div around a SplitButton element when the button is hovered.\n */\n splitButtonContainerHovered?: IStyle;\n\n /**\n * Style for container div around a SplitButton element when the button is focused.\n */\n splitButtonContainerFocused?: IStyle;\n\n /**\n * Style for container div around a SplitButton element when the button is checked.\n */\n splitButtonContainerChecked?: IStyle;\n\n /**\n * Style for container div around a SplitButton element when the button is checked and hovered.\n */\n splitButtonContainerCheckedHovered?: IStyle;\n\n /**\n * Style override for the container div around a SplitButton element in a disabled state\n */\n splitButtonContainerDisabled?: IStyle;\n\n /**\n * Style override for the divider element that appears between the button and menu button\n * for a split button.\n */\n splitButtonDivider?: IStyle;\n\n /**\n * Style override for the divider element that appears between the button and menu button\n * for a split button in a disabled state.\n */\n splitButtonDividerDisabled?: IStyle;\n\n /**\n * Style override for the SplitButton menu button\n */\n splitButtonMenuButton?: IStyle;\n\n /**\n * Style override for the SplitButton menu button element in a disabled state.\n */\n splitButtonMenuButtonDisabled?: IStyle;\n\n /**\n * Style override for the SplitButton menu button element in a checked state\n */\n splitButtonMenuButtonChecked?: IStyle;\n\n /**\n * Style override for the SplitButton menu button element in an expanded state\n */\n splitButtonMenuButtonExpanded?: IStyle;\n\n /**\n * Style override for the SplitButton menu icon element\n */\n splitButtonMenuIcon?: IStyle;\n\n /**\n * Style override for the SplitButton menu icon element in a disabled state\n */\n splitButtonMenuIconDisabled?: IStyle;\n\n /**\n * Style override for the SplitButton FlexContainer.\n */\n splitButtonFlexContainer?: IStyle;\n\n /**\n * Style override for the SplitButton when only primaryButton is in a disabled state\n */\n splitButtonMenuFocused?: IStyle;\n}\n","import * as React from 'react';\n\nimport { warn } from '../../Utilities';\nimport { ButtonType } from './Button.types';\nimport { DefaultButton } from './DefaultButton/DefaultButton';\nimport { ActionButton } from './ActionButton/ActionButton';\nimport { CompoundButton } from './CompoundButton/CompoundButton';\nimport { IconButton } from './IconButton/IconButton';\nimport { PrimaryButton } from './PrimaryButton/PrimaryButton';\nimport type { IButtonProps } from './Button.types';\n\n/**\n * This class is deprecated. Use the individual *Button components instead.\n * @deprecated Use the individual *Button components instead.\n * {@docCategory Button}\n */\nexport class Button extends React.Component {\n constructor(props: IButtonProps) {\n super(props);\n\n warn(\n `The Button component has been deprecated. Use specific variants instead. ` +\n `(PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)`,\n );\n }\n\n public render(): JSX.Element {\n const props = this.props;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (props.buttonType) {\n case ButtonType.command:\n return ;\n\n case ButtonType.compound:\n return ;\n\n case ButtonType.icon:\n return ;\n\n case ButtonType.primary:\n return ;\n\n default:\n return ;\n }\n }\n}\n","import { HighContrastSelector, getHighContrastNoAdjustStyle } from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nimport type { IButtonStyles } from './Button.types';\nimport type { ITheme, IRawStyle } from '../../Styling';\n\nconst splitButtonDividerBaseStyles = (): IRawStyle => {\n return {\n position: 'absolute',\n width: 1,\n right: 31,\n top: 8,\n bottom: 8,\n };\n};\n\nexport function standardStyles(theme: ITheme): IButtonStyles {\n const { semanticColors: s, palette: p } = theme;\n\n const buttonBackground = s.buttonBackground;\n const buttonBackgroundPressed = s.buttonBackgroundPressed;\n const buttonBackgroundHovered = s.buttonBackgroundHovered;\n const buttonBackgroundDisabled = s.buttonBackgroundDisabled;\n\n const buttonText = s.buttonText;\n const buttonTextHovered = s.buttonTextHovered;\n const buttonTextDisabled = s.buttonTextDisabled;\n const buttonTextChecked = s.buttonTextChecked;\n const buttonTextCheckedHovered = s.buttonTextCheckedHovered;\n\n return {\n root: {\n backgroundColor: buttonBackground,\n color: buttonText,\n },\n\n rootHovered: {\n backgroundColor: buttonBackgroundHovered,\n color: buttonTextHovered,\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n color: 'Highlight',\n },\n },\n\n rootPressed: {\n backgroundColor: buttonBackgroundPressed,\n color: buttonTextChecked,\n },\n\n rootExpanded: {\n backgroundColor: buttonBackgroundPressed,\n color: buttonTextChecked,\n },\n\n rootChecked: {\n backgroundColor: buttonBackgroundPressed,\n color: buttonTextChecked,\n },\n\n rootCheckedHovered: {\n backgroundColor: buttonBackgroundPressed,\n color: buttonTextCheckedHovered,\n },\n\n rootDisabled: {\n color: buttonTextDisabled,\n backgroundColor: buttonBackgroundDisabled,\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n\n // Split button styles\n splitButtonContainer: {\n [HighContrastSelector]: {\n border: 'none',\n },\n },\n\n splitButtonMenuButton: {\n color: p.white,\n backgroundColor: 'transparent',\n ':hover': {\n backgroundColor: p.neutralLight,\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n },\n\n splitButtonMenuButtonDisabled: {\n backgroundColor: s.buttonBackgroundDisabled,\n ':hover': {\n backgroundColor: s.buttonBackgroundDisabled,\n },\n },\n\n splitButtonDivider: {\n ...splitButtonDividerBaseStyles(),\n backgroundColor: p.neutralTertiaryAlt,\n [HighContrastSelector]: {\n backgroundColor: 'WindowText',\n },\n },\n\n splitButtonDividerDisabled: {\n backgroundColor: theme.palette.neutralTertiaryAlt,\n },\n\n splitButtonMenuButtonChecked: {\n backgroundColor: p.neutralQuaternaryAlt,\n ':hover': {\n backgroundColor: p.neutralQuaternaryAlt,\n },\n },\n\n splitButtonMenuButtonExpanded: {\n backgroundColor: p.neutralQuaternaryAlt,\n ':hover': {\n backgroundColor: p.neutralQuaternaryAlt,\n },\n },\n\n splitButtonMenuIcon: {\n color: s.buttonText,\n },\n\n splitButtonMenuIconDisabled: {\n color: s.buttonTextDisabled,\n },\n };\n}\n\nexport function primaryStyles(theme: ITheme): IButtonStyles {\n const { palette: p, semanticColors: s } = theme;\n\n return {\n root: {\n backgroundColor: s.primaryButtonBackground,\n border: `1px solid ${s.primaryButtonBackground}`,\n color: s.primaryButtonText,\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n borderColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: {\n ':after': {\n border: `none`,\n outlineColor: p.white,\n },\n },\n },\n\n rootHovered: {\n backgroundColor: s.primaryButtonBackgroundHovered,\n border: `1px solid ${s.primaryButtonBackgroundHovered}`,\n color: s.primaryButtonTextHovered,\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n },\n },\n\n rootPressed: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n border: `1px solid ${s.primaryButtonBackgroundPressed}`,\n color: s.primaryButtonTextPressed,\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n borderColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n rootExpanded: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n color: s.primaryButtonTextPressed,\n },\n\n rootChecked: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n color: s.primaryButtonTextPressed,\n },\n\n rootCheckedHovered: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n color: s.primaryButtonTextPressed,\n },\n\n rootDisabled: {\n color: s.primaryButtonTextDisabled,\n backgroundColor: s.primaryButtonBackgroundDisabled,\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n\n // Split button styles\n splitButtonContainer: {\n [HighContrastSelector]: {\n border: 'none',\n },\n },\n\n splitButtonDivider: {\n ...splitButtonDividerBaseStyles(),\n backgroundColor: p.white,\n [HighContrastSelector]: {\n backgroundColor: 'Window',\n },\n },\n\n splitButtonMenuButton: {\n backgroundColor: s.primaryButtonBackground,\n color: s.primaryButtonText,\n [HighContrastSelector]: {\n backgroundColor: 'Canvas',\n },\n ':hover': {\n backgroundColor: s.primaryButtonBackgroundHovered,\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n },\n\n splitButtonMenuButtonDisabled: {\n backgroundColor: s.primaryButtonBackgroundDisabled,\n ':hover': {\n backgroundColor: s.primaryButtonBackgroundDisabled,\n },\n },\n\n splitButtonMenuButtonChecked: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n ':hover': {\n backgroundColor: s.primaryButtonBackgroundPressed,\n },\n },\n\n splitButtonMenuButtonExpanded: {\n backgroundColor: s.primaryButtonBackgroundPressed,\n ':hover': {\n backgroundColor: s.primaryButtonBackgroundPressed,\n },\n },\n\n splitButtonMenuIcon: {\n color: s.primaryButtonText,\n },\n\n splitButtonMenuIconDisabled: {\n color: p.neutralTertiary,\n\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n };\n}\n","import { concatStyleSets, getFocusStyle, HighContrastSelector, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';\nimport { ButtonGlobalClassNames } from '../BaseButton.classNames';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nexport const getStyles = memoizeFunction(\n (theme: ITheme, customStyles?: IButtonStyles, focusInset?: string, focusColor?: string): IButtonStyles => {\n const baseButtonStyles: IButtonStyles = getBaseButtonStyles(theme);\n const baseSplitButtonStyles: IButtonStyles = getSplitButtonStyles(theme);\n\n const { palette: p, semanticColors } = theme;\n\n const commandButtonHighContrastFocus = {\n left: 4,\n top: 4,\n bottom: 4,\n right: 4,\n border: 'none',\n };\n\n const commandButtonStyles: IButtonStyles = {\n root: [\n getFocusStyle(theme, {\n inset: 2,\n highContrastStyle: commandButtonHighContrastFocus,\n borderColor: 'transparent',\n }),\n theme.fonts.medium,\n {\n minWidth: '40px',\n backgroundColor: p.white,\n color: p.neutralPrimary,\n padding: '0 4px',\n border: 'none',\n borderRadius: 0,\n [HighContrastSelector]: {\n border: 'none',\n },\n },\n ],\n\n rootHovered: {\n backgroundColor: p.neutralLighter,\n color: p.neutralDark,\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.themeDarkAlt,\n },\n [`.${ButtonGlobalClassNames.msButtonMenuIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n\n rootPressed: {\n backgroundColor: p.neutralLight,\n color: p.neutralDark,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.themeDark,\n },\n [`.${ButtonGlobalClassNames.msButtonMenuIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n\n rootChecked: {\n backgroundColor: p.neutralLight,\n color: p.neutralDark,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.themeDark,\n },\n [`.${ButtonGlobalClassNames.msButtonMenuIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n\n rootCheckedHovered: {\n backgroundColor: p.neutralQuaternaryAlt,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.themeDark,\n },\n [`.${ButtonGlobalClassNames.msButtonMenuIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n\n rootExpanded: {\n backgroundColor: p.neutralLight,\n color: p.neutralDark,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.themeDark,\n },\n [`.${ButtonGlobalClassNames.msButtonMenuIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n\n rootExpandedHovered: {\n backgroundColor: p.neutralQuaternaryAlt,\n },\n\n rootDisabled: {\n backgroundColor: p.white,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: semanticColors.disabledBodySubtext,\n [HighContrastSelector]: {\n color: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n [HighContrastSelector]: {\n color: 'GrayText',\n backgroundColor: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n // Split button styles\n splitButtonContainer: {\n height: '100%',\n [HighContrastSelector]: {\n border: 'none',\n },\n },\n\n splitButtonDividerDisabled: {\n [HighContrastSelector]: {\n backgroundColor: 'Window',\n },\n },\n\n splitButtonDivider: {\n backgroundColor: p.neutralTertiaryAlt,\n },\n\n splitButtonMenuButton: {\n backgroundColor: p.white,\n border: 'none',\n borderTopRightRadius: '0',\n borderBottomRightRadius: '0',\n color: p.neutralSecondary,\n ':hover': {\n backgroundColor: p.neutralLighter,\n color: p.neutralDark,\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n ':active': {\n backgroundColor: p.neutralLight,\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: p.neutralPrimary,\n },\n },\n },\n\n splitButtonMenuButtonDisabled: {\n backgroundColor: p.white,\n [HighContrastSelector]: {\n color: 'GrayText',\n border: 'none',\n backgroundColor: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n splitButtonMenuButtonChecked: {\n backgroundColor: p.neutralLight,\n color: p.neutralDark,\n ':hover': {\n backgroundColor: p.neutralQuaternaryAlt,\n },\n },\n\n splitButtonMenuButtonExpanded: {\n backgroundColor: p.neutralLight,\n color: p.black,\n ':hover': {\n backgroundColor: p.neutralQuaternaryAlt,\n },\n },\n\n splitButtonMenuIcon: {\n color: p.neutralPrimary,\n },\n\n splitButtonMenuIconDisabled: {\n color: p.neutralTertiary,\n },\n\n label: {\n fontWeight: 'normal', // theme.fontWeights.semibold,\n },\n\n icon: {\n color: p.themePrimary,\n },\n\n menuIcon: {\n color: p.neutralSecondary,\n },\n };\n\n return concatStyleSets(baseButtonStyles, baseSplitButtonStyles, commandButtonStyles, customStyles)!;\n },\n);\n","import * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './CommandBarButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('CommandBarButton', ['theme', 'styles'], true)\nexport class CommandBarButton extends React.Component {\n public render(): JSX.Element {\n const { styles, theme } = this.props;\n\n return (\n \n );\n }\n}\n","import { ActionButton } from '../ActionButton/ActionButton';\n\n/**\n * {@docCategory Button}\n */\nexport const CommandButton = ActionButton;\n","import { concatStyleSets, FontWeights, HighContrastSelector, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';\nimport { primaryStyles, standardStyles } from '../ButtonThemes';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nexport const getStyles = memoizeFunction(\n (theme: ITheme, customStyles?: IButtonStyles, primary?: boolean): IButtonStyles => {\n const { fonts, palette } = theme;\n\n const baseButtonStyles: IButtonStyles = getBaseButtonStyles(theme);\n const splitButtonStyles: IButtonStyles = getSplitButtonStyles(theme);\n const compoundButtonStyles: IButtonStyles = {\n root: {\n maxWidth: '280px',\n minHeight: '72px',\n height: 'auto',\n padding: '16px 12px',\n },\n\n flexContainer: {\n flexDirection: 'row',\n alignItems: 'flex-start',\n minWidth: '100%',\n margin: '',\n },\n\n textContainer: {\n textAlign: 'left',\n },\n\n icon: {\n fontSize: '2em',\n lineHeight: '1em',\n height: '1em',\n margin: '0px 8px 0px 0px',\n flexBasis: '1em',\n flexShrink: '0',\n },\n\n label: {\n margin: '0 0 5px',\n lineHeight: '100%',\n fontWeight: FontWeights.semibold,\n },\n description: [\n fonts.small,\n {\n lineHeight: '100%',\n },\n ],\n };\n\n const standardCompoundTheme: IButtonStyles = {\n description: {\n color: palette.neutralSecondary,\n },\n\n descriptionHovered: {\n color: palette.neutralDark,\n },\n\n descriptionPressed: {\n color: 'inherit',\n },\n\n descriptionChecked: {\n color: 'inherit',\n },\n\n descriptionDisabled: {\n color: 'inherit',\n },\n };\n\n const primaryCompoundTheme: IButtonStyles = {\n description: {\n color: palette.white,\n [HighContrastSelector]: {\n backgroundColor: 'WindowText',\n color: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n descriptionHovered: {\n color: palette.white,\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n color: 'Window',\n },\n },\n\n descriptionPressed: {\n color: 'inherit',\n\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n descriptionChecked: {\n color: 'inherit',\n\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n descriptionDisabled: {\n color: 'inherit',\n [HighContrastSelector]: {\n color: 'inherit',\n },\n },\n };\n\n return concatStyleSets(\n baseButtonStyles,\n compoundButtonStyles,\n primary ? primaryStyles(theme) : standardStyles(theme),\n primary ? primaryCompoundTheme : standardCompoundTheme,\n splitButtonStyles,\n customStyles,\n )!;\n },\n);\n","import * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable } from '../../../Utilities';\nimport { getStyles } from './CompoundButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('CompoundButton', ['theme', 'styles'], true)\nexport class CompoundButton extends React.Component {\n public render(): JSX.Element {\n const { primary = false, styles, theme } = this.props;\n return (\n \n );\n }\n}\n","import { concatStyleSets, FontWeights } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';\n\nimport { primaryStyles, standardStyles } from '../ButtonThemes';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nconst DEFAULT_BUTTON_MIN_HEIGHT = '32px';\nconst DEFAULT_BUTTON_MIN_WIDTH = '80px';\n\nexport const getStyles = memoizeFunction(\n (theme: ITheme, customStyles?: IButtonStyles, primary?: boolean): IButtonStyles => {\n const baseButtonStyles: IButtonStyles = getBaseButtonStyles(theme);\n const splitButtonStyles: IButtonStyles = getSplitButtonStyles(theme);\n const defaultButtonStyles: IButtonStyles = {\n root: {\n minWidth: DEFAULT_BUTTON_MIN_WIDTH,\n minHeight: DEFAULT_BUTTON_MIN_HEIGHT,\n },\n label: {\n fontWeight: FontWeights.semibold,\n },\n };\n\n return concatStyleSets(\n baseButtonStyles,\n defaultButtonStyles,\n primary ? primaryStyles(theme) : standardStyles(theme),\n splitButtonStyles,\n customStyles,\n )!;\n },\n);\n","import * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './DefaultButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('DefaultButton', ['theme', 'styles'], true)\nexport class DefaultButton extends React.Component {\n public render(): JSX.Element {\n const { primary = false, styles, theme } = this.props;\n\n return (\n \n );\n }\n}\n","import { concatStyleSets, HighContrastSelector } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport { getStyles as getBaseButtonStyles } from '../BaseButton.styles';\nimport { getStyles as getSplitButtonStyles } from '../SplitButton/SplitButton.styles';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme } from '../../../Styling';\n\nexport const getStyles = memoizeFunction((theme: ITheme, customStyles?: IButtonStyles): IButtonStyles => {\n const baseButtonStyles: IButtonStyles = getBaseButtonStyles(theme);\n const splitButtonStyles: IButtonStyles = getSplitButtonStyles(theme);\n const { palette, semanticColors } = theme;\n const iconButtonStyles: IButtonStyles = {\n root: {\n padding: '0 4px',\n width: '32px',\n height: '32px',\n backgroundColor: 'transparent',\n border: 'none',\n color: semanticColors.link,\n },\n\n rootHovered: {\n color: palette.themeDarkAlt,\n backgroundColor: palette.neutralLighter,\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n color: 'Highlight',\n },\n },\n\n rootHasMenu: {\n width: 'auto',\n },\n\n rootPressed: {\n color: palette.themeDark,\n backgroundColor: palette.neutralLight,\n },\n\n rootExpanded: {\n color: palette.themeDark,\n backgroundColor: palette.neutralLight,\n },\n\n rootChecked: {\n color: palette.themeDark,\n backgroundColor: palette.neutralLight,\n },\n\n rootCheckedHovered: {\n color: palette.themeDark,\n backgroundColor: palette.neutralQuaternaryAlt,\n },\n\n rootDisabled: {\n color: palette.neutralTertiaryAlt,\n },\n };\n\n return concatStyleSets(baseButtonStyles, iconButtonStyles, splitButtonStyles, customStyles)!;\n});\n","import * as React from 'react';\nimport { BaseButton } from '../BaseButton';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { getStyles } from './IconButton.styles';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('IconButton', ['theme', 'styles'], true)\nexport class IconButton extends React.Component {\n public render(): JSX.Element {\n const { styles, theme } = this.props;\n\n return (\n \n );\n }\n}\n","import * as React from 'react';\nimport { customizable, nullRender } from '../../../Utilities';\nimport { DefaultButton } from '../DefaultButton/DefaultButton';\nimport type { IButtonProps } from '../Button.types';\n\n/**\n * {@docCategory Button}\n */\n@customizable('PrimaryButton', ['theme', 'styles'], true)\nexport class PrimaryButton extends React.Component {\n public render(): JSX.Element {\n return ;\n }\n}\n","import { HighContrastSelector, concatStyleSets, getFocusStyle, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { memoizeFunction } from '../../../Utilities';\nimport type { IButtonStyles } from '../Button.types';\nimport type { ITheme, IStyle } from '../../../Styling';\n\nexport const getStyles = memoizeFunction((theme: ITheme, customStyles?: IButtonStyles): IButtonStyles => {\n const { effects, palette, semanticColors } = theme;\n\n const buttonHighContrastFocus = {\n left: -2,\n top: -2,\n bottom: -2,\n right: -2,\n border: 'none',\n };\n\n const splitButtonDividerBaseStyles: IStyle = {\n position: 'absolute',\n width: 1,\n right: 31,\n top: 8,\n bottom: 8,\n };\n\n const splitButtonStyles: IButtonStyles = {\n splitButtonContainer: [\n getFocusStyle(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2, pointerEvents: 'none' }),\n {\n display: 'inline-flex',\n '.ms-Button--default': {\n borderTopRightRadius: '0',\n borderBottomRightRadius: '0',\n borderRight: 'none',\n flexGrow: '1',\n },\n '.ms-Button--primary': {\n borderTopRightRadius: '0',\n borderBottomRightRadius: '0',\n border: 'none',\n flexGrow: '1',\n\n ':hover': {\n border: 'none',\n },\n ':active': {\n border: 'none',\n },\n\n [HighContrastSelector]: {\n color: 'WindowText',\n backgroundColor: 'Window',\n border: '1px solid WindowText',\n borderRightWidth: '0',\n ...getHighContrastNoAdjustStyle(),\n ':hover': {\n backgroundColor: 'Highlight',\n border: '1px solid Highlight',\n borderRightWidth: '0',\n color: 'HighlightText',\n },\n ':active': {\n border: '1px solid Highlight',\n },\n },\n },\n '.ms-Button--default + .ms-Button': {\n [HighContrastSelector]: {\n border: '1px solid WindowText',\n borderLeftWidth: '0',\n ':hover': {\n backgroundColor: 'HighlightText',\n borderColor: 'Highlight',\n color: 'Highlight',\n '.ms-Button-menuIcon': {\n backgroundColor: 'HighlightText',\n color: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n },\n '.ms-Button--default + .ms-Button[aria-expanded=\"true\"]': {\n [HighContrastSelector]: {\n backgroundColor: 'HighlightText',\n borderColor: 'Highlight',\n color: 'Highlight',\n '.ms-Button-menuIcon': {\n backgroundColor: 'HighlightText',\n color: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n '.ms-Button--primary + .ms-Button': {\n border: 'none',\n\n [HighContrastSelector]: {\n border: '1px solid WindowText',\n borderLeftWidth: '0',\n ':hover': {\n borderLeftWidth: '0',\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n color: 'HighlightText',\n '.ms-Button-menuIcon': {\n ...getHighContrastNoAdjustStyle(),\n color: 'HighlightText',\n },\n },\n },\n },\n '.ms-Button--primary + .ms-Button[aria-expanded=\"true\"]': {\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n color: 'HighlightText',\n ...getHighContrastNoAdjustStyle(),\n '.ms-Button-menuIcon': {\n color: 'HighlightText',\n },\n },\n },\n '.ms-Button.is-disabled': {\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n },\n ],\n splitButtonContainerHovered: {\n '.ms-Button--default.is-disabled': {\n backgroundColor: semanticColors.buttonBackgroundDisabled,\n color: semanticColors.buttonTextDisabled,\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n '.ms-Button--primary.is-disabled': {\n backgroundColor: semanticColors.primaryButtonBackgroundDisabled,\n color: semanticColors.primaryButtonTextDisabled,\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n },\n splitButtonContainerChecked: {\n '.ms-Button--primary': {\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n splitButtonContainerCheckedHovered: {\n '.ms-Button--primary': {\n [HighContrastSelector]: {\n color: 'Window',\n backgroundColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n splitButtonContainerFocused: {\n outline: 'none!important',\n },\n splitButtonMenuButton: {\n padding: 6,\n height: 'auto',\n boxSizing: 'border-box',\n borderRadius: 0,\n borderTopRightRadius: effects.roundedCorner2,\n borderBottomRightRadius: effects.roundedCorner2,\n border: `1px solid ${palette.neutralSecondaryAlt}`,\n borderLeft: 'none',\n outline: 'transparent',\n userSelect: 'none',\n display: 'inline-block',\n textDecoration: 'none',\n textAlign: 'center',\n cursor: 'pointer',\n verticalAlign: 'top',\n width: 32,\n marginLeft: -1,\n marginTop: 0,\n marginRight: 0,\n marginBottom: 0,\n [HighContrastSelector]: {\n '.ms-Button-menuIcon': {\n color: 'WindowText',\n },\n },\n },\n splitButtonDivider: {\n ...splitButtonDividerBaseStyles,\n\n [HighContrastSelector]: {\n backgroundColor: 'WindowText',\n },\n },\n splitButtonDividerDisabled: {\n ...splitButtonDividerBaseStyles,\n\n [HighContrastSelector]: {\n backgroundColor: 'GrayText',\n },\n },\n splitButtonMenuButtonDisabled: {\n pointerEvents: 'none',\n border: 'none',\n\n ':hover': {\n cursor: 'default',\n },\n\n '.ms-Button--primary': {\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n },\n },\n '.ms-Button-menuIcon': {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n [HighContrastSelector]: {\n color: 'GrayText',\n border: '1px solid GrayText',\n backgroundColor: 'Window',\n },\n },\n\n splitButtonFlexContainer: {\n display: 'flex',\n height: '100%',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n splitButtonContainerDisabled: {\n outline: 'none',\n border: 'none',\n [HighContrastSelector]: {\n color: 'GrayText',\n borderColor: 'GrayText',\n backgroundColor: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n splitButtonMenuFocused: {\n ...getFocusStyle(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2 }),\n },\n };\n\n return concatStyleSets(splitButtonStyles, customStyles)!;\n});\n","import { DirectionalHint } from '../../common/DirectionalHint';\nimport { getScrollbarWidth, getRTL, getWindow } from '../../Utilities';\nimport { RectangleEdge } from './positioning.types';\nimport { Rectangle } from '../../Utilities';\nimport type { IRectangle, Point } from '../../Utilities';\nimport type {\n IPositionDirectionalHintData,\n IPositionedData,\n ICalloutPositionedInfo,\n ICalloutBeakPositionedInfo,\n IPositionProps,\n ICalloutPositionProps,\n IWindowWithSegments,\n} from './positioning.types';\n\nfunction _createPositionData(\n targetEdge: RectangleEdge,\n alignmentEdge?: RectangleEdge,\n isAuto?: boolean,\n): IPositionDirectionalHintData {\n return {\n targetEdge,\n alignmentEdge,\n isAuto,\n };\n}\n\n// Currently the beakPercent is set to 50 for all positions meaning that it should tend to the center of the target\nconst DirectionalDictionary: { [key: number]: IPositionDirectionalHintData } = {\n [DirectionalHint.topLeftEdge]: _createPositionData(RectangleEdge.top, RectangleEdge.left),\n [DirectionalHint.topCenter]: _createPositionData(RectangleEdge.top),\n [DirectionalHint.topRightEdge]: _createPositionData(RectangleEdge.top, RectangleEdge.right),\n [DirectionalHint.topAutoEdge]: _createPositionData(RectangleEdge.top, undefined, true),\n [DirectionalHint.bottomLeftEdge]: _createPositionData(RectangleEdge.bottom, RectangleEdge.left),\n [DirectionalHint.bottomCenter]: _createPositionData(RectangleEdge.bottom),\n [DirectionalHint.bottomRightEdge]: _createPositionData(RectangleEdge.bottom, RectangleEdge.right),\n [DirectionalHint.bottomAutoEdge]: _createPositionData(RectangleEdge.bottom, undefined, true),\n [DirectionalHint.leftTopEdge]: _createPositionData(RectangleEdge.left, RectangleEdge.top),\n [DirectionalHint.leftCenter]: _createPositionData(RectangleEdge.left),\n [DirectionalHint.leftBottomEdge]: _createPositionData(RectangleEdge.left, RectangleEdge.bottom),\n [DirectionalHint.rightTopEdge]: _createPositionData(RectangleEdge.right, RectangleEdge.top),\n [DirectionalHint.rightCenter]: _createPositionData(RectangleEdge.right),\n [DirectionalHint.rightBottomEdge]: _createPositionData(RectangleEdge.right, RectangleEdge.bottom),\n};\n\n/**\n * Do not call methods from this directly, use either positionCallout or positionElement or make another function that\n * utilizes them.\n * START Private functions and interfaces\n */\n\nexport interface IElementPosition {\n elementRectangle: Rectangle;\n targetEdge: RectangleEdge;\n alignmentEdge: RectangleEdge | undefined;\n forcedInBounds?: boolean;\n}\n\nexport interface IElementPositionInfo extends IElementPosition {\n targetRectangle: Rectangle;\n}\n\ntype PartialIRectangle = Partial;\n\ninterface IPartialIRectangle extends PartialIRectangle {\n [key: string]: number | undefined;\n}\n\nfunction _isRectangleWithinBounds(rect: Rectangle, boundingRect: Rectangle): boolean {\n if (rect.top < boundingRect.top) {\n return false;\n }\n if (rect.bottom > boundingRect.bottom) {\n return false;\n }\n if (rect.left < boundingRect.left) {\n return false;\n }\n if (rect.right > boundingRect.right) {\n return false;\n }\n\n return true;\n}\n\n/**\n * Gets all of the edges of a rectangle that are outside of the given bounds.\n * If there are no out of bounds edges it returns an empty array.\n */\nfunction _getOutOfBoundsEdges(rect: Rectangle, boundingRect: Rectangle): RectangleEdge[] {\n const outOfBounds: RectangleEdge[] = [];\n\n if (rect.top < boundingRect.top) {\n outOfBounds.push(RectangleEdge.top);\n }\n if (rect.bottom > boundingRect.bottom) {\n outOfBounds.push(RectangleEdge.bottom);\n }\n if (rect.left < boundingRect.left) {\n outOfBounds.push(RectangleEdge.left);\n }\n if (rect.right > boundingRect.right) {\n outOfBounds.push(RectangleEdge.right);\n }\n\n return outOfBounds;\n}\n\nfunction _getEdgeValue(rect: Rectangle, edge: RectangleEdge): number {\n return (rect as any)[RectangleEdge[edge]] as number;\n}\n\nfunction _setEdgeValue(rect: Rectangle, edge: RectangleEdge, value: number) {\n (rect as any)[RectangleEdge[edge]] = value;\n return rect;\n}\n\n/**\n * Returns the middle value of an edge. Only returns 1 value rather than xy coordinates as\n * the itself already contains the other coordinate.\n * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x.\n */\nfunction _getCenterValue(rect: Rectangle, edge: RectangleEdge): number {\n const edges = _getFlankingEdges(edge);\n return (_getEdgeValue(rect, edges.positiveEdge) + _getEdgeValue(rect, edges.negativeEdge)) / 2;\n}\n\n/**\n * Flips the value depending on the edge.\n * If the edge is a \"positive\" edge, Top or Left, then the value should stay as it is.\n * If the edge is a \"negative\" edge, Bottom or Right, then the value should be flipped.\n * This is to account for the fact that the coordinates are effectively reserved in certain cases for the\n * \"negative\" edges.\n *\n * For example, when testing to see if a bottom edge 1 is within the bounds of another bottom edge 2:\n * 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.\n * If top edge 1 is less than edge 2 then it is out of bounds.\n */\nfunction _getRelativeEdgeValue(edge: RectangleEdge, value: number): number {\n if (edge > 0) {\n return value;\n } else {\n return value * -1;\n }\n}\n\nfunction _getRelativeRectEdgeValue(edge: RectangleEdge, rect: Rectangle): number {\n return _getRelativeEdgeValue(edge, _getEdgeValue(rect, edge));\n}\n\nfunction _getRelativeEdgeDifference(rect: Rectangle, hostRect: Rectangle, edge: RectangleEdge): number {\n const edgeDifference = _getEdgeValue(rect, edge) - _getEdgeValue(hostRect, edge);\n return _getRelativeEdgeValue(edge, edgeDifference);\n}\n\n/**\n * Moves the edge of a rectangle to the value given. It only moves the edge in a linear direction based on that edge.\n * For example, if it's a bottom edge it will only change y coordinates.\n * if maintainSize is set to false, it will only adjust the specified edge value\n */\nfunction _moveEdge(rect: Rectangle, edge: RectangleEdge, newValue: number, maintainSize = true): Rectangle {\n const difference = _getEdgeValue(rect, edge) - newValue;\n let returnRect = _setEdgeValue(rect, edge, newValue);\n if (maintainSize) {\n returnRect = _setEdgeValue(rect, edge * -1, _getEdgeValue(rect, edge * -1) - difference);\n }\n return returnRect;\n}\n\n/**\n * 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.\n */\nfunction _alignEdges(rect: Rectangle, target: Rectangle, edge: RectangleEdge, gap: number = 0): Rectangle {\n return _moveEdge(rect, edge, _getEdgeValue(target, edge) + _getRelativeEdgeValue(edge, gap));\n}\n\n/**\n * Aligns the targetEdge on the passed in target to the rects corresponding opposite edge.\n * For instance if targetEdge is bottom, then the rects top will be moved to match it.\n */\nfunction _alignOppositeEdges(\n rect: Rectangle,\n target: Rectangle,\n targetEdge: RectangleEdge,\n gap: number = 0,\n): Rectangle {\n const oppositeEdge = targetEdge * -1;\n const adjustedGap = _getRelativeEdgeValue(oppositeEdge, gap);\n return _moveEdge(rect, targetEdge * -1, _getEdgeValue(target, targetEdge) + adjustedGap);\n}\n\n/**\n * Tests to see if the given edge is within the bounds of the given rectangle.\n */\nfunction _isEdgeInBounds(rect: Rectangle, bounds: Rectangle, edge: RectangleEdge): boolean {\n const adjustedRectValue = _getRelativeRectEdgeValue(edge, rect);\n return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds);\n}\n\n/**\n * Returns a measure of how much a rectangle is out of bounds for a given alignment;\n * this can be used to compare which rectangle is more or less out of bounds.\n * A value of 0 means the rectangle is entirely in bounds\n */\nfunction _getOutOfBoundsDegree(rect: Rectangle, bounds: Rectangle) {\n const breakingEdges = _getOutOfBoundsEdges(rect, bounds);\n let total = 0;\n for (const edge of breakingEdges) {\n total += _getRelativeEdgeDifference(rect, bounds, edge) ** 2;\n }\n\n return total;\n}\n\n/**\n * Returns true if scroll-resizing will move the target edge within the bounding rectangle,\n * and there is room between the target edge and the bounding edge for scrolled content.\n * Returns false otherwise.\n */\nfunction _canScrollResizeToFitEdge(\n target: Rectangle,\n bounding: Rectangle,\n targetEdge: RectangleEdge,\n minimumScrollResizeHeight = 200,\n) {\n // Only scroll vertically to fit - cannot scroll to fit right or left edges\n if (targetEdge !== RectangleEdge.bottom && targetEdge !== RectangleEdge.top) {\n return false;\n }\n\n return _getRelativeEdgeDifference(target, bounding, targetEdge) >= minimumScrollResizeHeight;\n}\n\n/**\n * Attempts to move the rectangle through various sides of the target to find a place to fit.\n * If no fit is found, the least bad option should be returned.\n */\nfunction _flipToFit(\n rect: Rectangle,\n target: Rectangle,\n bounding: Rectangle,\n positionData: IPositionDirectionalHintData,\n shouldScroll = false,\n minimumScrollResizeHeight?: number,\n gap: number = 0,\n): IElementPosition {\n const directions: RectangleEdge[] = [\n RectangleEdge.left,\n RectangleEdge.right,\n RectangleEdge.bottom,\n RectangleEdge.top,\n ];\n // In RTL page, RectangleEdge.right has a higher priority than RectangleEdge.left, so the order should be updated.\n if (getRTL()) {\n directions[0] *= -1;\n directions[1] *= -1;\n }\n let currentEstimate = rect;\n let currentEdge = positionData.targetEdge;\n let currentAlignment = positionData.alignmentEdge;\n\n // keep track of least bad option, in case no sides fit\n let oobDegree;\n let bestEdge = currentEdge;\n let bestAlignment = currentAlignment;\n\n // Keep switching sides until one is found with enough space.\n // If all sides don't fit then return the unmodified element.\n for (let i = 0; i < 4; i++) {\n if (_isEdgeInBounds(currentEstimate, bounding, currentEdge)) {\n // Edge is in bounds, return current estimate\n return {\n elementRectangle: currentEstimate,\n targetEdge: currentEdge,\n alignmentEdge: currentAlignment,\n };\n } else if (shouldScroll && _canScrollResizeToFitEdge(target, bounding, currentEdge, minimumScrollResizeHeight)) {\n // Scrolling will allow edge to fit, move the estimate currentEdge inside the bounds and return\n switch (currentEdge) {\n case RectangleEdge.bottom:\n currentEstimate.bottom = bounding.bottom;\n break;\n case RectangleEdge.top:\n currentEstimate.top = bounding.top;\n break;\n }\n\n return {\n elementRectangle: currentEstimate,\n targetEdge: currentEdge,\n alignmentEdge: currentAlignment,\n forcedInBounds: true,\n };\n } else {\n // update least-bad edges\n const currentOOBDegree = _getOutOfBoundsDegree(currentEstimate, bounding);\n if (!oobDegree || currentOOBDegree < oobDegree) {\n oobDegree = currentOOBDegree;\n bestEdge = currentEdge;\n bestAlignment = currentAlignment;\n }\n\n directions.splice(directions.indexOf(currentEdge), 1);\n if (directions.length > 0) {\n if (directions.indexOf(currentEdge * -1) > -1) {\n currentEdge = currentEdge * -1;\n } else {\n currentAlignment = currentEdge;\n currentEdge = directions.slice(-1)[0];\n }\n currentEstimate = _estimatePosition(\n rect,\n target,\n { targetEdge: currentEdge, alignmentEdge: currentAlignment },\n gap,\n );\n }\n }\n }\n\n // nothing fits, use least-bad option\n currentEstimate = _estimatePosition(rect, target, { targetEdge: bestEdge, alignmentEdge: bestAlignment }, gap);\n return {\n elementRectangle: currentEstimate,\n targetEdge: bestEdge,\n alignmentEdge: bestAlignment,\n };\n}\n\n/**\n * Flips only the alignment edge of an element rectangle. This is used instead of nudging the alignment edges\n * into position, when `alignTargetEdge` is specified.\n */\nfunction _flipAlignmentEdge(\n elementEstimate: IElementPosition,\n target: Rectangle,\n gap: number,\n coverTarget?: boolean,\n): IElementPosition {\n const { alignmentEdge, targetEdge, elementRectangle } = elementEstimate;\n const oppositeEdge = alignmentEdge! * -1;\n const newEstimate = _estimatePosition(\n elementRectangle,\n target,\n { targetEdge, alignmentEdge: oppositeEdge },\n gap,\n coverTarget,\n );\n\n return {\n elementRectangle: newEstimate,\n targetEdge,\n alignmentEdge: oppositeEdge,\n };\n}\n\n/**\n * Adjusts a element rectangle to fit within the bounds given. If directionalHintFixed or covertarget is passed in\n * then the element will not flip sides on the target. They will, however, be nudged to fit within the bounds given.\n */\nfunction _adjustFitWithinBounds(\n element: Rectangle,\n target: Rectangle,\n bounding: Rectangle,\n positionData: IPositionDirectionalHintData,\n shouldScroll = false,\n minimumScrollResizeHeight?: number,\n gap: number = 0,\n directionalHintFixed?: boolean,\n coverTarget?: boolean,\n): IElementPosition {\n const { alignmentEdge, alignTargetEdge } = positionData;\n let elementEstimate: IElementPosition = {\n elementRectangle: element,\n targetEdge: positionData.targetEdge,\n alignmentEdge,\n };\n\n if (!directionalHintFixed && !coverTarget) {\n elementEstimate = _flipToFit(element, target, bounding, positionData, shouldScroll, minimumScrollResizeHeight, gap);\n }\n const outOfBounds = _getOutOfBoundsEdges(elementEstimate.elementRectangle, bounding);\n // if directionalHintFixed is specified, we need to force the target edge to not change\n // we need *-1 because targetEdge refers to the target's edge; the callout edge is the opposite\n const fixedEdge = directionalHintFixed ? -elementEstimate.targetEdge : undefined;\n\n if (outOfBounds.length > 0) {\n if (alignTargetEdge) {\n // The edge opposite to the alignment edge might be out of bounds.\n // Flip alignment to see if we can get it within bounds.\n if (elementEstimate.alignmentEdge && outOfBounds.indexOf(elementEstimate.alignmentEdge * -1) > -1) {\n const flippedElementEstimate = _flipAlignmentEdge(elementEstimate, target, gap, coverTarget);\n if (_isRectangleWithinBounds(flippedElementEstimate.elementRectangle, bounding)) {\n return flippedElementEstimate;\n } else {\n // If the flipped elements edges are still out of bounds, try nudging it.\n elementEstimate = _alignOutOfBoundsEdges(\n _getOutOfBoundsEdges(flippedElementEstimate.elementRectangle, bounding),\n elementEstimate,\n bounding,\n fixedEdge,\n );\n }\n } else {\n elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge);\n }\n } else {\n elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding, fixedEdge);\n }\n }\n\n return elementEstimate;\n}\n\n/**\n * Iterates through a list of out of bounds edges and tries to nudge and align them.\n * @param outOfBoundsEdges - Array of edges that are out of bounds\n * @param elementEstimate - The current element positioning estimate\n * @param bounding - The current bounds\n * @param preserveEdge - Specify an edge that should not be modified\n */\nfunction _alignOutOfBoundsEdges(\n outOfBoundsEdges: RectangleEdge[],\n elementEstimate: IElementPosition,\n bounding: Rectangle,\n preserveEdge?: RectangleEdge,\n) {\n for (const direction of outOfBoundsEdges) {\n let edgeAttempt;\n\n // if preserveEdge is specified, do not call _alignEdges, skip directly to _moveEdge\n // this is because _alignEdges will move the opposite edge\n if (preserveEdge && preserveEdge === direction * -1) {\n edgeAttempt = _moveEdge(elementEstimate.elementRectangle, direction, _getEdgeValue(bounding, direction), false);\n elementEstimate.forcedInBounds = true;\n } else {\n edgeAttempt = _alignEdges(elementEstimate.elementRectangle, bounding, direction);\n const inBounds = _isEdgeInBounds(edgeAttempt, bounding, direction * -1);\n // only update estimate if the attempt didn't break out of the opposite bounding edge\n if (!inBounds) {\n edgeAttempt = _moveEdge(edgeAttempt, direction * -1, _getEdgeValue(bounding, direction * -1), false);\n elementEstimate.forcedInBounds = true;\n }\n }\n\n elementEstimate.elementRectangle = edgeAttempt;\n }\n\n return elementEstimate;\n}\n\n/**\n * Moves the middle point on an edge to the point given.\n * Only moves in one direction. For instance if a bottom edge is passed in, then\n * the bottom edge will be moved in the x axis to match the point.\n */\nfunction _centerEdgeToPoint(rect: Rectangle, edge: RectangleEdge, point: number): Rectangle {\n const { positiveEdge } = _getFlankingEdges(edge);\n const elementMiddle = _getCenterValue(rect, edge);\n const distanceToMiddle = elementMiddle - _getEdgeValue(rect, positiveEdge);\n return _moveEdge(rect, positiveEdge, point - distanceToMiddle);\n}\n\n/**\n * Moves the element rectangle to be appropriately positioned relative to a given target.\n * Does not flip or adjust the element.\n */\nfunction _estimatePosition(\n elementToPosition: Rectangle,\n target: Rectangle,\n positionData: IPositionDirectionalHintData,\n gap: number = 0,\n coverTarget?: boolean,\n): Rectangle {\n let estimatedElementPosition = new Rectangle(\n elementToPosition.left,\n elementToPosition.right,\n elementToPosition.top,\n elementToPosition.bottom,\n );\n const { alignmentEdge, targetEdge } = positionData;\n const elementEdge = coverTarget ? targetEdge : targetEdge * -1;\n estimatedElementPosition = coverTarget\n ? _alignEdges(estimatedElementPosition, target, targetEdge, gap)\n : _alignOppositeEdges(estimatedElementPosition, target, targetEdge, gap);\n // if no alignment edge is provided it's supposed to be centered.\n if (!alignmentEdge) {\n const targetMiddlePoint = _getCenterValue(target, targetEdge);\n estimatedElementPosition = _centerEdgeToPoint(estimatedElementPosition, elementEdge, targetMiddlePoint);\n } else {\n estimatedElementPosition = _alignEdges(estimatedElementPosition, target, alignmentEdge);\n }\n\n return estimatedElementPosition;\n}\n\n/**\n * Returns the non-opposite edges of the target edge.\n * For instance if bottom is passed in then left and right will be returned.\n */\nfunction _getFlankingEdges(edge: RectangleEdge): { positiveEdge: RectangleEdge; negativeEdge: RectangleEdge } {\n if (edge === RectangleEdge.top || edge === RectangleEdge.bottom) {\n return {\n positiveEdge: RectangleEdge.left,\n negativeEdge: RectangleEdge.right,\n };\n } else {\n return {\n positiveEdge: RectangleEdge.top,\n negativeEdge: RectangleEdge.bottom,\n };\n }\n}\n\n/**\n * Retrieve the final value for the return edge of `elementRectangle`. If the `elementRectangle` is closer to one side\n * of the bounds versus the other, the return edge is flipped to grow inward.\n */\nfunction _finalizeReturnEdge(\n elementRectangle: Rectangle,\n returnEdge: RectangleEdge,\n bounds?: Rectangle,\n): RectangleEdge {\n if (\n bounds &&\n Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge)) >\n Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge * -1))\n ) {\n return returnEdge * -1;\n }\n\n return returnEdge;\n}\n\n/**\n * Whether or not the considered edge of the elementRectangle is lying on the edge of the bounds\n * @param elementRectangle The rectangle whose edge we are considering\n * @param bounds The rectangle marking the bounds\n * @param edge The target edge we're considering\n * @returns If the target edge of the elementRectangle is in the same location as that edge of the bounds\n */\nfunction _isEdgeOnBounds(elementRectangle: Rectangle, edge: RectangleEdge, bounds?: Rectangle): boolean {\n return bounds !== undefined && _getEdgeValue(elementRectangle, edge) === _getEdgeValue(bounds, edge);\n}\n\n/**\n * Finalizes the element position based on the hostElement. Only returns the\n * rectangle values to position such that they are anchored to the target.\n * This helps prevent resizing from looking very strange.\n * For instance, if the target edge is top and aligned with the left side then\n * the bottom and left values are returned so as the Callout shrinks it shrinks towards that corner.\n */\nfunction _finalizeElementPosition(\n elementRectangle: Rectangle,\n hostElement: HTMLElement,\n targetEdge: RectangleEdge,\n bounds?: Rectangle,\n alignmentEdge?: RectangleEdge,\n coverTarget?: boolean,\n doNotFinalizeReturnEdge?: boolean,\n forceWithinBounds?: boolean,\n): IPartialIRectangle {\n const returnValue: IPartialIRectangle = {};\n\n const hostRect: Rectangle = _getRectangleFromElement(hostElement);\n const elementEdge = coverTarget ? targetEdge : targetEdge * -1;\n let returnEdge = alignmentEdge ? alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge;\n\n // If we are finalizing the return edge, choose the edge such that we grow away from the bounds\n // If we are not finalizing the return edge but the opposite edge is flush against the bounds,\n // choose that as the anchor edge so the element rect can grow away from the bounds' edge\n // In this case there will not be a visual difference because there is no more room for the elementRectangle to grow\n // in the usual direction\n if (!doNotFinalizeReturnEdge || _isEdgeOnBounds(elementRectangle, getOppositeEdge(returnEdge), bounds)) {\n returnEdge = _finalizeReturnEdge(elementRectangle, returnEdge, bounds);\n }\n\n returnValue[RectangleEdge[elementEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge);\n returnValue[RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge);\n\n // if the positioned element will still overflow, return all four edges with in-bounds values\n if (forceWithinBounds) {\n returnValue[RectangleEdge[elementEdge * -1]] = _getRelativeEdgeDifference(\n elementRectangle,\n hostRect,\n elementEdge * -1,\n );\n returnValue[RectangleEdge[returnEdge * -1]] = _getRelativeEdgeDifference(\n elementRectangle,\n hostRect,\n returnEdge * -1,\n );\n }\n\n return returnValue;\n}\n\n// Since the beak is rotated 45 degrees the actual height/width is the length of the diagonal.\n// We still want to position the beak based on it's midpoint which does not change. It will\n// be at (beakwidth / 2, beakwidth / 2)\nfunction _calculateActualBeakWidthInPixels(beakWidth: number): number {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}\n\n/**\n * Returns the appropriate IPositionData based on the props altered for RTL.\n * If directionalHintForRTL is passed in that is used if the page is RTL.\n * If directionalHint is specified, no directionalHintForRTL is available, and the page is RTL, the hint will be\n * flipped (e.g. bottomLeftEdge would become bottomRightEdge).\n *\n * If there is no directionalHint passed in, bottomAutoEdge is chosen automatically.\n */\nfunction _getPositionData(\n directionalHint: DirectionalHint = DirectionalHint.bottomAutoEdge,\n directionalHintForRTL?: DirectionalHint,\n previousPositions?: IPositionDirectionalHintData,\n): IPositionDirectionalHintData {\n if (previousPositions) {\n return {\n alignmentEdge: previousPositions.alignmentEdge,\n isAuto: previousPositions.isAuto,\n targetEdge: previousPositions.targetEdge,\n };\n }\n const positionInformation: IPositionDirectionalHintData = { ...DirectionalDictionary[directionalHint] };\n if (getRTL()) {\n // If alignment edge exists and that alignment edge is -2 or 2, right or left, then flip it.\n if (positionInformation.alignmentEdge && positionInformation.alignmentEdge % 2 === 0) {\n positionInformation.alignmentEdge = positionInformation.alignmentEdge * -1;\n }\n\n return directionalHintForRTL !== undefined ? DirectionalDictionary[directionalHintForRTL] : positionInformation;\n }\n return positionInformation;\n}\n\n/**\n * Gets the alignment data for the given information. This only really matters if the positioning is Auto.\n * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to\n * the center of the page.\n */\nfunction _getAlignmentData(\n positionData: IPositionDirectionalHintData,\n target: Rectangle,\n boundingRect: Rectangle,\n coverTarget?: boolean,\n alignTargetEdge?: boolean,\n): IPositionDirectionalHintData {\n if (positionData.isAuto) {\n positionData.alignmentEdge = getClosestEdge(positionData.targetEdge, target, boundingRect);\n }\n\n positionData.alignTargetEdge = alignTargetEdge;\n return positionData;\n}\n\nfunction getClosestEdge(targetEdge: RectangleEdge, target: Rectangle, boundingRect: Rectangle): RectangleEdge {\n const targetCenter: number = _getCenterValue(target, targetEdge);\n const boundingCenter: number = _getCenterValue(boundingRect, targetEdge);\n const { positiveEdge, negativeEdge } = _getFlankingEdges(targetEdge);\n if (targetCenter <= boundingCenter) {\n return positiveEdge;\n } else {\n return negativeEdge;\n }\n}\n\nfunction _positionElementWithinBounds(\n elementToPosition: Rectangle,\n target: Rectangle,\n bounding: Rectangle,\n positionData: IPositionDirectionalHintData,\n gap: number,\n shouldScroll = false,\n minimumScrollResizeHeight?: number,\n directionalHintFixed?: boolean,\n coverTarget?: boolean,\n): IElementPosition {\n const estimatedElementPosition: Rectangle = _estimatePosition(\n elementToPosition,\n target,\n positionData,\n gap,\n coverTarget,\n );\n if (_isRectangleWithinBounds(estimatedElementPosition, bounding)) {\n return {\n elementRectangle: estimatedElementPosition,\n targetEdge: positionData.targetEdge,\n alignmentEdge: positionData.alignmentEdge,\n };\n } else {\n return _adjustFitWithinBounds(\n estimatedElementPosition,\n target,\n bounding,\n positionData,\n shouldScroll,\n minimumScrollResizeHeight,\n gap,\n directionalHintFixed,\n coverTarget,\n );\n }\n}\n\nfunction _finalizeBeakPosition(\n elementPosition: IElementPositionInfo,\n positionedBeak: Rectangle,\n bounds?: Rectangle,\n): ICalloutBeakPositionedInfo {\n const targetEdge = elementPosition.targetEdge * -1;\n // The \"host\" element that we will use to help position the beak.\n const actualElement = new Rectangle(\n 0,\n elementPosition.elementRectangle.width,\n 0,\n elementPosition.elementRectangle.height,\n );\n const returnValue: IPartialIRectangle = {};\n const returnEdge = _finalizeReturnEdge(\n elementPosition.elementRectangle,\n elementPosition.alignmentEdge ? elementPosition.alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge,\n bounds,\n );\n\n // only show the beak if the callout is not fully covering the target\n const beakEdgeDifference = _getRelativeEdgeDifference(\n elementPosition.elementRectangle,\n elementPosition.targetRectangle,\n targetEdge,\n );\n const showBeak = beakEdgeDifference > Math.abs(_getEdgeValue(positionedBeak, targetEdge));\n\n returnValue[RectangleEdge[targetEdge]] = _getEdgeValue(positionedBeak, targetEdge);\n returnValue[RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(positionedBeak, actualElement, returnEdge);\n\n return {\n elementPosition: { ...returnValue },\n closestEdge: getClosestEdge(elementPosition.targetEdge, positionedBeak, actualElement),\n targetEdge,\n hideBeak: !showBeak,\n };\n}\n\nfunction _positionBeak(beakWidth: number, elementPosition: IElementPositionInfo): Rectangle {\n const target = elementPosition.targetRectangle;\n /**\n * Note about beak positioning: The actual beak width only matters for getting the gap between the callout and\n * target, it does not impact the beak placement within the callout. For example example, if the beakWidth is 8,\n * then the actual beakWidth is sqrroot(8^2 + 8^2) = 11.31x11.31. So the callout will need to be an extra 3 pixels\n * away from its target. While the beak is being positioned in the callout it still acts as though it were 8x8.\n */\n const { positiveEdge, negativeEdge } = _getFlankingEdges(elementPosition.targetEdge);\n const beakTargetPoint = _getCenterValue(target, elementPosition.targetEdge);\n const elementBounds = new Rectangle(\n beakWidth / 2,\n elementPosition.elementRectangle.width - beakWidth / 2,\n beakWidth / 2,\n elementPosition.elementRectangle.height - beakWidth / 2,\n );\n\n let beakPosition: Rectangle = new Rectangle(0, beakWidth, 0, beakWidth);\n\n beakPosition = _moveEdge(beakPosition, elementPosition.targetEdge * -1, -beakWidth / 2);\n\n beakPosition = _centerEdgeToPoint(\n beakPosition,\n elementPosition.targetEdge * -1,\n beakTargetPoint - _getRelativeRectEdgeValue(positiveEdge, elementPosition.elementRectangle),\n );\n\n if (!_isEdgeInBounds(beakPosition, elementBounds, positiveEdge)) {\n beakPosition = _alignEdges(beakPosition, elementBounds, positiveEdge);\n } else if (!_isEdgeInBounds(beakPosition, elementBounds, negativeEdge)) {\n beakPosition = _alignEdges(beakPosition, elementBounds, negativeEdge);\n }\n return beakPosition;\n}\n\nfunction _getRectangleFromElement(element: Element): Rectangle {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const clientRect: ClientRect = element.getBoundingClientRect();\n\n return new Rectangle(clientRect.left, clientRect.right, clientRect.top, clientRect.bottom);\n}\n\nfunction _getRectangleFromIRect(rect: IRectangle): Rectangle {\n return new Rectangle(rect.left, rect.right, rect.top, rect.bottom);\n}\n\nfunction _getTargetRect(bounds: Rectangle, target: Element | MouseEvent | Point | Rectangle | undefined): Rectangle {\n let targetRectangle: Rectangle;\n if (target) {\n // eslint-disable-next-line no-extra-boolean-cast\n if (!!(target as MouseEvent).preventDefault) {\n const ev = target as MouseEvent;\n targetRectangle = new Rectangle(ev.clientX, ev.clientX, ev.clientY, ev.clientY);\n // eslint-disable-next-line no-extra-boolean-cast\n } else if (!!(target as Element).getBoundingClientRect) {\n targetRectangle = _getRectangleFromElement(target as Element);\n // HTMLImgElements can have x and y values. The check for it being a point must go last.\n } else {\n const rectOrPoint: Point & Rectangle = target as Point & Rectangle;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const left = rectOrPoint.left || rectOrPoint.x;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const top = rectOrPoint.top || rectOrPoint.y;\n const right = rectOrPoint.right || left;\n const bottom = rectOrPoint.bottom || top;\n targetRectangle = new Rectangle(left, right, top, bottom);\n }\n\n if (!_isRectangleWithinBounds(targetRectangle, bounds)) {\n const outOfBounds: RectangleEdge[] = _getOutOfBoundsEdges(targetRectangle, bounds);\n\n for (const direction of outOfBounds) {\n (targetRectangle as any)[RectangleEdge[direction]] = (bounds as any)[RectangleEdge[direction]];\n }\n }\n } else {\n targetRectangle = new Rectangle(0, 0, 0, 0);\n }\n\n return targetRectangle;\n}\n\n/**\n * If max height is less than zero it returns the bounds height instead.\n */\nfunction _getMaxHeightFromTargetRectangle(\n targetRectangle: Rectangle,\n targetEdge: DirectionalHint,\n gapSpace: number,\n bounds: Rectangle,\n coverTarget?: boolean,\n) {\n let maxHeight = 0;\n const directionalHint = DirectionalDictionary[targetEdge];\n\n // If cover target is set, then the max height should be calculated using the opposite of the target edge since\n // that's the direction that the callout will expand in.\n // For instance, if the directionalhint is bottomLeftEdge then the callout will position so it's bottom edge\n // is aligned with the bottom of the target and expand up towards the top of the screen and the calculated max height\n // is (bottom of target) - (top of screen) - gapSpace.\n const target = coverTarget ? directionalHint.targetEdge * -1 : directionalHint.targetEdge;\n\n if (target === RectangleEdge.top) {\n maxHeight = _getEdgeValue(targetRectangle, directionalHint.targetEdge) - bounds.top - gapSpace;\n } else if (target === RectangleEdge.bottom) {\n maxHeight = bounds.bottom - _getEdgeValue(targetRectangle, directionalHint.targetEdge) - gapSpace;\n } else {\n maxHeight = bounds.bottom - targetRectangle.top - gapSpace;\n }\n\n return maxHeight > 0 ? maxHeight : bounds.height;\n}\n\nfunction _positionElementRelative(\n props: IPositionProps,\n elementToPosition: HTMLElement,\n boundingRect: Rectangle,\n previousPositions?: IPositionedData,\n shouldScroll = false,\n minimumScrollResizeHeight?: number,\n): IElementPositionInfo {\n const gap: number = props.gapSpace ? props.gapSpace : 0;\n const targetRect: Rectangle = _getTargetRect(boundingRect, props.target);\n const positionData: IPositionDirectionalHintData = _getAlignmentData(\n _getPositionData(props.directionalHint, props.directionalHintForRTL, previousPositions)!,\n targetRect,\n boundingRect,\n props.coverTarget,\n props.alignTargetEdge,\n );\n const positionedElement: IElementPosition = _positionElementWithinBounds(\n _getRectangleFromElement(elementToPosition),\n targetRect,\n boundingRect,\n positionData,\n gap,\n shouldScroll,\n minimumScrollResizeHeight,\n props.directionalHintFixed,\n props.coverTarget,\n );\n return { ...positionedElement, targetRectangle: targetRect };\n}\n\nfunction _finalizePositionData(\n positionedElement: IElementPosition,\n hostElement: HTMLElement,\n bounds?: Rectangle,\n coverTarget?: boolean,\n doNotFinalizeReturnEdge?: boolean,\n): IPositionedData {\n const finalizedElement: IPartialIRectangle = _finalizeElementPosition(\n positionedElement.elementRectangle,\n hostElement,\n positionedElement.targetEdge,\n bounds,\n positionedElement.alignmentEdge,\n coverTarget,\n doNotFinalizeReturnEdge,\n positionedElement.forcedInBounds,\n );\n return {\n elementPosition: finalizedElement,\n targetEdge: positionedElement.targetEdge,\n alignmentEdge: positionedElement.alignmentEdge,\n };\n}\n\nfunction _positionElement(\n props: IPositionProps,\n hostElement: HTMLElement,\n elementToPosition: HTMLElement,\n previousPositions?: IPositionedData,\n win?: Window,\n): IPositionedData {\n const theWin = win ?? getWindow()!;\n const boundingRect: Rectangle = props.bounds\n ? _getRectangleFromIRect(props.bounds)\n : new Rectangle(0, theWin.innerWidth - getScrollbarWidth(), 0, theWin.innerHeight);\n const positionedElement: IElementPosition = _positionElementRelative(\n props,\n elementToPosition,\n boundingRect,\n previousPositions,\n );\n return _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget);\n}\n\nfunction _calculateGapSpace(isBeakVisible: boolean | undefined, beakWidth = 0, gapSpace = 0): number {\n return _calculateActualBeakWidthInPixels(isBeakVisible ? beakWidth : 0) / 2 + gapSpace;\n}\n\nfunction _positionCallout(\n props: ICalloutPositionProps,\n hostElement: HTMLElement,\n callout: HTMLElement,\n previousPositions?: ICalloutPositionedInfo,\n shouldScroll = false,\n minimumScrollResizeHeight?: number,\n doNotFinalizeReturnEdge?: boolean,\n win?: Window,\n): ICalloutPositionedInfo {\n const theWin = win ?? getWindow()!;\n const beakWidth: number = props.isBeakVisible ? props.beakWidth || 0 : 0;\n const gap = _calculateGapSpace(props.isBeakVisible, props.beakWidth, props.gapSpace);\n const positionProps: IPositionProps = props;\n positionProps.gapSpace = gap;\n const boundingRect: Rectangle = props.bounds\n ? _getRectangleFromIRect(props.bounds)\n : new Rectangle(0, theWin.innerWidth - getScrollbarWidth(), 0, theWin.innerHeight);\n\n const positionedElement: IElementPositionInfo = _positionElementRelative(\n positionProps,\n callout,\n boundingRect,\n previousPositions,\n shouldScroll,\n minimumScrollResizeHeight,\n );\n\n const beakPositioned: Rectangle = _positionBeak(beakWidth, positionedElement);\n const finalizedBeakPosition: ICalloutBeakPositionedInfo = _finalizeBeakPosition(\n positionedElement,\n beakPositioned,\n boundingRect,\n );\n\n return {\n ..._finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget, doNotFinalizeReturnEdge),\n beakPosition: finalizedBeakPosition,\n };\n}\n\nfunction _positionCard(\n props: ICalloutPositionProps,\n hostElement: HTMLElement,\n callout: HTMLElement,\n previousPositions?: ICalloutPositionedInfo,\n win?: Window,\n): ICalloutPositionedInfo {\n const theWin = win ?? getWindow()!;\n return _positionCallout(props, hostElement, callout, previousPositions, false, undefined, true, theWin);\n}\n\nfunction _getRectangleFromTarget(target: Element | MouseEvent | Point | Rectangle): Rectangle {\n const mouseTarget: MouseEvent = target as MouseEvent;\n const elementTarget: Element = target as Element;\n const rectOrPointTarget: Point & Rectangle = target as Point & Rectangle;\n let targetRect: Rectangle;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const left = rectOrPointTarget.left ?? rectOrPointTarget.x;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const top = rectOrPointTarget.top ?? rectOrPointTarget.y;\n const right = rectOrPointTarget.right ?? left;\n const bottom = rectOrPointTarget.bottom ?? top;\n\n // eslint-disable-next-line no-extra-boolean-cast -- may not actually be a MouseEvent\n if (!!mouseTarget.stopPropagation) {\n targetRect = new Rectangle(mouseTarget.clientX, mouseTarget.clientX, mouseTarget.clientY, mouseTarget.clientY);\n } else if (left !== undefined && top !== undefined) {\n targetRect = new Rectangle(left, right, top, bottom);\n } else {\n targetRect = _getRectangleFromElement(elementTarget);\n }\n\n return targetRect;\n}\n// END PRIVATE FUNCTIONS\n\nexport const __positioningTestPackage = {\n _finalizePositionData,\n _finalizeBeakPosition,\n _calculateActualBeakWidthInPixels,\n _positionElementWithinBounds,\n _positionBeak,\n _getPositionData,\n _getMaxHeightFromTargetRectangle,\n};\n\n/**\n * Used to position an element relative to the given positioning props.\n * If positioning has been completed before, previousPositions can be passed to ensure that the positioning element\n * repositions based on its previous targets rather than starting with directionalhint.\n */\nexport function positionElement(\n props: IPositionProps,\n hostElement: HTMLElement,\n elementToPosition: HTMLElement,\n previousPositions?: IPositionedData,\n win?: Window,\n): IPositionedData {\n return _positionElement(props, hostElement, elementToPosition, previousPositions, win);\n}\n\nexport function positionCallout(\n props: IPositionProps,\n hostElement: HTMLElement,\n elementToPosition: HTMLElement,\n previousPositions?: ICalloutPositionedInfo,\n shouldScroll?: boolean,\n minimumScrollResizeHeight?: number,\n win?: Window,\n): ICalloutPositionedInfo {\n return _positionCallout(\n props,\n hostElement,\n elementToPosition,\n previousPositions,\n shouldScroll,\n minimumScrollResizeHeight,\n undefined,\n win,\n );\n}\n\nexport function positionCard(\n props: IPositionProps,\n hostElement: HTMLElement,\n elementToPosition: HTMLElement,\n previousPositions?: ICalloutPositionedInfo,\n win?: Window,\n): ICalloutPositionedInfo {\n return _positionCard(props, hostElement, elementToPosition, previousPositions, win);\n}\n\n/**\n * Gets the maximum height that a rectangle can have in order to fit below or above a target.\n * If the directional hint specifies a left or right edge (i.e. leftCenter) it will limit the height to the topBorder\n * of the target given.\n * If no bounds are provided then the window is treated as the bounds.\n */\nexport function getMaxHeight(\n target: Element | MouseEvent | Point | Rectangle,\n targetEdge: DirectionalHint,\n gapSpace: number = 0,\n bounds?: IRectangle,\n coverTarget?: boolean,\n win?: Window,\n): number {\n const theWin = win ?? getWindow()!;\n const targetRect = _getRectangleFromTarget(target);\n const boundingRectangle = bounds\n ? _getRectangleFromIRect(bounds)\n : new Rectangle(0, theWin.innerWidth - getScrollbarWidth(), 0, theWin.innerHeight);\n\n return _getMaxHeightFromTargetRectangle(targetRect, targetEdge, gapSpace, boundingRectangle, coverTarget);\n}\n\n/**\n * Returns the opposite edge of the given RectangleEdge.\n */\nexport function getOppositeEdge(edge: RectangleEdge): RectangleEdge {\n return edge * -1;\n}\n\nfunction _getBoundsFromTargetWindow(\n target: Element | MouseEvent | Point | Rectangle | null,\n targetWindow: IWindowWithSegments,\n): IRectangle {\n let segments = undefined;\n if (targetWindow.getWindowSegments) {\n segments = targetWindow.getWindowSegments();\n }\n\n // Identify if we're dealing with single screen scenarios.\n if (segments === undefined || segments.length <= 1) {\n return {\n top: 0,\n left: 0,\n right: targetWindow.innerWidth,\n bottom: targetWindow.innerHeight,\n width: targetWindow.innerWidth,\n height: targetWindow.innerHeight,\n };\n }\n\n // Logic for determining dual screen scenarios.\n let x: number | undefined = 0;\n let y: number | undefined = 0;\n\n // If the target is an Element get coordinates for its center.\n if (target !== null && !!(target as Element).getBoundingClientRect) {\n const clientRect = (target as Element).getBoundingClientRect();\n x = (clientRect.left + clientRect.right) / 2;\n y = (clientRect.top + clientRect.bottom) / 2;\n }\n // If the target is not null get x-axis and y-axis coordinates directly.\n else if (target !== null) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n x = (target as Point).left || (target as MouseEvent | Point).x;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n y = (target as Point).top || (target as MouseEvent | Point).y;\n }\n\n let bounds = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 };\n\n // Define which window segment are the coordinates in and calculate bounds based on that.\n for (const segment of segments) {\n if (x && segment.left <= x && segment.right >= x && y && segment.top <= y && segment.bottom >= y) {\n bounds = {\n top: segment.top,\n left: segment.left,\n right: segment.right,\n bottom: segment.bottom,\n width: segment.width,\n height: segment.height,\n };\n }\n }\n\n return bounds;\n}\n\nexport function getBoundsFromTargetWindow(\n target: Element | MouseEvent | Point | Rectangle | null,\n targetWindow: IWindowWithSegments,\n): IRectangle {\n return _getBoundsFromTargetWindow(target, targetWindow);\n}\n\nexport function calculateGapSpace(\n isBeakVisible: boolean | undefined,\n beakWidth: number | undefined,\n gapSpace: number | undefined,\n): number {\n return _calculateGapSpace(isBeakVisible, beakWidth, gapSpace);\n}\n\nexport function getRectangleFromTarget(target: Element | MouseEvent | Point | Rectangle): Rectangle {\n return _getRectangleFromTarget(target);\n}\n","import * as React from 'react';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport {\n css,\n divProperties,\n elementContains,\n focusFirstChild,\n getNativeProps,\n on,\n shallowCompare,\n getPropsWithDefaults,\n Async,\n} from '../../Utilities';\nimport { calculateGapSpace, getRectangleFromTarget } from '../../utilities/positioning/positioning';\nimport { positionCallout, RectangleEdge, positionCard, getBoundsFromTargetWindow } from '../../Positioning';\nimport { Popup } from '../../Popup';\nimport { classNamesFunction } from '../../Utilities';\nimport { AnimationClassNames } from '../../Styling';\nimport { useMergedRefs, useAsync, useConst, useTarget, useOnEvent } from '@fluentui/react-hooks';\nimport type { ICalloutProps, ICalloutContentStyleProps, ICalloutContentStyles } from './Callout.types';\nimport type { Point, IRectangle } from '../../Utilities';\nimport type { ICalloutPositionedInfo, IPositionProps, IPosition } from '../../Positioning';\nimport type { Target } from '@fluentui/react-hooks';\nimport { useWindowEx } from '../../utilities/dom';\n\nconst COMPONENT_NAME = 'CalloutContentBase';\n\nconst ANIMATIONS: { [key: number]: string | undefined } = {\n [RectangleEdge.top]: AnimationClassNames.slideUpIn10,\n [RectangleEdge.bottom]: AnimationClassNames.slideDownIn10,\n [RectangleEdge.left]: AnimationClassNames.slideLeftIn10,\n [RectangleEdge.right]: AnimationClassNames.slideRightIn10,\n};\n\nconst BEAK_ORIGIN_POSITION = { top: 0, left: 0 };\n// Microsoft Edge will overwrite inline styles if there is an animation pertaining to that style.\n// To help ensure that edge will respect the offscreen style opacity\n// filter needs to be added as an additional way to set opacity.\n// Also set pointer-events: none so that the callout will not occlude the element it is\n// going to be positioned against\nconst OFF_SCREEN_STYLE: React.CSSProperties = {\n opacity: 0,\n filter: 'opacity(0)',\n pointerEvents: 'none',\n};\n// role and role description go hand-in-hand. Both would be included by spreading getNativeProps for a basic element\n// This constant array can be used to filter these out of native props spread on callout root and apply them together on\n// calloutMain (the Popup component within the callout)\nconst ARIA_ROLE_ATTRIBUTES = ['role', 'aria-roledescription'];\n\nconst DEFAULT_PROPS = {\n preventDismissOnLostFocus: false,\n preventDismissOnScroll: false,\n preventDismissOnResize: false,\n isBeakVisible: true,\n beakWidth: 16,\n gapSpace: 0,\n minPagePadding: 8,\n directionalHint: DirectionalHint.bottomAutoEdge,\n} as const;\n\nconst getClassNames = classNamesFunction({\n disableCaching: true, // disabling caching because stylesProp.position mutates often\n});\n\n/**\n * (Hook) to return a function to lazily fetch the bounds of the target element for the callout.\n */\nfunction useBounds(\n { bounds, minPagePadding = DEFAULT_PROPS.minPagePadding, target }: ICalloutProps,\n targetRef: React.RefObject,\n targetWindow: Window | undefined,\n) {\n const [targetWindowResized, setTargetWindowResized] = React.useState(false);\n const cachedBounds = React.useRef();\n\n const getBounds = React.useCallback((): IRectangle | undefined => {\n if (!cachedBounds.current || targetWindowResized) {\n let currentBounds =\n typeof bounds === 'function' ? (targetWindow ? bounds(target, targetWindow) : undefined) : bounds;\n\n if (!currentBounds && targetWindow) {\n currentBounds = getBoundsFromTargetWindow(targetRef.current, targetWindow);\n currentBounds = {\n top: currentBounds.top + minPagePadding,\n left: currentBounds.left + minPagePadding,\n right: currentBounds.right! - minPagePadding,\n bottom: currentBounds.bottom! - minPagePadding,\n width: currentBounds.width - minPagePadding * 2,\n height: currentBounds.height - minPagePadding * 2,\n };\n }\n cachedBounds.current = currentBounds;\n targetWindowResized && setTargetWindowResized(false);\n }\n\n return cachedBounds.current;\n }, [bounds, minPagePadding, target, targetRef, targetWindow, targetWindowResized]);\n\n const async: Async = useAsync();\n useOnEvent(\n targetWindow,\n 'resize',\n async.debounce(\n () => {\n setTargetWindowResized(true);\n },\n 500,\n { leading: true },\n ),\n );\n\n return getBounds;\n}\n\n/**\n * (Hook) to return the maximum available height for the Callout to render into.\n */\nfunction useMaxHeight(\n {\n calloutMaxHeight,\n finalHeight,\n directionalHint,\n directionalHintFixed,\n hidden,\n gapSpace,\n beakWidth,\n isBeakVisible,\n coverTarget,\n }: ICalloutProps,\n getBounds: () => IRectangle | undefined,\n targetRef: React.RefObject,\n positions?: ICalloutPositionedInfo,\n) {\n const [maxHeight, setMaxHeight] = React.useState();\n const { top, bottom } = positions?.elementPosition ?? {};\n const targetRect = targetRef?.current ? getRectangleFromTarget(targetRef.current) : undefined;\n\n React.useEffect(() => {\n const bounds = getBounds() ?? ({} as IRectangle);\n const { top: topBounds } = bounds;\n let { bottom: bottomBounds } = bounds;\n let calculatedHeight: number | undefined;\n\n // If aligned to top edge of target and not covering target, update bottom bounds to the\n // top of the target (accounting for gap space and beak)\n if (positions?.targetEdge === RectangleEdge.top && targetRect?.top && !coverTarget) {\n bottomBounds = targetRect.top - calculateGapSpace(isBeakVisible, beakWidth, gapSpace);\n }\n\n if (typeof top === 'number' && bottomBounds) {\n calculatedHeight = bottomBounds - top;\n } else if (typeof bottom === 'number' && typeof topBounds === 'number' && bottomBounds) {\n calculatedHeight = bottomBounds - topBounds - bottom;\n }\n\n if (\n (!calloutMaxHeight && !hidden) ||\n (calloutMaxHeight && calculatedHeight && calloutMaxHeight > calculatedHeight)\n ) {\n setMaxHeight(calculatedHeight);\n } else if (calloutMaxHeight) {\n setMaxHeight(calloutMaxHeight);\n } else {\n setMaxHeight(undefined);\n }\n }, [\n bottom,\n calloutMaxHeight,\n finalHeight,\n directionalHint,\n directionalHintFixed,\n getBounds,\n hidden,\n positions,\n top,\n gapSpace,\n beakWidth,\n isBeakVisible,\n targetRect,\n coverTarget,\n ]);\n\n return maxHeight;\n}\n\n/**\n * (Hook) to find the current position of Callout. If Callout is resized then a new position is calculated.\n */\nfunction usePositions(\n props: ICalloutProps,\n hostElement: React.RefObject,\n calloutElement: HTMLDivElement | null,\n targetRef: React.RefObject,\n getBounds: () => IRectangle | undefined,\n popupRef: React.RefObject,\n) {\n const [positions, setPositions] = React.useState();\n const positionAttempts = React.useRef(0);\n const previousTarget = React.useRef();\n const async = useAsync();\n const {\n hidden,\n target,\n finalHeight,\n calloutMaxHeight,\n onPositioned,\n directionalHint,\n hideOverflow,\n preferScrollResizePositioning,\n } = props;\n\n const win = useWindowEx();\n const localRef = React.useRef();\n let popupStyles: CSSStyleDeclaration | undefined;\n if (localRef.current !== popupRef.current) {\n localRef.current = popupRef.current;\n popupStyles = popupRef.current ? win?.getComputedStyle(popupRef.current) : undefined;\n }\n const popupOverflowY = popupStyles?.overflowY;\n\n React.useEffect(() => {\n if (!hidden) {\n const timerId = async.requestAnimationFrame(() => {\n if (hostElement.current && calloutElement) {\n const currentProps: IPositionProps = {\n ...props,\n target: targetRef.current!,\n bounds: getBounds(),\n };\n\n // duplicate calloutElement & remove useMaxHeight's maxHeight for position calc\n const dupeCalloutElement = calloutElement.cloneNode(true) as HTMLElement;\n dupeCalloutElement.style.maxHeight = calloutMaxHeight ? `${calloutMaxHeight}` : '';\n dupeCalloutElement.style.visibility = 'hidden';\n calloutElement.parentElement?.appendChild(dupeCalloutElement);\n\n const previousPositions = previousTarget.current === target ? positions : undefined;\n\n // only account for scroll resizing if styles allow callout to scroll\n // (popup styles determine if callout will scroll)\n const isOverflowYHidden = hideOverflow || popupOverflowY === 'clip' || popupOverflowY === 'hidden';\n const shouldScroll = preferScrollResizePositioning && !isOverflowYHidden;\n\n // If there is a finalHeight given then we assume that the user knows and will handle\n // additional positioning adjustments so we should call positionCard\n const newPositions: ICalloutPositionedInfo = finalHeight\n ? positionCard(currentProps, hostElement.current, dupeCalloutElement, previousPositions, win)\n : positionCallout(\n currentProps,\n hostElement.current,\n dupeCalloutElement,\n previousPositions,\n shouldScroll,\n undefined,\n win,\n );\n\n // clean up duplicate calloutElement\n calloutElement.parentElement?.removeChild(dupeCalloutElement);\n\n // Set the new position only when the positions do not exist or one of the new callout positions\n // is different. The position should not change if the position is within 2 decimal places.\n if (\n (!positions && newPositions) ||\n (positions && newPositions && !arePositionsEqual(positions, newPositions) && positionAttempts.current < 5)\n ) {\n // We should not reposition the callout more than a few times, if it is then the content is likely resizing\n // and we should stop trying to reposition to prevent a stack overflow.\n positionAttempts.current++;\n setPositions(newPositions);\n } else if (positionAttempts.current > 0) {\n // Only call the onPositioned callback if the callout has been re-positioned at least once.\n positionAttempts.current = 0;\n onPositioned?.(positions);\n }\n }\n }, calloutElement);\n\n previousTarget.current = target;\n\n return () => {\n async.cancelAnimationFrame(timerId);\n previousTarget.current = undefined;\n };\n } else {\n // When the callout is hidden, clear position state so that it is not accidentally used next render.\n setPositions(undefined);\n positionAttempts.current = 0;\n }\n }, [\n hidden,\n directionalHint,\n async,\n calloutElement,\n calloutMaxHeight,\n hostElement,\n targetRef,\n finalHeight,\n getBounds,\n onPositioned,\n positions,\n props,\n target,\n hideOverflow,\n preferScrollResizePositioning,\n popupOverflowY,\n win,\n ]);\n\n return positions;\n}\n\n/**\n * (Hook) to set up behavior to automatically focus the callout when it appears, if indicated by props.\n */\nfunction useAutoFocus(\n { hidden, setInitialFocus }: ICalloutProps,\n positions: ICalloutPositionedInfo | undefined,\n calloutElement: HTMLDivElement | null,\n) {\n const async = useAsync();\n const hasPositions = !!positions;\n React.useEffect(() => {\n if (!hidden && setInitialFocus && hasPositions && calloutElement) {\n const timerId = async.requestAnimationFrame(() => focusFirstChild(calloutElement), calloutElement);\n\n return () => async.cancelAnimationFrame(timerId);\n }\n }, [hidden, hasPositions, async, calloutElement, setInitialFocus]);\n}\n\n/**\n * (Hook) to set up various handlers to dismiss the popup when it loses focus or the window scrolls or similar cases.\n */\nfunction useDismissHandlers(\n {\n hidden,\n onDismiss,\n preventDismissOnScroll,\n preventDismissOnResize,\n preventDismissOnLostFocus,\n dismissOnTargetClick,\n shouldDismissOnWindowFocus,\n preventDismissOnEvent,\n }: ICalloutProps,\n positions: ICalloutPositionedInfo | undefined,\n hostElement: React.RefObject,\n targetRef: React.RefObject,\n targetWindow: Window | undefined,\n) {\n const isMouseDownOnPopup = React.useRef(false);\n const async = useAsync();\n\n const mouseDownHandlers = useConst([\n () => {\n isMouseDownOnPopup.current = true;\n },\n () => {\n isMouseDownOnPopup.current = false;\n },\n ] as const);\n\n const positionsExists = !!positions;\n\n React.useEffect(() => {\n const dismissOnScroll = (ev: Event) => {\n if (positionsExists && !preventDismissOnScroll) {\n dismissOnClickOrScroll(ev);\n }\n };\n\n const dismissOnResize = (ev: Event) => {\n if (!preventDismissOnResize && !(preventDismissOnEvent && preventDismissOnEvent(ev))) {\n onDismiss?.(ev);\n }\n };\n\n const dismissOnLostFocus = (ev: Event) => {\n if (!preventDismissOnLostFocus) {\n dismissOnClickOrScroll(ev);\n }\n };\n\n const dismissOnClickOrScroll = (ev: Event) => {\n const eventPaths: Array = ev.composedPath ? ev.composedPath() : [];\n const target = eventPaths.length > 0 ? (eventPaths[0] as HTMLElement) : (ev.target as HTMLElement);\n const isEventTargetOutsideCallout = hostElement.current && !elementContains(hostElement.current, target);\n\n // If mouse is pressed down on callout but moved outside then released, don't dismiss the callout.\n if (isEventTargetOutsideCallout && isMouseDownOnPopup.current) {\n isMouseDownOnPopup.current = false;\n return;\n }\n\n if (\n (!targetRef.current && isEventTargetOutsideCallout) ||\n (ev.target !== targetWindow &&\n isEventTargetOutsideCallout &&\n (!targetRef.current ||\n 'stopPropagation' in targetRef.current ||\n dismissOnTargetClick ||\n (target !== targetRef.current && !elementContains(targetRef.current as HTMLElement, target))))\n ) {\n if (preventDismissOnEvent && preventDismissOnEvent(ev)) {\n return;\n }\n onDismiss?.(ev);\n }\n };\n\n const dismissOnTargetWindowBlur = (ev: FocusEvent) => {\n // Do nothing\n if (!shouldDismissOnWindowFocus) {\n return;\n }\n\n if (\n ((preventDismissOnEvent && !preventDismissOnEvent(ev)) ||\n (!preventDismissOnEvent && !preventDismissOnLostFocus)) &&\n !targetWindow?.document.hasFocus() &&\n ev.relatedTarget === null\n ) {\n onDismiss?.(ev);\n }\n };\n\n // This is added so the callout will dismiss when the window is scrolled\n // but not when something inside the callout is scrolled. The delay seems\n // to be required to avoid React firing an async focus event in IE from\n // the target changing focus quickly prior to rendering the callout.\n const disposablesPromise = new Promise<() => void>(resolve => {\n async.setTimeout(() => {\n if (!hidden && targetWindow) {\n const disposables = [\n on(targetWindow, 'scroll', dismissOnScroll, true),\n on(targetWindow, 'resize', dismissOnResize, true),\n on(targetWindow.document.documentElement, 'focus', dismissOnLostFocus, true),\n on(targetWindow.document.documentElement, 'click', dismissOnLostFocus, true),\n on(targetWindow, 'blur', dismissOnTargetWindowBlur, true),\n ];\n\n resolve(() => {\n disposables.forEach(dispose => dispose());\n });\n }\n }, 0);\n });\n\n return () => {\n disposablesPromise.then(dispose => dispose());\n };\n }, [\n hidden,\n async,\n hostElement,\n targetRef,\n targetWindow,\n onDismiss,\n shouldDismissOnWindowFocus,\n dismissOnTargetClick,\n preventDismissOnLostFocus,\n preventDismissOnResize,\n preventDismissOnScroll,\n positionsExists,\n preventDismissOnEvent,\n ]);\n\n return mouseDownHandlers;\n}\n\nexport const CalloutContentBase: React.FunctionComponent = React.memo(\n React.forwardRef((propsWithoutDefaults, forwardedRef) => {\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n\n const {\n styles,\n style,\n ariaLabel,\n ariaDescribedBy,\n ariaLabelledBy,\n className,\n isBeakVisible,\n children,\n beakWidth,\n calloutWidth,\n calloutMaxWidth,\n calloutMinWidth,\n doNotLayer,\n finalHeight,\n hideOverflow = !!finalHeight,\n backgroundColor,\n calloutMaxHeight,\n onScroll,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n shouldRestoreFocus = true,\n target,\n hidden,\n onLayerMounted,\n popupProps,\n } = props;\n\n const hostElement = React.useRef(null);\n const popupRef = React.useRef(null);\n const mergedPopupRefs = useMergedRefs(popupRef, popupProps?.ref);\n const [calloutElement, setCalloutElement] = React.useState(null);\n const calloutCallback = React.useCallback((calloutEl: any) => {\n setCalloutElement(calloutEl);\n }, []);\n const rootRef = useMergedRefs(hostElement, forwardedRef);\n\n const [targetRef, targetWindow] = useTarget(props.target, {\n current: calloutElement,\n });\n const getBounds = useBounds(props, targetRef, targetWindow);\n const positions = usePositions(props, hostElement, calloutElement, targetRef, getBounds, mergedPopupRefs);\n const maxHeight = useMaxHeight(props, getBounds, targetRef, positions);\n const [mouseDownOnPopup, mouseUpOnPopup] = useDismissHandlers(\n props,\n positions,\n hostElement,\n targetRef,\n targetWindow,\n );\n\n // do not set both top and bottom css props from positions\n // instead, use maxHeight\n const isForcedInBounds = positions?.elementPosition.top && positions?.elementPosition.bottom;\n const cssPositions = {\n ...positions?.elementPosition,\n maxHeight,\n };\n if (isForcedInBounds) {\n cssPositions.bottom = undefined;\n }\n\n useAutoFocus(props, positions, calloutElement);\n\n React.useEffect(() => {\n if (!hidden) {\n onLayerMounted?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if hidden changes\n }, [hidden]);\n\n // If there is no target window then we are likely in server side rendering and we should not render anything.\n if (!targetWindow) {\n return null;\n }\n\n const overflowYHidden = hideOverflow;\n\n const beakVisible = isBeakVisible && !!target;\n const classNames = getClassNames(styles!, {\n theme: props.theme!,\n className,\n overflowYHidden,\n calloutWidth,\n positions,\n beakWidth,\n backgroundColor,\n calloutMaxWidth,\n calloutMinWidth,\n doNotLayer,\n });\n\n const overflowStyle: React.CSSProperties = {\n maxHeight: calloutMaxHeight ? calloutMaxHeight : '100%',\n ...style,\n ...(overflowYHidden && { overflowY: 'hidden' }),\n };\n\n const visibilityStyle: React.CSSProperties | undefined = props.hidden ? { visibility: 'hidden' } : undefined;\n // React.CSSProperties does not understand IRawStyle, so the inline animations will need to be cast as any for now.\n return (\n
    \n \n {beakVisible &&
    }\n {beakVisible &&
    }\n \n {children}\n \n
    \n
    \n );\n }),\n (previousProps: ICalloutProps, nextProps: ICalloutProps) => {\n if (!nextProps.shouldUpdateWhenHidden && previousProps.hidden && nextProps.hidden) {\n // Do not update when hidden.\n return true;\n }\n return shallowCompare(previousProps, nextProps);\n },\n);\n\n/**\n * (Utility) to find and return the current `Callout` Beak position.\n *\n * @param positions\n */\nfunction getBeakPosition(positions?: ICalloutPositionedInfo): React.CSSProperties {\n const beakPositionStyle: React.CSSProperties = {\n ...positions?.beakPosition?.elementPosition,\n display: positions?.beakPosition?.hideBeak ? 'none' : undefined,\n };\n\n if (!beakPositionStyle.top && !beakPositionStyle.bottom && !beakPositionStyle.left && !beakPositionStyle.right) {\n beakPositionStyle.left = BEAK_ORIGIN_POSITION.left;\n beakPositionStyle.top = BEAK_ORIGIN_POSITION.top;\n }\n\n return beakPositionStyle;\n}\n\n/**\n * (Utility) used to compare two different elementPositions to determine whether they are equal.\n *\n * @param prevElementPositions\n * @param newElementPosition\n */\nfunction arePositionsEqual(\n prevElementPositions: ICalloutPositionedInfo,\n newElementPosition: ICalloutPositionedInfo,\n): boolean {\n return (\n comparePositions(prevElementPositions.elementPosition, newElementPosition.elementPosition) &&\n comparePositions(prevElementPositions.beakPosition.elementPosition, newElementPosition.beakPosition.elementPosition)\n );\n}\n\n/**\n * (Utility) used in **arePositionsEqual** to compare two different elementPositions.\n *\n * @param prevElementPositions\n * @param newElementPositions\n */\nfunction comparePositions(prevElementPositions: IPosition, newElementPositions: IPosition): boolean {\n for (const key in newElementPositions) {\n if (newElementPositions.hasOwnProperty(key)) {\n const oldPositionEdge = prevElementPositions[key];\n const newPositionEdge = newElementPositions[key];\n if (oldPositionEdge !== undefined && newPositionEdge !== undefined) {\n if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) {\n return false;\n }\n } else {\n return false;\n }\n }\n }\n return true;\n}\n\nCalloutContentBase.displayName = COMPONENT_NAME;\n","import { HighContrastSelector, focusClear, getGlobalClassNames, ZIndexes } from '../../Styling';\nimport type { IRawStyle } from '../../Styling';\nimport type { ICalloutContentStyleProps, ICalloutContentStyles } from './Callout.types';\n\nfunction getBeakStyle(beakWidth?: number): IRawStyle {\n return {\n height: beakWidth,\n width: beakWidth,\n };\n}\n\nconst GlobalClassNames = {\n container: 'ms-Callout-container',\n root: 'ms-Callout',\n beak: 'ms-Callout-beak',\n beakCurtain: 'ms-Callout-beakCurtain',\n calloutMain: 'ms-Callout-main',\n};\n\nexport const getStyles = (props: ICalloutContentStyleProps): ICalloutContentStyles => {\n const {\n theme,\n className,\n overflowYHidden,\n calloutWidth,\n beakWidth,\n backgroundColor,\n calloutMaxWidth,\n calloutMinWidth,\n doNotLayer,\n } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const { semanticColors, effects } = theme;\n\n return {\n container: [\n classNames.container,\n {\n position: 'relative',\n },\n ],\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n position: 'absolute',\n display: 'flex',\n zIndex: doNotLayer ? ZIndexes.Layer : undefined,\n boxSizing: 'border-box',\n borderRadius: effects.roundedCorner2,\n boxShadow: effects.elevation16,\n selectors: {\n [HighContrastSelector]: {\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: 'WindowText',\n },\n },\n },\n focusClear(),\n className,\n !!calloutWidth && { width: calloutWidth },\n !!calloutMaxWidth && { maxWidth: calloutMaxWidth },\n !!calloutMinWidth && { minWidth: calloutMinWidth },\n ],\n beak: [\n classNames.beak,\n {\n position: 'absolute',\n backgroundColor: semanticColors.menuBackground,\n boxShadow: 'inherit',\n border: 'inherit',\n boxSizing: 'border-box',\n transform: 'rotate(45deg)',\n },\n getBeakStyle(beakWidth),\n backgroundColor && {\n backgroundColor,\n },\n ],\n beakCurtain: [\n classNames.beakCurtain,\n {\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n backgroundColor: semanticColors.menuBackground,\n borderRadius: effects.roundedCorner2,\n },\n ],\n calloutMain: [\n classNames.calloutMain,\n {\n backgroundColor: semanticColors.menuBackground,\n overflowX: 'hidden',\n overflowY: 'auto',\n position: 'relative',\n width: '100%',\n borderRadius: effects.roundedCorner2,\n },\n overflowYHidden && {\n overflowY: 'hidden',\n },\n backgroundColor && {\n backgroundColor,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { CalloutContentBase } from './CalloutContent.base';\nimport { getStyles } from './CalloutContent.styles';\nimport type { ICalloutProps } from './Callout.types';\n\nexport const CalloutContent: React.FunctionComponent = styled(CalloutContentBase, getStyles, undefined, {\n scope: 'CalloutContent',\n});\n","import * as React from 'react';\nimport { CalloutContent } from './CalloutContent';\nimport { Layer } from '../../Layer';\nimport type { ICalloutProps } from './Callout.types';\n\nexport const Callout: React.FunctionComponent = React.forwardRef(\n ({ layerProps, doNotLayer, ...rest }, forwardedRef) => {\n const content = ;\n return doNotLayer ? content : {content};\n },\n);\nCallout.displayName = 'Callout';\n","import * as React from 'react';\nimport { useControllableValue, useId, useMergedRefs, useWarnings } from '@fluentui/react-hooks';\nimport { useFocusRects, classNamesFunction } from '@fluentui/utilities';\nimport { Icon } from '../Icon/Icon';\nimport type { ICheckboxProps, ICheckboxStyleProps, ICheckboxStyles } from './Checkbox.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const CheckboxBase: React.FunctionComponent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disabled,\n required,\n inputProps,\n name,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaPositionInSet,\n ariaSetSize,\n title,\n checkmarkIconProps,\n styles,\n theme,\n className,\n boxSide = 'start',\n } = props;\n\n const id = useId('checkbox-', props.id);\n\n const rootRef = React.useRef(null);\n const mergedRootRefs: React.Ref = useMergedRefs(rootRef, forwardedRef);\n const inputRef = React.useRef(null);\n\n const [isChecked, setIsChecked] = useControllableValue(props.checked, props.defaultChecked, props.onChange);\n const [isIndeterminate, setIsIndeterminate] = useControllableValue(props.indeterminate, props.defaultIndeterminate);\n\n useFocusRects(rootRef);\n useDebugWarning(props);\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n disabled,\n indeterminate: isIndeterminate,\n checked: isChecked,\n reversed: boxSide !== 'start',\n isUsingCustomLabelRender: !!props.onRenderLabel,\n });\n\n const onChange = React.useCallback(\n (event: React.ChangeEvent): void => {\n if (isIndeterminate) {\n // If indeterminate, clicking the checkbox *only* removes the indeterminate state (or if\n // controlled, lets the consumer know to change it by calling onChange). It doesn't\n // change the checked state.\n setIsChecked(!!isChecked, event);\n setIsIndeterminate(false);\n } else {\n setIsChecked(!isChecked, event);\n }\n },\n [setIsChecked, setIsIndeterminate, isIndeterminate, isChecked],\n );\n\n const defaultLabelRenderer = React.useCallback(\n (checkboxProps?: ICheckboxProps): JSX.Element | null => {\n if (!checkboxProps) {\n return null;\n }\n return checkboxProps.label ? (\n \n {checkboxProps.label}\n \n ) : null;\n },\n [classNames.text],\n );\n\n const setNativeIndeterminate = React.useCallback(\n (indeterminate: boolean | undefined) => {\n if (!inputRef.current) {\n return;\n }\n\n const value = !!indeterminate;\n\n inputRef.current.indeterminate = value;\n setIsIndeterminate(value);\n },\n [setIsIndeterminate],\n );\n\n useComponentRef(props, isChecked, isIndeterminate, setNativeIndeterminate, inputRef);\n React.useEffect(() => setNativeIndeterminate(isIndeterminate), [setNativeIndeterminate, isIndeterminate]);\n\n const onRenderLabel = props.onRenderLabel || defaultLabelRenderer;\n\n const ariaChecked: React.InputHTMLAttributes['aria-checked'] = isIndeterminate\n ? 'mixed'\n : undefined;\n\n const mergedInputProps: React.InputHTMLAttributes = {\n className: classNames.input,\n type: 'checkbox' as React.InputHTMLAttributes['type'],\n ...inputProps,\n checked: !!isChecked,\n disabled,\n required,\n name,\n id,\n title,\n onChange,\n 'aria-disabled': disabled,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n 'aria-posinset': ariaPositionInSet,\n 'aria-setsize': ariaSetSize,\n 'aria-checked': ariaChecked,\n };\n\n return (\n
    \n \n \n
    \n );\n },\n);\n\nCheckboxBase.displayName = 'CheckboxBase';\n\nfunction useDebugWarning(props: ICheckboxProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: 'Checkbox',\n props,\n mutuallyExclusive: {\n checked: 'defaultChecked',\n indeterminate: 'defaultIndeterminate',\n },\n });\n }\n}\n\nfunction useComponentRef(\n props: ICheckboxProps,\n isChecked: boolean | undefined,\n isIndeterminate: boolean | undefined,\n setIndeterminate: (indeterminate: boolean) => void,\n checkBoxRef: React.RefObject,\n) {\n React.useImperativeHandle(\n props.componentRef,\n () => ({\n get checked() {\n return !!isChecked;\n },\n get indeterminate() {\n return !!isIndeterminate;\n },\n set indeterminate(indeterminate: boolean) {\n setIndeterminate(indeterminate);\n },\n focus() {\n if (checkBoxRef.current) {\n checkBoxRef.current.focus();\n }\n },\n }),\n [checkBoxRef, isChecked, isIndeterminate, setIndeterminate],\n );\n}\n","import { HighContrastSelector, getGlobalClassNames, getHighContrastNoAdjustStyle } from '@fluentui/style-utilities';\nimport { IsFocusVisibleClassName } from '@fluentui/utilities';\nimport type { ICheckboxStyleProps, ICheckboxStyles } from './Checkbox.types';\nimport type { IStyle } from '@fluentui/style-utilities';\n\nconst GlobalClassNames = {\n root: 'ms-Checkbox',\n label: 'ms-Checkbox-label',\n checkbox: 'ms-Checkbox-checkbox',\n checkmark: 'ms-Checkbox-checkmark',\n text: 'ms-Checkbox-text',\n};\n\nconst MS_CHECKBOX_LABEL_SIZE = '20px';\nconst MS_CHECKBOX_TRANSITION_DURATION = '200ms';\nconst MS_CHECKBOX_TRANSITION_TIMING = 'cubic-bezier(.4, 0, .23, 1)';\n\nexport const getStyles = (props: ICheckboxStyleProps): ICheckboxStyles => {\n const { className, theme, reversed, checked, disabled, isUsingCustomLabelRender, indeterminate } = props;\n const { semanticColors, effects, palette, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const checkmarkFontColor = semanticColors.inputForegroundChecked;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBorder\n const checkmarkFontColorHovered = palette.neutralSecondary;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder\n const checkboxBorderColor = palette.neutralPrimary;\n const checkboxBorderIndeterminateColor = semanticColors.inputBackgroundChecked;\n const checkboxBorderColorChecked = semanticColors.inputBackgroundChecked;\n const checkboxBorderColorDisabled = semanticColors.disabledBodySubtext;\n const checkboxBorderHoveredColor = semanticColors.inputBorderHovered;\n const checkboxBorderIndeterminateHoveredColor = semanticColors.inputBackgroundCheckedHovered;\n const checkboxBackgroundChecked = semanticColors.inputBackgroundChecked;\n // TODO: after updating the semanticColors slots mapping the following 2 tokens need to be\n // semanticColors.inputBackgroundCheckedHovered\n const checkboxBackgroundCheckedHovered = semanticColors.inputBackgroundCheckedHovered;\n const checkboxBorderColorCheckedHovered = semanticColors.inputBackgroundCheckedHovered;\n const checkboxHoveredTextColor = semanticColors.inputTextHovered;\n const checkboxBackgroundDisabledChecked = semanticColors.disabledBodySubtext;\n const checkboxTextColor = semanticColors.bodyText;\n const checkboxTextColorDisabled = semanticColors.disabledText;\n\n const indeterminateDotStyles: IStyle = [\n {\n content: '\"\"',\n borderRadius: effects.roundedCorner2,\n position: 'absolute',\n width: 10,\n height: 10,\n top: 4,\n left: 4,\n boxSizing: 'border-box',\n borderWidth: 5,\n borderStyle: 'solid',\n borderColor: disabled ? checkboxBorderColorDisabled : checkboxBorderIndeterminateColor,\n transitionProperty: 'border-width, border, border-color',\n transitionDuration: MS_CHECKBOX_TRANSITION_DURATION,\n transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING,\n [HighContrastSelector]: {\n borderColor: 'WindowText',\n },\n },\n ];\n\n return {\n root: [\n classNames.root,\n {\n position: 'relative',\n display: 'flex',\n },\n reversed && 'reversed',\n checked && 'is-checked',\n !disabled && 'is-enabled',\n disabled && 'is-disabled',\n !disabled && [\n !checked && {\n [`:hover .${classNames.checkbox}`]: {\n borderColor: checkboxBorderHoveredColor,\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n },\n },\n [`:focus .${classNames.checkbox}`]: { borderColor: checkboxBorderHoveredColor },\n [`:hover .${classNames.checkmark}`]: {\n color: checkmarkFontColorHovered,\n opacity: '1',\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n },\n checked &&\n !indeterminate && {\n [`:hover .${classNames.checkbox}`]: {\n background: checkboxBackgroundCheckedHovered,\n borderColor: checkboxBorderColorCheckedHovered,\n },\n [`:focus .${classNames.checkbox}`]: {\n background: checkboxBackgroundCheckedHovered,\n borderColor: checkboxBorderColorCheckedHovered,\n },\n [HighContrastSelector]: {\n [`:hover .${classNames.checkbox}`]: {\n background: 'Highlight',\n borderColor: 'Highlight',\n },\n [`:focus .${classNames.checkbox}`]: {\n background: 'Highlight',\n },\n [`:focus:hover .${classNames.checkbox}`]: {\n background: 'Highlight',\n },\n [`:focus:hover .${classNames.checkmark}`]: {\n color: 'Window',\n },\n [`:hover .${classNames.checkmark}`]: {\n color: 'Window',\n },\n },\n },\n indeterminate && {\n [`:hover .${classNames.checkbox}, :hover .${classNames.checkbox}:after`]: {\n borderColor: checkboxBorderIndeterminateHoveredColor,\n [HighContrastSelector]: {\n borderColor: 'WindowText',\n },\n },\n [`:focus .${classNames.checkbox}`]: {\n borderColor: checkboxBorderIndeterminateHoveredColor,\n },\n [`:hover .${classNames.checkmark}`]: {\n opacity: '0',\n },\n },\n {\n [`:hover .${classNames.text}, :focus .${classNames.text}`]: {\n color: checkboxHoveredTextColor,\n [HighContrastSelector]: {\n color: disabled ? 'GrayText' : 'WindowText',\n },\n },\n },\n ],\n className,\n ],\n input: {\n position: 'absolute',\n background: 'none',\n\n opacity: 0,\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus + label::before, :host(.${IsFocusVisibleClassName}) &:focus + label::before`]:\n {\n outline: '1px solid ' + theme.palette.neutralSecondary,\n outlineOffset: '2px',\n [HighContrastSelector]: {\n outline: '1px solid WindowText',\n },\n },\n },\n label: [\n classNames.label,\n theme.fonts.medium,\n {\n display: 'flex',\n alignItems: isUsingCustomLabelRender ? 'center' : 'flex-start',\n cursor: disabled ? 'default' : 'pointer',\n position: 'relative',\n userSelect: 'none',\n },\n reversed && {\n flexDirection: 'row-reverse',\n justifyContent: 'flex-end',\n },\n {\n '&::before': {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n content: '\"\"',\n pointerEvents: 'none',\n },\n },\n ],\n checkbox: [\n classNames.checkbox,\n {\n position: 'relative',\n display: 'flex',\n flexShrink: 0,\n alignItems: 'center',\n justifyContent: 'center',\n height: MS_CHECKBOX_LABEL_SIZE,\n width: MS_CHECKBOX_LABEL_SIZE,\n border: `1px solid ${checkboxBorderColor}`,\n borderRadius: effects.roundedCorner2,\n boxSizing: 'border-box',\n transitionProperty: 'background, border, border-color',\n transitionDuration: MS_CHECKBOX_TRANSITION_DURATION,\n transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING,\n\n /* in case the icon is bigger than the box */\n overflow: 'hidden',\n ':after': indeterminate ? indeterminateDotStyles : null,\n [HighContrastSelector]: {\n borderColor: 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n indeterminate && {\n borderColor: checkboxBorderIndeterminateColor,\n },\n !reversed\n ? // This margin on the checkbox is for backwards compat. Notably it has the effect where a customRender\n // is used, there will be only a 4px margin from checkbox to label. The label by default would have\n // another 4px margin for a total of 8px margin between checkbox and label. We don't combine the two\n // (and move it into the text) to not incur a breaking change for everyone using custom render atm.\n {\n marginRight: 4,\n }\n : {\n marginLeft: 4,\n },\n !disabled &&\n !indeterminate &&\n checked && {\n background: checkboxBackgroundChecked,\n borderColor: checkboxBorderColorChecked,\n [HighContrastSelector]: {\n background: 'Highlight',\n borderColor: 'Highlight',\n },\n },\n disabled && {\n borderColor: checkboxBorderColorDisabled,\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n },\n },\n checked &&\n disabled && {\n background: checkboxBackgroundDisabledChecked,\n borderColor: checkboxBorderColorDisabled,\n [HighContrastSelector]: {\n background: 'Window',\n },\n },\n ],\n checkmark: [\n classNames.checkmark,\n {\n opacity: checked && !indeterminate ? '1' : '0',\n color: checkmarkFontColor,\n [HighContrastSelector]: {\n color: disabled ? 'GrayText' : 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n ],\n text: [\n classNames.text,\n {\n color: disabled ? checkboxTextColorDisabled : checkboxTextColor,\n fontSize: fonts.medium.fontSize,\n lineHeight: '20px',\n [HighContrastSelector]: {\n color: disabled ? 'GrayText' : 'WindowText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n !reversed\n ? {\n marginLeft: 4,\n }\n : {\n marginRight: 4,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '@fluentui/utilities';\nimport { CheckboxBase } from './Checkbox.base';\nimport { getStyles } from './Checkbox.styles';\nimport type { ICheckboxProps, ICheckboxStyleProps, ICheckboxStyles } from './Checkbox.types';\n\nexport const Checkbox: React.FunctionComponent = styled<\n ICheckboxProps,\n ICheckboxStyleProps,\n ICheckboxStyles\n>(CheckboxBase, getStyles, undefined, { scope: 'Checkbox' });\n","import * as React from 'react';\nimport { Image } from '../../../Image';\nimport { Icon } from '../../../Icon';\nimport {\n classNamesFunction,\n getNativeProps,\n inputProperties,\n css,\n composeRenderFunction,\n getPropsWithDefaults,\n} from '../../../Utilities';\nimport type {\n IChoiceGroupOptionProps,\n IChoiceGroupOptionStyleProps,\n IChoiceGroupOptionStyles,\n} from './ChoiceGroupOption.types';\n\nconst getClassNames = classNamesFunction();\n\nconst LARGE_IMAGE_SIZE = 71;\n\nconst DEFAULT_PROPS: Partial = {\n // This ensures default imageSize value doesn't mutate. Mutation can cause style re-calcuation.\n imageSize: { width: 32, height: 32 },\n};\n\nexport const ChoiceGroupOptionBase: React.FunctionComponent = propsWithoutDefaults => {\n // Mix the `key` prop back in since custom render functions may be expecting it\n // (React uses `key` internally rather than passing it through to the component)\n const props = getPropsWithDefaults({ ...DEFAULT_PROPS, key: propsWithoutDefaults.itemKey }, propsWithoutDefaults);\n\n const {\n ariaLabel,\n focused,\n required,\n theme,\n iconProps,\n imageSrc,\n imageSize,\n disabled,\n checked,\n id,\n styles,\n name,\n ...rest\n } = props;\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n hasIcon: !!iconProps,\n hasImage: !!imageSrc,\n checked,\n disabled,\n imageIsLarge: !!imageSrc && (imageSize!.width > LARGE_IMAGE_SIZE || imageSize!.height > LARGE_IMAGE_SIZE),\n imageSize,\n focused,\n });\n\n const { className, ...nativeProps } = getNativeProps<{ className: string }>(rest, inputProperties);\n\n const defaultOnRenderLabel = (): JSX.Element => {\n return (\n \n {props.text}\n \n );\n };\n\n const defaultOnRenderField = (): JSX.Element => {\n const { imageAlt = '', selectedImageSrc } = props;\n\n const onRenderLabel = props.onRenderLabel\n ? composeRenderFunction(props.onRenderLabel, defaultOnRenderLabel)\n : defaultOnRenderLabel;\n\n const label = onRenderLabel({ ...props, key: props.itemKey });\n\n return (\n \n );\n };\n\n const { onRenderField = defaultOnRenderField } = props;\n\n const onChange = (evt: React.FormEvent): void => {\n props.onChange?.(evt, { ...props, key: props.itemKey });\n };\n\n const onBlur = (evt: React.FocusEvent) => {\n props.onBlur?.(evt);\n };\n\n const onFocus = (evt: React.FocusEvent) => {\n props.onFocus?.(evt, { ...props, key: props.itemKey });\n };\n\n return (\n
    \n
    \n \n {onRenderField({ ...props, key: props.itemKey }, defaultOnRenderField)}\n
    \n
    \n );\n};\nChoiceGroupOptionBase.displayName = 'ChoiceGroupOption';\n","import { HighContrastSelector, getGlobalClassNames, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { IsFocusVisibleClassName } from '../../../Utilities';\nimport type { IStyle } from '../../../Styling';\nimport type { IChoiceGroupOptionStyleProps, IChoiceGroupOptionStyles } from './ChoiceGroupOption.types';\n\nconst GlobalClassNames = {\n root: 'ms-ChoiceField',\n choiceFieldWrapper: 'ms-ChoiceField-wrapper',\n input: 'ms-ChoiceField-input',\n field: 'ms-ChoiceField-field',\n innerField: 'ms-ChoiceField-innerField',\n imageWrapper: 'ms-ChoiceField-imageWrapper',\n iconWrapper: 'ms-ChoiceField-iconWrapper',\n labelWrapper: 'ms-ChoiceField-labelWrapper',\n checked: 'is-checked',\n};\n\nconst labelWrapperLineHeight = 15;\nconst labelWrapperHeight = labelWrapperLineHeight * 2 + 2; // adding 2px height to ensure text doesn't get cutoff\nconst iconSize = 32;\nconst choiceFieldSize = 20;\nconst choiceFieldTransitionDuration = '200ms';\nconst choiceFieldTransitionTiming = 'cubic-bezier(.4, 0, .23, 1)';\nconst radioButtonSpacing = 3;\nconst radioButtonInnerSize = 5;\n\nfunction getChoiceGroupFocusStyle(focusBorderColor: string, hasIconOrImage?: boolean): IStyle {\n return [\n 'is-inFocus',\n {\n selectors: {\n [`.${IsFocusVisibleClassName} &, :host(.${IsFocusVisibleClassName}) &`]: {\n position: 'relative',\n outline: 'transparent',\n selectors: {\n '::-moz-focus-inner': {\n border: 0,\n },\n ':after': {\n content: '\"\"',\n top: -2,\n right: -2,\n bottom: -2,\n left: -2,\n pointerEvents: 'none',\n border: `1px solid ${focusBorderColor}`,\n position: 'absolute',\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'WindowText',\n borderWidth: hasIconOrImage ? 1 : 2,\n },\n },\n },\n },\n },\n },\n },\n ];\n}\n\nfunction getImageWrapperStyle(isSelectedImageWrapper: boolean, className?: string, checked?: boolean): IStyle {\n return [\n className,\n {\n paddingBottom: 2,\n transitionProperty: 'opacity',\n transitionDuration: choiceFieldTransitionDuration,\n transitionTimingFunction: 'ease',\n selectors: {\n '.ms-Image': {\n display: 'inline-block',\n borderStyle: 'none',\n },\n },\n },\n (checked ? !isSelectedImageWrapper : isSelectedImageWrapper) && [\n 'is-hidden',\n {\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n overflow: 'hidden',\n opacity: 0,\n },\n ],\n ];\n}\n\nexport const getStyles = (props: IChoiceGroupOptionStyleProps): IChoiceGroupOptionStyles => {\n const { theme, hasIcon, hasImage, checked, disabled, imageIsLarge, focused, imageSize } = props;\n const { palette, semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n // Tokens\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder\n const circleBorderColor = palette.neutralPrimary;\n const circleHoveredBorderColor = semanticColors.inputBorderHovered;\n const circleCheckedBorderColor = semanticColors.inputBackgroundChecked;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered\n const circleCheckedHoveredBorderColor = palette.themeDark;\n const circleDisabledBorderColor = semanticColors.disabledBodySubtext;\n const circleBackgroundColor = semanticColors.bodyBackground;\n const dotUncheckedHoveredColor = palette.neutralSecondary;\n const dotCheckedColor = semanticColors.inputBackgroundChecked;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered\n const dotCheckedHoveredColor = palette.themeDark;\n const dotDisabledColor = semanticColors.disabledBodySubtext;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.bodyTextChecked\n const labelHoverFocusColor = palette.neutralDark;\n const focusBorderColor = semanticColors.focusBorder;\n const iconOrImageChoiceBorderUncheckedHoveredColor = semanticColors.inputBorderHovered;\n // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered\n const iconOrImageChoiceBorderCheckedColor = semanticColors.inputBackgroundChecked;\n const iconOrImageChoiceBorderCheckedHoveredColor = palette.themeDark;\n const iconOrImageChoiceBackgroundColor = palette.neutralLighter;\n\n const fieldHoverOrFocusProperties = {\n selectors: {\n '.ms-ChoiceFieldLabel': {\n color: labelHoverFocusColor,\n },\n ':before': {\n borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor,\n },\n ':after': [\n !hasIcon &&\n !hasImage &&\n !checked && {\n content: '\"\"',\n transitionProperty: 'background-color',\n left: 5,\n top: 5,\n width: 10,\n height: 10,\n backgroundColor: dotUncheckedHoveredColor,\n },\n checked && {\n borderColor: dotCheckedHoveredColor,\n background: dotCheckedHoveredColor,\n },\n ],\n },\n };\n\n const enabledFieldWithImageHoverOrFocusProperties = {\n borderColor: checked ? iconOrImageChoiceBorderCheckedHoveredColor : iconOrImageChoiceBorderUncheckedHoveredColor,\n selectors: {\n ':before': {\n opacity: 1,\n borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor,\n },\n },\n };\n\n const circleAreaProperties: IStyle = [\n {\n content: '\"\"',\n display: 'inline-block',\n backgroundColor: circleBackgroundColor,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: circleBorderColor,\n width: choiceFieldSize,\n height: choiceFieldSize,\n fontWeight: 'normal',\n position: 'absolute',\n top: 0,\n left: 0,\n boxSizing: 'border-box',\n transitionProperty: 'border-color',\n transitionDuration: choiceFieldTransitionDuration,\n transitionTimingFunction: choiceFieldTransitionTiming,\n borderRadius: '50%',\n },\n disabled && {\n borderColor: circleDisabledBorderColor,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n background: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n checked && {\n borderColor: disabled ? circleDisabledBorderColor : circleCheckedBorderColor,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n background: 'Window',\n forcedColorAdjust: 'none',\n },\n },\n },\n (hasIcon || hasImage) && {\n top: radioButtonSpacing,\n right: radioButtonSpacing,\n left: 'auto', // To reset the value of 'left' to its default value, so that 'right' works\n opacity: checked ? 1 : 0,\n },\n ];\n\n const dotAreaProperties: IStyle = [\n {\n content: '\"\"',\n width: 0,\n height: 0,\n borderRadius: '50%',\n position: 'absolute',\n left: choiceFieldSize / 2,\n right: 0,\n transitionProperty: 'border-width',\n transitionDuration: choiceFieldTransitionDuration,\n transitionTimingFunction: choiceFieldTransitionTiming,\n boxSizing: 'border-box',\n },\n checked && {\n borderWidth: 5,\n borderStyle: 'solid',\n borderColor: disabled ? dotDisabledColor : dotCheckedColor,\n background: dotCheckedColor,\n left: 5,\n top: 5,\n width: 10,\n height: 10,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n forcedColorAdjust: 'none',\n },\n },\n },\n checked &&\n (hasIcon || hasImage) && {\n top: radioButtonSpacing + radioButtonInnerSize,\n right: radioButtonSpacing + radioButtonInnerSize,\n left: 'auto', // To reset the value of 'left' to its default value, so that 'right' works\n },\n ];\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n display: 'flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n color: semanticColors.bodyText,\n minHeight: 26,\n border: 'none',\n position: 'relative',\n marginTop: 8,\n selectors: {\n '.ms-ChoiceFieldLabel': {\n display: 'inline-block',\n },\n },\n },\n !hasIcon &&\n !hasImage && {\n selectors: {\n '.ms-ChoiceFieldLabel': {\n paddingLeft: '26px',\n },\n },\n },\n hasImage && 'ms-ChoiceField--image',\n hasIcon && 'ms-ChoiceField--icon',\n (hasIcon || hasImage) && {\n display: 'inline-flex',\n fontSize: 0,\n margin: '0 4px 4px 0',\n paddingLeft: 0,\n backgroundColor: iconOrImageChoiceBackgroundColor,\n height: '100%',\n },\n ],\n choiceFieldWrapper: [\n classNames.choiceFieldWrapper,\n focused && getChoiceGroupFocusStyle(focusBorderColor, hasIcon || hasImage),\n ],\n // The hidden input\n input: [\n classNames.input,\n {\n position: 'absolute',\n opacity: 0,\n top: 0,\n right: 0,\n width: '100%',\n height: '100%',\n margin: 0,\n },\n disabled && 'is-disabled',\n ],\n field: [\n classNames.field,\n checked && classNames.checked,\n {\n display: 'inline-block',\n cursor: 'pointer',\n marginTop: 0,\n position: 'relative',\n verticalAlign: 'top',\n userSelect: 'none',\n minHeight: 20,\n selectors: {\n ':hover': !disabled && fieldHoverOrFocusProperties,\n ':focus': !disabled && fieldHoverOrFocusProperties,\n\n // The circle\n ':before': circleAreaProperties,\n\n // The dot\n ':after': dotAreaProperties,\n },\n },\n hasIcon && 'ms-ChoiceField--icon',\n hasImage && 'ms-ChoiceField-field--image',\n (hasIcon || hasImage) && {\n boxSizing: 'content-box',\n cursor: 'pointer',\n paddingTop: 22,\n margin: 0,\n textAlign: 'center',\n transitionProperty: 'all',\n transitionDuration: choiceFieldTransitionDuration,\n transitionTimingFunction: 'ease',\n border: '1px solid transparent',\n justifyContent: 'center',\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n },\n checked && {\n borderColor: iconOrImageChoiceBorderCheckedColor,\n },\n (hasIcon || hasImage) &&\n !disabled && {\n selectors: {\n ':hover': enabledFieldWithImageHoverOrFocusProperties,\n ':focus': enabledFieldWithImageHoverOrFocusProperties,\n },\n },\n disabled && {\n cursor: 'default',\n selectors: {\n '.ms-ChoiceFieldLabel': {\n color: semanticColors.disabledBodyText,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n },\n },\n checked &&\n disabled && {\n borderColor: iconOrImageChoiceBackgroundColor,\n },\n ],\n innerField: [\n classNames.innerField,\n hasImage && {\n // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class.\n height: imageSize!.height,\n width: imageSize!.width,\n },\n (hasIcon || hasImage) && {\n position: 'relative',\n display: 'inline-block',\n paddingLeft: 30,\n paddingRight: 30,\n },\n (hasIcon || hasImage) &&\n imageIsLarge && {\n paddingLeft: 24,\n paddingRight: 24,\n },\n (hasIcon || hasImage) &&\n disabled && {\n opacity: 0.25,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n opacity: 1,\n },\n },\n },\n ],\n imageWrapper: getImageWrapperStyle(false, classNames.imageWrapper, checked),\n selectedImageWrapper: getImageWrapperStyle(true, classNames.imageWrapper, checked),\n iconWrapper: [\n classNames.iconWrapper,\n {\n fontSize: iconSize,\n lineHeight: iconSize,\n height: iconSize,\n },\n ],\n labelWrapper: [\n classNames.labelWrapper,\n fonts.medium,\n (hasIcon || hasImage) && {\n display: 'block',\n position: 'relative',\n margin: '4px 8px 2px 8px',\n height: labelWrapperHeight,\n lineHeight: labelWrapperLineHeight,\n // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class.\n maxWidth: imageSize!.width * 2,\n overflow: 'hidden',\n whiteSpace: 'pre-wrap',\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../../Utilities';\nimport { ChoiceGroupOptionBase } from './ChoiceGroupOption.base';\nimport { getStyles } from './ChoiceGroupOption.styles';\nimport type {\n IChoiceGroupOptionProps,\n IChoiceGroupOptionStyleProps,\n IChoiceGroupOptionStyles,\n} from './ChoiceGroupOption.types';\n\nexport const ChoiceGroupOption: React.FunctionComponent = styled<\n IChoiceGroupOptionProps,\n IChoiceGroupOptionStyleProps,\n IChoiceGroupOptionStyles\n>(ChoiceGroupOptionBase, getStyles, undefined, { scope: 'ChoiceGroupOption' });\n","import * as React from 'react';\nimport { Label } from '../../Label';\nimport {\n classNamesFunction,\n find,\n FocusRectsContext,\n getNativeProps,\n divProperties,\n setFocusVisibility,\n useFocusRects,\n} from '../../Utilities';\nimport { ChoiceGroupOption } from './ChoiceGroupOption/index';\nimport { useId, useControllableValue, useMergedRefs, useWarnings } from '@fluentui/react-hooks';\nimport type { IRefObject } from '../../Utilities';\nimport type {\n IChoiceGroupOption,\n IChoiceGroupProps,\n IChoiceGroupStyleProps,\n IChoiceGroupStyles,\n IChoiceGroup,\n} from './ChoiceGroup.types';\nimport type { IChoiceGroupOptionProps } from './ChoiceGroupOption/ChoiceGroupOption.types';\nimport { useDocumentEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\n\nconst getOptionId = (option: IChoiceGroupOption, id: string): string => {\n return `${id}-${option.key}`;\n};\n\nconst findOption = (options: IChoiceGroupOption[], key: IChoiceGroupProps['selectedKey']) => {\n return key === undefined ? undefined : find(options, value => value.key === key);\n};\n\nconst focusSelectedOption = (\n options: IChoiceGroupOption[],\n keyChecked: IChoiceGroupProps['selectedKey'],\n id: string,\n focusProviders?: React.RefObject[],\n doc?: Document,\n) => {\n const optionToFocus = findOption(options, keyChecked) || options.filter(option => !option.disabled)[0];\n const elementToFocus = optionToFocus && doc?.getElementById(getOptionId(optionToFocus, id));\n\n if (elementToFocus) {\n elementToFocus.focus();\n setFocusVisibility(true, elementToFocus as Element, focusProviders);\n }\n};\n\nconst focusFromFocusTrapZone = (evt: React.FocusEvent): boolean => {\n return evt.relatedTarget instanceof HTMLElement && evt.relatedTarget.dataset.isFocusTrapZoneBumper === 'true';\n};\n\nconst useComponentRef = (\n options: IChoiceGroupOption[],\n keyChecked: IChoiceGroupProps['selectedKey'],\n id: string,\n componentRef?: IRefObject,\n focusProviders?: React.RefObject[],\n) => {\n const doc = useDocumentEx();\n React.useImperativeHandle(\n componentRef,\n () => ({\n get checkedOption() {\n return findOption(options, keyChecked);\n },\n focus() {\n focusSelectedOption(options, keyChecked, id, focusProviders, doc);\n },\n }),\n [options, keyChecked, id, focusProviders, doc],\n );\n};\n\nconst COMPONENT_NAME = 'ChoiceGroup';\n\nexport const ChoiceGroupBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IChoiceGroupProps\n>((props, forwardedRef) => {\n const {\n className,\n theme,\n styles,\n options = [],\n label,\n required,\n disabled,\n name,\n defaultSelectedKey,\n componentRef,\n onChange,\n } = props;\n const id = useId('ChoiceGroup');\n const labelId = useId('ChoiceGroupLabel');\n\n const divProps = getNativeProps>(props, divProperties, [\n 'onChange',\n 'className',\n 'required',\n ]);\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n optionsContainIconOrImage: options.some(option => !!(option.iconProps || option.imageSrc)),\n });\n\n const ariaLabelledBy = props.ariaLabelledBy || (label ? labelId : props['aria-labelledby']);\n\n const [keyChecked, setKeyChecked] = useControllableValue(props.selectedKey, defaultSelectedKey);\n const [keyFocused, setKeyFocused] = React.useState();\n\n const rootRef = React.useRef(null);\n const mergedRootRefs: React.Ref = useMergedRefs(rootRef, forwardedRef);\n\n const focusContext = React.useContext(FocusRectsContext);\n\n useDebugWarnings(props);\n useComponentRef(options, keyChecked, id, componentRef, focusContext?.registeredProviders);\n useFocusRects(rootRef);\n\n const onFocus = React.useCallback((ev?: React.FocusEvent, option?: IChoiceGroupOptionProps) => {\n if (option) {\n setKeyFocused(option.itemKey);\n option.onFocus?.(ev);\n }\n }, []);\n\n const onBlur = React.useCallback((ev: React.FocusEvent, option?: IChoiceGroupOptionProps) => {\n setKeyFocused(undefined);\n option?.onBlur?.(ev);\n }, []);\n\n const onOptionChange = React.useCallback(\n (evt?: React.FormEvent, option?: IChoiceGroupOptionProps) => {\n if (!option) {\n return;\n }\n setKeyChecked(option.itemKey);\n\n option.onChange?.(evt);\n onChange?.(evt, findOption(options, option.itemKey));\n },\n [onChange, options, setKeyChecked],\n );\n\n const onRadioFocus = React.useCallback(\n (evt: React.FocusEvent) => {\n // Handles scenarios like this bug: https://github.com/microsoft/fluentui/issues/20173\n if (focusFromFocusTrapZone(evt)) {\n focusSelectedOption(options, keyChecked, id, focusContext?.registeredProviders);\n }\n },\n [options, keyChecked, id, focusContext],\n );\n\n return (\n
    \n
    \n {label && (\n \n )}\n
    \n {options.map((option: IChoiceGroupOption) => {\n return (\n \n );\n })}\n
    \n
    \n
    \n );\n});\nChoiceGroupBase.displayName = COMPONENT_NAME;\n\nfunction useDebugWarnings(props: IChoiceGroupProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: COMPONENT_NAME,\n props,\n mutuallyExclusive: {\n selectedKey: 'defaultSelectedKey',\n },\n });\n }\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IChoiceGroupStyleProps, IChoiceGroupStyles } from './ChoiceGroup.types';\n\nconst GlobalClassNames = {\n root: 'ms-ChoiceFieldGroup',\n flexContainer: 'ms-ChoiceFieldGroup-flexContainer',\n};\n\nexport const getStyles = (props: IChoiceGroupStyleProps): IChoiceGroupStyles => {\n const { className, optionsContainIconOrImage, theme } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n className,\n classNames.root,\n theme.fonts.medium,\n {\n display: 'block',\n },\n ],\n flexContainer: [\n classNames.flexContainer,\n optionsContainIconOrImage && {\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { ChoiceGroupBase } from './ChoiceGroup.base';\nimport { getStyles } from './ChoiceGroup.styles';\nimport type { IChoiceGroupProps, IChoiceGroupStyles, IChoiceGroupStyleProps } from './ChoiceGroup.types';\n\nexport const ChoiceGroup: React.FunctionComponent = styled<\n IChoiceGroupProps,\n IChoiceGroupStyleProps,\n IChoiceGroupStyles\n>(ChoiceGroupBase, getStyles, undefined, { scope: 'ChoiceGroup' });\n","import * as React from 'react';\nimport { Autofill } from '../../Autofill';\nimport {\n initializeComponentRef,\n css,\n customizable,\n divProperties,\n findElementRecursive,\n findIndex,\n focusAsync,\n getId,\n getNativeProps,\n isIOS,\n isMac,\n KeyCodes,\n shallowCompare,\n mergeAriaAttributeValues,\n warnMutuallyExclusive,\n Async,\n EventGroup,\n getPropsWithDefaults,\n} from '../../Utilities';\nimport { Callout, DirectionalHint } from '../../Callout';\nimport { Checkbox } from '../../Checkbox';\nimport { getCaretDownButtonStyles, getOptionStyles, getStyles } from './ComboBox.styles';\nimport { getClassNames, getComboBoxOptionClassNames } from './ComboBox.classNames';\nimport { Label } from '../../Label';\nimport { SelectableOptionMenuItemType, getAllSelectedOptions } from '../../SelectableOption';\nimport { BaseButton, Button, CommandButton, IconButton } from '../../Button';\nimport { useMergedRefs } from '@fluentui/react-hooks';\nimport type { IAutofill } from '../../Autofill';\nimport type { IRenderFunction } from '../../Utilities';\nimport type { IComboBoxClassNames } from './ComboBox.classNames';\nimport type {\n IComboBoxOption,\n IComboBoxOptionStyles,\n IComboBoxProps,\n IOnRenderComboBoxLabelProps,\n IComboBox,\n} from './ComboBox.types';\nimport type { IButtonStyles } from '../../Button';\nimport type { ICalloutProps } from '../../Callout';\nimport { getChildren } from '@fluentui/utilities';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx } from '../../utilities/dom';\n\nexport interface IComboBoxState {\n /** The open state */\n isOpen?: boolean;\n\n /** The focused state of the combo box */\n focusState?: 'none' | 'focused' | 'focusing';\n\n /**\n * When taking input, this will store the index that the options input matches\n * (-1 if no input or match)\n */\n currentPendingValueValidIndex: number;\n\n /**\n * Stores the hovered over value in the dropdown\n * (used for styling the options without updating the input)\n */\n currentPendingValueValidIndexOnHover: number;\n\n /** When taking input, this will store the actual text that is being entered */\n currentPendingValue?: string;\n\n /**\n * The id of the current focused combo item, otherwise the id of the currently selected element,\n * null otherwise\n */\n ariaActiveDescendantValue?: string;\n}\n\nenum SearchDirection {\n backward = -1,\n none = 0,\n forward = 1,\n}\n\nenum HoverStatus {\n /** Used when the user was hovering and has since moused out of the menu items */\n clearAll = -2,\n /** Default \"normal\" state, when no hover has happened or a hover is in progress */\n default = -1,\n}\n\nconst ScrollIdleDelay = 250; /* ms */\nconst TouchIdleDelay = 500; /* ms */\n\n/**\n * This is used to clear any pending autocomplete text (used when autocomplete is true and\n * allowFreeform is false)\n */\nconst ReadOnlyPendingAutoCompleteTimeout = 1000; /* ms */\n\ninterface IComboBoxOptionWrapperProps extends IComboBoxOption {\n /** True if the option is currently selected */\n isSelected: boolean;\n\n /** True if the option is currently checked (multi-select) */\n isChecked: boolean;\n\n /** True if the option is currently indeterminate (multi-select select all option) */\n isIndeterminate: boolean;\n\n /**\n * A function that returns the children of the OptionWrapper. We pass this in as a function to ensure that\n * children methods don't get called unnecessarily if the component doesn't need to be updated. This leads\n * to a significant performance increase in ComboBoxes with many options and/or complex onRenderOption functions\n */\n render: () => JSX.Element;\n}\n\n/**\n * Internal component that is used to wrap all ComboBox options.\n * This is used to customize when we want to re-render components,\n * so we don't re-render every option every time render is executed.\n */\nconst ComboBoxOptionWrapper = React.memo(\n ({ render }: IComboBoxOptionWrapperProps) => render(),\n (\n { render: oldRender, ...oldProps }: IComboBoxOptionWrapperProps,\n { render: newRender, ...newProps }: IComboBoxOptionWrapperProps,\n ) =>\n // The render function will always be different, so we ignore that prop\n shallowCompare(oldProps, newProps),\n);\n\nconst COMPONENT_NAME = 'ComboBox';\nconst DEFAULT_PROPS: Partial = {\n options: [],\n allowFreeform: false,\n allowParentArrowNavigation: false,\n autoComplete: 'on',\n buttonIconProps: { iconName: 'ChevronDown' },\n};\n\nfunction useOptionsState({ options, defaultSelectedKey, selectedKey }: IComboBoxProps) {\n /** The currently selected indices */\n const [selectedIndices, setSelectedIndices] = React.useState(() =>\n getSelectedIndices(options, buildDefaultSelectedKeys(defaultSelectedKey, selectedKey)),\n );\n /** The options currently available for the callout */\n const [currentOptions, setCurrentOptions] = React.useState(options);\n /** This value is used for the autocomplete hint value */\n const [suggestedDisplayValue, setSuggestedDisplayValue] = React.useState();\n\n React.useEffect(() => {\n if (selectedKey !== undefined) {\n const selectedKeys: string[] | number[] = buildSelectedKeys(selectedKey);\n const indices: number[] = getSelectedIndices(options, selectedKeys);\n\n setSelectedIndices(indices);\n }\n setCurrentOptions(options);\n }, [options, selectedKey]);\n\n React.useEffect(() => {\n if (selectedKey === null) {\n setSuggestedDisplayValue(undefined);\n }\n }, [selectedKey]);\n\n return [\n selectedIndices,\n setSelectedIndices,\n currentOptions,\n setCurrentOptions,\n suggestedDisplayValue,\n setSuggestedDisplayValue,\n ] as const;\n}\n\nexport const ComboBox: React.FunctionComponent = React.forwardRef(\n (propsWithoutDefaults: IComboBoxProps, forwardedRef: React.Ref) => {\n const { ref, ...props } = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n const rootRef = React.useRef(null);\n\n const mergedRootRef = useMergedRefs(rootRef, forwardedRef);\n\n const [\n selectedIndices,\n setSelectedIndices,\n currentOptions,\n setCurrentOptions,\n suggestedDisplayValue,\n setSuggestedDisplayValue,\n ] = useOptionsState(props);\n\n return (\n \n );\n },\n);\nComboBox.displayName = COMPONENT_NAME;\n\ninterface IComboBoxInternalProps extends Omit {\n hoisted: {\n mergedRootRef: React.Ref;\n rootRef: React.RefObject;\n selectedIndices: number[];\n currentOptions: IComboBoxOption[];\n suggestedDisplayValue?: string;\n setSelectedIndices: React.Dispatch>;\n setCurrentOptions: React.Dispatch>;\n setSuggestedDisplayValue: React.Dispatch>;\n };\n}\n\n/**\n * Depth-first search to find the first descendant element where the match function returns true.\n * @param element - element to start searching at\n * @param match - the function that determines if the element is a match\n * @returns the matched element or null no match was found\n */\nfunction findFirstDescendant(element: HTMLElement, match: (element: HTMLElement) => boolean): HTMLElement | null {\n const children = getChildren(element);\n\n // For loop is used because forEach cannot be stopped.\n for (let index = 0; index < children.length; index++) {\n const child = children[index];\n if (match(child)) {\n return child;\n }\n const candidate = findFirstDescendant(child, match);\n if (candidate) {\n return candidate;\n }\n }\n return null;\n}\n\n@customizable('ComboBox', ['theme', 'styles'], true)\nclass ComboBoxInternal extends React.Component implements IComboBox {\n public static contextType = WindowContext;\n\n /** The input aspect of the combo box */\n private _autofill = React.createRef();\n\n /** The wrapping div of the input and button */\n private _comboBoxWrapper = React.createRef();\n\n /** The callout element */\n private _comboBoxMenu = React.createRef();\n\n /** The menu item element that is currently selected */\n private _selectedElement = React.createRef();\n\n /** The base id for the ComboBox */\n private _id: string;\n\n /**\n * After a character is inserted when autocomplete is true and allowFreeform is false,\n * remember the task that will clear the pending string of characters.\n */\n private _autoCompleteTimeout: number | undefined;\n\n /** Promise used when resolving the comboBox options */\n private _currentPromise: PromiseLike;\n\n /** The current visible value sent to the auto fill on render */\n private _currentVisibleValue: string | undefined;\n private _classNames: IComboBoxClassNames;\n private _isScrollIdle: boolean;\n private _hasPendingValue: boolean;\n private _scrollIdleTimeoutId: number | undefined;\n private _processingTouch: boolean;\n private _lastTouchTimeoutId: number | undefined;\n /** True if the most recent keydown event was for alt (option) or meta (command). */\n private _lastKeyDownWasAltOrMeta: boolean | undefined;\n\n /**\n * Determines if we should be setting focus back to the input when the menu closes.\n * The general rule of thumb is if the menu was launched via the keyboard focus should go back\n * to the input, if it was dropped via the mouse focus should not be forced back to the input.\n */\n private _focusInputAfterClose: boolean;\n\n /** Flag for when we get the first mouseMove */\n private _gotMouseMove: boolean;\n\n private _processingClearPendingInfo: boolean;\n\n private _async: Async;\n private _events: EventGroup;\n\n // props to prevent dismiss on scroll/resize immediately after opening\n private _overrideScrollDismiss = false;\n private _overrideScrollDimissTimeout: number;\n\n constructor(props: IComboBoxInternalProps) {\n super(props);\n\n initializeComponentRef(this);\n this._async = new Async(this);\n this._events = new EventGroup(this);\n\n warnMutuallyExclusive(COMPONENT_NAME, props, {\n defaultSelectedKey: 'selectedKey',\n text: 'defaultSelectedKey',\n selectedKey: 'value',\n dropdownWidth: 'useComboBoxAsMenuWidth',\n ariaLabel: 'label',\n });\n\n this._id = props.id || getId('ComboBox');\n\n this._isScrollIdle = true;\n this._processingTouch = false;\n this._gotMouseMove = false;\n this._processingClearPendingInfo = false;\n\n this.state = {\n isOpen: false,\n focusState: 'none',\n currentPendingValueValidIndex: -1,\n currentPendingValue: undefined,\n currentPendingValueValidIndexOnHover: HoverStatus.default,\n };\n }\n\n /**\n * All selected options\n */\n public get selectedOptions(): IComboBoxOption[] {\n const { currentOptions, selectedIndices } = this.props.hoisted;\n\n return getAllSelectedOptions(currentOptions, selectedIndices!);\n }\n\n public componentDidMount(): void {\n if (this._comboBoxWrapper.current && !this.props.disabled) {\n // hook up resolving the options if needed on focus\n this._events.on(this._comboBoxWrapper.current, 'focus', this._onResolveOptions, true);\n if ('onpointerdown' in this._comboBoxWrapper.current) {\n // For ComboBoxes, touching anywhere in the combo box should drop the dropdown, including the input element.\n // This gives more hit target space for touch environments. We're setting the onpointerdown here, because React\n // does not support Pointer events yet.\n this._events.on(this._comboBoxWrapper.current, 'pointerdown', this._onPointerDown, true);\n }\n }\n }\n\n public componentDidUpdate(prevProps: IComboBoxInternalProps, prevState: IComboBoxState) {\n const {\n allowFreeform,\n allowFreeInput,\n text,\n onMenuOpen,\n onMenuDismissed,\n hoisted: { currentOptions, selectedIndices },\n } = this.props;\n const { currentPendingValue, currentPendingValueValidIndex, isOpen } = this.state;\n\n // If we are newly open or are open and the pending valid index changed,\n // make sure the currently selected/pending option is scrolled into view\n if (isOpen && (!prevState.isOpen || prevState.currentPendingValueValidIndex !== currentPendingValueValidIndex)) {\n // Need this timeout so that the selectedElement ref is correctly updated\n this._async.setTimeout(() => this._scrollIntoView(), 0);\n }\n\n const doc = getDocumentEx(this.context);\n // if an action is taken that put focus in the ComboBox\n // and If we are open or we are just closed, shouldFocusAfterClose is set,\n // but we are not the activeElement set focus on the input\n if (\n this._hasFocus() &&\n (isOpen ||\n (prevState.isOpen &&\n !isOpen &&\n this._focusInputAfterClose &&\n this._autofill.current &&\n doc?.activeElement !== this._autofill.current.inputElement))\n ) {\n this.focus(undefined /*shouldOpenOnFocus*/, true /*useFocusAsync*/);\n }\n\n // If we should focusAfterClose AND\n // just opened/closed the menu OR\n // are focused AND\n // updated the selectedIndex with the menu closed OR\n // are not allowing freeform or free input OR\n // the value changed\n // we need to set selection\n if (\n this._focusInputAfterClose &&\n ((prevState.isOpen && !isOpen) ||\n (this._hasFocus() &&\n ((!isOpen &&\n !this.props.multiSelect &&\n prevProps.hoisted.selectedIndices &&\n selectedIndices &&\n prevProps.hoisted.selectedIndices[0] !== selectedIndices[0]) ||\n (!allowFreeform && !allowFreeInput) ||\n text !== prevProps.text)))\n ) {\n this._onFocus();\n }\n\n this._notifyPendingValueChanged(prevState);\n\n if (isOpen && !prevState.isOpen) {\n // handle dismiss buffer after suggestions are opened\n this._overrideScrollDismiss = true;\n this._async.clearTimeout(this._overrideScrollDimissTimeout);\n this._overrideScrollDimissTimeout = this._async.setTimeout(() => {\n this._overrideScrollDismiss = false;\n }, 100);\n\n onMenuOpen?.();\n }\n\n if (!isOpen && prevState.isOpen && onMenuDismissed) {\n onMenuDismissed();\n }\n\n let newCurrentPendingValueValidIndex = currentPendingValueValidIndex;\n const options = currentOptions.map((item, index) => ({ ...item, index }));\n\n // If currentOptions differs from the previous currentOptions we need to update the currentPendingValueValidIndex\n // otherwise, it will be out of sync with the currentOptions. This can happen when the options are filtered.\n if (!shallowCompare(prevProps.hoisted.currentOptions, currentOptions) && currentPendingValue) {\n newCurrentPendingValueValidIndex =\n this.props.allowFreeform || this.props.allowFreeInput\n ? this._processInputChangeWithFreeform(currentPendingValue)\n : this._updateAutocompleteIndexWithoutFreeform(currentPendingValue);\n }\n\n let descendantText = undefined;\n\n if (isOpen && this._hasFocus() && newCurrentPendingValueValidIndex !== -1) {\n descendantText =\n options[newCurrentPendingValueValidIndex].id ?? this._id + '-list' + newCurrentPendingValueValidIndex;\n } else if (isOpen && selectedIndices.length) {\n descendantText = options[selectedIndices[0]]?.id ?? this._id + '-list' + selectedIndices[0];\n }\n\n if (descendantText !== this.state.ariaActiveDescendantValue) {\n this.setState({\n ariaActiveDescendantValue: descendantText,\n });\n }\n }\n\n public componentWillUnmount(): void {\n this._async.dispose();\n this._events.dispose();\n }\n\n // Primary Render\n public render(): JSX.Element {\n const id = this._id;\n const errorMessageId = id + '-error';\n const {\n className,\n disabled,\n required,\n errorMessage,\n onRenderContainer = this._onRenderContainer,\n onRenderLabel = this._onRenderLabel,\n onRenderList = this._onRenderList,\n onRenderItem = this._onRenderItem,\n onRenderOption = this._onRenderOptionContent,\n allowFreeform,\n styles: customStyles,\n theme,\n persistMenu,\n multiSelect,\n hoisted: { suggestedDisplayValue, selectedIndices, currentOptions },\n } = this.props;\n const { isOpen } = this.state;\n this._currentVisibleValue = this._getVisibleValue();\n\n // Single select is already accessible since the whole text is selected\n // when focus enters the input. Since multiselect appears to clear the input\n // it needs special accessible text\n const multiselectAccessibleText = multiSelect\n ? this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue)\n : undefined;\n\n const divProps = getNativeProps>(this.props, divProperties, [\n 'onChange',\n 'value',\n 'aria-describedby',\n 'aria-labelledby',\n ]);\n\n const hasErrorMessage = errorMessage && errorMessage.length > 0 ? true : false;\n\n this._classNames = this.props.getClassNames\n ? this.props.getClassNames(\n theme!,\n !!isOpen,\n !!disabled,\n !!required,\n !!this._hasFocus(),\n !!allowFreeform,\n !!hasErrorMessage,\n className,\n )\n : getClassNames(\n getStyles(theme!, customStyles),\n className!,\n !!isOpen,\n !!disabled,\n !!required,\n !!this._hasFocus(),\n !!allowFreeform,\n !!hasErrorMessage,\n );\n\n const comboBoxWrapper = this._renderComboBoxWrapper(multiselectAccessibleText, errorMessageId);\n\n return (\n
    \n {onRenderLabel({ props: this.props, multiselectAccessibleText }, this._onRenderLabel)}\n {comboBoxWrapper}\n {(persistMenu || isOpen) &&\n onRenderContainer(\n {\n ...this.props,\n onRenderList,\n onRenderItem,\n onRenderOption,\n options: currentOptions.map((item, index) => ({ ...item, index })),\n onDismiss: this._onDismiss,\n },\n this._onRenderContainer,\n )}\n {hasErrorMessage && (\n
    \n {errorMessage}\n
    \n )}\n
    \n );\n }\n\n /**\n * {@inheritdoc}\n */\n public focus = (shouldOpenOnFocus?: boolean, useFocusAsync?: boolean): void => {\n if (this.props.disabled) {\n return;\n }\n\n if (this._autofill.current) {\n if (useFocusAsync) {\n focusAsync(this._autofill.current);\n } else {\n this._autofill.current.focus();\n }\n\n if (shouldOpenOnFocus) {\n this.setState({\n isOpen: true,\n });\n }\n }\n\n // Programmatically setting focus means that there is nothing else that needs to be done\n // Focus is now contained\n if (!this._hasFocus()) {\n this.setState({ focusState: 'focused' });\n }\n };\n\n /**\n * Close menu callout if it is open\n */\n public dismissMenu = (): void => {\n const { isOpen } = this.state;\n isOpen && this.setState({ isOpen: false });\n };\n\n /**\n * componentWillReceiveProps handler for the auto fill component\n * Checks/updates the input value to set, if needed\n * @param defaultVisibleValue - the defaultVisibleValue that got passed\n * in to the auto fill's componentWillReceiveProps\n * @returns - the updated value to set, if needed\n */\n private _onUpdateValueInAutofillWillReceiveProps = (): string | null => {\n const comboBox = this._autofill.current;\n\n if (!comboBox) {\n return null;\n }\n\n if (comboBox.value === null || comboBox.value === undefined) {\n return null;\n }\n\n return normalizeToString(this._currentVisibleValue);\n };\n\n private _renderComboBoxWrapper = (\n multiselectAccessibleText: string | undefined,\n errorMessageId: string,\n ): JSX.Element => {\n const {\n label,\n disabled,\n ariaLabel,\n ariaDescribedBy = this.props['aria-describedby'],\n required,\n errorMessage,\n buttonIconProps,\n isButtonAriaHidden,\n title,\n placeholder: placeholderProp,\n tabIndex,\n autofill,\n iconButtonProps,\n hoisted: { suggestedDisplayValue },\n } = this.props;\n\n const { ariaActiveDescendantValue, isOpen } = this.state;\n\n // If the combo box has focus, is multiselect, and has a display string, then use that placeholder\n // so that the selected items don't appear to vanish. This is not ideal but it's the only reasonable way\n // to correct the behavior where the input is cleared so the user can type. If a full refactor is done, then this\n // should be removed and the multiselect combo box should behave like a picker.\n const placeholder =\n this._hasFocus() && this.props.multiSelect && multiselectAccessibleText\n ? multiselectAccessibleText\n : placeholderProp;\n\n const labelledBy = [this.props['aria-labelledby'], label && this._id + '-label'].join(' ').trim();\n const labelProps = {\n 'aria-labelledby': labelledBy ? labelledBy : undefined,\n 'aria-label': ariaLabel && !label ? ariaLabel : undefined,\n };\n\n const hasErrorMessage = errorMessage && errorMessage.length > 0 ? true : false;\n\n return (\n \n \n \n
    \n );\n };\n\n /**\n * componentDidUpdate handler for the auto fill component\n *\n * @param defaultVisibleValue - the current defaultVisibleValue in the auto fill's componentDidUpdate\n * @param suggestedDisplayValue - the current suggestedDisplayValue in the auto fill's componentDidUpdate\n * @returns - should the full value of the input be selected?\n * True if the defaultVisibleValue equals the suggestedDisplayValue, false otherwise\n */\n private _onShouldSelectFullInputValueInAutofillComponentDidUpdate = (): boolean => {\n return this._currentVisibleValue === this.props.hoisted.suggestedDisplayValue;\n };\n\n /**\n * Get the correct value to pass to the input\n * to show to the user based off of the current props and state\n * @returns the value to pass to the input\n */\n private _getVisibleValue = (): string | undefined => {\n const {\n text,\n allowFreeform,\n allowFreeInput,\n autoComplete,\n hoisted: { suggestedDisplayValue, selectedIndices, currentOptions },\n } = this.props;\n const { currentPendingValueValidIndex, currentPendingValue, isOpen } = this.state;\n\n const currentPendingIndexValid = indexWithinBounds(currentOptions, currentPendingValueValidIndex);\n\n // If the user passed is a value prop, use that\n // unless we are open and have a valid current pending index\n if (\n !(isOpen && currentPendingIndexValid) &&\n (text || text === '') &&\n (currentPendingValue === null || currentPendingValue === undefined)\n ) {\n return text;\n }\n\n if (this.props.multiSelect) {\n // Multi-select\n if (this._hasFocus()) {\n let index = -1;\n if (autoComplete === 'on' && currentPendingIndexValid) {\n index = currentPendingValueValidIndex;\n }\n return this._getPendingString(currentPendingValue, currentOptions, index);\n } else {\n return this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue);\n }\n } else {\n // Single-select\n let index: number = this._getFirstSelectedIndex();\n if (allowFreeform || allowFreeInput) {\n // If we are allowing freeform/free input and autocomplete is also true\n // and we've got a pending value that matches an option, remember\n // the matched option's index\n if (autoComplete === 'on' && currentPendingIndexValid) {\n index = currentPendingValueValidIndex;\n }\n\n // Since we are allowing freeform, if there is currently a pending value, use that\n // otherwise use the index determined above (falling back to '' if we did not get a valid index)\n return this._getPendingString(currentPendingValue, currentOptions, index);\n } else {\n // If we are not allowing freeform and have a valid index that matches the pending value,\n // we know we will need some version of the pending value\n if (currentPendingIndexValid && autoComplete === 'on') {\n // If autoComplete is on, return the raw pending value, otherwise remember\n // the matched option's index\n index = currentPendingValueValidIndex;\n return normalizeToString(currentPendingValue);\n } else if (!this.state.isOpen && currentPendingValue) {\n return indexWithinBounds(currentOptions, index)\n ? currentPendingValue\n : normalizeToString(suggestedDisplayValue);\n } else {\n return indexWithinBounds(currentOptions, index)\n ? getPreviewText(currentOptions[index])\n : normalizeToString(suggestedDisplayValue);\n }\n }\n }\n };\n\n private _getPendingString(\n currentPendingValue: string | null | undefined,\n currentOptions: IComboBoxOption[],\n index: number,\n ) {\n return currentPendingValue !== null && currentPendingValue !== undefined\n ? currentPendingValue\n : indexWithinBounds(currentOptions, index)\n ? getPreviewText(currentOptions[index])\n : '';\n }\n\n /**\n * Returns a string that concatenates all of the selected values\n * for multiselect combo box.\n */\n private _getMultiselectDisplayString(\n selectedIndices: number[] | undefined,\n currentOptions: IComboBoxOption[],\n suggestedDisplayValue: string | undefined,\n ) {\n const displayValues = [];\n for (let idx = 0; selectedIndices && idx < selectedIndices.length; idx++) {\n const index: number = selectedIndices[idx];\n if (currentOptions[index].itemType !== SelectableOptionMenuItemType.SelectAll) {\n displayValues.push(\n indexWithinBounds(currentOptions, index)\n ? currentOptions[index].text\n : normalizeToString(suggestedDisplayValue),\n );\n }\n }\n const { multiSelectDelimiter = ', ' } = this.props;\n return displayValues.join(multiSelectDelimiter);\n }\n\n /**\n * Handler for typing changes on the input\n * @param updatedValue - the newly changed value\n */\n private _onInputChange = (updatedValue: string): void => {\n if (this.props.disabled) {\n this._handleInputWhenDisabled(null /* event */);\n return;\n }\n\n if (this.props.onInputValueChange) {\n this.props.onInputValueChange(updatedValue);\n }\n\n this.props.allowFreeform || this.props.allowFreeInput\n ? this._processInputChangeWithFreeform(updatedValue)\n : this._processInputChangeWithoutFreeform(updatedValue);\n };\n\n /**\n * Do not dismiss if the window resizes or scrolls within 100ms of opening\n * This prevents the Android issue where pickers immediately dismiss on open, because the keyboard appears\n * @param ev - the event triggering the dismiss check\n * @returns a boolean indicating whether the callout dismissal should be prevented\n */\n private _preventDismissOnScrollOrResize(ev: Event) {\n // default to passed-in preventDismiss\n const { calloutProps } = this.props;\n if (calloutProps?.preventDismissOnEvent) {\n return calloutProps.preventDismissOnEvent(ev);\n }\n\n if (this._overrideScrollDismiss && (ev.type === 'scroll' || ev.type === 'resize')) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Process the new input's new value when the combo box allows freeform entry\n * @param updatedValue - the input's newly changed value\n * @returns the index of the matched option, -1 if no match was found\n */\n private _processInputChangeWithFreeform(updatedValue: string): number {\n const { currentOptions } = this.props.hoisted;\n let newCurrentPendingValueValidIndex = -1;\n\n // if the new value is empty, see if we have an exact match and then set the pending info\n if (updatedValue === '') {\n const items = currentOptions\n .map((item, index) => ({ ...item, index }))\n .filter(option => isNormalOption(option) && !option.disabled && getPreviewText(option) === updatedValue);\n\n // if we found a match remember the index\n if (items.length === 1) {\n newCurrentPendingValueValidIndex = items[0].index;\n }\n\n this._setPendingInfo(updatedValue, newCurrentPendingValueValidIndex, updatedValue);\n return newCurrentPendingValueValidIndex;\n }\n\n // Remember the original value and then make the value lowercase for comparison\n const originalUpdatedValue: string = updatedValue;\n // Make the value lowercase for comparison if caseSensitive is false\n updatedValue = this._adjustForCaseSensitivity(updatedValue);\n\n let newSuggestedDisplayValue = '';\n\n // If autoComplete is on, attempt to find a match from the available options\n if (this.props.autoComplete === 'on') {\n // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value\n const items = currentOptions\n .map((item, index) => ({ ...item, index }))\n .filter(\n option =>\n isNormalOption(option) &&\n !option.disabled &&\n this._adjustForCaseSensitivity(getPreviewText(option)).indexOf(updatedValue) === 0,\n );\n if (items.length > 0) {\n // use ariaLabel as the value when the option is set\n const text: string = getPreviewText(items[0]);\n\n // If the user typed out the complete option text, we don't need any suggested display text anymore\n newSuggestedDisplayValue = this._adjustForCaseSensitivity(text) !== updatedValue ? text : '';\n\n // remember the index of the match we found\n newCurrentPendingValueValidIndex = items[0].index;\n }\n } else {\n // If autoComplete is off, attempt to find a match only when the value is exactly equal to the text of an option\n const items = currentOptions\n .map((item, index) => ({ ...item, index }))\n .filter(\n option =>\n isNormalOption(option) &&\n !option.disabled &&\n this._adjustForCaseSensitivity(getPreviewText(option)) === updatedValue,\n );\n\n // if we found a match remember the index\n if (items.length === 1) {\n newCurrentPendingValueValidIndex = items[0].index;\n }\n }\n\n // Set the updated state\n this._setPendingInfo(originalUpdatedValue, newCurrentPendingValueValidIndex, newSuggestedDisplayValue);\n return newCurrentPendingValueValidIndex;\n }\n\n /**\n * Process the new input's new value when the combo box does not allow freeform entry\n * @param updatedValue - the input's newly changed value\n * @returns the index of the matched option\n */\n private _processInputChangeWithoutFreeform(updatedValue: string): number {\n const { currentPendingValue, currentPendingValueValidIndex } = this.state;\n\n if (this.props.autoComplete === 'on') {\n // If autoComplete is on while allow freeform is off,\n // we will remember the key press and build up a string to attempt to match\n // as long as characters are typed within a the timeout span of each other,\n // otherwise we will clear the string and start building a new one on the next keypress.\n // Also, only do this processing if we have a non-empty value\n if (updatedValue !== '') {\n // If we have a pending autocomplete clearing task,\n // we know that the user is typing with key press happening\n // within the timeout of each other so remove the clearing task\n // and continue building the pending value with the updated value\n if (this._autoCompleteTimeout) {\n this._async.clearTimeout(this._autoCompleteTimeout);\n this._autoCompleteTimeout = undefined;\n updatedValue = normalizeToString(currentPendingValue) + updatedValue;\n }\n\n const matchingIndex = this._updateAutocompleteIndexWithoutFreeform(updatedValue);\n\n // Schedule a timeout to clear the pending value after the timeout span\n this._autoCompleteTimeout = this._async.setTimeout(() => {\n this._autoCompleteTimeout = undefined;\n }, ReadOnlyPendingAutoCompleteTimeout);\n\n return matchingIndex;\n }\n }\n\n // If we get here, autoComplete is off.\n // Remember we are not allowing freeform, so at this point, if we have a pending valid value index\n // use that; otherwise use the selectedIndex\n const index = currentPendingValueValidIndex >= 0 ? currentPendingValueValidIndex : this._getFirstSelectedIndex();\n\n // Since we are not allowing freeform, we need to\n // set both the pending and suggested values/index\n // to allow us to select all content in the input to\n // give the illusion that we are readonly (e.g. freeform off)\n this._setPendingInfoFromIndex(index);\n return index;\n }\n\n private _updateAutocompleteIndexWithoutFreeform(updatedValue: string): number {\n const { currentOptions } = this.props.hoisted;\n const originalUpdatedValue: string = updatedValue;\n updatedValue = this._adjustForCaseSensitivity(updatedValue);\n\n // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value\n const items = currentOptions\n .map((item, i) => ({ ...item, index: i }))\n\n .filter(\n option =>\n isNormalOption(option) &&\n !option.disabled &&\n this._adjustForCaseSensitivity(option.text).indexOf(updatedValue) === 0,\n );\n\n // If we found a match, update the state\n if (items.length > 0) {\n this._setPendingInfo(originalUpdatedValue, items[0].index, getPreviewText(items[0]));\n return items[0].index;\n }\n\n return -1;\n }\n\n private _getFirstSelectedIndex(): number {\n const { selectedIndices } = this.props.hoisted;\n return selectedIndices?.length ? selectedIndices[0] : -1;\n }\n\n /**\n * Walk along the options starting at the index, stepping by the delta (positive or negative)\n * looking for the next valid selectable index (e.g. skipping headings and dividers)\n * @param index - the index to get the next selectable index from\n * @param delta - optional delta to step by when finding the next index, defaults to 0\n * @returns - the next valid selectable index. If the new index is outside of the bounds,\n * it will snap to the edge of the options array. If delta == 0 and the given index is not selectable\n */\n private _getNextSelectableIndex(index: number, searchDirection: SearchDirection): number {\n const { currentOptions } = this.props.hoisted;\n\n let newIndex = index + searchDirection;\n\n newIndex = Math.max(0, Math.min(currentOptions.length - 1, newIndex));\n\n if (!indexWithinBounds(currentOptions, newIndex)) {\n return -1;\n }\n\n const option: IComboBoxOption = currentOptions[newIndex];\n\n if (!isSelectableOption(option) || option.hidden === true) {\n // Should we continue looking for an index to select?\n if (\n searchDirection !== SearchDirection.none &&\n ((newIndex > 0 && searchDirection < SearchDirection.none) ||\n (newIndex >= 0 && newIndex < currentOptions.length && searchDirection > SearchDirection.none))\n ) {\n newIndex = this._getNextSelectableIndex(newIndex, searchDirection);\n } else {\n // If we cannot perform a useful search just return the index we were given\n return index;\n }\n }\n\n // We have the next valid selectable index, return it\n return newIndex;\n }\n\n /**\n * Set the selected index. Note, this is\n * the \"real\" selected index, not the pending selected index\n * @param index - the index to set (or the index to set from if a search direction is provided)\n * @param searchDirection - the direction to search along the options from the given index\n */\n private _setSelectedIndex(\n index: number,\n submitPendingValueEvent: React.SyntheticEvent,\n searchDirection: SearchDirection = SearchDirection.none,\n ): void {\n const {\n onChange,\n onPendingValueChanged,\n hoisted: { selectedIndices: initialIndices, currentOptions },\n } = this.props;\n\n // Clone currentOptions and selectedIndices so we don't mutate state\n let selectedIndices = initialIndices ? initialIndices.slice() : [];\n let changedOptions = currentOptions.slice();\n\n // Find the next selectable index, if searchDirection is none\n // we will get our starting index back\n index = this._getNextSelectableIndex(index, searchDirection);\n\n if (!indexWithinBounds(currentOptions, index)) {\n return;\n }\n\n // Are we at a new index? If so, update the state, otherwise\n // there is nothing to do\n if (\n this.props.multiSelect ||\n selectedIndices.length < 1 ||\n (selectedIndices.length === 1 && selectedIndices[0] !== index)\n ) {\n const option: IComboBoxOption = { ...currentOptions[index] };\n // if option doesn't existing, or option is disabled, we noop\n if (!option || option.disabled) {\n return;\n }\n if (this.props.multiSelect) {\n // Setting the initial state of option.selected in Multi-select combo box by checking the\n // selectedIndices array and overriding the undefined issue\n option.selected = option.selected !== undefined ? !option.selected : selectedIndices.indexOf(index) < 0;\n\n // handle changing all options if SelectAll is changed\n if (option.itemType === SelectableOptionMenuItemType.SelectAll) {\n selectedIndices = [];\n // if select all is set to checked, push all selectable option indices\n if (option.selected) {\n currentOptions.forEach((currentOption, i) => {\n if (!currentOption.disabled && isSelectableOption(currentOption)) {\n selectedIndices.push(i);\n changedOptions[i] = { ...currentOption, selected: true };\n }\n });\n }\n // otherwise un-check all options\n else {\n changedOptions = currentOptions.map(currentOption => ({ ...currentOption, selected: false }));\n }\n }\n // otherwise update the individual option\n else {\n if (option.selected && selectedIndices.indexOf(index) < 0) {\n selectedIndices.push(index);\n } else if (!option.selected && selectedIndices.indexOf(index) >= 0) {\n selectedIndices = selectedIndices.filter((value: number) => value !== index);\n }\n changedOptions[index] = option;\n\n // If SelectAll exists and another option was toggled, update the SelectAll option's state\n const selectAllOption = changedOptions.filter(o => o.itemType === SelectableOptionMenuItemType.SelectAll)[0];\n if (selectAllOption) {\n const selectAllState = this._isSelectAllChecked(selectedIndices);\n const selectAllIndex = changedOptions.indexOf(selectAllOption);\n if (selectAllState) {\n selectedIndices.push(selectAllIndex);\n changedOptions[selectAllIndex] = { ...selectAllOption, selected: true };\n } else {\n selectedIndices = selectedIndices.filter((value: number) => value !== selectAllIndex);\n changedOptions[selectAllIndex] = { ...selectAllOption, selected: false };\n }\n }\n }\n } else {\n selectedIndices[0] = index;\n }\n\n submitPendingValueEvent.persist();\n\n // Only setState if combo box is uncontrolled.\n if (this.props.selectedKey || this.props.selectedKey === null) {\n // If combo box value is changed, revert preview first\n if (this._hasPendingValue && onPendingValueChanged) {\n onPendingValueChanged();\n this._hasPendingValue = false;\n }\n } else {\n this.props.hoisted.setSelectedIndices(selectedIndices);\n this.props.hoisted.setCurrentOptions(changedOptions);\n\n // If ComboBox value is changed, revert preview first\n if (this._hasPendingValue && onPendingValueChanged) {\n onPendingValueChanged();\n this._hasPendingValue = false;\n }\n }\n\n // Call onChange after state is updated\n if (onChange) {\n onChange(submitPendingValueEvent, option, index, getPreviewText(option));\n }\n }\n if (this.props.multiSelect && this.state.isOpen) {\n return;\n }\n // clear all of the pending info\n this._clearPendingInfo();\n }\n\n /**\n * Focus (and select) the content of the input\n * and set the focused state\n */\n private _onFocus = (): void => {\n this._autofill.current?.inputElement?.select();\n\n if (!this._hasFocus()) {\n this.setState({ focusState: 'focusing' });\n }\n };\n\n /**\n * Callback issued when the options should be resolved, if they have been updated or\n * if they need to be passed in the first time. This only does work if an onResolveOptions\n * callback was passed in\n */\n private _onResolveOptions = (): void => {\n if (this.props.onResolveOptions) {\n // get the options\n const newOptions = this.props.onResolveOptions([...this.props.hoisted.currentOptions]);\n\n // Check to see if the returned value is an array, if it is update the state\n // If the returned value is not an array then check to see if it's a promise or PromiseLike.\n // If it is then resolve it asynchronously.\n if (Array.isArray(newOptions)) {\n this.props.hoisted.setCurrentOptions(newOptions);\n } else if (newOptions && (newOptions as PromiseLike).then) {\n // Ensure that the promise will only use the callback if it was the most recent one\n // and update the state when the promise returns\n this._currentPromise = newOptions;\n newOptions.then((newOptionsFromPromise: IComboBoxOption[]) => {\n if (newOptions === this._currentPromise) {\n this.props.hoisted.setCurrentOptions(newOptionsFromPromise);\n }\n });\n }\n }\n };\n\n /**\n * OnBlur handler. Set the focused state to false\n * and submit any pending value\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private _onBlur = (event: React.FocusEvent): void => {\n const doc = getDocumentEx(this.context);\n // Do nothing if the blur is coming from something\n // inside the comboBox root or the comboBox menu since\n // it we are not really blurring from the whole comboBox\n let relatedTarget = event.relatedTarget;\n if (event.relatedTarget === null) {\n // In IE11, due to lack of support, event.relatedTarget is always\n // null making every onBlur call to be \"outside\" of the ComboBox\n // even when it's not. Using document.activeElement is another way\n // for us to be able to get what the relatedTarget without relying\n // on the event\n relatedTarget = doc?.activeElement as Element;\n }\n\n if (relatedTarget) {\n const isBlurFromComboBoxTitle = this.props.hoisted.rootRef.current?.contains(relatedTarget as HTMLElement);\n const isBlurFromComboBoxMenu = this._comboBoxMenu.current?.contains(relatedTarget as HTMLElement);\n const isBlurFromComboBoxMenuAncestor =\n this._comboBoxMenu.current &&\n findElementRecursive(this._comboBoxMenu.current, (element: HTMLElement) => element === relatedTarget, doc);\n\n if (isBlurFromComboBoxTitle || isBlurFromComboBoxMenu || isBlurFromComboBoxMenuAncestor) {\n if (\n isBlurFromComboBoxMenuAncestor &&\n this._hasFocus() &&\n (!this.props.multiSelect || this.props.allowFreeform)\n ) {\n this._submitPendingValue(event);\n }\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n }\n\n if (this._hasFocus()) {\n this.setState({ focusState: 'none' });\n if (!this.props.multiSelect || this.props.allowFreeform) {\n this._submitPendingValue(event);\n }\n }\n };\n\n /**\n * Submit a pending value if there is one\n */\n private _submitPendingValue(submitPendingValueEvent: React.SyntheticEvent): void {\n const { onChange, allowFreeform, autoComplete, multiSelect, hoisted } = this.props;\n const { currentOptions } = hoisted;\n const { currentPendingValue, currentPendingValueValidIndex, currentPendingValueValidIndexOnHover } = this.state;\n let { selectedIndices } = this.props.hoisted;\n\n // Do not submit any pending value if we\n // have already initiated clearing the pending info\n if (this._processingClearPendingInfo) {\n return;\n }\n\n // If we allow freeform we need to handle that\n if (allowFreeform) {\n // if currentPendingValue is null or undefined the user did not submit anything\n // (not even empty because we would have stored that as the pending value)\n if (currentPendingValue === null || currentPendingValue === undefined) {\n // if a user did not type anything they may just hovered over an item\n if (currentPendingValueValidIndexOnHover >= 0) {\n this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent);\n this._clearPendingInfo();\n }\n\n return;\n }\n\n // Check to see if the user typed an exact match\n if (indexWithinBounds(currentOptions, currentPendingValueValidIndex)) {\n const pendingOptionText = this._adjustForCaseSensitivity(\n getPreviewText(currentOptions[currentPendingValueValidIndex]),\n );\n\n const autofill = this._autofill.current;\n\n // By exact match, that means: our pending value is the same as the pending option text OR\n // the pending option starts with the pending value and we have an \"autoComplete\" selection\n // where the total length is equal to pending option length OR\n // the live value in the underlying input matches the pending option; update the state\n const adjustedCurrentPendingValue = this._adjustForCaseSensitivity(currentPendingValue);\n if (\n adjustedCurrentPendingValue === pendingOptionText ||\n (autoComplete &&\n pendingOptionText.indexOf(adjustedCurrentPendingValue) === 0 &&\n autofill?.isValueSelected &&\n currentPendingValue.length + (autofill.selectionEnd! - autofill.selectionStart!) ===\n pendingOptionText.length) ||\n (autofill?.inputElement?.value !== undefined &&\n this._adjustForCaseSensitivity(autofill.inputElement.value) === pendingOptionText)\n ) {\n this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent);\n if (multiSelect && this.state.isOpen) {\n return;\n }\n this._clearPendingInfo();\n return;\n }\n }\n\n if (onChange) {\n if (onChange) {\n // trigger onChange to clear value\n onChange(submitPendingValueEvent, undefined, undefined, currentPendingValue);\n }\n } else {\n // If we are not controlled, create a new selected option\n const newOption: IComboBoxOption = {\n key: currentPendingValue || getId(),\n text: normalizeToString(currentPendingValue),\n };\n // If it's multiselect, set selected state to true\n if (multiSelect) {\n newOption.selected = true;\n }\n const newOptions: IComboBoxOption[] = currentOptions.concat([newOption]);\n if (selectedIndices) {\n if (!multiSelect) {\n selectedIndices = [];\n }\n selectedIndices.push(newOptions.length - 1);\n }\n hoisted.setCurrentOptions(newOptions);\n hoisted.setSelectedIndices(selectedIndices);\n }\n } else if (currentPendingValueValidIndex >= 0) {\n // Since we are not allowing freeform, we must have a matching\n // to be able to update state\n this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent);\n } else if (currentPendingValueValidIndexOnHover >= 0) {\n // If all else failed and we were hovering over an item, select it\n this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent);\n }\n\n // Finally, clear the pending info\n this._clearPendingInfo();\n }\n\n // Render Callout container and pass in list\n private _onRenderContainer = (props: IComboBoxProps, defaultRender: IRenderFunction): JSX.Element => {\n const {\n onRenderList,\n calloutProps,\n dropdownWidth,\n dropdownMaxWidth,\n onRenderUpperContent = this._onRenderUpperContent,\n onRenderLowerContent = this._onRenderLowerContent,\n useComboBoxAsMenuWidth,\n persistMenu,\n shouldRestoreFocus = true,\n } = props;\n\n const { isOpen } = this.state;\n const id = this._id;\n\n const comboBoxMenuWidth =\n useComboBoxAsMenuWidth && this._comboBoxWrapper.current\n ? this._comboBoxWrapper.current.clientWidth + 2\n : undefined;\n\n return (\n
    \n );\n }\n\n /** Set focus to the active thing in the focus area. */\n public focus(): boolean {\n return !!this._rootComponent.current?.focus();\n }\n\n /**\n * Gets column reorder props from this.props. If the calling code is part of setting up or\n * handling drag/drop events, it's safe to assume that this method's return value is defined\n * (because drag/drop handling will only be set up if reorder props are given).\n */\n private _getColumnReorderProps(): IColumnReorderHeaderProps | undefined {\n const { columnReorderOptions, columnReorderProps } = this.props;\n return columnReorderProps || (columnReorderOptions && { ...columnReorderOptions, onColumnDragEnd: undefined });\n }\n\n private _getHeaderDragDropOptions(): IDragDropOptions {\n const options = {\n selectionIndex: 1,\n context: { data: this, index: 0 },\n canDrag: () => false,\n canDrop: () => true,\n onDragStart: () => undefined,\n updateDropState: this._updateDroppingState,\n onDrop: this._onDrop,\n onDragEnd: () => undefined,\n onDragOver: this._onDragOver,\n };\n return options;\n }\n\n private _updateDroppingState = (newValue: boolean, event: DragEvent): void => {\n if (this._draggedColumnIndex >= 0 && event.type !== 'drop' && !newValue) {\n this._resetDropHints();\n }\n };\n\n private _isValidCurrentDropHintIndex() {\n return this._currentDropHintIndex >= 0;\n }\n\n private _onDragOver = (item: any, event: DragEvent): void => {\n if (this._draggedColumnIndex >= 0) {\n event.stopPropagation();\n this._computeDropHintToBeShown(event.clientX);\n }\n };\n\n private _onDrop = (item?: any, event?: DragEvent): void => {\n // Safe to assume this is defined since we're handling a drop event\n const columnReorderProps = this._getColumnReorderProps()!;\n\n // Target index will not get changed if draggeditem is after target item.\n if (this._draggedColumnIndex >= 0 && event) {\n const targetIndex =\n this._draggedColumnIndex > this._currentDropHintIndex\n ? this._currentDropHintIndex\n : this._currentDropHintIndex - 1;\n const isValidDrop = this._isValidCurrentDropHintIndex();\n event.stopPropagation();\n if (isValidDrop) {\n this._onDropIndexInfo.sourceIndex = this._draggedColumnIndex;\n this._onDropIndexInfo.targetIndex = targetIndex;\n\n if (columnReorderProps.onColumnDrop) {\n const dragDropDetails: IColumnDragDropDetails = {\n draggedIndex: this._draggedColumnIndex,\n targetIndex,\n };\n columnReorderProps.onColumnDrop(dragDropDetails);\n /* eslint-disable @typescript-eslint/no-deprecated */\n } else if (columnReorderProps.handleColumnReorder) {\n columnReorderProps.handleColumnReorder(this._draggedColumnIndex, targetIndex);\n /* eslint-enable @typescript-eslint/no-deprecated */\n }\n }\n }\n\n this._resetDropHints();\n this._dropHintDetails = {};\n this._draggedColumnIndex = -1;\n };\n\n private _computeColumnIndexOffset = (showCheckbox: boolean) => {\n const hasGroupExpander = this.props.groupNestingDepth && this.props.groupNestingDepth > 0;\n\n let offset = 1;\n if (showCheckbox) {\n offset += 1;\n }\n\n if (hasGroupExpander) {\n offset += 1;\n }\n\n return offset;\n };\n\n /**\n * @returns whether or not the \"Select All\" checkbox column is hidden.\n */\n private _isCheckboxColumnHidden(): boolean {\n const { selectionMode, checkboxVisibility } = this.props;\n\n return selectionMode === SelectionMode.none || checkboxVisibility === CheckboxVisibility.hidden;\n }\n\n private _updateDragInfo = (props: { itemIndex: number }, event?: MouseEvent) => {\n // Safe to assume this is defined since we're handling a drag event\n const columnReorderProps = this._getColumnReorderProps()!;\n const itemIndex = props.itemIndex;\n if (itemIndex >= 0) {\n // Column index is set based on the checkbox\n this._draggedColumnIndex = itemIndex - this._computeColumnIndexOffset(!this._isCheckboxColumnHidden());\n this._getDropHintPositions();\n if (columnReorderProps.onColumnDragStart) {\n columnReorderProps.onColumnDragStart(true);\n }\n } else if (event && this._draggedColumnIndex >= 0) {\n this._resetDropHints();\n this._draggedColumnIndex = -1;\n this._dropHintDetails = {};\n if (columnReorderProps.onColumnDragEnd) {\n const columnDragEndLocation = this._isEventOnHeader(event);\n columnReorderProps.onColumnDragEnd({ dropLocation: columnDragEndLocation }, event);\n }\n }\n };\n\n private _resetDropHints(): void {\n if (this._currentDropHintIndex >= 0) {\n this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef, 'none');\n this._currentDropHintIndex = -1;\n }\n }\n\n private _updateDropHintElement(element: HTMLElement, displayProperty: string) {\n (element.childNodes[1] as HTMLElement).style.display = displayProperty;\n (element.childNodes[0] as HTMLElement).style.display = displayProperty;\n }\n\n private _getDropHintPositions = (): void => {\n const { columns = NO_COLUMNS } = this.props;\n // Safe to assume this is defined since we're handling a drag/drop event\n const columnReorderProps = this._getColumnReorderProps()!;\n let prevX = 0;\n let prevMid = 0;\n let prevRef: HTMLElement;\n const frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0;\n const frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0;\n\n for (let i = frozenColumnCountFromStart; i < columns.length - frozenColumnCountFromEnd + 1; i++) {\n if (this._rootElement.current) {\n const dropHintElement = this._rootElement.current.querySelectorAll('#columnDropHint_' + i)[0] as HTMLElement;\n if (dropHintElement) {\n if (i === frozenColumnCountFromStart) {\n prevX = dropHintElement.offsetLeft;\n prevMid = dropHintElement.offsetLeft;\n prevRef = dropHintElement;\n } else {\n const newMid = (dropHintElement.offsetLeft + prevX!) / 2;\n this._dropHintDetails[i - 1] = {\n originX: prevX,\n startX: prevMid!,\n endX: newMid,\n dropHintElementRef: prevRef!,\n };\n prevMid = newMid;\n prevRef = dropHintElement;\n prevX = dropHintElement.offsetLeft;\n if (i === columns.length - frozenColumnCountFromEnd) {\n this._dropHintDetails[i] = {\n originX: prevX,\n startX: prevMid!,\n endX: dropHintElement.offsetLeft,\n dropHintElementRef: prevRef,\n };\n }\n }\n }\n }\n }\n };\n\n /**\n * Based on the given cursor position, finds the nearest drop hint and updates the state to make it visible\n */\n private _computeDropHintToBeShown = (clientX: number): void => {\n const isRtl = getRTL(this.props.theme);\n if (this._rootElement.current) {\n const clientRect = this._rootElement.current.getBoundingClientRect();\n const headerOriginX = clientRect.left;\n const eventXRelativePosition = clientX - headerOriginX;\n const currentDropHintIndex = this._currentDropHintIndex;\n if (this._isValidCurrentDropHintIndex()) {\n if (\n _liesBetween(\n isRtl,\n eventXRelativePosition,\n this._dropHintDetails[currentDropHintIndex!].startX,\n this._dropHintDetails[currentDropHintIndex!].endX,\n )\n ) {\n return;\n }\n }\n const { columns = NO_COLUMNS } = this.props;\n // Safe to assume this is defined since we're handling a drag/drop event\n const columnReorderProps = this._getColumnReorderProps()!;\n const frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0;\n const frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0;\n\n const currentIndex: number = frozenColumnCountFromStart;\n const lastValidColumn = columns.length - frozenColumnCountFromEnd;\n let indexToUpdate = -1;\n if (_isBefore(isRtl, eventXRelativePosition, this._dropHintDetails[currentIndex].endX)) {\n indexToUpdate = currentIndex;\n } else if (_isAfter(isRtl, eventXRelativePosition, this._dropHintDetails[lastValidColumn].startX)) {\n indexToUpdate = lastValidColumn;\n } else if (this._isValidCurrentDropHintIndex()) {\n if (\n this._dropHintDetails[currentDropHintIndex! + 1] &&\n _liesBetween(\n isRtl,\n eventXRelativePosition,\n this._dropHintDetails[currentDropHintIndex! + 1].startX,\n this._dropHintDetails[currentDropHintIndex! + 1].endX,\n )\n ) {\n indexToUpdate = currentDropHintIndex! + 1;\n } else if (\n this._dropHintDetails[currentDropHintIndex! - 1] &&\n _liesBetween(\n isRtl,\n eventXRelativePosition,\n this._dropHintDetails[currentDropHintIndex! - 1].startX,\n this._dropHintDetails[currentDropHintIndex! - 1].endX,\n )\n ) {\n indexToUpdate = currentDropHintIndex! - 1;\n }\n }\n if (indexToUpdate === -1) {\n let startIndex = frozenColumnCountFromStart;\n let endIndex = lastValidColumn;\n while (startIndex < endIndex) {\n const middleIndex = Math.ceil((endIndex + startIndex!) / 2);\n if (\n _liesBetween(\n isRtl,\n eventXRelativePosition,\n this._dropHintDetails[middleIndex].startX,\n this._dropHintDetails[middleIndex].endX,\n )\n ) {\n indexToUpdate = middleIndex;\n break;\n } else if (_isBefore(isRtl, eventXRelativePosition, this._dropHintDetails[middleIndex].originX)) {\n endIndex = middleIndex;\n } else if (_isAfter(isRtl, eventXRelativePosition, this._dropHintDetails[middleIndex].originX)) {\n startIndex = middleIndex;\n }\n }\n }\n\n if (indexToUpdate === this._draggedColumnIndex || indexToUpdate === this._draggedColumnIndex + 1) {\n if (this._isValidCurrentDropHintIndex()) {\n this._resetDropHints();\n }\n } else if (currentDropHintIndex !== indexToUpdate && indexToUpdate >= 0) {\n this._resetDropHints();\n this._updateDropHintElement(this._dropHintDetails[indexToUpdate].dropHintElementRef, 'inline-block');\n this._currentDropHintIndex = indexToUpdate;\n }\n }\n };\n\n private _isEventOnHeader(event: MouseEvent): ColumnDragEndLocation | undefined {\n if (this._rootElement.current) {\n const clientRect = this._rootElement.current.getBoundingClientRect();\n if (\n event.clientX > clientRect.left &&\n event.clientX < clientRect.right &&\n event.clientY > clientRect.top &&\n event.clientY < clientRect.bottom\n ) {\n return ColumnDragEndLocation.header;\n }\n }\n }\n\n private _renderColumnSizer = ({ columnIndex }: IDetailsColumnProps): JSX.Element | null => {\n const { columns = NO_COLUMNS } = this.props;\n const column = columns[columnIndex];\n const { columnResizeDetails } = this.state;\n const classNames = this._classNames;\n\n return column.isResizable ? (\n \n ) : null;\n };\n\n private _renderColumnDivider(columnIndex: number): JSX.Element | null {\n const { columns = NO_COLUMNS } = this.props;\n const column = columns[columnIndex];\n const { onRenderDivider } = column;\n return onRenderDivider\n ? onRenderDivider({ column, columnIndex }, this._renderColumnSizer)\n : this._renderColumnSizer({ column, columnIndex });\n }\n\n private _renderDropHint(dropHintIndex: number): JSX.Element {\n const classNames = this._classNames;\n const IconComponent = this.props.useFastIcons ? FontIcon : Icon;\n return (\n \n \n \n \n \n \n );\n }\n\n private _onRenderColumnHeaderTooltip = (tooltipHostProps: ITooltipHostProps): JSX.Element => {\n return {tooltipHostProps.children};\n };\n\n /**\n * double click on the column sizer will auto ajust column width\n * to fit the longest content among current rendered rows.\n *\n * @param columnIndex - index of the column user double clicked\n * @param ev - mouse double click event\n */\n private _onSizerDoubleClick(columnIndex: number, ev: React.MouseEvent): void {\n const { onColumnAutoResized, columns = NO_COLUMNS } = this.props;\n if (onColumnAutoResized) {\n onColumnAutoResized(columns[columnIndex], columnIndex);\n }\n }\n\n /**\n * Called when the select all toggle is clicked.\n */\n private _onSelectAllClicked = (): void => {\n const { selection } = this.props;\n\n if (selection) {\n selection.toggleAllSelected();\n }\n };\n\n private _onRootMouseDown = (ev: MouseEvent): void => {\n const columnIndexAttr = (ev.target as HTMLElement).getAttribute('data-sizer-index');\n const columnIndex = Number(columnIndexAttr);\n const { columns = NO_COLUMNS } = this.props;\n\n if (columnIndexAttr === null || ev.button !== MOUSEDOWN_PRIMARY_BUTTON) {\n // Ignore anything except the primary button.\n return;\n }\n\n this.setState({\n columnResizeDetails: {\n columnIndex,\n columnMinWidth: columns[columnIndex].calculatedWidth!,\n originX: ev.clientX,\n },\n });\n\n ev.preventDefault();\n ev.stopPropagation();\n };\n\n private _onRootMouseMove = (ev: React.MouseEvent): void => {\n const { columnResizeDetails, isSizing } = this.state;\n\n if (columnResizeDetails && !isSizing && ev.clientX !== columnResizeDetails.originX) {\n this.setState({ isSizing: true });\n }\n };\n\n private _onRootKeyDown = (ev: KeyboardEvent): void => {\n const { columnResizeDetails, isSizing } = this.state;\n const { columns = NO_COLUMNS, onColumnResized } = this.props;\n\n const columnIndexAttr = (ev.target as HTMLElement).getAttribute('data-sizer-index');\n\n if (!columnIndexAttr || isSizing) {\n return;\n }\n\n const columnIndex = Number(columnIndexAttr);\n\n if (!columnResizeDetails) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter) {\n this.setState({\n columnResizeDetails: {\n columnIndex,\n columnMinWidth: columns[columnIndex].calculatedWidth!,\n },\n });\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n } else {\n let increment: number | undefined;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter) {\n this.setState({\n columnResizeDetails: undefined,\n });\n\n ev.preventDefault();\n ev.stopPropagation();\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n } else if (ev.which === KeyCodes.left) {\n increment = getRTL(this.props.theme) ? 1 : -1;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n } else if (ev.which === KeyCodes.right) {\n increment = getRTL(this.props.theme) ? -1 : 1;\n }\n\n if (increment) {\n if (!ev.shiftKey) {\n increment *= 10;\n }\n\n this.setState({\n columnResizeDetails: {\n ...columnResizeDetails,\n columnMinWidth: columnResizeDetails.columnMinWidth + increment,\n },\n });\n\n if (onColumnResized) {\n onColumnResized(columns[columnIndex], columnResizeDetails.columnMinWidth + increment, columnIndex);\n }\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n };\n\n /**\n * mouse move event handler in the header\n * it will set isSizing state to true when user clicked on the sizer and move the mouse.\n *\n * @param ev - mouse move event\n */\n private _onSizerMouseMove = (ev: React.MouseEvent): void => {\n const {\n // use buttons property here since ev.button in some edge case is not upding well during the move.\n // but firefox doesn't support it, so we set the default value when it is not defined.\n buttons,\n } = ev;\n const { onColumnIsSizingChanged, onColumnResized, columns = NO_COLUMNS } = this.props;\n const { columnResizeDetails } = this.state;\n\n if (buttons !== undefined && buttons !== MOUSEMOVE_PRIMARY_BUTTON) {\n // cancel mouse down event and return early when the primary button is not pressed\n this._onSizerMouseUp(ev);\n return;\n }\n\n if (ev.clientX !== columnResizeDetails!.originX) {\n if (onColumnIsSizingChanged) {\n onColumnIsSizingChanged(columns[columnResizeDetails!.columnIndex], true);\n }\n }\n\n if (onColumnResized) {\n let movement = ev.clientX - columnResizeDetails!.originX!;\n\n if (getRTL(this.props.theme)) {\n movement = -movement;\n }\n\n onColumnResized(\n columns[columnResizeDetails!.columnIndex],\n columnResizeDetails!.columnMinWidth + movement,\n columnResizeDetails!.columnIndex,\n );\n }\n };\n\n private _onSizerBlur = (ev: React.FocusEvent): void => {\n const { columnResizeDetails } = this.state;\n\n if (columnResizeDetails) {\n this.setState({\n columnResizeDetails: undefined,\n isSizing: false,\n });\n }\n };\n\n /**\n * mouse up event handler in the header\n * clear the resize related state.\n * This is to ensure we can catch double click event\n *\n * @param ev - mouse up event\n */\n private _onSizerMouseUp = (ev: React.MouseEvent): void => {\n const { columns = NO_COLUMNS, onColumnIsSizingChanged } = this.props;\n const { columnResizeDetails } = this.state;\n\n this.setState({\n columnResizeDetails: undefined,\n isSizing: false,\n });\n\n if (onColumnIsSizingChanged) {\n onColumnIsSizingChanged(columns[columnResizeDetails!.columnIndex], false);\n }\n };\n\n private _onSelectionChanged(): void {\n const isAllSelected = !!this.props.selection && this.props.selection.isAllSelected();\n\n if (this.state.isAllSelected !== isAllSelected) {\n this.setState({\n isAllSelected,\n });\n }\n }\n\n private _onToggleCollapseAll = (): void => {\n const { onToggleCollapseAll } = this.props;\n const newCollapsed = !this.state.isAllCollapsed;\n this.setState({\n isAllCollapsed: newCollapsed,\n });\n if (onToggleCollapseAll) {\n onToggleCollapseAll(newCollapsed);\n }\n };\n}\n\nfunction _liesBetween(rtl: boolean, target: number, left: number, right: number): boolean {\n return rtl ? target <= left && target >= right : target >= left && target <= right;\n}\nfunction _isBefore(rtl: boolean, a: number, b: number): boolean {\n return rtl ? a >= b : a <= b;\n}\nfunction _isAfter(rtl: boolean, a: number, b: number): boolean {\n return rtl ? a <= b : a >= b;\n}\n\nfunction _stopPropagation(ev: React.MouseEvent): void {\n ev.stopPropagation();\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DetailsHeaderBase } from './DetailsHeader.base';\nimport { getDetailsHeaderStyles } from './DetailsHeader.styles';\nimport type {\n IDetailsHeaderProps,\n IDetailsHeaderBaseProps,\n IDetailsHeaderStyleProps,\n IDetailsHeaderStyles,\n} from './DetailsHeader.types';\n\nexport const DetailsHeader: React.FunctionComponent = styled<\n IDetailsHeaderBaseProps,\n IDetailsHeaderStyleProps,\n IDetailsHeaderStyles\n>(DetailsHeaderBase, getDetailsHeaderStyles, undefined, { scope: 'DetailsHeader' });\n\nexport type { IDetailsHeaderProps, IDetailsHeaderBaseProps };\n","import * as React from 'react';\nimport { composeRenderFunction, css } from '../../Utilities';\nimport { DEFAULT_CELL_STYLE_PROPS } from './DetailsRow.styles';\nimport type { IColumn } from './DetailsList.types';\nimport type { IDetailsRowFieldsProps } from './DetailsRowFields.types';\nimport type { IDetailsColumnFieldProps } from './DetailsColumn.types';\n\nconst getCellText = (item: any, column: IColumn): string => {\n let value = item && column && column.fieldName ? item[column.fieldName] : '';\n\n if (value === null || value === undefined) {\n value = '';\n }\n\n if (typeof value === 'boolean') {\n return value.toString();\n }\n\n return value;\n};\n\n/**\n * Component for rendering a row's cells in a `DetailsList`.\n *\n * {@docCategory DetailsList}\n */\nexport const DetailsRowFields: React.FunctionComponent = props => {\n const {\n columns,\n rowClassNames,\n cellStyleProps = DEFAULT_CELL_STYLE_PROPS,\n item,\n itemIndex,\n isSelected,\n onRenderItemColumn,\n getCellValueKey,\n onRenderField: propsOnRenderField,\n cellsByColumn,\n enableUpdateAnimations,\n rowHeaderId,\n } = props;\n\n const cellValueKeysRef = React.useRef<{\n [columnKey: string]: string | undefined;\n }>();\n\n const cellValueKeys = cellValueKeysRef.current || (cellValueKeysRef.current = {});\n\n const defaultOnRenderField = React.useCallback(\n (fieldProps: IDetailsColumnFieldProps): JSX.Element | null => {\n const { column, cellValueKey, className, onRender, item: fieldItem, itemIndex: fieldItemIndex } = fieldProps;\n\n const width: string | number =\n typeof column.calculatedWidth === 'undefined'\n ? 'auto'\n : column.calculatedWidth +\n cellStyleProps.cellLeftPadding +\n cellStyleProps.cellRightPadding +\n (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0);\n\n const key = `${column.key}${cellValueKey !== undefined ? `-${cellValueKey}` : ''}`;\n\n return (\n \n {onRender(fieldItem, fieldItemIndex, column)}\n \n );\n },\n [rowClassNames, cellStyleProps, rowHeaderId],\n );\n\n return (\n
    \n {columns.map(column => {\n const { getValueKey = getCellValueKey } = column;\n\n const onRender =\n (cellsByColumn && column.key in cellsByColumn && (() => cellsByColumn[column.key])) ||\n column.onRender ||\n onRenderItemColumn ||\n defaultOnRender;\n\n let onRenderField = defaultOnRenderField;\n\n if (column.onRenderField) {\n onRenderField = composeRenderFunction(column.onRenderField, onRenderField);\n }\n\n if (propsOnRenderField) {\n onRenderField = composeRenderFunction(propsOnRenderField, onRenderField);\n }\n\n const previousValueKey = cellValueKeys[column.key];\n\n const cellValueKey = enableUpdateAnimations && getValueKey ? getValueKey(item, itemIndex, column) : undefined;\n\n let showAnimation = false;\n\n if (cellValueKey !== undefined && previousValueKey !== undefined && cellValueKey !== previousValueKey) {\n showAnimation = true;\n }\n\n cellValueKeys[column.key] = cellValueKey;\n\n return onRenderField({\n item,\n itemIndex,\n isSelected,\n column,\n cellValueKey,\n className: showAnimation ? rowClassNames.cellAnimation : undefined,\n onRender,\n });\n })}\n
    \n );\n};\n\nfunction defaultOnRender(item?: any, index?: number, column?: IColumn): React.ReactNode {\n if (!item || !column) {\n return null;\n }\n\n return getCellText(item, column);\n}\n","import * as React from 'react';\nimport {\n initializeComponentRef,\n EventGroup,\n css,\n shallowCompare,\n getNativeProps,\n divProperties,\n composeComponentAs,\n} from '../../Utilities';\nimport { CheckboxVisibility } from './DetailsList.types';\nimport { DetailsRowCheck } from './DetailsRowCheck';\nimport { GroupSpacer } from '../GroupedList/GroupSpacer';\nimport { DetailsRowFields } from './DetailsRowFields';\nimport { FocusZone, FocusZoneDirection } from '../../FocusZone';\nimport { SelectionMode, SELECTION_CHANGE } from '../../Selection';\nimport { classNamesFunction } from '../../Utilities';\nimport type { IDisposable } from '../../Utilities';\nimport type { IColumn } from './DetailsList.types';\nimport type { IFocusZone } from '../../FocusZone';\nimport type { IDragDropOptions } from '../../DragDrop';\nimport type { IDetailsRowBaseProps, IDetailsRowStyleProps, IDetailsRowStyles } from './DetailsRow.types';\nimport type { IDetailsRowCheckProps } from './DetailsRowCheck.types';\nimport type { IDetailsRowFieldsProps } from './DetailsRowFields.types';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport { getId } from '../../Utilities';\n\nconst getClassNames = classNamesFunction();\n\nexport interface IDetailsRowSelectionState {\n isSelected: boolean;\n isSelectionModal: boolean;\n}\n\nexport interface IDetailsRowState {\n selectionState: IDetailsRowSelectionState;\n columnMeasureInfo?: {\n index: number;\n column: IColumn;\n onMeasureDone: (measuredWidth: number) => void;\n };\n isDropping?: boolean;\n}\n\nconst DEFAULT_DROPPING_CSS_CLASS = 'is-dropping';\n\nconst NO_COLUMNS: IColumn[] = [];\n\nexport class DetailsRowBase extends React.Component {\n private _events: EventGroup;\n private _root = React.createRef();\n private _cellMeasurer = React.createRef();\n private _focusZone = React.createRef();\n private _droppingClassNames: string;\n /** Whether this.props.onDidMount has been called */\n private _onDidMountCalled: boolean;\n private _dragDropSubscription?: IDisposable;\n\n private _classNames: IProcessedStyleSet;\n private _rowClassNames: IDetailsRowFieldsProps['rowClassNames'];\n private _ariaRowDescriptionId: string;\n\n public static getDerivedStateFromProps(\n nextProps: IDetailsRowBaseProps,\n previousState: IDetailsRowState,\n ): IDetailsRowState {\n return {\n ...previousState,\n selectionState: getSelectionState(nextProps),\n };\n }\n\n constructor(props: IDetailsRowBaseProps) {\n super(props);\n\n initializeComponentRef(this);\n this._events = new EventGroup(this);\n\n this.state = {\n selectionState: getSelectionState(props),\n columnMeasureInfo: undefined,\n isDropping: false,\n };\n\n this._droppingClassNames = '';\n }\n public componentDidMount(): void {\n const { dragDropHelper, selection, item, onDidMount } = this.props;\n\n if (dragDropHelper && this._root.current) {\n this._dragDropSubscription = dragDropHelper.subscribe(\n this._root.current,\n this._events,\n this._getRowDragDropOptions(),\n );\n }\n\n if (selection) {\n this._events.on(selection, SELECTION_CHANGE, this._onSelectionChanged);\n }\n\n if (onDidMount && item) {\n // If the item appears later, we should wait for it before calling this method.\n this._onDidMountCalled = true;\n onDidMount(this);\n }\n }\n\n public componentDidUpdate(previousProps: IDetailsRowBaseProps) {\n const state = this.state;\n const { item, onDidMount } = this.props;\n const { columnMeasureInfo } = state;\n\n if (\n this.props.itemIndex !== previousProps.itemIndex ||\n this.props.item !== previousProps.item ||\n this.props.dragDropHelper !== previousProps.dragDropHelper\n ) {\n if (this._dragDropSubscription) {\n this._dragDropSubscription.dispose();\n delete this._dragDropSubscription;\n }\n\n if (this.props.dragDropHelper && this._root.current) {\n this._dragDropSubscription = this.props.dragDropHelper.subscribe(\n this._root.current,\n this._events,\n this._getRowDragDropOptions(),\n );\n }\n }\n\n if (columnMeasureInfo && columnMeasureInfo.index >= 0 && this._cellMeasurer.current) {\n const newWidth = this._cellMeasurer.current.getBoundingClientRect().width;\n\n columnMeasureInfo.onMeasureDone(newWidth);\n\n this.setState({\n columnMeasureInfo: undefined,\n });\n }\n\n if (item && onDidMount && !this._onDidMountCalled) {\n this._onDidMountCalled = true;\n onDidMount(this);\n }\n }\n\n public componentWillUnmount(): void {\n const { item, onWillUnmount } = this.props;\n\n // Only call the onWillUnmount callback if we have an item.\n if (onWillUnmount && item) {\n onWillUnmount(this);\n }\n\n if (this._dragDropSubscription) {\n this._dragDropSubscription.dispose();\n delete this._dragDropSubscription;\n }\n\n this._events.dispose();\n }\n\n public shouldComponentUpdate(nextProps: IDetailsRowBaseProps, nextState: IDetailsRowState): boolean {\n if (this.props.useReducedRowRenderer) {\n const newSelectionState = getSelectionState(nextProps);\n if (this.state.selectionState.isSelected !== newSelectionState.isSelected) {\n return true;\n }\n return !shallowCompare(this.props, nextProps);\n } else {\n return true;\n }\n }\n\n public render(): JSX.Element {\n const {\n className,\n columns = NO_COLUMNS,\n dragDropEvents,\n item,\n itemIndex,\n id,\n flatIndexOffset = 2,\n onRenderCheck = this._onRenderCheck,\n onRenderDetailsCheckbox,\n onRenderItemColumn,\n onRenderField,\n getCellValueKey,\n selectionMode,\n checkboxVisibility,\n getRowAriaLabel,\n getRowAriaDescription,\n getRowAriaDescribedBy,\n isGridRow,\n checkButtonAriaLabel,\n checkboxCellClassName,\n /** Alias rowFieldsAs as RowFields and default to DetailsRowFields if rowFieldsAs does not exist */\n rowFieldsAs,\n selection,\n indentWidth,\n enableUpdateAnimations,\n compact,\n theme,\n styles,\n cellsByColumn,\n groupNestingDepth,\n useFastIcons = true,\n cellStyleProps,\n group,\n focusZoneProps,\n disabled = false,\n } = this.props;\n const { columnMeasureInfo, isDropping } = this.state;\n const { isSelected = false, isSelectionModal = false } = this.state.selectionState;\n const isDraggable = dragDropEvents ? !!(dragDropEvents.canDrag && dragDropEvents.canDrag(item)) : undefined;\n const droppingClassName = isDropping ? this._droppingClassNames || DEFAULT_DROPPING_CSS_CLASS : '';\n const ariaLabel = getRowAriaLabel ? getRowAriaLabel(item) : undefined;\n const ariaRowDescription = getRowAriaDescription ? getRowAriaDescription(item) : undefined;\n const ariaDescribedBy = getRowAriaDescribedBy ? getRowAriaDescribedBy(item) : undefined;\n const canSelect = !!selection && selection.canSelectItem(item, itemIndex) && !disabled;\n const isContentUnselectable = selectionMode === SelectionMode.multiple;\n const showCheckbox = selectionMode !== SelectionMode.none && checkboxVisibility !== CheckboxVisibility.hidden;\n const ariaSelected = selectionMode === SelectionMode.none ? undefined : isSelected;\n const ariaPositionInSet = group ? itemIndex - group.startIndex + 1 : undefined;\n const ariaSetSize = group ? group.count : undefined;\n const focusZoneDirection = focusZoneProps ? focusZoneProps.direction : FocusZoneDirection.horizontal;\n\n this._classNames = {\n ...this._classNames,\n ...getClassNames(styles, {\n theme: theme!,\n isSelected,\n canSelect: !isContentUnselectable,\n anySelected: isSelectionModal,\n checkboxCellClassName,\n droppingClassName,\n className,\n compact,\n enableUpdateAnimations,\n cellStyleProps,\n disabled,\n }),\n };\n\n const rowClassNames: IDetailsRowFieldsProps['rowClassNames'] = {\n isMultiline: this._classNames.isMultiline,\n isRowHeader: this._classNames.isRowHeader,\n cell: this._classNames.cell,\n cellAnimation: this._classNames.cellAnimation,\n cellPadded: this._classNames.cellPadded,\n cellUnpadded: this._classNames.cellUnpadded,\n fields: this._classNames.fields,\n };\n\n // Only re-assign rowClassNames when classNames have changed.\n // Otherwise, they will cause DetailsRowFields to unnecessarily\n // re-render, see https://github.com/microsoft/fluentui/pull/8799.\n // Refactor DetailsRowFields to generate own styles to remove need for this.\n if (!shallowCompare(this._rowClassNames || {}, rowClassNames)) {\n this._rowClassNames = rowClassNames;\n }\n\n const RowFields = rowFieldsAs ? composeComponentAs(rowFieldsAs, DetailsRowFields) : DetailsRowFields;\n\n const rowFields = (\n \n );\n\n const defaultRole = 'row';\n const role = this.props.role ? this.props.role : defaultRole;\n this._ariaRowDescriptionId = getId('DetailsRow-description');\n\n // When the user does not specify any column is a row-header in the columns props,\n // The aria-labelledby of the checkbox does not specify {id}-header.\n const hasRowHeader = columns.some(column => {\n return !!column.isRowHeader;\n });\n const ariaLabelledby = `${id}-checkbox` + (hasRowHeader ? ` ${id}-header` : '');\n\n // additional props for rows within a GroupedList\n // these are needed for treegrid row semantics, but not grid row semantics\n const groupedListRowProps = isGridRow\n ? {}\n : {\n 'aria-level': (groupNestingDepth && groupNestingDepth + 1) || undefined,\n 'aria-posinset': ariaPositionInSet,\n 'aria-setsize': ariaSetSize,\n };\n\n return (\n \n {ariaRowDescription ? (\n \n ) : null}\n {showCheckbox && (\n
    \n {onRenderCheck({\n id: id ? `${id}-checkbox` : undefined,\n selected: isSelected,\n selectionMode,\n anySelected: isSelectionModal,\n 'aria-label': checkButtonAriaLabel,\n 'aria-labelledby': id ? ariaLabelledby : undefined,\n canSelect,\n compact,\n className: this._classNames.check,\n theme,\n isVisible: checkboxVisibility === CheckboxVisibility.always,\n onRenderDetailsCheckbox,\n useFastIcons,\n })}\n
    \n )}\n\n \n\n {item && rowFields}\n {columnMeasureInfo && (\n \n \n \n )}\n \n );\n }\n\n /**\n * measure cell at index. and call the call back with the measured cell width when finish measure\n *\n * @param index - The cell index\n * @param onMeasureDone - The call back function when finish measure\n */\n public measureCell(index: number, onMeasureDone: (width: number) => void): void {\n const { columns = NO_COLUMNS } = this.props;\n const column: IColumn = { ...columns[index] };\n\n column.minWidth = 0;\n column.maxWidth = 999999;\n\n delete column.calculatedWidth;\n\n this.setState({\n columnMeasureInfo: {\n index,\n column,\n onMeasureDone,\n },\n });\n }\n\n public focus(forceIntoFirstElement: boolean = false): boolean {\n return !!this._focusZone.current?.focus(forceIntoFirstElement);\n }\n\n protected _onRenderCheck(props: IDetailsRowCheckProps) {\n return ;\n }\n\n private _onSelectionChanged = (): void => {\n const selectionState = getSelectionState(this.props);\n\n if (!shallowCompare(selectionState, this.state.selectionState)) {\n this.setState({ selectionState });\n }\n };\n\n private _getRowDragDropOptions(): IDragDropOptions {\n const { item, itemIndex, dragDropEvents, eventsToRegister } = this.props;\n const options = {\n eventMap: eventsToRegister,\n selectionIndex: itemIndex,\n context: { data: item, index: itemIndex },\n canDrag: dragDropEvents!.canDrag,\n canDrop: dragDropEvents!.canDrop,\n onDragStart: dragDropEvents!.onDragStart,\n updateDropState: this._updateDroppingState,\n onDrop: dragDropEvents!.onDrop,\n onDragEnd: dragDropEvents!.onDragEnd,\n onDragOver: dragDropEvents!.onDragOver,\n };\n\n return options;\n }\n\n /**\n * update isDropping state based on the input value, which is used to change style during drag and drop\n *\n * when change to true, that means drag enter. we will add default dropping class name\n * or the custom dropping class name (return result from onDragEnter) to the root elemet.\n *\n * when change to false, that means drag leave. we will remove the dropping class name from root element.\n *\n * @param newValue - New isDropping state value\n * @param event - The event trigger dropping state change which can be dragenter, dragleave etc\n */\n private _updateDroppingState = (newValue: boolean, event: DragEvent): void => {\n const { isDropping } = this.state;\n const { dragDropEvents, item } = this.props;\n\n if (!newValue) {\n if (dragDropEvents!.onDragLeave) {\n dragDropEvents!.onDragLeave(item, event);\n }\n } else if (dragDropEvents!.onDragEnter) {\n this._droppingClassNames = dragDropEvents!.onDragEnter(item, event);\n }\n\n if (isDropping !== newValue) {\n this.setState({ isDropping: newValue });\n }\n };\n}\n\nfunction getSelectionState(props: IDetailsRowBaseProps): IDetailsRowSelectionState {\n const { itemIndex, selection } = props;\n\n return {\n isSelected: !!selection?.isIndexSelected(itemIndex),\n isSelectionModal: !!selection?.isModal?.(),\n };\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DetailsRowBase } from './DetailsRow.base';\nimport { getDetailsRowStyles } from './DetailsRow.styles';\nimport type {\n IDetailsRowProps,\n IDetailsRowBaseProps,\n IDetailsRowStyleProps,\n IDetailsRowStyles,\n} from './DetailsRow.types';\n\nexport const DetailsRow: React.FunctionComponent = styled<\n IDetailsRowBaseProps,\n IDetailsRowStyleProps,\n IDetailsRowStyles\n>(DetailsRowBase, getDetailsRowStyles, undefined, {\n scope: 'DetailsRow',\n});\n\nexport type { IDetailsRowProps, IDetailsRowBaseProps };\n","import { getGlobalClassNames, AnimationVariables } from '../../Styling';\nimport type { IGroupedListStyleProps, IGroupedListStyles } from './GroupedList.types';\n\nconst GlobalClassNames = {\n root: 'ms-GroupedList',\n compact: 'ms-GroupedList--Compact',\n group: 'ms-GroupedList-group',\n link: 'ms-Link',\n listCell: 'ms-List-cell',\n};\n\nconst beziers = {\n easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)',\n};\n\nexport const getStyles = (props: IGroupedListStyleProps): IGroupedListStyles => {\n const { theme, className, compact } = props;\n const { palette } = theme;\n const classNames = getGlobalClassNames(GlobalClassNames, theme!);\n\n return {\n root: [\n classNames.root,\n theme.fonts.small,\n {\n position: 'relative',\n selectors: {\n [`.${classNames.listCell}`]: {\n minHeight: 38, // be consistent with DetailsList styles\n },\n },\n },\n compact && [\n classNames.compact,\n {\n selectors: {\n [`.${classNames.listCell}`]: {\n minHeight: 32, // be consistent with DetailsList styles\n },\n },\n },\n ],\n className,\n ],\n group: [\n classNames.group,\n {\n transition: `background-color ${AnimationVariables.durationValue2} ${beziers.easeInOutSine}`,\n },\n ],\n groupIsDropping: {\n backgroundColor: palette.neutralLight,\n },\n };\n};\n","import { getGlobalClassNames, getFocusStyle, AnimationVariables, FontWeights, IconFontSizes } from '../../Styling';\nimport { getRTL, IsFocusVisibleClassName } from '../../Utilities';\nimport { DEFAULT_CELL_STYLE_PROPS } from '../DetailsList/DetailsRow.styles';\nimport { CHECK_CELL_WIDTH } from '../DetailsList/DetailsRowCheck.styles';\n// For every group level there is a GroupSpacer added. Importing this const to have the source value in one place.\nimport { SPACER_WIDTH as EXPAND_BUTTON_WIDTH } from './GroupSpacer';\nimport type { IGroupHeaderStyleProps, IGroupHeaderStyles } from './GroupHeader.types';\nimport type { IStyle } from '../../Styling';\n\nconst GlobalClassNames = {\n root: 'ms-GroupHeader',\n compact: 'ms-GroupHeader--compact',\n check: 'ms-GroupHeader-check',\n dropIcon: 'ms-GroupHeader-dropIcon',\n expand: 'ms-GroupHeader-expand',\n isCollapsed: 'is-collapsed',\n title: 'ms-GroupHeader-title',\n isSelected: 'is-selected',\n iconTag: 'ms-Icon--Tag',\n group: 'ms-GroupedList-group',\n isDropping: 'is-dropping',\n};\n\nconst beziers = {\n easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)',\n easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n};\n\nconst DEFAULT_GROUP_HEADER_HEIGHT = 48;\nconst COMPACT_GROUP_HEADER_HEIGHT = 40;\n\nexport const getStyles = (props: IGroupHeaderStyleProps): IGroupHeaderStyles => {\n const { theme, className, selected, isCollapsed, compact } = props;\n // padding from the source to align GroupHeader title with DetailsRow's first cell.\n const { cellLeftPadding } = DEFAULT_CELL_STYLE_PROPS;\n const finalRowHeight = compact ? COMPACT_GROUP_HEADER_HEIGHT : DEFAULT_GROUP_HEADER_HEIGHT;\n\n const { semanticColors, palette, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme!);\n\n const checkExpandResetStyles: IStyle = [\n getFocusStyle(theme),\n {\n cursor: 'default',\n background: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n padding: 0, // cancel default \n \n ) : (\n // To make the group header align properly with the column headers, this spacer\n // needs to be the same width as the check cell in the column header.\n selectionMode !== SelectionMode.none && \n )}\n\n \n\n
    \n \n
    \n
    \n \n \n \n
    \n\n {onRenderTitle(this.props)}\n {isLoadingVisible && }\n \n \n );\n }\n\n private _toggleCollapse = () => {\n const { group, onToggleCollapse, isGroupLoading } = this.props;\n const { isCollapsed } = this.state;\n\n const newCollapsed = !isCollapsed;\n const newLoadingVisible = !newCollapsed && isGroupLoading && isGroupLoading(group!);\n\n this.setState({\n isCollapsed: newCollapsed,\n isLoadingVisible: newLoadingVisible as boolean,\n });\n if (onToggleCollapse) {\n onToggleCollapse(group!);\n }\n };\n\n private _onKeyUp = (ev: React.KeyboardEvent): void => {\n const { group, onGroupHeaderKeyUp } = this.props;\n\n if (onGroupHeaderKeyUp) {\n onGroupHeaderKeyUp(ev, group);\n }\n\n if (!ev.defaultPrevented) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const shouldOpen = this.state.isCollapsed && ev.which === getRTLSafeKeyCode(KeyCodes.right, this.props.theme);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const shouldClose = !this.state.isCollapsed && ev.which === getRTLSafeKeyCode(KeyCodes.left, this.props.theme);\n if (shouldClose || shouldOpen) {\n this._toggleCollapse();\n ev.stopPropagation();\n ev.preventDefault();\n }\n }\n };\n\n private _onToggleClick = (ev: React.MouseEvent): void => {\n this._toggleCollapse();\n ev.stopPropagation();\n ev.preventDefault();\n };\n\n private _onHeaderClick = (): void => {\n const { group, onGroupHeaderClick } = this.props;\n\n if (onGroupHeaderClick) {\n onGroupHeaderClick(group!);\n }\n };\n\n private _defaultCheckboxRender(checkboxProps: IGroupHeaderCheckboxProps) {\n return ;\n }\n\n private _fastDefaultCheckboxRender(checkboxProps: IGroupHeaderCheckboxProps) {\n return ;\n }\n\n private _onRenderTitle = (props: IGroupHeaderProps): JSX.Element | null => {\n const { group } = props;\n\n if (!group) {\n return null;\n }\n\n const onRenderName = props.onRenderName\n ? composeRenderFunction(props.onRenderName, this._onRenderName)\n : this._onRenderName;\n\n return (\n \n {onRenderName(props)}\n \n );\n };\n\n private _onRenderName = (props: IGroupHeaderProps): JSX.Element | null => {\n const { group } = props;\n\n if (!group) {\n return null;\n }\n\n return (\n <>\n {group.name}\n {\n // hasMoreData flag is set when grouping is throttled by SPO server which in turn resorts to regular\n // sorting to simulate grouping behaviors, in which case group count is the number of items returned\n // so far. That's the reason we need to use \"+\" to show we might have more items than count\n // indicates.\n }\n \n ({group.count}\n {group.hasMoreData && '+'})\n \n \n );\n };\n}\n\nconst FastCheck = React.memo((props: { theme?: ITheme; checked?: boolean; className?: string }) => {\n return ;\n});\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { getStyles } from './GroupHeader.styles';\nimport { GroupHeaderBase } from './GroupHeader.base';\nimport type { IGroupHeaderProps, IGroupHeaderStyles, IGroupHeaderStyleProps } from './GroupHeader.types';\n\nexport const GroupHeader: React.FunctionComponent = styled<\n IGroupHeaderProps,\n IGroupHeaderStyleProps,\n IGroupHeaderStyles\n>(GroupHeaderBase, getStyles, undefined, {\n scope: 'GroupHeader',\n});\n\nexport type { IGroupHeaderProps };\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IGroupShowAllProps, IGroupShowAllStyleProps, IGroupShowAllStyles } from './GroupShowAll.types';\n\nconst GlobalClassNames = {\n root: 'ms-GroupShowAll',\n link: 'ms-Link',\n};\n\nexport const getStyles = (props: IGroupShowAllStyleProps): IGroupShowAllStyles => {\n const { theme } = props;\n const { fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n {\n position: 'relative',\n padding: '10px 84px',\n cursor: 'pointer',\n selectors: {\n [`.${classNames.link}`]: {\n fontSize: fonts.small.fontSize,\n },\n },\n },\n ],\n };\n};\n\nexport type { IGroupShowAllProps };\n","import * as React from 'react';\nimport { classNamesFunction } from '../../Utilities';\nimport { Link } from '../../Link';\nimport { GroupSpacer } from './GroupSpacer';\nimport type { IGroupShowAllProps, IGroupShowAllStyleProps, IGroupShowAllStyles } from './GroupShowAll.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const GroupShowAllBase: React.FunctionComponent = props => {\n const { group, groupLevel, showAllLinkText = 'Show All', styles, theme, onToggleSummarize } = props;\n const classNames = getClassNames(styles, { theme: theme! });\n\n const memoizedOnClick = React.useCallback(\n (ev: React.MouseEvent) => {\n onToggleSummarize!(group!);\n\n ev.stopPropagation();\n ev.preventDefault();\n },\n [onToggleSummarize, group],\n );\n\n if (group) {\n return (\n
    \n \n {showAllLinkText}\n
    \n );\n }\n\n return null;\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { getStyles } from './GroupShowAll.styles';\nimport { GroupShowAllBase } from './GroupShowAll.base';\nimport type { IGroupShowAllProps, IGroupShowAllStyleProps, IGroupShowAllStyles } from './GroupShowAll.types';\n\nexport const GroupShowAll: React.FunctionComponent = styled<\n IGroupShowAllProps,\n IGroupShowAllStyleProps,\n IGroupShowAllStyles\n>(GroupShowAllBase, getStyles, undefined, { scope: 'GroupShowAll' });\n\nexport type { IGroupShowAllProps };\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IGroupFooterStyleProps, IGroupFooterStyles } from './GroupFooter.types';\n\nconst GlobalClassNames = {\n root: 'ms-groupFooter',\n};\n\nexport const getStyles = (props: IGroupFooterStyleProps): IGroupFooterStyles => {\n const { theme, className } = props;\n const classNames = getGlobalClassNames(GlobalClassNames, theme!);\n\n return {\n root: [\n theme.fonts.medium,\n classNames.root,\n {\n position: 'relative',\n padding: '5px 38px',\n },\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { classNamesFunction } from '../../Utilities';\nimport { GroupSpacer } from './GroupSpacer';\nimport type { IGroupFooterStyleProps, IGroupFooterStyles, IGroupFooterProps } from './GroupFooter.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const GroupFooterBase: React.FunctionComponent = props => {\n const { group, groupLevel, footerText, indentWidth, styles, theme } = props;\n const classNames = getClassNames(styles, { theme: theme! });\n\n if (group && footerText) {\n return (\n
    \n \n {footerText}\n
    \n );\n }\n\n return null;\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { getStyles } from './GroupFooter.styles';\nimport { GroupFooterBase } from './GroupFooter.base';\nimport type { IGroupFooterProps, IGroupFooterStyles, IGroupFooterStyleProps } from './GroupFooter.types';\n\nexport const GroupFooter: React.FunctionComponent = styled<\n IGroupFooterProps,\n IGroupFooterStyleProps,\n IGroupFooterStyles\n>(GroupFooterBase, getStyles, undefined, {\n scope: 'GroupFooter',\n});\n\nexport type { IGroupFooterProps };\n","import * as React from 'react';\nimport { initializeComponentRef, css, getId, EventGroup } from '../../Utilities';\n\nimport { SelectionMode, SELECTION_CHANGE } from '../../Selection';\n\nimport { GroupHeader } from './GroupHeader';\nimport { GroupShowAll } from './GroupShowAll';\nimport { GroupFooter } from './GroupFooter';\n\nimport { List } from '../../List';\nimport type { IGroup, IGroupDividerProps, IGroupRenderProps, IGroupedListStyles } from './GroupedList.types';\nimport type { IGroupHeaderProps } from './GroupHeader.types';\nimport type { IGroupFooterProps } from './GroupFooter.types';\nimport type { IGroupShowAllProps } from './GroupShowAll.types';\nimport type { IDragDropContext, IDragDropEvents, IDragDropHelper, IDragDropOptions } from '../../DragDrop';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { IRenderFunction, IDisposable } from '../../Utilities';\nimport type { ISelection } from '../../Selection';\nimport type { IListProps } from '../../List';\nimport type { IViewport } from '../../utilities/decorators/withViewport';\n\nexport interface IGroupedListSectionProps extends React.ClassAttributes {\n /** GroupedList resolved class names */\n groupedListClassNames?: IProcessedStyleSet;\n\n /**\n * Gets the component ref.\n */\n componentRef?: () => void;\n\n /** Whether to render in compact mode */\n compact?: boolean;\n\n /** Map of callback functions related to drag and drop functionality. */\n dragDropEvents?: IDragDropEvents;\n\n /** helper to manage drag/drop across item rows and groups */\n dragDropHelper?: IDragDropHelper;\n\n /** Event names and corresponding callbacks that will be registered to the group and the rendered elements */\n eventsToRegister?: { eventName: string; callback: (context: IDragDropContext, event?: any) => void }[];\n\n /** Information to pass in to the group footer. */\n footerProps?: IGroupFooterProps;\n\n /** Grouping item limit. */\n getGroupItemLimit?: (group: IGroup) => number;\n\n /** Optional grouping instructions. */\n groupIndex?: number;\n\n /** Optional group nesting level. */\n groupNestingDepth?: number;\n\n /** Optional grouping instructions. */\n group?: IGroup;\n\n /** Optional override properties to render groups. */\n groupProps?: IGroupRenderProps;\n\n /** Information to pass in to the group header. */\n headerProps?: IGroupHeaderProps;\n\n /** List of items to render. */\n items: any[];\n\n /** Optional list props to pass to list renderer. */\n listProps?: IListProps;\n\n /** Rendering callback to render the group items. */\n onRenderCell: (nestingDepth?: number, item?: any, index?: number) => React.ReactNode;\n\n /** Optional selection model to track selection state. */\n selection?: ISelection;\n\n /** Controls how/if the details list manages selection. */\n selectionMode?: SelectionMode;\n\n /** Information to pass in to the group Show All footer. */\n showAllProps?: IGroupShowAllProps;\n\n /** Optional Viewport, provided by the parent component. */\n viewport?: IViewport;\n\n /** Override for rendering the group header. */\n onRenderGroupHeader?: IRenderFunction;\n\n /** Override for rendering the group Show All link. */\n onRenderGroupShowAll?: IRenderFunction;\n\n /** Override for rendering the group footer. */\n onRenderGroupFooter?: IRenderFunction;\n\n /**\n * Optional callback to determine whether the list should be rendered in full, or virtualized.\n * Virtualization will add and remove pages of items as the user scrolls them into the visible range.\n * This benefits larger list scenarios by reducing the DOM on the screen, but can negatively affect performance for\n * smaller lists.\n * The default implementation will virtualize when this callback is not provided.\n */\n onShouldVirtualize?: (props: IListProps) => boolean;\n\n /** Stores parent group's children. */\n groups?: IGroup[];\n}\n\nexport interface IGroupedListSectionState {\n isDropping?: boolean;\n isSelected?: boolean;\n}\n\nconst DEFAULT_DROPPING_CSS_CLASS = 'is-dropping';\n\nexport class GroupedListSection extends React.Component {\n private _root = React.createRef();\n private _list = React.createRef();\n private _subGroupRefs: Record = {};\n private _id: string;\n private _events: EventGroup;\n\n private _dragDropSubscription?: IDisposable;\n private _droppingClassName: string = '';\n\n constructor(props: IGroupedListSectionProps) {\n super(props);\n\n const { selection, group } = props;\n\n initializeComponentRef(this);\n\n this._id = getId('GroupedListSection');\n\n this.state = {\n isDropping: false,\n isSelected: selection && group ? selection.isRangeSelected(group.startIndex, group.count) : false,\n };\n\n this._events = new EventGroup(this);\n }\n\n public componentDidMount(): void {\n const { dragDropHelper, selection } = this.props;\n\n if (dragDropHelper && this._root.current) {\n this._dragDropSubscription = dragDropHelper.subscribe(\n this._root.current,\n this._events,\n this._getGroupDragDropOptions(),\n );\n }\n\n if (selection) {\n this._events.on(selection, SELECTION_CHANGE, this._onSelectionChange);\n }\n }\n\n public componentWillUnmount() {\n this._events.dispose();\n\n if (this._dragDropSubscription) {\n this._dragDropSubscription.dispose();\n }\n }\n\n public componentDidUpdate(previousProps: IGroupedListSectionProps) {\n if (\n this.props.group !== previousProps.group ||\n this.props.groupIndex !== previousProps.groupIndex ||\n this.props.dragDropHelper !== previousProps.dragDropHelper\n ) {\n if (this._dragDropSubscription) {\n this._dragDropSubscription.dispose();\n delete this._dragDropSubscription;\n }\n\n if (this.props.dragDropHelper && this._root.current) {\n this._dragDropSubscription = this.props.dragDropHelper.subscribe(\n this._root.current,\n this._events,\n this._getGroupDragDropOptions(),\n );\n }\n }\n }\n\n public render(): JSX.Element {\n const {\n getGroupItemLimit,\n group,\n groupIndex,\n headerProps,\n showAllProps,\n footerProps,\n viewport,\n selectionMode,\n onRenderGroupHeader = this._onRenderGroupHeader,\n onRenderGroupShowAll = this._onRenderGroupShowAll,\n onRenderGroupFooter = this._onRenderGroupFooter,\n onShouldVirtualize,\n groupedListClassNames,\n groups,\n compact,\n listProps = {},\n } = this.props;\n const { isSelected } = this.state;\n const renderCount = group && getGroupItemLimit ? getGroupItemLimit(group) : Infinity;\n const isShowAllVisible =\n group &&\n !group.children &&\n !group.isCollapsed &&\n !group.isShowingAll &&\n (group.count > renderCount || group.hasMoreData);\n const hasNestedGroups = group && group.children && group.children.length > 0;\n\n const { version } = listProps;\n\n const dividerProps: IGroupDividerProps = {\n group,\n groupIndex,\n groupLevel: group ? group.level : 0,\n isSelected,\n selected: isSelected,\n viewport,\n selectionMode,\n groups,\n compact,\n };\n\n const ariaControlsProps: IGroupHeaderProps = {\n groupedListId: this._id,\n ariaLevel: group?.level ? group.level + 1 : 1,\n ariaSetSize: groups ? groups.length : undefined,\n ariaPosInSet: groupIndex !== undefined ? groupIndex + 1 : undefined,\n };\n\n const groupHeaderProps: IGroupHeaderProps = { ...headerProps, ...dividerProps, ...ariaControlsProps };\n const groupShowAllProps: IGroupShowAllProps = { ...showAllProps, ...dividerProps };\n const groupFooterProps: IGroupFooterProps = { ...footerProps, ...dividerProps };\n\n const isDraggable: boolean =\n !!this.props.dragDropHelper &&\n this._getGroupDragDropOptions().canDrag!(group) &&\n !!this.props.dragDropEvents!.canDragGroups;\n\n return (\n \n {onRenderGroupHeader(groupHeaderProps, this._onRenderGroupHeader)}\n {group && group.isCollapsed ? null : hasNestedGroups ? (\n \n ) : (\n this._onRenderGroup(renderCount)\n )}\n {group && group.isCollapsed\n ? null\n : isShowAllVisible && onRenderGroupShowAll(groupShowAllProps, this._onRenderGroupShowAll)}\n {onRenderGroupFooter(groupFooterProps, this._onRenderGroupFooter)}\n \n );\n }\n\n public forceUpdate() {\n super.forceUpdate();\n this.forceListUpdate();\n }\n\n public forceListUpdate() {\n const { group } = this.props;\n\n if (this._list.current) {\n this._list.current.forceUpdate();\n\n if (group && group.children && group.children.length > 0) {\n const subGroupCount = group.children.length;\n\n for (let i = 0; i < subGroupCount; i++) {\n const subGroup = this._list.current.pageRefs['subGroup_' + String(i)] as GroupedListSection;\n\n if (subGroup) {\n subGroup.forceListUpdate();\n }\n }\n }\n } else {\n const subGroup = this._subGroupRefs['subGroup_' + String(0)];\n\n if (subGroup) {\n subGroup.forceListUpdate();\n }\n }\n }\n\n private _onRenderGroupHeader = (props: IGroupHeaderProps): JSX.Element => {\n return ;\n };\n\n private _onRenderGroupShowAll = (props: IGroupShowAllProps): JSX.Element => {\n return ;\n };\n\n private _onRenderGroupFooter = (props: IGroupFooterProps): JSX.Element => {\n return ;\n };\n\n private _onSelectionChange(): void {\n const { group, selection } = this.props;\n if (selection && group) {\n const isSelected = selection.isRangeSelected(group.startIndex, group.count);\n\n if (isSelected !== this.state.isSelected) {\n this.setState({ isSelected });\n }\n }\n }\n\n private _onRenderGroupCell(\n onRenderCell: any,\n groupNestingDepth: number | undefined,\n group: IGroup | undefined,\n ): (item: any, itemIndex: number | undefined) => React.ReactNode {\n return (item: any, itemIndex: number | undefined): React.ReactNode => {\n return onRenderCell(groupNestingDepth, item, itemIndex, group);\n };\n }\n\n private _onRenderGroup(renderCount: number): JSX.Element {\n const { group, items, onRenderCell, listProps, groupNestingDepth, onShouldVirtualize, groupProps } = this.props;\n const count = group && !group.isShowingAll ? group.count : items.length;\n const startIndex = group ? group.startIndex : 0;\n\n return (\n \n );\n }\n\n private _renderSubGroup = (subGroup: IGroup, subGroupIndex: number): JSX.Element | null => {\n const {\n dragDropEvents,\n dragDropHelper,\n eventsToRegister,\n getGroupItemLimit,\n groupNestingDepth,\n groupProps,\n items,\n headerProps,\n showAllProps,\n footerProps,\n listProps,\n onRenderCell,\n selection,\n selectionMode,\n viewport,\n onRenderGroupHeader,\n onRenderGroupShowAll,\n onRenderGroupFooter,\n onShouldVirtualize,\n group,\n compact,\n } = this.props;\n\n const nestingDepth = subGroup.level ? subGroup.level + 1 : groupNestingDepth;\n\n return !subGroup || subGroup.count > 0 || (groupProps && groupProps.showEmptyGroups) ? (\n (this._subGroupRefs['subGroup_' + subGroupIndex] = ref)}\n key={this._getGroupKey(subGroup, subGroupIndex)}\n dragDropEvents={dragDropEvents}\n dragDropHelper={dragDropHelper}\n eventsToRegister={eventsToRegister}\n footerProps={footerProps}\n getGroupItemLimit={getGroupItemLimit}\n group={subGroup}\n groupIndex={subGroupIndex}\n groupNestingDepth={nestingDepth}\n groupProps={groupProps}\n headerProps={headerProps}\n items={items}\n listProps={listProps}\n onRenderCell={onRenderCell}\n selection={selection}\n selectionMode={selectionMode}\n showAllProps={showAllProps}\n viewport={viewport}\n onRenderGroupHeader={onRenderGroupHeader}\n onRenderGroupShowAll={onRenderGroupShowAll}\n onRenderGroupFooter={onRenderGroupFooter}\n onShouldVirtualize={onShouldVirtualize}\n groups={group ? group.children : []}\n compact={compact}\n />\n ) : null;\n };\n\n private _returnOne(): number {\n return 1;\n }\n\n private _getGroupKey(group: IGroup, index: number): string {\n return 'group-' + (group && group.key ? group.key : String(group.level) + String(index));\n }\n\n /**\n * collect all the data we need to enable drag/drop for a group\n */\n private _getGroupDragDropOptions = (): IDragDropOptions => {\n const { group, groupIndex, dragDropEvents, eventsToRegister } = this.props;\n const options = {\n eventMap: eventsToRegister,\n selectionIndex: -1,\n context: { data: group, index: groupIndex, isGroup: true },\n updateDropState: this._updateDroppingState,\n canDrag: dragDropEvents!.canDrag,\n canDrop: dragDropEvents!.canDrop,\n onDrop: dragDropEvents!.onDrop,\n onDragStart: dragDropEvents!.onDragStart,\n onDragEnter: dragDropEvents!.onDragEnter,\n onDragLeave: dragDropEvents!.onDragLeave,\n onDragEnd: dragDropEvents!.onDragEnd,\n onDragOver: dragDropEvents!.onDragOver,\n };\n return options as IDragDropOptions;\n };\n\n /**\n * update groupIsDropping state based on the input value, which is used to change style during drag and drop\n *\n * @param newValue - new isDropping state value\n * @param event - the event trigger dropping state change which can be dragenter, dragleave etc\n */\n private _updateDroppingState = (newIsDropping: boolean, event: DragEvent): void => {\n const { isDropping } = this.state;\n const { dragDropEvents, group } = this.props;\n\n if (isDropping !== newIsDropping) {\n if (isDropping) {\n if (dragDropEvents && dragDropEvents.onDragLeave) {\n dragDropEvents.onDragLeave(group, event);\n }\n } else {\n if (dragDropEvents && dragDropEvents.onDragEnter) {\n this._droppingClassName = dragDropEvents.onDragEnter(group, event);\n }\n }\n\n this.setState({ isDropping: newIsDropping });\n }\n };\n\n /**\n * get the correct css class to reflect the dropping state for a given group\n *\n * If the group is the current drop target, return the default dropping class name\n * Otherwise, return '';\n *\n */\n private _getDroppingClassName(): string {\n let { isDropping } = this.state;\n const { group, groupedListClassNames } = this.props;\n\n isDropping = !!(group && isDropping);\n\n return css(\n isDropping && this._droppingClassName,\n isDropping && DEFAULT_DROPPING_CSS_CLASS,\n isDropping && groupedListClassNames && groupedListClassNames.groupIsDropping,\n );\n }\n}\n","import * as React from 'react';\nimport {\n initializeComponentRef,\n classNamesFunction,\n FocusRects,\n KeyCodes,\n getRTLSafeKeyCode,\n css,\n} from '../../Utilities';\nimport { GroupedListSection } from './GroupedListSection';\nimport { List, ScrollToMode } from '../../List';\nimport { SelectionMode } from '../../Selection';\nimport { DEFAULT_ROW_HEIGHTS } from '../DetailsList/DetailsRow.styles';\nimport { FocusZone, FocusZoneDirection } from '../../FocusZone';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type {\n IGroupedList,\n IGroupedListProps,\n IGroup,\n IGroupedListStyleProps,\n IGroupedListStyles,\n} from './GroupedList.types';\nimport type { IListProps } from '../../List';\nimport type { IGroupHeaderProps } from './GroupHeader';\nimport type { IGroupShowAllProps } from './GroupShowAll.styles';\nimport type { IGroupFooterProps } from './GroupFooter.types';\n\nconst getClassNames = classNamesFunction();\nconst { rowHeight: ROW_HEIGHT, compactRowHeight: COMPACT_ROW_HEIGHT } = DEFAULT_ROW_HEIGHTS;\n\nexport interface IGroupedListState {\n selectionMode?: IGroupedListProps['selectionMode'];\n compact?: IGroupedListProps['compact'];\n groups?: IGroup[];\n items?: IGroupedListProps['items'];\n listProps?: IGroupedListProps['listProps'];\n version: {};\n}\n\nexport class GroupedListBase extends React.Component implements IGroupedList {\n public static defaultProps = {\n selectionMode: SelectionMode.multiple,\n isHeaderVisible: true,\n groupProps: {},\n compact: false,\n };\n\n private _classNames: IProcessedStyleSet;\n\n private _list = React.createRef();\n\n private _isSomeGroupExpanded: boolean;\n\n public static getDerivedStateFromProps(\n nextProps: IGroupedListProps,\n previousState: IGroupedListState,\n ): IGroupedListState {\n const { groups, selectionMode, compact, items, listProps } = nextProps;\n const listVersion = listProps && listProps.version;\n\n let nextState = {\n ...previousState,\n selectionMode,\n compact,\n groups,\n listProps,\n items,\n };\n\n let shouldForceUpdates = false;\n\n const previousListVersion = previousState.listProps && previousState.listProps.version;\n\n if (\n listVersion !== previousListVersion ||\n items !== previousState.items ||\n groups !== previousState.groups ||\n selectionMode !== previousState.selectionMode ||\n compact !== previousState.compact\n ) {\n // If there are any props not passed explicitly to `List` which have an impact on the behavior of `onRenderCell`,\n // these need to 'force-update' this component by revving the version. Otherwise, the List might render with stale\n // data.\n shouldForceUpdates = true;\n }\n\n if (shouldForceUpdates) {\n nextState = {\n ...nextState,\n version: {},\n };\n }\n\n return nextState;\n }\n\n constructor(props: IGroupedListProps) {\n super(props);\n\n initializeComponentRef(this);\n\n this._isSomeGroupExpanded = this._computeIsSomeGroupExpanded(props.groups);\n\n const { listProps: { version = {} } = {} } = props;\n\n this.state = {\n groups: props.groups,\n items: props.items,\n listProps: props.listProps,\n version,\n };\n }\n\n public scrollToIndex(index: number, measureItem?: (itemIndex: number) => number, scrollToMode?: ScrollToMode): void {\n if (this._list.current) {\n this._list.current.scrollToIndex(index, measureItem, scrollToMode);\n }\n }\n\n public getStartItemIndexInView(): number {\n return this._list.current!.getStartItemIndexInView() || 0;\n }\n\n public componentDidMount() {\n const { groupProps, groups = [] } = this.props;\n\n if (groupProps && groupProps.isAllGroupsCollapsed) {\n this._setGroupsCollapsedState(groups, groupProps.isAllGroupsCollapsed);\n }\n }\n\n public render(): JSX.Element {\n const {\n className,\n usePageCache,\n onShouldVirtualize,\n theme,\n role = 'treegrid',\n styles,\n compact,\n focusZoneProps = {},\n rootListProps = {},\n } = this.props;\n const { groups, version } = this.state;\n\n this._classNames = getClassNames(styles, {\n theme: theme!,\n className,\n compact,\n });\n\n const { shouldEnterInnerZone = this._isInnerZoneKeystroke } = focusZoneProps;\n\n return (\n \n \n {!groups ? (\n this._renderGroup(undefined, 0)\n ) : (\n \n )}\n \n );\n }\n\n public forceUpdate() {\n super.forceUpdate();\n this._forceListUpdates();\n }\n\n public toggleCollapseAll(allCollapsed: boolean): void {\n const { groups = [] } = this.state;\n const { groupProps } = this.props;\n const onToggleCollapseAll = groupProps && groupProps.onToggleCollapseAll;\n\n if (groups.length > 0) {\n if (onToggleCollapseAll) {\n onToggleCollapseAll(allCollapsed);\n }\n\n this._setGroupsCollapsedState(groups, allCollapsed);\n\n this._updateIsSomeGroupExpanded();\n\n this.forceUpdate();\n }\n }\n\n private _setGroupsCollapsedState(groups: IGroup[], isCollapsed: boolean): void {\n for (let groupIndex = 0; groupIndex < groups.length; groupIndex++) {\n groups[groupIndex].isCollapsed = isCollapsed;\n }\n }\n\n private _renderGroup = (group: IGroup | undefined, groupIndex: number): React.ReactNode => {\n const {\n dragDropEvents,\n dragDropHelper,\n eventsToRegister,\n groupProps,\n items,\n listProps,\n onRenderCell,\n selectionMode,\n selection,\n viewport,\n onShouldVirtualize,\n groups,\n compact,\n } = this.props;\n\n // override group header/footer props as needed\n const dividerProps = {\n onToggleSelectGroup: this._onToggleSelectGroup,\n onToggleCollapse: this._onToggleCollapse,\n onToggleSummarize: this._onToggleSummarize,\n };\n\n const headerProps: IGroupHeaderProps = { ...groupProps!.headerProps, ...dividerProps };\n const showAllProps: IGroupShowAllProps = { ...groupProps!.showAllProps, ...dividerProps };\n const footerProps: IGroupFooterProps = { ...groupProps!.footerProps, ...dividerProps };\n const groupNestingDepth = this._getGroupNestingDepth();\n\n if (!groupProps!.showEmptyGroups && group && group.count === 0) {\n return null;\n }\n\n const finalListProps: IListProps = {\n ...(listProps || {}),\n version: this.state.version,\n };\n\n return (\n \n );\n };\n\n private _returnOne(): number {\n return 1;\n }\n\n private _getDefaultGroupItemLimit = (group: IGroup): number => {\n return group.children && group.children.length > 0 ? group.children.length : group.count;\n };\n\n private _getGroupItemLimit = (group: IGroup): number => {\n const { groupProps } = this.props;\n const getGroupItemLimit =\n groupProps && groupProps.getGroupItemLimit ? groupProps.getGroupItemLimit : this._getDefaultGroupItemLimit;\n\n return getGroupItemLimit(group);\n };\n\n private _getGroupHeight = (group: IGroup): number => {\n const rowHeight = this.props.compact ? COMPACT_ROW_HEIGHT : ROW_HEIGHT;\n\n return rowHeight + (group.isCollapsed ? 0 : rowHeight * this._getGroupItemLimit(group));\n };\n\n private _getPageHeight: IListProps['getPageHeight'] = (itemIndex: number) => {\n const { groups } = this.state;\n const { getGroupHeight = this._getGroupHeight } = this.props;\n const pageGroup = groups && groups[itemIndex];\n\n if (pageGroup) {\n return getGroupHeight(pageGroup, itemIndex);\n } else {\n return 0;\n }\n };\n\n private _getGroupKey(group: IGroup | undefined, index: number): string {\n return 'group-' + (group && group.key ? group.key : String(index));\n }\n\n private _getGroupNestingDepth(): number {\n const { groups } = this.state;\n let level = 0;\n let groupsInLevel = groups;\n\n while (groupsInLevel && groupsInLevel.length > 0) {\n level++;\n groupsInLevel = groupsInLevel[0].children;\n }\n\n return level;\n }\n\n private _onToggleCollapse = (group: IGroup): void => {\n const { groupProps } = this.props;\n const onToggleCollapse = groupProps && groupProps.headerProps && groupProps.headerProps.onToggleCollapse;\n\n if (group) {\n if (onToggleCollapse) {\n onToggleCollapse(group);\n }\n\n group.isCollapsed = !group.isCollapsed;\n this._updateIsSomeGroupExpanded();\n this.forceUpdate();\n }\n };\n\n private _onToggleSelectGroup = (group: IGroup): void => {\n const { selection, selectionMode } = this.props;\n\n if (group && selection && selectionMode === SelectionMode.multiple) {\n selection.toggleRangeSelected(group.startIndex, group.count);\n }\n };\n\n private _isInnerZoneKeystroke = (ev: React.KeyboardEvent): boolean => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return ev.which === getRTLSafeKeyCode(KeyCodes.right);\n };\n\n private _forceListUpdates(groups?: IGroup[]): void {\n this.setState({\n version: {},\n });\n }\n\n private _onToggleSummarize = (group: IGroup): void => {\n const { groupProps } = this.props;\n const onToggleSummarize = groupProps && groupProps.showAllProps && groupProps.showAllProps.onToggleSummarize;\n\n if (onToggleSummarize) {\n onToggleSummarize(group);\n } else {\n if (group) {\n group.isShowingAll = !group.isShowingAll;\n }\n\n this.forceUpdate();\n }\n };\n\n private _getPageSpecification = (\n itemIndex: number,\n ): {\n key?: string;\n } => {\n const groups = this.state.groups;\n const pageGroup = groups && groups[itemIndex];\n return {\n key: pageGroup && pageGroup.key,\n };\n };\n\n private _computeIsSomeGroupExpanded(groups: IGroup[] | undefined): boolean {\n return !!(\n groups &&\n groups.some(group => (group.children ? this._computeIsSomeGroupExpanded(group.children) : !group.isCollapsed))\n );\n }\n\n private _updateIsSomeGroupExpanded(): void {\n const { groups } = this.state;\n const { onGroupExpandStateChanged } = this.props;\n\n const newIsSomeGroupExpanded = this._computeIsSomeGroupExpanded(groups);\n if (this._isSomeGroupExpanded !== newIsSomeGroupExpanded) {\n if (onGroupExpandStateChanged) {\n onGroupExpandStateChanged(newIsSomeGroupExpanded);\n }\n this._isSomeGroupExpanded = newIsSomeGroupExpanded;\n }\n }\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { getStyles } from './GroupedList.styles';\nimport { GroupedListBase } from './GroupedList.base';\nimport type { IGroupedListProps, IGroupedListStyles, IGroupedListStyleProps } from './GroupedList.types';\n\nexport const GroupedList: React.FunctionComponent = styled<\n IGroupedListProps,\n IGroupedListStyleProps,\n IGroupedListStyles\n>(GroupedListBase, getStyles, undefined, {\n scope: 'GroupedList',\n});\n\nexport type { IGroupedListProps };\n","import * as React from 'react';\nimport { BaseDecorator } from './BaseDecorator';\nimport { findScrollableParent, getRect, getWindow, Async, EventGroup } from '../../Utilities';\n\n/**\n * Viewport rectangle dimensions.\n *\n * {@docCategory DetailsList}\n */\nexport interface IViewport {\n /**\n * Width in pixels.\n */\n width: number;\n /**\n * Height in pixels.\n */\n height: number;\n}\n\nexport interface IWithViewportState {\n viewport?: IViewport;\n}\n\n/**\n * Props interface for the withViewport component.\n *\n * {@docCategory DetailsList}\n */\nexport interface IWithViewportProps {\n /**\n * Whether or not `withViewport` should disable its viewport measurements, effectively making this decorator\n * pass-through with no impact on the rendered component.\n *\n * Since `withViewport` measures the `viewport` on mount, after each React update, and in response to events,\n * it may cause a component which does not currently need this information due to its configuration to re-render\n * too often. `skipViewportMeasures` may be toggled on and off based on current state, and will suspend and resume\n * measurement as-needed.\n *\n * For example, when this wraps `DetailsList`, set `skipViewportMeasures` to `true` when the `layoutMode` is\n * `fixedColumns`, since the `DetailsList` does not use the viewport size in any calculations.\n *\n * In addition, consider setting `skipViewportMeasures` to `true` when running within a React test renderer, to avoid\n * direct DOM dependencies.\n */\n\n skipViewportMeasures?: boolean;\n /**\n * Whether or not to explicitly disable usage of the `ResizeObserver` in favor of a `'resize'` event on `window`,\n * even if the browser supports `ResizeObserver`. This may be necessary if use of `ResizeObserver` results in too\n * many re-renders of the wrapped component due to the frequency at which events are fired.\n *\n * This has no impact if `skipViewportMeasures` is `true`, as no viewport measurement strategy is used.\n */\n disableResizeObserver?: boolean;\n\n /**\n * Whether or not `withViewport` will delay before first measuring the viewport size.\n * Setting this will delay measurement by the same amount as the debounce for resizing the window.\n * This is useful for giving the child of the viewport time to render before measuring.\n *\n * This is an opt-in setting as existing systems have a dependency on immediate measurement for performance.\n * @default false\n */\n delayFirstMeasure?: boolean;\n}\n\nconst RESIZE_DELAY = 500;\nconst MAX_RESIZE_ATTEMPTS = 3;\n\n/**\n * A decorator to update decorated component on viewport or window resize events.\n *\n * @param ComposedComponent - decorated React component reference.\n */\nexport function withViewport(\n ComposedComponent: new (props: TProps, ...args: any[]) => React.Component,\n): any {\n return class WithViewportComponent extends BaseDecorator {\n private _root = React.createRef();\n private _resizeAttempts: number;\n private _viewportResizeObserver: any;\n private _async: Async;\n private _events: EventGroup;\n\n constructor(props: TProps) {\n super(props);\n\n this._async = new Async(this);\n this._events = new EventGroup(this);\n this._resizeAttempts = 0;\n\n this.state = {\n viewport: {\n width: 0,\n height: 0,\n },\n };\n }\n\n public componentDidMount(): void {\n const { delayFirstMeasure, disableResizeObserver, skipViewportMeasures } = this.props as IWithViewportProps;\n const win = getWindow(this._root.current);\n\n this._onAsyncResize = this._async.debounce(this._onAsyncResize, RESIZE_DELAY, {\n leading: false,\n });\n\n if (!skipViewportMeasures) {\n if (!disableResizeObserver && this._isResizeObserverAvailable()) {\n this._registerResizeObserver();\n } else {\n this._events.on(win, 'resize', this._onAsyncResize);\n }\n\n if (delayFirstMeasure) {\n this._async.setTimeout(() => {\n this._updateViewport();\n }, RESIZE_DELAY);\n } else {\n this._updateViewport();\n }\n }\n }\n\n public componentDidUpdate(previousProps: TProps) {\n const { skipViewportMeasures: previousSkipViewportMeasures } = previousProps as IWithViewportProps;\n const { disableResizeObserver, skipViewportMeasures } = this.props as IWithViewportProps;\n const win = getWindow(this._root.current);\n\n if (skipViewportMeasures !== previousSkipViewportMeasures) {\n if (!skipViewportMeasures) {\n if (!disableResizeObserver && this._isResizeObserverAvailable()) {\n if (!this._viewportResizeObserver) {\n this._registerResizeObserver();\n }\n } else {\n this._events.on(win, 'resize', this._onAsyncResize);\n }\n\n this._updateViewport();\n } else {\n this._unregisterResizeObserver();\n this._events.off(win, 'resize', this._onAsyncResize);\n }\n }\n }\n\n public componentWillUnmount(): void {\n this._events.dispose();\n this._async.dispose();\n this._unregisterResizeObserver();\n }\n\n public render(): JSX.Element {\n const { viewport } = this.state;\n const newViewport = viewport!.width > 0 && viewport!.height > 0 ? viewport : undefined;\n\n return (\n
    \n \n
    \n );\n }\n\n public forceUpdate(): void {\n this._updateViewport(true);\n }\n\n private _onAsyncResize(): void {\n this._updateViewport();\n }\n\n private _isResizeObserverAvailable(): boolean {\n const win = getWindow(this._root.current);\n\n return win && (win as any).ResizeObserver;\n }\n\n private _registerResizeObserver = () => {\n const win = getWindow(this._root.current);\n\n this._viewportResizeObserver = new (win as any).ResizeObserver(this._onAsyncResize);\n this._viewportResizeObserver.observe(this._root.current);\n };\n\n private _unregisterResizeObserver = () => {\n if (this._viewportResizeObserver) {\n this._viewportResizeObserver.disconnect();\n delete this._viewportResizeObserver;\n }\n };\n\n /* Note: using lambda here because decorators don't seem to work in decorators. */\n private _updateViewport = (withForceUpdate?: boolean) => {\n const { viewport } = this.state;\n const viewportElement = this._root.current;\n const win = getWindow(viewportElement);\n const scrollElement = findScrollableParent(viewportElement) as HTMLElement;\n const scrollRect = getRect(scrollElement, win);\n const clientRect = getRect(viewportElement, win);\n const updateComponent = () => {\n if (withForceUpdate && this._composedComponentInstance) {\n this._composedComponentInstance.forceUpdate();\n }\n };\n\n const isSizeChanged =\n (clientRect && clientRect.width) !== viewport!.width || (scrollRect && scrollRect.height) !== viewport!.height;\n\n if (isSizeChanged && this._resizeAttempts < MAX_RESIZE_ATTEMPTS && clientRect && scrollRect) {\n this._resizeAttempts++;\n this.setState(\n {\n viewport: {\n width: clientRect.width,\n height: scrollRect.height,\n },\n },\n () => {\n this._updateViewport(withForceUpdate);\n },\n );\n } else {\n this._resizeAttempts = 0;\n updateComponent();\n }\n };\n };\n}\n","import type { IGroup } from '../../components/GroupedList/GroupedList.types';\n\n/**\n * Takes an array of groups and returns a count of the groups and all descendant groups.\n * @param groups - The array of groups to count.\n */\nexport const GetGroupCount = (groups: IGroup[] | undefined): number => {\n let total = 0;\n\n if (groups) {\n const remainingGroups = [...groups];\n let currentGroup: IGroup;\n\n while (remainingGroups && remainingGroups.length > 0) {\n ++total;\n\n currentGroup = remainingGroups.pop() as IGroup;\n\n if (currentGroup && currentGroup.children) {\n remainingGroups.push(...currentGroup.children);\n }\n }\n }\n\n return total;\n};\n","import * as React from 'react';\n\nimport {\n initializeComponentRef,\n FocusRects,\n Async,\n KeyCodes,\n elementContains,\n getRTLSafeKeyCode,\n classNamesFunction,\n css,\n memoizeFunction,\n warnMutuallyExclusive,\n} from '../../Utilities';\nimport {\n CheckboxVisibility,\n ColumnActionsMode,\n ConstrainMode,\n DetailsListLayoutMode,\n ColumnDragEndLocation,\n IColumnDragDropDetails,\n} from '../DetailsList/DetailsList.types';\nimport { DetailsHeader } from '../DetailsList/DetailsHeader';\nimport { SelectAllVisibility } from '../DetailsList/DetailsHeader.types';\nimport { DetailsRowBase } from '../DetailsList/DetailsRow.base';\nimport { DetailsRow } from '../DetailsList/DetailsRow';\nimport { FocusZone, FocusZoneDirection } from '../../FocusZone';\nimport { Selection, SelectionMode, SelectionZone } from '../../Selection';\n\nimport { DragDropHelper } from '../../DragDrop';\nimport { GroupedList } from '../../GroupedList';\nimport { List, ScrollToMode } from '../../List';\nimport { withViewport } from '../../utilities/decorators/withViewport';\nimport { GetGroupCount } from '../../utilities/groupedList/GroupedListUtility';\nimport { DEFAULT_CELL_STYLE_PROPS } from './DetailsRow.styles';\nimport { CHECK_CELL_WIDTH as CHECKBOX_WIDTH } from './DetailsRowCheck.styles';\n// For every group level there is a GroupSpacer added. Importing this const to have the source value in one place.\nimport { SPACER_WIDTH as GROUP_EXPAND_WIDTH } from '../GroupedList/GroupSpacer';\nimport { composeComponentAs, composeRenderFunction, getId } from '@fluentui/utilities';\nimport { useConst } from '@fluentui/react-hooks';\nimport type { IRenderFunction } from '../../Utilities';\nimport type {\n IColumn,\n IDetailsList,\n IDetailsListProps,\n IDetailsListStyles,\n IDetailsListStyleProps,\n} from '../DetailsList/DetailsList.types';\nimport type {\n IDetailsHeader,\n IDetailsHeaderProps,\n IColumnReorderHeaderProps,\n} from '../DetailsList/DetailsHeader.types';\nimport type { IDetailsFooterProps } from '../DetailsList/DetailsFooter.types';\nimport type { IDetailsRowProps } from '../DetailsList/DetailsRow.types';\nimport type { IFocusZone, IFocusZoneProps } from '../../FocusZone';\nimport type { IObjectWithKey, ISelection } from '../../Selection';\nimport type { IGroupedList, IGroupDividerProps, IGroupRenderProps, IGroup } from '../../GroupedList';\nimport type { IListProps } from '../../List';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\nconst COMPONENT_NAME = 'DetailsList';\n\nexport interface IDetailsListState {\n focusedItemIndex: number;\n lastWidth?: number;\n lastSelectionMode?: SelectionMode;\n adjustedColumns: IColumn[];\n isCollapsed?: boolean;\n isSizing?: boolean;\n isSomeGroupExpanded?: boolean;\n /**\n * A unique object used to force-update the List when it changes.\n */\n version: {};\n getDerivedStateFromProps(nextProps: IDetailsListProps, previousState: IDetailsListState): IDetailsListState;\n}\n\nconst MIN_COLUMN_WIDTH = 100; // this is the global min width\n\nconst DEFAULT_RENDERED_WINDOWS_AHEAD = 2;\nconst DEFAULT_RENDERED_WINDOWS_BEHIND = 2;\n\nconst rowFocusZoneAddTabIndexProps = { tabIndex: 0 };\nconst rowFocusZoneNoTabIndexProps = {};\n\ntype IDetailsListInnerProps = Omit &\n IDetailsListState & {\n selection: ISelection;\n dragDropHelper: DragDropHelper | undefined;\n rootRef: React.RefObject;\n listRef: React.RefObject;\n groupedListRef: React.RefObject;\n focusZoneRef: React.RefObject;\n headerRef: React.RefObject;\n selectionZoneRef: React.RefObject;\n onGroupExpandStateChanged: (isSomeGroupExpanded: boolean) => void;\n onColumnIsSizingChanged: (column: IColumn, isSizing: boolean) => void;\n onRowDidMount: (row: DetailsRowBase) => void;\n onRowWillUnmount: (row: DetailsRowBase) => void;\n onColumnResized: (resizingColumn: IColumn, newWidth: number, resizingColumnIndex: number) => void;\n onColumnAutoResized: (column: IColumn, columnIndex: number) => void;\n onToggleCollapse: (collapsed: boolean) => void;\n onActiveRowChanged: (el?: HTMLElement, ev?: React.FocusEvent) => void;\n onBlur: (event: React.FocusEvent) => void;\n onRenderDefaultRow: (detailsRowProps: IDetailsRowProps) => JSX.Element;\n };\n\n/**\n * Hooks-based implementation of DetailsList.\n * Since many existing consumers of DetailsList expect `ref` to return a `DetailsList`,\n * this inner component handles rendering while the outer maintains compatibility.\n */\nconst DetailsListInner: React.ComponentType = (\n props: IDetailsListInnerProps,\n): JSX.Element | null => {\n const { selection } = props;\n\n const {\n ariaLabelForListHeader,\n ariaLabelForSelectAllCheckbox,\n ariaLabelForSelectionColumn,\n className,\n checkboxVisibility,\n compact,\n constrainMode,\n dragDropEvents,\n groups,\n groupProps,\n indentWidth,\n items,\n isPlaceholderData,\n isHeaderVisible,\n layoutMode,\n onItemInvoked,\n onItemContextMenu,\n onColumnHeaderClick,\n onColumnHeaderContextMenu,\n selectionMode = selection.mode,\n selectionPreservedOnEmptyClick,\n selectionZoneProps,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n ariaLabel,\n ariaLabelForGrid,\n rowElementEventMap,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n shouldApplyApplicationRole = false,\n getKey,\n listProps,\n usePageCache,\n onShouldVirtualize,\n viewport,\n minimumPixelsForDrag,\n getGroupHeight,\n styles,\n theme,\n cellStyleProps = DEFAULT_CELL_STYLE_PROPS,\n onRenderCheckbox,\n useFastIcons,\n dragDropHelper,\n adjustedColumns,\n isCollapsed,\n isSizing,\n isSomeGroupExpanded,\n version,\n rootRef,\n listRef,\n focusZoneRef,\n columnReorderOptions,\n groupedListRef,\n headerRef,\n onGroupExpandStateChanged,\n onColumnIsSizingChanged,\n onRowDidMount,\n onRowWillUnmount,\n disableSelectionZone,\n isSelectedOnFocus = true,\n onColumnResized,\n onColumnAutoResized,\n onToggleCollapse,\n onActiveRowChanged,\n onBlur,\n rowElementEventMap: eventsToRegister,\n onRenderMissingItem,\n onRenderItemColumn,\n onRenderField,\n getCellValueKey,\n getRowAriaLabel,\n getRowAriaDescribedBy,\n checkButtonAriaLabel,\n checkButtonGroupAriaLabel,\n checkboxCellClassName,\n useReducedRowRenderer,\n enableUpdateAnimations,\n enterModalSelectionOnTouch,\n onRenderDefaultRow,\n selectionZoneRef,\n focusZoneProps,\n } = props;\n\n const defaultRole = 'grid';\n const role = props.role ? props.role : defaultRole;\n\n const rowId = getId('row');\n\n const groupNestingDepth = getGroupNestingDepth(groups);\n const groupedDetailsListIndexMap = useGroupedDetailsListIndexMap(groups);\n\n const additionalListProps = React.useMemo((): IListProps => {\n return {\n renderedWindowsAhead: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_AHEAD,\n renderedWindowsBehind: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_BEHIND,\n getKey,\n version,\n ...listProps,\n };\n }, [isSizing, getKey, version, listProps]);\n\n let selectAllVisibility = SelectAllVisibility.none; // for SelectionMode.none\n if (selectionMode === SelectionMode.single) {\n selectAllVisibility = SelectAllVisibility.hidden;\n }\n if (selectionMode === SelectionMode.multiple) {\n // if isCollapsedGroupSelectVisible is false, disable select all when the list has all collapsed groups\n let isCollapsedGroupSelectVisible =\n groupProps && groupProps.headerProps && groupProps.headerProps.isCollapsedGroupSelectVisible;\n if (isCollapsedGroupSelectVisible === undefined) {\n isCollapsedGroupSelectVisible = true;\n }\n const isSelectAllVisible = isCollapsedGroupSelectVisible || !groups || isSomeGroupExpanded;\n selectAllVisibility = isSelectAllVisible ? SelectAllVisibility.visible : SelectAllVisibility.hidden;\n }\n\n if (checkboxVisibility === CheckboxVisibility.hidden) {\n selectAllVisibility = SelectAllVisibility.none;\n }\n\n const defaultOnRenderDetailsHeader = React.useCallback(\n (detailsHeaderProps: IDetailsHeaderProps): JSX.Element | null => {\n return ;\n },\n [],\n );\n\n const defaultOnRenderDetailsFooter = React.useCallback((): JSX.Element | null => {\n return null;\n }, []);\n\n const propsOnRenderDetailsHeader = props.onRenderDetailsHeader;\n\n const onRenderDetailsHeader = React.useMemo(() => {\n return propsOnRenderDetailsHeader\n ? composeRenderFunction(propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader)\n : defaultOnRenderDetailsHeader;\n }, [propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader]);\n\n const propsOnRenderDetailsFooter = props.onRenderDetailsFooter;\n\n const onRenderDetailsFooter = React.useMemo(() => {\n return propsOnRenderDetailsFooter\n ? composeRenderFunction(propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter)\n : defaultOnRenderDetailsFooter;\n }, [propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter]);\n\n const detailsFooterProps = React.useMemo((): IDetailsFooterProps => {\n return {\n columns: adjustedColumns,\n groupNestingDepth,\n selection,\n selectionMode,\n viewport,\n checkboxVisibility,\n indentWidth,\n cellStyleProps,\n };\n }, [\n adjustedColumns,\n groupNestingDepth,\n selection,\n selectionMode,\n viewport,\n checkboxVisibility,\n indentWidth,\n cellStyleProps,\n ]);\n\n const columnReorderOnDragEnd = columnReorderOptions && columnReorderOptions.onDragEnd;\n\n const onColumnDragEnd = React.useCallback(\n (\n {\n dropLocation,\n }: {\n dropLocation?: ColumnDragEndLocation;\n },\n event: MouseEvent,\n ): void => {\n let finalDropLocation: ColumnDragEndLocation = ColumnDragEndLocation.outside;\n if (columnReorderOnDragEnd) {\n if (dropLocation && dropLocation !== ColumnDragEndLocation.header) {\n finalDropLocation = dropLocation;\n } else if (rootRef.current) {\n const clientRect = rootRef.current.getBoundingClientRect();\n if (\n event.clientX > clientRect.left &&\n event.clientX < clientRect.right &&\n event.clientY > clientRect.top &&\n event.clientY < clientRect.bottom\n ) {\n finalDropLocation = ColumnDragEndLocation.surface;\n }\n }\n columnReorderOnDragEnd(finalDropLocation);\n }\n },\n [columnReorderOnDragEnd, rootRef],\n );\n\n const columnReorderProps = React.useMemo((): IColumnReorderHeaderProps | undefined => {\n if (columnReorderOptions) {\n return {\n ...columnReorderOptions,\n onColumnDragEnd,\n };\n }\n }, [columnReorderOptions, onColumnDragEnd]);\n\n const rowCount =\n (isHeaderVisible ? 1 : 0) +\n (props.onRenderDetailsFooter ? 1 : 0) +\n GetGroupCount(groups) +\n (items ? items.length : 0);\n const colCount =\n (selectAllVisibility !== SelectAllVisibility.none ? 1 : 0) +\n (adjustedColumns ? adjustedColumns.length : 0) +\n (groups ? 1 : 0);\n\n const classNames = React.useMemo(() => {\n return getClassNames(styles, {\n theme: theme!,\n compact,\n isFixed: layoutMode === DetailsListLayoutMode.fixedColumns,\n isHorizontalConstrained: constrainMode === ConstrainMode.horizontalConstrained,\n className,\n });\n }, [styles, theme, compact, layoutMode, constrainMode, className]);\n\n const onRenderDetailsGroupFooter = groupProps && groupProps.onRenderFooter;\n\n const finalOnRenderDetailsGroupFooter = React.useMemo(() => {\n return onRenderDetailsGroupFooter\n ? (groupFooterProps: IGroupDividerProps, defaultRender?: IRenderFunction) => {\n return onRenderDetailsGroupFooter(\n {\n ...groupFooterProps,\n columns: adjustedColumns,\n groupNestingDepth,\n indentWidth,\n selection,\n selectionMode,\n viewport,\n checkboxVisibility,\n cellStyleProps,\n },\n defaultRender,\n );\n }\n : undefined;\n }, [\n onRenderDetailsGroupFooter,\n adjustedColumns,\n groupNestingDepth,\n indentWidth,\n selection,\n selectionMode,\n viewport,\n checkboxVisibility,\n cellStyleProps,\n ]);\n\n const onRenderDetailsGroupHeader = groupProps && groupProps.onRenderHeader;\n\n const finalOnRenderDetailsGroupHeader = React.useMemo(() => {\n return onRenderDetailsGroupHeader\n ? (groupHeaderProps: IGroupDividerProps, defaultRender?: IRenderFunction) => {\n const { groupIndex } = groupHeaderProps;\n const groupKey: string | undefined =\n groupIndex !== undefined ? groupHeaderProps.groups?.[groupIndex]?.key : undefined;\n const totalRowCount: number =\n groupKey !== undefined && groupedDetailsListIndexMap[groupKey]\n ? groupedDetailsListIndexMap[groupKey].totalRowCount\n : 0;\n\n return onRenderDetailsGroupHeader(\n {\n ...groupHeaderProps,\n columns: adjustedColumns,\n groupNestingDepth,\n indentWidth,\n selection,\n selectionMode: checkboxVisibility !== CheckboxVisibility.hidden ? selectionMode : SelectionMode.none,\n viewport,\n checkboxVisibility,\n cellStyleProps,\n ariaColSpan: adjustedColumns.length,\n ariaLevel: undefined,\n ariaPosInSet: undefined,\n ariaSetSize: undefined,\n ariaRowCount: undefined,\n ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined,\n },\n defaultRender,\n );\n }\n : (groupHeaderProps: IGroupDividerProps, defaultRender: IRenderFunction) => {\n const { groupIndex } = groupHeaderProps;\n const groupKey: string | undefined =\n groupIndex !== undefined ? groupHeaderProps.groups?.[groupIndex]?.key : undefined;\n const totalRowCount: number =\n groupKey !== undefined && groupedDetailsListIndexMap[groupKey]\n ? groupedDetailsListIndexMap[groupKey].totalRowCount\n : 0;\n\n return defaultRender({\n ...groupHeaderProps,\n ariaColSpan: adjustedColumns.length,\n ariaLevel: undefined,\n ariaPosInSet: undefined,\n ariaSetSize: undefined,\n ariaRowCount: undefined,\n ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined,\n });\n };\n }, [\n onRenderDetailsGroupHeader,\n adjustedColumns,\n groupNestingDepth,\n indentWidth,\n isHeaderVisible,\n selection,\n selectionMode,\n viewport,\n checkboxVisibility,\n cellStyleProps,\n groupedDetailsListIndexMap,\n ]);\n\n const finalGroupProps = React.useMemo((): IGroupRenderProps | undefined => {\n return {\n ...groupProps,\n role: role === defaultRole ? 'rowgroup' : 'presentation',\n onRenderFooter: finalOnRenderDetailsGroupFooter,\n onRenderHeader: finalOnRenderDetailsGroupHeader,\n // pass through custom group header checkbox label\n headerProps: {\n ...groupProps?.headerProps,\n selectAllButtonProps: {\n 'aria-label': checkButtonGroupAriaLabel,\n ...groupProps?.headerProps?.selectAllButtonProps,\n },\n },\n };\n }, [groupProps, finalOnRenderDetailsGroupFooter, finalOnRenderDetailsGroupHeader, checkButtonGroupAriaLabel, role]);\n\n const sumColumnWidths = useConst(() =>\n memoizeFunction((columns: IColumn[]) => {\n let totalWidth: number = 0;\n\n columns.forEach((column: IColumn) => (totalWidth += column.calculatedWidth || column.minWidth));\n\n return totalWidth;\n }),\n );\n\n const collapseAllVisibility = groupProps && groupProps.collapseAllVisibility;\n\n const rowWidth = React.useMemo(() => {\n return sumColumnWidths(adjustedColumns);\n }, [adjustedColumns, sumColumnWidths]);\n\n const onRenderCell = React.useCallback(\n (nestingDepth: number, item: any, index: number, group?: IGroup): React.ReactNode => {\n const finalOnRenderRow = props.onRenderRow\n ? composeRenderFunction(props.onRenderRow, onRenderDefaultRow)\n : onRenderDefaultRow;\n\n const groupKey: string | undefined = group ? group.key : undefined;\n const numOfGroupHeadersBeforeItem: number =\n groupKey && groupedDetailsListIndexMap[groupKey]\n ? groupedDetailsListIndexMap[groupKey].numOfGroupHeadersBeforeItem\n : 0;\n\n const rowRole = role === defaultRole ? undefined : 'presentation';\n\n // add tabindex=\"0\" to first row so if the header isn't rendered or isn't focusable,\n // the focuszone still has content in the tab order.\n const rowFocusZoneProps = index > 0 ? rowFocusZoneNoTabIndexProps : rowFocusZoneAddTabIndexProps;\n\n const rowProps: IDetailsRowProps = {\n item,\n itemIndex: index,\n flatIndexOffset: (isHeaderVisible ? 2 : 1) + numOfGroupHeadersBeforeItem,\n compact,\n columns: adjustedColumns,\n groupNestingDepth: nestingDepth,\n id: `${rowId}-${index}`,\n selectionMode,\n selection,\n onDidMount: onRowDidMount,\n onWillUnmount: onRowWillUnmount,\n onRenderItemColumn,\n onRenderField,\n getCellValueKey,\n eventsToRegister,\n dragDropEvents,\n dragDropHelper,\n viewport,\n checkboxVisibility,\n collapseAllVisibility,\n getRowAriaLabel,\n getRowAriaDescribedBy,\n checkButtonAriaLabel,\n checkboxCellClassName,\n useReducedRowRenderer,\n indentWidth,\n cellStyleProps,\n onRenderDetailsCheckbox: onRenderCheckbox,\n enableUpdateAnimations,\n rowWidth,\n useFastIcons,\n role: rowRole,\n isGridRow: true,\n focusZoneProps: rowFocusZoneProps,\n };\n\n if (!item) {\n if (onRenderMissingItem) {\n return onRenderMissingItem(index, rowProps);\n }\n\n return null;\n }\n\n return finalOnRenderRow(rowProps);\n },\n [\n compact,\n adjustedColumns,\n selectionMode,\n selection,\n rowId,\n onRowDidMount,\n onRowWillUnmount,\n onRenderItemColumn,\n onRenderField,\n getCellValueKey,\n eventsToRegister,\n dragDropEvents,\n dragDropHelper,\n viewport,\n checkboxVisibility,\n collapseAllVisibility,\n getRowAriaLabel,\n getRowAriaDescribedBy,\n isHeaderVisible,\n checkButtonAriaLabel,\n checkboxCellClassName,\n useReducedRowRenderer,\n indentWidth,\n cellStyleProps,\n onRenderCheckbox,\n enableUpdateAnimations,\n useFastIcons,\n onRenderDefaultRow,\n onRenderMissingItem,\n props.onRenderRow,\n rowWidth,\n role,\n groupedDetailsListIndexMap,\n ],\n );\n\n const onRenderListCell = React.useCallback(\n (nestingDepth: number): ((item: any, itemIndex: number) => React.ReactNode) => {\n return (item: any, itemIndex: number): React.ReactNode => {\n return onRenderCell(nestingDepth, item, itemIndex);\n };\n },\n [onRenderCell],\n );\n\n const isRightArrow = React.useCallback(\n (event: React.KeyboardEvent) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return event.which === getRTLSafeKeyCode(KeyCodes.right, theme);\n },\n [theme],\n );\n\n const focusZoneInnerProps: IFocusZoneProps = {\n ...focusZoneProps,\n componentRef: focusZoneProps && focusZoneProps.componentRef ? focusZoneProps.componentRef : focusZoneRef,\n className:\n focusZoneProps && focusZoneProps.className\n ? css(classNames.focusZone, focusZoneProps.className)\n : classNames.focusZone,\n direction: focusZoneProps ? focusZoneProps.direction : FocusZoneDirection.vertical,\n shouldEnterInnerZone:\n focusZoneProps && focusZoneProps.shouldEnterInnerZone ? focusZoneProps.shouldEnterInnerZone : isRightArrow,\n onActiveElementChanged:\n focusZoneProps && focusZoneProps.onActiveElementChanged\n ? focusZoneProps.onActiveElementChanged\n : onActiveRowChanged,\n shouldRaiseClicksOnEnter: false,\n onBlur: focusZoneProps && focusZoneProps.onBlur ? focusZoneProps.onBlur : onBlur,\n };\n\n const FinalGroupedList =\n groups && groupProps?.groupedListAs ? composeComponentAs(groupProps.groupedListAs, GroupedList) : GroupedList;\n\n const list = groups ? (\n \n ) : (\n \n \n \n );\n\n const onHeaderKeyDown = React.useCallback(\n (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.down) {\n if (focusZoneRef.current && focusZoneRef.current.focus()) {\n // select the first item in list after down arrow key event\n // only if nothing was selected; otherwise start with the already-selected item\n if (isSelectedOnFocus && selection.getSelectedIndices().length === 0) {\n selection.setIndexSelected(0, true, false);\n }\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n },\n [selection, focusZoneRef, isSelectedOnFocus],\n );\n\n const onContentKeyDown = React.useCallback(\n (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.up && !ev.altKey) {\n if (headerRef.current && headerRef.current.focus()) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n },\n [headerRef],\n );\n\n return (\n \n \n \n
    \n {isHeaderVisible &&\n onRenderDetailsHeader(\n {\n componentRef: headerRef,\n selectionMode,\n layoutMode: layoutMode!,\n selection,\n columns: adjustedColumns,\n onColumnClick: onColumnHeaderClick,\n onColumnContextMenu: onColumnHeaderContextMenu,\n onColumnResized,\n onColumnIsSizingChanged,\n onColumnAutoResized,\n groupNestingDepth,\n isAllCollapsed: isCollapsed,\n onToggleCollapseAll: onToggleCollapse,\n ariaLabel: ariaLabelForListHeader,\n ariaLabelForSelectAllCheckbox,\n ariaLabelForSelectionColumn,\n selectAllVisibility,\n collapseAllVisibility: groupProps && groupProps.collapseAllVisibility,\n viewport,\n columnReorderProps,\n minimumPixelsForDrag,\n cellStyleProps,\n checkboxVisibility,\n indentWidth,\n onRenderDetailsCheckbox: onRenderCheckbox,\n rowWidth: sumColumnWidths(adjustedColumns),\n useFastIcons,\n },\n onRenderDetailsHeader,\n )}\n
    \n
    \n {!disableSelectionZone ? (\n \n {list}\n \n ) : (\n list\n )}\n
    \n {onRenderDetailsFooter({\n ...detailsFooterProps,\n })}\n \n \n );\n};\n\n@withViewport\nexport class DetailsListBase extends React.Component implements IDetailsList {\n public static defaultProps = {\n layoutMode: DetailsListLayoutMode.justified,\n selectionMode: SelectionMode.multiple,\n constrainMode: ConstrainMode.horizontalConstrained,\n checkboxVisibility: CheckboxVisibility.onHover,\n isHeaderVisible: true,\n compact: false,\n useFastIcons: true,\n };\n\n public static contextType = WindowContext;\n\n // References\n private _async: Async;\n private _root = React.createRef();\n private _header = React.createRef();\n private _groupedList = React.createRef();\n private _list = React.createRef();\n private _focusZone = React.createRef();\n private _selectionZone = React.createRef();\n\n private _selection: ISelection;\n private _activeRows: { [key: string]: DetailsRowBase };\n private _dragDropHelper: DragDropHelper | undefined;\n private _initialFocusedIndex: number | undefined;\n\n private _columnOverrides: {\n [key: string]: IColumn;\n };\n\n public static getDerivedStateFromProps(\n nextProps: IDetailsListProps,\n previousState: IDetailsListState,\n ): IDetailsListState {\n return previousState.getDerivedStateFromProps(nextProps, previousState);\n }\n\n constructor(props: IDetailsListProps) {\n super(props);\n\n initializeComponentRef(this);\n this._async = new Async(this);\n\n this._activeRows = {};\n this._columnOverrides = {};\n\n this.state = {\n focusedItemIndex: -1,\n lastWidth: 0,\n adjustedColumns: this._getAdjustedColumns(props, undefined),\n isSizing: false,\n isCollapsed: props.groupProps && props.groupProps.isAllGroupsCollapsed,\n isSomeGroupExpanded: props.groupProps && !props.groupProps.isAllGroupsCollapsed,\n version: {},\n getDerivedStateFromProps: this._getDerivedStateFromProps,\n };\n\n warnMutuallyExclusive(COMPONENT_NAME, props, {\n selection: 'getKey',\n });\n\n this._selection =\n props.selection ||\n new Selection({\n onSelectionChanged: undefined,\n getKey: props.getKey,\n selectionMode: props.selectionMode,\n });\n\n if (!this.props.disableSelectionZone) {\n this._selection.setItems(props.items as IObjectWithKey[], false);\n }\n\n this._dragDropHelper = props.dragDropEvents\n ? new DragDropHelper({\n selection: this._selection,\n minimumPixelsForDrag: props.minimumPixelsForDrag,\n })\n : undefined;\n this._initialFocusedIndex = props.initialFocusedIndex;\n }\n\n public scrollToIndex(index: number, measureItem?: (itemIndex: number) => number, scrollToMode?: ScrollToMode): void {\n this._list.current && this._list.current.scrollToIndex(index, measureItem, scrollToMode);\n this._groupedList.current && this._groupedList.current.scrollToIndex(index, measureItem, scrollToMode);\n }\n\n public focusIndex(\n index: number,\n forceIntoFirstElement: boolean = false,\n measureItem?: (itemIndex: number) => number,\n scrollToMode?: ScrollToMode,\n ): void {\n const item = this.props.items[index];\n if (item) {\n this.scrollToIndex(index, measureItem, scrollToMode);\n\n const itemKey = this._getItemKey(item, index);\n const row = this._activeRows[itemKey];\n if (row) {\n this._setFocusToRow(row, forceIntoFirstElement);\n }\n }\n }\n\n public getStartItemIndexInView(): number {\n if (this._list && this._list.current) {\n return this._list.current.getStartItemIndexInView();\n } else if (this._groupedList && this._groupedList.current) {\n return this._groupedList.current.getStartItemIndexInView();\n }\n return 0;\n }\n\n public updateColumn(column: IColumn, options: { width?: number; newColumnIndex?: number }) {\n const NO_COLUMNS: IColumn[] = [];\n\n const { columns = NO_COLUMNS, selectionMode, checkboxVisibility, columnReorderOptions } = this.props;\n const { width, newColumnIndex } = options;\n const index = columns.findIndex(col => col.key === column.key);\n\n if (width) {\n this._onColumnResized(column, width, index!);\n }\n\n if (newColumnIndex !== undefined && columnReorderOptions) {\n const isCheckboxColumnHidden =\n selectionMode === SelectionMode.none || checkboxVisibility === CheckboxVisibility.hidden;\n\n const showCheckbox = checkboxVisibility !== CheckboxVisibility.hidden;\n const columnIndex = (showCheckbox ? 2 : 1) + index!;\n\n const draggedIndex = isCheckboxColumnHidden ? columnIndex - 1 : columnIndex - 2;\n const targetIndex = isCheckboxColumnHidden ? newColumnIndex - 1 : newColumnIndex - 2;\n\n const frozenColumnCountFromStart = columnReorderOptions.frozenColumnCountFromStart ?? 0;\n const frozenColumnCountFromEnd = columnReorderOptions.frozenColumnCountFromEnd ?? 0;\n const isValidTargetIndex =\n targetIndex >= frozenColumnCountFromStart && targetIndex < columns.length - frozenColumnCountFromEnd;\n\n if (isValidTargetIndex) {\n if (columnReorderOptions.onColumnDrop) {\n const dragDropDetails: IColumnDragDropDetails = {\n draggedIndex,\n targetIndex,\n };\n columnReorderOptions.onColumnDrop(dragDropDetails);\n /* eslint-disable @typescript-eslint/no-deprecated */\n } else if (columnReorderOptions.handleColumnReorder) {\n columnReorderOptions.handleColumnReorder(draggedIndex, targetIndex);\n /* eslint-enable @typescript-eslint/no-deprecated */\n }\n }\n }\n }\n\n public componentWillUnmount(): void {\n if (this._dragDropHelper) {\n // TODO If the DragDropHelper was passed via props, this will dispose it, which is incorrect behavior.\n this._dragDropHelper.dispose();\n }\n this._async.dispose();\n }\n\n public componentDidUpdate(prevProps: IDetailsListProps, prevState: IDetailsListState) {\n this._notifyColumnsResized();\n\n const doc = getDocumentEx(this.context);\n\n if (this._initialFocusedIndex !== undefined) {\n const item = this.props.items[this._initialFocusedIndex];\n if (item) {\n const itemKey = this._getItemKey(item, this._initialFocusedIndex);\n const row = this._activeRows[itemKey];\n if (row) {\n this._setFocusToRowIfPending(row);\n }\n }\n }\n\n if (\n this.props.items !== prevProps.items &&\n this.props.items.length > 0 &&\n this.state.focusedItemIndex !== -1 &&\n !elementContains(this._root.current, doc?.activeElement as HTMLElement, false)\n ) {\n // Item set has changed and previously-focused item is gone.\n // Set focus to item at index of previously-focused item if it is in range,\n // else set focus to the last item.\n const index =\n this.state.focusedItemIndex < this.props.items.length\n ? this.state.focusedItemIndex\n : this.props.items.length - 1;\n const item = this.props.items[index];\n const itemKey = this._getItemKey(item, this.state.focusedItemIndex);\n const row = this._activeRows[itemKey];\n if (row) {\n this._setFocusToRow(row);\n } else {\n this._initialFocusedIndex = index;\n }\n }\n if (this.props.onDidUpdate) {\n this.props.onDidUpdate(this);\n }\n }\n\n public render(): JSX.Element {\n return (\n \n );\n }\n\n public forceUpdate(): void {\n super.forceUpdate();\n this._forceListUpdates();\n }\n\n protected _onRenderRow = (\n props: IDetailsRowProps,\n defaultRender?: IRenderFunction,\n ): JSX.Element => {\n return ;\n };\n\n private _getDerivedStateFromProps = (\n nextProps: IDetailsListProps,\n previousState: IDetailsListState,\n ): IDetailsListState => {\n const {\n checkboxVisibility,\n items,\n setKey,\n selectionMode = this._selection.mode,\n columns,\n viewport,\n compact,\n dragDropEvents,\n } = this.props;\n\n const { isAllGroupsCollapsed = undefined } = this.props.groupProps || {};\n const newViewportWidth = (nextProps.viewport && nextProps.viewport.width) || 0;\n const oldViewportWidth = (viewport && viewport.width) || 0;\n const shouldResetSelection = nextProps.setKey !== setKey || nextProps.setKey === undefined;\n let shouldForceUpdates = false;\n\n if (nextProps.layoutMode !== this.props.layoutMode) {\n shouldForceUpdates = true;\n }\n\n let nextState = previousState;\n\n if (shouldResetSelection) {\n this._initialFocusedIndex = nextProps.initialFocusedIndex;\n // reset focusedItemIndex when setKey changes\n nextState = {\n ...nextState,\n focusedItemIndex: this._initialFocusedIndex !== undefined ? this._initialFocusedIndex : -1,\n };\n }\n\n if (!this.props.disableSelectionZone && nextProps.items !== items) {\n this._selection.setItems(nextProps.items, shouldResetSelection);\n }\n\n if (\n nextProps.checkboxVisibility !== checkboxVisibility ||\n nextProps.columns !== columns ||\n newViewportWidth !== oldViewportWidth ||\n nextProps.compact !== compact\n ) {\n shouldForceUpdates = true;\n }\n\n nextState = {\n ...nextState,\n ...this._adjustColumns(nextProps, nextState, true),\n };\n\n if (nextProps.selectionMode !== selectionMode) {\n shouldForceUpdates = true;\n }\n\n if (\n isAllGroupsCollapsed === undefined &&\n nextProps.groupProps &&\n nextProps.groupProps.isAllGroupsCollapsed !== undefined\n ) {\n nextState = {\n ...nextState,\n isCollapsed: nextProps.groupProps.isAllGroupsCollapsed,\n isSomeGroupExpanded: !nextProps.groupProps.isAllGroupsCollapsed,\n };\n }\n\n if (nextProps.dragDropEvents !== dragDropEvents) {\n this._dragDropHelper && this._dragDropHelper.dispose();\n this._dragDropHelper = nextProps.dragDropEvents\n ? new DragDropHelper({\n selection: this._selection,\n minimumPixelsForDrag: nextProps.minimumPixelsForDrag,\n })\n : undefined;\n shouldForceUpdates = true;\n }\n\n if (shouldForceUpdates) {\n nextState = {\n ...nextState,\n version: {},\n };\n }\n\n return nextState;\n };\n\n private _onGroupExpandStateChanged = (isSomeGroupExpanded: boolean): void => {\n this.setState({ isSomeGroupExpanded });\n };\n\n private _onColumnIsSizingChanged = (column: IColumn, isSizing: boolean): void => {\n this.setState({ isSizing });\n };\n\n private _getGroupNestingDepth(): number {\n const { groups } = this.props;\n let level = 0;\n let groupsInLevel = groups;\n\n while (groupsInLevel && groupsInLevel.length > 0) {\n level++;\n groupsInLevel = groupsInLevel[0].children;\n }\n\n return level;\n }\n\n private _onRowDidMount = (row: DetailsRowBase): void => {\n const { item, itemIndex } = row.props;\n const itemKey = this._getItemKey(item, itemIndex);\n this._activeRows[itemKey] = row; // this is used for column auto resize\n\n this._setFocusToRowIfPending(row);\n\n const { onRowDidMount } = this.props;\n if (onRowDidMount) {\n onRowDidMount(item, itemIndex);\n }\n };\n\n private _setFocusToRowIfPending(row: DetailsRowBase): void {\n const { itemIndex } = row.props;\n if (this._initialFocusedIndex !== undefined && itemIndex === this._initialFocusedIndex) {\n this._setFocusToRow(row);\n delete this._initialFocusedIndex;\n }\n }\n\n private _setFocusToRow(row: DetailsRowBase, forceIntoFirstElement: boolean = false): void {\n if (this._selectionZone.current) {\n this._selectionZone.current.ignoreNextFocus();\n }\n this._async.setTimeout((): void => {\n row.focus(forceIntoFirstElement);\n }, 0);\n }\n\n private _onRowWillUnmount = (row: DetailsRowBase): void => {\n const { onRowWillUnmount } = this.props;\n\n const { item, itemIndex } = row.props;\n const itemKey = this._getItemKey(item, itemIndex);\n delete this._activeRows[itemKey];\n\n if (onRowWillUnmount) {\n onRowWillUnmount(item, itemIndex);\n }\n };\n\n private _onToggleCollapse = (collapsed: boolean): void => {\n this.setState({\n isCollapsed: collapsed,\n });\n if (this._groupedList.current) {\n this._groupedList.current.toggleCollapseAll(collapsed);\n }\n };\n\n private _forceListUpdates(): void {\n if (this._groupedList.current) {\n this._groupedList.current.forceUpdate();\n }\n if (this._list.current) {\n this._list.current.forceUpdate();\n }\n }\n\n private _notifyColumnsResized(): void {\n this.state.adjustedColumns.forEach(column => {\n if (column.onColumnResize) {\n column.onColumnResize(column.currentWidth);\n }\n });\n }\n\n private _adjustColumns(\n newProps: IDetailsListProps,\n previousState: IDetailsListState,\n forceUpdate?: boolean,\n resizingColumnIndex?: number,\n ): IDetailsListState {\n const adjustedColumns = this._getAdjustedColumns(newProps, previousState, forceUpdate, resizingColumnIndex);\n const { viewport } = this.props;\n const viewportWidth = viewport && viewport.width ? viewport.width : 0;\n\n return {\n ...previousState,\n adjustedColumns,\n lastWidth: viewportWidth,\n };\n }\n\n /** Returns adjusted columns, given the viewport size and layout mode. */\n private _getAdjustedColumns(\n newProps: IDetailsListProps,\n previousState: IDetailsListState | undefined,\n forceUpdate?: boolean,\n resizingColumnIndex?: number,\n ): IColumn[] {\n const { items: newItems, layoutMode, selectionMode, viewport } = newProps;\n const viewportWidth = viewport && viewport.width ? viewport.width : 0;\n let { columns: newColumns } = newProps;\n\n const columns = this.props ? this.props.columns : [];\n const lastWidth = previousState ? previousState.lastWidth : -1;\n const lastSelectionMode = previousState ? previousState.lastSelectionMode : undefined;\n\n if (\n !forceUpdate &&\n lastWidth === viewportWidth &&\n lastSelectionMode === selectionMode &&\n (!columns || newColumns === columns)\n ) {\n return newColumns || [];\n }\n\n newColumns = newColumns || buildColumns(newItems, true);\n\n let adjustedColumns: IColumn[];\n\n if (layoutMode === DetailsListLayoutMode.fixedColumns) {\n adjustedColumns = this._getFixedColumns(newColumns, viewportWidth, newProps);\n\n // Preserve adjusted column calculated widths.\n adjustedColumns.forEach(column => {\n this._rememberCalculatedWidth(column, column.calculatedWidth!);\n });\n } else {\n adjustedColumns = this._getJustifiedColumns(newColumns, viewportWidth, newProps);\n\n adjustedColumns.forEach(column => {\n this._getColumnOverride(column.key).currentWidth = column.calculatedWidth;\n });\n }\n\n return adjustedColumns;\n }\n\n /** Builds a set of columns based on the given columns mixed with the current overrides. */\n private _getFixedColumns(newColumns: IColumn[], viewportWidth: number, props: IDetailsListProps): IColumn[] {\n const { selectionMode = this._selection.mode, checkboxVisibility, flexMargin, skipViewportMeasures } = this.props;\n let remainingWidth = viewportWidth - (flexMargin || 0);\n let sumProportionalWidth = 0;\n\n newColumns.forEach((col: IColumn) => {\n if (skipViewportMeasures || !col.flexGrow) {\n remainingWidth -= col.maxWidth || col.minWidth || MIN_COLUMN_WIDTH;\n } else {\n remainingWidth -= col.minWidth || MIN_COLUMN_WIDTH;\n sumProportionalWidth += col.flexGrow;\n }\n\n remainingWidth -= getPaddedWidth(col, props, true);\n });\n\n const rowCheckWidth =\n selectionMode !== SelectionMode.none && checkboxVisibility !== CheckboxVisibility.hidden ? CHECKBOX_WIDTH : 0;\n const groupExpandWidth = this._getGroupNestingDepth() * GROUP_EXPAND_WIDTH;\n remainingWidth -= rowCheckWidth + groupExpandWidth;\n\n let widthFraction = remainingWidth / sumProportionalWidth;\n\n // Shrinks proportional columns to their max width and adds the remaining width to distribute to other columns.\n if (!skipViewportMeasures) {\n newColumns.forEach((column: IColumn) => {\n const newColumn: IColumn = { ...column, ...this._columnOverrides[column.key] };\n\n if (newColumn.flexGrow && newColumn.maxWidth) {\n const fullWidth = newColumn.flexGrow * widthFraction + newColumn.minWidth;\n const shrinkWidth = fullWidth - newColumn.maxWidth;\n\n if (shrinkWidth > 0) {\n remainingWidth += shrinkWidth;\n sumProportionalWidth -= (shrinkWidth / (fullWidth - newColumn.minWidth)) * newColumn.flexGrow;\n }\n }\n });\n }\n\n widthFraction = remainingWidth > 0 ? remainingWidth / sumProportionalWidth : 0;\n\n return newColumns.map(column => {\n const newColumn: IColumn = { ...column, ...this._columnOverrides[column.key] };\n\n // Delay computation until viewport width is available.\n if (!skipViewportMeasures && newColumn.flexGrow && remainingWidth <= 0 && viewportWidth === 0) {\n return newColumn;\n }\n\n if (!newColumn.calculatedWidth) {\n if (!skipViewportMeasures && newColumn.flexGrow) {\n // Assigns the proportion of the remaining extra width after all columns have met minimum widths.\n newColumn.calculatedWidth = newColumn.minWidth + newColumn.flexGrow * widthFraction;\n newColumn.calculatedWidth = Math.min(newColumn.calculatedWidth, newColumn.maxWidth || Number.MAX_VALUE);\n } else {\n newColumn.calculatedWidth = newColumn.maxWidth || newColumn.minWidth || MIN_COLUMN_WIDTH;\n }\n }\n\n return newColumn;\n });\n }\n\n /** Builds a set of columns to fix within the viewport width. */\n private _getJustifiedColumns(newColumns: IColumn[], viewportWidth: number, props: IDetailsListProps): IColumn[] {\n const { selectionMode = this._selection.mode, checkboxVisibility, skipViewportMeasures } = props;\n const rowCheckWidth =\n selectionMode !== SelectionMode.none && checkboxVisibility !== CheckboxVisibility.hidden ? CHECKBOX_WIDTH : 0;\n const groupExpandWidth = this._getGroupNestingDepth() * GROUP_EXPAND_WIDTH;\n let totalWidth = 0; // offset because we have one less inner padding.\n let minimumWidth = 0;\n const availableWidth = viewportWidth - (rowCheckWidth + groupExpandWidth);\n const adjustedColumns: IColumn[] = newColumns.map((column, i) => {\n const baseColumn = {\n ...column,\n calculatedWidth: column.minWidth || MIN_COLUMN_WIDTH,\n };\n\n const newColumn = {\n ...baseColumn,\n ...this._columnOverrides[column.key],\n };\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (!(baseColumn.isCollapsible || baseColumn.isCollapsable)) {\n minimumWidth += getPaddedWidth(baseColumn, props);\n }\n\n totalWidth += getPaddedWidth(newColumn, props);\n\n return newColumn;\n });\n\n if (skipViewportMeasures) {\n return adjustedColumns;\n }\n\n let lastIndex = adjustedColumns.length - 1;\n\n // Shrink or remove collapsable columns.\n while (lastIndex >= 0 && totalWidth > availableWidth) {\n const column = adjustedColumns[lastIndex];\n\n const minWidth = column.minWidth || MIN_COLUMN_WIDTH;\n const overflowWidth = totalWidth - availableWidth;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (column.calculatedWidth! - minWidth >= overflowWidth || !(column.isCollapsible || column.isCollapsable)) {\n const originalWidth = column.calculatedWidth!;\n if (minimumWidth < availableWidth) {\n // Only adjust in cases where all the columns fit within the viewport\n column.calculatedWidth = Math.max(column.calculatedWidth! - overflowWidth, minWidth);\n }\n totalWidth -= originalWidth - column.calculatedWidth!;\n } else {\n totalWidth -= getPaddedWidth(column, props);\n adjustedColumns.splice(lastIndex, 1);\n }\n lastIndex--;\n }\n\n // Then expand columns starting at the beginning, until we've filled the width.\n for (let i = 0; i < adjustedColumns.length && totalWidth < availableWidth; i++) {\n const column = adjustedColumns[i];\n const isLast = i === adjustedColumns.length - 1;\n const overrides = this._columnOverrides[column.key];\n if (overrides && overrides.calculatedWidth && !isLast) {\n continue;\n }\n\n const spaceLeft = availableWidth - totalWidth;\n let increment: number;\n if (isLast) {\n increment = spaceLeft;\n } else {\n const maxWidth = column.maxWidth;\n const minWidth = column.minWidth || maxWidth || MIN_COLUMN_WIDTH;\n increment = maxWidth ? Math.min(spaceLeft, maxWidth - minWidth) : spaceLeft;\n }\n\n column.calculatedWidth = (column.calculatedWidth as number) + increment;\n totalWidth += increment;\n }\n\n return adjustedColumns;\n }\n\n private _onColumnResized = (resizingColumn: IColumn, newWidth: number, resizingColumnIndex: number): void => {\n const newCalculatedWidth = Math.max(resizingColumn.minWidth || MIN_COLUMN_WIDTH, newWidth);\n if (this.props.onColumnResize) {\n this.props.onColumnResize(resizingColumn, newCalculatedWidth, resizingColumnIndex);\n }\n\n this._rememberCalculatedWidth(resizingColumn, newCalculatedWidth);\n\n this.setState({\n ...this._adjustColumns(this.props, this.state, true, resizingColumnIndex),\n version: {},\n });\n };\n\n private _rememberCalculatedWidth(column: IColumn, newCalculatedWidth: number): void {\n const overrides = this._getColumnOverride(column.key);\n overrides.calculatedWidth = newCalculatedWidth;\n overrides.currentWidth = newCalculatedWidth;\n }\n\n private _getColumnOverride(key: string): IColumn {\n return (this._columnOverrides[key] = this._columnOverrides[key] || {});\n }\n\n /**\n * Callback function when double clicked on the details header column resizer\n * which will measure the column cells of all the active rows and resize the\n * column to the max cell width.\n *\n * @param column - double clicked column definition\n * @param columnIndex - double clicked column index\n * TODO: min width 100 should be changed to const value and should be consistent with the\n * value used on _onSizerMove method in DetailsHeader\n */\n private _onColumnAutoResized = (column: IColumn, columnIndex: number): void => {\n let max = 0;\n let count = 0;\n const totalCount = Object.keys(this._activeRows).length;\n\n for (const key in this._activeRows) {\n if (this._activeRows.hasOwnProperty(key)) {\n const currentRow = this._activeRows[key];\n currentRow.measureCell(columnIndex, (width: number) => {\n max = Math.max(max, width);\n count++;\n if (count === totalCount) {\n this._onColumnResized(column, max, columnIndex);\n }\n });\n }\n }\n };\n\n /**\n * Call back function when an element in FocusZone becomes active. It will translate it into item\n * and call onActiveItemChanged callback if specified.\n *\n * @param row - element that became active in Focus Zone\n * @param focus - event from Focus Zone\n */\n private _onActiveRowChanged = (el?: HTMLElement, ev?: React.FocusEvent): void => {\n const { items, onActiveItemChanged } = this.props;\n\n if (!el) {\n return;\n }\n\n // Check and assign index only if the event was raised from any DetailsRow element\n if (el.getAttribute('data-item-index')) {\n const index = Number(el.getAttribute('data-item-index'));\n if (index >= 0) {\n if (onActiveItemChanged) {\n onActiveItemChanged(items[index], index, ev);\n }\n this.setState({\n focusedItemIndex: index,\n });\n }\n }\n };\n\n private _onBlur = (event: React.FocusEvent): void => {\n this.setState({\n focusedItemIndex: -1,\n });\n };\n\n private _getItemKey(item: any, itemIndex: number): string | number {\n const { getKey } = this.props;\n\n let itemKey: string | number | undefined = undefined;\n if (item) {\n itemKey = item.key;\n }\n\n if (getKey) {\n itemKey = getKey(item, itemIndex);\n }\n\n if (!itemKey) {\n itemKey = itemIndex;\n }\n\n return itemKey;\n }\n}\n\nexport function buildColumns(\n items: any[],\n canResizeColumns?: boolean,\n onColumnClick?: (ev: React.MouseEvent, column: IColumn) => void,\n sortedColumnKey?: string,\n isSortedDescending?: boolean,\n groupedColumnKey?: string,\n isMultiline?: boolean,\n columnActionsMode?: ColumnActionsMode,\n) {\n const columns: IColumn[] = [];\n\n if (items && items.length) {\n const firstItem = items[0];\n\n for (const propName in firstItem) {\n if (firstItem.hasOwnProperty(propName)) {\n columns.push({\n key: propName,\n name: propName,\n fieldName: propName,\n minWidth: MIN_COLUMN_WIDTH,\n maxWidth: 300,\n isCollapsible: !!columns.length,\n isMultiline: isMultiline === undefined ? false : isMultiline,\n isSorted: sortedColumnKey === propName,\n isSortedDescending: !!isSortedDescending,\n isRowHeader: false,\n columnActionsMode: columnActionsMode ?? ColumnActionsMode.clickable,\n isResizable: canResizeColumns,\n onColumnClick,\n isGrouped: groupedColumnKey === propName,\n });\n }\n }\n }\n\n return columns;\n}\n\nfunction getPaddedWidth(column: IColumn, props: IDetailsListProps, paddingOnly?: true): number {\n const { cellStyleProps = DEFAULT_CELL_STYLE_PROPS } = props;\n\n return (\n (paddingOnly ? 0 : column.calculatedWidth!) +\n cellStyleProps.cellLeftPadding +\n cellStyleProps.cellRightPadding +\n (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0)\n );\n}\n\nfunction getGroupNestingDepth(groups: IDetailsListProps['groups']): number {\n let level = 0;\n let groupsInLevel = groups;\n\n while (groupsInLevel && groupsInLevel.length > 0) {\n level++;\n groupsInLevel = groupsInLevel[0].children;\n }\n\n return level;\n}\n\ninterface IGroupedDetailsListIndexMap {\n [key: string]: { numOfGroupHeadersBeforeItem: number; totalRowCount: number };\n}\n\nfunction useGroupedDetailsListIndexMap(groups: IDetailsListProps['groups']) {\n return React.useMemo((): IGroupedDetailsListIndexMap => {\n const indexMap: IGroupedDetailsListIndexMap = {};\n if (groups) {\n let rowCount = 1;\n let numGroupHeaders = 1;\n for (const group of groups) {\n const { key } = group;\n indexMap[key] = { numOfGroupHeadersBeforeItem: numGroupHeaders, totalRowCount: rowCount };\n numGroupHeaders++;\n rowCount += group.count + 1;\n }\n }\n return indexMap;\n }, [groups]);\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IDetailsListStyleProps, IDetailsListStyles } from './DetailsList.types';\n\nconst GlobalClassNames = {\n root: 'ms-DetailsList',\n compact: 'ms-DetailsList--Compact',\n contentWrapper: 'ms-DetailsList-contentWrapper',\n headerWrapper: 'ms-DetailsList-headerWrapper',\n isFixed: 'is-fixed',\n isHorizontalConstrained: 'is-horizontalConstrained',\n listCell: 'ms-List-cell',\n};\n\nexport const getDetailsListStyles = (props: IDetailsListStyleProps): IDetailsListStyles => {\n const { theme, className, isHorizontalConstrained, compact, isFixed } = props;\n const { semanticColors } = theme;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n theme.fonts.small,\n {\n position: 'relative',\n color: semanticColors.listText,\n selectors: {\n [`& .${classNames.listCell}`]: {\n minHeight: 38,\n wordBreak: 'break-word',\n },\n },\n },\n\n isFixed && classNames.isFixed,\n\n compact && [\n classNames.compact,\n {\n selectors: {\n [`.${classNames.listCell}`]: {\n minHeight: 32,\n },\n },\n },\n ],\n\n isHorizontalConstrained && [\n classNames.isHorizontalConstrained,\n {\n overflowX: 'auto',\n overflowY: 'visible',\n WebkitOverflowScrolling: 'touch',\n },\n ],\n\n className,\n ],\n\n focusZone: [\n {\n display: 'inline-block',\n minWidth: '100%',\n minHeight: 1,\n },\n ],\n headerWrapper: classNames.headerWrapper,\n contentWrapper: classNames.contentWrapper,\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DetailsListBase } from './DetailsList.base';\nimport { getDetailsListStyles } from './DetailsList.styles';\nimport type { IDetailsListProps, IDetailsListStyleProps, IDetailsListStyles } from './DetailsList.types';\n\nexport const DetailsList: React.FunctionComponent = styled<\n IDetailsListProps,\n IDetailsListStyleProps,\n IDetailsListStyles\n>(DetailsListBase, getDetailsListStyles, undefined, {\n scope: 'DetailsList',\n});\n\nexport type { IDetailsListProps };\n","import * as React from 'react';\nimport { DetailsListBase } from './DetailsList.base';\nimport { SelectionMode } from '../../Selection';\nimport { ScrollToMode } from '../../List';\nimport type { ISelection, ISelectionZoneProps } from '../../Selection';\nimport type { IRefObject, IBaseProps, IRenderFunction, IStyleFunctionOrObject, IComponentAs } from '../../Utilities';\nimport type { IDragDropEvents, IDragDropContext, IDragDropHelper, IDragDropOptions } from '../../DragDrop';\nimport type { IGroup, IGroupRenderProps, IGroupDividerProps, IGroupedListProps } from '../GroupedList/index';\nimport type { IDetailsRowProps, IDetailsRowBaseProps } from '../DetailsList/DetailsRow';\nimport type { IDetailsHeaderProps, IDetailsHeaderBaseProps } from './DetailsHeader';\nimport type { IDetailsFooterProps, IDetailsFooterBaseProps } from './DetailsFooter.types';\nimport type { IWithViewportProps, IViewport } from '../../utilities/decorators/withViewport';\nimport type { IList, IListProps } from '../../List';\nimport type { ITheme, IStyle } from '../../Styling';\nimport type { ICellStyleProps, IDetailsItemProps } from './DetailsRow.types';\nimport type { IDetailsCheckboxProps } from './DetailsRowCheck.types';\nimport type {\n IDetailsColumnStyleProps,\n IDetailsColumnProps,\n IDetailsColumnStyles,\n IDetailsColumnFilterIconProps,\n IDetailsColumnFieldProps,\n} from './DetailsColumn.types';\nimport { IFocusZoneProps } from '../../FocusZone';\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IDetailsList extends IList {\n /**\n * Ensures that the list content is updated. Call this in cases where the list prop updates don't change, but the list\n * still needs to be re-evaluated. For example, if a sizer bar is adjusted and causes the list width to change,\n * you can call this to force a re-evaluation. Be aware that this can be an expensive operation and should be\n * done sparingly.\n */\n forceUpdate: () => void;\n\n /**\n * Scroll to and focus the item at the given index. focusIndex will call scrollToIndex on the specified index.\n *\n * @param index - Index of item to scroll to\n * @param forceIntoFirstElement - If true, focus will be set to the first focusable child element of the item rather\n * than the item itself.\n * @param measureItem - Optional callback to measure the height of an individual item\n * @param scrollToMode - Optional setting to determine where in the window the item should be scrolled to\n * when focused.\n */\n focusIndex: (\n index: number,\n forceIntoFirstElement?: boolean,\n measureItem?: (itemIndex: number) => number,\n scrollToMode?: ScrollToMode,\n ) => void;\n\n /**\n * Get the start index of the page that is currently in view\n */\n getStartItemIndexInView: () => number;\n\n /**\n * Use to programatically resize and/or reorder columns in the DetailsList.\n * @param column - column to resize/reorder.\n * @param options - includes width which is desired width in pixels the column should be resized\n * to and newColumnIndex which is desired index position where the column should be moved to.\n */\n updateColumn: (column: IColumn, options: { width?: number; newColumnIndex?: number }) => void;\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IDetailsListProps extends IBaseProps, IWithViewportProps {\n /** Theme provided by a higher-order component. */\n theme?: ITheme;\n\n /** Custom overrides to the themed or default styles. */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Callback to access the IDetailsList interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /** A key that uniquely identifies the given items. If provided, the selection will be reset when the key changes. */\n setKey?: string;\n\n /** The items to render. */\n items: any[];\n\n /** Set this to true to indicate that the items being displayed are placeholder data. */\n isPlaceholderData?: boolean;\n\n /** Properties to pass through to the List components being rendered. */\n listProps?: IListProps;\n\n /** Default index to set focus to once the items have rendered and the index exists. */\n initialFocusedIndex?: number;\n\n /** Class name to add to the root element. */\n className?: string;\n\n /** Grouping instructions. */\n groups?: IGroup[];\n\n /** Override properties to render groups. */\n groupProps?: IDetailsGroupRenderProps;\n\n /** Override for the indent width used for group nesting. */\n indentWidth?: number;\n\n /** Selection model to track selection state. */\n selection?: ISelection;\n\n /** Controls how/if the details list manages selection. Options include none, single, multiple */\n selectionMode?: SelectionMode;\n\n /**\n * By default, selection is cleared when clicking on an empty (non-focusable) section of the screen.\n * Setting this value to true overrides that behavior and maintains selection.\n * @defaultvalue false\n **/\n selectionPreservedOnEmptyClick?: boolean;\n\n /**\n * Additional props to pass through to the SelectionZone created by default.\n */\n selectionZoneProps?: Partial;\n\n /** Controls how the columns are adjusted. */\n layoutMode?: DetailsListLayoutMode;\n\n /**\n * Controls the visibility of selection check box.\n * @defaultvalue CheckboxVisibility.onHover\n */\n checkboxVisibility?: CheckboxVisibility;\n\n /**\n * Controls the visibility of the header.\n * @defaultvalue true\n */\n isHeaderVisible?: boolean;\n\n /** Column definitions. If none are provided, default columns will be created based on the items' properties. */\n columns?: IColumn[];\n\n /** Controls how the list constrains overflow. */\n constrainMode?: ConstrainMode;\n\n /** Event names and corresponding callbacks that will be registered to rendered row elements. */\n rowElementEventMap?: { eventName: string; callback: (context: IDragDropContext, event?: any) => void }[];\n\n /** Callback for when the list has been updated. Useful for telemetry tracking externally. */\n onDidUpdate?: (detailsList?: DetailsListBase) => void;\n\n /**\n * Callback for when a given row has been mounted. Useful for identifying when a row has been rendered on the page.\n */\n onRowDidMount?: (item?: any, index?: number) => void;\n\n /**\n * Callback for when a given row has been unmounted.\n * Useful for identifying when a row has been removed from the page.\n */\n onRowWillUnmount?: (item?: any, index?: number) => void;\n\n /** Callback for when the user clicks on the column header. */\n onColumnHeaderClick?: (ev?: React.MouseEvent, column?: IColumn) => void;\n\n /** Callback for when the user asks for a contextual menu (usually via right click) from a column header. */\n onColumnHeaderContextMenu?: (column?: IColumn, ev?: React.MouseEvent) => void;\n\n /** Callback fired on column resize */\n onColumnResize?: (column?: IColumn, newWidth?: number, columnIndex?: number) => void;\n\n /** Callback for when a given row has been invoked (by pressing enter while it is selected.) */\n onItemInvoked?: (item?: any, index?: number, ev?: Event) => void;\n\n /**\n * Callback for when the context menu of an item has been accessed.\n * If undefined or false is returned, `ev.preventDefault()` will be called.\n */\n onItemContextMenu?: (item?: any, index?: number, ev?: Event) => void | boolean;\n\n /**\n * Callback to override the default row rendering.\n */\n onRenderRow?: IRenderFunction;\n\n /**\n * If provided, will be the \"default\" item column renderer method.\n * This affects cells within the rows, not the rows themselves.\n * If a column definition provides its own `onRender` method, that will be used instead of this.\n */\n onRenderItemColumn?: (item?: any, index?: number, column?: IColumn) => React.ReactNode;\n\n /**\n * Render function which is composed around rendering every cell.\n */\n onRenderField?: IRenderFunction;\n\n /**\n * If provided, will be the \"default\" item column cell value return.\n * A column's `getValueKey` can override `getCellValueKey`.\n */\n getCellValueKey?: (item?: any, index?: number, column?: IColumn) => string;\n\n /** Map of callback functions related to row drag and drop functionality. */\n dragDropEvents?: IDragDropEvents;\n\n /** Callback for what to render when the item is missing. */\n onRenderMissingItem?: (index?: number, rowProps?: IDetailsRowProps) => React.ReactNode;\n\n /** An override to render the details header. */\n onRenderDetailsHeader?: IRenderFunction;\n\n /** An override to render the details footer. */\n onRenderDetailsFooter?: IRenderFunction;\n\n /** If provided, can be used to render a custom checkbox. */\n onRenderCheckbox?: IRenderFunction;\n\n /** Viewport info, provided by the `withViewport` decorator. */\n viewport?: IViewport;\n\n /**\n * Callback for when an item in the list becomes active by clicking anywhere inside the row or navigating to it\n * with the keyboard.\n */\n onActiveItemChanged?: (item?: any, index?: number, ev?: React.FocusEvent) => void;\n\n /** Accessible label for the list header. */\n ariaLabelForListHeader?: string;\n\n /** Accessible label for the select all checkbox. */\n ariaLabelForSelectAllCheckbox?: string;\n\n /** Accessible label for the name of the selection column. */\n ariaLabelForSelectionColumn?: string;\n\n /** Callback to get the aria-label string for a given item. */\n getRowAriaLabel?: (item: any) => string;\n\n /** Callback to get the aria-describedby IDs (space-separated strings) of elements that describe the item. */\n getRowAriaDescribedBy?: (item: any) => string;\n\n /**\n * Callback to get the item key, to be used in the selection and on render.\n * Must be provided if sorting or filtering is enabled.\n */\n getKey?: (item: any, index?: number) => string;\n\n /**\n * Accessible label describing or summarizing the list.\n * @deprecated use `ariaLabelForGrid`\n */\n ariaLabel?: string;\n\n /** Accessible label for the row check button, e.g. \"select row\". */\n checkButtonAriaLabel?: string;\n\n /** Accessible label for the group header check button, e.g. \"select section\". */\n checkButtonGroupAriaLabel?: string;\n\n /** Accessible label for the grid within the list. */\n ariaLabelForGrid?: string;\n\n /** An optional margin for proportional columns, to e.g. account for scrollbars when laying out width. */\n flexMargin?: number;\n\n /**\n * Whether the role `application` should be applied to the list.\n * @defaultvalue false\n * @deprecated using the application role in this case is an antipattern, and heavily discouraged.\n */\n shouldApplyApplicationRole?: boolean;\n\n /**\n * The minimum mouse move distance to interpret the action as drag event.\n * @defaultvalue 5\n */\n minimumPixelsForDrag?: number;\n\n /**\n * Whether to render in compact mode.\n * @defaultvalue false\n */\n compact?: boolean;\n\n /**\n * Whether to enable render page caching. This is an experimental performance optimization that is off by default.\n * @defaultvalue false\n */\n usePageCache?: boolean;\n\n /**\n * Callback to determine whether the list should be rendered in full, or virtualized.\n *\n * Virtualization will add and remove pages of items as the user scrolls them into the visible range.\n * This benefits larger list scenarios by reducing the DOM on the screen, but can negatively affect performance\n * for smaller lists.\n *\n * The default implementation will virtualize when this callback is not provided.\n */\n onShouldVirtualize?: (props: IListProps) => boolean;\n\n /** Class name to add to the cell of a checkbox. */\n checkboxCellClassName?: string;\n\n /** Whether the selection zone should enter modal state on touch. */\n enterModalSelectionOnTouch?: boolean;\n\n /** Options for column reordering using drag and drop. */\n columnReorderOptions?: IColumnReorderOptions;\n\n /** Callback to override default group height calculation used by list virtualization. */\n getGroupHeight?: IGroupedListProps['getGroupHeight'];\n\n /**\n * Whether to re-render a row only when props changed. Might cause regression when depending on external updates.\n * @defaultvalue false\n */\n useReducedRowRenderer?: boolean;\n\n /**\n * Props impacting the render style of cells. Since these have an impact on calculated column widths, they are\n * handled separately from normal theme styling, but they are passed to the styling system.\n */\n cellStyleProps?: ICellStyleProps;\n\n /** Whether to disable the built-in SelectionZone, so the host component can provide its own. */\n disableSelectionZone?: boolean;\n\n /**\n * Determines if an item is selected on focus.\n *\n * @defaultvalue true\n */\n isSelectedOnFocus?: boolean;\n\n /** Whether to animate updates */\n enableUpdateAnimations?: boolean;\n\n /**\n * Whether to use fast icon and check components. The icons can't be targeted by customization\n * but are still customizable via class names.\n * @defaultvalue true\n */\n useFastIcons?: boolean;\n\n /** Role for the list. */\n role?: string;\n\n /**\n * Properties to pass through to the FocusZone.\n */\n focusZoneProps?: IFocusZoneProps;\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IColumn {\n /** A unique key for identifying the column. */\n key: string;\n\n /** Name to render on the column header. */\n name: string;\n\n /**\n * The field to pull the text value from for the column.\n * Can be unset if a custom `onRender` method is provided.\n */\n fieldName?: string;\n\n /**\n * If specified, the width of the column is a portion of the available space equal to this value divided by the sum\n * of all proportional column widths in the list. For example, if there is a list with two proportional columns that\n * have widths of 1 and 3, they will respectively occupy (1/4) = 25% and (3/4) = 75% of the remaining space. Note that\n * this relies on viewport measures and will not work well with skipViewportMeasures.\n */\n flexGrow?: number;\n\n /** Class name to apply to the column cell within each row. */\n className?: string;\n\n /** Custom overrides to the themed or default styles. */\n styles?: IStyleFunctionOrObject;\n\n /** Minimum width for the column. */\n minWidth: number;\n\n /**\n * If specified, the width of the column is a portion of the available space equal to this value divided by the sum\n * of all proportional column widths in the list. For example, if there is a list with two proportional columns that\n * have widths of 1 and 3, they will respectively occupy (1/4) = 25% and (2/4) = 75% of the remaining space. Note that\n * this relies on viewport measures and will not work well with skipViewportMeasures.\n */\n targetWidthProportion?: number;\n\n /**\n * Accessible label for the column. The column name will still be used as the primary label,\n * but this text (if specified) will be used as the column description.\n * WARNING: grid column descriptions are often ignored by screen readers, so any necessary information\n * should go directly in the column content\n */\n ariaLabel?: string;\n\n /** Whether the column is a header for the given row. There should be only one column with this set to true. */\n isRowHeader?: boolean;\n\n /** Maximum width for the column, if stretching is allowed in justified scenarios. */\n maxWidth?: number;\n\n /**\n * Defines how the column's header should render.\n * @defaultvalue ColumnActionsMode.clickable\n */\n columnActionsMode?: ColumnActionsMode;\n\n /** Custom icon to use in the column header. */\n iconName?: string;\n\n /**\n * Whether only the icon should be displayed in the column header.\n * If true, the column name and dropdown chevron will not be displayed.\n */\n isIconOnly?: boolean;\n\n /** Class name for the icon within the header. */\n iconClassName?: string;\n\n /**\n * If true, allow the column to be collapsed when rendered in justified layout.\n * @deprecated Use `isCollapsible`\n */\n isCollapsable?: boolean;\n\n /** If true, allow the column to be collapsed when rendered in justified layout. */\n isCollapsible?: boolean;\n\n /** If true, column header will render an icon indicating column is sortable while unsorted */\n showSortIconWhenUnsorted?: boolean;\n\n /** Determines if the column is currently sorted. Renders a sort arrow in the column header. */\n isSorted?: boolean;\n\n /** Determines if the sort arrow is pointed down (descending) or up. */\n isSortedDescending?: boolean;\n\n /** Determines if the column can be resized. */\n isResizable?: boolean;\n\n /** Determines if the column can render multi-line text. */\n isMultiline?: boolean;\n\n /** Custom renderer for cell content, instead of the default text rendering. */\n onRender?: (item?: any, index?: number, column?: IColumn) => any;\n\n /** Custom override for the parent list's `getCellValueKey`. */\n getValueKey?: (item?: any, index?: number, column?: IColumn) => string;\n\n onRenderField?: IRenderFunction;\n\n /** Custom renderer for column header divider. */\n onRenderDivider?: IRenderFunction;\n\n /** Custom renderer for filter icon. */\n onRenderFilterIcon?: IRenderFunction;\n\n /** Custom renderer for column header content, instead of the default text rendering. */\n onRenderHeader?: IRenderFunction;\n\n /** Whether the list is filtered by this column. If true, shows a filter icon next to this column's name. */\n isFiltered?: boolean;\n\n /** Callback for when the user clicks on the column header. */\n onColumnClick?: (ev: React.MouseEvent, column: IColumn) => void;\n\n /** Callback for when the user opens the column header context menu. */\n onColumnContextMenu?: (column?: IColumn, ev?: React.MouseEvent) => void;\n\n /** Callback for when the user performs a keyboard action on the column header */\n onColumnKeyDown?: (ev: React.KeyboardEvent, column: IColumn) => void;\n\n /**\n * Callback for when the column is resized (`width` is the current width).\n *\n * Prefer this over `DetailsList`'s `onColumnResize` if you require the `IColumn` to report its width\n * after every resize event. Consider debouncing the callback if resize events occur frequently.\n */\n onColumnResize?: (width?: number) => void;\n\n /** Whether the list is grouped by this column. If true, shows a grouped icon next to this column's name. */\n isGrouped?: boolean;\n\n /** Arbitrary data passthrough which can be used by the caller. */\n data?: any;\n\n /** Internal only value. */\n calculatedWidth?: number;\n\n /**\n * Internal only value.\n * Remembers the actual width of the column in any case.\n * `calculatedWidth` is only saved when it's defined by user, not for justified calculations.\n */\n currentWidth?: number;\n\n /** Class name to apply to the column header cell. */\n headerClassName?: string;\n\n /** If true, add additional LTR padding-right to column and cells. */\n isPadded?: boolean;\n\n /**\n * Accessible label for indicating that the list is sorted by this column in ascending order.\n * This will be read after the main column header label.\n */\n sortAscendingAriaLabel?: string;\n\n /**\n * Accessible label for indicating that the list is sorted by this column in descending order.\n * This will be read after the main column header label.\n */\n sortDescendingAriaLabel?: string;\n\n /**\n * Accessible label for indicating that the list could be sorted by this column but isn't currently.\n * This will be read after the main column header label.\n */\n sortableAriaLabel?: string;\n\n /** Accessible label for the status of this column when grouped. */\n groupAriaLabel?: string;\n\n /** Accessible label for the status of this column when filtered. */\n filterAriaLabel?: string;\n\n /** Whether a dropdown menu is open so that the appropriate ARIA attributes are rendered. */\n isMenuOpen?: boolean;\n}\n\n/**\n * Enum to describe how a particular column header behaves.\n * This is used to to specify the property `IColumn.columnActionsMode`.\n * If `IColumn.columnActionsMode` is undefined, it's equivalent to `ColumnActionsMode.clickable`.\n * {@docCategory DetailsList}\n */\nexport enum ColumnActionsMode {\n /** Renders the column header as disabled. */\n disabled = 0,\n\n /** Renders the column header as clickable. Default value. */\n clickable = 1,\n\n /** Renders the column header as clickable and displays the dropdown chevron. */\n hasDropdown = 2,\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport enum ConstrainMode {\n /** Lets the content grow which allows the page to manage scrolling. */\n unconstrained = 0,\n\n /** Constrains the list to the given layout space. */\n horizontalConstrained = 1,\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IColumnReorderOptions {\n /**\n * Specifies the number fixed columns from left\n * @defaultvalue 0\n */\n frozenColumnCountFromStart?: number;\n\n /**\n * Specifies the number fixed columns from right\n * @defaultvalue 0\n */\n frozenColumnCountFromEnd?: number;\n\n /**\n * Callback to handle when dragging on this column's DetailsHeader has started.\n */\n onColumnDragStart?: (dragStarted: boolean) => void;\n\n /**\n * Callback to handle column reordering.\n * `draggedIndex` is the source column index, which should be placed at `targetIndex`.\n * @deprecated Use `onColumnDrop` instead.\n */\n handleColumnReorder?: (draggedIndex: number, targetIndex: number) => void;\n\n /**\n * Callback to handle column reordering.\n * `draggedIndex` is the source column index, which should be placed at `targetIndex`.\n */\n onColumnDrop?: (dragDropDetails: IColumnDragDropDetails) => void;\n\n /**\n * Callback to handle when dragging on this column's DetailsHeader has finished.\n */\n onDragEnd?: (columnDropLocationDetails: ColumnDragEndLocation) => void;\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IColumnDragDropDetails {\n /**\n * Specifies the source column index\n * @defaultvalue -1\n */\n draggedIndex: number;\n\n /**\n * Specifies the target column index\n * @defaultvalue -1\n */\n targetIndex: number;\n}\n\n/**\n * Enum to describe where the column has been dropped, after starting the drag\n * {@docCategory DetailsList}\n */\nexport enum ColumnDragEndLocation {\n /** Drag ended outside of current list */\n outside = 0,\n\n /** Drag ended within current list */\n surface = 1,\n\n /** Drag ended on header */\n header = 2,\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport enum DetailsListLayoutMode {\n /**\n * Lets the user resize columns and makes not attempt to fit them.\n */\n fixedColumns = 0,\n\n /**\n * Manages which columns are visible, tries to size them according to their min/max rules and drops\n * off columns that can't fit and have isCollapsible set.\n */\n justified = 1,\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport enum CheckboxVisibility {\n /** Visible on hover. */\n onHover = 0,\n\n /** Visible always. */\n always = 1,\n\n /** Hide checkboxes. */\n hidden = 2,\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport type IDetailsListStyleProps = Required> &\n Pick & {\n /** Whether the list is horizontally constrained */\n isHorizontalConstrained?: boolean;\n\n /** Whether the list is in compact mode */\n compact?: boolean;\n\n /** Whether the list is fixed in size */\n isFixed?: boolean;\n };\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IDetailsListStyles {\n root: IStyle;\n focusZone: IStyle;\n headerWrapper: IStyle;\n contentWrapper: IStyle;\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IDetailsGroupRenderProps extends IGroupRenderProps {\n onRenderFooter?: IRenderFunction;\n onRenderHeader?: IRenderFunction;\n groupedListAs?: IComponentAs;\n}\n\n/**\n * {@docCategory DetailsList}\n */\nexport interface IDetailsGroupDividerProps extends IGroupDividerProps, IDetailsItemProps {}\n\nexport interface IDetailsListCheckboxProps extends IDetailsCheckboxProps {}\n\nexport type {\n IDetailsHeaderProps,\n IDetailsRowBaseProps,\n IDetailsHeaderBaseProps,\n IDetailsFooterBaseProps,\n IDragDropContext,\n IDragDropEvents,\n IDragDropHelper,\n IDragDropOptions,\n IViewport,\n IWithViewportProps,\n};\n","import * as React from 'react';\nimport { classNamesFunction, css, warnDeprecations, initializeComponentRef } from '../../Utilities';\nimport { DialogType } from './DialogContent.types';\nimport { IconButton } from '../../Button';\nimport { DialogFooter } from './DialogFooter';\nimport { withResponsiveMode } from '../../ResponsiveMode';\nimport type { IDialogContentProps, IDialogContentStyleProps, IDialogContentStyles } from './DialogContent.types';\nimport type { IDialogFooterProps } from './DialogFooter.types';\n\nconst getClassNames = classNamesFunction();\n\nconst DialogFooterType = (() as React.ReactElement).type;\n\nconst COMPONENT_NAME = 'DialogContent';\n\n// eslint-disable-next-line @typescript-eslint/no-deprecated\n@withResponsiveMode\nexport class DialogContentBase extends React.Component {\n public static defaultProps: IDialogContentProps = {\n showCloseButton: false,\n className: '',\n topButtonsProps: [],\n closeButtonAriaLabel: 'Close',\n };\n\n constructor(props: IDialogContentProps) {\n super(props);\n\n initializeComponentRef(this);\n warnDeprecations(COMPONENT_NAME, props, {\n titleId: 'titleProps.id',\n });\n }\n\n public render(): JSX.Element {\n const {\n showCloseButton,\n className,\n closeButtonAriaLabel,\n onDismiss,\n subTextId,\n subText,\n titleProps = {},\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n titleId,\n title,\n type,\n styles,\n theme,\n draggableHeaderClassName,\n } = this.props;\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n isLargeHeader: type === DialogType.largeHeader,\n isClose: type === DialogType.close,\n draggableHeaderClassName,\n });\n\n const groupings = this._groupChildren();\n let subTextContent;\n if (subText) {\n subTextContent = (\n

    \n {subText}\n

    \n );\n }\n\n return (\n
    \n
    \n \n {title}\n
    \n
    \n {this.props.topButtonsProps!.map((props, index) => (\n \n ))}\n {(type === DialogType.close || (showCloseButton && type !== DialogType.largeHeader)) && (\n \n )}\n
    \n
    \n
    \n
    \n {subTextContent}\n {groupings.contents}\n
    \n {groupings.footers}\n
    \n \n );\n }\n\n // @TODO - typing the footers as an array of DialogFooter is difficult because\n // casing \"child as DialogFooter\" causes a problem because\n // \"Neither type 'ReactElement' nor type 'DialogFooter' is assignable to the other.\"\n private _groupChildren(): { footers: any[]; contents: any[] } {\n const groupings: { footers: any[]; contents: any[] } = {\n footers: [],\n contents: [],\n };\n\n React.Children.map(this.props.children, child => {\n if (typeof child === 'object' && child !== null && (child as any).type === DialogFooterType) {\n groupings.footers.push(child);\n } else {\n groupings.contents.push(child);\n }\n });\n\n return groupings;\n }\n}\n","import {\n FontWeights,\n getGlobalClassNames,\n IconFontSizes,\n ScreenWidthMinSmall,\n ScreenWidthMaxSmall,\n} from '../../Styling';\nimport type { IDialogContentStyleProps, IDialogContentStyles } from './DialogContent.types';\n\nconst GlobalClassNames = {\n contentLgHeader: 'ms-Dialog-lgHeader',\n close: 'ms-Dialog--close',\n subText: 'ms-Dialog-subText',\n header: 'ms-Dialog-header',\n headerLg: 'ms-Dialog--lgHeader',\n button: 'ms-Dialog-button ms-Dialog-button--close',\n inner: 'ms-Dialog-inner',\n content: 'ms-Dialog-content',\n title: 'ms-Dialog-title',\n};\n\nexport const getStyles = (props: IDialogContentStyleProps): IDialogContentStyles => {\n const { className, theme, isLargeHeader, isClose, hidden, isMultiline, draggableHeaderClassName } = props;\n\n const { palette, fonts, effects, semanticColors } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n content: [\n isLargeHeader && [\n classNames.contentLgHeader,\n {\n borderTop: `4px solid ${palette.themePrimary}`,\n },\n ],\n isClose && classNames.close,\n {\n flexGrow: 1,\n overflowY: 'hidden', // required for allowScrollOnElement\n },\n className,\n ],\n\n subText: [\n classNames.subText,\n fonts.medium,\n {\n margin: '0 0 24px 0',\n color: semanticColors.bodySubtext,\n lineHeight: '1.5',\n wordWrap: 'break-word',\n fontWeight: FontWeights.regular,\n },\n ],\n\n header: [\n classNames.header,\n {\n position: 'relative',\n width: '100%',\n boxSizing: 'border-box',\n },\n isClose && classNames.close,\n draggableHeaderClassName && [\n draggableHeaderClassName,\n {\n cursor: 'move',\n },\n ],\n ],\n\n button: [\n classNames.button,\n hidden && {\n selectors: {\n '.ms-Icon.ms-Icon--Cancel': {\n color: semanticColors.buttonText,\n fontSize: IconFontSizes.medium,\n },\n },\n },\n ],\n\n inner: [\n classNames.inner,\n {\n padding: '0 24px 24px',\n selectors: {\n [`@media (min-width: ${ScreenWidthMinSmall}px) and (max-width: ${ScreenWidthMaxSmall}px)`]: {\n padding: '0 16px 16px',\n },\n },\n },\n ],\n\n innerContent: [\n classNames.content,\n {\n position: 'relative',\n width: '100%',\n },\n ],\n\n title: [\n classNames.title,\n fonts.xLarge,\n {\n color: semanticColors.bodyText,\n margin: '0',\n minHeight: fonts.xLarge.fontSize,\n padding: '16px 46px 20px 24px',\n lineHeight: 'normal',\n selectors: {\n [`@media (min-width: ${ScreenWidthMinSmall}px) and (max-width: ${ScreenWidthMaxSmall}px)`]: {\n padding: '16px 46px 16px 16px',\n },\n },\n },\n isLargeHeader && {\n color: semanticColors.menuHeader,\n },\n isMultiline && { fontSize: fonts.xxLarge.fontSize },\n ],\n\n topButton: [\n {\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'nowrap',\n position: 'absolute',\n top: '0',\n right: '0',\n padding: '15px 15px 0 0',\n selectors: {\n '> *': {\n flex: '0 0 auto',\n },\n '.ms-Dialog-button': {\n color: semanticColors.buttonText,\n },\n '.ms-Dialog-button:hover': {\n color: semanticColors.buttonTextHovered,\n borderRadius: effects.roundedCorner2,\n },\n [`@media (min-width: ${ScreenWidthMinSmall}px) and (max-width: ${ScreenWidthMaxSmall}px)`]: {\n padding: '15px 8px 0 0',\n },\n },\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DialogContentBase } from './DialogContent.base';\nimport { getStyles } from './DialogContent.styles';\nimport type { IDialogContentProps, IDialogContentStyleProps, IDialogContentStyles } from './DialogContent.types';\n\nexport const DialogContent: React.FunctionComponent = styled<\n IDialogContentProps,\n IDialogContentStyleProps,\n IDialogContentStyles\n>(DialogContentBase, getStyles, undefined, { scope: 'DialogContent' });\n\nDialogContent.displayName = 'DialogContent';\n","import * as React from 'react';\nimport { warnDeprecations, classNamesFunction, getId } from '../../Utilities';\nimport { DialogType } from './DialogContent.types';\nimport { Modal } from '../../Modal';\nimport { withResponsiveMode } from '../../ResponsiveMode';\n\nconst getClassNames = classNamesFunction();\n\nimport { DialogContent } from './DialogContent';\nimport type { IDialogProps, IDialogStyleProps, IDialogStyles } from './Dialog.types';\nimport type { IDialogContentProps } from './DialogContent.types';\nimport type { IModalProps } from '../../Modal';\nimport type { ILayerProps } from '../../Layer';\n\nconst DefaultModalProps: IModalProps = {\n isDarkOverlay: false,\n isBlocking: false,\n className: '',\n containerClassName: '',\n topOffsetFixed: false,\n enableAriaHiddenSiblings: true,\n};\n\nconst DefaultDialogContentProps: IDialogContentProps = {\n type: DialogType.normal,\n className: '',\n topButtonsProps: [],\n};\n\n// eslint-disable-next-line @typescript-eslint/no-deprecated\n@withResponsiveMode\nexport class DialogBase extends React.Component {\n public static defaultProps: IDialogProps = {\n hidden: true,\n };\n\n private _id: string;\n private _defaultTitleTextId: string;\n private _defaultSubTextId: string;\n\n constructor(props: IDialogProps) {\n super(props);\n\n this._id = getId('Dialog');\n this._defaultTitleTextId = this._id + '-title';\n this._defaultSubTextId = this._id + '-subText';\n\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecations('Dialog', props, {\n isOpen: 'hidden',\n type: 'dialogContentProps.type',\n subText: 'dialogContentProps.subText',\n contentClassName: 'dialogContentProps.className',\n topButtonsProps: 'dialogContentProps.topButtonsProps',\n className: 'modalProps.className',\n isDarkOverlay: 'modalProps.isDarkOverlay',\n isBlocking: 'modalProps.isBlocking',\n containerClassName: 'modalProps.containerClassName',\n onDismissed: 'modalProps.onDismissed',\n onLayerDidMount: 'modalProps.layerProps.onLayerDidMount',\n ariaDescribedById: 'modalProps.subtitleAriaId',\n ariaLabelledById: 'modalProps.titleAriaId',\n });\n }\n }\n\n public render(): JSX.Element {\n const props = this.props;\n const {\n /* eslint-disable @typescript-eslint/no-deprecated */\n className,\n containerClassName,\n contentClassName,\n elementToFocusOnDismiss,\n firstFocusableSelector,\n forceFocusInsideTrap,\n styles,\n hidden,\n disableRestoreFocus = props.ignoreExternalFocusing,\n isBlocking,\n isClickableOutsideFocusTrap,\n isDarkOverlay,\n isOpen = !hidden,\n onDismiss,\n onDismissed,\n onLayerDidMount,\n responsiveMode,\n subText,\n theme,\n title,\n topButtonsProps,\n type,\n /* eslint-enable @typescript-eslint/no-deprecated */\n minWidth,\n maxWidth,\n modalProps,\n } = props;\n\n const mergedLayerProps: ILayerProps = {\n onLayerDidMount,\n ...modalProps?.layerProps,\n };\n\n let dialogDraggableClassName: string | undefined;\n let dragOptions: IModalProps['dragOptions'];\n\n // If dragOptions are provided, but no drag handle is specified, we supply a drag handle,\n // and inform dialog contents to add class to draggable class to the header\n if (modalProps?.dragOptions && !modalProps.dragOptions?.dragHandleSelector) {\n // spread options to avoid mutating props\n dragOptions = { ...modalProps.dragOptions };\n dialogDraggableClassName = 'ms-Dialog-draggable-header';\n dragOptions.dragHandleSelector = `.${dialogDraggableClassName}`;\n }\n\n const mergedModalProps: IModalProps = {\n ...DefaultModalProps,\n elementToFocusOnDismiss,\n firstFocusableSelector,\n forceFocusInsideTrap,\n disableRestoreFocus,\n isClickableOutsideFocusTrap,\n responsiveMode,\n className,\n containerClassName,\n isBlocking,\n isDarkOverlay,\n onDismissed,\n ...modalProps,\n dragOptions,\n layerProps: mergedLayerProps,\n isOpen,\n };\n\n const dialogContentProps: IDialogContentProps = {\n className: contentClassName,\n subText,\n title,\n topButtonsProps,\n type,\n ...DefaultDialogContentProps,\n ...props.dialogContentProps,\n draggableHeaderClassName: dialogDraggableClassName,\n titleProps: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n id: props.dialogContentProps?.titleId || this._defaultTitleTextId,\n ...props.dialogContentProps?.titleProps,\n },\n };\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className: mergedModalProps.className,\n containerClassName: mergedModalProps.containerClassName,\n hidden,\n dialogDefaultMinWidth: minWidth,\n dialogDefaultMaxWidth: maxWidth,\n });\n\n return (\n \n \n {props.children}\n \n \n );\n }\n\n private _getSubTextId = (): string | undefined => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { ariaDescribedById, modalProps, dialogContentProps, subText } = this.props;\n let id = (modalProps && modalProps.subtitleAriaId) || ariaDescribedById;\n\n if (!id) {\n id = ((dialogContentProps && dialogContentProps.subText) || subText) && this._defaultSubTextId;\n }\n\n return id;\n };\n\n private _getTitleTextId = (): string | undefined => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { ariaLabelledById, modalProps, dialogContentProps, title } = this.props;\n let id = (modalProps && modalProps.titleAriaId) || ariaLabelledById;\n\n if (!id) {\n id = ((dialogContentProps && dialogContentProps.title) || title) && this._defaultTitleTextId;\n }\n\n return id;\n };\n}\n","import { ScreenWidthMinMedium, getGlobalClassNames } from '../../Styling';\nimport type { IDialogStyleProps, IDialogStyles } from './Dialog.types';\n\nconst GlobalClassNames = {\n root: 'ms-Dialog',\n};\n\nexport const getStyles = (props: IDialogStyleProps): IDialogStyles => {\n const {\n className,\n containerClassName, // eslint-disable-line @typescript-eslint/no-deprecated\n dialogDefaultMinWidth = '288px',\n dialogDefaultMaxWidth = '340px',\n hidden,\n theme,\n } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [classNames.root, theme.fonts.medium, className],\n\n main: [\n {\n width: dialogDefaultMinWidth,\n outline: '3px solid transparent',\n\n selectors: {\n [`@media (min-width: ${ScreenWidthMinMedium}px)`]: {\n width: 'auto',\n maxWidth: dialogDefaultMaxWidth,\n minWidth: dialogDefaultMinWidth,\n },\n },\n },\n !hidden && { display: 'flex' },\n containerClassName,\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DialogBase } from './Dialog.base';\nimport { getStyles } from './Dialog.styles';\nimport type { IDialogProps, IDialogStyleProps, IDialogStyles } from './Dialog.types';\n\nexport const Dialog: React.FunctionComponent = styled(\n DialogBase,\n getStyles,\n undefined,\n { scope: 'Dialog' },\n);\nDialog.displayName = 'Dialog';\n","import * as React from 'react';\nimport { DialogContentBase } from './DialogContent.base';\nimport { ResponsiveMode } from '../../ResponsiveMode';\nimport type { IButtonProps } from '../../Button';\nimport type { IStyle, ITheme } from '../../Styling';\nimport type { IRefObject, IStyleFunctionOrObject } from '../../Utilities';\n\n/**\n * {@docCategory Dialog}\n */\nexport interface IDialogContent {}\n\n/**\n * {@docCategory Dialog}\n */\nexport interface IDialogContentProps extends React.ClassAttributes {\n children?: React.ReactNode;\n\n /**\n * Optional callback to access the IDialogContent interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by HOC.\n */\n theme?: ITheme;\n\n /**\n * Is inside a multiline wrapper\n */\n isMultiline?: boolean;\n\n /**\n * Show an 'x' close button in the upper-right corner\n */\n showCloseButton?: boolean;\n\n /**\n * Other top buttons that will show up next to the close button\n */\n topButtonsProps?: IButtonProps[];\n\n /**\n * Optional override class name\n */\n className?: string;\n\n /**\n * Callback for when the Dialog is dismissed from the close button or light dismiss, before the animation completes.\n */\n onDismiss?: (ev?: React.MouseEvent) => any;\n\n /**\n * The Id for subText container\n */\n subTextId?: string;\n\n /**\n * The subtext to display in the dialog\n */\n subText?: string;\n\n /**\n * The Id for title container\n *\n * @deprecated use the `id` attribute in `titleProps` instead.\n */\n titleId?: string;\n\n /**\n * The title text to display at the top of the dialog.\n */\n title?: string | JSX.Element;\n\n /**\n * The props for title container.\n */\n titleProps?: React.HTMLAttributes;\n\n /**\n * Responsive mode passed in from decorator.\n */\n responsiveMode?: ResponsiveMode;\n\n /**\n * Label to be passed to to aria-label of close button\n * @defaultvalue Close\n */\n closeButtonAriaLabel?: string;\n\n /**\n * The type of Dialog to display.\n * @defaultvalue DialogType.normal\n */\n type?: DialogType;\n\n /**\n * The classname for when the header is draggable\n */\n draggableHeaderClassName?: string;\n}\n\n/**\n * {@docCategory Dialog}\n */\nexport enum DialogType {\n /** Standard dialog */\n normal = 0,\n /** Dialog with large header banner */\n largeHeader = 1,\n /** Dialog with an 'x' close button in the upper-right corner */\n close = 2,\n}\n\n/**\n * {@docCategory Dialog}\n */\nexport interface IDialogContentStyleProps {\n /**\n * Accept theme prop.\n */\n theme: ITheme;\n\n /**\n * Accept custom classNames\n */\n className?: string;\n\n isLargeHeader?: boolean;\n isClose?: boolean;\n hidden?: boolean;\n\n /**\n * Is inside a multiline wrapper\n */\n isMultiline?: boolean;\n\n /**\n * The classname for when the header is draggable\n */\n draggableHeaderClassName?: string;\n}\n\n/**\n * {@docCategory Dialog}\n */\nexport interface IDialogContentStyles {\n /**\n * Style for the content element.\n */\n content: IStyle;\n subText: IStyle;\n header: IStyle;\n button: IStyle;\n inner: IStyle;\n innerContent: IStyle;\n title: IStyle;\n topButton: IStyle;\n}\n","import * as React from 'react';\nimport { classNamesFunction, initializeComponentRef } from '../../Utilities';\nimport type { IDialogFooterProps, IDialogFooterStyleProps, IDialogFooterStyles } from './DialogFooter.types';\nimport type { IProcessedStyleSet } from '../../Styling';\n\nconst getClassNames = classNamesFunction();\n\nexport class DialogFooterBase extends React.Component {\n private _classNames: IProcessedStyleSet;\n\n constructor(props: IDialogFooterProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render(): JSX.Element {\n const { className, styles, theme } = this.props;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n\n return (\n
    \n
    {this._renderChildrenAsActions()}
    \n
    \n );\n }\n\n private _renderChildrenAsActions(): (JSX.Element | null)[] | null | undefined {\n return React.Children.map(this.props.children, child =>\n child ? {child} : null,\n );\n }\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IDialogFooterStyleProps, IDialogFooterStyles } from './DialogFooter.types';\n\nconst GlobalClassNames = {\n actions: 'ms-Dialog-actions',\n action: 'ms-Dialog-action',\n actionsRight: 'ms-Dialog-actionsRight',\n};\n\nexport const getStyles = (props: IDialogFooterStyleProps): IDialogFooterStyles => {\n const { className, theme } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n actions: [\n classNames.actions,\n {\n position: 'relative',\n width: '100%',\n minHeight: '24px',\n lineHeight: '24px',\n margin: '16px 0 0',\n fontSize: '0',\n\n selectors: {\n '.ms-Button': {\n lineHeight: 'normal',\n verticalAlign: 'middle',\n },\n },\n },\n className,\n ],\n\n action: [\n classNames.action,\n {\n margin: '0 4px',\n },\n ],\n\n actionsRight: [\n classNames.actionsRight,\n {\n alignItems: 'center',\n display: 'flex',\n fontSize: '0',\n justifyContent: 'flex-end',\n marginRight: '-4px',\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DialogFooterBase } from './DialogFooter.base';\nimport { getStyles } from './DialogFooter.styles';\nimport type { IDialogFooterProps, IDialogFooterStyleProps, IDialogFooterStyles } from './DialogFooter.types';\n\nexport const DialogFooter: React.FunctionComponent = styled<\n IDialogFooterProps,\n IDialogFooterStyleProps,\n IDialogFooterStyles\n>(DialogFooterBase, getStyles, undefined, { scope: 'DialogFooter' });\n\nDialogFooter.displayName = 'DialogFooter';\n","import type { IVerticalDividerPropsStyles, IVerticalDividerStyles } from './VerticalDivider.types';\nimport type { IStyleFunction } from '../../Utilities';\n\nexport const getStyles: IStyleFunction = (\n props: IVerticalDividerPropsStyles,\n): IVerticalDividerStyles => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { theme, getClassNames, className } = props;\n\n if (!theme) {\n throw new Error('Theme is undefined or null.');\n }\n\n if (getClassNames) {\n const names = getClassNames(theme);\n return {\n wrapper: [names.wrapper],\n divider: [names.divider],\n };\n }\n\n return {\n wrapper: [\n {\n display: 'inline-flex',\n height: '100%',\n alignItems: 'center',\n },\n className,\n ],\n divider: [\n {\n width: 1,\n height: '100%',\n backgroundColor: theme.palette.neutralTertiaryAlt,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { classNamesFunction } from '../../Utilities';\nimport type {\n IVerticalDividerProps,\n IVerticalDividerPropsStyles,\n IVerticalDividerStyles,\n} from './VerticalDivider.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const VerticalDividerBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IVerticalDividerProps\n>((props, ref) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { styles, theme, getClassNames: deprecatedGetClassNames, className } = props;\n const classNames = getClassNames(styles, { theme, getClassNames: deprecatedGetClassNames, className });\n return (\n \n \n \n );\n});\nVerticalDividerBase.displayName = 'VerticalDividerBase';\n","import * as React from 'react';\nimport { getStyles } from './VerticalDivider.styles';\nimport { VerticalDividerBase } from './VerticalDivider.base';\nimport { styled } from '../../Utilities';\nimport type {\n IVerticalDividerProps,\n IVerticalDividerStyles,\n IVerticalDividerPropsStyles,\n} from './VerticalDivider.types';\n\nexport const VerticalDivider: React.FunctionComponent = styled<\n IVerticalDividerProps,\n IVerticalDividerPropsStyles,\n IVerticalDividerStyles\n>(VerticalDividerBase, getStyles, undefined, {\n scope: 'VerticalDivider',\n});\n","import * as React from 'react';\nimport type { IStyle, ITheme } from '../../Styling';\nimport type { IBaseProps, IRefObject, IStyleFunctionOrObject } from '../../Utilities';\n\n/**\n * {@docCategory DocumentCard}\n */\nexport interface IDocumentCard {\n /**\n * Sets focus to the DocumentCard.\n */\n focus: () => void;\n}\n\n/**\n * {@docCategory DocumentCard}\n */\nexport interface IDocumentCardProps extends IBaseProps, React.HTMLAttributes {\n /**\n * Optional callback to access the IDocumentCard interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * The type of DocumentCard to display.\n * @defaultvalue DocumentCardType.normal\n */\n type?: DocumentCardType;\n\n /**\n * Function to call when the card is clicked or keyboard Enter/Space is pushed.\n */\n onClick?: (ev?: React.SyntheticEvent) => void;\n\n /**\n * A URL to navigate to when the card is clicked. If a function has also been provided,\n * it will be used instead of the URL.\n */\n onClickHref?: string;\n\n /**\n * A target browser context for opening the link. If not specified, will open in the same tab/window.\n */\n onClickTarget?: string;\n\n /**\n * Aria role assigned to the documentCard (Eg. button, link).\n * Use this to override the default assignment.\n * @defaultvalue When `onClick` is provided, default role will be 'button'.\n * When `onClickHref` is provided, default role will be 'link'.\n */\n role?: string;\n\n /**\n * Hex color value of the line below the card, which should correspond to the document type.\n * This should only be supplied when using the 'compact' card layout.\n *\n * @deprecated To be removed at \\>= v5.0.0.\n */\n accentColor?: string;\n\n /**\n * Child components to render within the card.\n */\n children?: React.ReactNode;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by HOC.\n */\n theme?: ITheme;\n\n /**\n * Optional override class name\n */\n className?: string;\n}\n\n/**\n * {@docCategory DocumentCard}\n */\nexport enum DocumentCardType {\n /**\n * Standard DocumentCard.\n */\n normal = 0,\n /**\n * Compact layout. Displays the preview beside the details, rather than above.\n */\n compact = 1,\n}\n\n/**\n * {@docCategory DocumentCard}\n */\nexport interface IDocumentCardStyleProps {\n /**\n * Accept theme prop.\n */\n theme: ITheme;\n\n /**\n * Optional override class name\n */\n className?: string;\n\n /**\n * True when the card has a click action.\n */\n actionable?: boolean;\n\n /**\n * Compact variant of the card.\n */\n compact?: boolean;\n}\n\n/**\n * {@docCategory DocumentCard}\n */\nexport interface IDocumentCardStyles {\n root: IStyle;\n}\n\n/**\n * {@docCategory DocumentCard}\n */\nexport interface IDocumentCardContext {\n role?: string;\n tabIndex?: number;\n}\n","import * as React from 'react';\nimport {\n classNamesFunction,\n KeyCodes,\n getNativeProps,\n divProperties,\n warnDeprecations,\n initializeComponentRef,\n} from '../../Utilities';\nimport { DocumentCardType } from './DocumentCard.types';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type {\n IDocumentCard,\n IDocumentCardContext,\n IDocumentCardProps,\n IDocumentCardStyleProps,\n IDocumentCardStyles,\n} from './DocumentCard.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getWindowEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\n\nconst COMPONENT_NAME = 'DocumentCard';\n\nexport const DocumentCardContext = React.createContext({});\n\n/**\n * {@docCategory DocumentCard}\n */\nexport class DocumentCardBase extends React.Component implements IDocumentCard {\n public static defaultProps: IDocumentCardProps = {\n type: DocumentCardType.normal,\n };\n\n public static contextType = WindowContext;\n\n private _rootElement = React.createRef();\n private _classNames: IProcessedStyleSet;\n\n constructor(props: IDocumentCardProps) {\n super(props);\n\n initializeComponentRef(this);\n warnDeprecations(COMPONENT_NAME, props, {\n accentColor: undefined,\n });\n }\n\n public render(): JSX.Element {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { onClick, onClickHref, children, type, accentColor, styles, theme, className } = this.props;\n const nativeProps = getNativeProps>(this.props, divProperties, [\n 'className',\n 'onClick',\n 'type',\n 'role',\n ]);\n const actionable = onClick || onClickHref ? true : false;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n actionable,\n compact: type === DocumentCardType.compact ? true : false,\n });\n\n // Override the border color if an accent color was provided (compact card only)\n let style;\n if (type === DocumentCardType.compact && accentColor) {\n style = {\n borderBottomColor: accentColor,\n };\n }\n\n // if this element is actionable it should have an aria role\n const role = this.props.role || (actionable ? (onClick ? 'button' : 'link') : undefined);\n const tabIndex = actionable ? 0 : undefined;\n const documentCardContextValue = { role, tabIndex };\n\n return (\n \n {children}\n \n );\n }\n\n public focus(): void {\n if (this._rootElement.current) {\n this._rootElement.current.focus();\n }\n }\n\n private _onClick = (ev: React.MouseEvent): void => {\n this._onAction(ev);\n };\n\n private _onKeyDown = (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter || ev.which === KeyCodes.space) {\n this._onAction(ev);\n }\n };\n\n private _onAction = (ev: React.SyntheticEvent): void => {\n const { onClick, onClickHref, onClickTarget } = this.props;\n\n const win = getWindowEx(this.context)!; // can only be called on the client\n\n if (onClick) {\n onClick(ev);\n } else if (!onClick && onClickHref) {\n // If no onClick Function was provided and we do have an onClickHref, redirect to the onClickHref\n if (onClickTarget) {\n win.open(onClickHref, onClickTarget, 'noreferrer noopener nofollow');\n } else {\n win.location.href = onClickHref;\n }\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n };\n}\n","import { getFocusStyle, getGlobalClassNames, HighContrastSelector } from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nimport type { IDocumentCardPreviewStyleProps, IDocumentCardPreviewStyles } from './DocumentCardPreview.types';\n\nexport const DocumentCardPreviewGlobalClassNames = {\n root: 'ms-DocumentCardPreview',\n icon: 'ms-DocumentCardPreview-icon',\n iconContainer: 'ms-DocumentCardPreview-iconContainer',\n};\n\nexport const getStyles = (props: IDocumentCardPreviewStyleProps): IDocumentCardPreviewStyles => {\n const { theme, className, isFileList } = props;\n const { palette, fonts } = theme;\n\n const classNames = getGlobalClassNames(DocumentCardPreviewGlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n fonts.small,\n {\n backgroundColor: isFileList ? palette.white : palette.neutralLighterAlt,\n borderBottom: `1px solid ${palette.neutralLight}`,\n overflow: `hidden`,\n position: 'relative',\n },\n className,\n ],\n previewIcon: [\n classNames.iconContainer,\n {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%',\n },\n ],\n icon: [\n classNames.icon,\n {\n left: '10px',\n bottom: '10px',\n position: 'absolute',\n },\n ],\n fileList: {\n padding: '16px 16px 0 16px',\n listStyleType: 'none',\n margin: 0,\n selectors: {\n li: {\n height: '16px',\n lineHeight: '16px',\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'center',\n marginBottom: '8px',\n overflow: 'hidden',\n },\n },\n },\n fileListIcon: {\n display: 'inline-block',\n flexShrink: 0,\n marginRight: '8px',\n },\n fileListLink: [\n getFocusStyle(theme, {\n highContrastStyle: {\n border: '1px solid WindowText',\n outline: 'none',\n },\n }),\n {\n boxSizing: 'border-box',\n color: palette.neutralDark,\n flexGrow: 1,\n overflow: 'hidden',\n display: 'inline-block',\n textDecoration: 'none',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n selectors: {\n ':hover': {\n color: palette.themePrimary,\n },\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: {\n selectors: {\n [HighContrastSelector]: {\n outline: 'none',\n },\n },\n },\n },\n },\n ],\n fileListOverflowText: {\n padding: '0px 16px 8px 16px',\n display: 'block',\n },\n };\n};\n","import { getGlobalClassNames, FontWeights } from '../../Styling';\nimport type { IDocumentCardActivityStyleProps, IDocumentCardActivityStyles } from './DocumentCardActivity.types';\n\nconst VERTICAL_PADDING = 8;\nconst HORIZONTAL_PADDING = 16;\nconst IMAGE_SIZE = 32;\nconst PERSONA_TEXT_GUTTER = 8;\n\nexport const DocumentCardActivityGlobalClassNames = {\n root: 'ms-DocumentCardActivity',\n multiplePeople: 'ms-DocumentCardActivity--multiplePeople',\n details: 'ms-DocumentCardActivity-details',\n name: 'ms-DocumentCardActivity-name',\n activity: 'ms-DocumentCardActivity-activity',\n avatars: 'ms-DocumentCardActivity-avatars',\n avatar: 'ms-DocumentCardActivity-avatar',\n};\n\nexport const getStyles = (props: IDocumentCardActivityStyleProps): IDocumentCardActivityStyles => {\n const { theme, className, multiplePeople } = props;\n const { palette, fonts } = theme;\n\n const classNames = getGlobalClassNames(DocumentCardActivityGlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n multiplePeople && classNames.multiplePeople,\n {\n padding: `${VERTICAL_PADDING}px ${HORIZONTAL_PADDING}px`,\n position: 'relative',\n },\n className,\n ],\n avatars: [\n classNames.avatars,\n {\n marginLeft: '-2px', // Avatars sit outside of the usual padding for visual balance\n height: '32px',\n },\n ],\n avatar: [\n classNames.avatar,\n {\n display: 'inline-block',\n verticalAlign: 'top',\n position: 'relative',\n textAlign: 'center',\n width: IMAGE_SIZE,\n height: IMAGE_SIZE,\n\n selectors: {\n '&:after': {\n content: '\" \"',\n position: 'absolute',\n left: '-1px',\n top: '-1px',\n right: '-1px',\n bottom: '-1px',\n border: `2px solid ${palette.white}`, // Match the background of the card\n borderRadius: '50%',\n },\n ':nth-of-type(2)': multiplePeople && {\n marginLeft: '-16px',\n },\n },\n },\n ],\n details: [\n classNames.details,\n {\n left: multiplePeople\n ? `${HORIZONTAL_PADDING + IMAGE_SIZE * 1.5 + PERSONA_TEXT_GUTTER}px`\n : `${HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER}px`,\n height: IMAGE_SIZE,\n position: 'absolute',\n top: VERTICAL_PADDING,\n width: `calc(100% - ${HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER + HORIZONTAL_PADDING}px)`,\n },\n ],\n name: [\n classNames.name,\n {\n display: 'block',\n fontSize: fonts.small.fontSize,\n lineHeight: '15px',\n height: '15px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n color: palette.neutralPrimary,\n fontWeight: FontWeights.semibold,\n },\n ],\n activity: [\n classNames.activity,\n {\n display: 'block',\n fontSize: fonts.small.fontSize,\n lineHeight: '15px',\n height: '15px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n color: palette.neutralSecondary,\n },\n ],\n };\n};\n","import { getGlobalClassNames, FontWeights } from '../../Styling';\nimport type { IDocumentCardLocationStyleProps, IDocumentCardLocationStyles } from './DocumentCardLocation.types';\n\nexport const DocumentCardLocationGlobalClassNames = {\n root: 'ms-DocumentCardLocation',\n};\n\nexport const getStyles = (props: IDocumentCardLocationStyleProps): IDocumentCardLocationStyles => {\n const { theme, className } = props;\n const { palette, fonts } = theme;\n\n const classNames = getGlobalClassNames(DocumentCardLocationGlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n fonts.small,\n {\n color: palette.themePrimary,\n display: 'block',\n fontWeight: FontWeights.semibold,\n overflow: 'hidden',\n padding: '8px 16px',\n position: 'relative',\n textDecoration: 'none',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n\n selectors: {\n ':hover': {\n color: palette.themePrimary,\n cursor: 'pointer',\n },\n },\n },\n className,\n ],\n };\n};\n","import { getGlobalClassNames, getInputFocusStyle } from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nimport { DocumentCardPreviewGlobalClassNames as previewClassNames } from './DocumentCardPreview.styles';\nimport { DocumentCardActivityGlobalClassNames as activityClassNames } from './DocumentCardActivity.styles';\nimport { DocumentCardTitleGlobalClassNames as titleClassNames } from './DocumentCardTitle.styles';\nimport { DocumentCardLocationGlobalClassNames as locationClassNames } from './DocumentCardLocation.styles';\nimport type { IDocumentCardStyleProps, IDocumentCardStyles } from './DocumentCard.types';\n\nconst GlobalClassNames = {\n root: 'ms-DocumentCard',\n rootActionable: 'ms-DocumentCard--actionable',\n rootCompact: 'ms-DocumentCard--compact',\n};\n\nexport const getStyles = (props: IDocumentCardStyleProps): IDocumentCardStyles => {\n const { className, theme, actionable, compact } = props;\n const { palette, fonts, effects } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n {\n WebkitFontSmoothing: 'antialiased',\n backgroundColor: palette.white,\n border: `1px solid ${palette.neutralLight}`,\n maxWidth: '320px',\n minWidth: '206px',\n userSelect: 'none',\n position: 'relative',\n selectors: {\n ':focus': {\n outline: '0px solid',\n },\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: getInputFocusStyle(\n palette.neutralSecondary,\n effects.roundedCorner2,\n ),\n [`.${locationClassNames.root} + .${titleClassNames.root}`]: {\n paddingTop: '4px',\n },\n },\n },\n actionable && [\n classNames.rootActionable,\n {\n selectors: {\n ':hover': {\n cursor: 'pointer',\n borderColor: palette.neutralTertiaryAlt,\n },\n ':hover:after': {\n content: '\" \"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n border: `1px solid ${palette.neutralTertiaryAlt}`,\n pointerEvents: 'none',\n },\n },\n },\n ],\n compact && [\n classNames.rootCompact,\n {\n display: 'flex',\n maxWidth: '480px',\n height: '108px',\n selectors: {\n [`.${previewClassNames.root}`]: {\n borderRight: `1px solid ${palette.neutralLight}`,\n borderBottom: 0, // Remove the usual border from the preview\n maxHeight: '106px',\n maxWidth: '144px',\n },\n [`.${previewClassNames.icon}`]: {\n maxHeight: '32px',\n maxWidth: '32px',\n },\n [`.${activityClassNames.root}`]: {\n paddingBottom: '12px',\n },\n [`.${titleClassNames.root}`]: {\n paddingBottom: '12px 16px 8px 16px',\n fontSize: fonts.mediumPlus.fontSize,\n lineHeight: '16px',\n },\n },\n },\n ],\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DocumentCardBase } from './DocumentCard.base';\nimport { getStyles } from './DocumentCard.styles';\nimport type { IDocumentCardProps, IDocumentCardStyleProps, IDocumentCardStyles } from './DocumentCard.types';\n\nexport const DocumentCard: React.FunctionComponent = styled<\n IDocumentCardProps,\n IDocumentCardStyleProps,\n IDocumentCardStyles\n>(DocumentCardBase, getStyles, undefined, { scope: 'DocumentCard' });\n","import * as React from 'react';\nimport { classNamesFunction, initializeComponentRef } from '../../Utilities';\nimport type {\n IDocumentCardDetailsProps,\n IDocumentCardDetailsStyleProps,\n IDocumentCardDetailsStyles,\n} from './DocumentCardDetails.types';\nimport type { IProcessedStyleSet } from '../../Styling';\n\nconst getClassNames = classNamesFunction();\n\n/**\n * {@docCategory DocumentCard}\n */\nexport class DocumentCardDetailsBase extends React.Component {\n private _classNames: IProcessedStyleSet;\n\n constructor(props: IDocumentCardDetailsProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render(): JSX.Element {\n const { children, styles, theme, className } = this.props;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n\n return
    {children}
    ;\n }\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IDocumentCardStatusStyleProps, IDocumentCardStatusStyles } from './DocumentCardStatus.types';\n\nconst GlobalClassNames = {\n root: 'ms-DocumentCardDetails',\n};\n\nexport const getStyles = (props: IDocumentCardStatusStyleProps): IDocumentCardStatusStyles => {\n const { className, theme } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n {\n display: 'flex',\n flexDirection: 'column',\n flex: 1,\n justifyContent: 'space-between',\n overflow: 'hidden',\n },\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DocumentCardDetailsBase } from './DocumentCardDetails.base';\nimport { getStyles } from './DocumentCardDetails.styles';\nimport type {\n IDocumentCardDetailsProps,\n IDocumentCardDetailsStyleProps,\n IDocumentCardDetailsStyles,\n} from './DocumentCardDetails.types';\n\nexport const DocumentCardDetails: React.FunctionComponent = styled<\n IDocumentCardDetailsProps,\n IDocumentCardDetailsStyleProps,\n IDocumentCardDetailsStyles\n>(DocumentCardDetailsBase, getStyles, undefined, { scope: 'DocumentCardDetails' });\n","import * as React from 'react';\nimport { Icon } from '../../Icon';\nimport { Image } from '../../Image';\nimport { classNamesFunction, initializeComponentRef } from '../../Utilities';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type {\n IDocumentCardImageProps,\n IDocumentCardImageStyleProps,\n IDocumentCardImageStyles,\n} from './DocumentCardImage.types';\n\nexport interface IDocumentCardImageState {\n readonly imageHasLoaded: boolean;\n}\n\nconst getClassNames = classNamesFunction();\n\n/**\n * {@docCategory DocumentCard}\n */\nexport class DocumentCardImageBase extends React.Component {\n private _classNames: IProcessedStyleSet;\n\n constructor(props: IDocumentCardImageProps) {\n super(props);\n\n initializeComponentRef(this);\n this.state = { imageHasLoaded: false };\n }\n\n public render(): JSX.Element {\n const { styles, width, height, imageFit, imageSrc } = this.props;\n\n this._classNames = getClassNames(styles!, this.props);\n\n return (\n
    \n {imageSrc && (\n \n )}\n {this.state.imageHasLoaded ? this._renderCornerIcon() : this._renderCenterIcon()}\n
    \n );\n }\n\n private _onImageLoad = () => {\n this.setState({ imageHasLoaded: true });\n };\n\n private _renderCenterIcon(): JSX.Element {\n const { iconProps } = this.props;\n return (\n
    \n \n
    \n );\n }\n\n private _renderCornerIcon(): JSX.Element {\n const { iconProps } = this.props;\n return ;\n }\n}\n","import type { IDocumentCardImageStyleProps, IDocumentCardImageStyles } from './DocumentCardImage.types';\n\nconst centeredIconSize = '42px';\nconst cornerIconSize = '32px';\n\nexport const getStyles = (props: IDocumentCardImageStyleProps): IDocumentCardImageStyles => {\n const { theme, className, height, width } = props;\n const { palette } = theme!;\n\n return {\n root: [\n {\n borderBottom: `1px solid ${palette.neutralLight}`,\n position: 'relative',\n backgroundColor: palette.neutralLighterAlt,\n overflow: `hidden`,\n height: height && `${height}px`,\n width: width && `${width}px`,\n },\n className,\n ],\n centeredIcon: [\n {\n height: centeredIconSize,\n width: centeredIconSize,\n fontSize: centeredIconSize,\n },\n ],\n centeredIconWrapper: [\n {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%',\n width: '100%',\n position: 'absolute',\n top: 0,\n left: 0,\n },\n ],\n cornerIcon: [\n {\n left: '10px',\n bottom: '10px',\n height: cornerIconSize,\n width: cornerIconSize,\n fontSize: cornerIconSize,\n position: 'absolute',\n overflow: 'visible',\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DocumentCardImageBase } from './DocumentCardImage.base';\nimport { getStyles } from './DocumentCardImage.styles';\nimport type {\n IDocumentCardImageProps,\n IDocumentCardImageStyleProps,\n IDocumentCardImageStyles,\n} from './DocumentCardImage.types';\n\nexport const DocumentCardImage: React.FunctionComponent = styled<\n IDocumentCardImageProps,\n IDocumentCardImageStyleProps,\n IDocumentCardImageStyles\n>(DocumentCardImageBase, getStyles, undefined, { scope: 'DocumentCardImage' });\n","import * as React from 'react';\n\nimport { Async, EventGroup, classNamesFunction } from '../../Utilities';\nimport { initializeComponentRef } from '@fluentui/utilities';\nimport type {\n IDocumentCardTitleProps,\n IDocumentCardTitleStyleProps,\n IDocumentCardTitleStyles,\n} from './DocumentCardTitle.types';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport { DocumentCardContext } from './DocumentCard.base';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getWindowEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\n\nexport interface IDocumentCardTitleState {\n truncatedTitleFirstPiece?: string;\n truncatedTitleSecondPiece?: string;\n}\n\nconst TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD = 5;\n\n/**\n * {@docCategory DocumentCard}\n */\nexport class DocumentCardTitleBase extends React.Component {\n public static contextType = WindowContext;\n\n private _titleElement = React.createRef();\n private _classNames: IProcessedStyleSet;\n private _async: Async;\n private _events: EventGroup;\n private _clientWidth: number | undefined;\n private _timerId: number | undefined;\n\n constructor(props: IDocumentCardTitleProps) {\n super(props);\n\n initializeComponentRef(this);\n this._async = new Async(this);\n this._events = new EventGroup(this);\n this._clientWidth = undefined;\n\n this.state = {\n truncatedTitleFirstPiece: undefined,\n truncatedTitleSecondPiece: undefined,\n };\n }\n\n public componentDidUpdate(prevProps: IDocumentCardTitleProps): void {\n if (this.props.title !== prevProps.title) {\n this.setState({\n truncatedTitleFirstPiece: undefined,\n truncatedTitleSecondPiece: undefined,\n });\n }\n\n if (prevProps.shouldTruncate !== this.props.shouldTruncate) {\n const win = getWindowEx(this.context);\n if (this.props.shouldTruncate) {\n this._truncateTitle();\n this._async.requestAnimationFrame(this._shrinkTitle);\n this._events.on(win, 'resize', this._updateTruncation);\n } else {\n this._events.off(win, 'resize', this._updateTruncation);\n }\n } else if (this._needMeasurement) {\n this._async.requestAnimationFrame(() => {\n this._truncateWhenInAnimation();\n this._shrinkTitle();\n });\n }\n }\n\n public componentDidMount(): void {\n if (this.props.shouldTruncate) {\n this._truncateTitle();\n const win = getWindowEx(this.context);\n this._events.on(win, 'resize', this._updateTruncation);\n }\n }\n\n public componentWillUnmount(): void {\n this._events.dispose();\n this._async.dispose();\n }\n\n public render(): JSX.Element {\n const { title, shouldTruncate, showAsSecondaryTitle, styles, theme, className } = this.props;\n const { truncatedTitleFirstPiece, truncatedTitleSecondPiece } = this.state;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n showAsSecondaryTitle,\n });\n\n if (shouldTruncate && truncatedTitleFirstPiece && truncatedTitleSecondPiece) {\n return (\n \n {({ role, tabIndex }) => {\n return (\n \n {truncatedTitleFirstPiece}\n …\n {truncatedTitleSecondPiece}\n \n );\n }}\n \n );\n } else {\n return (\n \n {({ role, tabIndex }) => {\n return (\n \n {title}\n \n );\n }}\n \n );\n }\n }\n\n /**\n * In measuring, it will render a same style text with whiteSpace: 'nowrap', to get overflow rate.\n * So that the logic can predict truncated text well.\n */\n private get _needMeasurement(): boolean {\n return !!this.props.shouldTruncate && this._clientWidth === undefined;\n }\n\n // Truncate logic here way can't handle the case that chars with different widths are mixed very well.\n // Let _shrinkTitle take care of that.\n private _truncateTitle = (): void => {\n if (!this._needMeasurement) {\n return;\n }\n\n this._async.requestAnimationFrame(this._truncateWhenInAnimation);\n };\n\n private _truncateWhenInAnimation: () => void = () => {\n const originalTitle = this.props.title;\n const element: HTMLDivElement | null = this._titleElement.current;\n\n if (element) {\n const style: CSSStyleDeclaration = getComputedStyle(element);\n if (style.width && style.lineHeight && style.height) {\n const { clientWidth, scrollWidth } = element;\n\n this._clientWidth = clientWidth;\n\n const lines: number = Math.floor(\n (parseInt(style.height, 10) + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD) / parseInt(style.lineHeight, 10),\n );\n\n element.style.whiteSpace = '';\n\n // Use overflow to predict truncated length.\n // Take an example.The text is: A text with A very long text that need to be truncated.ppt\n // if container is like\n // |A text with A very| long text that need to be truncated.ppt\n // The scroll width is 58, (take two | out of length)\n // The client width is 18\n // the overflow rate is scrollWidth/clientWidth which should be close to length(overflowText)/length(visualText)\n // And the length of remaining text should be truncated is (original Length)/(58/18) -3 = 15.\n // So that the logic can predict truncated text well.\n // first piece will be `A text `, * second piece will be `ated.ppt`\n // |A text ...ated.ppt|\n const overFlowRate: number = scrollWidth / (parseInt(style.width, 10) * lines);\n\n if (overFlowRate > 1) {\n const truncatedLength: number = originalTitle.length / overFlowRate - 3; /** Saved for separator */\n return this.setState({\n truncatedTitleFirstPiece: originalTitle.slice(0, truncatedLength / 2),\n truncatedTitleSecondPiece: originalTitle.slice(originalTitle.length - truncatedLength / 2),\n });\n }\n }\n }\n };\n\n private _shrinkTitle: () => void = () => {\n const { truncatedTitleFirstPiece, truncatedTitleSecondPiece } = this.state;\n if (truncatedTitleFirstPiece && truncatedTitleSecondPiece) {\n const titleElement = this._titleElement.current;\n\n if (!titleElement) {\n return;\n }\n\n if (\n titleElement.scrollHeight > titleElement.clientHeight + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD ||\n titleElement.scrollWidth > titleElement.clientWidth\n ) {\n this.setState({\n truncatedTitleFirstPiece: truncatedTitleFirstPiece.slice(0, truncatedTitleFirstPiece.length - 1),\n truncatedTitleSecondPiece: truncatedTitleSecondPiece.slice(1),\n });\n }\n }\n };\n\n private _updateTruncation(): void {\n if (this._timerId) {\n return;\n }\n\n this._timerId = this._async.setTimeout(() => {\n delete this._timerId;\n this._clientWidth = undefined;\n this.setState({\n truncatedTitleFirstPiece: undefined,\n truncatedTitleSecondPiece: undefined,\n });\n }, 250);\n }\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DocumentCardTitleBase } from './DocumentCardTitle.base';\nimport { getStyles } from './DocumentCardTitle.styles';\nimport type {\n IDocumentCardTitleProps,\n IDocumentCardTitleStyleProps,\n IDocumentCardTitleStyles,\n} from './DocumentCardTitle.types';\n\nexport const DocumentCardTitle: React.FunctionComponent = styled<\n IDocumentCardTitleProps,\n IDocumentCardTitleStyleProps,\n IDocumentCardTitleStyles\n>(DocumentCardTitleBase, getStyles, undefined, { scope: 'DocumentCardTitle' });\n","import { getGlobalClassNames, getInputFocusStyle } from '../../Styling';\nimport { IsFocusVisibleClassName } from '../../Utilities';\nimport type { IDocumentCardTitleStyleProps, IDocumentCardTitleStyles } from './DocumentCardTitle.types';\n\nexport const DocumentCardTitleGlobalClassNames = {\n root: 'ms-DocumentCardTitle',\n};\n\nexport const getStyles = (props: IDocumentCardTitleStyleProps): IDocumentCardTitleStyles => {\n const { theme, className, showAsSecondaryTitle } = props;\n const { palette, fonts, effects } = theme;\n\n const classNames = getGlobalClassNames(DocumentCardTitleGlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n showAsSecondaryTitle ? fonts.medium : fonts.large,\n {\n padding: '8px 16px',\n display: 'block',\n overflow: 'hidden',\n position: 'relative',\n wordWrap: 'break-word',\n height: showAsSecondaryTitle ? '45px' : '38px',\n lineHeight: showAsSecondaryTitle ? '18px' : '21px',\n color: showAsSecondaryTitle ? palette.neutralSecondary : palette.neutralPrimary,\n selectors: {\n ':focus': {\n outline: '0px solid',\n },\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: getInputFocusStyle(\n palette.neutralSecondary,\n effects.roundedCorner2,\n ),\n },\n },\n className,\n ],\n };\n};\n","import { DropdownMenuItemType } from '../Dropdown.types';\nimport type { IDropdownOption } from '../Dropdown.types';\n\n/**\n * A utility class to cache size and position in cache.\n *\n * Dropdown options has non-selectable display types. It is therefore not cheap to determine\n * the total number of actual selectable options as well as the position an option is in the\n * list of options - O(n) cost for each lookup.\n *\n * Given that we potentially have to make this determination on every single render pass, this\n * cache should provide a little bit of relief.\n */\nexport class DropdownSizePosCache {\n private _cachedOptions: IDropdownOption[];\n private _displayOnlyOptionsCache: number[];\n private _notSelectableOptionsCache: number[];\n private _size = 0;\n\n /**\n * Invalidates the cache and recalculate the size of selectable options.\n */\n public updateOptions(options: IDropdownOption[]) {\n const displayOnlyOptionsCache = [];\n const notSelectableOptionsCache = [];\n let size = 0;\n for (let i = 0; i < options.length; i++) {\n const { itemType, hidden } = options[i];\n\n if (itemType === DropdownMenuItemType.Divider || itemType === DropdownMenuItemType.Header) {\n displayOnlyOptionsCache.push(i);\n notSelectableOptionsCache.push(i);\n } else if (hidden) {\n notSelectableOptionsCache.push(i);\n } else {\n size++;\n }\n }\n\n this._size = size;\n this._displayOnlyOptionsCache = displayOnlyOptionsCache;\n this._notSelectableOptionsCache = notSelectableOptionsCache;\n this._cachedOptions = [...options];\n }\n\n /**\n * The size of all the selectable options.\n */\n public get optionSetSize(): number {\n return this._size;\n }\n\n /**\n * The chached options array.\n */\n public get cachedOptions(): IDropdownOption[] {\n return this._cachedOptions;\n }\n\n /**\n * Returns the position of this option element relative to the full set of selectable option elements.\n * Note: the first selectable element is position 1 in the set.\n * @param index The raw index of the option element.\n */\n public positionInSet(index: number | undefined): number | undefined {\n if (index === undefined) {\n return undefined;\n }\n\n // we could possibly memoize this too but this should be good enough, most of the time (the expectation is that\n // when you have a lot of options, the selectable options will heavily dominate over the non-selectable options.\n let offset = 0;\n while (index > this._notSelectableOptionsCache[offset]) {\n offset++;\n }\n\n if (this._displayOnlyOptionsCache[offset] === index) {\n throw new Error(`Unexpected: Option at index ${index} is not a selectable element.`);\n }\n\n if (this._notSelectableOptionsCache[offset] === index) {\n return undefined;\n }\n\n return index - offset + 1;\n }\n}\n","import * as React from 'react';\nimport {\n css,\n KeyCodes,\n classNamesFunction,\n divProperties,\n findIndex,\n getDocument,\n getFirstFocusable,\n getId,\n getLastFocusable,\n getNativeProps,\n initializeComponentRef,\n isIOS,\n isMac,\n mergeAriaAttributeValues,\n safeRequestAnimationFrame,\n warn,\n warnDeprecations,\n warnMutuallyExclusive,\n} from '../../Utilities';\nimport { Callout, DirectionalHint } from '../../Callout';\nimport { CommandButton } from '../../Button';\nimport { DropdownMenuItemType } from './Dropdown.types';\nimport { DropdownSizePosCache } from './utilities/DropdownSizePosCache';\nimport { FocusZone, FocusZoneDirection } from '../../FocusZone';\nimport { RectangleEdge } from '../../Positioning';\nimport { Icon } from '../../Icon';\nimport { Label } from '../../Label';\nimport { Panel } from '../../Panel';\nimport { ResponsiveMode, useResponsiveMode } from '../../ResponsiveMode';\nimport { SelectableOptionMenuItemType, getAllSelectedOptions } from '../../SelectableOption';\n// import and use V7 Checkbox to ensure no breaking changes.\nimport { Checkbox } from '../../Checkbox';\nimport { getNextElement, getPreviousElement, getPropsWithDefaults } from '@fluentui/utilities';\nimport { useMergedRefs, usePrevious } from '@fluentui/react-hooks';\nimport type { IStyleFunctionOrObject } from '../../Utilities';\nimport type {\n IDropdownOption,\n IDropdownProps,\n IDropdownStyleProps,\n IDropdownStyles,\n IDropdown,\n} from './Dropdown.types';\nimport type { ICalloutPositionedInfo } from '../../Positioning';\nimport type { ILabelStyleProps, ILabelStyles } from '../../Label';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { IPanelStyleProps, IPanelStyles } from '../../Panel';\nimport type { IWithResponsiveModeState } from '../../ResponsiveMode';\nimport type { ISelectableDroppableTextProps } from '../../SelectableOption';\nimport type { ICheckboxStyleProps, ICheckboxStyles } from '../../Checkbox';\nimport { IFocusTrapZoneProps } from '../FocusTrapZone/FocusTrapZone.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx, getWindowEx } from '../../utilities/dom';\n\nconst COMPONENT_NAME = 'Dropdown';\nconst getClassNames = classNamesFunction();\n\n/** Internal only props interface to support mixing in responsive mode */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\ninterface IDropdownInternalProps extends Omit, IWithResponsiveModeState {\n hoisted: {\n rootRef: React.RefObject;\n selectedIndices: number[];\n setSelectedIndices: React.Dispatch>;\n };\n}\n\ninterface IDropdownState {\n isOpen: boolean;\n /** Used to track whether focus is already within the Dropdown, for openOnFocus handling. */\n hasFocus: boolean;\n calloutRenderEdge?: RectangleEdge;\n}\n\nconst DEFAULT_PROPS: Partial = {\n options: [],\n};\n\nfunction useSelectedItemsState({\n defaultSelectedKeys,\n selectedKeys,\n defaultSelectedKey,\n selectedKey,\n options,\n multiSelect,\n}: IDropdownProps) {\n const oldOptions = usePrevious(options);\n const [selectedIndices, setSelectedIndices] = React.useState([]);\n\n // In controlled component usage where selectedKey is provided, update the selectedIndex\n // state if the key or options change.\n let selectedKeyPropToUse: string | number | string[] | number[] | null | undefined;\n\n // this does a shallow compare (assumes options are pure), for the purposes of determining whether\n // defaultSelectedKey/defaultSelectedKeys are respected.\n const didOptionsChange = options !== oldOptions;\n\n if (multiSelect) {\n if (didOptionsChange && defaultSelectedKeys !== undefined) {\n selectedKeyPropToUse = defaultSelectedKeys;\n } else {\n selectedKeyPropToUse = selectedKeys;\n }\n } else {\n if (didOptionsChange && defaultSelectedKey !== undefined) {\n selectedKeyPropToUse = defaultSelectedKey;\n } else {\n selectedKeyPropToUse = selectedKey;\n }\n }\n\n const oldSelectedKeyProp = usePrevious(selectedKeyPropToUse);\n\n React.useEffect(() => {\n /** Get all selected indexes for multi-select mode */\n const getSelectedIndexes = (): number[] => {\n if (selectedKeyPropToUse === undefined) {\n if (multiSelect) {\n return getAllSelectedIndices();\n }\n const selectedIndex = getSelectedIndex(null);\n return selectedIndex !== -1 ? [selectedIndex] : [];\n } else if (!Array.isArray(selectedKeyPropToUse)) {\n const selectedIndex = getSelectedIndex(selectedKeyPropToUse);\n return selectedIndex !== -1 ? [selectedIndex] : [];\n }\n\n const returnValue: number[] = [];\n for (const key of selectedKeyPropToUse) {\n const selectedIndex = getSelectedIndex(key);\n selectedIndex !== -1 && returnValue.push(selectedIndex);\n }\n return returnValue;\n };\n\n const getAllSelectedIndices = (): number[] => {\n return options\n .map((option: IDropdownOption, index: number) => (option.selected ? index : -1))\n .filter(index => index !== -1);\n };\n\n const getSelectedIndex = (searchKey: string | number | null | undefined): number => {\n return findIndex(options, option => {\n // eslint-disable-next-line eqeqeq\n if (searchKey != null) {\n return option.key === searchKey;\n } else {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return !!option.selected || !!option.isSelected;\n }\n });\n };\n\n if (\n (selectedKeyPropToUse !== undefined || !oldOptions) &&\n (selectedKeyPropToUse !== oldSelectedKeyProp || didOptionsChange)\n ) {\n setSelectedIndices(getSelectedIndexes());\n }\n }, [didOptionsChange, multiSelect, oldOptions, oldSelectedKeyProp, options, selectedKeyPropToUse]);\n\n return [selectedIndices, setSelectedIndices] as const;\n}\n\nexport const DropdownBase: React.FunctionComponent = React.forwardRef(\n (propsWithoutDefaults, forwardedRef) => {\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n\n const rootRef = React.useRef(null);\n const mergedRootRef = useMergedRefs(forwardedRef, rootRef);\n\n const responsiveMode = useResponsiveMode(rootRef, props.responsiveMode);\n const [selectedIndices, setSelectedIndices] = useSelectedItemsState(props);\n\n return (\n )}\n responsiveMode={responsiveMode}\n hoisted={{ rootRef: mergedRootRef, selectedIndices, setSelectedIndices }}\n />\n );\n },\n);\nDropdownBase.displayName = 'DropdownBase';\n\nclass DropdownInternal extends React.Component implements IDropdown {\n public static defaultProps = {\n options: [] as IDropdownOption[],\n };\n\n public static contextType = WindowContext;\n\n private _host = React.createRef();\n private _focusZone = React.createRef();\n private _dropDown = React.createRef();\n private _id: string;\n private _labelId: string;\n private _listId: string;\n private _optionId: string;\n private _isScrollIdle: boolean;\n /** Flag for tracking if the Callout has previously been positioned.\n * This is necessary to properly control focus state when the width\n * of the Dropdown is dynamic (e.g, \"fit-content\").\n */\n private _hasBeenPositioned: boolean;\n private readonly _scrollIdleDelay: number = 250 /* ms */;\n private _scrollIdleTimeoutId: number | undefined;\n /** True if the most recent keydown event was for alt (option) or meta (command). */\n private _lastKeyDownWasAltOrMeta: boolean | undefined;\n private _sizePosCache: DropdownSizePosCache = new DropdownSizePosCache();\n private _classNames: IProcessedStyleSet;\n private _requestAnimationFrame = safeRequestAnimationFrame(this);\n /** Flag for when we get the first mouseMove */\n private _gotMouseMove: boolean;\n /** Flag for tracking whether focus is triggered by click (alternatively triggered by keyboard nav) */\n private _isFocusedByClick: boolean;\n\n constructor(props: IDropdownInternalProps) {\n super(props);\n\n initializeComponentRef(this);\n\n const { multiSelect, selectedKey, selectedKeys, defaultSelectedKey, defaultSelectedKeys, options } = props;\n\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecations(COMPONENT_NAME, props, {\n isDisabled: 'disabled',\n onChanged: 'onChange',\n placeHolder: 'placeholder',\n onRenderPlaceHolder: 'onRenderPlaceholder',\n });\n\n warnMutuallyExclusive(COMPONENT_NAME, props, {\n defaultSelectedKey: 'selectedKey',\n defaultSelectedKeys: 'selectedKeys',\n selectedKeys: 'selectedKey',\n });\n\n if (multiSelect) {\n const warnMultiSelect = (prop: keyof IDropdownProps) =>\n warn(`Dropdown property '${prop}' cannot be used when 'multiSelect' is true. Use '${prop}s' instead.`);\n if (selectedKey !== undefined) {\n warnMultiSelect('selectedKey');\n }\n if (defaultSelectedKey !== undefined) {\n warnMultiSelect('defaultSelectedKey');\n }\n } else {\n const warnNotMultiSelect = (prop: keyof IDropdownProps) =>\n warn(`Dropdown property '${prop}s' cannot be used when 'multiSelect' is false/unset. Use '${prop}' instead.`);\n if (selectedKeys !== undefined) {\n warnNotMultiSelect('selectedKey');\n }\n if (defaultSelectedKeys !== undefined) {\n warnNotMultiSelect('defaultSelectedKey');\n }\n }\n }\n\n this._id = props.id || getId('Dropdown');\n this._labelId = this._id + '-label';\n this._listId = this._id + '-list';\n this._optionId = this._id + '-option';\n this._isScrollIdle = true;\n this._hasBeenPositioned = false;\n\n this._sizePosCache.updateOptions(options);\n\n this.state = {\n isOpen: false,\n hasFocus: false,\n calloutRenderEdge: undefined,\n };\n }\n\n /**\n * All selected options\n */\n public get selectedOptions(): IDropdownOption[] {\n const {\n options,\n hoisted: { selectedIndices },\n } = this.props;\n\n return getAllSelectedOptions(options, selectedIndices);\n }\n\n public componentWillUnmount() {\n clearTimeout(this._scrollIdleTimeoutId);\n }\n\n public componentDidUpdate(prevProps: IDropdownProps, prevState: IDropdownState) {\n if (prevState.isOpen === true && this.state.isOpen === false) {\n this._gotMouseMove = false;\n this._hasBeenPositioned = false;\n\n if (this.props.onDismiss) {\n this.props.onDismiss();\n }\n }\n }\n\n public render(): JSX.Element {\n const id = this._id;\n\n const props = this.props;\n const {\n className,\n label,\n options,\n ariaLabel,\n required,\n errorMessage,\n styles: propStyles,\n theme,\n panelProps,\n calloutProps,\n onRenderTitle = this._getTitle,\n onRenderContainer = this._onRenderContainer,\n onRenderCaretDown = this._onRenderCaretDown,\n onRenderLabel = this._onRenderLabel,\n onRenderItem = this._onRenderItem,\n hoisted: { selectedIndices },\n } = props;\n const { isOpen, calloutRenderEdge, hasFocus } = this.state;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const onRenderPlaceholder = props.onRenderPlaceholder || props.onRenderPlaceHolder || this._getPlaceholder;\n\n // If our cached options are out of date update our cache\n if (options !== this._sizePosCache.cachedOptions) {\n this._sizePosCache.updateOptions(options);\n }\n\n const selectedOptions = getAllSelectedOptions(options, selectedIndices);\n const divProps = getNativeProps(props, divProperties);\n\n const disabled = this._isDisabled();\n\n const errorMessageId = id + '-errorMessage';\n\n this._classNames = getClassNames(propStyles, {\n theme,\n className,\n hasError: !!(errorMessage && errorMessage.length > 0),\n hasLabel: !!label,\n isOpen,\n required,\n disabled,\n isRenderingPlaceholder: !selectedOptions.length,\n panelClassName: panelProps ? panelProps.className : undefined,\n calloutClassName: calloutProps ? calloutProps.className : undefined,\n calloutRenderEdge,\n });\n\n const hasErrorMessage: boolean = !!errorMessage && errorMessage.length > 0;\n\n return (\n \n {onRenderLabel(this.props, this._onRenderLabel)}\n \n \n {\n // If option is selected render title, otherwise render the placeholder text\n selectedOptions.length\n ? onRenderTitle(selectedOptions, this._onRenderTitle)\n : onRenderPlaceholder(props, this._onRenderPlaceholder)\n }\n
    \n {onRenderCaretDown(props, this._onRenderCaretDown)}\n \n {isOpen &&\n onRenderContainer(\n {\n ...props,\n onDismiss: this._onDismiss,\n onRenderItem,\n },\n this._onRenderContainer,\n )}\n {hasErrorMessage && (\n
    \n {errorMessage}\n
    \n )}\n \n );\n }\n\n /**\n * Close menu callout if it is open\n */\n public dismissMenu = (): void => {\n const { isOpen } = this.state;\n isOpen && this.setState({ isOpen: false });\n };\n\n public focus(shouldOpenOnFocus?: boolean): void {\n if (this._dropDown.current) {\n this._dropDown.current.focus();\n\n if (shouldOpenOnFocus) {\n this.setState({\n isOpen: true,\n });\n }\n }\n }\n\n public setSelectedIndex(event: React.FormEvent, index: number): void {\n const {\n options,\n selectedKey,\n selectedKeys,\n multiSelect,\n notifyOnReselect,\n hoisted: { selectedIndices = [] },\n } = this.props;\n const checked: boolean = selectedIndices ? selectedIndices.indexOf(index) > -1 : false;\n let newIndexes: number[] = [];\n\n index = Math.max(0, Math.min(options.length - 1, index));\n\n // If this is a controlled component then no state change should take place.\n if (selectedKey !== undefined || selectedKeys !== undefined) {\n this._onChange(event, options, index, checked, multiSelect);\n return;\n }\n\n if (!multiSelect && !notifyOnReselect && index === selectedIndices[0]) {\n return;\n } else if (multiSelect) {\n newIndexes = selectedIndices ? this._copyArray(selectedIndices) : [];\n if (checked) {\n const position = newIndexes.indexOf(index);\n if (position > -1) {\n // unchecked the current one\n newIndexes.splice(position, 1);\n }\n } else {\n // add the new selected index into the existing one\n newIndexes.push(index);\n }\n } else {\n // Set the selected option if this is an uncontrolled component\n newIndexes = [index];\n }\n\n event.persist();\n // Call onChange after state is updated\n this.props.hoisted.setSelectedIndices(newIndexes);\n this._onChange(event, options, index, checked, multiSelect);\n }\n\n private _onChange = (\n event: React.FormEvent,\n options: IDropdownOption[],\n index: number,\n checked?: boolean,\n multiSelect?: boolean,\n ) => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { onChange, onChanged } = this.props;\n if (onChange || onChanged) {\n // for single-select, option passed in will always be selected.\n // for multi-select, flip the checked value\n const changedOpt = multiSelect ? { ...options[index], selected: !checked } : options[index];\n\n onChange && onChange({ ...event, target: this._dropDown.current as EventTarget }, changedOpt, index);\n onChanged && onChanged(changedOpt, index);\n }\n };\n\n /** Get either props.placeholder (new name) or props.placeHolder (old name) */\n private _getPlaceholder = (): string | undefined => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return this.props.placeholder || this.props.placeHolder;\n };\n\n private _copyArray(array: any[]): any[] {\n const newArray = [];\n for (const element of array) {\n newArray.push(element);\n }\n return newArray;\n }\n\n /**\n * Finds the next valid Dropdown option and sets the selected index to it.\n * @param stepValue - Value of how many items the function should traverse. Should be -1 or 1.\n * @param index - Index of where the search should start\n * @param selectedIndex - The selectedIndex Dropdown's state\n * @returns The next valid dropdown option's index\n */\n private _moveIndex(\n event: React.FormEvent,\n stepValue: number,\n index: number,\n selectedIndex: number,\n ): number {\n const { options } = this.props;\n // Return selectedIndex if nothing has changed or options is empty\n if (selectedIndex === index || options.length === 0) {\n return selectedIndex;\n }\n\n // If the user is pressing the up or down key we want to make\n // sure that the dropdown cycles through the options without\n // causing the screen to scroll. In _onDropdownKeyDown\n // at the very end is a check to see if newIndex !== selectedIndex.\n // If the index is less than 0 and we set it back to 0, then\n // newIndex will equal selectedIndex and not stop the action\n // of the key press happening and vice versa for indexes greater\n // than or equal to the options length.\n if (index >= options.length) {\n index = 0;\n } else if (index < 0) {\n index = options.length - 1;\n }\n\n let stepCounter = 0;\n // If current index is a header or divider, or disabled, increment by step\n while (\n options[index].itemType === DropdownMenuItemType.Header ||\n options[index].itemType === DropdownMenuItemType.Divider ||\n options[index].disabled\n ) {\n // If stepCounter exceeds length of options, then return selectedIndex (-1)\n if (stepCounter >= options.length) {\n return selectedIndex;\n }\n // If index + stepValue is out of bounds, wrap around\n if (index + stepValue < 0) {\n index = options.length;\n } else if (index + stepValue >= options.length) {\n index = -1;\n }\n\n index = index + stepValue;\n stepCounter++;\n }\n\n this.setSelectedIndex(event, index);\n return index;\n }\n\n /** Get text in dropdown input as a string */\n private _getTitle = (items: IDropdownOption[], _unused?: unknown): string => {\n const { multiSelectDelimiter = ', ' } = this.props;\n return items.map(i => i.text).join(multiSelectDelimiter);\n };\n\n /** Render text in dropdown input */\n private _onRenderTitle = (items: IDropdownOption[]): JSX.Element => {\n return <>{this._getTitle(items)};\n };\n\n /** Render placeholder text in dropdown input */\n private _onRenderPlaceholder = (props: IDropdownProps): JSX.Element | null => {\n if (!this._getPlaceholder()) {\n return null;\n }\n return <>{this._getPlaceholder()};\n };\n\n /** Render Callout or Panel container and pass in list */\n private _onRenderContainer = (props: ISelectableDroppableTextProps): JSX.Element => {\n const { calloutProps, panelProps } = props;\n const { responsiveMode, dropdownWidth } = this.props;\n\n const isSmall = responsiveMode! <= ResponsiveMode.medium;\n\n const focusTrapZoneProps: IFocusTrapZoneProps = { firstFocusableTarget: `#${this._listId}1` };\n const panelStyles = this._classNames.subComponentStyles\n ? (this._classNames.subComponentStyles.panel as IStyleFunctionOrObject)\n : undefined;\n\n let calloutWidth = undefined;\n let calloutMinWidth = undefined;\n if (dropdownWidth === 'auto') {\n calloutMinWidth = this._dropDown.current ? this._dropDown.current.clientWidth : 0;\n } else {\n calloutWidth = dropdownWidth || (this._dropDown.current ? this._dropDown.current.clientWidth : 0);\n }\n\n return isSmall ? (\n \n {this._renderFocusableList(props)}\n \n ) : (\n \n {this._renderFocusableList(props)}\n \n );\n };\n\n /** Render Caret Down Icon */\n private _onRenderCaretDown = (props: IDropdownProps): JSX.Element => {\n return ;\n };\n\n /** Wrap item list in a FocusZone */\n private _renderFocusableList(props: ISelectableDroppableTextProps): JSX.Element {\n const { onRenderList = this._onRenderList, label, ariaLabel, multiSelect } = props;\n\n return (\n \n \n {onRenderList(props, this._onRenderList)}\n \n \n );\n }\n\n /** Render List of items */\n private _onRenderList = (props: ISelectableDroppableTextProps): JSX.Element => {\n const { onRenderItem = this._onRenderItem } = props;\n\n let queue: { id?: string; items: JSX.Element[] } = { items: [] };\n let renderedList: JSX.Element[] = [];\n\n const emptyQueue = (): void => {\n const newGroup = queue.id\n ? [\n
    \n {queue.items}\n
    ,\n ]\n : queue.items;\n\n renderedList = [...renderedList, ...newGroup];\n // Flush items and id\n queue = { items: [] };\n };\n\n const placeRenderedOptionIntoQueue = (item: IDropdownOption, index: number) => {\n /*\n Case Header\n empty queue if it's not already empty\n ensure unique ID for header and set queue ID\n push header into queue\n Case Divider\n push divider into queue if not first item\n empty queue if not already empty\n Default\n push item into queue\n */\n switch (item.itemType) {\n case SelectableOptionMenuItemType.Header:\n queue.items.length > 0 && emptyQueue();\n\n const id = this._id + item.key;\n queue.items.push(onRenderItem({ id, ...item, index }, this._onRenderItem)!);\n queue.id = id;\n break;\n case SelectableOptionMenuItemType.Divider:\n index > 0 && queue.items.push(onRenderItem({ ...item, index }, this._onRenderItem)!);\n\n queue.items.length > 0 && emptyQueue();\n break;\n default:\n queue.items.push(onRenderItem({ ...item, index }, this._onRenderItem)!);\n }\n };\n\n // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered\n props.options.forEach((item: IDropdownOption, index: number) => {\n placeRenderedOptionIntoQueue(item, index);\n });\n\n // Push remaining items into all renderedList\n queue.items.length > 0 && emptyQueue();\n\n return <>{renderedList};\n };\n\n private _onRenderItem = (item: IDropdownOption): JSX.Element | null => {\n switch (item.itemType) {\n case SelectableOptionMenuItemType.Divider:\n return this._renderSeparator(item);\n case SelectableOptionMenuItemType.Header:\n return this._renderHeader(item);\n default:\n return this._renderOption(item);\n }\n };\n\n private _renderSeparator(item: IDropdownOption): JSX.Element | null {\n const { index, key } = item;\n const separatorClassName = item.hidden ? this._classNames.dropdownDividerHidden : this._classNames.dropdownDivider;\n if (index! > 0) {\n return
    ;\n }\n return null;\n }\n\n private _renderHeader(item: IDropdownOption): JSX.Element {\n const { onRenderOption = this._onRenderOption } = this.props;\n const { key, id } = item;\n const headerClassName = item.hidden\n ? this._classNames.dropdownItemHeaderHidden\n : this._classNames.dropdownItemHeader;\n\n return (\n
    \n {onRenderOption(item, this._onRenderOption)}\n
    \n );\n }\n\n private _renderOption = (item: IDropdownOption): JSX.Element => {\n const {\n onRenderOption = this._onRenderOption,\n hoisted: { selectedIndices = [] },\n } = this.props;\n const isItemSelected =\n item.index !== undefined && selectedIndices ? selectedIndices.indexOf(item.index) > -1 : false;\n\n // select the right className based on the combination of selected/disabled\n const itemClassName = item.hidden // predicate: item hidden\n ? this._classNames.dropdownItemHidden\n : isItemSelected && item.disabled === true // predicate: both selected and disabled\n ? this._classNames.dropdownItemSelectedAndDisabled\n : isItemSelected // predicate: selected only\n ? this._classNames.dropdownItemSelected\n : item.disabled === true // predicate: disabled only\n ? this._classNames.dropdownItemDisabled\n : this._classNames.dropdownItem;\n\n const { title } = item;\n\n // define the id and label id (for multiselect checkboxes)\n const id = this._listId + item.index;\n const labelId = item.id ?? id + '-label';\n\n const multiSelectItemStyles = this._classNames.subComponentStyles\n ? (this._classNames.subComponentStyles.multiSelectItem as IStyleFunctionOrObject<\n ICheckboxStyleProps,\n ICheckboxStyles\n >)\n : undefined;\n\n return !this.props.multiSelect ? (\n \n {onRenderOption(item, this._onRenderOption)}\n \n ) : (\n \n );\n };\n\n /** Render content of item (i.e. text/icon inside of button) */\n private _onRenderOption = (item: IDropdownOption): JSX.Element => {\n return {item.text};\n };\n\n /*\n * Render content of a multiselect item label.\n * Text within the label is aria-hidden, to prevent duplicate input/label exposure\n */\n private _onRenderMultiselectOption = (item: IDropdownOption): JSX.Element => {\n return (\n \n {item.text}\n \n );\n };\n\n /** Render custom label for multiselect checkbox items */\n private _onRenderItemLabel = (item: IDropdownOption): JSX.Element | null => {\n const { onRenderOption = this._onRenderMultiselectOption } = this.props;\n return onRenderOption(item, this._onRenderMultiselectOption);\n };\n\n private _onPositioned = (positions?: ICalloutPositionedInfo): void => {\n if (this._focusZone.current) {\n // Focusing an element can trigger a reflow. Making this wait until there is an animation\n // frame can improve perf significantly.\n this._requestAnimationFrame(() => {\n const selectedIndices = this.props.hoisted.selectedIndices;\n if (this._focusZone.current) {\n if (\n !this._hasBeenPositioned &&\n selectedIndices &&\n selectedIndices[0] &&\n !this.props.options[selectedIndices[0]].disabled\n ) {\n const element: HTMLElement | null = getDocument()!.getElementById(`${this._id}-list${selectedIndices[0]}`);\n if (element) {\n this._focusZone.current.focusElement(element);\n }\n this._hasBeenPositioned = true;\n } else {\n this._focusZone.current.focus();\n }\n }\n });\n }\n\n if (!this.state.calloutRenderEdge || this.state.calloutRenderEdge !== positions!.targetEdge) {\n this.setState({\n calloutRenderEdge: positions!.targetEdge,\n });\n }\n };\n\n private _onItemClick = (item: IDropdownOption): ((event: React.MouseEvent) => void) => {\n return (event: React.MouseEvent): void => {\n if (!item.disabled) {\n this.setSelectedIndex(event, item.index!);\n if (!this.props.multiSelect) {\n // only close the callout when it's in single-select mode\n this.setState({\n isOpen: false,\n });\n }\n }\n };\n };\n\n /**\n * Scroll handler for the callout to make sure the mouse events\n * for updating focus are not interacting during scroll\n */\n private _onScroll = (): void => {\n const win = getWindowEx(this.context)!; // can only be called on the client\n if (!this._isScrollIdle && this._scrollIdleTimeoutId !== undefined) {\n win.clearTimeout(this._scrollIdleTimeoutId);\n this._scrollIdleTimeoutId = undefined;\n } else {\n this._isScrollIdle = false;\n }\n\n this._scrollIdleTimeoutId = win.setTimeout(() => {\n this._isScrollIdle = true;\n }, this._scrollIdleDelay);\n };\n\n private _onItemMouseEnter(item: any, ev: React.MouseEvent): void {\n if (this._shouldIgnoreMouseEvent()) {\n return;\n }\n\n const targetElement = ev.currentTarget as HTMLElement;\n targetElement.focus();\n }\n\n private _onItemMouseMove(item: any, ev: React.MouseEvent): void {\n const doc = getDocumentEx(this.context)!; // can only be called on the client\n const targetElement = ev.currentTarget as HTMLElement;\n this._gotMouseMove = true;\n\n if (!this._isScrollIdle || doc.activeElement === targetElement) {\n return;\n }\n\n targetElement.focus();\n }\n\n private _onMouseItemLeave = (item: any, ev: React.MouseEvent): void => {\n if (this._shouldIgnoreMouseEvent()) {\n return;\n }\n\n /**\n * IE11 focus() method forces parents to scroll to top of element.\n * Edge and IE expose a setActive() function for focusable divs that\n * sets the page focus but does not scroll the parent element.\n */\n if (this._host.current) {\n if ((this._host.current as any).setActive) {\n try {\n (this._host.current as any).setActive();\n } catch (e) {\n /* no-op */\n }\n } else {\n this._host.current.focus();\n }\n }\n };\n\n private _shouldIgnoreMouseEvent(): boolean {\n return !this._isScrollIdle || !this._gotMouseMove;\n }\n\n private _onDismiss = (): void => {\n this.setState({ isOpen: false });\n };\n\n private _onDropdownBlur = (ev: React.FocusEvent): void => {\n // If Dropdown disabled do not proceed with this logic.\n const disabled = this._isDisabled();\n if (disabled) {\n return;\n }\n\n if (this.state.isOpen) {\n // Do not call onBlur or update focus state when the callout is opened\n return;\n }\n\n this.setState({ hasFocus: false });\n\n if (this.props.onBlur) {\n this.props.onBlur(ev);\n }\n };\n\n private _onDropdownKeyDown = (ev: React.KeyboardEvent): void => {\n // If Dropdown disabled do not process any keyboard events.\n const disabled = this._isDisabled();\n if (disabled) {\n return;\n }\n\n // Take note if we are processing an alt (option) or meta (command) keydown.\n // See comment in _shouldHandleKeyUp for reasoning.\n this._lastKeyDownWasAltOrMeta = this._isAltOrMeta(ev);\n\n if (this.props.onKeyDown) {\n this.props.onKeyDown(ev);\n if (ev.defaultPrevented) {\n return;\n }\n }\n\n let newIndex: number | undefined;\n const selectedIndex = this.props.hoisted.selectedIndices.length ? this.props.hoisted.selectedIndices[0] : -1;\n const containsExpandCollapseModifier = ev.altKey || ev.metaKey;\n const isOpen = this.state.isOpen;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.which) {\n case KeyCodes.enter:\n this.setState({\n isOpen: !isOpen,\n });\n break;\n\n case KeyCodes.escape:\n if (!isOpen) {\n return;\n }\n\n this.setState({\n isOpen: false,\n });\n break;\n\n case KeyCodes.up:\n if (containsExpandCollapseModifier) {\n if (isOpen) {\n this.setState({ isOpen: false });\n break;\n }\n\n return;\n }\n if (this.props.multiSelect) {\n this.setState({ isOpen: true });\n } else if (!this._isDisabled()) {\n newIndex = this._moveIndex(ev, -1, selectedIndex - 1, selectedIndex);\n }\n break;\n\n case KeyCodes.down:\n if (containsExpandCollapseModifier) {\n ev.stopPropagation();\n ev.preventDefault();\n }\n if ((containsExpandCollapseModifier && !isOpen) || this.props.multiSelect) {\n this.setState({ isOpen: true });\n } else if (!this._isDisabled()) {\n newIndex = this._moveIndex(ev, 1, selectedIndex + 1, selectedIndex);\n }\n break;\n\n case KeyCodes.home:\n if (!this.props.multiSelect) {\n newIndex = this._moveIndex(ev, 1, 0, selectedIndex);\n }\n break;\n\n case KeyCodes.end:\n if (!this.props.multiSelect) {\n newIndex = this._moveIndex(ev, -1, this.props.options.length - 1, selectedIndex);\n }\n break;\n\n case KeyCodes.space:\n // event handled in _onDropdownKeyUp\n break;\n\n default:\n return;\n }\n\n if (newIndex !== selectedIndex) {\n ev.stopPropagation();\n ev.preventDefault();\n }\n };\n\n private _onDropdownKeyUp = (ev: React.KeyboardEvent): void => {\n // If Dropdown disabled do not process any keyboard events.\n const disabled = this._isDisabled();\n if (disabled) {\n return;\n }\n\n const shouldHandleKey = this._shouldHandleKeyUp(ev);\n const isOpen = this.state.isOpen;\n\n if (this.props.onKeyUp) {\n this.props.onKeyUp(ev);\n if (ev.defaultPrevented) {\n return;\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.which) {\n case KeyCodes.space:\n this.setState({\n isOpen: !isOpen,\n });\n break;\n\n default:\n if (shouldHandleKey && isOpen) {\n this.setState({ isOpen: false });\n }\n return;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n };\n\n /**\n * Returns true if the key for the event is alt (Mac option) or meta (Mac command).\n */\n private _isAltOrMeta(ev: React.KeyboardEvent): boolean {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return ev.which === KeyCodes.alt || ev.key === 'Meta';\n }\n\n /**\n * We close the menu on key up only if ALL of the following are true:\n * - Most recent key down was alt or meta (command)\n * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to\n * expand/collapse the menu)\n * - We're not on a Mac (or iOS)\n *\n * This is because on Windows, pressing alt moves focus to the application menu bar or similar,\n * closing any open context menus. There is not a similar behavior on Macs.\n */\n private _shouldHandleKeyUp(ev: React.KeyboardEvent): boolean {\n const keyPressIsAltOrMetaAlone = this._lastKeyDownWasAltOrMeta && this._isAltOrMeta(ev);\n this._lastKeyDownWasAltOrMeta = false;\n return !!keyPressIsAltOrMetaAlone && !(isMac() || isIOS());\n }\n\n private _onZoneKeyDown = (ev: React.KeyboardEvent): void => {\n let elementToFocus;\n\n // Take note if we are processing an alt (option) or meta (command) keydown.\n // See comment in _shouldHandleKeyUp for reasoning.\n this._lastKeyDownWasAltOrMeta = this._isAltOrMeta(ev);\n const containsExpandCollapseModifier = ev.altKey || ev.metaKey;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.which) {\n case KeyCodes.up:\n if (containsExpandCollapseModifier) {\n this.setState({ isOpen: false });\n } else {\n if (this._host.current) {\n elementToFocus = getLastFocusable(this._host.current, this._host.current.lastChild as HTMLElement, true);\n }\n }\n break;\n\n // All directional keystrokes should be canceled when the zone is rendered.\n // This avoids the body scroll from reacting and thus dismissing the dropdown.\n case KeyCodes.home:\n case KeyCodes.end:\n case KeyCodes.pageUp:\n case KeyCodes.pageDown:\n break;\n\n case KeyCodes.down:\n if (!containsExpandCollapseModifier && this._host.current) {\n elementToFocus = getFirstFocusable(this._host.current, this._host.current.firstChild as HTMLElement, true);\n }\n break;\n\n case KeyCodes.escape:\n this.setState({ isOpen: false });\n break;\n\n case KeyCodes.tab:\n this.setState({ isOpen: false });\n\n const document = getDocument();\n\n if (document) {\n if (ev.shiftKey) {\n getPreviousElement(document.body, this._dropDown.current, false, false, true, true)?.focus();\n } else {\n getNextElement(document.body, this._dropDown.current, false, false, true, true)?.focus();\n }\n }\n break;\n\n default:\n return;\n }\n\n if (elementToFocus) {\n elementToFocus.focus();\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n };\n\n private _onZoneKeyUp = (ev: React.KeyboardEvent): void => {\n const shouldHandleKey = this._shouldHandleKeyUp(ev);\n\n if (shouldHandleKey && this.state.isOpen) {\n this.setState({ isOpen: false });\n ev.preventDefault();\n }\n };\n\n private _onDropdownClick = (ev: React.MouseEvent): void => {\n if (this.props.onClick) {\n this.props.onClick(ev);\n if (ev.defaultPrevented) {\n return;\n }\n }\n\n const { isOpen } = this.state;\n const disabled = this._isDisabled();\n\n if (!disabled && !this._shouldOpenOnFocus()) {\n this.setState({\n isOpen: !isOpen,\n });\n }\n\n this._isFocusedByClick = false; // reset\n };\n\n private _onDropdownMouseDown = (): void => {\n this._isFocusedByClick = true;\n };\n\n private _onFocus = (ev: React.FocusEvent): void => {\n const disabled = this._isDisabled();\n\n if (!disabled) {\n if (this.props.onFocus) {\n this.props.onFocus(ev);\n }\n const state: Pick | Pick = { hasFocus: true };\n if (this._shouldOpenOnFocus()) {\n (state as Pick).isOpen = true;\n }\n\n this.setState(state);\n }\n };\n\n /**\n * Because the isDisabled prop is deprecated, we have had to repeat this logic all over the place.\n * This helper method avoids all the repetition.\n */\n private _isDisabled: () => boolean | undefined = () => {\n let { disabled } = this.props;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { isDisabled } = this.props;\n\n // Remove this deprecation workaround at 1.0.0\n if (disabled === undefined) {\n disabled = isDisabled;\n }\n\n return disabled;\n };\n\n private _onRenderLabel = (props: IDropdownProps): JSX.Element | null => {\n const { label, required, disabled } = props;\n\n const labelStyles = this._classNames.subComponentStyles\n ? (this._classNames.subComponentStyles.label as IStyleFunctionOrObject)\n : undefined;\n\n return label ? (\n \n {label}\n \n ) : null;\n };\n\n /**\n * Returns true if dropdown should set to open on focus.\n * Otherwise, isOpen state should be toggled on click\n */\n private _shouldOpenOnFocus(): boolean {\n const { hasFocus } = this.state;\n const { openOnKeyboardFocus } = this.props;\n return !this._isFocusedByClick && openOnKeyboardFocus === true && !hasFocus;\n }\n}\n","import { IsFocusVisibleClassName } from '../../Utilities';\nimport { RectangleEdge } from '../../Positioning';\nimport {\n FontWeights,\n HighContrastSelector,\n getGlobalClassNames,\n normalize,\n HighContrastSelectorWhite,\n getScreenSelector,\n ScreenWidthMinMedium,\n getHighContrastNoAdjustStyle,\n} from '../../Styling';\nimport type { IDropdownStyles, IDropdownStyleProps } from './Dropdown.types';\nimport type { IStyleFunction } from '../../Utilities';\nimport type { IRawStyle, IStyle } from '../../Styling';\n\nconst GlobalClassNames = {\n root: 'ms-Dropdown-container',\n label: 'ms-Dropdown-label',\n dropdown: 'ms-Dropdown',\n title: 'ms-Dropdown-title',\n caretDownWrapper: 'ms-Dropdown-caretDownWrapper',\n caretDown: 'ms-Dropdown-caretDown',\n callout: 'ms-Dropdown-callout',\n panel: 'ms-Dropdown-panel',\n dropdownItems: 'ms-Dropdown-items',\n dropdownItem: 'ms-Dropdown-item',\n dropdownDivider: 'ms-Dropdown-divider',\n dropdownOptionText: 'ms-Dropdown-optionText',\n dropdownItemHeader: 'ms-Dropdown-header',\n titleIsPlaceHolder: 'ms-Dropdown-titleIsPlaceHolder',\n titleHasError: 'ms-Dropdown-title--hasError',\n};\n\nconst DROPDOWN_HEIGHT = 32;\nconst DROPDOWN_ITEM_HEIGHT = 36;\n\nconst highContrastAdjustMixin = {\n [`${HighContrastSelector}, ${HighContrastSelectorWhite.replace('@media ', '')}`]: {\n ...getHighContrastNoAdjustStyle(),\n },\n};\n\nconst highContrastItemAndTitleStateMixin: IRawStyle = {\n selectors: {\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n color: 'HighlightText',\n\n [`.${IsFocusVisibleClassName} &:focus:after`]: {\n borderColor: 'HighlightText',\n },\n },\n ['.ms-Checkbox-checkbox']: {\n [HighContrastSelector]: {\n borderColor: 'HighlightText',\n },\n },\n ...highContrastAdjustMixin,\n },\n};\n\nconst highContrastBorderState: IRawStyle = {\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n },\n },\n};\n\nconst MinimumScreenSelector = getScreenSelector(0, ScreenWidthMinMedium);\n\nexport const getStyles: IStyleFunction = props => {\n const {\n theme,\n hasError,\n hasLabel,\n className,\n isOpen,\n disabled,\n required,\n isRenderingPlaceholder,\n panelClassName,\n calloutClassName,\n calloutRenderEdge,\n } = props;\n\n if (!theme) {\n throw new Error('theme is undefined or null in base Dropdown getStyles function.');\n }\n\n const globalClassnames = getGlobalClassNames(GlobalClassNames, theme);\n const { palette, semanticColors, effects, fonts } = theme;\n\n const rootHoverFocusActiveSelectorNeutralDarkMixin: IStyle = {\n color: semanticColors.menuItemTextHovered,\n };\n\n const rootHoverFocusActiveSelectorNeutralPrimaryMixin: IStyle = {\n color: semanticColors.menuItemText,\n };\n\n const borderColorError: IStyle = {\n borderColor: semanticColors.errorText,\n };\n\n const dropdownItemStyle: IStyle = [\n globalClassnames.dropdownItem,\n {\n backgroundColor: 'transparent',\n boxSizing: 'border-box',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n padding: '0 8px',\n width: '100%',\n minHeight: DROPDOWN_ITEM_HEIGHT,\n lineHeight: 20,\n height: 0,\n position: 'relative',\n border: '1px solid transparent',\n borderRadius: 0,\n wordWrap: 'break-word',\n overflowWrap: 'break-word',\n textAlign: 'left',\n\n '.ms-Button-flexContainer': {\n width: '100%',\n },\n },\n ];\n\n const dropdownHeaderStyle: IStyle = [\n globalClassnames.dropdownItemHeader,\n {\n ...fonts.medium,\n fontWeight: FontWeights.semibold,\n color: semanticColors.menuHeader,\n background: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n height: DROPDOWN_ITEM_HEIGHT,\n lineHeight: DROPDOWN_ITEM_HEIGHT,\n cursor: 'default',\n padding: '0 8px',\n userSelect: 'none',\n textAlign: 'left',\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ];\n\n const selectedItemBackgroundColor = semanticColors.menuItemBackgroundPressed;\n\n const itemSelectors = (isSelected: boolean = false) => {\n return {\n selectors: {\n '&:hover': [\n {\n color: semanticColors.menuItemTextHovered,\n backgroundColor: !isSelected ? semanticColors.menuItemBackgroundHovered : selectedItemBackgroundColor,\n },\n highContrastItemAndTitleStateMixin,\n ],\n '&.is-multi-select:hover': [\n { backgroundColor: !isSelected ? 'transparent' : selectedItemBackgroundColor },\n highContrastItemAndTitleStateMixin,\n ],\n '&:active:hover': [\n {\n color: semanticColors.menuItemTextHovered,\n backgroundColor: !isSelected\n ? semanticColors.menuItemBackgroundPressed\n : semanticColors.menuItemBackgroundHovered,\n },\n highContrastItemAndTitleStateMixin,\n ],\n [`.${IsFocusVisibleClassName} &:focus:after, :host(.${IsFocusVisibleClassName}) &:focus:after`]: {\n left: 0,\n top: 0,\n bottom: 0,\n right: 0,\n [HighContrastSelector]: {\n inset: '2px',\n },\n },\n [HighContrastSelector]: {\n border: 'none',\n },\n },\n };\n };\n\n const dropdownItemSelected: IStyle = [\n ...dropdownItemStyle,\n {\n backgroundColor: selectedItemBackgroundColor,\n color: semanticColors.menuItemTextHovered,\n },\n itemSelectors(true),\n highContrastItemAndTitleStateMixin,\n ];\n\n const dropdownItemDisabled: IStyle = [\n ...dropdownItemStyle,\n {\n color: semanticColors.disabledText,\n cursor: 'default',\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n border: 'none',\n },\n },\n },\n ];\n\n const titleOpenBorderRadius =\n calloutRenderEdge === RectangleEdge.bottom\n ? `${effects.roundedCorner2} ${effects.roundedCorner2} 0 0`\n : `0 0 ${effects.roundedCorner2} ${effects.roundedCorner2}`;\n\n const calloutOpenBorderRadius =\n calloutRenderEdge === RectangleEdge.bottom\n ? `0 0 ${effects.roundedCorner2} ${effects.roundedCorner2}`\n : `${effects.roundedCorner2} ${effects.roundedCorner2} 0 0`;\n\n return {\n root: [globalClassnames.root, className],\n label: globalClassnames.label,\n dropdown: [\n globalClassnames.dropdown,\n normalize,\n fonts.medium,\n {\n color: semanticColors.menuItemText,\n borderColor: semanticColors.focusBorder,\n position: 'relative',\n outline: 0,\n userSelect: 'none',\n selectors: {\n ['&:hover .' + globalClassnames.title]: [\n !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin,\n { borderColor: isOpen ? palette.neutralSecondary : palette.neutralPrimary },\n highContrastBorderState,\n ],\n ['&:focus .' + globalClassnames.title]: [\n !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin,\n { selectors: { [HighContrastSelector]: { color: 'Highlight' } } },\n ],\n\n ['&:focus:after']: [\n {\n pointerEvents: 'none',\n content: \"''\",\n position: 'absolute',\n boxSizing: 'border-box',\n top: '0px',\n left: '0px',\n width: '100%',\n height: '100%',\n // see https://github.com/microsoft/fluentui/pull/9182 for semantic color disc\n border: !disabled ? `2px solid ${palette.themePrimary}` : 'none',\n borderRadius: '2px',\n\n selectors: {\n [HighContrastSelector]: {\n color: 'Highlight',\n },\n },\n },\n ],\n ['&:active .' + globalClassnames.title]: [\n !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin,\n { borderColor: palette.themePrimary },\n highContrastBorderState,\n ],\n\n ['&:hover .' + globalClassnames.caretDown]: !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n ['&:focus .' + globalClassnames.caretDown]: [\n !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n { selectors: { [HighContrastSelector]: { color: 'Highlight' } } },\n ],\n ['&:active .' + globalClassnames.caretDown]: !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n\n ['&:hover .' + globalClassnames.titleIsPlaceHolder]:\n !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n ['&:focus .' + globalClassnames.titleIsPlaceHolder]:\n !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n ['&:active .' + globalClassnames.titleIsPlaceHolder]:\n !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin,\n\n ['&:hover .' + globalClassnames.titleHasError]: borderColorError,\n ['&:active .' + globalClassnames.titleHasError]: borderColorError,\n },\n },\n isOpen && 'is-open',\n disabled && 'is-disabled',\n required && 'is-required',\n required &&\n !hasLabel && {\n selectors: {\n ':before': {\n content: `'*'`,\n color: semanticColors.errorText,\n position: 'absolute',\n top: -5,\n right: -10,\n },\n [HighContrastSelector]: {\n selectors: {\n ':after': {\n right: -14, // moving the * 4 pixel to right to alleviate border clipping in HC mode.\n },\n },\n },\n },\n },\n ],\n title: [\n globalClassnames.title,\n normalize,\n {\n backgroundColor: semanticColors.inputBackground,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: semanticColors.inputBorder,\n borderRadius: isOpen ? titleOpenBorderRadius : effects.roundedCorner2,\n cursor: 'pointer',\n display: 'block',\n height: DROPDOWN_HEIGHT,\n lineHeight: DROPDOWN_HEIGHT - 2,\n padding: `0 28px 0 8px`,\n position: 'relative',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n },\n isRenderingPlaceholder && [globalClassnames.titleIsPlaceHolder, { color: semanticColors.inputPlaceholderText }],\n hasError && [globalClassnames.titleHasError, borderColorError],\n disabled && {\n backgroundColor: semanticColors.disabledBackground,\n border: 'none',\n color: semanticColors.disabledText,\n cursor: 'default',\n selectors: {\n [HighContrastSelector]: {\n border: '1px solid GrayText',\n color: 'GrayText',\n backgroundColor: 'Window',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ],\n caretDownWrapper: [\n globalClassnames.caretDownWrapper,\n {\n height: DROPDOWN_HEIGHT,\n lineHeight: DROPDOWN_HEIGHT - 2, // height minus the border\n paddingTop: 1,\n position: 'absolute',\n right: 8,\n top: 0,\n },\n !disabled && {\n cursor: 'pointer',\n },\n ],\n caretDown: [\n globalClassnames.caretDown,\n { color: palette.neutralSecondary, fontSize: fonts.small.fontSize, pointerEvents: 'none' },\n disabled && {\n color: semanticColors.disabledText,\n selectors: {\n [HighContrastSelector]: { color: 'GrayText', ...getHighContrastNoAdjustStyle() },\n },\n },\n ],\n errorMessage: { color: semanticColors.errorText, ...theme.fonts.small, paddingTop: 5 },\n callout: [\n globalClassnames.callout,\n {\n boxShadow: effects.elevation8,\n borderRadius: calloutOpenBorderRadius,\n selectors: {\n ['.ms-Callout-main']: { borderRadius: calloutOpenBorderRadius },\n },\n },\n calloutClassName,\n ],\n dropdownItemsWrapper: { selectors: { '&:focus': { outline: 0 } } },\n dropdownItems: [globalClassnames.dropdownItems, { display: 'block' }],\n dropdownItem: [...dropdownItemStyle, itemSelectors()],\n dropdownItemSelected,\n dropdownItemDisabled,\n dropdownItemSelectedAndDisabled: [dropdownItemSelected, dropdownItemDisabled, { backgroundColor: 'transparent' }],\n dropdownItemHidden: [...dropdownItemStyle, { display: 'none' }],\n dropdownDivider: [globalClassnames.dropdownDivider, { height: 1, backgroundColor: semanticColors.bodyDivider }],\n dropdownDividerHidden: [globalClassnames.dropdownDivider, { display: 'none' }],\n dropdownOptionText: [\n globalClassnames.dropdownOptionText,\n {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n minWidth: 0,\n maxWidth: '100%',\n wordWrap: 'break-word',\n overflowWrap: 'break-word',\n margin: '1px',\n },\n ],\n dropdownItemHeader: dropdownHeaderStyle,\n dropdownItemHeaderHidden: [...dropdownHeaderStyle, { display: 'none' }],\n subComponentStyles: {\n label: { root: { display: 'inline-block' } },\n multiSelectItem: {\n root: {\n padding: 0,\n },\n label: {\n alignSelf: 'stretch',\n padding: '0 8px',\n width: '100%',\n },\n input: {\n selectors: {\n // eslint-disable-next-line @fluentui/max-len\n [`.${IsFocusVisibleClassName} &:focus + label::before, :host(.${IsFocusVisibleClassName}) &:focus + label::before`]:\n {\n outlineOffset: '0px',\n },\n },\n },\n },\n panel: {\n root: [panelClassName],\n main: {\n selectors: {\n // In case of extra small screen sizes\n [MinimumScreenSelector]: {\n // panelWidth xs\n width: 272,\n },\n },\n },\n contentInner: { padding: '0 0 20px' },\n },\n },\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { DropdownBase } from './Dropdown.base';\nimport { getStyles } from './Dropdown.styles';\nimport type { IDropdownProps, IDropdownStyleProps, IDropdownStyles } from './Dropdown.types';\n\nexport const Dropdown: React.FunctionComponent = styled<\n IDropdownProps,\n IDropdownStyleProps,\n IDropdownStyles\n>(DropdownBase, getStyles, undefined, {\n scope: 'Dropdown',\n});\nDropdown.displayName = 'Dropdown';\n","import * as React from 'react';\nimport {\n getActiveElement,\n getEventTarget,\n elementContains,\n getNativeProps,\n divProperties,\n getFirstTabbable,\n getLastTabbable,\n getNextElement,\n focusAsync,\n getPropsWithDefaults,\n modalize,\n on,\n useHasMergeStylesShadowRootContext,\n} from '../../Utilities';\nimport { useId, useConst, useMergedRefs, useEventCallback, usePrevious, useUnmount } from '@fluentui/react-hooks';\nimport { useDocument } from '../../WindowProvider';\nimport type { IRefObject } from '../../Utilities';\nimport type { IFocusTrapZoneProps, IFocusTrapZone } from './FocusTrapZone.types';\nimport { useWindowEx } from '../../utilities/dom';\n\ninterface IFocusTrapZoneInternalState {\n previouslyFocusedElementInTrapZone?: HTMLElement;\n hasFocus: boolean;\n /** ID tracked in focusStack. Don't respect prop updates in case the ID changes while the FTZ is active. */\n focusStackId: string;\n}\n\nconst COMPONENT_NAME = 'FocusTrapZone';\n\nconst DEFAULT_PROPS = {\n disabled: false,\n disableFirstFocus: false,\n forceFocusInsideTrap: true,\n isClickableOutsideFocusTrap: false,\n // Hardcoding completely uncontrolled flag for proper interop with FluentUI V9.\n 'data-tabster': '{\"uncontrolled\": {\"completely\": true}}',\n};\n\nconst useComponentRef = (\n componentRef: IRefObject | undefined,\n previouslyFocusedElement: HTMLElement | undefined,\n focusFTZ: () => void,\n) => {\n React.useImperativeHandle(\n componentRef,\n () => ({\n get previouslyFocusedElement() {\n return previouslyFocusedElement;\n },\n focus: focusFTZ,\n }),\n [focusFTZ, previouslyFocusedElement],\n );\n};\n\nexport const FocusTrapZone: React.FunctionComponent & {\n /**\n * Stack of active FocusTrapZone identifiers, exposed for testing purposes only.\n * (This is always set, just marked as optional to avoid a cast in the component definition.)\n * @internal\n */\n focusStack?: string[];\n} = React.forwardRef((propsWithoutDefaults, ref) => {\n const root = React.useRef(null);\n const firstBumper = React.useRef(null);\n const lastBumper = React.useRef(null);\n const mergedRootRef = useMergedRefs(root, ref) as React.Ref;\n const doc = useDocument();\n const win = useWindowEx()!;\n const inShadow = useHasMergeStylesShadowRootContext();\n\n const isFirstRender = usePrevious(false) ?? true;\n\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n\n const internalState = useConst({\n hasFocus: false,\n focusStackId: useId('ftz-', props.id),\n });\n\n const {\n children,\n componentRef,\n disabled,\n disableFirstFocus,\n forceFocusInsideTrap,\n focusPreviouslyFocusedInnerElement,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n firstFocusableSelector,\n firstFocusableTarget,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n disableRestoreFocus = props.ignoreExternalFocusing,\n isClickableOutsideFocusTrap,\n enableAriaHiddenSiblings,\n } = props;\n\n const bumperProps = {\n 'aria-hidden': true,\n style: {\n pointerEvents: 'none',\n position: 'fixed', // 'fixed' prevents browsers from scrolling to bumpers when viewport does not contain them\n },\n tabIndex: disabled ? -1 : 0, // make bumpers tabbable only when enabled\n 'data-is-visible': true,\n 'data-is-focus-trap-zone-bumper': true,\n } as React.HTMLAttributes;\n\n const focusElementAsync = React.useCallback((element: HTMLElement) => {\n if (element !== firstBumper.current && element !== lastBumper.current) {\n focusAsync(element);\n }\n }, []);\n\n /**\n * Callback to force focus into FTZ (named to avoid overlap with global focus() callback).\n * useEventCallback always returns the same callback reference but updates the implementation\n * every render to avoid stale captured values.\n */\n const focusFTZ = useEventCallback(() => {\n if (!root.current) {\n return; // not done mounting\n }\n\n const { previouslyFocusedElementInTrapZone } = internalState;\n if (\n focusPreviouslyFocusedInnerElement &&\n previouslyFocusedElementInTrapZone &&\n elementContains(root.current, previouslyFocusedElementInTrapZone)\n ) {\n // focus on the last item that had focus in the zone before we left the zone\n focusElementAsync(previouslyFocusedElementInTrapZone);\n return;\n }\n\n let firstFocusableChild: HTMLElement | null = null;\n\n if (typeof firstFocusableTarget === 'string') {\n firstFocusableChild = root.current.querySelector(firstFocusableTarget);\n } else if (firstFocusableTarget) {\n firstFocusableChild = firstFocusableTarget(root.current);\n } else if (firstFocusableSelector) {\n const focusSelector =\n typeof firstFocusableSelector === 'string' ? firstFocusableSelector : firstFocusableSelector();\n firstFocusableChild = root.current.querySelector('.' + focusSelector);\n }\n\n // Fall back to first element if query selector did not match any elements.\n if (!firstFocusableChild) {\n firstFocusableChild = getNextElement(\n root.current,\n root.current.firstChild as HTMLElement,\n false,\n false,\n false,\n true,\n undefined,\n undefined,\n undefined,\n inShadow,\n );\n }\n\n if (firstFocusableChild) {\n focusElementAsync(firstFocusableChild);\n }\n });\n\n /** Used in root div focus/blur handlers */\n const focusBumper = (isFirstBumper: boolean) => {\n if (disabled || !root.current) {\n return;\n }\n\n const nextFocusable =\n isFirstBumper === internalState.hasFocus\n ? getLastTabbable(root.current, lastBumper.current!, true, false, inShadow)\n : getFirstTabbable(root.current, firstBumper.current!, true, false, inShadow);\n\n if (nextFocusable) {\n if (nextFocusable === firstBumper.current || nextFocusable === lastBumper.current) {\n // This can happen when FTZ contains no tabbable elements.\n // focusFTZ() will take care of finding a focusable element in FTZ.\n focusFTZ();\n } else {\n nextFocusable.focus();\n }\n }\n };\n\n /** Root div blur handler (doesn't need useCallback since it's for a native element) */\n const onRootBlurCapture = (ev: React.FocusEvent) => {\n props.onBlurCapture?.(ev);\n let relatedTarget = ev.relatedTarget;\n if (ev.relatedTarget === null) {\n // In IE11, due to lack of support, event.relatedTarget is always\n // null making every onBlur call to be \"outside\" of the root\n // even when it's not. Using document.activeElement is another way\n // for us to be able to get what the relatedTarget without relying\n // on the event\n relatedTarget = getActiveElement(doc!) as Element;\n }\n if (!elementContains(root.current, relatedTarget as HTMLElement)) {\n internalState.hasFocus = false;\n }\n };\n\n /** Root div focus handler (doesn't need useCallback since it's for a native element) */\n const onRootFocusCapture = (ev: React.FocusEvent) => {\n props.onFocusCapture?.(ev);\n\n if (ev.target === firstBumper.current) {\n focusBumper(true);\n } else if (ev.target === lastBumper.current) {\n focusBumper(false);\n }\n\n internalState.hasFocus = true;\n\n if (ev.target !== ev.currentTarget && !(ev.target === firstBumper.current || ev.target === lastBumper.current)) {\n // every time focus changes within the trap zone, remember the focused element so that\n // it can be restored if focus leaves the pane and returns via keystroke (i.e. via a call to this.focus(true))\n internalState.previouslyFocusedElementInTrapZone = getEventTarget(ev.nativeEvent) as HTMLElement;\n }\n };\n\n /** Called to restore focus on unmount or props change. (useEventCallback ensures latest prop values are used.) */\n const returnFocusToInitiator = useEventCallback((elementToFocusOnDismiss: HTMLElement | null) => {\n FocusTrapZone.focusStack = FocusTrapZone.focusStack!.filter(value => internalState.focusStackId !== value);\n\n if (!doc) {\n return;\n }\n\n // Do not use getActiveElement() here.\n // When the FTZ is in shadow DOM focus returns to the\n // shadow host rather than body so we need to be\n // able to inspect that\n const activeElement = doc.activeElement as HTMLElement;\n if (\n !disableRestoreFocus &&\n typeof elementToFocusOnDismiss?.focus === 'function' &&\n // only restore focus if the current focused element is within the FTZ, or if nothing is focused\n (elementContains(root.current, activeElement) || activeElement === doc.body || activeElement.shadowRoot)\n ) {\n focusElementAsync(elementToFocusOnDismiss);\n }\n });\n\n /** Called in window event handlers. (useEventCallback ensures latest prop values are used.) */\n const forceFocusOrClickInTrap = useEventCallback((ev: FocusEvent | MouseEvent): void => {\n // be sure to use the latest values here\n if (disabled) {\n return;\n }\n if (internalState.focusStackId === FocusTrapZone.focusStack!.slice(-1)[0]) {\n const targetElement = getEventTarget(ev);\n if (targetElement && !elementContains(root.current, targetElement)) {\n if (doc && getActiveElement(doc) === doc.body) {\n setTimeout(() => {\n if (doc && getActiveElement(doc) === doc.body) {\n focusFTZ();\n internalState.hasFocus = true; // set focus here since we stop event propagation\n }\n }, 0);\n } else {\n focusFTZ();\n internalState.hasFocus = true; // set focus here since we stop event propagation\n }\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n });\n\n // Update window event handlers when relevant props change\n React.useEffect(() => {\n const disposables: Array<() => void> = [];\n\n if (forceFocusInsideTrap) {\n disposables.push(on(win, 'focus', forceFocusOrClickInTrap, true));\n }\n if (!isClickableOutsideFocusTrap) {\n disposables.push(on(win, 'click', forceFocusOrClickInTrap, true));\n }\n\n return () => {\n disposables.forEach(dispose => dispose());\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change\n }, [forceFocusInsideTrap, isClickableOutsideFocusTrap, win]);\n\n // On prop change or first render, focus the FTZ and update focusStack if appropriate\n React.useEffect(() => {\n // Do nothing if disabled, or if it's a re-render and forceFocusInsideTrap is false\n // (to match existing behavior, the FTZ handles first focus even if forceFocusInsideTrap\n // is false, though it's debatable whether it should do this)\n if (disabled || (!isFirstRender && !forceFocusInsideTrap) || !root.current) {\n return;\n }\n\n // Transition from forceFocusInsideTrap / FTZ disabled to enabled (or initial mount)\n FocusTrapZone.focusStack!.push(internalState.focusStackId);\n\n const elementToFocusOnDismiss = props.elementToFocusOnDismiss || (getActiveElement(doc!) as HTMLElement | null);\n\n if (!disableFirstFocus && !elementContains(root.current, elementToFocusOnDismiss)) {\n focusFTZ();\n }\n\n // To match existing behavior, always return focus on cleanup (even if we didn't handle\n // initial focus), but it's debatable whether that's correct\n return () => returnFocusToInitiator(elementToFocusOnDismiss);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change\n }, [forceFocusInsideTrap, disabled]);\n\n // Handle modalization separately from first focus\n React.useEffect(() => {\n if (!disabled && enableAriaHiddenSiblings) {\n const unmodalize = modalize(root.current!);\n return unmodalize;\n }\n }, [disabled, enableAriaHiddenSiblings, root]);\n\n // Cleanup lifecyle method for internalState.\n useUnmount(() => {\n // Dispose of element references so the DOM Nodes can be garbage-collected\n delete internalState.previouslyFocusedElementInTrapZone;\n });\n\n useComponentRef(componentRef, internalState.previouslyFocusedElementInTrapZone, focusFTZ);\n\n return (\n >(props, divProperties)}\n ref={mergedRootRef}\n onFocusCapture={onRootFocusCapture}\n onBlurCapture={onRootBlurCapture}\n >\n
    \n {children}\n
    \n
    \n );\n});\n\nFocusTrapZone.displayName = COMPONENT_NAME;\nFocusTrapZone.focusStack = [];\n","import * as React from 'react';\nimport { classNames, MS_ICON } from './Icon.styles';\nimport { css, getNativeProps, htmlElementProperties, memoizeFunction } from '../../Utilities';\nimport { getIcon } from '../../Styling';\nimport type { IFontIconProps } from './Icon.types';\nimport type { IIconRecord, IIconSubsetRecord } from '../../Styling';\n\nexport interface IIconContent {\n children?: string | JSX.Element;\n iconClassName?: string;\n fontFamily?: string;\n mergeImageProps?: boolean;\n}\n\nexport const getIconContent = memoizeFunction(\n (iconName?: string): IIconContent | null => {\n const { code, subset }: Pick & { subset: Partial } = getIcon(iconName) || {\n subset: {},\n code: undefined,\n };\n\n if (!code) {\n return null;\n }\n\n return {\n children: code,\n iconClassName: subset.className,\n fontFamily: subset.fontFace && subset.fontFace.fontFamily,\n mergeImageProps: subset.mergeImageProps,\n };\n },\n undefined,\n true /*ignoreNullOrUndefinedResult */,\n);\n\n/**\n * Fast icon component which only supports font glyphs (not images) and can't be targeted by customizations.\n * To style the icon, use `className` or reference `ms-Icon` in CSS.\n * {@docCategory Icon}\n */\nexport const FontIcon: React.FunctionComponent = props => {\n const { iconName, className, style = {} } = props;\n const iconContent = getIconContent(iconName) || {};\n const { iconClassName, children, fontFamily, mergeImageProps } = iconContent;\n\n const nativeProps = getNativeProps>(props, htmlElementProperties);\n const accessibleName = props['aria-label'] || props.title;\n const containerProps =\n props['aria-label'] || props['aria-labelledby'] || props.title\n ? {\n role: mergeImageProps ? undefined : 'img',\n }\n : {\n 'aria-hidden': true,\n };\n\n let finalChildren = children;\n\n if (mergeImageProps) {\n if (typeof children === 'object' && typeof children.props === 'object' && accessibleName) {\n finalChildren = React.cloneElement(children, { alt: accessibleName });\n }\n }\n\n return (\n \n {finalChildren}\n \n );\n};\n\n/**\n * Memoized helper for rendering a FontIcon.\n * @param iconName - The name of the icon to use from the icon font.\n * @param className - Class name for styling the icon.\n * @param ariaLabel - Label for the icon for the benefit of screen readers.\n * {@docCategory Icon}\n */\nexport const getFontIcon = memoizeFunction((iconName: string, className?: string, ariaLabel?: string) => {\n return FontIcon({ iconName, className, 'aria-label': ariaLabel });\n});\n","import * as React from 'react';\nimport type { IImageProps } from '../Image/Image.types';\nimport type { IStyle, ITheme } from '../../Styling';\nimport type { IBaseProps, IStyleFunctionOrObject } from '../../Utilities';\n\n/**\n * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps`\n * {@docCategory Icon}\n */\nexport enum IconType {\n /**\n * Render using the fabric icon font.\n * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps`\n */\n default = 0,\n\n /**\n * Render using an image, where imageProps would be used.\n * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps`\n */\n image = 1,\n\n /**\n * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps`\n */\n Default = 100000,\n\n /**\n * @deprecated Icon type is inferred based on presence of `IIconProps.imageProps`\n */\n Image = 100001,\n}\n\n/**\n * {@docCategory Icon}\n */\nexport interface IIconProps extends IBaseProps, React.HTMLAttributes {\n /**\n * The name of the icon to use from the icon font.\n * If string is empty, a placeholder icon will be rendered the same width as an icon.\n */\n iconName?: string;\n\n /**\n * The aria label of the icon for the benefit of screen readers.\n * @deprecated Use the native prop `aria-label`\n */\n ariaLabel?: string;\n\n /**\n * The type of icon to render (image or icon font).\n * @deprecated Inferred based on the presence of `imageProps`\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n iconType?: IconType;\n\n /**\n * If rendering an image icon, these props will be passed to the Image component.\n */\n imageProps?: IImageProps;\n\n /**\n * If rendering an image icon, this component will be rendered in the event that loading the image fails.\n */\n imageErrorAs?: React.ComponentType;\n\n /**\n * Gets the styles for an Icon.\n */\n styles?: IStyleFunctionOrObject;\n theme?: ITheme;\n}\n\n/**\n * {@docCategory Icon}\n */\nexport interface IIconStyleProps {\n className?: string;\n iconClassName?: string;\n isPlaceholder: boolean;\n isImage: boolean;\n styles?: Partial;\n theme?: ITheme;\n}\n\n/**\n * {@docCategory Icon}\n */\nexport interface IIconStyles {\n root?: IStyle;\n\n /**\n * @deprecated Use `root`.\n */\n imageContainer?: IStyle;\n}\n\n/**\n * Props for a basic icon component which only supports font glyphs and can't be targeted by customizations.\n * {@docCategory Icon}\n */\nexport interface IFontIconProps extends React.HTMLAttributes {\n /**\n * The name of the icon to use from the icon font.\n * If string is empty, a placeholder icon will be rendered the same width as an icon.\n */\n iconName?: string;\n\n /**\n * Custom class to style the icon.\n */\n className?: string;\n}\n\n/**\n * Props for a basic image icon component which doesn't directly provide image load error handling\n * and can't be targeted by customizations.\n * {@docCategory Icon}\n */\nexport interface IImageIconProps extends React.HTMLAttributes {\n /**\n * Props passed to the Image component.\n */\n imageProps: IImageProps;\n\n /**\n * Custom class to style the icon.\n */\n className?: string;\n}\n","import * as React from 'react';\n\nimport { IconType } from './Icon.types';\nimport { Image } from '../Image/Image';\nimport { ImageLoadState } from '../Image/Image.types';\nimport { getNativeProps, htmlElementProperties, classNamesFunction } from '../../Utilities';\nimport { getIconContent } from './FontIcon';\nimport type { IIconProps, IIconStyleProps, IIconStyles } from './Icon.types';\nimport type { IImageProps } from '../Image/Image.types';\n\nexport interface IIconState {\n imageLoadError: boolean;\n}\n\nconst getClassNames = classNamesFunction({\n // Icon is used a lot by other components.\n // It's likely to see expected cases which pass different className to the Icon.\n // Therefore setting a larger cache size.\n cacheSize: 100,\n});\n\nexport class IconBase extends React.Component {\n constructor(props: IIconProps) {\n super(props);\n this.state = {\n imageLoadError: false,\n };\n }\n\n public render() {\n const { children, className, styles, iconName, imageErrorAs, theme } = this.props;\n const isPlaceholder = typeof iconName === 'string' && iconName.length === 0;\n const isImage =\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n !!this.props.imageProps || this.props.iconType === IconType.image || this.props.iconType === IconType.Image;\n const iconContent = getIconContent(iconName) || {};\n const { iconClassName, children: iconContentChildren, mergeImageProps } = iconContent;\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n className,\n iconClassName,\n isImage,\n isPlaceholder,\n });\n\n const RootType = isImage ? 'span' : 'i';\n const nativeProps = getNativeProps>(this.props, htmlElementProperties, [\n 'aria-label',\n ]);\n const { imageLoadError } = this.state;\n const imageProps: IImageProps = {\n ...this.props.imageProps,\n onLoadingStateChange: this._onImageLoadingStateChange,\n };\n const ImageType = (imageLoadError && imageErrorAs) || Image;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const ariaLabel = this.props['aria-label'] || this.props.ariaLabel;\n const accessibleName = imageProps.alt || ariaLabel || this.props.title;\n const hasName = !!(\n accessibleName ||\n this.props['aria-labelledby'] ||\n imageProps['aria-label'] ||\n imageProps['aria-labelledby']\n );\n const containerProps = hasName\n ? {\n role: isImage || mergeImageProps ? undefined : 'img',\n 'aria-label': isImage || mergeImageProps ? undefined : accessibleName,\n }\n : {\n 'aria-hidden': true,\n };\n\n let finalIconContentChildren = iconContentChildren;\n\n if (mergeImageProps && iconContentChildren && typeof iconContentChildren === 'object' && accessibleName) {\n finalIconContentChildren = React.cloneElement(iconContentChildren, {\n alt: accessibleName,\n });\n }\n\n return (\n \n {isImage ? : children || finalIconContentChildren}\n \n );\n }\n\n private _onImageLoadingStateChange = (state: ImageLoadState): void => {\n if (this.props.imageProps && this.props.imageProps.onLoadingStateChange) {\n this.props.imageProps.onLoadingStateChange(state);\n }\n if (state === ImageLoadState.error) {\n this.setState({ imageLoadError: true });\n }\n };\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { IconBase } from './Icon.base';\nimport { getStyles } from './Icon.styles';\nimport type { IIconProps, IIconStyleProps, IIconStyles } from './Icon.types';\n\n/**\n * Legacy Icon component which can be targeted by customization. It's recommended to use `FontIcon`\n * or `ImageIcon` instead, especially in scenarios where rendering performance is important.\n * {@docCategory Icon}\n */\nexport const Icon: React.FunctionComponent = styled(\n IconBase,\n getStyles,\n undefined,\n {\n scope: 'Icon',\n },\n true,\n);\nIcon.displayName = 'Icon';\n","import { mergeStyleSets } from '../../Styling';\nimport type { IIconStyleProps, IIconStyles } from './Icon.types';\n\n/** Class names used in themeable and non-themeable Icon components */\nexport const classNames = mergeStyleSets({\n root: {\n display: 'inline-block',\n textDecoration: 'inherit',\n },\n placeholder: [\n 'ms-Icon-placeHolder',\n {\n width: '1em',\n },\n ],\n image: [\n 'ms-Icon-imageContainer',\n {\n overflow: 'hidden',\n },\n ],\n});\n/** Class name used only in non-themeable Icon components */\nexport const MS_ICON = 'ms-Icon';\n\nexport const getStyles = (props: IIconStyleProps): IIconStyles => {\n const { className, iconClassName, isPlaceholder, isImage, styles } = props;\n\n return {\n root: [\n isPlaceholder && classNames.placeholder,\n classNames.root,\n isImage && classNames.image,\n iconClassName,\n className,\n styles && styles.root,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n styles && styles.imageContainer,\n ],\n };\n};\n","import * as React from 'react';\nimport { classNamesFunction, getNativeProps, imgProperties } from '../../Utilities';\nimport { ImageCoverStyle, ImageFit, ImageLoadState } from './Image.types';\nimport { useIsomorphicLayoutEffect, useMergedRefs } from '@fluentui/react-hooks';\nimport type { IImageProps, IImageStyleProps, IImageStyles } from './Image.types';\n\nconst getClassNames = classNamesFunction();\n\nexport interface IImageState {\n loadState?: ImageLoadState;\n}\n\nconst SVG_REGEX = /\\.svg$/i;\nconst KEY_PREFIX = 'fabricImage';\n\nfunction useLoadState(\n props: IImageProps,\n imageElement: React.RefObject,\n): readonly [\n ImageLoadState,\n /* onImageLoad */ (ev: React.SyntheticEvent) => void,\n /* onImageError */ (ev: React.SyntheticEvent) => void,\n] {\n const { onLoadingStateChange, onLoad, onError, src } = props;\n\n const [loadState, setLoadState] = React.useState(ImageLoadState.notLoaded);\n\n useIsomorphicLayoutEffect(() => {\n // If the src property changes, reset the load state\n // (does nothing if the load state is already notLoaded)\n setLoadState(ImageLoadState.notLoaded);\n }, [src]);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps -- intended to run every render\n React.useEffect(() => {\n if (loadState === ImageLoadState.notLoaded) {\n // testing if naturalWidth and naturalHeight are greater than zero is better than checking\n // .complete, because .complete will also be set to true if the image breaks. However,\n // for some browsers, SVG images do not have a naturalWidth or naturalHeight, so fall back\n // to checking .complete for these images.\n const isLoaded: boolean = imageElement.current\n ? (src && imageElement.current.naturalWidth > 0 && imageElement.current.naturalHeight > 0) ||\n (imageElement.current.complete && SVG_REGEX.test(src!))\n : false;\n\n if (isLoaded) {\n setLoadState(ImageLoadState.loaded);\n }\n }\n });\n\n React.useEffect(() => {\n onLoadingStateChange?.(loadState);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when loadState changes\n }, [loadState]);\n\n const onImageLoaded = React.useCallback(\n (ev: React.SyntheticEvent) => {\n onLoad?.(ev);\n if (src) {\n setLoadState(ImageLoadState.loaded);\n }\n },\n [src, onLoad],\n );\n\n const onImageError = React.useCallback(\n (ev: React.SyntheticEvent) => {\n onError?.(ev);\n setLoadState(ImageLoadState.error);\n },\n [onError],\n );\n\n return [loadState, onImageLoaded, onImageError] as const;\n}\n\nexport const ImageBase: React.FunctionComponent = React.forwardRef(\n (props, forwardedRef) => {\n const frameElement = React.useRef() as React.RefObject;\n const imageElement = React.useRef() as React.RefObject;\n const [loadState, onImageLoaded, onImageError] = useLoadState(props, imageElement);\n\n const imageProps = getNativeProps>(props, imgProperties, [\n 'width',\n 'height',\n ]);\n const {\n src,\n alt,\n width,\n height,\n shouldFadeIn = true,\n shouldStartVisible,\n className,\n imageFit,\n role,\n maximizeFrame,\n styles,\n theme,\n loading,\n } = props;\n const coverStyle = useCoverStyle(props, loadState, imageElement, frameElement);\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n width,\n height,\n maximizeFrame,\n shouldFadeIn,\n shouldStartVisible,\n isLoaded:\n loadState === ImageLoadState.loaded || (loadState === ImageLoadState.notLoaded && props.shouldStartVisible),\n isLandscape: coverStyle === ImageCoverStyle.landscape,\n isCenter: imageFit === ImageFit.center,\n isCenterContain: imageFit === ImageFit.centerContain,\n isCenterCover: imageFit === ImageFit.centerCover,\n isContain: imageFit === ImageFit.contain,\n isCover: imageFit === ImageFit.cover,\n isNone: imageFit === ImageFit.none,\n isError: loadState === ImageLoadState.error,\n isNotImageFit: imageFit === undefined,\n });\n\n // If image dimensions aren't specified, the natural size of the image is used.\n return (\n
    \n \n
    \n );\n },\n);\nImageBase.displayName = 'ImageBase';\n\nfunction useCoverStyle(\n props: IImageProps,\n loadState: ImageLoadState,\n imageElement: React.RefObject,\n frameElement: React.RefObject,\n) {\n const previousLoadState = React.useRef(loadState);\n const coverStyle = React.useRef();\n\n if (\n coverStyle === undefined ||\n (previousLoadState.current === ImageLoadState.notLoaded && loadState === ImageLoadState.loaded)\n ) {\n coverStyle.current = computeCoverStyle(props, loadState, imageElement, frameElement);\n }\n\n previousLoadState.current = loadState;\n\n return coverStyle.current!;\n}\n\nfunction computeCoverStyle(\n props: IImageProps,\n loadState: ImageLoadState,\n imageElement: React.RefObject,\n frameElement: React.RefObject,\n): ImageCoverStyle {\n const { imageFit, width, height } = props;\n\n // Do not compute cover style if it was already specified in props\n if (props.coverStyle !== undefined) {\n return props.coverStyle;\n } else if (\n loadState === ImageLoadState.loaded &&\n (imageFit === ImageFit.cover ||\n imageFit === ImageFit.contain ||\n imageFit === ImageFit.centerContain ||\n imageFit === ImageFit.centerCover) &&\n imageElement.current &&\n frameElement.current\n ) {\n // Determine the desired ratio using the width and height props.\n // If those props aren't available, measure measure the frame.\n let desiredRatio;\n if (\n typeof width === 'number' &&\n typeof height === 'number' &&\n imageFit !== ImageFit.centerContain &&\n imageFit !== ImageFit.centerCover\n ) {\n desiredRatio = width / height;\n } else {\n desiredRatio = frameElement.current.clientWidth / frameElement.current.clientHeight;\n }\n\n // Examine the source image to determine its original ratio.\n const naturalRatio = imageElement.current.naturalWidth / imageElement.current.naturalHeight;\n\n // Should we crop from the top or the sides?\n if (naturalRatio > desiredRatio) {\n return ImageCoverStyle.landscape;\n }\n }\n return ImageCoverStyle.portrait;\n}\n","import { AnimationClassNames, getGlobalClassNames } from '../../Styling';\nimport { getWindow } from '../../Utilities';\nimport type { IStyle } from '../../Styling';\nimport type { IImageStyleProps, IImageStyles } from './Image.types';\n\nconst GlobalClassNames = {\n root: 'ms-Image',\n rootMaximizeFrame: 'ms-Image--maximizeFrame',\n image: 'ms-Image-image',\n imageCenter: 'ms-Image-image--center',\n imageContain: 'ms-Image-image--contain',\n imageCover: 'ms-Image-image--cover',\n imageCenterContain: 'ms-Image-image--centerContain',\n imageCenterCover: 'ms-Image-image--centerCover',\n imageNone: 'ms-Image-image--none',\n imageLandscape: 'ms-Image-image--landscape',\n imagePortrait: 'ms-Image-image--portrait',\n};\n\nexport const getStyles = (props: IImageStyleProps): IImageStyles => {\n const {\n className,\n width,\n height,\n maximizeFrame,\n isLoaded,\n shouldFadeIn,\n shouldStartVisible,\n isLandscape,\n isCenter,\n isContain,\n isCover,\n isCenterContain,\n isCenterCover,\n isNone,\n isError,\n isNotImageFit,\n theme,\n } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const ImageFitStyles: IStyle = {\n position: 'absolute',\n left: '50% /* @noflip */',\n top: '50%',\n transform: 'translate(-50%,-50%)', // @todo test RTL renders transform: translate(50%,-50%);\n };\n\n // Cut the mustard using msMaxTouchPoints to detect IE11 which does not support CSS object-fit\n const window: Window | undefined = getWindow();\n const supportsObjectFit: boolean =\n window !== undefined &&\n // eslint-disable-next-line @fluentui/max-len\n // cast needed as vendor prefixed `msMaxTouchPoints` api is no longer part of TS lib declaration - introduced with TS 4.4\n (window.navigator as { msMaxTouchPoints?: Window['navigator']['maxTouchPoints'] }).msMaxTouchPoints === undefined;\n const fallbackObjectFitStyles =\n (isContain && isLandscape) || (isCover && !isLandscape)\n ? { width: '100%', height: 'auto' }\n : { width: 'auto', height: '100%' };\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n overflow: 'hidden',\n },\n maximizeFrame && [\n classNames.rootMaximizeFrame,\n {\n height: '100%',\n width: '100%',\n },\n ],\n isLoaded && shouldFadeIn && !shouldStartVisible && AnimationClassNames.fadeIn400,\n (isCenter || isContain || isCover || isCenterContain || isCenterCover) && {\n position: 'relative',\n },\n className,\n ],\n image: [\n classNames.image,\n {\n display: 'block',\n opacity: 0,\n },\n isLoaded && [\n 'is-loaded',\n {\n opacity: 1,\n },\n ],\n isCenter && [classNames.imageCenter, ImageFitStyles],\n isContain && [\n classNames.imageContain,\n supportsObjectFit && {\n width: '100%',\n height: '100%',\n objectFit: 'contain',\n },\n !supportsObjectFit && fallbackObjectFitStyles,\n !supportsObjectFit && ImageFitStyles,\n ],\n isCover && [\n classNames.imageCover,\n supportsObjectFit && {\n width: '100%',\n height: '100%',\n objectFit: 'cover',\n },\n !supportsObjectFit && fallbackObjectFitStyles,\n !supportsObjectFit && ImageFitStyles,\n ],\n isCenterContain && [\n classNames.imageCenterContain,\n isLandscape && {\n maxWidth: '100%',\n },\n !isLandscape && {\n maxHeight: '100%',\n },\n ImageFitStyles,\n ],\n isCenterCover && [\n classNames.imageCenterCover,\n isLandscape && {\n maxHeight: '100%',\n },\n !isLandscape && {\n maxWidth: '100%',\n },\n ImageFitStyles,\n ],\n isNone && [\n classNames.imageNone,\n {\n width: 'auto',\n height: 'auto',\n },\n ],\n isNotImageFit && [\n !!width &&\n !height && {\n height: 'auto',\n width: '100%',\n },\n !width &&\n !!height && {\n height: '100%',\n width: 'auto',\n },\n !!width &&\n !!height && {\n height: '100%',\n width: '100%',\n },\n ],\n isLandscape && classNames.imageLandscape,\n !isLandscape && classNames.imagePortrait,\n !isLoaded && 'is-notLoaded',\n shouldFadeIn && 'is-fadeIn',\n isError && 'is-error',\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { ImageBase } from './Image.base';\nimport { getStyles } from './Image.styles';\nimport type { IImageProps, IImageStyleProps, IImageStyles } from './Image.types';\n\nexport const Image: React.FunctionComponent = styled(\n ImageBase,\n getStyles,\n undefined,\n {\n scope: 'Image',\n },\n true,\n);\nImage.displayName = 'Image';\n","import * as React from 'react';\nimport type { IStyle, ITheme } from '../../Styling';\nimport type { IStyleFunctionOrObject } from '../../Utilities';\n\n/**\n * {@docCategory Image}\n */\nexport interface IImage {}\n\n/**\n * {@docCategory Image}\n */\nexport interface IImageProps extends React.ImgHTMLAttributes, React.RefAttributes {\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by HOC.\n */\n theme?: ITheme;\n\n /**\n * Additional css class to apply to the Component\n * @defaultvalue undefined\n */\n className?: string;\n\n /**\n * If true, fades the image in when loaded.\n * @defaultvalue true\n */\n shouldFadeIn?: boolean;\n\n /**\n * If true, the image starts as visible and is hidden on error. Otherwise, the image is hidden until\n * it is successfully loaded. This disables shouldFadeIn.\n * @defaultvalue false;\n */\n shouldStartVisible?: boolean;\n\n /**\n * Used to determine how the image is scaled and cropped to fit the frame.\n *\n * @defaultvalue If both dimensions are provided, then the image is fit using `ImageFit.scale`.\n * Otherwise, the image won't be scaled or cropped.\n */\n imageFit?: ImageFit;\n\n /**\n * @deprecated Not used. Use `onLoadingStateChange` and re-render the Image with a different src.\n */\n errorSrc?: string;\n\n /**\n * If true, the image frame will expand to fill its parent container.\n */\n maximizeFrame?: boolean;\n\n /**\n * Optional callback method for when the image load state has changed.\n * The 'loadState' parameter indicates the current state of the Image.\n */\n onLoadingStateChange?: (loadState: ImageLoadState) => void;\n\n /**\n * Specifies the cover style to be used for this image. If not\n * specified, this will be dynamically calculated based on the\n * aspect ratio for the image.\n */\n coverStyle?: ImageCoverStyle;\n\n /**\n * Allows for browser-level image lazy-loading.\n */\n loading?: 'lazy' | 'eager';\n}\n\n/**\n * The possible methods that can be used to fit the image.\n * {@docCategory Image}\n */\nexport enum ImageFit {\n /**\n * The image is not scaled. The image is centered and cropped within the content box.\n */\n center = 0,\n\n /**\n * The image is scaled to maintain its aspect ratio while being fully contained within the frame. The image will\n * be centered horizontally and vertically within the frame. The space in the top and bottom or in the sides of\n * the frame will be empty depending on the difference in aspect ratio between the image and the frame.\n */\n contain = 1,\n\n /**\n * The image is scaled to maintain its aspect ratio while filling the frame. Portions of the image will be cropped\n * from the top and bottom, or the sides, depending on the difference in aspect ratio between the image and the frame.\n */\n cover = 2,\n\n /**\n * Neither the image nor the frame are scaled. If their sizes do not match, the image will either be cropped or the\n * frame will have empty space.\n */\n none = 3,\n\n /**\n * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will\n * behave as ImageFit.center if the image's natural height or width is less than the Image frame's height or width,\n * but if both natural height and width are larger than the frame it will behave as ImageFit.cover.\n */\n centerCover = 4,\n\n /**\n * The image will be centered horizontally and vertically within the frame and maintains its aspect ratio. It will\n * behave as ImageFit.center if the image's natural height and width is less than the Image frame's height and width,\n * but if either natural height or width are larger than the frame it will behave as ImageFit.contain.\n */\n centerContain = 5,\n}\n\n/**\n * The cover style to be used on the image\n * {@docCategory Image}\n */\nexport enum ImageCoverStyle {\n /**\n * The image will be shown at 100% height of container and the width will be scaled accordingly\n */\n landscape = 0,\n\n /**\n * The image will be shown at 100% width of container and the height will be scaled accordingly\n */\n portrait = 1,\n}\n\n/**\n * {@docCategory Image}\n */\nexport enum ImageLoadState {\n /**\n * The image has not yet been loaded, and there is no error yet.\n */\n notLoaded = 0,\n\n /**\n * The image has been loaded successfully.\n */\n loaded = 1,\n\n /**\n * An error has been encountered while loading the image.\n */\n error = 2,\n\n /**\n * @deprecated Not used. Use `onLoadingStateChange` and re-render the Image with a different src.\n */\n errorLoaded = 3,\n}\n\n/**\n * {@docCategory Image}\n */\nexport interface IImageStyleProps {\n /**\n * Accept theme prop.\n */\n theme: ITheme;\n\n /**\n * Accept custom classNames\n */\n className?: string;\n\n /**\n * If true, the image frame will expand to fill its parent container.\n */\n maximizeFrame?: boolean;\n\n /**\n * If true, the image is loaded\n */\n isLoaded?: boolean;\n\n /**\n * If true, fades the image in when loaded.\n * @defaultvalue true\n */\n shouldFadeIn?: boolean;\n\n /**\n * If true, the image starts as visible and is hidden on error. Otherwise, the image is hidden until\n * it is successfully loaded. This disables shouldFadeIn.\n * @defaultvalue false;\n */\n shouldStartVisible?: boolean;\n\n /**\n * If true the image is coverStyle landscape instead of portrait\n */\n isLandscape?: boolean;\n\n /**\n * ImageFit booleans for center, cover, contain, centerContain, centerCover, none\n */\n isCenter?: boolean;\n isContain?: boolean;\n isCover?: boolean;\n isCenterContain?: boolean;\n isCenterCover?: boolean;\n isNone?: boolean;\n\n /**\n * if true image load is in error\n */\n isError?: boolean;\n\n /**\n * if true, imageFit is undefined\n */\n isNotImageFit?: boolean;\n\n /**\n * Image width value\n */\n width?: number | string;\n\n /**\n * Image height value\n */\n height?: number | string;\n}\n\n/**\n * {@docCategory Image}\n */\nexport interface IImageStyles {\n /**\n * Style set for the root div element.\n */\n root: IStyle;\n /**\n * Style set for the img element.\n */\n image: IStyle;\n}\n","import * as React from 'react';\nimport { divProperties, getNativeProps } from '../../Utilities';\nimport { classNamesFunction } from '../../Utilities';\nimport type { ILabelProps, ILabelStyleProps, ILabelStyles } from './Label.types';\n\nconst getClassNames = classNamesFunction({\n // Label is used a lot by other components.\n // It's likely to see expected cases which pass different className to the Label.\n // Therefore setting a larger cache size.\n cacheSize: 100,\n});\n\nexport class LabelBase extends React.Component {\n public render(): JSX.Element {\n const { as: RootType = 'label', children, className, disabled, styles, required, theme } = this.props;\n const classNames = getClassNames(styles, {\n className,\n disabled,\n required,\n theme: theme!,\n });\n return (\n \n {children}\n \n );\n }\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { LabelBase } from './Label.base';\nimport { getStyles } from './Label.styles';\nimport type { ILabelProps, ILabelStyleProps, ILabelStyles } from './Label.types';\n\nexport const Label: React.FunctionComponent = styled(\n LabelBase,\n getStyles,\n undefined,\n {\n scope: 'Label',\n },\n);\n","import { HighContrastSelector, FontWeights, getHighContrastNoAdjustStyle } from '../../Styling';\nimport type { ILabelStyleProps, ILabelStyles } from './Label.types';\n\nexport const getStyles = (props: ILabelStyleProps): ILabelStyles => {\n const { theme, className, disabled, required } = props;\n const { semanticColors } = theme;\n\n // Tokens\n const labelFontWeight = FontWeights.semibold;\n const labelColor = semanticColors.bodyText;\n const labelDisabledColor = semanticColors.disabledBodyText;\n const labelRequiredStarColor = semanticColors.errorText;\n\n return {\n root: [\n 'ms-Label',\n theme.fonts.medium,\n {\n fontWeight: labelFontWeight,\n color: labelColor,\n boxSizing: 'border-box',\n boxShadow: 'none',\n margin: 0,\n display: 'block',\n padding: '5px 0',\n wordWrap: 'break-word',\n overflowWrap: 'break-word',\n },\n disabled && {\n color: labelDisabledColor,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n required && {\n selectors: {\n '::after': {\n content: `' *'`,\n color: labelRequiredStarColor,\n paddingRight: 12,\n },\n },\n },\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport {\n classNamesFunction,\n divProperties,\n getDocument,\n getNativeProps,\n getRTL,\n memoizeFunction,\n Customizer,\n FocusRectsProvider,\n} from '../../Utilities';\nimport { createTheme } from '../../Styling';\nimport { useMergedRefs } from '@fluentui/react-hooks';\nimport type { IFabricProps, IFabricStyleProps, IFabricStyles } from './Fabric.types';\nimport type { IProcessedStyleSet } from '@fluentui/merge-styles';\nimport type { ITheme } from '../../Styling';\n\nconst getClassNames = classNamesFunction();\nconst getFabricTheme = memoizeFunction((theme?: ITheme, isRTL?: boolean) => createTheme({ ...theme, rtl: isRTL }));\n\nconst getDir = ({ theme, dir }: IFabricProps) => {\n const contextDir = getRTL(theme) ? 'rtl' : 'ltr';\n const pageDir = getRTL() ? 'rtl' : 'ltr';\n const componentDir = dir ? dir : contextDir;\n return {\n // If Fabric dir !== contextDir\n // Or If contextDir !== pageDir\n // Then we need to set dir of the Fabric root\n rootDir: componentDir !== contextDir || componentDir !== pageDir ? componentDir : dir,\n // If dir !== contextDir || pageDir\n // then set contextual theme around content\n needsTheme: componentDir !== contextDir,\n };\n};\n\nexport const FabricBase: React.FunctionComponent = React.forwardRef(\n (props, ref) => {\n const { className, theme, applyTheme, applyThemeToBody, styles } = props;\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n applyTheme,\n className,\n });\n\n const rootElement = React.useRef(null);\n useApplyThemeToBody(applyThemeToBody, classNames, rootElement);\n\n return <>{useRenderedContent(props, classNames, rootElement, ref)};\n },\n);\nFabricBase.displayName = 'FabricBase';\n\nfunction useRenderedContent(\n props: IFabricProps,\n { root }: IProcessedStyleSet,\n rootElement: React.RefObject,\n ref: React.Ref,\n) {\n const { as: Root = 'div', dir, theme } = props;\n const divProps = getNativeProps>(props, divProperties, ['dir']);\n\n const { rootDir, needsTheme } = getDir(props);\n\n let renderedContent = (\n \n \n \n );\n\n // Create the contextual theme if component direction does not match parent direction.\n if (needsTheme) {\n // Disabling ThemeProvider here because theme doesn't need to be re-provided by ThemeProvider if dir has changed.\n renderedContent = (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n {renderedContent}\n );\n }\n\n return renderedContent;\n}\n\nfunction useApplyThemeToBody(\n applyThemeToBody: boolean | undefined,\n { bodyThemed }: IProcessedStyleSet,\n rootElement: React.RefObject,\n) {\n React.useEffect((): void | (() => void) => {\n if (applyThemeToBody) {\n const currentDoc = getDocument(rootElement.current);\n if (currentDoc) {\n currentDoc.body.classList.add(bodyThemed);\n return () => {\n currentDoc.body.classList.remove(bodyThemed);\n };\n }\n }\n }, [bodyThemed, applyThemeToBody, rootElement]);\n\n return rootElement;\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { IFabricStyleProps, IFabricStyles } from './Fabric.types';\n\nconst inheritFont = { fontFamily: 'inherit' };\n\nconst GlobalClassNames = {\n root: 'ms-Fabric',\n bodyThemed: 'ms-Fabric-bodyThemed',\n};\n\nexport interface IFabricClassNames {\n root: string;\n bodyThemed: string;\n}\n\nexport const getStyles = (props: IFabricStyleProps): IFabricStyles => {\n const { applyTheme, className, preventBlanketFontInheritance, theme } = props;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n color: theme.palette.neutralPrimary,\n },\n !preventBlanketFontInheritance && {\n '& button': inheritFont,\n '& input': inheritFont,\n '& textarea': inheritFont,\n },\n // apply theme to only if applyTheme is true\n applyTheme && {\n color: theme.semanticColors.bodyText,\n backgroundColor: theme.semanticColors.bodyBackground,\n },\n className,\n ],\n bodyThemed: [\n {\n backgroundColor: theme.semanticColors.bodyBackground,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { FabricBase } from './Fabric.base';\nimport { getStyles } from './Fabric.styles';\nimport type { IFabricProps, IFabricStyleProps, IFabricStyles } from './Fabric.types';\n\n/**\n * @deprecated This component is deprecated as of `@fluentui/react` version 8. Use `ThemeProvider` instead.\n */\nexport const Fabric: React.FunctionComponent = styled(\n FabricBase,\n getStyles,\n undefined,\n {\n scope: 'Fabric',\n },\n);\n","import { ILayerHost } from './LayerHost.types';\n\nconst _layersByHostId: { [hostId: string]: (() => void)[] } = {};\nconst _layerHostsById: { [hostId: string]: ILayerHost[] } = {};\n\nconst defaultHostId = 'fluent-default-layer-host';\nlet _defaultHostSelector: string | undefined = `#${defaultHostId}`;\n\n/**\n * Register a layer for a given host id\n * @param hostId - Id of the layer host\n * @param layer - Layer instance\n */\nexport function registerLayer(hostId: string, callback: () => void) {\n if (!_layersByHostId[hostId]) {\n _layersByHostId[hostId] = [];\n }\n\n _layersByHostId[hostId].push(callback);\n\n const layerHosts = _layerHostsById[hostId];\n\n if (layerHosts) {\n for (const layerHost of layerHosts) {\n layerHost.notifyLayersChanged();\n }\n }\n}\n\n/**\n * Unregister a layer for a given host id\n * @param hostId - Id of the layer host\n * @param layer - Layer instance\n */\nexport function unregisterLayer(hostId: string, callback: () => void) {\n const layers = _layersByHostId[hostId];\n\n if (layers) {\n const idx = layers.indexOf(callback);\n if (idx >= 0) {\n layers.splice(idx, 1);\n\n if (layers.length === 0) {\n delete _layersByHostId[hostId];\n }\n }\n }\n\n const layerHosts = _layerHostsById[hostId];\n\n if (layerHosts) {\n for (const layerHost of layerHosts) {\n layerHost.notifyLayersChanged();\n }\n }\n}\n\n/**\n * Gets the number of layers currently registered with a host id.\n * @param hostId - Id of the layer host.\n * @returns The number of layers currently registered with the host.\n */\nexport function getLayerCount(hostId: string): number {\n const layers = _layerHostsById[hostId];\n\n return layers ? layers.length : 0;\n}\n\n/**\n * Gets the Layer Host instance associated with a hostId, if applicable.\n * @param hostId - Id of the layer host\n * @returns A component ref for the associated layer host.\n */\nexport function getLayerHost(hostId: string): ILayerHost | undefined {\n const layerHosts = _layerHostsById[hostId];\n\n return (layerHosts && layerHosts[0]) || undefined;\n}\n\n/**\n * Registers a Layer Host with an associated hostId.\n * @param hostId - Id of the layer host\n * @param layerHost - layer host instance\n */\nexport function registerLayerHost(hostId: string, layerHost: ILayerHost): void {\n const layerHosts = _layerHostsById[hostId] || (_layerHostsById[hostId] = []);\n\n // Insert this at the start of an array to avoid race conditions between mount and unmount.\n // If a LayerHost is re-mounted, and mount of the new instance may occur before the unmount of the old one.\n // Putting the new instance at the start of this array ensures that calls to `getLayerHost` will immediately\n // get the new one even if the old one is around briefly.\n layerHosts.unshift(layerHost);\n}\n\n/**\n * Unregisters a Layer Host from the associated hostId.\n * @param hostId - Id of the layer host\n * @param layerHost - layer host instance\n */\nexport function unregisterLayerHost(hostId: string, layerHost: ILayerHost): void {\n const layerHosts = _layerHostsById[hostId];\n\n if (layerHosts) {\n const idx = layerHosts.indexOf(layerHost);\n\n if (idx >= 0) {\n layerHosts.splice(idx, 1);\n }\n\n if (layerHosts.length === 0) {\n delete _layerHostsById[hostId];\n }\n }\n}\n\n/**\n * When no default layer host is provided, this function is executed to create the default host.\n */\nexport function createDefaultLayerHost(doc: Document, shadowRoot: ShadowRoot | null = null): Node | null {\n const host = doc.createElement('div');\n host.setAttribute('id', defaultHostId);\n (host as HTMLElement).style.cssText = 'position:fixed;z-index:1000000';\n\n if (shadowRoot) {\n shadowRoot.appendChild(host);\n } else {\n doc?.body.appendChild(host);\n }\n\n // doc?.body.appendChild(host);\n\n return host;\n}\n\n/**\n * This function can be optionally called to clean up the default layer host as needed.\n */\nexport function cleanupDefaultLayerHost(doc: Document, shadowRoot: ShadowRoot | null = null) {\n const root = shadowRoot ?? doc;\n const host = root.querySelector(`#${defaultHostId}`);\n\n if (host) {\n root.removeChild(host);\n }\n}\n\n/**\n * Used for notifying applicable Layers that a host is available/unavailable and to re-evaluate Layers that\n * care about the specific host.\n */\nexport function notifyHostChanged(id: string) {\n if (_layersByHostId[id]) {\n _layersByHostId[id].forEach(callback => callback());\n }\n}\n\n/**\n * Sets the default target selector to use when determining the host in which\n * Layered content will be injected into. If not provided, an element will be\n * created at the end of the document body.\n *\n * Passing in a falsy value will clear the default target and reset back to\n * using a created element at the end of document body.\n */\nexport function setDefaultTarget(selector?: string) {\n _defaultHostSelector = selector;\n}\n\n/**\n * Get the default target selector when determining a host\n */\nexport function getDefaultTarget(): string | undefined {\n return _defaultHostSelector;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore \"react-portal-compat-context\" uses v9 configs via path aliases\nimport { usePortalCompat } from '@fluentui/react-portal-compat-context';\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Fabric } from '../../Fabric';\nimport {\n classNamesFunction,\n css,\n getDocument,\n setPortalAttribute,\n setVirtualParent,\n FocusRectsProvider,\n FocusRectsContext,\n IsFocusVisibleClassName,\n} from '../../Utilities';\nimport {\n registerLayer,\n getDefaultTarget,\n unregisterLayer,\n getLayerHost,\n createDefaultLayerHost,\n} from './Layer.notification';\nimport { useIsomorphicLayoutEffect, useMergedRefs, useWarnings } from '@fluentui/react-hooks';\nimport type { ILayerProps, ILayerStyleProps, ILayerStyles } from './Layer.types';\n\nconst getClassNames = classNamesFunction();\n\nconst getFocusVisibility = (providerRef?: React.RefObject) => {\n if (providerRef?.current) {\n return providerRef.current.classList.contains(IsFocusVisibleClassName);\n }\n\n return false;\n};\n\n// We don't want to import Tabster here, so we're using a type that matches the Tabster type to set the flag needed\n// for better interop between Fluent UI V8 and V9.\ninterface IHTMLElementWithTabsterFlags extends HTMLElement {\n __tabsterElementFlags?: {\n noDirectAriaHidden?: boolean; // When Modalizer sets aria-hidden on everything outside of the modal,\n // do not set aria-hidden directly on this element, go inside and check its children,\n // and set aria-hidden on the children. This is to be set on a container that hosts\n // elements which have the active modal dialog as virtual parent.\n };\n}\n\nexport const LayerBase: React.FunctionComponent = React.forwardRef(\n (props, ref) => {\n const registerPortalEl = usePortalCompat();\n\n const rootRef = React.useRef(null);\n const mergedRef = useMergedRefs(rootRef, ref);\n const layerRef = React.useRef();\n const fabricElementRef = React.useRef(null);\n const focusContext = React.useContext(FocusRectsContext);\n\n // Tracks if the layer mount events need to be raised.\n // Required to allow the DOM to render after the layer element is added.\n const [needRaiseLayerMount, setNeedRaiseLayerMount] = React.useState(false);\n\n // Sets the focus visible className when the FocusRectsProvider for the layer is rendered\n // This allows the current focus visibility style to be carried over to the layer content\n const focusRectsRef = React.useCallback(\n el => {\n const isFocusVisible = getFocusVisibility(focusContext?.providerRef);\n if (el && isFocusVisible) {\n el.classList.add(IsFocusVisibleClassName);\n }\n },\n [focusContext],\n );\n\n const {\n children,\n className,\n eventBubblingEnabled,\n fabricProps,\n hostId,\n insertFirst,\n onLayerDidMount = () => undefined,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onLayerMounted = () => undefined,\n onLayerWillUnmount,\n styles,\n theme,\n } = props;\n\n const fabricRef = useMergedRefs(fabricElementRef, fabricProps?.ref, focusRectsRef);\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n isNotHost: !hostId,\n });\n\n // Returns the user provided hostId props element, the default target selector,\n // or undefined if document doesn't exist.\n const getHost = (doc: Document, shadowRoot: ShadowRoot | null = null): Node | null => {\n const root = shadowRoot ?? doc;\n if (hostId) {\n const layerHost = getLayerHost(hostId);\n\n if (layerHost) {\n return layerHost.rootRef.current ?? null;\n }\n\n return root.getElementById(hostId) ?? null;\n } else {\n const defaultHostSelector = getDefaultTarget();\n\n // Find the host.\n let host: Node | null = defaultHostSelector ? (root.querySelector(defaultHostSelector) as Node) : null;\n\n // If no host is available, create a container for injecting layers in.\n // Having a container scopes layout computation.\n if (!host) {\n host = createDefaultLayerHost(doc, shadowRoot);\n }\n\n return host;\n }\n };\n\n // Removes the current layer element's parentNode and runs onLayerWillUnmount prop if provided.\n const removeLayerElement = (): void => {\n onLayerWillUnmount?.();\n\n const elem = layerRef.current;\n\n // Clear ref before removing from the DOM\n layerRef.current = undefined;\n\n if (elem && elem.parentNode) {\n elem.parentNode.removeChild(elem);\n }\n };\n\n // If a doc or host exists, it will remove and update layer parentNodes.\n const createLayerElement = () => {\n const doc = getDocument(rootRef.current);\n const shadowRoot = (rootRef.current?.getRootNode() as ShadowRoot)?.host\n ? (rootRef?.current?.getRootNode() as ShadowRoot)\n : undefined;\n\n if (!doc || (!doc && !shadowRoot)) {\n return;\n }\n\n const host = getHost(doc, shadowRoot) as IHTMLElementWithTabsterFlags | null;\n\n if (!host) {\n return;\n }\n\n // Tabster in V9 sets aria-hidden on the elements outside of the modal dialog. And it doesn't set aria-hidden\n // on the virtual children of the dialog. But the host element itself is not a virtual child of a dialog, it\n // might contain virtual children. noDirectAriaHidden flag makes Tabster to poke inside the element and set\n // aria-hidden on the children (if they are not virtual children of the active V9 dialog) not on the host element.\n // To avoid importing Tabster as a dependency here, we just set a flag on the host element which is checked by\n // Tabster.\n if (!host.__tabsterElementFlags) {\n host.__tabsterElementFlags = {};\n }\n host.__tabsterElementFlags.noDirectAriaHidden = true;\n\n // Remove and re-create any previous existing layer elements.\n removeLayerElement();\n\n const el = (host.ownerDocument ?? doc).createElement('div');\n\n el.className = classNames.root!;\n setPortalAttribute(el);\n setVirtualParent(el, rootRef.current!);\n\n insertFirst ? host.insertBefore(el, host.firstChild) : host.appendChild(el);\n layerRef.current = el;\n setNeedRaiseLayerMount(true);\n };\n\n useIsomorphicLayoutEffect(() => {\n createLayerElement();\n // Check if the user provided a hostId prop and register the layer with the ID.\n if (hostId) {\n registerLayer(hostId, createLayerElement);\n }\n\n const unregisterPortalEl = layerRef.current ? registerPortalEl(layerRef.current) : undefined;\n\n return () => {\n if (unregisterPortalEl) {\n unregisterPortalEl();\n }\n\n removeLayerElement();\n\n if (hostId) {\n unregisterLayer(hostId, createLayerElement);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should run if the hostId updates.\n }, [hostId]);\n\n React.useEffect(() => {\n if (layerRef.current && needRaiseLayerMount) {\n onLayerMounted?.();\n onLayerDidMount?.();\n setNeedRaiseLayerMount(false);\n }\n }, [needRaiseLayerMount, onLayerMounted, onLayerDidMount]);\n\n useDebugWarnings(props);\n\n return (\n \n {layerRef.current &&\n ReactDOM.createPortal(\n \n {/* eslint-disable @typescript-eslint/no-deprecated */}\n \n {children}\n \n {/* eslint-enable @typescript-eslint/no-deprecated */}\n ,\n layerRef.current,\n )}\n \n );\n },\n);\nLayerBase.displayName = 'LayerBase';\n\nlet filteredEventProps: { [key: string]: (ev: React.SyntheticEvent) => void };\n\nconst onFilterEvent = (ev: React.SyntheticEvent): void => {\n // We should just be able to check ev.bubble here and only stop events that are bubbling up. However, even though\n // mouseenter and mouseleave do NOT bubble up, they are showing up as bubbling. Therefore we stop events based on\n // event name rather than ev.bubble.\n if (\n ev.eventPhase === Event.BUBBLING_PHASE &&\n ev.type !== 'mouseenter' &&\n ev.type !== 'mouseleave' &&\n ev.type !== 'touchstart' &&\n ev.type !== 'touchend'\n ) {\n ev.stopPropagation();\n }\n};\n\nfunction getFilteredEvents() {\n if (!filteredEventProps) {\n filteredEventProps = {} as any;\n [\n 'onClick',\n 'onContextMenu',\n 'onDoubleClick',\n 'onDrag',\n 'onDragEnd',\n 'onDragEnter',\n 'onDragExit',\n 'onDragLeave',\n 'onDragOver',\n 'onDragStart',\n 'onDrop',\n 'onMouseDown',\n 'onMouseEnter',\n 'onMouseLeave',\n 'onMouseMove',\n 'onMouseOver',\n 'onMouseOut',\n 'onMouseUp',\n 'onTouchMove',\n 'onTouchStart',\n 'onTouchCancel',\n 'onTouchEnd',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'onFocus',\n 'onBlur',\n 'onChange',\n 'onInput',\n 'onInvalid',\n 'onSubmit',\n ].forEach(name => (filteredEventProps[name] = onFilterEvent));\n }\n return filteredEventProps;\n}\n\nfunction useDebugWarnings(props: ILayerProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: 'Layer',\n props,\n deprecations: { onLayerMounted: 'onLayerDidMount' },\n });\n }\n}\n","import { ZIndexes, getGlobalClassNames } from '../../Styling';\nimport type { ILayerStyleProps, ILayerStyles } from './Layer.types';\n\nconst GlobalClassNames = {\n root: 'ms-Layer',\n rootNoHost: 'ms-Layer--fixed',\n content: 'ms-Layer-content',\n};\n\nexport const getStyles = (props: ILayerStyleProps): ILayerStyles => {\n const { className, isNotHost, theme } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n isNotHost && [\n classNames.rootNoHost,\n {\n position: 'fixed',\n zIndex: ZIndexes.Layer,\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n visibility: 'hidden',\n },\n ],\n className,\n ],\n content: [\n classNames.content,\n {\n visibility: 'visible',\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { LayerBase } from './Layer.base';\nimport { getStyles } from './Layer.styles';\nimport type { ILayerProps, ILayerStyleProps, ILayerStyles } from './Layer.types';\n\nexport const Layer: React.FunctionComponent = styled(\n LayerBase,\n getStyles,\n undefined,\n {\n scope: 'Layer',\n fields: ['hostId', 'theme', 'styles'],\n },\n);\n","import * as React from 'react';\nimport { useMergedRefs } from '@fluentui/react-hooks';\nimport { classNamesFunction, useFocusRects } from '@fluentui/utilities';\nimport type { ILink, ILinkProps, ILinkStyleProps, ILinkStyles } from './Link.types';\n\nconst getClassNames = classNamesFunction();\n\n/**\n * The useLink hook processes the Link component props and returns\n * state, slots and slotProps for consumption by the component.\n */\nexport const useLink = (props: ILinkProps, forwardedRef: React.Ref): any => {\n const { as, className, disabled, href, onClick, styles, theme, underline } = props;\n const rootRef = React.useRef(null);\n const mergedRootRefs: React.Ref = useMergedRefs(rootRef, forwardedRef);\n\n useComponentRef(props, rootRef);\n useFocusRects(rootRef);\n\n const classNames = getClassNames(styles!, {\n className,\n isButton: !href,\n isDisabled: disabled,\n isUnderlined: underline,\n theme: theme!,\n });\n\n const _onClick = (ev: React.MouseEvent) => {\n if (disabled) {\n ev.preventDefault();\n } else if (onClick) {\n onClick(ev);\n }\n };\n\n const rootType = as ? as : href ? 'a' : 'button';\n\n const state = {};\n const slots = { root: rootType };\n const slotProps = {\n root: {\n ...adjustPropsForRootType(rootType, props),\n 'aria-disabled': disabled,\n className: classNames.root,\n onClick: _onClick,\n ref: mergedRootRefs,\n },\n };\n\n return { state, slots, slotProps };\n};\n\nconst useComponentRef = (props: ILinkProps, link: React.RefObject) => {\n React.useImperativeHandle(\n props.componentRef,\n () => ({\n focus() {\n if (link.current) {\n link.current.focus();\n }\n },\n }),\n [link],\n );\n};\n\nconst adjustPropsForRootType = (\n RootType: string | React.ComponentClass | React.FunctionComponent,\n props: ILinkProps & { getStyles?: any },\n): Partial => {\n // Deconstruct the props so we remove props like `as`, `theme` and `styles`\n // as those will always be removed. We also take some props that are optional\n // based on the RootType.\n const { as, disabled, target, href, theme, getStyles, styles, componentRef, underline, ...restProps } = props;\n\n // RootType will be a string if we're dealing with an html component\n if (typeof RootType === 'string') {\n // Remove the disabled prop for anchor elements\n if (RootType === 'a') {\n return {\n target,\n href: disabled ? undefined : href,\n ...restProps,\n };\n }\n\n // Add the type='button' prop for button elements\n if (RootType === 'button') {\n return {\n type: 'button',\n disabled,\n ...restProps,\n };\n }\n\n // Remove the target and href props for all other non anchor elements\n return { ...restProps, disabled };\n }\n\n // Retain all props except 'as' for ReactComponents\n return { target, href, disabled, ...restProps };\n};\n","import * as React from 'react';\nimport { useLink } from './useLink';\nimport type { ILinkProps } from './Link.types';\n\nexport const LinkBase: React.FunctionComponent = React.forwardRef((props, ref) => {\n const { slots, slotProps } = useLink(props, ref);\n\n return ;\n});\n\nLinkBase.displayName = 'LinkBase';\n","import * as React from 'react';\nimport { styled } from '@fluentui/utilities';\nimport { LinkBase } from './Link.base';\nimport { getStyles } from './Link.styles';\nimport type { ILinkProps, ILinkStyleProps, ILinkStyles } from './Link.types';\n\nexport const Link: React.FunctionComponent = styled(\n LinkBase,\n getStyles,\n undefined,\n {\n scope: 'Link',\n },\n);\n","import { getGlobalClassNames, HighContrastSelector } from '@fluentui/style-utilities';\nimport type { ILinkStyleProps, ILinkStyles } from './Link.types';\nimport { IsFocusVisibleClassName } from '@fluentui/utilities';\n\nexport const GlobalClassNames = {\n root: 'ms-Link',\n};\n\nexport const getStyles = (props: ILinkStyleProps): ILinkStyles => {\n const { className, isButton, isDisabled, isUnderlined, theme } = props;\n const { semanticColors } = theme;\n\n // Tokens\n const linkColor = semanticColors.link;\n const linkInteractedColor = semanticColors.linkHovered;\n const linkDisabledColor = semanticColors.disabledText;\n const focusBorderColor = semanticColors.focusBorder;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n color: linkColor,\n outline: 'none',\n fontSize: 'inherit',\n fontWeight: 'inherit',\n textDecoration: isUnderlined ? 'underline' : 'none',\n\n selectors: {\n [`.${IsFocusVisibleClassName} &:focus, :host(.${IsFocusVisibleClassName}) &:focus`]: {\n // Can't use getFocusStyle because it doesn't support wrapping links\n // https://github.com/microsoft/fluentui/issues/4883#issuecomment-406743543\n // Using box-shadow and outline allows the focus rect to wrap links that span multiple lines\n // and helps the focus rect avoid getting clipped.\n boxShadow: `0 0 0 1px ${focusBorderColor} inset`,\n outline: `1px auto ${focusBorderColor}`,\n selectors: {\n [HighContrastSelector]: {\n outline: '1px solid WindowText',\n },\n },\n },\n [HighContrastSelector]: {\n // For IE high contrast mode\n borderBottom: 'none',\n },\n },\n },\n isButton && {\n background: 'none',\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'pointer',\n display: 'inline',\n margin: 0,\n overflow: 'inherit',\n padding: 0,\n textAlign: 'left',\n textOverflow: 'inherit',\n userSelect: 'text',\n borderBottom: '1px solid transparent', // For Firefox high contrast mode\n selectors: {\n [HighContrastSelector]: {\n color: 'LinkText',\n forcedColorAdjust: 'none',\n },\n },\n },\n !isButton && {\n selectors: {\n [HighContrastSelector]: {\n // This is mainly for MessageBar, which sets MsHighContrastAdjust: none by default\n MsHighContrastAdjust: 'auto',\n forcedColorAdjust: 'auto',\n },\n },\n },\n\n isDisabled && [\n 'is-disabled',\n {\n color: linkDisabledColor,\n cursor: 'default',\n },\n {\n selectors: {\n '&:link, &:visited': {\n pointerEvents: 'none',\n },\n\n [HighContrastSelector]: {\n // We need to specify the color in High Contrast because of the case of Links rendering as buttons.\n color: 'GrayText',\n },\n },\n },\n ],\n !isDisabled && {\n selectors: {\n '&:active, &:hover, &:active:hover': {\n color: linkInteractedColor,\n textDecoration: 'underline',\n\n selectors: {\n [HighContrastSelector]: {\n color: 'LinkText',\n },\n },\n },\n '&:focus': {\n color: linkColor,\n\n selectors: {\n [HighContrastSelector]: {\n color: 'LinkText',\n },\n },\n },\n },\n },\n classNames.root,\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { List } from './List';\nimport type { IRefObject, IRectangle, IRenderFunction } from '../../Utilities';\n\n/**\n * {@docCategory List}\n */\nexport const ScrollToMode = {\n /**\n * Does not make any consideration to where in the viewport the item should align to.\n */\n auto: 0 as 0,\n /**\n * Attempts to scroll the list so the top of the desired item is aligned with the top of the viewport.\n */\n top: 1 as 1,\n /**\n * Attempts to scroll the list so the bottom of the desired item is aligned with the bottom of the viewport.\n */\n bottom: 2 as 2,\n /**\n * Attempts to scroll the list so the desired item is in the exact center of the viewport.\n */\n center: 3 as 3,\n};\n\n/**\n * {@docCategory List}\n */\nexport type ScrollToMode = (typeof ScrollToMode)[keyof typeof ScrollToMode];\n\n/**\n * Props passed to the render override for the list root.\n * {@docCategory List}\n */\nexport interface IListOnRenderRootProps {\n /**\n * The ref to be applied to the list root.\n * The `List` uses this element to track scroll position and sizing.\n */\n rootRef: React.Ref;\n /**\n * Props to apply to the list root element.\n */\n divProps: React.HTMLAttributes;\n /**\n * The active pages to be rendered into the list.\n * These will have been rendered using `onRenderPage`.\n */\n pages: IPage[];\n /**\n * The content to be rendered as the list surface element.\n * This will have been rendered using `onRenderSurface`.\n */\n surfaceElement: JSX.Element | null;\n}\n\n/**\n * Props passed to the render override for the list surface.\n * {@docCategory List}\n */\nexport interface IListOnRenderSurfaceProps {\n /**\n * A ref to be applied to the surface element.\n * The `List` uses this element to track content size and focus.\n */\n surfaceRef: React.Ref;\n /**\n * Props to apply to the list surface element.\n */\n divProps: React.HTMLAttributes;\n /**\n * The active pages to be rendered into the list.\n * These will have been rendered using `onRenderPage`.\n */\n pages: IPage[];\n /**\n * The content to be rendered representing all active pages.\n */\n pageElements: JSX.Element[];\n}\n\n/**\n * {@docCategory List}\n */\nexport interface IList {\n /**\n * Force the component to update.\n */\n forceUpdate: () => void;\n\n /**\n * Get the current height the list and it's pages.\n */\n getTotalListHeight?: () => number;\n\n /**\n * Scroll to the given index. By default will bring the page the specified item is on into the view. If a callback\n * to measure the height of an individual item is specified, will only scroll to bring the specific item into view.\n *\n * Note: with items of variable height and no passed in `getPageHeight` method, the list might jump after scrolling\n * when windows before/ahead are being rendered, and the estimated height is replaced using actual elements.\n *\n * @param index - Index of item to scroll to\n * @param measureItem - Optional callback to measure the height of an individual item\n * @param scrollToMode - Optional defines the behavior of the scrolling alignment. Defaults to auto.\n * Note: The scrollToMode requires the measureItem callback is provided to function.\n */\n scrollToIndex: (index: number, measureItem?: (itemIndex: number) => number, scrollToMode?: ScrollToMode) => void;\n\n /**\n * Get the start index of the page that is currently in view\n */\n getStartItemIndexInView: () => number;\n}\n\n/**\n * {@docCategory List}\n */\nexport interface IListProps extends React.HTMLAttributes | HTMLDivElement> {\n /**\n * Optional callback to access the IList interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /** Optional classname to append to root list. */\n className?: string;\n\n /** Items to render. */\n items?: T[];\n\n /**\n * Method to call when trying to render an item.\n * @param item - The data associated with the cell that is being rendered.\n * @param index - The index of the cell being rendered.\n * @param isScrolling - True if the list is being scrolled. May be useful for rendering a placeholder if your cells\n * are complex.\n */\n onRenderCell?: (item?: T, index?: number, isScrolling?: boolean) => React.ReactNode;\n\n /**\n * Method to call when trying to render an item conditionally.\n *\n * When this method returns `null` the cell will be skipped in the render.\n *\n * This prop is mutually exclusive with `onRenderCell` and when `onRenderCellConditional` is set,\n * `onRenderCell` will not be called.\n *\n * @param item - The data associated with the cell that is being rendered.\n * @param index - The index of the cell being rendered.\n * @param isScrolling - True if the list is being scrolled. May be useful for rendering a placeholder if your cells\n * are complex.\n */\n onRenderCellConditional?: (item?: T, index?: number, isScrolling?: boolean) => React.ReactNode | null;\n\n /**\n * Optional callback invoked when List rendering completed.\n * This can be on initial mount or on re-render due to scrolling.\n * This method will be called as a result of changes in List pages (added or removed),\n * and after ALL the changes complete.\n * To track individual page Add / Remove use onPageAdded / onPageRemoved instead.\n * @param pages - The current array of pages in the List.\n */\n onPagesUpdated?: (pages: IPage[]) => void;\n\n /** Optional callback for monitoring when a page is added. */\n onPageAdded?: (page: IPage) => void;\n\n /** Optional callback for monitoring when a page is removed. */\n onPageRemoved?: (page: IPage) => void;\n\n /** Optional callback to get the item key, to be used on render. */\n getKey?: (item: T, index?: number) => string;\n\n /**\n * Called by the list to get the specification for a page.\n * Use this method to provide an allocation of items per page,\n * as well as an estimated rendered height for the page.\n * The list will use this to optimize virtualization.\n */\n getPageSpecification?: (itemIndex?: number, visibleRect?: IRectangle, items?: T[]) => IPageSpecification;\n\n /**\n * Method called by the list to get how many items to render per page from specified index.\n * In general, use `getPageSpecification` instead.\n */\n getItemCountForPage?: (itemIndex?: number, visibleRect?: IRectangle) => number;\n\n /**\n * Method called by the list to get the pixel height for a given page. By default, we measure the first\n * page's height and default all other pages to that height when calculating the surface space. It is\n * ideal to be able to adequately predict page heights in order to keep the surface space from jumping\n * in pixels, which has been seen to cause browser performance issues.\n * In general, use `getPageSpecification` instead.\n */\n getPageHeight?: (itemIndex?: number, visibleRect?: IRectangle, itemCount?: number, items?: T[]) => number;\n\n /**\n * Method called by the list to derive the page style object. For spacer pages, the list will derive\n * the height and passed in heights will be ignored.\n */\n getPageStyle?: (page: IPage) => any;\n\n /**\n * In addition to the visible window, how many windowHeights should we render ahead.\n * @defaultvalue 2\n */\n renderedWindowsAhead?: number;\n\n /**\n * In addition to the visible window, how many windowHeights should we render behind.\n * @defaultvalue 2\n */\n renderedWindowsBehind?: number;\n\n /**\n * Index in `items` array to start rendering from.\n * @default 0\n */\n startIndex?: number;\n\n /**\n * Number of items to render.\n * @default items.length\n */\n renderCount?: number;\n\n /**\n * Boolean value to enable render page caching. This is an experimental performance optimization\n * that is off by default.\n * @defaultvalue false\n */\n usePageCache?: boolean;\n\n /**\n * Optional callback to determine whether the list should be rendered in full, or virtualized.\n * Virtualization will add and remove pages of items as the user scrolls them into the visible range.\n * This benefits larger list scenarios by reducing the DOM on the screen, but can negatively affect performance for\n * smaller lists.\n * The default implementation will virtualize when this callback is not provided.\n */\n onShouldVirtualize?: (props: IListProps) => boolean;\n\n /**\n * The role to assign to the list root element.\n * Use this to override the default assignment of 'list' to the root and 'listitem' to the cells.\n */\n role?: string;\n\n /**\n * Called when the List will render a page.\n * Override this to control how cells are rendered within a page.\n */\n onRenderPage?: IRenderFunction>;\n\n /**\n * Render override for the element at the root of the `List`.\n * Use this to apply some final attributes or structure to the content\n * each time the list is updated with new active pages or items.\n */\n onRenderRoot?: IRenderFunction>;\n\n /**\n * Render override for the element representing the surface of the `List`.\n * Use this to alter the structure of the rendered content if necessary on each update.\n */\n onRenderSurface?: IRenderFunction>;\n\n /**\n * For perf reasons, List avoids re-rendering unless certain props have changed.\n * Use this prop if you need to force it to re-render in other cases. You can pass any type of\n * value as long as it only changes (`===` comparison) when a re-render should happen.\n */\n version?: any;\n\n /**\n * Whether to disable scroll state updates. This causes the isScrolling arg in onRenderCell to always be undefined.\n * This is a performance optimization to let List skip a render cycle by not updating its scrolling state.\n */\n ignoreScrollingState?: boolean;\n\n /**\n * Whether to render the list earlier than the default.\n * Use this in scenarios where the list is contained in a FocusZone or FocusTrapZone\n * as in a Dialog.\n */\n renderEarly?: boolean;\n}\n\n/**\n * {@docCategory List}\n */\nexport interface IPage {\n key: string;\n items: T[] | undefined;\n startIndex: number;\n itemCount: number;\n style: React.CSSProperties;\n top: number;\n height: number;\n data?: any;\n isSpacer?: boolean;\n isVisible?: boolean;\n}\n\n/**\n * {@docCategory List}\n */\nexport interface IPageProps\n extends React.HTMLAttributes,\n React.ClassAttributes {\n /**\n * The role being assigned to the rendered page element by the list.\n */\n role?: string;\n /**\n * The allocation data for the page.\n */\n page: IPage;\n}\n\n/**\n * {@docCategory List}\n */\nexport interface IPageSpecification {\n /**\n * The number of items to allocate to the page.\n */\n itemCount?: number;\n /**\n * The estimated pixel height of the page.\n */\n height?: number;\n /**\n * Data to pass through to the page when rendering.\n */\n data?: any;\n /**\n * The key to use when creating the page.\n */\n key?: string;\n}\n","export const getScrollHeight = (el?: HTMLElement | Window): number => {\n if (el === undefined) {\n return 0;\n }\n\n let scrollHeight = 0;\n if ('scrollHeight' in el) {\n scrollHeight = el.scrollHeight;\n } else if ('document' in el) {\n scrollHeight = el.document.documentElement.scrollHeight;\n }\n\n // No need to round as scrollHeight is already rounded for us.\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight\n return scrollHeight;\n};\n\nexport const getScrollYPosition = (el?: HTMLElement | Window): number => {\n if (el === undefined) {\n return 0;\n }\n\n let scrollPos = 0;\n if ('scrollTop' in el) {\n scrollPos = el.scrollTop;\n } else if ('scrollY' in el) {\n scrollPos = el.scrollY;\n }\n\n // Round this value to an integer as it may be fractional.\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY\n return Math.ceil(scrollPos);\n};\n\nexport const setScrollYPosition = (el: HTMLElement | Window, pos: number): void => {\n if ('scrollTop' in el) {\n el.scrollTop = pos;\n } else if ('scrollY' in el) {\n el.scrollTo(el.scrollX, pos);\n }\n};\n","import * as React from 'react';\nimport {\n Async,\n EventGroup,\n canUseDOM,\n css,\n divProperties,\n findIndex,\n findScrollableParent,\n getNativeProps,\n getParent,\n getWindow,\n initializeComponentRef,\n} from '../../Utilities';\nimport { ScrollToMode } from './List.types';\nimport { composeRenderFunction } from '../../Utilities';\nimport { getScrollHeight, getScrollYPosition, setScrollYPosition } from './utils/scroll';\nimport type { IRectangle, IRenderFunction } from '../../Utilities';\nimport type {\n IList,\n IListProps,\n IPage,\n IPageProps,\n IListOnRenderSurfaceProps,\n IListOnRenderRootProps,\n} from './List.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getWindowEx } from '../../utilities/dom';\n// import { ListDebugRenderer } from './utils/ListDebugRenderer';\n\nconst RESIZE_DELAY = 16;\nconst MIN_SCROLL_UPDATE_DELAY = 100;\nconst MAX_SCROLL_UPDATE_DELAY = 500;\nconst IDLE_DEBOUNCE_DELAY = 200;\n// The amount of time to wait before declaring that the list isn't scrolling\nconst DONE_SCROLLING_WAIT = 500;\nconst DEFAULT_ITEMS_PER_PAGE = 10;\nconst DEFAULT_PAGE_HEIGHT = 30;\nconst DEFAULT_RENDERED_WINDOWS_BEHIND = 2;\nconst DEFAULT_RENDERED_WINDOWS_AHEAD = 2;\nconst PAGE_KEY_PREFIX = 'page-';\nconst SPACER_KEY_PREFIX = 'spacer-';\n// Fraction of a page to have been scrolled before re-running expensive calculations\nconst SCROLL_RATIO = 1 / 3;\n\nexport interface IListState {\n pages?: IPage[];\n\n /** The last versionstamp for */\n measureVersion?: number;\n isScrolling?: boolean;\n getDerivedStateFromProps(nextProps: IListProps, previousState: IListState): IListState;\n\n pagesVersion?: {};\n hasMounted: boolean;\n}\n\ninterface IPageCacheItem {\n page: IPage;\n pageElement?: JSX.Element;\n}\n\ninterface IPageCache {\n [key: string]: IPageCacheItem;\n}\n\nconst EMPTY_RECT = {\n top: -1,\n bottom: -1,\n left: -1,\n right: -1,\n width: 0,\n height: 0,\n};\n\n// Naming expensive measures so that they're named in profiles.\nconst _measurePageRect = (element: HTMLElement) => element.getBoundingClientRect();\nconst _measureSurfaceRect = _measurePageRect;\nconst _measureScrollRect = _measurePageRect;\n\n/**\n * The List renders virtualized pages of items. Each page's item count is determined by the getItemCountForPage callback\n * if provided by the caller, or 10 as default. Each page's height is determined by the getPageHeight callback if\n * provided by the caller, or by cached measurements if available, or by a running average, or a default fallback.\n *\n * The algorithm for rendering pages works like this:\n *\n * 1. Predict visible pages based on \"current measure data\" (page heights, surface position, visible window)\n * 2. If changes are necessary, apply changes (add/remove pages)\n * 3. For pages that are added, measure the page heights if we need to using getBoundingClientRect\n * 4. If measurements don't match predictions, update measure data and goto step 1 asynchronously\n *\n * Measuring too frequently can pull performance down significantly. To compensate, we cache measured values so that\n * we can avoid re-measuring during operations that should not alter heights, like scrolling.\n *\n * To optimize glass rendering performance, onShouldVirtualize can be set. When onShouldVirtualize return false,\n * List will run in fast mode (not virtualized) to render all items without any measurements to improve page load time.\n * And we start doing measurements and rendering in virtualized mode when items grows larger than this threshold.\n *\n * However, certain operations can make measure data stale. For example, resizing the list, or passing in new props,\n * or forcing an update change cause pages to shrink/grow. When these operations occur, we increment a measureVersion\n * number, which we associate with cached measurements and use to determine if a remeasure should occur.\n */\nexport class List extends React.Component, IListState> implements IList {\n public static defaultProps = {\n startIndex: 0,\n onRenderCell: (item: any, index: number, containsFocus: boolean) => <>{(item && item.name) || ''},\n onRenderCellConditional: undefined,\n renderedWindowsAhead: DEFAULT_RENDERED_WINDOWS_AHEAD,\n renderedWindowsBehind: DEFAULT_RENDERED_WINDOWS_BEHIND,\n };\n\n public static contextType = WindowContext;\n\n private _root = React.createRef();\n private _surface = React.createRef();\n private _pageRefs: Record = {};\n private _async: Async;\n private _events: EventGroup;\n private _onAsyncScrollDebounced: () => void;\n private _onAsyncIdleDebounced: () => void;\n private _onScrollingDoneDebounced: () => void;\n private _onAsyncResizeDebounced: () => void;\n private _estimatedPageHeight: number;\n private _totalEstimates: number;\n private _cachedPageHeights: {\n [key: string]: {\n height: number;\n measureVersion: number;\n };\n };\n private _focusedIndex: number;\n private _scrollElement?: HTMLElement;\n private _hasCompletedFirstRender: boolean;\n\n // surface rect relative to window\n private _surfaceRect: IRectangle | undefined;\n\n // The visible rect that we're required to render given the current list state.\n private _requiredRect: IRectangle | null;\n\n // The visible rect that we're allowed to keep rendered. Pages outside of this rect will be removed.\n private _allowedRect: IRectangle;\n\n // The rect that is visible to the user\n private _visibleRect: IRectangle | undefined;\n\n // materialized rect around visible items, relative to surface\n private _materializedRect: IRectangle | null;\n\n private _requiredWindowsAhead: number;\n private _requiredWindowsBehind: number;\n\n private _measureVersion: number;\n private _scrollHeight?: number;\n private _scrollTop: number;\n private _pageCache: IPageCache;\n\n // private _debugRenderer: ListDebugRenderer;\n // private _debugRafId: number | undefined = undefined;\n\n public static getDerivedStateFromProps(\n nextProps: IListProps,\n previousState: IListState,\n ): IListState {\n return previousState.getDerivedStateFromProps(nextProps, previousState);\n }\n\n constructor(props: IListProps) {\n super(props);\n\n initializeComponentRef(this);\n\n this.state = {\n pages: [],\n isScrolling: false,\n getDerivedStateFromProps: this._getDerivedStateFromProps,\n hasMounted: false,\n };\n\n this._estimatedPageHeight = 0;\n this._totalEstimates = 0;\n this._requiredWindowsAhead = 0;\n this._requiredWindowsBehind = 0;\n\n // Track the measure version for everything.\n this._measureVersion = 0;\n\n this._cachedPageHeights = {};\n this._estimatedPageHeight = 0;\n this._focusedIndex = -1;\n this._pageCache = {};\n }\n\n public get pageRefs(): Readonly> {\n return this._pageRefs;\n }\n\n /**\n * Scroll to the given index. By default will bring the page the specified item is on into the view. If a callback\n * to measure the height of an individual item is specified, will only scroll to bring the specific item into view.\n *\n * Note: with items of variable height and no passed in `getPageHeight` method, the list might jump after scrolling\n * when windows before/ahead are being rendered, and the estimated height is replaced using actual elements.\n *\n * @param index - Index of item to scroll to\n * @param measureItem - Optional callback to measure the height of an individual item\n * @param scrollToMode - Optional defines where in the window the item should be positioned to when scrolling\n */\n public scrollToIndex(\n index: number,\n measureItem?: (itemIndex: number) => number,\n scrollToMode: ScrollToMode = ScrollToMode.auto,\n ): void {\n const startIndex = this.props.startIndex as number;\n const renderCount = this._getRenderCount();\n const endIndex = startIndex + renderCount;\n\n const allowedRect = this._allowedRect;\n\n let scrollTop = 0;\n\n let itemsPerPage = 1;\n for (let itemIndex = startIndex; itemIndex < endIndex; itemIndex += itemsPerPage) {\n const pageSpecification = this._getPageSpecification(this.props, itemIndex, allowedRect);\n\n const pageHeight = pageSpecification.height;\n itemsPerPage = pageSpecification.itemCount;\n\n const requestedIndexIsInPage = itemIndex <= index && itemIndex + itemsPerPage > index;\n if (requestedIndexIsInPage) {\n // We have found the page. If the user provided a way to measure an individual item, we will try to scroll in\n // just the given item, otherwise we'll only bring the page into view\n if (measureItem && this._scrollElement) {\n const scrollRect = _measureScrollRect(this._scrollElement);\n const scrollPosition = getScrollYPosition(this._scrollElement);\n const scrollWindow = {\n top: scrollPosition,\n bottom: scrollPosition + scrollRect.height,\n };\n\n // Adjust for actual item position within page\n const itemPositionWithinPage = index - itemIndex;\n for (let itemIndexInPage = 0; itemIndexInPage < itemPositionWithinPage; ++itemIndexInPage) {\n scrollTop += measureItem(itemIndex + itemIndexInPage);\n }\n const scrollBottom = scrollTop + measureItem(index);\n\n // If scrollToMode is set to something other than auto, we always want to\n // scroll the item into a specific position on the page.\n switch (scrollToMode) {\n case ScrollToMode.top:\n setScrollYPosition(this._scrollElement, scrollTop);\n return;\n case ScrollToMode.bottom:\n setScrollYPosition(this._scrollElement, scrollBottom - scrollRect.height);\n return;\n case ScrollToMode.center:\n setScrollYPosition(this._scrollElement, (scrollTop + scrollBottom - scrollRect.height) / 2);\n return;\n case ScrollToMode.auto:\n default:\n break;\n }\n\n const itemIsFullyVisible = scrollTop >= scrollWindow.top && scrollBottom <= scrollWindow.bottom;\n if (itemIsFullyVisible) {\n // Item is already visible, do nothing.\n return;\n }\n\n const itemIsPartiallyAbove = scrollTop < scrollWindow.top;\n const itemIsPartiallyBelow = scrollBottom > scrollWindow.bottom;\n\n if (itemIsPartiallyAbove) {\n // We will just scroll to 'scrollTop'\n // .------. - scrollTop\n // |Item |\n // | .----|-. - scrollWindow.top\n // '------' |\n // | |\n // '------'\n } else if (itemIsPartiallyBelow) {\n // Adjust scrollTop position to just bring in the element\n // .------. - scrollTop\n // | |\n // | .------.\n // '-|----' | - scrollWindow.bottom\n // | Item |\n // '------' - scrollBottom\n scrollTop = scrollBottom - scrollRect.height;\n }\n }\n\n if (this._scrollElement) {\n setScrollYPosition(this._scrollElement, scrollTop);\n }\n return;\n }\n\n scrollTop += pageHeight;\n }\n }\n\n public getStartItemIndexInView(measureItem?: (itemIndex: number) => number): number {\n const pages = this.state.pages || [];\n for (const page of pages) {\n const isPageVisible =\n !page.isSpacer && (this._scrollTop || 0) >= page.top && (this._scrollTop || 0) <= page.top + page.height;\n if (isPageVisible) {\n if (!measureItem) {\n const rowHeight = Math.floor(page.height / page.itemCount);\n return page.startIndex + Math.floor((this._scrollTop - page.top) / rowHeight);\n } else {\n let totalRowHeight = 0;\n for (let itemIndex = page.startIndex; itemIndex < page.startIndex + page.itemCount; itemIndex++) {\n const rowHeight = measureItem(itemIndex);\n if (\n page.top + totalRowHeight <= this._scrollTop &&\n this._scrollTop < page.top + totalRowHeight + rowHeight\n ) {\n return itemIndex;\n } else {\n totalRowHeight += rowHeight;\n }\n }\n }\n }\n }\n return 0;\n }\n\n public componentDidMount(): void {\n this._async = new Async(this);\n this._events = new EventGroup(this);\n\n // Ensure that scrolls are lazy updated.\n this._onAsyncScrollDebounced = this._async.debounce(this._onAsyncScroll, MIN_SCROLL_UPDATE_DELAY, {\n leading: false,\n maxWait: MAX_SCROLL_UPDATE_DELAY,\n });\n\n this._onAsyncIdleDebounced = this._async.debounce(this._onAsyncIdle, IDLE_DEBOUNCE_DELAY, {\n leading: false,\n });\n\n this._onAsyncResizeDebounced = this._async.debounce(this._onAsyncResize, RESIZE_DELAY, {\n leading: false,\n });\n\n this._onScrollingDoneDebounced = this._async.debounce(this._onScrollingDone, DONE_SCROLLING_WAIT, {\n leading: false,\n });\n\n this._scrollElement = findScrollableParent(this._root.current) as HTMLElement;\n this._scrollTop = 0;\n this.setState({ ...this._updatePages(this.props, this.state), hasMounted: true });\n this._measureVersion++;\n\n const win = getWindowEx(this.context);\n\n this._events.on(win, 'resize', this._onAsyncResizeDebounced);\n if (this._root.current) {\n this._events.on(this._root.current, 'focus', this._onFocus, true);\n }\n if (this._scrollElement) {\n this._events.on(this._scrollElement, 'scroll', this._onScroll);\n this._events.on(this._scrollElement, 'scroll', this._onAsyncScrollDebounced);\n }\n\n // this._debugRenderer = new ListDebugRenderer();\n\n // const debugRender = () => {\n // this._debugRenderer.render({\n // visibleRect: this._visibleRect,\n // allowedRect: this._allowedRect,\n // requiredRect: this._requiredRect,\n // materializedRect: this._materializedRect,\n // surfaceRect: this._surfaceRect,\n // totalListHeight: this.getTotalListHeight(),\n // pages: this.state.pages,\n // scrollTop: Math.abs(this._scrollTop - getScrollYPosition(this._scrollElement)),\n // estimatedLine: this._estimatedPageHeight * SCROLL_RATIO,\n // scrollY: getScrollYPosition(this._scrollElement),\n // });\n // this._debugRafId = requestAnimationFrame(debugRender);\n // };\n // debugRender();\n }\n\n public componentDidUpdate(previousProps: IListProps, previousState: IListState): void {\n // Multiple updates may have been queued, so the callback will reflect all of them.\n // Re-fetch the current props and states to avoid using a stale props or state captured in the closure.\n const finalProps = this.props;\n const finalState = this.state;\n\n if (this.state.pagesVersion !== previousState.pagesVersion) {\n // If we weren't provided with the page height, measure the pages\n if (!finalProps.getPageHeight) {\n // If measured version is invalid since we've updated the DOM\n const heightsChanged = this._updatePageMeasurements(finalState.pages!);\n\n // On first render, we should re-measure so that we don't get a visual glitch.\n if (heightsChanged) {\n this._materializedRect = null;\n if (!this._hasCompletedFirstRender) {\n this._hasCompletedFirstRender = true;\n this.setState(this._updatePages(finalProps, finalState));\n } else {\n this._onAsyncScrollDebounced();\n }\n } else {\n // Enqueue an idle bump.\n this._onAsyncIdleDebounced();\n }\n } else {\n // Enqueue an idle bump\n this._onAsyncIdleDebounced();\n }\n\n // Notify the caller that rendering the new pages has completed\n if (finalProps.onPagesUpdated) {\n finalProps.onPagesUpdated(finalState.pages as IPage[]);\n }\n }\n }\n\n public componentWillUnmount(): void {\n this._async?.dispose();\n this._events?.dispose();\n\n delete this._scrollElement;\n\n // this._debugRenderer.dispose();\n // if (this._debugRafId) {\n // cancelAnimationFrame(this._debugRafId);\n // this._debugRafId = undefined;\n // }\n }\n\n public shouldComponentUpdate(newProps: IListProps, newState: IListState): boolean {\n const { pages: oldPages } = this.state;\n const { pages: newPages } = newState;\n let shouldComponentUpdate = false;\n\n // Update if the page stops scrolling\n if (!newState.isScrolling && this.state.isScrolling) {\n return true;\n }\n\n if (newProps.version !== this.props.version) {\n return true;\n }\n\n if (newProps.className !== this.props.className) {\n return true;\n }\n\n if (newProps.items === this.props.items && oldPages!.length === newPages!.length) {\n for (let i = 0; i < oldPages!.length; i++) {\n const oldPage = oldPages![i];\n const newPage = newPages![i];\n\n if (oldPage.key !== newPage.key || oldPage.itemCount !== newPage.itemCount) {\n shouldComponentUpdate = true;\n break;\n }\n }\n } else {\n shouldComponentUpdate = true;\n }\n\n return shouldComponentUpdate;\n }\n\n public forceUpdate(): void {\n this._invalidatePageCache();\n // Ensure that when the list is force updated we update the pages first before render.\n this._updateRenderRects(this.props, this.state, true);\n this.setState(this._updatePages(this.props, this.state));\n this._measureVersion++;\n\n super.forceUpdate();\n }\n\n /**\n * Get the current height the list and it's pages.\n */\n public getTotalListHeight(): number {\n return this._surfaceRect!.height;\n }\n\n public render(): JSX.Element | null {\n const { className, role = 'list', onRenderSurface, onRenderRoot } = this.props;\n const { pages = [] } = this.state;\n const pageElements: JSX.Element[] = [];\n const divProps = getNativeProps>(this.props, divProperties);\n\n for (const page of pages) {\n pageElements.push(this._renderPage(page));\n }\n\n const finalOnRenderSurface = onRenderSurface\n ? composeRenderFunction(onRenderSurface, this._onRenderSurface)\n : this._onRenderSurface;\n\n const finalOnRenderRoot = onRenderRoot\n ? composeRenderFunction(onRenderRoot, this._onRenderRoot)\n : this._onRenderRoot;\n\n return finalOnRenderRoot({\n rootRef: this._root,\n pages,\n surfaceElement: finalOnRenderSurface({\n surfaceRef: this._surface,\n pages,\n pageElements,\n divProps: {\n role: 'presentation',\n className: 'ms-List-surface',\n },\n }),\n divProps: {\n ...divProps,\n className: css('ms-List', className),\n role: pageElements.length > 0 ? role : undefined,\n 'aria-label': pageElements.length > 0 ? divProps['aria-label'] : undefined,\n },\n });\n }\n\n private _getDerivedStateFromProps = (nextProps: IListProps, previousState: IListState): IListState => {\n if (\n nextProps.items !== this.props.items ||\n nextProps.renderCount !== this.props.renderCount ||\n nextProps.startIndex !== this.props.startIndex ||\n nextProps.version !== this.props.version ||\n (!previousState.hasMounted && this.props.renderEarly && canUseDOM())\n ) {\n // We have received new items so we want to make sure that initially we only render a single window to\n // fill the currently visible rect, and then later render additional windows.\n this._resetRequiredWindows();\n this._requiredRect = null;\n\n this._measureVersion++;\n this._invalidatePageCache();\n\n return this._updatePages(nextProps, previousState);\n }\n\n return previousState;\n };\n\n private _shouldVirtualize(props: IListProps = this.props): boolean {\n const { onShouldVirtualize } = props;\n return !onShouldVirtualize || onShouldVirtualize(props);\n }\n\n /**\n * when props.items change or forceUpdate called, throw away cached pages\n */\n private _invalidatePageCache(): void {\n this._pageCache = {};\n }\n\n private _renderPage(page: IPage): JSX.Element {\n const { usePageCache } = this.props;\n let cachedPage;\n // if usePageCache is set and cached page element can be found, just return cached page\n if (usePageCache) {\n cachedPage = this._pageCache[page.key];\n if (cachedPage && cachedPage.pageElement) {\n return cachedPage.pageElement;\n }\n }\n\n const pageStyle = this._getPageStyle(page);\n\n const { onRenderPage = this._onRenderPage } = this.props;\n\n const pageElement = onRenderPage(\n {\n page,\n className: 'ms-List-page',\n key: page.key,\n ref: (newRef: unknown) => {\n this._pageRefs[page.key] = newRef;\n },\n style: pageStyle,\n role: 'presentation',\n },\n this._onRenderPage,\n );\n\n // cache the first page for now since it is re-rendered a lot times unnecessarily.\n // todo: a more aggresive caching mechanism is to cache pages constaining the items not changed.\n // now we re-render pages too frequently, for example, props.items increased from 30 to 60, although the\n // first 30 items did not change, we still re-rendered all of them in this props.items change.\n if (usePageCache && page.startIndex === 0) {\n this._pageCache[page.key] = {\n page,\n pageElement,\n };\n }\n return pageElement;\n }\n\n private _onRenderRoot = (props: IListOnRenderRootProps): JSX.Element => {\n const { rootRef, surfaceElement, divProps } = props;\n\n return (\n
    \n {surfaceElement}\n
    \n );\n };\n\n private _onRenderSurface = (props: IListOnRenderSurfaceProps): JSX.Element => {\n const { surfaceRef, pageElements, divProps } = props;\n\n return (\n
    \n {pageElements}\n
    \n );\n };\n\n /** Generate the style object for the page. */\n private _getPageStyle(page: IPage): React.StyleHTMLAttributes {\n const { getPageStyle } = this.props;\n\n return {\n ...(getPageStyle ? getPageStyle(page) : {}),\n ...(!page.items\n ? {\n height: page.height,\n }\n : {}),\n };\n }\n\n private _onRenderPage = (pageProps: IPageProps, defaultRender?: IRenderFunction>): any => {\n const { onRenderCell, onRenderCellConditional, role } = this.props;\n\n const {\n page: { items = [], startIndex },\n ...divProps\n } = pageProps;\n\n // only assign list item role if no role is assigned\n const cellRole = role === undefined ? 'listitem' : 'presentation';\n const cells: React.ReactNode[] = [];\n\n for (let i = 0; i < items.length; i++) {\n const index = startIndex + i;\n const item = items[i];\n\n let itemKey = this.props.getKey ? this.props.getKey(item, index) : item && (item as any).key;\n\n if (itemKey === null || itemKey === undefined) {\n itemKey = index;\n }\n\n const renderCell = onRenderCellConditional ?? onRenderCell;\n\n const cell =\n renderCell?.(item, index, !this.props.ignoreScrollingState ? this.state.isScrolling : undefined) ?? null;\n\n if (!onRenderCellConditional || cell) {\n cells.push(\n \n {cell}\n
    ,\n );\n }\n }\n\n return
    {cells}
    ;\n };\n\n /** Track the last item index focused so that we ensure we keep it rendered. */\n private _onFocus(ev: any): void {\n let target = ev.target as HTMLElement;\n\n while (target !== this._surface.current) {\n const indexString = target.getAttribute('data-list-index');\n\n if (indexString) {\n this._focusedIndex = Number(indexString);\n break;\n }\n\n target = getParent(target) as HTMLElement;\n }\n }\n\n /**\n * Called synchronously to reset the required render range to 0 on scrolling. After async scroll has executed,\n * we will call onAsyncIdle which will reset it back to it's correct value.\n */\n private _onScroll(): void {\n if (!this.state.isScrolling && !this.props.ignoreScrollingState) {\n this.setState({ isScrolling: true });\n }\n this._resetRequiredWindows();\n this._onScrollingDoneDebounced();\n }\n\n private _resetRequiredWindows(): void {\n this._requiredWindowsAhead = 0;\n this._requiredWindowsBehind = 0;\n }\n\n /**\n * Debounced method to asynchronously update the visible region on a scroll event.\n */\n private _onAsyncScroll(): void {\n this._updateRenderRects(this.props, this.state);\n\n // Only update pages when the visible rect falls outside of the materialized rect.\n if (!this._materializedRect || !_isContainedWithin(this._requiredRect as IRectangle, this._materializedRect)) {\n this.setState(this._updatePages(this.props, this.state));\n } else {\n // console.log('requiredRect contained in materialized', this._requiredRect, this._materializedRect);\n }\n }\n\n /**\n * This is an async debounced method that will try and increment the windows we render. If we can increment\n * either, we increase the amount we render and re-evaluate.\n */\n private _onAsyncIdle(): void {\n const { renderedWindowsAhead, renderedWindowsBehind } = this.props;\n const { _requiredWindowsAhead: requiredWindowsAhead, _requiredWindowsBehind: requiredWindowsBehind } = this;\n const windowsAhead = Math.min(renderedWindowsAhead as number, requiredWindowsAhead + 1);\n const windowsBehind = Math.min(renderedWindowsBehind as number, requiredWindowsBehind + 1);\n\n if (windowsAhead !== requiredWindowsAhead || windowsBehind !== requiredWindowsBehind) {\n // console.log('idling', windowsBehind, windowsAhead);\n\n this._requiredWindowsAhead = windowsAhead;\n this._requiredWindowsBehind = windowsBehind;\n this._updateRenderRects(this.props, this.state);\n this.setState(this._updatePages(this.props, this.state));\n }\n\n if (renderedWindowsAhead! > windowsAhead || renderedWindowsBehind! > windowsBehind) {\n // Async increment on next tick.\n this._onAsyncIdleDebounced();\n }\n }\n\n /**\n * Function to call when the list is done scrolling.\n * This function is debounced.\n */\n private _onScrollingDone(): void {\n if (!this.props.ignoreScrollingState) {\n this.setState({ isScrolling: false });\n this._onAsyncIdle();\n }\n }\n\n private _onAsyncResize(): void {\n this.forceUpdate();\n }\n\n private _updatePages(nextProps: IListProps, previousState: IListState): IListState {\n // console.log('updating pages');\n\n if (!this._requiredRect) {\n this._updateRenderRects(nextProps, previousState);\n }\n\n const newListState = this._buildPages(nextProps, previousState);\n const oldListPages = previousState.pages!;\n\n this._notifyPageChanges(oldListPages, newListState.pages!, this.props);\n\n return {\n ...previousState,\n ...newListState,\n pagesVersion: {},\n };\n }\n\n /**\n * Notify consumers that the rendered pages have changed\n * @param oldPages - The old pages\n * @param newPages - The new pages\n * @param props - The props to use\n */\n private _notifyPageChanges(oldPages: IPage[], newPages: IPage[], props: IListProps): void {\n const { onPageAdded, onPageRemoved } = props;\n\n if (onPageAdded || onPageRemoved) {\n const renderedIndexes: {\n [index: number]: IPage;\n } = {};\n\n for (const page of oldPages) {\n if (page.items) {\n renderedIndexes[page.startIndex] = page;\n }\n }\n\n for (const page of newPages) {\n if (page.items) {\n if (!renderedIndexes[page.startIndex]) {\n this._onPageAdded(page);\n } else {\n delete renderedIndexes[page.startIndex];\n }\n }\n }\n\n for (const index in renderedIndexes) {\n if (renderedIndexes.hasOwnProperty(index)) {\n this._onPageRemoved(renderedIndexes[index]);\n }\n }\n }\n }\n\n private _updatePageMeasurements(pages: IPage[]): boolean {\n let heightChanged = false;\n\n // when not in virtualize mode, we render all the items without page measurement\n if (!this._shouldVirtualize()) {\n return heightChanged;\n }\n\n for (let i = 0; i < pages.length; i++) {\n const page = pages[i];\n\n if (page.items) {\n heightChanged = this._measurePage(page) || heightChanged;\n }\n }\n\n return heightChanged;\n }\n\n /**\n * Given a page, measure its dimensions, update cache.\n * @returns True if the height has changed.\n */\n private _measurePage(page: IPage): boolean {\n let hasChangedHeight = false;\n const pageElement = this._pageRefs[page.key] as HTMLElement;\n const cachedHeight = this._cachedPageHeights[page.startIndex];\n\n // console.log(' * measure attempt', page.startIndex, cachedHeight);\n\n if (\n pageElement &&\n this._shouldVirtualize() &&\n (!cachedHeight || cachedHeight.measureVersion !== this._measureVersion)\n ) {\n const newClientRect = {\n width: pageElement.clientWidth,\n height: pageElement.clientHeight,\n };\n\n if (newClientRect.height || newClientRect.width) {\n hasChangedHeight = page.height !== newClientRect.height;\n\n // console.warn(' *** expensive page measure', page.startIndex, page.height, newClientRect.height);\n\n page.height = newClientRect.height;\n\n this._cachedPageHeights[page.startIndex] = {\n height: newClientRect.height,\n measureVersion: this._measureVersion,\n };\n\n this._estimatedPageHeight = Math.round(\n (this._estimatedPageHeight * this._totalEstimates + newClientRect.height) / (this._totalEstimates + 1),\n );\n\n this._totalEstimates++;\n }\n }\n\n return hasChangedHeight;\n }\n\n /** Called when a page has been added to the DOM. */\n private _onPageAdded(page: IPage): void {\n const { onPageAdded } = this.props;\n\n // console.log('page added', page.startIndex, this.state.pages.map(page => page.key).join(', '));\n\n if (onPageAdded) {\n onPageAdded(page);\n }\n }\n\n /** Called when a page has been removed from the DOM. */\n private _onPageRemoved(page: IPage): void {\n const { onPageRemoved } = this.props;\n\n // console.log(' --- page removed', page.startIndex, this.state.pages.map(page => page.key).join(', '));\n\n if (onPageRemoved) {\n onPageRemoved(page);\n }\n }\n\n /** Build up the pages that should be rendered. */\n private _buildPages(props: IListProps, state: IListState): IListState {\n let { renderCount } = props;\n const { items, startIndex, getPageHeight } = props;\n\n renderCount = this._getRenderCount(props);\n\n const materializedRect = { ...EMPTY_RECT };\n const pages: IPage[] = [];\n\n let itemsPerPage = 1;\n let pageTop = 0;\n let currentSpacer = null;\n const focusedIndex = this._focusedIndex;\n const endIndex = startIndex! + renderCount;\n const shouldVirtualize = this._shouldVirtualize(props);\n\n // First render is very important to track; when we render cells, we have no idea of estimated page height.\n // So we should default to rendering only the first page so that we can get information.\n // However if the user provides a measure function, let's just assume they know the right heights.\n const isFirstRender = this._estimatedPageHeight === 0 && !getPageHeight;\n\n const allowedRect = this._allowedRect;\n\n for (let itemIndex = startIndex!; itemIndex < endIndex; itemIndex += itemsPerPage) {\n const pageSpecification = this._getPageSpecification(props, itemIndex, allowedRect);\n const pageHeight = pageSpecification.height;\n const pageData = pageSpecification.data;\n const key = pageSpecification.key;\n\n itemsPerPage = pageSpecification.itemCount;\n\n const pageBottom = pageTop + pageHeight - 1;\n\n const isPageRendered =\n findIndex(state.pages as IPage[], (page: IPage) => !!page.items && page.startIndex === itemIndex) > -1;\n const isPageInAllowedRange = !allowedRect || (pageBottom >= allowedRect.top && pageTop <= allowedRect.bottom!);\n const isPageInRequiredRange =\n !this._requiredRect || (pageBottom >= this._requiredRect.top && pageTop <= this._requiredRect.bottom!);\n\n const isPageVisible =\n (!isFirstRender && (isPageInRequiredRange || (isPageInAllowedRange && isPageRendered))) || !shouldVirtualize;\n const isPageFocused = focusedIndex >= itemIndex && focusedIndex < itemIndex + itemsPerPage;\n const isFirstPage = itemIndex === startIndex;\n\n // Only render whats visible, focused, or first page,\n // or when running in fast rendering mode (not in virtualized mode), we render all current items in pages\n if (isPageVisible || isPageFocused || isFirstPage) {\n if (currentSpacer) {\n pages.push(currentSpacer);\n currentSpacer = null;\n }\n\n const itemsInPage = Math.min(itemsPerPage, endIndex - itemIndex);\n const newPage = this._createPage(\n key,\n items!.slice(itemIndex, itemIndex + itemsInPage),\n itemIndex,\n undefined,\n undefined,\n pageData,\n );\n\n newPage.top = pageTop;\n newPage.height = pageHeight;\n if (this._visibleRect && this._visibleRect.bottom) {\n newPage.isVisible = pageBottom >= this._visibleRect.top && pageTop <= this._visibleRect.bottom;\n }\n\n pages.push(newPage);\n\n if (isPageInRequiredRange && this._allowedRect) {\n _mergeRect(materializedRect, {\n top: pageTop,\n bottom: pageBottom,\n height: pageHeight,\n left: allowedRect.left,\n right: allowedRect.right,\n width: allowedRect.width,\n });\n }\n } else {\n if (!currentSpacer) {\n currentSpacer = this._createPage(\n SPACER_KEY_PREFIX + itemIndex,\n undefined,\n itemIndex,\n 0,\n undefined,\n pageData,\n true /*isSpacer*/,\n );\n }\n currentSpacer.height = (currentSpacer.height || 0) + (pageBottom - pageTop) + 1;\n currentSpacer.itemCount += itemsPerPage;\n }\n pageTop += pageBottom - pageTop + 1;\n\n // in virtualized mode, we render need to render first page then break and measure,\n // otherwise, we render all items without measurement to make rendering fast\n if (isFirstRender && shouldVirtualize) {\n break;\n }\n }\n\n if (currentSpacer) {\n currentSpacer.key = SPACER_KEY_PREFIX + 'end';\n pages.push(currentSpacer);\n }\n\n this._materializedRect = materializedRect;\n\n // console.log('materialized: ', materializedRect);\n return {\n ...state,\n pages,\n measureVersion: this._measureVersion,\n };\n }\n\n private _getPageSpecification(\n props: IListProps,\n itemIndex: number,\n visibleRect: IRectangle,\n ): {\n // These return values are now no longer optional.\n itemCount: number;\n height: number;\n data?: any;\n key?: string;\n } {\n const { getPageSpecification } = props;\n\n if (getPageSpecification) {\n const pageData = getPageSpecification(itemIndex, visibleRect, props.items);\n\n const { itemCount = this._getItemCountForPage(itemIndex, visibleRect) } = pageData;\n\n const { height = this._getPageHeight(itemIndex, visibleRect, itemCount) } = pageData;\n\n return {\n itemCount,\n height,\n data: pageData.data,\n key: pageData.key,\n };\n } else {\n const itemCount = this._getItemCountForPage(itemIndex, visibleRect);\n\n return {\n itemCount,\n height: this._getPageHeight(itemIndex, visibleRect, itemCount),\n };\n }\n }\n\n /**\n * Get the pixel height of a give page. Will use the props getPageHeight first, and if not provided, fallback to\n * cached height, or estimated page height, or default page height.\n */\n private _getPageHeight(itemIndex: number, visibleRect: IRectangle, itemsPerPage: number): number {\n if (this.props.getPageHeight) {\n return this.props.getPageHeight(itemIndex, visibleRect, itemsPerPage, this.props.items);\n } else {\n const cachedHeight = this._cachedPageHeights[itemIndex];\n\n return cachedHeight ? cachedHeight.height : this._estimatedPageHeight || DEFAULT_PAGE_HEIGHT;\n }\n }\n\n private _getItemCountForPage(itemIndex: number, visibileRect: IRectangle): number {\n const itemsPerPage = this.props.getItemCountForPage\n ? this.props.getItemCountForPage(itemIndex, visibileRect)\n : DEFAULT_ITEMS_PER_PAGE;\n\n return itemsPerPage ? itemsPerPage : DEFAULT_ITEMS_PER_PAGE;\n }\n\n private _createPage(\n pageKey: string | undefined,\n items: any[] | undefined,\n startIndex: number = -1,\n count: number = items ? items.length : 0,\n style: React.CSSProperties = {},\n data?: any,\n isSpacer?: boolean,\n ): IPage {\n pageKey = pageKey || PAGE_KEY_PREFIX + startIndex;\n const cachedPage = this._pageCache[pageKey];\n if (cachedPage && cachedPage.page) {\n return cachedPage.page;\n }\n\n return {\n key: pageKey,\n startIndex,\n itemCount: count,\n items,\n style,\n top: 0,\n height: 0,\n data,\n isSpacer: isSpacer || false,\n };\n }\n\n private _getRenderCount(props?: IListProps): number {\n const { items, startIndex, renderCount } = props || this.props;\n\n return renderCount === undefined ? (items ? items.length - startIndex! : 0) : renderCount;\n }\n\n /** Calculate the visible rect within the list where top: 0 and left: 0 is the top/left of the list. */\n private _updateRenderRects(props: IListProps, state: IListState, forceUpdate?: boolean): void {\n const { renderedWindowsAhead, renderedWindowsBehind } = props;\n const { pages } = state;\n // when not in virtualize mode, we render all items without measurement to optimize page rendering perf\n if (!this._shouldVirtualize(props)) {\n return;\n }\n\n let surfaceRect = this._surfaceRect || { ...EMPTY_RECT };\n const scrollHeight = getScrollHeight(this._scrollElement);\n const scrollTop = getScrollYPosition(this._scrollElement);\n\n // WARNING: EXPENSIVE CALL! We need to know the surface top relative to the window.\n // This needs to be called to recalculate when new pages should be loaded.\n // We check to see how far we've scrolled and if it's further than a third of a page we run it again.\n if (\n this._surface.current &&\n (forceUpdate ||\n !pages ||\n !this._surfaceRect ||\n !scrollHeight ||\n scrollHeight !== this._scrollHeight ||\n Math.abs(this._scrollTop - scrollTop) > this._estimatedPageHeight * SCROLL_RATIO)\n ) {\n surfaceRect = this._surfaceRect = _measureSurfaceRect(this._surface.current);\n this._scrollTop = scrollTop;\n }\n\n // If the scroll height has changed, something in the container likely resized and\n // we should redo the page heights incase their content resized.\n if (forceUpdate || !scrollHeight || scrollHeight !== this._scrollHeight) {\n this._measureVersion++;\n }\n\n this._scrollHeight = scrollHeight || 0;\n\n // If the surface is above the container top or below the container bottom, or if this is not the first\n // render return empty rect.\n // The first time the list gets rendered we need to calculate the rectangle. The width of the list is\n // used to calculate the width of the list items.\n const visibleTop = Math.max(0, -surfaceRect.top);\n const win = getWindow(this._root.current);\n const visibleRect = {\n top: visibleTop,\n left: surfaceRect.left,\n bottom: visibleTop + win!.innerHeight,\n right: surfaceRect.right,\n width: surfaceRect.width,\n height: win!.innerHeight,\n };\n\n // The required/allowed rects are adjusted versions of the visible rect.\n this._requiredRect = _expandRect(visibleRect, this._requiredWindowsBehind, this._requiredWindowsAhead);\n this._allowedRect = _expandRect(visibleRect, renderedWindowsBehind!, renderedWindowsAhead!);\n\n // store the visible rect for later use.\n this._visibleRect = visibleRect;\n }\n}\n\nfunction _expandRect(rect: IRectangle, pagesBefore: number, pagesAfter: number): IRectangle {\n const top = rect.top - pagesBefore * rect.height;\n const height = rect.height + (pagesBefore + pagesAfter) * rect.height;\n\n return {\n top,\n bottom: top + height,\n height,\n left: rect.left,\n right: rect.right,\n width: rect.width,\n };\n}\n\nfunction _isContainedWithin(innerRect: IRectangle, outerRect: IRectangle): boolean {\n return (\n innerRect.top >= outerRect.top &&\n innerRect.left >= outerRect.left &&\n innerRect.bottom! <= outerRect.bottom! &&\n innerRect.right! <= outerRect.right!\n );\n}\n\nfunction _mergeRect(targetRect: IRectangle, newRect: IRectangle): IRectangle {\n targetRect.top = newRect.top < targetRect.top || targetRect.top === -1 ? newRect.top : targetRect.top;\n targetRect.left = newRect.left < targetRect.left || targetRect.left === -1 ? newRect.left : targetRect.left;\n targetRect.bottom =\n newRect.bottom! > targetRect.bottom! || targetRect.bottom === -1 ? newRect.bottom : targetRect.bottom;\n targetRect.right = newRect.right! > targetRect.right! || targetRect.right === -1 ? newRect.right : targetRect.right;\n targetRect.width = targetRect.right! - targetRect.left + 1;\n targetRect.height = targetRect.bottom! - targetRect.top + 1;\n\n return targetRect;\n}\n","import * as React from 'react';\nimport { DelayedRender, classNamesFunction, getNativeProps, htmlElementProperties, css } from '../../Utilities';\nimport { IconButton } from '../../Button';\nimport { Icon } from '../../Icon';\nimport { MessageBarType } from './MessageBar.types';\nimport { useId, useBoolean } from '@fluentui/react-hooks';\nimport type { IMessageBarProps, IMessageBarStyleProps, IMessageBarStyles } from './MessageBar.types';\n\nconst ICON_MAP = {\n [MessageBarType.info]: 'Info',\n [MessageBarType.warning]: 'Info',\n [MessageBarType.error]: 'ErrorBadge',\n [MessageBarType.blocked]: 'Blocked2',\n [MessageBarType.severeWarning]: 'Warning',\n [MessageBarType.success]: 'Completed',\n};\n\nconst COMPONENT_NAME = 'MessageBar';\n\nconst getClassNames = classNamesFunction();\n\nconst getAnnouncementPriority = (messageBarType: MessageBarType): 'assertive' | 'polite' => {\n switch (messageBarType) {\n case MessageBarType.blocked:\n case MessageBarType.error:\n case MessageBarType.severeWarning:\n return 'assertive';\n }\n return 'polite';\n};\n\nconst getRole = (messageBarType: MessageBarType): 'alert' | 'status' => {\n switch (messageBarType) {\n case MessageBarType.blocked:\n case MessageBarType.error:\n case MessageBarType.severeWarning:\n return 'alert';\n }\n return 'status';\n};\n\nexport const MessageBarBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IMessageBarProps\n>((props, ref) => {\n const [expandSingleLine, { toggle: toggleExpandSingleLine }] = useBoolean(false);\n const labelId = useId('MessageBar');\n\n const {\n actions,\n className,\n children,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n overflowButtonAriaLabel,\n dismissIconProps,\n styles,\n theme,\n messageBarType = MessageBarType.info,\n onDismiss = undefined,\n isMultiline = true,\n truncated,\n dismissButtonAriaLabel,\n messageBarIconProps,\n role,\n delayedRender = true,\n expandButtonProps,\n onExpandButtonToggled = undefined,\n showExpandButton,\n } = props;\n\n // Wrap 'toggleExpandSingleLine' to execute the 'onExpandButtonToggled' callback whenever the expand button toggles\n const handleToggleExpandSingleLine = React.useCallback(() => {\n toggleExpandSingleLine();\n if (onExpandButtonToggled) {\n // We use the opposite of 'expandSingleLine' here because at this point the useBoolean's\n // useState hasn't been updated yet.\n onExpandButtonToggled(!expandSingleLine);\n }\n }, [expandSingleLine, onExpandButtonToggled, toggleExpandSingleLine]);\n\n const nativeProps = getNativeProps>(props, htmlElementProperties, [\n 'className',\n 'role',\n ]);\n\n const classNames: { [key in keyof IMessageBarStyles]: string } = getClassNames(styles, {\n theme: theme!,\n messageBarType: messageBarType || MessageBarType.info,\n onDismiss: onDismiss !== undefined,\n actions: actions !== undefined,\n truncated,\n isMultiline,\n expandSingleLine,\n className,\n });\n\n const expandIconProps = { iconName: expandSingleLine ? 'DoubleChevronUp' : 'DoubleChevronDown' };\n const regionProps = actions || onDismiss ? { 'aria-describedby': labelId, role: 'region' } : {};\n const actionsDiv = actions ?
    {actions}
    : null;\n\n const dismissButton = onDismiss ? (\n \n ) : null;\n\n return (\n
    \n
    \n
    \n {messageBarIconProps ? (\n \n ) : (\n \n )}\n
    \n \n \n {delayedRender ? (\n \n {children}\n \n ) : (\n // this span is probably not necessary, but preserving it for now in case anyone\n // has styling that expects it to be present\n {children}\n )}\n \n
    \n {\n /* singleline expand/collapse button */ (showExpandButton || (!isMultiline && !actionsDiv && truncated)) && (\n
    \n \n
    \n )\n }\n {/* singleline actions */ !isMultiline && actionsDiv}\n {\n /* singleline dismiss */ !isMultiline && dismissButton && (\n
    {dismissButton}
    \n )\n }\n {/* multiline dismiss */ isMultiline && dismissButton}\n
    \n {/* multiline actions */ isMultiline && actionsDiv}\n
    \n );\n});\nMessageBarBase.displayName = COMPONENT_NAME;\n","import {\n HighContrastSelector,\n HighContrastSelectorWhite,\n ScreenWidthMaxSmall,\n getScreenSelector,\n getGlobalClassNames,\n getFocusStyle,\n IconFontSizes,\n getHighContrastNoAdjustStyle,\n} from '../../Styling';\nimport { MessageBarType } from './MessageBar.types';\nimport type { IStyle, ISemanticColors } from '../../Styling';\nimport type { IMessageBarStyleProps, IMessageBarStyles } from './MessageBar.types';\n\nconst GlobalClassNames = {\n root: 'ms-MessageBar',\n error: 'ms-MessageBar--error',\n blocked: 'ms-MessageBar--blocked',\n severeWarning: 'ms-MessageBar--severeWarning',\n success: 'ms-MessageBar--success',\n warning: 'ms-MessageBar--warning',\n multiline: 'ms-MessageBar-multiline',\n singleline: 'ms-MessageBar-singleline',\n dismissalSingleLine: 'ms-MessageBar-dismissalSingleLine',\n expandingSingleLine: 'ms-MessageBar-expandingSingleLine',\n content: 'ms-MessageBar-content',\n iconContainer: 'ms-MessageBar-icon',\n text: 'ms-MessageBar-text',\n innerText: 'ms-MessageBar-innerText',\n dismissSingleLine: 'ms-MessageBar-dismissSingleLine',\n expandSingleLine: 'ms-MessageBar-expandSingleLine',\n dismissal: 'ms-MessageBar-dismissal',\n expand: 'ms-MessageBar-expand',\n actions: 'ms-MessageBar-actions',\n actionsSingleline: 'ms-MessageBar-actionsSingleLine',\n};\n\nconst backgroundColor: { [key: string]: keyof ISemanticColors } = {\n [MessageBarType.error]: 'errorBackground',\n [MessageBarType.blocked]: 'errorBackground',\n [MessageBarType.success]: 'successBackground',\n [MessageBarType.warning]: 'warningBackground',\n [MessageBarType.severeWarning]: 'severeWarningBackground',\n [MessageBarType.info]: 'infoBackground',\n};\n\nconst iconColor: { [key: string]: keyof ISemanticColors } = {\n [MessageBarType.error]: 'errorIcon',\n [MessageBarType.blocked]: 'errorIcon',\n [MessageBarType.success]: 'successIcon',\n [MessageBarType.warning]: 'warningIcon',\n [MessageBarType.severeWarning]: 'severeWarningIcon',\n [MessageBarType.info]: 'infoIcon',\n};\n\nconst highContrastBorderColor: { [key: string]: string } = {\n [MessageBarType.error]: '#ff0000',\n [MessageBarType.blocked]: '#ff0000',\n [MessageBarType.success]: '#bad80a',\n [MessageBarType.warning]: '#fff100',\n [MessageBarType.severeWarning]: '#ff0000',\n [MessageBarType.info]: 'WindowText',\n};\n\nconst highContrastWhiteBorderColor: { [key: string]: string } = {\n [MessageBarType.error]: '#e81123',\n [MessageBarType.blocked]: '#e81123',\n [MessageBarType.success]: '#107c10',\n [MessageBarType.warning]: '#966400',\n [MessageBarType.severeWarning]: '#d83b01',\n [MessageBarType.info]: 'WindowText',\n};\n\nexport const getStyles = (props: IMessageBarStyleProps): IMessageBarStyles => {\n const {\n theme,\n className,\n onDismiss,\n truncated,\n isMultiline,\n expandSingleLine,\n messageBarType = MessageBarType.info,\n } = props;\n const { semanticColors, fonts } = theme;\n\n const SmallScreenSelector = getScreenSelector(0, ScreenWidthMaxSmall);\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const dismissalAndExpandIconStyle: IStyle = {\n fontSize: IconFontSizes.xSmall,\n height: 10,\n lineHeight: '10px',\n color: semanticColors.messageText,\n selectors: {\n [HighContrastSelector]: {\n ...getHighContrastNoAdjustStyle(),\n color: 'WindowText',\n },\n },\n };\n\n const dismissalAndExpandStyle: IStyle = [\n getFocusStyle(theme, {\n inset: 1,\n highContrastStyle: {\n outlineOffset: '-6px',\n outline: '1px solid Highlight',\n },\n borderColor: 'transparent',\n }),\n {\n flexShrink: 0,\n width: 32,\n height: 32,\n padding: '8px 12px',\n selectors: {\n '& .ms-Button-icon': dismissalAndExpandIconStyle,\n ':hover': {\n backgroundColor: 'transparent',\n },\n ':active': {\n backgroundColor: 'transparent',\n },\n },\n },\n ];\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n messageBarType === MessageBarType.error && classNames.error,\n messageBarType === MessageBarType.blocked && classNames.blocked,\n messageBarType === MessageBarType.severeWarning && classNames.severeWarning,\n messageBarType === MessageBarType.success && classNames.success,\n messageBarType === MessageBarType.warning && classNames.warning,\n isMultiline ? classNames.multiline : classNames.singleline,\n !isMultiline && onDismiss && classNames.dismissalSingleLine,\n !isMultiline && truncated && classNames.expandingSingleLine,\n {\n background: semanticColors[backgroundColor[messageBarType]],\n boxSizing: 'border-box',\n color: semanticColors.messageText,\n minHeight: 32,\n width: '100%',\n display: 'flex',\n wordBreak: 'break-word',\n selectors: {\n '.ms-Link': {\n color: semanticColors.messageLink,\n selectors: {\n ':hover': {\n color: semanticColors.messageLinkHovered,\n },\n },\n },\n [HighContrastSelector]: {\n ...getHighContrastNoAdjustStyle(),\n background: 'transparent',\n border: `1px solid ${highContrastBorderColor[messageBarType]}`,\n color: 'WindowText',\n },\n [HighContrastSelectorWhite]: {\n border: `1px solid ${highContrastWhiteBorderColor[messageBarType]}`,\n },\n },\n },\n isMultiline && {\n flexDirection: 'column',\n },\n className,\n ],\n content: [\n classNames.content,\n {\n display: 'flex',\n width: '100%',\n lineHeight: 'normal',\n [SmallScreenSelector]: {\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto',\n gridTemplateRows: '1fr auto',\n gridTemplateAreas: `\n \"icon text close\"\n \"action action action\"\n `,\n },\n },\n ],\n iconContainer: [\n classNames.iconContainer,\n {\n fontSize: IconFontSizes.medium,\n minWidth: 16,\n minHeight: 16,\n display: 'flex',\n flexShrink: 0,\n margin: '8px 0 8px 12px',\n [SmallScreenSelector]: {\n gridArea: 'icon',\n },\n },\n ],\n icon: {\n color: semanticColors[iconColor[messageBarType]],\n selectors: {\n [HighContrastSelector]: {\n ...getHighContrastNoAdjustStyle(),\n color: 'WindowText',\n },\n },\n },\n text: [\n classNames.text,\n {\n minWidth: 0,\n display: 'flex',\n flexGrow: 1,\n margin: 8,\n ...fonts.small,\n [SmallScreenSelector]: {\n gridArea: 'text',\n },\n selectors: {\n [HighContrastSelector]: {\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n !onDismiss && {\n marginRight: 12,\n },\n ],\n innerText: [\n classNames.innerText,\n {\n lineHeight: 16,\n selectors: {\n '& span a:last-child': {\n paddingLeft: 4,\n },\n },\n },\n truncated && {\n overflow: 'visible',\n whiteSpace: 'pre-wrap',\n },\n !isMultiline && {\n // In high contrast this causes the top and bottom of links' focus outline to be clipped\n // (not sure of a good way around that while still maintaining text clipping)\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n !isMultiline &&\n !truncated && {\n selectors: {\n [SmallScreenSelector]: {\n overflow: 'visible',\n whiteSpace: 'pre-wrap',\n },\n },\n },\n expandSingleLine && {\n overflow: 'visible',\n whiteSpace: 'pre-wrap',\n },\n ],\n dismissSingleLine: [\n classNames.dismissSingleLine,\n {\n [SmallScreenSelector]: {\n gridArea: 'close',\n },\n },\n ],\n expandSingleLine: classNames.expandSingleLine,\n dismissal: [classNames.dismissal, dismissalAndExpandStyle],\n expand: [classNames.expand, dismissalAndExpandStyle],\n actions: [\n isMultiline ? classNames.actions : classNames.actionsSingleline,\n {\n display: 'flex',\n flexGrow: 0,\n flexShrink: 0,\n flexBasis: 'auto',\n flexDirection: 'row-reverse',\n alignItems: 'center',\n margin: '0 12px 0 8px',\n // reset forced colors to browser control for inner actions\n forcedColorAdjust: 'auto',\n MsHighContrastAdjust: 'auto',\n [SmallScreenSelector]: {\n gridArea: 'action',\n marginRight: 8,\n marginBottom: 8,\n },\n selectors: {\n '& button:nth-child(n+2)': {\n marginLeft: 8,\n [SmallScreenSelector]: {\n marginBottom: 0,\n },\n },\n },\n },\n isMultiline && {\n marginBottom: 8,\n },\n onDismiss &&\n !isMultiline && {\n marginRight: 0,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { MessageBarBase } from './MessageBar.base';\nimport { getStyles } from './MessageBar.styles';\nimport type { IMessageBarProps, IMessageBarStyleProps, IMessageBarStyles } from './MessageBar.types';\n\nexport const MessageBar: React.FunctionComponent = styled<\n IMessageBarProps,\n IMessageBarStyleProps,\n IMessageBarStyles\n>(MessageBarBase, getStyles, undefined, {\n scope: 'MessageBar',\n});\n","import * as React from 'react';\nimport { BaseButton, Button, IButtonProps } from '../../Button';\nimport type { ITheme, IStyle } from '../../Styling';\nimport type { IRefObject, IStyleFunctionOrObject } from '../../Utilities';\nimport type { IIconProps } from '../../Icon';\n\n/**\n * {@docCategory MessageBar}\n */\nexport interface IMessageBar {}\n\n/**\n * {@docCategory MessageBar}\n */\nexport interface IMessageBarProps extends React.HTMLAttributes, React.RefAttributes {\n /**\n * Optional callback to access the IMessageBar interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * The type of MessageBar to render.\n * @defaultvalue MessageBarType.info\n */\n messageBarType?: MessageBarType;\n\n /**\n * The actions you want to show on the other side.\n */\n actions?: JSX.Element;\n\n /**\n * A description of the message bar for the benefit of screen readers.\n * @deprecated Use native prop `aria-label` instead.\n */\n ariaLabel?: string;\n\n /**\n * Whether the message bar has a dismiss button and its callback.\n * If null, we don't show a dismiss button.\n * @defaultvalue null\n */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onDismiss?: (ev?: React.MouseEvent) => any;\n\n /**\n * Determines if the message bar is multi lined.\n * If false, and the text overflows over buttons or to another line, it is clipped.\n * @defaultvalue true\n */\n isMultiline?: boolean;\n\n /**\n * Aria label on dismiss button if onDismiss is defined.\n */\n dismissButtonAriaLabel?: string;\n\n /**\n * Determines if the message bar text is truncated.\n * If true, a button will render to toggle between a single line view and multiline view.\n * This prop is for single line message bars with no buttons only in a limited space scenario.\n * @defaultvalue false\n */\n truncated?: boolean;\n\n /**\n * Aria label on overflow button if truncated is defined.\n * @deprecated Use `expandButtonProps` instead.\n */\n overflowButtonAriaLabel?: string;\n\n /**\n * Additional CSS class(es) to apply to the MessageBar.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Custom icon prop to replace the dismiss icon.\n * If unset, default will be the Fabric Clear icon.\n */\n dismissIconProps?: IIconProps;\n\n /**\n * Custom icon prop to replace the message bar icon.\n * If unset, default will be the icon set by messageBarType.\n */\n messageBarIconProps?: IIconProps;\n\n /**\n * Button props that can be applied to the expand button of the MessageBar.\n */\n expandButtonProps?: IButtonProps;\n\n /**\n * Callback to execute when expand button is toggled\n * @returns\n */\n onExpandButtonToggled?: (expandSingleLine: boolean) => void;\n\n /**\n * Custom role to apply to the MessageBar.\n * @defaultvalue `alert` if `messageBarType` is `error`, `blocked`, or `severeWarning`;\n * or `status` otherwise\n */\n role?: 'alert' | 'status' | 'none';\n\n /**\n * By default, MessageBar delay-renders its content within an internal live region to help ensure\n * it's announced by screen readers. You can disable that behavior by setting this prop to `false`.\n *\n * If you set this prop to `false`, to ensure proper announcement you should either:\n * - If appropriate, ensure that the `role` prop is set to `alert` (this will be done by default\n * if `messageBarType` is `error`, `blocked`, or `severeWarning`), OR\n * - Set the `role` prop to `none` (to avoid nested `status` regions), wrap the whole MessageBar\n * in a `
    ` which is always rendered, and ensure that the MessageBar is\n * rendered either conditionally or with a delay.\n * @default true\n */\n delayedRender?: boolean;\n\n /**\n * An optional override to show the expand/collapse icon. It will only be shown by default for\n * single-line truncated MessageBars that do not have actions.\n * @defaultvalue false\n */\n showExpandButton?: boolean;\n}\n\n/**\n * {@docCategory MessageBar}\n */\nexport interface IMessageBarStyleProps {\n /**\n * Theme (provided through customization).\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es).\n */\n className?: string;\n\n /**\n * Type of the MessageBar.\n */\n messageBarType?: MessageBarType;\n\n /**\n * Whether the MessageBar contains a dismiss button.\n */\n onDismiss?: boolean;\n\n /**\n * Whether the text is truncated.\n */\n truncated?: boolean;\n\n /**\n * Whether the MessageBar is rendered in multi line (as opposed to single line) mode.\n */\n isMultiline?: boolean;\n\n /**\n * Whether the single line MessageBar is being expanded.\n */\n expandSingleLine?: boolean;\n\n /**\n * Whether the MessageBar contains any action elements.\n */\n actions?: boolean;\n}\n\n/**\n * {@docCategory MessageBar}\n */\nexport interface IMessageBarStyles {\n /**\n * Style set for the root element.\n */\n root?: IStyle;\n\n /**\n * Style set for the element containing the icon, text, and optional dismiss button.\n */\n content?: IStyle;\n\n /**\n * Style set for the element containing the icon.\n */\n iconContainer?: IStyle;\n\n /**\n * Style set for the icon.\n */\n icon?: IStyle;\n\n /**\n * Style set for the element containing the text.\n */\n text?: IStyle;\n\n /**\n * Style set for the text.\n */\n innerText?: IStyle;\n\n /**\n * Style set for the optional dismiss button.\n */\n dismissal?: IStyle;\n\n /**\n * Style set for the icon used to expand and collapse the MessageBar.\n */\n expand?: IStyle;\n\n /**\n * Style set for the element containing the dismiss button.\n */\n dismissSingleLine?: IStyle;\n\n /**\n * Style set for the element containing the expand icon.\n */\n expandSingleLine?: IStyle;\n\n /**\n * Style set for the optional element containing the action elements.\n */\n actions?: IStyle;\n}\n\n/**\n * {@docCategory MessageBar}\n */\nexport enum MessageBarType {\n /** Info styled MessageBar */\n info = 0,\n /** Error styled MessageBar */\n error = 1,\n /** Blocked styled MessageBar */\n blocked = 2,\n /** SevereWarning styled MessageBar */\n severeWarning = 3,\n /** Success styled MessageBar */\n success = 4,\n /** Warning styled MessageBar */\n warning = 5,\n}\n","import { AnimationVariables, getGlobalClassNames, ZIndexes } from '../../Styling';\nimport type { IModalStyleProps, IModalStyles } from './Modal.types';\n\nexport const animationDuration = AnimationVariables.durationValue2;\n\nconst globalClassNames = {\n root: 'ms-Modal',\n main: 'ms-Dialog-main',\n scrollableContent: 'ms-Modal-scrollableContent',\n isOpen: 'is-open',\n layer: 'ms-Modal-Layer',\n};\n\nexport const getStyles = (props: IModalStyleProps): IModalStyles => {\n const {\n className,\n containerClassName,\n scrollableContentClassName,\n isOpen,\n isVisible,\n hasBeenOpened,\n modalRectangleTop,\n theme,\n topOffsetFixed,\n isModeless,\n layerClassName,\n isDefaultDragHandle,\n windowInnerHeight,\n } = props;\n const { palette, effects, fonts } = theme;\n\n const classNames = getGlobalClassNames(globalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n {\n backgroundColor: 'transparent',\n position: 'fixed',\n height: '100%',\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n opacity: 0,\n pointerEvents: 'none',\n transition: `opacity ${animationDuration}`,\n },\n topOffsetFixed &&\n typeof modalRectangleTop === 'number' &&\n hasBeenOpened && {\n alignItems: 'flex-start',\n },\n isOpen && classNames.isOpen,\n isVisible && {\n opacity: 1,\n },\n isVisible &&\n !isModeless && {\n pointerEvents: 'auto',\n },\n\n className,\n ],\n main: [\n classNames.main,\n {\n boxShadow: effects.elevation64,\n borderRadius: effects.roundedCorner2,\n backgroundColor: palette.white,\n boxSizing: 'border-box',\n position: 'relative',\n textAlign: 'left',\n outline: '3px solid transparent',\n maxHeight: 'calc(100% - 32px)',\n maxWidth: 'calc(100% - 32px)',\n minHeight: '176px',\n minWidth: '288px',\n overflowY: 'auto',\n zIndex: isModeless ? ZIndexes.Layer : undefined,\n },\n isModeless && {\n pointerEvents: 'auto',\n },\n topOffsetFixed &&\n typeof modalRectangleTop === 'number' &&\n hasBeenOpened && {\n top: modalRectangleTop,\n },\n isDefaultDragHandle && {\n cursor: 'move',\n },\n containerClassName,\n ],\n scrollableContent: [\n classNames.scrollableContent,\n {\n overflowY: 'auto',\n flexGrow: 1,\n maxHeight: '100vh',\n selectors: {\n ['@supports (-webkit-overflow-scrolling: touch)']: {\n maxHeight: windowInnerHeight,\n },\n },\n },\n scrollableContentClassName,\n ],\n layer: isModeless && [layerClassName, classNames.layer, { pointerEvents: 'none' }],\n keyboardMoveIconContainer: {\n position: 'absolute',\n display: 'flex',\n justifyContent: 'center',\n width: '100%',\n padding: '3px 0px',\n },\n keyboardMoveIcon: {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n fontSize: fonts.xLargePlus.fontSize,\n width: '24px',\n },\n };\n};\n","import { memoizeFunction } from '../../Utilities';\nimport { mergeStyles } from '../../Styling';\n\nexport interface IDraggableZoneStyles {\n root: string;\n}\n\nexport const getClassNames = memoizeFunction((className: string, isDragging: boolean): IDraggableZoneStyles => {\n return {\n root: mergeStyles(\n className,\n isDragging && {\n touchAction: 'none',\n selectors: {\n '& *': {\n userSelect: 'none',\n },\n },\n },\n ),\n };\n});\n","import * as React from 'react';\nimport { getClassNames } from './DraggableZone.styles';\nimport { on } from '../../Utilities';\nimport type { IDraggableZoneProps, ICoordinates, IDragData } from './DraggableZone.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx } from '../dom';\n\nexport interface IDraggableZoneState {\n isDragging: boolean;\n position: ICoordinates;\n lastPosition?: ICoordinates;\n}\n\nconst eventMapping = {\n touch: {\n start: 'touchstart',\n move: 'touchmove',\n stop: 'touchend',\n },\n mouse: {\n start: 'mousedown',\n move: 'mousemove',\n stop: 'mouseup',\n },\n};\n\n// These are needed so that we can generalize the events\n// and so we have access to clientX and clientY in the touch events\ntype MouseTouchEvent = React.MouseEvent & React.TouchEvent & Event;\n\nexport class DraggableZone extends React.Component {\n public static contextType = WindowContext;\n\n private _touchId?: number;\n private _currentEventType = eventMapping.mouse;\n private _events: (() => void)[] = [];\n\n constructor(props: IDraggableZoneProps) {\n super(props);\n\n this.state = {\n isDragging: false,\n position: this.props.position || { x: 0, y: 0 },\n lastPosition: undefined,\n };\n }\n\n public componentDidUpdate(prevProps: IDraggableZoneProps) {\n if (this.props.position && (!prevProps.position || this.props.position !== prevProps.position)) {\n this.setState({ position: this.props.position });\n }\n }\n\n public componentWillUnmount() {\n this._events.forEach(dispose => dispose());\n }\n\n public render() {\n const child: any = React.Children.only(this.props.children);\n const { props } = child;\n const { position } = this.props;\n const { position: statePosition, isDragging } = this.state;\n let x = statePosition.x;\n let y = statePosition.y;\n\n if (position && !isDragging) {\n x = position.x;\n y = position.y;\n }\n\n return React.cloneElement(child, {\n style: {\n ...props.style,\n transform: `translate(${x}px, ${y}px)`,\n },\n className: getClassNames(props.className, this.state.isDragging).root,\n onMouseDown: this._onMouseDown,\n onMouseUp: this._onMouseUp,\n onTouchStart: this._onTouchStart,\n onTouchEnd: this._onTouchEnd,\n });\n }\n\n private _onMouseDown = (event: MouseTouchEvent) => {\n const onMouseDown = (React.Children.only(this.props.children) as any).props.onMouseDown;\n if (onMouseDown) {\n onMouseDown(event);\n }\n\n this._currentEventType = eventMapping.mouse;\n return this._onDragStart(event);\n };\n\n private _onMouseUp = (event: MouseTouchEvent) => {\n const onMouseUp = (React.Children.only(this.props.children) as any).props.onMouseUp;\n if (onMouseUp) {\n onMouseUp(event);\n }\n\n this._currentEventType = eventMapping.mouse;\n return this._onDragStop(event);\n };\n\n private _onTouchStart = (event: MouseTouchEvent) => {\n const onTouchStart = (React.Children.only(this.props.children) as any).props.onTouchStart;\n if (onTouchStart) {\n onTouchStart(event);\n }\n\n this._currentEventType = eventMapping.touch;\n return this._onDragStart(event);\n };\n\n private _onTouchEnd = (event: MouseTouchEvent) => {\n const onTouchEnd = (React.Children.only(this.props.children) as any).props.onTouchEnd;\n if (onTouchEnd) {\n onTouchEnd(event);\n }\n\n this._currentEventType = eventMapping.touch;\n this._onDragStop(event);\n };\n\n private _onDragStart = (event: MouseTouchEvent) => {\n // Only handle left click for dragging\n if (typeof event.button === 'number' && event.button !== 0) {\n return false;\n }\n\n // If the target doesn't match the handleSelector OR\n // if the target does match the preventDragSelector, bail out\n if (\n (this.props.handleSelector && !this._matchesSelector(event.target as HTMLElement, this.props.handleSelector)) ||\n (this.props.preventDragSelector &&\n this._matchesSelector(event.target as HTMLElement, this.props.preventDragSelector))\n ) {\n return;\n }\n\n // Remember the touch identifier if this is a touch event so we can\n // distinguish between individual touches in multitouch scenarios\n // by remembering which touch point we were given\n this._touchId = this._getTouchId(event);\n\n const position = this._getControlPosition(event);\n if (position === undefined) {\n return;\n }\n\n const dragData = this._createDragDataFromPosition(position);\n this.props.onStart && this.props.onStart(event, dragData);\n\n this.setState({\n isDragging: true,\n lastPosition: position,\n });\n\n // hook up the appropriate mouse/touch events to the body to ensure\n // smooth dragging\n const doc = getDocumentEx(this.context)!;\n this._events = [\n on(doc.body, this._currentEventType.move, this._onDrag, true /* use capture phase */),\n on(doc.body, this._currentEventType.stop, this._onDragStop, true /* use capture phase */),\n ];\n };\n\n private _onDrag = (event: MouseTouchEvent) => {\n // Prevent scrolling on mobile devices\n if (event.type === 'touchmove') {\n event.preventDefault();\n }\n\n const position = this._getControlPosition(event);\n if (!position) {\n return;\n }\n\n // create the updated drag data from the position data\n const updatedData = this._createUpdatedDragData(this._createDragDataFromPosition(position));\n const updatedPosition = updatedData.position;\n\n this.props.onDragChange && this.props.onDragChange(event, updatedData);\n\n this.setState({\n position: updatedPosition,\n lastPosition: position,\n });\n };\n\n private _onDragStop = (event: MouseTouchEvent) => {\n if (!this.state.isDragging) {\n return;\n }\n\n const position = this._getControlPosition(event);\n if (!position) {\n return;\n }\n\n const baseDragData = this._createDragDataFromPosition(position);\n\n // Set dragging to false and reset the lastPosition\n this.setState({\n isDragging: false,\n lastPosition: undefined,\n });\n\n this.props.onStop && this.props.onStop(event, baseDragData);\n\n if (this.props.position) {\n this.setState({\n position: this.props.position,\n });\n }\n\n // Remove event handlers\n this._events.forEach(dispose => dispose());\n };\n\n /**\n * Get the control position based off the event that fired\n * @param event - The event to get offsets from\n */\n private _getControlPosition(event: MouseTouchEvent): ICoordinates | undefined {\n const touchObj = this._getActiveTouch(event);\n\n // did we get the right touch?\n if (this._touchId !== undefined && !touchObj) {\n return undefined;\n }\n\n const eventToGetOffset = touchObj || event;\n return {\n x: eventToGetOffset.clientX,\n y: eventToGetOffset.clientY,\n };\n }\n\n /**\n * Get the active touch point that we have saved from the event's TouchList\n * @param event - The event used to get the TouchList for the active touch point\n */\n private _getActiveTouch(event: MouseTouchEvent): React.Touch | undefined {\n return (\n (event.targetTouches && this._findTouchInTouchList(event.targetTouches)) ||\n (event.changedTouches && this._findTouchInTouchList(event.changedTouches))\n );\n }\n\n /**\n * Get the initial touch identifier associated with the given event\n * @param event - The event that contains the TouchList\n */\n private _getTouchId(event: MouseTouchEvent): number | undefined {\n const touch: React.Touch | undefined =\n (event.targetTouches && event.targetTouches[0]) || (event.changedTouches && event.changedTouches[0]);\n\n if (touch) {\n return touch.identifier;\n }\n }\n\n /**\n * Returns if an element (or any of the element's parents) match the given selector\n */\n private _matchesSelector(element: HTMLElement | null, selector: string): boolean {\n if (!element || element === getDocumentEx(this.context)?.body) {\n return false;\n }\n\n const matchesSelectorFn: Function =\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n element.matches || element.webkitMatchesSelector || (element as any).msMatchesSelector; /* for IE */\n\n if (!matchesSelectorFn) {\n return false;\n }\n\n return matchesSelectorFn.call(element, selector) || this._matchesSelector(element.parentElement, selector);\n }\n\n /**\n * Attempts to find the Touch that matches the identifier we stored in dragStart\n * @param touchList The TouchList to look for the stored identifier from dragStart\n */\n private _findTouchInTouchList(touchList: React.TouchList): React.Touch | undefined {\n if (this._touchId === undefined) {\n return;\n }\n\n for (let i = 0; i < touchList.length; i++) {\n if (touchList[i].identifier === this._touchId) {\n return touchList[i];\n }\n }\n\n return undefined;\n }\n\n /**\n * Create DragData based off of the last known position and the new position passed in\n * @param position The new position as part of the drag\n */\n private _createDragDataFromPosition(position: ICoordinates): IDragData {\n const { lastPosition } = this.state;\n\n // If we have no lastPosition, use the given position\n // for last position\n if (lastPosition === undefined) {\n return {\n delta: { x: 0, y: 0 },\n lastPosition: position,\n position,\n };\n }\n\n return {\n delta: {\n x: position.x - lastPosition.x,\n y: position.y - lastPosition.y,\n },\n lastPosition,\n position,\n };\n }\n\n /**\n * Creates an updated DragData based off the current position and given baseDragData\n * @param baseDragData The base DragData (from _createDragDataFromPosition) used to calculate the updated positions\n */\n private _createUpdatedDragData(baseDragData: IDragData): IDragData {\n const { position } = this.state;\n return {\n position: {\n x: position.x + baseDragData.delta.x,\n y: position.y + baseDragData.delta.y,\n },\n delta: baseDragData.delta,\n lastPosition: position,\n };\n }\n}\n","import * as React from 'react';\nimport {\n classNamesFunction,\n css,\n allowScrollOnElement,\n allowOverscrollOnElement,\n getPropsWithDefaults,\n KeyCodes,\n elementContains,\n EventGroup,\n} from '../../Utilities';\nimport { FocusTrapZone } from '../../FocusTrapZone';\nimport { animationDuration } from './Modal.styles';\nimport { Overlay } from '../../Overlay';\nimport { Layer } from '../../Layer';\nimport { Popup } from '../../Popup';\nimport { ResponsiveMode, useResponsiveMode } from '../../ResponsiveMode';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport { Icon } from '../../Icon';\nimport { DraggableZone } from '../../utilities/DraggableZone/index';\nimport { useWindow } from '@fluentui/react-window-provider';\nimport {\n useBoolean,\n useMergedRefs,\n useWarnings,\n useConst,\n useSetTimeout,\n useId,\n useUnmount,\n} from '@fluentui/react-hooks';\nimport type { IFocusTrapZone } from '../../FocusTrapZone';\nimport type { IDragOptions, IModalProps, IModalStyleProps, IModalStyles } from './Modal.types';\nimport type { ILayerProps } from '../../Layer';\nimport type { ICoordinates, IDragData } from '../../utilities/DraggableZone/index';\n\n// @TODO - need to change this to a panel whenever the breakpoint is under medium (verify the spec)\n\ninterface IModalInternalState {\n onModalCloseTimer: number;\n allowTouchBodyScroll?: boolean;\n scrollableContent: HTMLDivElement | null;\n lastSetCoordinates: ICoordinates;\n /** Minimum clamped position, if dragging and clamping (`dragOptions.keepInBounds`) are enabled */\n minPosition?: ICoordinates;\n /** Maximum clamped position, if dragging and clamping (`dragOptions.keepInBounds`) are enabled */\n maxPosition?: ICoordinates;\n events: EventGroup;\n /** Ensures we dispose the same keydown callback as was registered */\n disposeOnKeyDown?: () => void;\n /** Ensures we dispose the same keyup callback as was registered (also tracks whether keyup has been registered) */\n disposeOnKeyUp?: () => void;\n isInKeyboardMoveMode?: boolean;\n hasBeenOpened?: boolean;\n}\n\nconst ZERO: ICoordinates = { x: 0, y: 0 };\n\nconst DEFAULT_PROPS: Partial = {\n isOpen: false,\n isDarkOverlay: true,\n className: '',\n containerClassName: '',\n enableAriaHiddenSiblings: true,\n};\n\nconst getClassNames = classNamesFunction();\n\nconst getMoveDelta = (ev: React.KeyboardEvent): number => {\n let delta = 10;\n if (ev.shiftKey) {\n if (!ev.ctrlKey) {\n delta = 50;\n }\n } else if (ev.ctrlKey) {\n delta = 1;\n }\n\n return delta;\n};\n\nconst useComponentRef = (props: IModalProps, focusTrapZone: React.RefObject) => {\n React.useImperativeHandle(\n props.componentRef,\n () => ({\n focus() {\n if (focusTrapZone.current) {\n focusTrapZone.current.focus();\n }\n },\n }),\n [focusTrapZone],\n );\n};\n\nexport const ModalBase: React.FunctionComponent = React.forwardRef(\n (propsWithoutDefaults, ref) => {\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n const {\n allowTouchBodyScroll,\n className,\n children,\n containerClassName,\n scrollableContentClassName,\n elementToFocusOnDismiss,\n firstFocusableSelector,\n focusTrapZoneProps,\n forceFocusInsideTrap,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n disableRestoreFocus = props.ignoreExternalFocusing,\n isBlocking,\n isAlert,\n isClickableOutsideFocusTrap,\n isDarkOverlay,\n onDismiss,\n layerProps,\n overlay,\n isOpen,\n titleAriaId,\n styles,\n subtitleAriaId,\n theme,\n topOffsetFixed,\n responsiveMode,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onLayerDidMount,\n isModeless,\n dragOptions,\n onDismissed,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n enableAriaHiddenSiblings,\n popupProps,\n } = props;\n\n const rootRef = React.useRef(null);\n const focusTrapZone = React.useRef(null);\n const focusTrapZoneRef = useMergedRefs(focusTrapZone, focusTrapZoneProps?.componentRef);\n const focusTrapZoneElm = React.useRef(null);\n const mergedRef = useMergedRefs(rootRef, ref);\n\n const modalResponsiveMode = useResponsiveMode(mergedRef);\n\n const focusTrapZoneId = useId('ModalFocusTrapZone', focusTrapZoneProps?.id);\n\n const win = useWindow();\n\n const { setTimeout, clearTimeout } = useSetTimeout();\n\n const [isModalOpen, setIsModalOpen] = React.useState(isOpen);\n const [isVisible, setIsVisible] = React.useState(isOpen);\n const [coordinates, setCoordinates] = React.useState(ZERO);\n const [modalRectangleTop, setModalRectangleTop] = React.useState();\n\n const [isModalMenuOpen, { toggle: toggleModalMenuOpen, setFalse: setModalMenuClose }] = useBoolean(false);\n\n const internalState = useConst(() => ({\n onModalCloseTimer: 0,\n allowTouchBodyScroll,\n scrollableContent: null,\n lastSetCoordinates: ZERO,\n events: new EventGroup({}),\n }));\n\n const { keepInBounds } = dragOptions || ({} as IDragOptions);\n const isAlertRole = isAlert ?? (isBlocking && !isModeless);\n\n const layerClassName = layerProps === undefined ? '' : layerProps.className;\n const classNames = getClassNames(styles, {\n theme: theme!,\n className,\n containerClassName,\n scrollableContentClassName,\n isOpen,\n isVisible,\n hasBeenOpened: internalState.hasBeenOpened,\n modalRectangleTop,\n topOffsetFixed,\n isModeless,\n layerClassName,\n windowInnerHeight: win?.innerHeight,\n isDefaultDragHandle: dragOptions && !dragOptions.dragHandleSelector,\n });\n\n const mergedLayerProps: ILayerProps = {\n eventBubblingEnabled: false,\n ...layerProps,\n onLayerDidMount: layerProps && layerProps.onLayerDidMount ? layerProps.onLayerDidMount : onLayerDidMount,\n insertFirst: layerProps?.insertFirst || isModeless,\n className: classNames.layer,\n };\n\n // Allow the user to scroll within the modal but not on the body\n const allowScrollOnModal = React.useCallback(\n (elt: HTMLDivElement | null): void => {\n if (elt) {\n if (internalState.allowTouchBodyScroll) {\n allowOverscrollOnElement(elt, internalState.events);\n } else {\n allowScrollOnElement(elt, internalState.events);\n }\n } else {\n internalState.events.off(internalState.scrollableContent);\n }\n internalState.scrollableContent = elt;\n },\n [internalState],\n );\n\n const registerInitialModalPosition = (): void => {\n const dialogMain = focusTrapZoneElm.current;\n const modalRectangle = dialogMain?.getBoundingClientRect();\n\n if (modalRectangle) {\n if (topOffsetFixed) {\n setModalRectangleTop(modalRectangle.top);\n }\n\n if (keepInBounds) {\n // x/y are unavailable in IE, so use the equivalent left/top\n internalState.minPosition = { x: -modalRectangle.left, y: -modalRectangle.top };\n internalState.maxPosition = { x: modalRectangle.left, y: modalRectangle.top };\n }\n }\n };\n\n /**\n * Clamps an axis to a specified min and max position.\n *\n * @param axis A string that represents the axis (x/y).\n * @param position The position on the axis.\n */\n const getClampedAxis = React.useCallback(\n (axis: keyof ICoordinates, position: number) => {\n const { minPosition, maxPosition } = internalState;\n if (keepInBounds && minPosition && maxPosition) {\n position = Math.max(minPosition[axis], position);\n position = Math.min(maxPosition[axis], position);\n }\n return position;\n },\n [keepInBounds, internalState],\n );\n\n const handleModalClose = (): void => {\n internalState.lastSetCoordinates = ZERO;\n\n setModalMenuClose();\n internalState.isInKeyboardMoveMode = false;\n setIsModalOpen(false);\n setCoordinates(ZERO);\n\n internalState.disposeOnKeyUp?.();\n\n onDismissed?.();\n };\n\n const handleDragStart = React.useCallback((): void => {\n setModalMenuClose();\n internalState.isInKeyboardMoveMode = false;\n }, [internalState, setModalMenuClose]);\n\n const handleDrag = React.useCallback(\n (ev: React.MouseEvent & React.TouchEvent, dragData: IDragData): void => {\n setCoordinates(prevValue => ({\n x: getClampedAxis('x', prevValue.x + dragData.delta.x),\n y: getClampedAxis('y', prevValue.y + dragData.delta.y),\n }));\n },\n [getClampedAxis],\n );\n\n const handleDragStop = React.useCallback((): void => {\n if (focusTrapZone.current) {\n focusTrapZone.current.focus();\n }\n }, []);\n\n const handleEnterKeyboardMoveMode = () => {\n // We need a global handleKeyDown event when we are in the move mode so that we can\n // handle the key presses and the components inside the modal do not get the events\n const handleKeyDown = (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.altKey && ev.ctrlKey && ev.keyCode === KeyCodes.space) {\n // CTRL + ALT + SPACE is handled during keyUp\n ev.preventDefault();\n ev.stopPropagation();\n return;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const newLocal = ev.altKey || ev.keyCode === KeyCodes.escape;\n if (isModalMenuOpen && newLocal) {\n setModalMenuClose();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (internalState.isInKeyboardMoveMode && (ev.keyCode === KeyCodes.escape || ev.keyCode === KeyCodes.enter)) {\n internalState.isInKeyboardMoveMode = false;\n ev.preventDefault();\n ev.stopPropagation();\n }\n\n if (internalState.isInKeyboardMoveMode) {\n let handledEvent = true;\n const delta = getMoveDelta(ev);\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.keyCode) {\n /* eslint-disable no-fallthrough */\n case KeyCodes.escape:\n setCoordinates(internalState.lastSetCoordinates);\n case KeyCodes.enter: {\n // TODO: determine if fallthrough was intentional\n /* eslint-enable no-fallthrough */\n internalState.lastSetCoordinates = ZERO;\n // setIsInKeyboardMoveMode(false);\n break;\n }\n case KeyCodes.up: {\n setCoordinates(prevValue => ({ x: prevValue.x, y: getClampedAxis('y', prevValue.y - delta) }));\n break;\n }\n case KeyCodes.down: {\n setCoordinates(prevValue => ({ x: prevValue.x, y: getClampedAxis('y', prevValue.y + delta) }));\n break;\n }\n case KeyCodes.left: {\n setCoordinates(prevValue => ({ x: getClampedAxis('x', prevValue.x - delta), y: prevValue.y }));\n break;\n }\n case KeyCodes.right: {\n setCoordinates(prevValue => ({ x: getClampedAxis('x', prevValue.x + delta), y: prevValue.y }));\n break;\n }\n default: {\n handledEvent = false;\n }\n }\n if (handledEvent) {\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n };\n\n internalState.lastSetCoordinates = coordinates;\n setModalMenuClose();\n internalState.isInKeyboardMoveMode = true;\n\n internalState.events.on(win, 'keydown', handleKeyDown, true /* useCapture */);\n internalState.disposeOnKeyDown = () => {\n internalState.events.off(win, 'keydown', handleKeyDown, true /* useCapture */);\n internalState.disposeOnKeyDown = undefined;\n };\n };\n\n const handleExitKeyboardMoveMode = (ev: React.FocusEvent) => {\n focusTrapZoneProps?.onBlur?.(ev);\n internalState.lastSetCoordinates = ZERO;\n internalState.isInKeyboardMoveMode = false;\n internalState.disposeOnKeyDown?.();\n };\n\n const registerForKeyUp = (): void => {\n const handleKeyUp = (ev: React.KeyboardEvent): void => {\n // Needs to handle the CTRL + ALT + SPACE key during keyup due to FireFox bug:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1220143\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.altKey && ev.ctrlKey && ev.keyCode === KeyCodes.space) {\n if (elementContains(internalState.scrollableContent, ev.target as HTMLElement)) {\n toggleModalMenuOpen();\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n };\n\n if (!internalState.disposeOnKeyUp) {\n internalState.events.on(win, 'keyup', handleKeyUp, true /* useCapture */);\n internalState.disposeOnKeyUp = () => {\n internalState.events.off(win, 'keyup', handleKeyUp, true /* useCapture */);\n internalState.disposeOnKeyUp = undefined;\n };\n }\n };\n\n React.useEffect(() => {\n clearTimeout(internalState.onModalCloseTimer);\n // Opening the dialog\n if (isOpen) {\n // This must be done after the modal content has rendered\n requestAnimationFrame(() => setTimeout(registerInitialModalPosition, 0));\n\n setIsModalOpen(true);\n\n // Add a keyUp handler for all key up events once the dialog is open.\n if (dragOptions) {\n registerForKeyUp();\n }\n\n internalState.hasBeenOpened = true;\n setIsVisible(true);\n }\n\n // Closing the dialog\n if (!isOpen && isModalOpen) {\n internalState.onModalCloseTimer = setTimeout(handleModalClose, parseFloat(animationDuration) * 1000);\n setIsVisible(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if isModalOpen or isOpen mutates.\n }, [isModalOpen, isOpen]);\n\n useUnmount(() => {\n internalState.events.dispose();\n if (internalState.onModalCloseTimer) {\n clearTimeout(internalState.onModalCloseTimer);\n internalState.onModalCloseTimer = 0;\n }\n });\n\n useComponentRef(props, focusTrapZone);\n useDebugWarnings(props);\n\n const modalContent = (\n \n {dragOptions && internalState.isInKeyboardMoveMode && (\n
    \n {dragOptions.keyboardMoveIconProps ? (\n \n ) : (\n \n )}\n
    \n )}\n
    \n {dragOptions && isModalMenuOpen && (\n \n )}\n {children}\n
    \n \n );\n\n return (\n (isModalOpen && modalResponsiveMode! >= (responsiveMode || ResponsiveMode.small) && (\n \n \n
    \n {!isModeless && (\n \n )}\n {dragOptions ? (\n \n {modalContent}\n \n ) : (\n modalContent\n )}\n
    \n \n
    \n )) ||\n null\n );\n },\n);\nModalBase.displayName = 'Modal';\n\nfunction useDebugWarnings(props: IModalProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: 'Modal',\n props,\n deprecations: { onLayerDidMount: 'layerProps.onLayerDidMount' },\n });\n }\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { ModalBase } from './Modal.base';\nimport { getStyles } from './Modal.styles';\nimport type { IModalProps, IModalStyleProps, IModalStyles } from './Modal.types';\n\nexport const Modal: React.FunctionComponent = styled(\n ModalBase,\n getStyles,\n undefined,\n {\n scope: 'Modal',\n fields: ['theme', 'styles', 'enableAriaHiddenSiblings'],\n },\n);\nModal.displayName = 'Modal';\n","import * as React from 'react';\nimport { KeytipManager } from '../../utilities/keytips/KeytipManager';\nimport { useConst, usePrevious } from '@fluentui/react-hooks';\nimport type { IKeytipProps } from '../../Keytip';\nimport type { IOverflowSetItemProps, IOverflowSetProps } from './OverflowSet.types';\n\nconst registerPersistedKeytips = (\n keytipsToRegister: IKeytipProps[],\n keytipManager: KeytipManager,\n registeredPersistedKeytips: { [uniqueID: string]: IKeytipProps },\n) => {\n for (const keytip of keytipsToRegister) {\n const uniqueID = keytipManager.register(keytip, true);\n // Update map\n registeredPersistedKeytips[uniqueID] = keytip;\n }\n};\n\nconst unregisterPersistedKeytips = (\n keytipManager: KeytipManager,\n registeredPersistedKeytips: { [uniqueID: string]: IKeytipProps },\n) => {\n for (const uniqueID of Object.keys(registeredPersistedKeytips)) {\n keytipManager.unregister(registeredPersistedKeytips[uniqueID], uniqueID, true);\n delete registeredPersistedKeytips[uniqueID];\n }\n};\n\nconst useKeytipRegistrations = (\n registeredPersistedKeytips: { [uniqueID: string]: IKeytipProps },\n keytipsToRegister: IKeytipProps[],\n keytipManager: KeytipManager,\n) => {\n const prevPersistedKeytips = usePrevious(registeredPersistedKeytips);\n\n // Update\n React.useEffect(() => {\n if (prevPersistedKeytips) {\n // Unregister old keytips\n unregisterPersistedKeytips(keytipManager, prevPersistedKeytips);\n // Register new keytips\n registerPersistedKeytips(keytipsToRegister, keytipManager, registeredPersistedKeytips);\n }\n });\n\n // Mount/Unmount\n React.useEffect(() => {\n // Register on mount\n registerPersistedKeytips(keytipsToRegister, keytipManager, registeredPersistedKeytips);\n return () => {\n // Unregister on unmount\n unregisterPersistedKeytips(keytipManager, registeredPersistedKeytips);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n};\n\nexport const OverflowButton = (props: IOverflowSetProps) => {\n const keytipManager: KeytipManager = KeytipManager.getInstance();\n const { className, overflowItems, keytipSequences, itemSubMenuProvider, onRenderOverflowButton } = props;\n\n const persistedKeytips = useConst<{ [uniqueID: string]: IKeytipProps }>({});\n\n // Gets the subMenu for an overflow item\n const getSubMenuForItem = React.useCallback(\n (item: IOverflowSetItemProps) => {\n // Checks if itemSubMenuProvider has been defined, if not defaults to subMenuProps\n if (itemSubMenuProvider) {\n return itemSubMenuProvider(item);\n }\n if (item.subMenuProps) {\n return item.subMenuProps.items;\n }\n return undefined;\n },\n [itemSubMenuProvider],\n );\n\n const { modifiedOverflowItems, keytipsToRegister } = React.useMemo(() => {\n const newKeytipsToRegister: IKeytipProps[] = [];\n let newOverflowItems: IOverflowSetItemProps[] | undefined = [];\n\n if (keytipSequences) {\n overflowItems?.forEach(overflowItem => {\n const keytip = (overflowItem as IOverflowSetItemProps).keytipProps;\n\n if (keytip) {\n // Create persisted keytip\n const persistedKeytip: IKeytipProps = {\n content: keytip.content,\n keySequences: keytip.keySequences,\n disabled: keytip.disabled || !!(overflowItem.disabled || overflowItem.isDisabled),\n hasDynamicChildren: keytip.hasDynamicChildren,\n hasMenu: keytip.hasMenu,\n };\n\n if (keytip.hasDynamicChildren || getSubMenuForItem(overflowItem)) {\n // If the keytip has a submenu or children nodes, change onExecute to persistedKeytipExecute\n persistedKeytip.onExecute = keytipManager.menuExecute.bind(\n keytipManager,\n keytipSequences,\n overflowItem?.keytipProps?.keySequences,\n );\n persistedKeytip.hasOverflowSubMenu = true;\n } else {\n // If the keytip doesn't have a submenu, just execute the original function\n persistedKeytip.onExecute = keytip.onExecute;\n }\n\n newKeytipsToRegister.push(persistedKeytip);\n\n // Add the overflow sequence to this item\n const newOverflowItem = {\n ...overflowItem,\n keytipProps: {\n ...keytip,\n overflowSetSequence: keytipSequences,\n },\n };\n newOverflowItems?.push(newOverflowItem);\n } else {\n // Nothing to change, add overflowItem to list\n newOverflowItems?.push(overflowItem);\n }\n });\n } else {\n newOverflowItems = overflowItems;\n }\n return { modifiedOverflowItems: newOverflowItems, keytipsToRegister: newKeytipsToRegister };\n }, [overflowItems, getSubMenuForItem, keytipManager, keytipSequences]);\n\n useKeytipRegistrations(persistedKeytips, keytipsToRegister, keytipManager);\n\n return
    {onRenderOverflowButton(modifiedOverflowItems)}
    ;\n};\n","import * as React from 'react';\nimport { useMergedRefs } from '@fluentui/react-hooks';\nimport { classNamesFunction, divProperties, elementContains, getNativeProps, focusFirstChild } from '../../Utilities';\nimport { OverflowButton } from './OverflowButton';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { IOverflowSetProps, IOverflowSetStyles, IOverflowSetStyleProps, IOverflowSet } from './OverflowSet.types';\nimport { useDocumentEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\nconst COMPONENT_NAME = 'OverflowSet';\n\nconst useComponentRef = (props: IOverflowSetProps, divContainer: React.RefObject) => {\n const doc = useDocumentEx();\n React.useImperativeHandle(\n props.componentRef,\n (): IOverflowSet => ({\n focus: (_forceIntoFirstElement?: boolean, bypassHiddenElements?: boolean): boolean => {\n let focusSucceeded = false;\n if (divContainer.current) {\n focusSucceeded = focusFirstChild(divContainer.current, bypassHiddenElements);\n }\n return focusSucceeded;\n },\n focusElement: (childElement?: HTMLElement) => {\n let focusSucceeded = false;\n if (!childElement) {\n return false;\n }\n if (divContainer.current && elementContains(divContainer.current, childElement)) {\n childElement.focus();\n focusSucceeded = doc?.activeElement === childElement;\n }\n return focusSucceeded;\n },\n }),\n [divContainer, doc],\n );\n};\n\nexport const OverflowSetBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IOverflowSetProps\n>((props, forwardedRef) => {\n const divContainer = React.useRef(null);\n const mergedRef = useMergedRefs(divContainer, forwardedRef);\n useComponentRef(props, divContainer);\n\n const { items, overflowItems, className, styles, vertical, role, overflowSide = 'end', onRenderItem } = props;\n\n const classNames: IProcessedStyleSet = getClassNames(styles, { className, vertical });\n\n const showOverflow = !!overflowItems && overflowItems.length > 0;\n\n return (\n >(props, divProperties)}\n role={role || 'group'}\n aria-orientation={role === 'menubar' ? (vertical === true ? 'vertical' : 'horizontal') : undefined}\n className={classNames.root}\n ref={mergedRef}\n >\n {overflowSide === 'start' && showOverflow && }\n {items &&\n items.map((item, i) => (\n
    \n {onRenderItem(item)}\n
    \n ))}\n {overflowSide === 'end' && showOverflow && }\n
    \n );\n});\nOverflowSetBase.displayName = COMPONENT_NAME;\n","import type { IOverflowSetStyles, IOverflowSetStyleProps } from './OverflowSet.types';\nimport type { IStyleFunction } from '../../Utilities';\nimport type { IStyle } from '../../Styling';\n\nconst overflowItemStyle: IStyle = {\n flexShrink: 0,\n display: 'inherit',\n};\n\nexport const getStyles: IStyleFunction = props => {\n const { className, vertical } = props;\n return {\n root: [\n 'ms-OverflowSet',\n {\n position: 'relative',\n display: 'flex',\n flexWrap: 'nowrap',\n },\n vertical && { flexDirection: 'column' },\n className,\n ],\n item: ['ms-OverflowSet-item', overflowItemStyle],\n overflowButton: ['ms-OverflowSet-overflowButton', overflowItemStyle],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { OverflowSetBase } from './OverflowSet.base';\nimport { getStyles } from './OverflowSet.styles';\nimport type { IOverflowSetProps } from './OverflowSet.types';\n\nexport const OverflowSet: React.FunctionComponent = styled(OverflowSetBase, getStyles, undefined, {\n scope: 'OverflowSet',\n});\n","import * as React from 'react';\nimport {\n classNamesFunction,\n getNativeProps,\n divProperties,\n enableBodyScroll,\n disableBodyScroll,\n initializeComponentRef,\n} from '../../Utilities';\nimport type { IOverlayProps, IOverlayStyleProps, IOverlayStyles } from './Overlay.types';\n\nconst getClassNames = classNamesFunction();\n\nexport class OverlayBase extends React.Component {\n private _allowTouchBodyScroll: boolean;\n\n constructor(props: IOverlayProps) {\n super(props);\n\n initializeComponentRef(this);\n const { allowTouchBodyScroll = false } = this.props;\n this._allowTouchBodyScroll = allowTouchBodyScroll;\n }\n\n public componentDidMount(): void {\n !this._allowTouchBodyScroll && disableBodyScroll();\n }\n\n public componentWillUnmount(): void {\n !this._allowTouchBodyScroll && enableBodyScroll();\n }\n\n public render(): JSX.Element {\n const { isDarkThemed: isDark, className, theme, styles } = this.props;\n\n const divProps = getNativeProps>(this.props, divProperties);\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n isDark,\n });\n\n return
    ;\n }\n}\n","import { HighContrastSelector, getGlobalClassNames } from '../../Styling';\nimport type { IOverlayStyleProps, IOverlayStyles } from './Overlay.types';\n\nconst GlobalClassNames = {\n root: 'ms-Overlay',\n rootDark: 'ms-Overlay--dark',\n};\n\nexport const getStyles = (props: IOverlayStyleProps): IOverlayStyles => {\n const { className, theme, isNone, isDark } = props;\n\n const { palette } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n {\n backgroundColor: palette.whiteTranslucent40,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n position: 'absolute',\n\n selectors: {\n [HighContrastSelector]: {\n border: '1px solid WindowText',\n opacity: 0,\n },\n },\n },\n\n isNone && {\n visibility: 'hidden',\n },\n\n isDark && [\n classNames.rootDark,\n {\n backgroundColor: palette.blackTranslucent40,\n },\n ],\n\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { OverlayBase } from './Overlay.base';\nimport { getStyles } from './Overlay.styles';\nimport type { IOverlayProps, IOverlayStyleProps, IOverlayStyles } from './Overlay.types';\n\nexport const Overlay: React.FunctionComponent = styled<\n IOverlayProps,\n IOverlayStyleProps,\n IOverlayStyles\n>(OverlayBase, getStyles, undefined, {\n scope: 'Overlay',\n});\n","import * as React from 'react';\nimport { IconButton } from '../../Button';\nimport { Layer } from '../../Layer';\nimport { Overlay } from '../../Overlay';\nimport { Popup } from '../../Popup';\nimport {\n allowScrollOnElement,\n allowOverscrollOnElement,\n classNamesFunction,\n divProperties,\n elementContains,\n getId,\n getNativeProps,\n getRTL,\n css,\n warnDeprecations,\n Async,\n EventGroup,\n initializeComponentRef,\n} from '../../Utilities';\nimport { FocusTrapZone } from '../FocusTrapZone/index';\nimport { PanelType } from './Panel.types';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { IPanel, IPanelProps, IPanelStyleProps, IPanelStyles } from './Panel.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx, getWindowEx } from '../../utilities/dom';\n\nconst getClassNames = classNamesFunction();\nconst COMPONENT_NAME = 'Panel';\n\nenum PanelVisibilityState {\n closed,\n animatingOpen,\n open,\n animatingClosed,\n}\n\ninterface IPanelState {\n isFooterSticky?: boolean;\n id?: string;\n visibility: PanelVisibilityState;\n}\n\nexport class PanelBase extends React.Component implements IPanel {\n public static defaultProps: IPanelProps = {\n isHiddenOnDismiss: false,\n isOpen: undefined,\n isBlocking: true,\n hasCloseButton: true,\n type: PanelType.smallFixedFar,\n };\n\n public static contextType = WindowContext;\n\n private _async: Async;\n private _events: EventGroup;\n private _panel = React.createRef();\n private _classNames: IProcessedStyleSet;\n private _scrollableContent: HTMLDivElement | null;\n private _animationCallback: number | null = null;\n private _hasCustomNavigation: boolean = !!(this.props.onRenderNavigation || this.props.onRenderNavigationContent);\n private _headerTextId: string | undefined;\n private _allowTouchBodyScroll: boolean;\n private _resizeObserver: ResizeObserver | null;\n\n public static getDerivedStateFromProps(\n nextProps: Readonly,\n prevState: Readonly,\n ): Partial | null {\n if (nextProps.isOpen === undefined) {\n return null; // no state update\n }\n if (\n nextProps.isOpen &&\n (prevState.visibility === PanelVisibilityState.closed ||\n prevState.visibility === PanelVisibilityState.animatingClosed)\n ) {\n return { visibility: PanelVisibilityState.animatingOpen };\n }\n if (\n !nextProps.isOpen &&\n (prevState.visibility === PanelVisibilityState.open ||\n prevState.visibility === PanelVisibilityState.animatingOpen)\n ) {\n return { visibility: PanelVisibilityState.animatingClosed };\n }\n return null;\n }\n\n constructor(props: IPanelProps) {\n super(props);\n\n const { allowTouchBodyScroll = false } = this.props;\n this._allowTouchBodyScroll = allowTouchBodyScroll;\n\n initializeComponentRef(this);\n\n warnDeprecations(COMPONENT_NAME, props, {\n ignoreExternalFocusing: 'focusTrapZoneProps',\n forceFocusInsideTrap: 'focusTrapZoneProps',\n firstFocusableSelector: 'focusTrapZoneProps',\n });\n\n this.state = {\n isFooterSticky: false,\n // intentionally ignore props so animation takes place during componentDidMount\n visibility: PanelVisibilityState.closed,\n id: getId('Panel'),\n };\n }\n\n public componentDidMount(): void {\n this._async = new Async(this);\n this._events = new EventGroup(this);\n const win = getWindowEx(this.context);\n const doc = getDocumentEx(this.context);\n\n this._events.on(win, 'resize', this._updateFooterPosition);\n\n if (this._shouldListenForOuterClick(this.props)) {\n this._events.on(doc?.body, 'mousedown', this._dismissOnOuterClick, true);\n }\n\n if (this.props.isOpen) {\n this.setState({ visibility: PanelVisibilityState.animatingOpen });\n }\n }\n\n public componentDidUpdate(previousProps: IPanelProps, previousState: IPanelState): void {\n const shouldListenOnOuterClick = this._shouldListenForOuterClick(this.props);\n const previousShouldListenOnOuterClick = this._shouldListenForOuterClick(previousProps);\n\n if (this.state.visibility !== previousState.visibility) {\n this._clearExistingAnimationTimer();\n if (this.state.visibility === PanelVisibilityState.animatingOpen) {\n this._animateTo(PanelVisibilityState.open);\n } else if (this.state.visibility === PanelVisibilityState.animatingClosed) {\n this._animateTo(PanelVisibilityState.closed);\n }\n }\n\n const doc = getDocumentEx(this.context);\n if (shouldListenOnOuterClick && !previousShouldListenOnOuterClick) {\n this._events.on(doc?.body, 'mousedown', this._dismissOnOuterClick, true);\n } else if (!shouldListenOnOuterClick && previousShouldListenOnOuterClick) {\n this._events.off(doc?.body, 'mousedown', this._dismissOnOuterClick, true);\n }\n }\n\n public componentWillUnmount(): void {\n this._async.dispose();\n this._events.dispose();\n this._resizeObserver?.disconnect();\n }\n\n public render(): JSX.Element | null {\n const {\n className = '',\n elementToFocusOnDismiss,\n /* eslint-disable @typescript-eslint/no-deprecated */\n firstFocusableSelector,\n focusTrapZoneProps,\n forceFocusInsideTrap,\n hasCloseButton,\n headerText,\n headerClassName = '',\n ignoreExternalFocusing,\n isBlocking,\n isFooterAtBottom,\n isLightDismiss,\n isHiddenOnDismiss,\n layerProps,\n overlayProps,\n popupProps,\n type,\n styles,\n theme,\n customWidth,\n onLightDismissClick = this._onPanelClick,\n onRenderNavigation = this._onRenderNavigation,\n onRenderHeader = this._onRenderHeader,\n onRenderBody = this._onRenderBody,\n onRenderFooter = this._onRenderFooter,\n } = this.props;\n const { isFooterSticky, visibility, id } = this.state;\n const isLeft = type === PanelType.smallFixedNear || type === PanelType.customNear ? true : false;\n const isRTL = getRTL(theme);\n const isOnRightSide = isRTL ? isLeft : !isLeft;\n const customWidthStyles = type === PanelType.custom || type === PanelType.customNear ? { width: customWidth } : {};\n const nativeProps = getNativeProps>(this.props, divProperties);\n const isOpen = this.isActive;\n const isAnimating =\n visibility === PanelVisibilityState.animatingClosed || visibility === PanelVisibilityState.animatingOpen;\n\n this._headerTextId = headerText && id + '-headerText';\n\n if (!isOpen && !isAnimating && !isHiddenOnDismiss) {\n return null;\n }\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n focusTrapZoneClassName: focusTrapZoneProps ? focusTrapZoneProps.className : undefined,\n hasCloseButton,\n headerClassName,\n isAnimating,\n isFooterSticky,\n isFooterAtBottom,\n isOnRightSide,\n isOpen,\n isHiddenOnDismiss,\n type,\n hasCustomNavigation: this._hasCustomNavigation,\n });\n\n const { _classNames, _allowTouchBodyScroll } = this;\n\n let overlay;\n if (isBlocking && isOpen) {\n overlay = (\n \n );\n }\n\n return (\n \n \n
    \n {overlay}\n \n
    \n
    \n
    \n {onRenderNavigation(this.props, this._onRenderNavigation)}\n
    \n {(this._hasCustomNavigation || !hasCloseButton) &&\n onRenderHeader(this.props, this._onRenderHeader, this._headerTextId)}\n {onRenderBody(this.props, this._onRenderBody)}\n {onRenderFooter(this.props, this._onRenderFooter)}\n
    \n
    \n \n
    \n \n
    \n );\n }\n\n public open() {\n if (this.props.isOpen !== undefined) {\n return;\n }\n\n if (this.isActive) {\n return;\n }\n\n this.setState({ visibility: PanelVisibilityState.animatingOpen });\n }\n\n public close() {\n if (this.props.isOpen !== undefined) {\n return;\n }\n\n if (!this.isActive) {\n return;\n }\n\n this.setState({ visibility: PanelVisibilityState.animatingClosed });\n }\n\n public dismiss = (ev?: React.SyntheticEvent | KeyboardEvent): void => {\n if (this.props.onDismiss && this.isActive) {\n this.props.onDismiss(ev);\n }\n\n if (!ev || (ev && !ev.defaultPrevented)) {\n this.close();\n }\n };\n\n /** isActive is true when panel is open or opening. */\n public get isActive(): boolean {\n return (\n this.state.visibility === PanelVisibilityState.open ||\n this.state.visibility === PanelVisibilityState.animatingOpen\n );\n }\n\n private _createResizeObserver(callback: ResizeObserverCallback): ResizeObserver | null {\n const doc = getDocumentEx(this.context);\n let resizeObserver: ResizeObserver | null = null;\n\n if (doc?.defaultView?.ResizeObserver) {\n resizeObserver = new doc.defaultView.ResizeObserver(callback);\n }\n\n return resizeObserver;\n }\n\n // Allow the user to scroll within the panel but not on the body\n private _allowScrollOnPanel = (elt: HTMLDivElement | null): void => {\n this._resizeObserver = this._createResizeObserver(entries => {\n if (entries.length > 0 && entries[0].target === elt) {\n this._updateFooterPosition();\n }\n });\n\n if (elt) {\n this._resizeObserver?.observe(elt);\n if (this._allowTouchBodyScroll) {\n allowOverscrollOnElement(elt, this._events);\n } else {\n allowScrollOnElement(elt, this._events);\n }\n } else {\n this._events.off(this._scrollableContent);\n }\n this._scrollableContent = elt;\n };\n\n private _shouldListenForOuterClick(props: IPanelProps): boolean {\n return !!props.isBlocking && !!props.isOpen;\n }\n\n private _onRenderNavigation = (props: IPanelProps): JSX.Element | null => {\n if (!this.props.onRenderNavigationContent && !this.props.onRenderNavigation && !this.props.hasCloseButton) {\n return null;\n }\n const { onRenderNavigationContent = this._onRenderNavigationContent } = this.props;\n return (\n
    \n {onRenderNavigationContent(props, this._onRenderNavigationContent)}\n
    \n );\n };\n\n private _onRenderNavigationContent = (props: IPanelProps): JSX.Element | null => {\n const { closeButtonAriaLabel, hasCloseButton, onRenderHeader = this._onRenderHeader } = props;\n if (hasCloseButton) {\n const iconButtonStyles = this._classNames.subComponentStyles?.closeButton();\n\n return (\n <>\n {!this._hasCustomNavigation && onRenderHeader(this.props, this._onRenderHeader, this._headerTextId)}\n \n \n );\n }\n return null;\n };\n\n private _onRenderHeader = (\n props: IPanelProps,\n defaultRender?: (props?: IPanelProps) => JSX.Element | null,\n headerTextId?: string | undefined,\n ): JSX.Element | null => {\n const { headerText, headerTextProps = {} } = props;\n\n if (headerText) {\n return (\n
    \n \n {headerText}\n
    \n
    \n );\n }\n return null;\n };\n\n private _onRenderBody = (props: IPanelProps): JSX.Element => {\n return
    {props.children}
    ;\n };\n\n private _onRenderFooter = (props: IPanelProps): JSX.Element | null => {\n const { onRenderFooterContent = null } = this.props;\n if (onRenderFooterContent) {\n return (\n
    \n
    {onRenderFooterContent()}
    \n
    \n );\n }\n return null;\n };\n\n private _updateFooterPosition(): void {\n const scrollableContent = this._scrollableContent;\n if (scrollableContent) {\n const height = scrollableContent.clientHeight;\n const innerHeight = scrollableContent.scrollHeight;\n\n this.setState({\n isFooterSticky: height < innerHeight ? true : false,\n });\n }\n }\n\n private _dismissOnOuterClick(ev: React.MouseEvent): void {\n const panel = this._panel.current;\n if (this.isActive && panel && !ev.defaultPrevented) {\n if (!elementContains(panel, ev.target as HTMLElement)) {\n if (this.props.onOuterClick) {\n this.props.onOuterClick(ev);\n } else {\n this.dismiss(ev);\n }\n }\n }\n }\n\n private _animateTo = (newVisibilityState: PanelVisibilityState): void => {\n if (newVisibilityState === PanelVisibilityState.open && this.props.onOpen) {\n this.props.onOpen();\n }\n\n this._animationCallback = this._async.setTimeout(() => {\n this.setState({ visibility: newVisibilityState });\n this._onTransitionComplete(newVisibilityState);\n }, 200);\n };\n\n private _clearExistingAnimationTimer = (): void => {\n if (this._animationCallback !== null) {\n this._async.clearTimeout(this._animationCallback);\n }\n };\n\n private _onPanelClick = (ev?: any): void => {\n this.dismiss(ev);\n };\n\n private _onTransitionComplete = (newVisibilityState: PanelVisibilityState): void => {\n this._updateFooterPosition();\n if (newVisibilityState === PanelVisibilityState.open && this.props.onOpened) {\n this.props.onOpened();\n }\n\n if (newVisibilityState === PanelVisibilityState.closed && this.props.onDismissed) {\n this.props.onDismissed();\n }\n };\n}\n","import { PanelType } from './Panel.types';\nimport {\n AnimationClassNames,\n AnimationVariables,\n getGlobalClassNames,\n HighContrastSelector,\n ScreenWidthMinMedium,\n ScreenWidthMinLarge,\n ScreenWidthMinXLarge,\n ScreenWidthMinXXLarge,\n ScreenWidthMinUhfMobile,\n IconFontSizes,\n} from '../../Styling';\nimport type { IPanelStyleProps, IPanelStyles } from './Panel.types';\nimport type { IStyle } from '../../Styling';\n\nconst GlobalClassNames = {\n root: 'ms-Panel',\n main: 'ms-Panel-main',\n commands: 'ms-Panel-commands',\n contentInner: 'ms-Panel-contentInner',\n scrollableContent: 'ms-Panel-scrollableContent',\n navigation: 'ms-Panel-navigation',\n closeButton: 'ms-Panel-closeButton ms-PanelAction-close',\n header: 'ms-Panel-header',\n headerText: 'ms-Panel-headerText',\n content: 'ms-Panel-content',\n footer: 'ms-Panel-footer',\n footerInner: 'ms-Panel-footerInner',\n isOpen: 'is-open',\n hasCloseButton: 'ms-Panel--hasCloseButton',\n smallFluid: 'ms-Panel--smFluid',\n smallFixedNear: 'ms-Panel--smLeft',\n smallFixedFar: 'ms-Panel--sm',\n medium: 'ms-Panel--md',\n large: 'ms-Panel--lg',\n largeFixed: 'ms-Panel--fixed',\n extraLarge: 'ms-Panel--xl',\n custom: 'ms-Panel--custom',\n customNear: 'ms-Panel--customLeft',\n};\n\nconst panelWidth = {\n full: '100%',\n auto: 'auto',\n xs: 272,\n sm: 340,\n md1: 592,\n md2: 644,\n lg: 940,\n};\n\nconst panelMargin = {\n auto: 'auto',\n none: 0,\n md: 48,\n lg: 428,\n xl: 176,\n};\n\n// Following consts are used below in `getPanelBreakpoints()` function to provide\n// necessary fallbacks for different types of Panel in different breakpoints.\nconst smallPanelSelectors = {\n [`@media (min-width: ${ScreenWidthMinMedium}px)`]: {\n width: panelWidth.sm,\n },\n};\n\nconst mediumPanelSelectors = {\n [`@media (min-width: ${ScreenWidthMinLarge}px)`]: {\n width: panelWidth.md1,\n },\n [`@media (min-width: ${ScreenWidthMinXLarge}px)`]: {\n width: panelWidth.md2,\n },\n};\n\nconst largePanelSelectors = {\n [`@media (min-width: ${ScreenWidthMinUhfMobile}px)`]: {\n left: panelMargin.md,\n width: panelWidth.auto,\n },\n [`@media (min-width: ${ScreenWidthMinXXLarge}px)`]: {\n left: panelMargin.lg,\n },\n};\n\nconst largeFixedPanelSelectors = {\n [`@media (min-width: ${ScreenWidthMinXXLarge}px)`]: {\n left: panelMargin.auto,\n width: panelWidth.lg,\n },\n};\n\nconst extraLargePanelSelectors = {\n [`@media (min-width: ${ScreenWidthMinXXLarge}px)`]: {\n left: panelMargin.xl,\n },\n};\n\n// Make sure Panels have fallbacks to different breakpoints by reusing same selectors.\n// This is done in the effort to follow design redlines.\nconst getPanelBreakpoints = (type: PanelType): { [x: string]: IStyle } | undefined => {\n let selectors;\n\n // Panel types `smallFluid`, `smallFixedNear`, `custom` and `customNear`\n // are not checked in here because they render the same in all the breakpoints\n // and have the checks done separately in the `getStyles` function below.\n switch (type) {\n case PanelType.smallFixedFar:\n selectors = {\n ...smallPanelSelectors,\n };\n break;\n case PanelType.medium:\n selectors = {\n ...smallPanelSelectors,\n ...mediumPanelSelectors,\n };\n break;\n case PanelType.large:\n selectors = {\n ...smallPanelSelectors,\n ...mediumPanelSelectors,\n ...largePanelSelectors,\n };\n break;\n case PanelType.largeFixed:\n selectors = {\n ...smallPanelSelectors,\n ...mediumPanelSelectors,\n ...largePanelSelectors,\n ...largeFixedPanelSelectors,\n };\n break;\n case PanelType.extraLarge:\n selectors = {\n ...smallPanelSelectors,\n ...mediumPanelSelectors,\n ...largePanelSelectors,\n ...extraLargePanelSelectors,\n };\n break;\n default:\n break;\n }\n\n return selectors;\n};\n\nconst commandBarHeight = '44px';\n\nconst sharedPaddingStyles = {\n paddingLeft: '24px',\n paddingRight: '24px',\n};\n\nexport const getStyles = (props: IPanelStyleProps): IPanelStyles => {\n const {\n className,\n focusTrapZoneClassName,\n hasCloseButton,\n headerClassName,\n isAnimating,\n isFooterSticky,\n isFooterAtBottom,\n isOnRightSide,\n isOpen,\n isHiddenOnDismiss,\n hasCustomNavigation,\n theme,\n type = PanelType.smallFixedFar,\n } = props;\n const { effects, fonts, semanticColors } = theme;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n const isCustomPanel = type === PanelType.custom || type === PanelType.customNear;\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n isOpen && classNames.isOpen,\n hasCloseButton && classNames.hasCloseButton,\n {\n pointerEvents: 'none',\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n isCustomPanel && isOnRightSide && classNames.custom,\n isCustomPanel && !isOnRightSide && classNames.customNear,\n className,\n ],\n overlay: [\n {\n pointerEvents: 'auto',\n cursor: 'pointer',\n },\n isOpen && isAnimating && AnimationClassNames.fadeIn100,\n !isOpen && isAnimating && AnimationClassNames.fadeOut100,\n ],\n hiddenPanel: [\n !isOpen &&\n !isAnimating &&\n isHiddenOnDismiss && {\n visibility: 'hidden',\n },\n ],\n main: [\n classNames.main,\n {\n backgroundColor: semanticColors.bodyBackground,\n boxShadow: effects.elevation64,\n pointerEvents: 'auto',\n position: 'absolute',\n display: 'flex',\n flexDirection: 'column',\n overflowX: 'hidden',\n overflowY: 'auto',\n WebkitOverflowScrolling: 'touch',\n bottom: 0,\n top: 0,\n // left, right, width are overridden depending on the type of the Panel and the screen breakpoint.\n left: panelMargin.auto,\n right: panelMargin.none,\n width: panelWidth.full,\n selectors: {\n [HighContrastSelector]: {\n borderLeft: `3px solid ${semanticColors.variantBorder}`,\n borderRight: `3px solid ${semanticColors.variantBorder}`,\n },\n ...getPanelBreakpoints(type),\n },\n },\n type === PanelType.smallFluid && {\n left: panelMargin.none,\n },\n type === PanelType.smallFixedNear && {\n left: panelMargin.none,\n right: panelMargin.auto,\n width: panelWidth.xs,\n },\n type === PanelType.customNear && {\n right: 'auto',\n left: 0,\n },\n isCustomPanel && {\n maxWidth: '100vw',\n },\n isOpen && isAnimating && !isOnRightSide && AnimationClassNames.slideRightIn40,\n isOpen && isAnimating && isOnRightSide && AnimationClassNames.slideLeftIn40,\n !isOpen && isAnimating && !isOnRightSide && AnimationClassNames.slideLeftOut40,\n !isOpen && isAnimating && isOnRightSide && AnimationClassNames.slideRightOut40,\n focusTrapZoneClassName,\n ],\n commands: [\n classNames.commands,\n {\n // Ensures that the sticky header always has a background to prevent overlaps on scroll.\n backgroundColor: semanticColors.bodyBackground,\n paddingTop: 18,\n selectors: {\n [`@media (min-height: ${ScreenWidthMinMedium}px)`]: {\n position: 'sticky',\n top: 0,\n zIndex: 1,\n },\n },\n },\n hasCustomNavigation && {\n paddingTop: 'inherit',\n },\n ],\n navigation: [\n classNames.navigation,\n {\n display: 'flex',\n justifyContent: 'flex-end',\n },\n hasCustomNavigation && {\n height: commandBarHeight,\n },\n ],\n contentInner: [\n classNames.contentInner,\n {\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n overflowY: 'hidden',\n },\n ],\n header: [\n classNames.header,\n sharedPaddingStyles,\n {\n alignSelf: 'flex-start',\n },\n hasCloseButton &&\n !hasCustomNavigation && {\n flexGrow: 1,\n },\n hasCustomNavigation && {\n // Ensure that title doesn't shrink if screen is too small\n flexShrink: 0,\n },\n ],\n headerText: [\n classNames.headerText,\n fonts.xLarge,\n {\n color: semanticColors.bodyText,\n lineHeight: '27px',\n overflowWrap: 'break-word',\n wordWrap: 'break-word',\n wordBreak: 'break-word',\n hyphens: 'auto',\n },\n headerClassName,\n ],\n scrollableContent: [\n classNames.scrollableContent,\n {\n overflowY: 'auto',\n },\n isFooterAtBottom && {\n flexGrow: 1,\n display: 'inherit',\n flexDirection: 'inherit',\n },\n ],\n content: [\n classNames.content,\n sharedPaddingStyles,\n {\n paddingBottom: 20,\n },\n isFooterAtBottom && {\n selectors: {\n [`@media (min-height: ${ScreenWidthMinMedium}px)`]: {\n flexGrow: 1,\n },\n },\n },\n ],\n footer: [\n classNames.footer,\n {\n // Ensure that footer doesn't shrink if screen is too small\n flexShrink: 0,\n borderTop: '1px solid transparent',\n transition: `opacity ${AnimationVariables.durationValue3} ${AnimationVariables.easeFunction2}`,\n selectors: {\n [`@media (min-height: ${ScreenWidthMinMedium}px)`]: {\n position: 'sticky',\n bottom: 0,\n },\n },\n },\n isFooterSticky && {\n backgroundColor: semanticColors.bodyBackground,\n borderTopColor: semanticColors.variantBorder,\n },\n ],\n footerInner: [\n classNames.footerInner,\n sharedPaddingStyles,\n {\n paddingBottom: 16,\n paddingTop: 16,\n },\n ],\n subComponentStyles: {\n closeButton: {\n root: [\n classNames.closeButton,\n {\n marginRight: 14,\n color: theme.palette.neutralSecondary,\n fontSize: IconFontSizes.large,\n },\n hasCustomNavigation && {\n marginRight: 0,\n height: 'auto',\n width: '44px',\n },\n ],\n rootHovered: {\n color: theme.palette.neutralPrimary,\n },\n },\n },\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { PanelBase } from './Panel.base';\nimport { getStyles } from './Panel.styles';\nimport type { IPanelProps, IPanelStyleProps, IPanelStyles } from './Panel.types';\n\n/**\n * Panel description\n */\nexport const Panel: React.FunctionComponent = styled(\n PanelBase,\n getStyles,\n undefined,\n {\n scope: 'Panel',\n },\n);\n","import * as React from 'react';\nimport { PanelBase } from './Panel.base';\nimport type { IFocusTrapZoneProps } from '../../FocusTrapZone';\nimport type { ILayerProps } from '../../Layer';\nimport type { IOverlayProps } from '../../Overlay';\nimport type { IStyle, ITheme } from '../../Styling';\nimport type { IRefObject, IRenderFunction, IStyleFunctionOrObject } from '../../Utilities';\nimport type { IButtonStyles } from '../../Button';\nimport type { IPopupProps } from '../../Popup';\n\n/**\n * {@docCategory Panel}\n */\nexport interface IPanel {\n /**\n * Forces the panel to open.\n */\n open: () => void;\n\n /**\n * Forces the panel to dismiss.\n */\n dismiss: (ev?: React.KeyboardEvent | KeyboardEvent) => void;\n}\n\n/**\n * {@docCategory Panel}\n */\nexport interface IPanelProps extends React.HTMLAttributes {\n /**\n * Optional callback to access the IPanel interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Whether the panel is displayed.\n * If true, will cause panel to stay open even if dismissed.\n * If false, will cause panel to stay hidden.\n * If undefined, will allow the panel to control its own visibility through open/dismiss methods.\n * @defaultvalue undefined\n */\n isOpen?: boolean;\n\n /**\n * Has the close button visible.\n * @defaultvalue true\n */\n hasCloseButton?: boolean;\n\n /**\n * Whether the panel can be light dismissed.\n * @defaultvalue false\n */\n isLightDismiss?: boolean;\n\n /**\n * Whether the panel is hidden on dismiss, instead of destroyed in the DOM.\n * Protects the contents from being destroyed when the panel is dismissed.\n * @defaultvalue false\n */\n isHiddenOnDismiss?: boolean;\n\n /**\n * Whether the panel uses a modal overlay or not\n * @defaultvalue true\n */\n isBlocking?: boolean;\n\n /**\n * Determines if content should stretch to fill available space putting footer at the bottom of the page\n * @defaultvalue false\n */\n isFooterAtBottom?: boolean;\n\n /**\n * Header text for the Panel.\n * @defaultvalue \"\"\n */\n headerText?: string;\n\n /**\n * The props for header text container.\n */\n headerTextProps?: React.HTMLAttributes;\n\n /**\n * A callback function for when the Panel is opened, before the animation completes.\n */\n onOpen?: () => void;\n\n /**\n * A callback function for when the Panel is opened, after the animation completes.\n */\n onOpened?: () => void;\n\n /**\n * A callback function for when the panel is closed, before the animation completes.\n * If the panel should NOT be dismissed based on some keyboard event, then simply call ev.preventDefault() on it\n */\n onDismiss?: (ev?: React.SyntheticEvent | KeyboardEvent) => void;\n\n /**\n * A callback function which is called **after** the Panel is dismissed and the animation is complete.\n * (If you need to update the Panel's `isOpen` prop in response to a dismiss event, use `onDismiss` instead.)\n */\n onDismissed?: () => void;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by High-Order Component.\n */\n theme?: ITheme;\n\n /**\n * Additional css class to apply to the Panel\n * @defaultvalue undefined\n */\n className?: string;\n\n /**\n * Type of the panel.\n * @defaultvalue PanelType.smallFixedFar\n */\n type?: PanelType;\n\n /**\n * Custom panel width, used only when `type` is set to `PanelType.custom`.\n */\n customWidth?: string;\n\n /**\n * Aria label on close button\n */\n closeButtonAriaLabel?: string;\n\n /**\n * Optional parameter to provider the class name for header text\n */\n headerClassName?: string;\n\n /**\n * Sets the HTMLElement to focus on when exiting the FocusTrapZone.\n * @defaultvalue The `element.target` that triggered the Panel.\n */\n elementToFocusOnDismiss?: HTMLElement;\n\n /**\n * Indicates if this Panel will ignore keeping track of HTMLElement that activated the Zone.\n * @defaultvalue false\n * @deprecated Use `focusTrapZoneProps`.\n */\n ignoreExternalFocusing?: boolean;\n\n /**\n * Indicates whether Panel should force focus inside the focus trap zone.\n * If not explicitly specified, behavior aligns with FocusTrapZone's default behavior.\n * @deprecated Use `focusTrapZoneProps`.\n */\n forceFocusInsideTrap?: boolean;\n\n /**\n * Indicates the selector for first focusable item.\n * @deprecated Use `focusTrapZoneProps`.\n */\n firstFocusableSelector?: string;\n\n /**\n * Optional props to pass to the FocusTrapZone component to manage focus in the panel.\n */\n focusTrapZoneProps?: IFocusTrapZoneProps;\n\n /**\n * Optional props to pass to the Layer component hosting the panel.\n */\n layerProps?: ILayerProps;\n\n /**\n * Optional props to pass to the Overlay component that the panel uses.\n */\n overlayProps?: IOverlayProps;\n\n /**\n * Optional props to pass the Popup component that the panel uses.\n */\n popupProps?: IPopupProps;\n\n /**\n * Optional custom function to handle clicks outside the panel in lightdismiss mode\n */\n onLightDismissClick?: () => void;\n\n /**\n * Optional custom function to handle clicks outside this component\n */\n onOuterClick?: (ev?: React.MouseEvent) => void;\n\n /**\n * Optional custom renderer navigation region. Replaces the region that contains the close button.\n */\n onRenderNavigation?: IRenderFunction;\n\n /**\n * Optional custom renderer for content in the navigation region. Replaces current close button.\n */\n onRenderNavigationContent?: IRenderFunction;\n\n /**\n * Optional custom renderer for header region. Replaces current title\n */\n onRenderHeader?: IPanelHeaderRenderer;\n\n /**\n * Optional custom renderer for body region. Replaces any children passed into the component.\n */\n onRenderBody?: IRenderFunction;\n\n /**\n * Optional custom renderer for footer region. Replaces sticky footer.\n */\n onRenderFooter?: IRenderFunction;\n\n /**\n * Custom renderer for content in the sticky footer\n */\n onRenderFooterContent?: IRenderFunction;\n\n /**\n * @deprecated Not used.\n */\n componentId?: string;\n\n /**\n * Allow body scroll on content and overlay on touch devices. Changing after mounting has no effect.\n * @defaultvalue false\n */\n allowTouchBodyScroll?: boolean;\n}\n\n/**\n * Renderer function which takes an additional parameter, the ID to use for the element containing\n * the panel's title. This allows the `aria-labelledby` for the panel popup to work correctly.\n * Note that if `headerTextId` is provided, it **must** be used on an element, or screen readers\n * will be confused by the reference to a nonexistent ID.\n * {@docCategory Panel}\n */\nexport interface IPanelHeaderRenderer extends IRenderFunction {\n /**\n * @param props - Props given to the panel\n * @param defaultRender - Default header renderer. If using this renderer in code that does not\n * assign `headerTextId` to an element elsewhere, it **must** be passed to this function.\n * @param headerTextId - If provided, this **must** be used as the ID of an element containing the\n * panel's title, because the panel popup uses this ID as its aria-labelledby.\n */\n (props?: IPanelProps, defaultRender?: IPanelHeaderRenderer, headerTextId?: string | undefined): JSX.Element | null;\n}\n\n/**\n * {@docCategory Panel}\n */\nexport enum PanelType {\n /**\n * Renders the Panel with a `fluid` (full screen) width.\n * Recommended for use on small screen breakpoints.\n * - Small (320-479): full screen width, 16px left/right padding\n * - Medium (480-639): full screen width, 16px left/right padding\n * - Large (640-1023): full screen width, 32px left/right padding\n * - XLarge (1024-1365): full screen width, 32px left/right padding\n * - XXLarge (1366-up): full screen width, 40px left/right padding\n */\n smallFluid = 0,\n\n /**\n * Renders the Panel in fixed-width `small` size, anchored to the far side (right in LTR mode).\n * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint\n * - Medium (480-639): 340px width, 16px left/right padding\n * - Large (640-1023): 340px width, 32px left/right padding\n * - XLarge (1024-1365): 340px width, 32px left/right padding\n * - XXLarge (1366-up): 340px width, 40px left/right padding\n */\n smallFixedFar = 1,\n\n /**\n * Renders the Panel in fixed-width `small` size, anchored to the near side (left in LTR mode).\n * - Small (320-479): 272px width, 16px left/right padding\n * - Medium (480-639): 272px width, 16px left/right padding\n * - Large (640-1023): 272px width, 32px left/right padding\n * - XLarge (1024-1365): 272px width, 32px left/right padding\n * - XXLarge (1366-up): 272px width, 40px left/right padding\n */\n smallFixedNear = 2,\n\n /**\n * Renders the Panel in `medium` size, anchored to the far side (right in LTR mode).\n * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint\n * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint\n * - Large (640-1023): 592px width, 32px left/right padding\n * - XLarge (1024-1365): 644px width, 32px left/right padding\n * - XXLarge (1366-up): 644px width, 40px left/right padding\n */\n medium = 3,\n\n /**\n * Renders the Panel in `large` size, anchored to the far side (right in LTR mode).\n * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint\n * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint\n * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint\n * - XLarge (1024-1365): 48px fixed left margin, fluid width, 32px left/right padding\n * - XXLarge (1366-up): 428px fixed left margin, fluid width, 40px left/right padding\n */\n large = 4,\n\n /**\n * Renders the Panel in `large` size, anchored to the far side (right in LTR mode), with a fixed width at\n * XX-Large breakpoint.\n * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint\n * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint\n * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint\n * - XLarge (1024-1365): 48px fixed left margin, fluid width, 32px left/right padding\n * - XXLarge (1366-up): 940px width, 40px left/right padding\n */\n largeFixed = 5,\n\n /**\n * Renders the Panel in `extra large` size, anchored to the far side (right in LTR mode).\n * - Small (320-479): adapts to `PanelType.smallFluid` at this breakpoint\n * - Medium (480-639): adapts to `PanelType.smallFixedFar` at this breakpoint\n * - Large (640-1023): adapts to `PanelType.medium` at this breakpoint\n * - XLarge (1024-1365): adapts to `PanelType.large` at this breakpoint\n * - XXLarge (1366-1919): 176px fixed left margin, fluid width, 40px left/right padding\n * - XXXLarge (1920-up): 176px fixed left margin, fluid width, 40px left/right padding\n */\n extraLarge = 6,\n\n /**\n * Renders the Panel in `custom` size using `customWidth`, anchored to the far side (right in LTR mode).\n * - Has a fixed width provided by the `customWidth` prop\n * - When screen width reaches the `customWidth` value it will behave like a fluid width Panel\n * taking up 100% of the viewport width\n */\n custom = 7,\n\n /**\n * Renders the Panel in `custom` size using `customWidth`, anchored to the near side (left in LTR mode).\n * - Has a fixed width provided by the `customWidth` prop\n * - When screen width reaches the `customWidth` value it will behave like a fluid width Panel\n * taking up 100% of the viewport width\n */\n customNear = 8,\n}\n\n/**\n * {@docCategory Panel}\n */\nexport interface IPanelStyleProps {\n /**\n * Theme provided by High-Order Component.\n */\n theme: ITheme;\n\n /**\n * Accept custom classNames\n */\n className?: string;\n\n /**\n * Is Panel open\n */\n isOpen?: boolean;\n\n /**\n * Is animation currently running\n */\n isAnimating?: boolean;\n\n /**\n * Is panel on right side\n */\n isOnRightSide?: boolean;\n\n /**\n * Is panel hidden on dismiss\n */\n isHiddenOnDismiss?: boolean;\n\n /**\n * Classname for FocusTrapZone element\n */\n focusTrapZoneClassName?: string;\n\n /**\n * Determines if content should stretch to fill available space putting footer at the bottom of the page\n */\n isFooterAtBottom?: boolean;\n\n /**\n * Based on state value setting footer to sticky or not\n */\n isFooterSticky?: boolean;\n\n /**\n * Panel has close button\n */\n hasCloseButton?: boolean;\n\n /**\n * Type of the panel.\n */\n type?: PanelType;\n\n /**\n * Optional parameter to provider the class name for header text\n */\n headerClassName?: string;\n\n /**\n * Determines where the header is rendered based on whether the user\n * has passed in a custom onRenderNavigation or onRenderNavigationContent render callback\n */\n hasCustomNavigation?: boolean;\n}\n\nexport interface IPanelSubComponentStyles {\n /**\n * Styling for close button child component.\n */\n closeButton: Partial;\n}\n\n/**\n * {@docCategory Panel}\n */\nexport interface IPanelStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n\n /**\n * Style for the overlay element.\n */\n overlay: IStyle;\n\n /**\n * Style for the hidden element.\n */\n hiddenPanel: IStyle;\n\n /**\n * Style for the main section element.\n */\n main: IStyle;\n\n /**\n * Style for the navigation container element.\n */\n commands: IStyle;\n\n /**\n * Style for the Body and Footer container element.\n */\n contentInner: IStyle;\n\n /**\n * Style for the scrollable content area container element.\n */\n scrollableContent: IStyle;\n\n /**\n * Style for the close button container element.\n */\n navigation: IStyle;\n\n /**\n * Style for the close button IconButton element.\n * @deprecated Use `subComponentStyles.closeButton` instead.\n */\n closeButton?: IStyle;\n\n /**\n * Style for the header container div element.\n */\n header: IStyle;\n\n /**\n * Style for the header text div element.\n */\n headerText: IStyle;\n\n /**\n * Style for the body div element.\n */\n content: IStyle;\n\n /**\n * Style for the footer div element.\n */\n footer: IStyle;\n\n /**\n * Style for the inner footer div element.\n */\n footerInner: IStyle;\n\n /**\n * Styling for subcomponents.\n */\n subComponentStyles: IPanelSubComponentStyles;\n}\n","import * as React from 'react';\nimport { classNamesFunction, divProperties, getNativeProps, getPropsWithDefaults } from '../../Utilities';\nimport { TooltipHost, TooltipOverflowMode } from '../../Tooltip';\nimport { PersonaCoin } from './PersonaCoin/PersonaCoin';\nimport { PersonaPresence as PersonaPresenceEnum, PersonaSize } from './Persona.types';\nimport { useWarnings, useMergedRefs } from '@fluentui/react-hooks';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport type { IRenderFunction } from '../../Utilities';\nimport type { IPersonaProps, IPersonaStyleProps, IPersonaStyles, IPersonaCoinProps } from './Persona.types';\n\nconst getClassNames = classNamesFunction();\n\nconst DEFAULT_PROPS = {\n size: PersonaSize.size48,\n presence: PersonaPresenceEnum.none,\n imageAlt: '',\n showOverflowTooltip: true,\n};\n\nfunction useDebugWarnings(props: IPersonaProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: 'Persona',\n props,\n deprecations: { primaryText: 'text' },\n });\n }\n}\n\n/**\n * Persona with no default styles.\n * [Use the `styles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling)\n */\nexport const PersonaBase: React.FunctionComponent = React.forwardRef(\n (propsWithoutDefaults, forwardedRef) => {\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n\n useDebugWarnings(props);\n const rootRef = React.useRef(null);\n const mergedRootRef = useMergedRefs(forwardedRef, rootRef);\n\n /**\n * Deprecation helper for getting text.\n */\n const getText = (): string => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n return props.text || props.primaryText || '';\n };\n\n /**\n * Renders various types of Text (primaryText, secondaryText, etc)\n * based on the classNames passed\n * @param elementClassNames - element className\n * @param renderFunction - render function\n * @param defaultRenderFunction - default render function\n */\n const renderElement = (\n elementClassNames: string,\n renderFunction: IRenderFunction | undefined,\n defaultRenderFunction: IRenderFunction | undefined,\n ): JSX.Element | undefined => {\n const content = renderFunction && renderFunction(props, defaultRenderFunction);\n return content ? (\n
    \n {content}\n
    \n ) : undefined;\n };\n\n /**\n * using closure to wrap the default render behavior\n * to make it independent of the type of text passed\n * @param text - text to render\n */\n const onRenderText = (text: string | undefined, tooltip = true): IRenderFunction | undefined => {\n // return default render behavior for valid text or undefined\n return text\n ? tooltip\n ? (): JSX.Element => {\n // default onRender behavior\n return (\n \n {text}\n \n );\n }\n : () => <>{text}\n : undefined;\n };\n\n const onInternalRenderPersonaCoin = (providedCoinProps: IPersonaCoinProps): JSX.Element | null => {\n return ;\n };\n\n // wrapping default render behavior based on various props properties\n const onInternalRenderPrimaryText = onRenderText(getText(), props.showOverflowTooltip);\n const onInternalRenderSecondaryText = onRenderText(props.secondaryText, props.showOverflowTooltip);\n const onInternalRenderTertiaryText = onRenderText(props.tertiaryText, props.showOverflowTooltip);\n const onInternalRenderOptionalText = onRenderText(props.optionalText, props.showOverflowTooltip);\n\n const {\n hidePersonaDetails,\n onRenderOptionalText = onInternalRenderOptionalText,\n onRenderPrimaryText = onInternalRenderPrimaryText,\n onRenderSecondaryText = onInternalRenderSecondaryText,\n onRenderTertiaryText = onInternalRenderTertiaryText,\n onRenderPersonaCoin = onInternalRenderPersonaCoin,\n } = props;\n const size = props.size as PersonaSize;\n\n // These properties are to be explicitly passed into PersonaCoin because they are the only props directly used\n const {\n allowPhoneInitials,\n className,\n coinProps,\n showUnknownPersonaCoin,\n coinSize,\n styles,\n imageAlt,\n imageInitials,\n imageShouldFadeIn,\n imageShouldStartVisible,\n imageUrl,\n initialsColor,\n initialsTextColor,\n isOutOfOffice,\n onPhotoLoadingStateChange,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onRenderCoin,\n onRenderInitials,\n presence,\n presenceTitle,\n presenceColors,\n showInitialsUntilImageLoads,\n showSecondaryText,\n theme,\n } = props;\n\n const personaCoinProps: IPersonaCoinProps = {\n allowPhoneInitials,\n showUnknownPersonaCoin,\n coinSize,\n imageAlt,\n imageInitials,\n imageShouldFadeIn,\n imageShouldStartVisible,\n imageUrl,\n initialsColor,\n initialsTextColor,\n onPhotoLoadingStateChange,\n onRenderCoin,\n onRenderInitials,\n presence,\n presenceTitle,\n showInitialsUntilImageLoads,\n size,\n text: getText(),\n isOutOfOffice,\n presenceColors,\n ...coinProps,\n };\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n className,\n showSecondaryText,\n presence,\n size,\n });\n\n const divProps = getNativeProps>(props, divProperties);\n const personaDetails = (\n
    \n {renderElement(classNames.primaryText, onRenderPrimaryText, onInternalRenderPrimaryText)}\n {renderElement(classNames.secondaryText, onRenderSecondaryText, onInternalRenderSecondaryText)}\n {renderElement(classNames.tertiaryText, onRenderTertiaryText, onInternalRenderTertiaryText)}\n {renderElement(classNames.optionalText, onRenderOptionalText, onInternalRenderOptionalText)}\n {props.children}\n
    \n );\n return (\n \n {onRenderPersonaCoin(personaCoinProps, onRenderPersonaCoin)}\n {\n /* eslint-disable @typescript-eslint/no-deprecated */\n\n (!hidePersonaDetails ||\n size === PersonaSize.size8 ||\n size === PersonaSize.size10 ||\n size === PersonaSize.tiny) &&\n personaDetails\n /* eslint-enable @typescript-eslint/no-deprecated */\n }\n \n );\n },\n);\nPersonaBase.displayName = 'PersonaBase';\n","import { PersonaPresence, PersonaSize } from './Persona.types';\nimport { FontWeights, normalize, noWrap, getGlobalClassNames } from '../../Styling';\nimport { personaSize, presenceBoolean, sizeBoolean } from './PersonaConsts';\nimport type { IPersonaStyleProps, IPersonaStyles } from './Persona.types';\nimport type { IStyle } from '../../Styling';\n\nconst GlobalClassNames = {\n root: 'ms-Persona',\n size8: 'ms-Persona--size8',\n size10: 'ms-Persona--size10',\n size16: 'ms-Persona--size16',\n size24: 'ms-Persona--size24',\n size28: 'ms-Persona--size28',\n size32: 'ms-Persona--size32',\n size40: 'ms-Persona--size40',\n size48: 'ms-Persona--size48',\n size56: 'ms-Persona--size56',\n size72: 'ms-Persona--size72',\n size100: 'ms-Persona--size100',\n size120: 'ms-Persona--size120',\n available: 'ms-Persona--online',\n away: 'ms-Persona--away',\n blocked: 'ms-Persona--blocked',\n busy: 'ms-Persona--busy',\n doNotDisturb: 'ms-Persona--donotdisturb',\n offline: 'ms-Persona--offline',\n details: 'ms-Persona-details',\n primaryText: 'ms-Persona-primaryText',\n secondaryText: 'ms-Persona-secondaryText',\n tertiaryText: 'ms-Persona-tertiaryText',\n optionalText: 'ms-Persona-optionalText',\n textContent: 'ms-Persona-textContent',\n};\n\nexport const getStyles = (props: IPersonaStyleProps): IPersonaStyles => {\n const { className, showSecondaryText, theme } = props;\n\n const { semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const size = sizeBoolean(props.size as PersonaSize);\n const presence = presenceBoolean(props.presence as PersonaPresence);\n\n const showSecondaryTextDefaultHeight = '16px';\n\n const sharedTextStyles: IStyle = {\n color: semanticColors.bodySubtext,\n fontWeight: FontWeights.regular,\n fontSize: fonts.small.fontSize,\n };\n\n return {\n root: [\n classNames.root,\n theme.fonts.medium,\n normalize,\n {\n color: semanticColors.bodyText,\n position: 'relative',\n height: personaSize.size48,\n minWidth: personaSize.size48,\n display: 'flex',\n alignItems: 'center',\n\n selectors: {\n '.contextualHost': {\n display: 'none',\n },\n },\n },\n\n size.isSize8 && [\n classNames.size8,\n {\n height: personaSize.size8,\n minWidth: personaSize.size8,\n },\n ],\n\n // TODO: Deprecated size and needs to be removed in a future major release.\n size.isSize10 && [\n classNames.size10,\n {\n height: personaSize.size10,\n minWidth: personaSize.size10,\n },\n ],\n\n // TODO: Deprecated size and needs to be removed in a future major release.\n size.isSize16 && [\n classNames.size16,\n {\n height: personaSize.size16,\n minWidth: personaSize.size16,\n },\n ],\n\n size.isSize24 && [\n classNames.size24,\n {\n height: personaSize.size24,\n minWidth: personaSize.size24,\n },\n ],\n\n size.isSize24 &&\n showSecondaryText && {\n height: '36px',\n },\n\n // TODO: Deprecated size and needs to be removed in a future major release.\n size.isSize28 && [\n classNames.size28,\n {\n height: personaSize.size28,\n minWidth: personaSize.size28,\n },\n ],\n\n size.isSize28 &&\n showSecondaryText && {\n height: '32px',\n },\n\n size.isSize32 && [\n classNames.size32,\n {\n height: personaSize.size32,\n minWidth: personaSize.size32,\n },\n ],\n\n size.isSize40 && [\n classNames.size40,\n {\n height: personaSize.size40,\n minWidth: personaSize.size40,\n },\n ],\n\n size.isSize48 && classNames.size48,\n\n size.isSize56 && [\n classNames.size56,\n {\n height: personaSize.size56,\n minWidth: personaSize.size56,\n },\n ],\n\n size.isSize72 && [\n classNames.size72,\n {\n height: personaSize.size72,\n minWidth: personaSize.size72,\n },\n ],\n\n size.isSize100 && [\n classNames.size100,\n {\n height: personaSize.size100,\n minWidth: personaSize.size100,\n },\n ],\n\n size.isSize120 && [\n classNames.size120,\n {\n height: personaSize.size120,\n minWidth: personaSize.size120,\n },\n ],\n\n /**\n * Modifiers: presence\n */\n presence.isAvailable && classNames.available,\n presence.isAway && classNames.away,\n presence.isBlocked && classNames.blocked,\n presence.isBusy && classNames.busy,\n presence.isDoNotDisturb && classNames.doNotDisturb,\n presence.isOffline && classNames.offline,\n className,\n ],\n\n details: [\n classNames.details,\n {\n padding: '0 24px 0 16px',\n minWidth: 0,\n width: '100%',\n textAlign: 'left',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-around',\n },\n\n (size.isSize8 || size.isSize10) && {\n paddingLeft: 17, // increased padding because we don't render a coin at this size\n },\n\n (size.isSize24 || size.isSize28 || size.isSize32) && {\n padding: '0 8px',\n },\n\n (size.isSize40 || size.isSize48) && {\n padding: '0 12px',\n },\n ],\n\n primaryText: [\n classNames.primaryText,\n noWrap,\n {\n color: semanticColors.bodyText,\n fontWeight: FontWeights.regular,\n fontSize: fonts.medium.fontSize,\n selectors: {\n ':hover': {\n color: semanticColors.inputTextHovered,\n },\n },\n },\n\n showSecondaryText && {\n height: showSecondaryTextDefaultHeight,\n lineHeight: showSecondaryTextDefaultHeight,\n overflowX: 'hidden',\n },\n\n (size.isSize8 || size.isSize10) && {\n fontSize: fonts.small.fontSize,\n lineHeight: personaSize.size8,\n },\n\n size.isSize16 && {\n lineHeight: personaSize.size28,\n },\n\n (size.isSize24 || size.isSize28 || size.isSize32 || size.isSize40 || size.isSize48) &&\n showSecondaryText && {\n height: 18,\n },\n\n (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && {\n fontSize: fonts.xLarge.fontSize,\n },\n\n (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) &&\n showSecondaryText && {\n height: 22,\n },\n ],\n\n secondaryText: [\n classNames.secondaryText,\n noWrap,\n sharedTextStyles,\n\n (size.isSize8 || size.isSize10 || size.isSize16 || size.isSize24 || size.isSize28 || size.isSize32) && {\n display: 'none',\n },\n\n showSecondaryText && {\n display: 'block',\n height: showSecondaryTextDefaultHeight,\n lineHeight: showSecondaryTextDefaultHeight,\n overflowX: 'hidden',\n },\n\n size.isSize24 &&\n showSecondaryText && {\n height: 18,\n },\n\n (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) && {\n fontSize: fonts.medium.fontSize,\n },\n\n (size.isSize56 || size.isSize72 || size.isSize100 || size.isSize120) &&\n showSecondaryText && {\n height: 18,\n },\n ],\n\n tertiaryText: [\n classNames.tertiaryText,\n noWrap,\n sharedTextStyles,\n {\n display: 'none',\n fontSize: fonts.medium.fontSize,\n },\n\n (size.isSize72 || size.isSize100 || size.isSize120) && {\n display: 'block',\n },\n ],\n\n optionalText: [\n classNames.optionalText,\n noWrap,\n sharedTextStyles,\n {\n display: 'none',\n fontSize: fonts.medium.fontSize,\n },\n\n (size.isSize100 || size.isSize120) && {\n display: 'block',\n },\n ],\n\n textContent: [classNames.textContent, noWrap],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { PersonaBase } from './Persona.base';\nimport { getStyles } from './Persona.styles';\nimport type { IPersonaProps, IPersonaStyleProps, IPersonaStyles } from './Persona.types';\n\n/**\n * Personas are used for rendering an individual's avatar, presence and details.\n * They are used within the PeoplePicker components.\n */\nexport const Persona: React.FunctionComponent = styled<\n IPersonaProps,\n IPersonaStyleProps,\n IPersonaStyles\n>(PersonaBase, getStyles, undefined, {\n scope: 'Persona',\n});\n","import * as React from 'react';\nimport { ImageLoadState } from '../../Image';\nimport type { IRefObject, IRenderFunction, IStyleFunctionOrObject } from '../../Utilities';\nimport type { IStyle, ITheme } from '../../Styling';\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersona {}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaSharedProps extends React.HTMLAttributes, React.RefAttributes {\n /**\n * Primary text to display, usually the name of the person.\n */\n text?: string;\n\n /**\n * Decides the size of the control.\n * @defaultvalue PersonaSize.size48\n */\n size?: PersonaSize;\n\n /**\n * Optional custom renderer for the coin\n * @deprecated Use `onRenderPersonaCoin` for custom rendering instead\n */\n onRenderCoin?: IRenderFunction;\n\n /**\n * Optional custom renderer for the coin\n */\n onRenderPersonaCoin?: IRenderFunction;\n\n /**\n * If true, adds the css class 'is-fadeIn' to the image.\n */\n imageShouldFadeIn?: boolean;\n\n /**\n * If true, the image starts as visible and is hidden on error. Otherwise, the image is hidden until\n * it is successfully loaded. This disables imageShouldFadeIn.\n * @defaultvalue false\n */\n imageShouldStartVisible?: boolean;\n\n /**\n * Url to the image to use, should be a square aspect ratio and big enough to fit in the image area.\n */\n imageUrl?: string;\n\n /**\n * Alt text for the image to use.\n * @default `''` (empty string)\n */\n imageAlt?: string;\n\n /**\n * The user's initials to display in the image area when there is no image.\n * @defaultvalue Derived from `text`\n */\n imageInitials?: string;\n\n /**\n * Whether initials are calculated for phone numbers and number sequences.\n * Example: Set property to true to get initials for project names consisting of numbers only.\n * @defaultvalue false\n */\n allowPhoneInitials?: boolean;\n\n /**\n * Optional custom renderer for the initials\n */\n onRenderInitials?: IRenderFunction;\n\n /**\n * Optional callback for when loading state of the photo changes\n */\n onPhotoLoadingStateChange?: (newImageLoadState: ImageLoadState) => void;\n\n /**\n * The background color when the user's initials are displayed.\n * @defaultvalue Derived from `text`\n */\n initialsColor?: PersonaInitialsColor | string;\n\n /**\n * The text color when the user's initials are displayed\n */\n initialsTextColor?: string;\n\n /** The colors to be used for the presence-icon and it's background */\n presenceColors?: {\n available: string;\n away: string;\n busy: string;\n dnd: string;\n offline: string;\n oof: string;\n background: string;\n };\n\n /**\n * Presence of the person to display - will not display presence if undefined.\n * @defaultvalue PersonaPresence.none\n */\n presence?: PersonaPresence;\n\n /**\n * Presence title to be shown as a tooltip on hover over the presence icon.\n */\n presenceTitle?: string;\n\n /**\n * This flag can be used to signal the persona is out of office.\n * This will change the way the presence icon looks for statuses that support dual-presence.\n */\n isOutOfOffice?: boolean;\n\n /**\n * Secondary text to display, usually the role of the user.\n */\n secondaryText?: string;\n\n /**\n * Controls whether clipped overflow text should render in a tooltip\n * @defaultvalue true\n */\n showOverflowTooltip?: boolean;\n\n /**\n * Tertiary text to display, usually the status of the user.\n * The tertiary text will only be shown when using size72 or size100.\n */\n tertiaryText?: string;\n\n /**\n * Optional text to display, usually a custom message set. The optional text will only be shown when using size100.\n */\n optionalText?: string;\n\n /**\n * Whether to not render persona details, and just render the persona image/initials.\n */\n hidePersonaDetails?: boolean;\n\n /*\n * If true, show the secondary text line regardless of the size of the persona\n */\n showSecondaryText?: boolean;\n\n /**\n * If true, show the special coin for unknown persona.\n * It has '?' in place of initials, with static font and background colors\n */\n showUnknownPersonaCoin?: boolean;\n\n /**\n * If true renders the initials while the image is loading.\n * This only applies when an imageUrl is provided.\n * @defaultvalue false\n */\n showInitialsUntilImageLoads?: boolean;\n\n /**\n * Optional custom persona coin size in pixel.\n */\n coinSize?: number;\n\n /**\n * Optional HTML element props for Persona coin.\n */\n coinProps?: IPersonaCoinProps;\n\n /**\n * Theme provided by High-Order Component.\n */\n theme?: ITheme;\n\n /**\n * Primary text to display, usually the name of the person.\n * @deprecated Use `text` instead.\n */\n primaryText?: string;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaProps extends IPersonaSharedProps {\n /**\n * Optional callback to access the IPersona interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Additional CSS class(es) to apply to the Persona\n */\n className?: string;\n\n /**\n * Call to provide customized styling that will layer on top of variant rules\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Optional custom renderer for the primary text.\n */\n onRenderPrimaryText?: IRenderFunction;\n\n /**\n * Optional custom renderer for the secondary text.\n */\n onRenderSecondaryText?: IRenderFunction;\n\n /**\n * Optional custom renderer for the tertiary text.\n */\n onRenderTertiaryText?: IRenderFunction;\n\n /**\n * Optional custom renderer for the optional text.\n */\n onRenderOptionalText?: IRenderFunction;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaStyleProps {\n /**\n * Theme provided by High-Order Component.\n */\n theme: ITheme;\n\n /**\n * Custom class name.\n */\n className?: string;\n\n /**\n * Optional custom persona coin size in pixel.\n */\n coinSize?: number;\n\n /**\n * Decides the size of the control.\n * @defaultvalue PersonaSize.size48\n */\n size?: PersonaSize;\n\n /**\n * Presence of the person to display - will not display presence if undefined.\n * @defaultvalue PersonaPresence.none\n */\n presence?: PersonaPresence;\n\n /*\n * If true, show the secondary text line regardless of the size of the persona\n */\n showSecondaryText?: boolean;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaStyles {\n root: IStyle;\n details: IStyle;\n primaryText: IStyle;\n secondaryText: IStyle;\n tertiaryText: IStyle;\n optionalText: IStyle;\n textContent: IStyle;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaCoinProps extends IPersonaSharedProps {\n /**\n * Gets the component ref.\n */\n componentRef?: IRefObject<{}>;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Additional css class to apply to the PersonaCoin\n * @defaultvalue undefined\n */\n className?: string;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaCoinStyleProps {\n /**\n * Theme provided by High-Order Component.\n */\n theme: ITheme;\n\n /**\n * Custom class name.\n */\n className?: string;\n\n /**\n * Decides the size of the control.\n * @defaultvalue PersonaSize.size48\n */\n size?: PersonaSize;\n\n /**\n * Optional custom persona coin size in pixel.\n */\n coinSize?: number;\n\n /**\n * Decides whether to display coin for unknown persona\n */\n showUnknownPersonaCoin?: boolean;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaCoinStyles {\n coin: IStyle;\n imageArea: IStyle;\n image: IStyle;\n initials: IStyle;\n size10WithoutPresenceIcon: IStyle;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaPresenceProps extends IPersonaSharedProps {\n /**\n * Gets the component ref.\n */\n componentRef?: IRefObject<{}>;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules\n */\n styles?: IStyleFunctionOrObject;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport type IPersonaPresenceStyleProps = Required> &\n Pick &\n Pick;\n\n/**\n * {@docCategory Persona}\n */\nexport interface IPersonaPresenceStyles {\n presence: IStyle;\n presenceIcon: IStyle;\n}\n\n/**\n * {@docCategory Persona}\n */\nexport enum PersonaSize {\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size8` instead.\n */\n tiny = 0,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size24` instead.\n */\n extraExtraSmall = 1,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size32` instead.\n */\n extraSmall = 2,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size40` instead.\n */\n small = 3,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size48` instead.\n */\n regular = 4,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size72` instead.\n */\n large = 5,\n\n /**\n * Deprecated in favor of standardized numeric sizing.\n * @deprecated Use `size100` instead.\n */\n extraLarge = 6,\n\n /**\n * No `PersonaCoin` is rendered.\n */\n size8 = 17,\n\n /**\n * No `PersonaCoin` is rendered. Deprecated to align with design specifications.\n * @deprecated Use `size8` instead.\n */\n size10 = 9,\n\n /**\n * Renders a 16px `PersonaCoin`.\n * @deprecated Deprecated due to not being in the design specification.\n */\n size16 = 8,\n\n /**\n * Renders a 24px `PersonaCoin`.\n */\n size24 = 10,\n\n /**\n * Renders a 28px `PersonaCoin`.\n * @deprecated Deprecated due to not being in the design specification.\n */\n size28 = 7,\n\n /**\n * Renders a 32px `PersonaCoin`.\n */\n size32 = 11,\n\n /**\n * Renders a 40px `PersonaCoin`.\n */\n size40 = 12,\n\n /**\n * Renders a 48px `PersonaCoin`.\n */\n size48 = 13,\n\n /**\n * Renders a 56px `PersonaCoin`.\n */\n size56 = 16,\n\n /**\n * Renders a 72px `PersonaCoin`.\n */\n size72 = 14,\n\n /**\n * Renders a 100px `PersonaCoin`.\n */\n size100 = 15,\n\n /**\n * Renders a 120px `PersonaCoin`.\n */\n size120 = 18,\n}\n\n/**\n * {@docCategory Persona}\n */\nexport enum PersonaPresence {\n none = 0,\n offline = 1,\n online = 2,\n away = 3,\n dnd = 4,\n blocked = 5,\n busy = 6,\n}\n\n/**\n * {@docCategory Persona}\n */\nexport enum PersonaInitialsColor {\n lightBlue = 0,\n blue = 1,\n darkBlue = 2,\n teal = 3,\n lightGreen = 4,\n green = 5,\n darkGreen = 6,\n lightPink = 7,\n pink = 8,\n magenta = 9,\n purple = 10,\n /**\n * @deprecated `black` is a color that can result in offensive persona coins with some initials combinations,\n * so it can only be set with overrides. Will be removed in a future major release.\n */\n black = 11,\n orange = 12,\n /**\n * @deprecated `red` is a color that often has a special meaning, so it is considered a reserved color and\n * can only be set with overrides. Will be removed in a future major release.\n */\n red = 13,\n darkRed = 14,\n /**\n * Transparent is not intended to be used with typical initials due to accessibility issues.\n * Its primary use is for overflow buttons, so it is considered a reserved color and can only be set with overrides.\n */\n transparent = 15,\n violet = 16,\n lightRed = 17,\n gold = 18,\n burgundy = 19,\n warmGray = 20,\n coolGray = 21,\n /**\n * `gray` is a color that can result in offensive persona coins with some initials combinations,\n * so it can only be set with overrides.\n */\n gray = 22,\n cyan = 23,\n rust = 24,\n}\n","import * as React from 'react';\nimport { classNamesFunction } from '../../../Utilities';\nimport { Icon } from '../../../Icon';\nimport { PersonaPresence as PersonaPresenceEnum, PersonaSize } from '../Persona.types';\nimport { sizeBoolean } from '../PersonaConsts';\nimport { useMergedRefs } from '@fluentui/react-hooks';\nimport type { IPersonaPresenceProps, IPersonaPresenceStyleProps, IPersonaPresenceStyles } from '../Persona.types';\n\nconst coinSizeFontScaleFactor = 6;\nconst coinSizePresenceScaleFactor = 3;\nconst presenceMaxSize = 40;\nconst presenceFontMaxSize = 20;\n\nconst getClassNames = classNamesFunction({\n // There can be many PersonaPresence rendered with different sizes.\n // Therefore setting a larger cache size.\n cacheSize: 100,\n});\n\n/**\n * PersonaPresence with no default styles.\n * [Use the `getStyles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling)\n */\nexport const PersonaPresenceBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IPersonaPresenceProps\n>((props, forwardedRef) => {\n const {\n coinSize,\n isOutOfOffice,\n styles, // Use getStyles from props.\n presence,\n theme,\n presenceTitle,\n presenceColors,\n } = props;\n\n const rootRef = React.useRef(null);\n const mergedRootRef = useMergedRefs(forwardedRef, rootRef);\n\n const size = sizeBoolean(props.size as PersonaSize);\n\n // Render Presence Icon if Persona is above size 32.\n const renderIcon =\n !(size.isSize8 || size.isSize10 || size.isSize16 || size.isSize24 || size.isSize28 || size.isSize32) &&\n (coinSize ? coinSize > 32 : true);\n\n const presenceHeightWidth: string = coinSize\n ? coinSize / coinSizePresenceScaleFactor < presenceMaxSize\n ? coinSize / coinSizePresenceScaleFactor + 'px'\n : presenceMaxSize + 'px'\n : '';\n const presenceFontSize: string = coinSize\n ? coinSize / coinSizeFontScaleFactor < presenceFontMaxSize\n ? coinSize / coinSizeFontScaleFactor + 'px'\n : presenceFontMaxSize + 'px'\n : '';\n const coinSizeWithPresenceIconStyle = coinSize\n ? { fontSize: presenceFontSize, lineHeight: presenceHeightWidth }\n : undefined;\n const coinSizeWithPresenceStyle = coinSize ? { width: presenceHeightWidth, height: presenceHeightWidth } : undefined;\n\n // Use getStyles from props, or fall back to getStyles from styles file.\n const classNames = getClassNames(styles, {\n theme: theme!,\n presence,\n size: props.size,\n isOutOfOffice,\n presenceColors,\n });\n\n if (presence === PersonaPresenceEnum.none) {\n return null;\n }\n\n return (\n \n {renderIcon && (\n \n )}\n \n );\n});\nPersonaPresenceBase.displayName = 'PersonaPresenceBase';\n\nfunction determineIcon(\n presence: PersonaPresenceEnum | undefined,\n isOutOfOffice: boolean | undefined,\n): string | undefined {\n if (!presence) {\n return undefined;\n }\n\n const oofIcon = 'SkypeArrow';\n\n switch (PersonaPresenceEnum[presence]) {\n case 'online':\n return 'SkypeCheck';\n case 'away':\n return isOutOfOffice ? oofIcon : 'SkypeClock';\n case 'dnd':\n return 'SkypeMinus';\n case 'offline':\n return isOutOfOffice ? oofIcon : '';\n }\n\n return '';\n}\n","import { PersonaPresence, PersonaSize } from '../Persona.types';\nimport { HighContrastSelector, getGlobalClassNames, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { personaPresenceSize, presenceBoolean, sizeBoolean } from '../PersonaConsts';\nimport type { IPersonaPresenceStyleProps, IPersonaPresenceStyles } from '../Persona.types';\nimport type { IRawStyle } from '../../../Styling';\n\nconst GlobalClassNames = {\n presence: 'ms-Persona-presence',\n presenceIcon: 'ms-Persona-presenceIcon',\n};\n\nexport const getStyles = (props: IPersonaPresenceStyleProps): IPersonaPresenceStyles => {\n const { theme, presenceColors } = props;\n const { semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const size = sizeBoolean(props.size as PersonaSize);\n const presence = presenceBoolean(props.presence as PersonaPresence);\n\n // Presence colors\n const presenceColorAvailable = (presenceColors && presenceColors.available) || '#6BB700';\n const presenceColorAway = (presenceColors && presenceColors.away) || '#FFAA44';\n const presenceColorBusy = (presenceColors && presenceColors.busy) || '#C43148';\n const presenceColorDnd = (presenceColors && presenceColors.dnd) || '#C50F1F';\n const presenceColorOffline = (presenceColors && presenceColors.offline) || '#8A8886';\n const presenceColorOof = (presenceColors && presenceColors.oof) || '#B4009E';\n const presenceColorBackground = (presenceColors && presenceColors.background) || semanticColors.bodyBackground;\n\n const isOpenCirclePresence =\n presence.isOffline ||\n (props.isOutOfOffice && (presence.isAvailable || presence.isBusy || presence.isAway || presence.isDoNotDisturb));\n\n const borderSizeForSmallPersonas = '1px';\n const borderSizeForLargePersonas = '2px';\n\n const borderSize = size.isSize72 || size.isSize100 ? borderSizeForLargePersonas : borderSizeForSmallPersonas;\n\n return {\n presence: [\n classNames.presence,\n {\n position: 'absolute',\n height: personaPresenceSize.size12,\n width: personaPresenceSize.size12,\n borderRadius: '50%',\n top: 'auto',\n right: '-2px',\n bottom: '-2px',\n border: `2px solid ${presenceColorBackground}`,\n textAlign: 'center',\n boxSizing: 'content-box',\n backgroundClip: 'border-box',\n ...getHighContrastNoAdjustStyle(),\n\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Window',\n backgroundColor: 'WindowText',\n },\n },\n },\n\n (size.isSize8 || size.isSize10) && {\n right: 'auto',\n top: '7px',\n left: 0,\n border: 0,\n\n selectors: {\n [HighContrastSelector]: {\n top: '9px',\n border: '1px solid WindowText',\n },\n },\n },\n\n (size.isSize8 || size.isSize10 || size.isSize24 || size.isSize28 || size.isSize32) &&\n makeSizeStyle(personaPresenceSize.size8),\n\n (size.isSize40 || size.isSize48) && makeSizeStyle(personaPresenceSize.size12),\n\n size.isSize16 && {\n height: personaPresenceSize.size6,\n width: personaPresenceSize.size6,\n borderWidth: '1.5px',\n },\n\n size.isSize56 && makeSizeStyle(personaPresenceSize.size16),\n\n size.isSize72 && makeSizeStyle(personaPresenceSize.size20),\n\n size.isSize100 && makeSizeStyle(personaPresenceSize.size28),\n\n size.isSize120 && makeSizeStyle(personaPresenceSize.size32),\n\n presence.isAvailable && {\n backgroundColor: presenceColorAvailable,\n\n selectors: {\n [HighContrastSelector]: backgroundColor('Highlight'),\n },\n },\n\n presence.isAway && backgroundColor(presenceColorAway),\n\n presence.isBlocked && [\n {\n selectors: {\n // Only show :after at larger sizes\n ':after':\n size.isSize40 || size.isSize48 || size.isSize72 || size.isSize100\n ? {\n content: '\"\"',\n width: '100%',\n height: borderSize,\n backgroundColor: presenceColorBusy,\n transform: 'translateY(-50%) rotate(-45deg)',\n position: 'absolute',\n top: '50%',\n left: 0,\n }\n : undefined,\n\n [HighContrastSelector]: {\n selectors: {\n ':after': {\n width: `calc(100% - 4px)`,\n left: '2px',\n backgroundColor: 'Window',\n },\n },\n },\n },\n },\n ],\n\n presence.isBusy && backgroundColor(presenceColorBusy),\n\n presence.isDoNotDisturb && backgroundColor(presenceColorDnd),\n\n presence.isOffline && backgroundColor(presenceColorOffline),\n\n (isOpenCirclePresence || presence.isBlocked) && [\n {\n backgroundColor: presenceColorBackground,\n\n selectors: {\n ':before': {\n content: '\"\"',\n width: '100%',\n height: '100%',\n position: 'absolute',\n top: 0,\n left: 0,\n border: `${borderSize} solid ${presenceColorBusy}`,\n borderRadius: '50%',\n boxSizing: 'border-box',\n },\n [HighContrastSelector]: {\n backgroundColor: 'WindowText',\n\n selectors: {\n ':before': {\n width: `calc(100% - 2px)`,\n height: `calc(100% - 2px)`,\n top: '1px',\n left: '1px',\n borderColor: 'Window',\n },\n },\n },\n },\n },\n ],\n\n isOpenCirclePresence && presence.isAvailable && makeBeforeBorderStyle(borderSize, presenceColorAvailable),\n\n isOpenCirclePresence && presence.isBusy && makeBeforeBorderStyle(borderSize, presenceColorBusy),\n\n isOpenCirclePresence && presence.isAway && makeBeforeBorderStyle(borderSize, presenceColorOof),\n\n isOpenCirclePresence && presence.isDoNotDisturb && makeBeforeBorderStyle(borderSize, presenceColorDnd),\n\n isOpenCirclePresence && presence.isOffline && makeBeforeBorderStyle(borderSize, presenceColorOffline),\n\n isOpenCirclePresence &&\n presence.isOffline &&\n props.isOutOfOffice &&\n makeBeforeBorderStyle(borderSize, presenceColorOof),\n ],\n\n presenceIcon: [\n classNames.presenceIcon,\n {\n color: presenceColorBackground,\n fontSize: '6px', // exception case where we don't have an available theme.fonts variable to match it.\n lineHeight: personaPresenceSize.size12,\n verticalAlign: 'top',\n\n selectors: {\n [HighContrastSelector]: {\n color: 'Window',\n },\n },\n },\n\n size.isSize56 && {\n fontSize: '8px', // exception case where we don't have an available theme.fonts variable to match it.\n lineHeight: personaPresenceSize.size16,\n },\n\n size.isSize72 && {\n fontSize: fonts.small.fontSize,\n lineHeight: personaPresenceSize.size20,\n },\n\n size.isSize100 && {\n fontSize: fonts.medium.fontSize,\n lineHeight: personaPresenceSize.size28,\n },\n\n size.isSize120 && {\n fontSize: fonts.medium.fontSize,\n lineHeight: personaPresenceSize.size32,\n },\n\n presence.isAway && {\n position: 'relative',\n left: isOpenCirclePresence ? undefined : '1px',\n },\n\n isOpenCirclePresence && presence.isAvailable && makeOpenCircleIconStyle(presenceColorAvailable),\n\n isOpenCirclePresence && presence.isBusy && makeOpenCircleIconStyle(presenceColorBusy),\n\n isOpenCirclePresence && presence.isAway && makeOpenCircleIconStyle(presenceColorOof),\n\n isOpenCirclePresence && presence.isDoNotDisturb && makeOpenCircleIconStyle(presenceColorDnd),\n\n isOpenCirclePresence && presence.isOffline && makeOpenCircleIconStyle(presenceColorOffline),\n\n isOpenCirclePresence && presence.isOffline && props.isOutOfOffice && makeOpenCircleIconStyle(presenceColorOof),\n ],\n };\n};\n\nfunction makeOpenCircleIconStyle(color: string): IRawStyle {\n return {\n color,\n borderColor: color,\n };\n}\n\nfunction makeBeforeBorderStyle(borderSize: string, color: string): IRawStyle {\n return {\n selectors: {\n ':before': {\n border: `${borderSize} solid ${color}`,\n },\n },\n };\n}\n\nfunction makeSizeStyle(size: string): IRawStyle {\n return {\n height: size,\n width: size,\n };\n}\n\nfunction backgroundColor(color: string): IRawStyle {\n return { backgroundColor: color };\n}\n","import * as React from 'react';\nimport { styled } from '../../../Utilities';\nimport { PersonaPresenceBase } from './PersonaPresence.base';\nimport { getStyles } from './PersonaPresence.styles';\nimport type { IPersonaPresenceProps, IPersonaPresenceStyleProps, IPersonaPresenceStyles } from '../Persona.types';\n\n/**\n * PersonaPresence is used to render an individual's presence.\n */\nexport const PersonaPresence: React.FunctionComponent = styled<\n IPersonaPresenceProps,\n IPersonaPresenceStyleProps,\n IPersonaPresenceStyles\n>(PersonaPresenceBase, getStyles, undefined, { scope: 'PersonaPresence' });\n","import { PersonaInitialsColor } from './Persona.types';\nimport type { IPersonaProps } from './Persona.types';\n\n/**\n * Following colors are considered reserved and can only be set with overrides, so they are excluded from this set:\n * - `gray` and `black` can result in offensive persona coins with some initials combinations\n * - `red` often has a special meaning\n * - `transparent` is not intended to be used with typical initials due to accessibility issues;\n * its primary use is for Facepile overflow buttons.\n */\nconst COLOR_SWATCHES_LOOKUP: PersonaInitialsColor[] = [\n PersonaInitialsColor.lightBlue,\n PersonaInitialsColor.blue,\n PersonaInitialsColor.darkBlue,\n PersonaInitialsColor.teal,\n PersonaInitialsColor.green,\n PersonaInitialsColor.darkGreen,\n PersonaInitialsColor.lightPink,\n PersonaInitialsColor.pink,\n PersonaInitialsColor.magenta,\n PersonaInitialsColor.purple,\n PersonaInitialsColor.orange,\n PersonaInitialsColor.lightRed,\n PersonaInitialsColor.darkRed,\n PersonaInitialsColor.violet,\n PersonaInitialsColor.gold,\n PersonaInitialsColor.burgundy,\n PersonaInitialsColor.warmGray,\n PersonaInitialsColor.cyan,\n PersonaInitialsColor.rust,\n PersonaInitialsColor.coolGray,\n];\n\nconst COLOR_SWATCHES_NUM_ENTRIES = COLOR_SWATCHES_LOOKUP.length;\n\nfunction getInitialsColorFromName(displayName: string | undefined): PersonaInitialsColor {\n let color = PersonaInitialsColor.blue;\n if (!displayName) {\n return color;\n }\n\n let hashCode = 0;\n for (let iLen: number = displayName.length - 1; iLen >= 0; iLen--) {\n const ch: number = displayName.charCodeAt(iLen);\n const shift: number = iLen % 8;\n // eslint-disable-next-line no-bitwise\n hashCode ^= (ch << shift) + (ch >> (8 - shift));\n }\n\n color = COLOR_SWATCHES_LOOKUP[hashCode % COLOR_SWATCHES_NUM_ENTRIES];\n\n return color;\n}\n\nfunction personaInitialsColorToHexCode(personaInitialsColor: PersonaInitialsColor): string {\n switch (personaInitialsColor) {\n case PersonaInitialsColor.lightBlue:\n return '#4F6BED';\n case PersonaInitialsColor.blue:\n return '#0078D4';\n case PersonaInitialsColor.darkBlue:\n return '#004E8C';\n case PersonaInitialsColor.teal:\n return '#038387';\n case PersonaInitialsColor.lightGreen:\n case PersonaInitialsColor.green:\n return '#498205';\n case PersonaInitialsColor.darkGreen:\n return '#0B6A0B';\n case PersonaInitialsColor.lightPink:\n return '#C239B3';\n case PersonaInitialsColor.pink:\n return '#E3008C';\n case PersonaInitialsColor.magenta:\n return '#881798';\n case PersonaInitialsColor.purple:\n return '#5C2E91';\n case PersonaInitialsColor.orange:\n return '#CA5010';\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n case PersonaInitialsColor.red:\n return '#EE1111';\n case PersonaInitialsColor.lightRed:\n return '#D13438';\n case PersonaInitialsColor.darkRed:\n return '#A4262C';\n case PersonaInitialsColor.transparent:\n return 'transparent';\n case PersonaInitialsColor.violet:\n return '#8764B8';\n case PersonaInitialsColor.gold:\n return '#986F0B';\n case PersonaInitialsColor.burgundy:\n return '#750B1C';\n case PersonaInitialsColor.warmGray:\n return '#7A7574';\n case PersonaInitialsColor.cyan:\n return '#005B70';\n case PersonaInitialsColor.rust:\n return '#8E562E';\n case PersonaInitialsColor.coolGray:\n return '#69797E';\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n case PersonaInitialsColor.black:\n return '#1D1D1D';\n case PersonaInitialsColor.gray:\n return '#393939';\n }\n}\n\n/** @deprecated Use `getPersonaInitialsColor` */\nexport function initialsColorPropToColorCode(props: IPersonaProps): string {\n return getPersonaInitialsColor(props);\n}\n\n/**\n * Gets the hex color string (prefixed with #) for the given persona props.\n * This is the logic used internally by the Persona control.\n * @param props - Current persona props\n * @returns Hex color string prefixed with #\n */\nexport function getPersonaInitialsColor(props: Pick): string {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const { primaryText, text } = props;\n let { initialsColor } = props;\n let initialsColorCode: string;\n if (typeof initialsColor === 'string') {\n initialsColorCode = initialsColor;\n } else {\n initialsColor = initialsColor !== undefined ? initialsColor : getInitialsColorFromName(text || primaryText);\n initialsColorCode = personaInitialsColorToHexCode(initialsColor);\n }\n\n return initialsColorCode;\n}\n","import * as React from 'react';\nimport {\n classNamesFunction,\n divProperties,\n memoizeFunction,\n getInitials,\n getNativeProps,\n getRTL,\n getPropsWithDefaults,\n} from '../../../Utilities';\nimport { mergeStyles } from '../../../Styling';\nimport { PersonaPresence } from '../PersonaPresence/index';\nimport { Icon } from '../../../Icon';\nimport { Image, ImageFit, ImageLoadState } from '../../../Image';\nimport { PersonaInitialsColor, PersonaPresence as PersonaPresenceEnum, PersonaSize } from '../Persona.types';\nimport { getPersonaInitialsColor } from '../PersonaInitialsColor';\nimport { sizeToPixels } from '../PersonaConsts';\nimport { useWarnings } from '@fluentui/react-hooks';\nimport type {\n IPersonaCoinProps,\n IPersonaCoinStyleProps,\n IPersonaCoinStyles,\n IPersonaPresenceProps,\n} from '../Persona.types';\n\nconst getClassNames = classNamesFunction({\n // There can be many PersonaCoin rendered with different sizes.\n // Therefore setting a larger cache size.\n cacheSize: 100,\n});\n\nconst getInitialsStyles = memoizeFunction(\n (\n className: string,\n initialsColor: PersonaInitialsColor | string | undefined,\n initialsTextColor: string | undefined,\n text: string | undefined,\n primaryText: string | undefined,\n showUnknownPersonaCoin: boolean | undefined,\n ) =>\n mergeStyles(\n className,\n !showUnknownPersonaCoin && {\n backgroundColor: getPersonaInitialsColor({ text, initialsColor, primaryText }),\n color: initialsTextColor,\n },\n ),\n);\n\nconst DEFAULT_PROPS = {\n size: PersonaSize.size48,\n presence: PersonaPresenceEnum.none,\n imageAlt: '',\n};\n\nfunction useDebugWarnings(props: IPersonaCoinProps) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: 'PersonaCoin',\n props,\n deprecations: { primaryText: 'text' },\n });\n }\n}\n\nfunction useImageLoadState({ onPhotoLoadingStateChange, imageUrl }: IPersonaCoinProps) {\n const [imageLoadState, setImageLoadstate] = React.useState(ImageLoadState.notLoaded);\n\n React.useEffect(() => {\n setImageLoadstate(ImageLoadState.notLoaded);\n }, [imageUrl]);\n\n const onLoadingStateChange = (loadState: ImageLoadState) => {\n setImageLoadstate(loadState);\n\n onPhotoLoadingStateChange?.(loadState);\n };\n\n return [imageLoadState, onLoadingStateChange] as const;\n}\n\n/**\n * PersonaCoin with no default styles.\n * [Use the `getStyles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Styling)\n */\nexport const PersonaCoinBase: React.FunctionComponent = React.forwardRef<\n HTMLDivElement,\n IPersonaCoinProps\n>((propsWithoutDefaults, forwardedRef) => {\n const props = getPropsWithDefaults(DEFAULT_PROPS, propsWithoutDefaults);\n\n useDebugWarnings(props);\n\n const [imageLoadState, onLoadingStateChange] = useImageLoadState(props);\n\n const renderCoin = getCoinRenderer(onLoadingStateChange);\n\n const {\n className,\n coinProps,\n showUnknownPersonaCoin,\n coinSize,\n styles,\n imageUrl,\n initialsColor,\n initialsTextColor,\n isOutOfOffice,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onRenderCoin = renderCoin,\n\n onRenderPersonaCoin = onRenderCoin,\n onRenderInitials = renderPersonaCoinInitials,\n presence,\n presenceTitle,\n presenceColors,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n primaryText,\n showInitialsUntilImageLoads,\n text,\n theme,\n size,\n } = props;\n\n const divProps = getNativeProps>(props, divProperties);\n const divCoinProps = getNativeProps>(coinProps || {}, divProperties);\n const coinSizeStyle = coinSize ? { width: coinSize, height: coinSize } : undefined;\n const hideImage = showUnknownPersonaCoin;\n\n const personaPresenceProps: IPersonaPresenceProps = {\n coinSize,\n isOutOfOffice,\n presence,\n presenceTitle,\n presenceColors,\n size,\n theme,\n };\n\n // Use getStyles from props, or fall back to getStyles from styles file.\n const classNames = getClassNames(styles, {\n theme: theme!,\n className: coinProps && coinProps.className ? coinProps.className : className,\n size,\n coinSize,\n showUnknownPersonaCoin,\n });\n\n const shouldRenderInitials = Boolean(\n imageLoadState !== ImageLoadState.loaded &&\n ((showInitialsUntilImageLoads && imageUrl) || !imageUrl || imageLoadState === ImageLoadState.error || hideImage),\n );\n\n return (\n
    \n {\n // Render PersonaCoin if size is not size8. size10 and tiny need to removed after a deprecation cleanup.\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n size !== PersonaSize.size8 && size !== PersonaSize.size10 && size !== PersonaSize.tiny ? (\n
    \n {shouldRenderInitials && (\n \n {onRenderInitials(props, renderPersonaCoinInitials)}\n
    \n )}\n {!hideImage && onRenderPersonaCoin(props, renderCoin)}\n \n
    \n ) : // Otherwise, render just PersonaPresence.\n props.presence ? (\n \n ) : (\n // Just render Contact Icon if there isn't a Presence prop.\n \n )\n }\n {props.children}\n \n );\n});\nPersonaCoinBase.displayName = 'PersonaCoinBase';\n\nconst getCoinRenderer =\n (onLoadingStateChange: (loadState: ImageLoadState) => void) =>\n ({\n coinSize,\n styles,\n imageUrl,\n imageAlt,\n imageShouldFadeIn,\n imageShouldStartVisible,\n theme,\n showUnknownPersonaCoin,\n size = DEFAULT_PROPS.size,\n }: IPersonaCoinProps): JSX.Element | null => {\n // Render the Image component only if an image URL is provided\n if (!imageUrl) {\n return null;\n }\n const classNames = getClassNames(styles, {\n theme: theme!,\n size,\n showUnknownPersonaCoin,\n });\n const dimension = coinSize || sizeToPixels[size];\n return (\n \n );\n };\n\nconst renderPersonaCoinInitials = ({\n imageInitials,\n allowPhoneInitials,\n showUnknownPersonaCoin,\n text,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n primaryText,\n theme,\n}: IPersonaCoinProps): JSX.Element => {\n if (showUnknownPersonaCoin) {\n return ;\n }\n\n const isRTL = getRTL(theme);\n\n imageInitials = imageInitials || getInitials(text || primaryText || '', isRTL, allowPhoneInitials);\n\n return imageInitials !== '' ? {imageInitials} : ;\n};\n","import { PersonaSize } from '../Persona.types';\nimport { HighContrastSelector, FontWeights, getGlobalClassNames, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { sizeBoolean, sizeToPixels } from '../PersonaConsts';\nimport type { IPersonaCoinStyleProps, IPersonaCoinStyles } from '../Persona.types';\n\nconst GlobalClassNames = {\n coin: 'ms-Persona-coin',\n imageArea: 'ms-Persona-imageArea',\n image: 'ms-Persona-image',\n initials: 'ms-Persona-initials',\n size8: 'ms-Persona--size8',\n size10: 'ms-Persona--size10',\n size16: 'ms-Persona--size16',\n size24: 'ms-Persona--size24',\n size28: 'ms-Persona--size28',\n size32: 'ms-Persona--size32',\n size40: 'ms-Persona--size40',\n size48: 'ms-Persona--size48',\n size56: 'ms-Persona--size56',\n size72: 'ms-Persona--size72',\n size100: 'ms-Persona--size100',\n size120: 'ms-Persona--size120',\n};\n\nexport const getStyles = (props: IPersonaCoinStyleProps): IPersonaCoinStyles => {\n const { className, theme, coinSize } = props;\n\n const { palette, fonts } = theme;\n\n const size = sizeBoolean(props.size as PersonaSize);\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n // Static colors used when displaying 'unknown persona' coin\n const unknownPersonaBackgroundColor = 'rgb(234, 234, 234)';\n const unknownPersonaFontColor = 'rgb(168, 0, 0)';\n\n const dimension = coinSize || (props.size && sizeToPixels[props.size]) || 48;\n\n return {\n coin: [\n classNames.coin,\n fonts.medium,\n size.isSize8 && classNames.size8,\n size.isSize10 && classNames.size10,\n size.isSize16 && classNames.size16,\n size.isSize24 && classNames.size24,\n size.isSize28 && classNames.size28,\n size.isSize32 && classNames.size32,\n size.isSize40 && classNames.size40,\n size.isSize48 && classNames.size48,\n size.isSize56 && classNames.size56,\n size.isSize72 && classNames.size72,\n size.isSize100 && classNames.size100,\n size.isSize120 && classNames.size120,\n className,\n ],\n\n size10WithoutPresenceIcon: {\n fontSize: fonts.xSmall.fontSize,\n position: 'absolute',\n top: '5px',\n right: 'auto',\n left: 0,\n },\n\n imageArea: [\n classNames.imageArea,\n {\n position: 'relative',\n textAlign: 'center',\n flex: '0 0 auto',\n height: dimension,\n width: dimension,\n },\n\n dimension <= 10 && {\n overflow: 'visible',\n background: 'transparent',\n height: 0,\n width: 0,\n },\n ],\n\n image: [\n classNames.image,\n {\n marginRight: '10px',\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n border: 0,\n borderRadius: '50%',\n perspective: '1px',\n },\n\n dimension <= 10 && {\n overflow: 'visible',\n background: 'transparent',\n height: 0,\n width: 0,\n },\n\n dimension > 10 && {\n height: dimension,\n width: dimension,\n },\n ],\n\n initials: [\n classNames.initials,\n {\n borderRadius: '50%',\n color: props.showUnknownPersonaCoin ? unknownPersonaFontColor : palette.white,\n fontSize: fonts.large.fontSize,\n fontWeight: FontWeights.semibold,\n // copying the logic for the dimensions; defaulted to 46 for size48\n lineHeight: dimension === 48 ? 46 : dimension,\n height: dimension,\n\n selectors: {\n [HighContrastSelector]: {\n border: '1px solid WindowText',\n ...getHighContrastNoAdjustStyle(),\n color: 'WindowText',\n boxSizing: 'border-box',\n backgroundColor: 'Window !important',\n },\n i: {\n fontWeight: FontWeights.semibold,\n },\n },\n },\n\n props.showUnknownPersonaCoin && {\n backgroundColor: unknownPersonaBackgroundColor,\n },\n\n dimension < 32 && {\n fontSize: fonts.xSmall.fontSize,\n },\n\n dimension >= 32 &&\n dimension < 40 && {\n fontSize: fonts.medium.fontSize,\n },\n\n dimension >= 40 &&\n dimension < 56 && {\n fontSize: fonts.mediumPlus.fontSize,\n },\n\n dimension >= 56 &&\n dimension < 72 && {\n fontSize: fonts.xLarge.fontSize,\n },\n\n dimension >= 72 &&\n dimension < 100 && {\n fontSize: fonts.xxLarge.fontSize,\n },\n\n dimension >= 100 && {\n fontSize: fonts.superLarge.fontSize,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../../Utilities';\nimport { PersonaCoinBase } from './PersonaCoin.base';\nimport { getStyles } from './PersonaCoin.styles';\nimport type { IPersonaCoinProps, IPersonaCoinStyleProps, IPersonaCoinStyles } from '../Persona.types';\n\n/**\n * PersonaCoin is used to render an individual's avatar and presence.\n */\nexport const PersonaCoin: React.FunctionComponent = styled<\n IPersonaCoinProps,\n IPersonaCoinStyleProps,\n IPersonaCoinStyles\n>(PersonaCoinBase, getStyles, undefined, {\n scope: 'PersonaCoin',\n});\n","import { PersonaPresence, PersonaSize } from './Persona.types';\n\n// Persona Sizes\nexport namespace personaSize {\n export const size8 = '20px';\n // TODO: remove in a future major release as it's deprecated.\n export const size10 = '20px';\n // TODO: remove in a future major release as it's deprecated.\n export const size16 = '16px';\n export const size24 = '24px';\n // TODO: remove in a future major release as it's deprecated.\n export const size28 = '28px';\n export const size32 = '32px';\n export const size40 = '40px';\n export const size48 = '48px';\n export const size56 = '56px';\n export const size72 = '72px';\n export const size100 = '100px';\n export const size120 = '120px';\n}\n\n// Persona Presence Sizes\nexport namespace personaPresenceSize {\n export const size6 = '6px';\n export const size8 = '8px';\n export const size12 = '12px';\n export const size16 = '16px';\n export const size20 = '20px';\n export const size28 = '28px';\n export const size32 = '32px';\n\n /**\n * @deprecated This is now unused\n */\n export const border = '2px';\n}\n\n// TODO: remove the deprecated parts in a future major release.\nexport const sizeBoolean = (size: PersonaSize) => ({\n isSize8: size === PersonaSize.size8,\n /* eslint-disable @typescript-eslint/no-deprecated */\n isSize10: size === PersonaSize.size10 || size === PersonaSize.tiny,\n isSize16: size === PersonaSize.size16,\n isSize24: size === PersonaSize.size24 || size === PersonaSize.extraExtraSmall,\n isSize28: size === PersonaSize.size28 || size === PersonaSize.extraSmall,\n isSize32: size === PersonaSize.size32,\n isSize40: size === PersonaSize.size40 || size === PersonaSize.small,\n isSize48: size === PersonaSize.size48 || size === PersonaSize.regular,\n isSize56: size === PersonaSize.size56,\n isSize72: size === PersonaSize.size72 || size === PersonaSize.large,\n isSize100: size === PersonaSize.size100 || size === PersonaSize.extraLarge,\n isSize120: size === PersonaSize.size120,\n});\n\nexport const sizeToPixels: { [key: number]: number } = {\n // Old deprecated sizes\n [PersonaSize.tiny]: 10,\n [PersonaSize.extraExtraSmall]: 24,\n [PersonaSize.extraSmall]: 28,\n [PersonaSize.small]: 40,\n [PersonaSize.regular]: 48,\n [PersonaSize.large]: 72,\n [PersonaSize.extraLarge]: 100,\n // New sizes\n [PersonaSize.size8]: 8,\n [PersonaSize.size10]: 10, // TODO: deprecated (not in the design specs)\n [PersonaSize.size16]: 16, // TODO: deprecated (not in the design specs)\n [PersonaSize.size24]: 24,\n [PersonaSize.size28]: 28, // TODO: deprecated (not in the design specs)\n /* eslint-enable @typescript-eslint/no-deprecated */\n [PersonaSize.size32]: 32,\n [PersonaSize.size40]: 40,\n [PersonaSize.size48]: 48,\n [PersonaSize.size56]: 56,\n [PersonaSize.size72]: 72,\n [PersonaSize.size100]: 100,\n [PersonaSize.size120]: 120,\n};\n\nexport const presenceBoolean = (presence: PersonaPresence) => ({\n isAvailable: presence === PersonaPresence.online,\n isAway: presence === PersonaPresence.away,\n isBlocked: presence === PersonaPresence.blocked,\n isBusy: presence === PersonaPresence.busy,\n isDoNotDisturb: presence === PersonaPresence.dnd,\n isOffline: presence === PersonaPresence.offline,\n});\n","import * as React from 'react';\nimport { useIsomorphicLayoutEffect, useRefEffect } from '@fluentui/react-hooks';\nimport { getWindow } from '@fluentui/utilities';\nimport { observeResize } from './observeResize';\nimport type { RefCallback } from '@fluentui/react-hooks';\n\n/**\n * Callback to notify the user that the items in the overflow have changed. This should ensure that the overflow menu\n * is visible, and contains all of the overflowing items.\n *\n * @param overflowIndex - The index of the first item in the overflow, or items.length if nothing is overflowing.\n * @param items - The list of all items in the container, and whether that particular item is in the overflow\n */\nexport type OverflowItemsChangedCallback = (\n overflowIndex: number,\n items: { ele: HTMLElement; isOverflowing: boolean }[],\n) => void;\n\n/** Parameters for {@see useOverflow} */\nexport type OverflowParams = {\n /** Callback to notify the user that the items in the overflow have changed. */\n onOverflowItemsChanged: OverflowItemsChangedCallback;\n\n /** True if the element containing overflowMenuButtonRef is in right-to-left order */\n rtl: boolean;\n\n /** Optional: Index of item that should never go into the overflow menu. */\n pinnedIndex?: number;\n};\n\n/** Return value for {@see useOverflow} */\nexport type OverflowRefs = {\n /** Set the overflow menu button's ref to this ref callback */\n menuButtonRef: RefCallback;\n};\n\n/**\n * Track whether any items don't fit within their container, and move them to the overflow menu.\n * Items are moved into the overflow menu from back to front, excluding pinned items.\n *\n * The overflow menu button must be the last sibling of all of the items that can be put into the overflow, and it\n * must be hooked up to the `setMenuButtonRef` setter function that's returned by `useOverflow`:\n * ```ts\n * const overflow = useOverflow(...);\n * ```\n * ```jsx\n * \n * // Index 0\n * // Index 1\n * ...\n * \n )}\n {(suffix !== undefined || this.props.onRenderSuffix) && (\n
    \n {onRenderSuffix(this.props, this._onRenderSuffix)}\n
    \n )}\n \n \n {this._isDescriptionAvailable && (\n \n {onRenderDescription(this.props, this._onRenderDescription)}\n {errorMessage && (\n
    \n {this._renderErrorMessage()}\n
    \n )}\n
    \n )}\n \n );\n }\n\n /**\n * Sets focus on the text field\n */\n public focus() {\n if (this._textElement.current) {\n this._textElement.current.focus();\n }\n }\n\n /**\n * Blurs the text field.\n */\n public blur() {\n if (this._textElement.current) {\n this._textElement.current.blur();\n }\n }\n\n /**\n * Selects the text field\n */\n public select() {\n if (this._textElement.current) {\n this._textElement.current.select();\n }\n }\n\n /**\n * Sets the selection start of the text field to a specified value\n */\n public setSelectionStart(value: number): void {\n if (this._textElement.current) {\n this._textElement.current.selectionStart = value;\n }\n }\n\n /**\n * Sets the selection end of the text field to a specified value\n */\n public setSelectionEnd(value: number): void {\n if (this._textElement.current) {\n this._textElement.current.selectionEnd = value;\n }\n }\n\n /**\n * Gets the selection start of the text field\n */\n public get selectionStart(): number | null {\n return this._textElement.current ? this._textElement.current.selectionStart : -1;\n }\n\n /**\n * Gets the selection end of the text field\n */\n public get selectionEnd(): number | null {\n return this._textElement.current ? this._textElement.current.selectionEnd : -1;\n }\n\n /**\n * Sets the start and end positions of a selection in a text field.\n * @param start - Index of the start of the selection.\n * @param end - Index of the end of the selection.\n */\n public setSelectionRange(start: number, end: number): void {\n if (this._textElement.current) {\n (this._textElement.current as HTMLInputElement).setSelectionRange(start, end);\n }\n }\n\n private _warnControlledUsage(prevProps?: ITextFieldProps): void {\n // Show warnings if props are being used in an invalid way\n warnControlledUsage({\n componentId: this._id,\n componentName: COMPONENT_NAME,\n props: this.props,\n oldProps: prevProps,\n valueProp: 'value',\n defaultValueProp: 'defaultValue',\n onChangeProp: 'onChange',\n readOnlyProp: 'readOnly',\n });\n\n if (this.props.value === null && !this._hasWarnedNullValue) {\n this._hasWarnedNullValue = true;\n warn(\n `Warning: 'value' prop on '${COMPONENT_NAME}' should not be null. Consider using an ` +\n 'empty string to clear the component or undefined to indicate an uncontrolled component.',\n );\n }\n }\n\n /** Returns `props.id` if available, or a fallback if not. */\n private get _id(): string {\n return this.props.id || this._fallbackId;\n }\n\n private get _isControlled(): boolean {\n return isControlled(this.props, 'value');\n }\n\n private _onFocus = (ev: React.FocusEvent): void => {\n if (this.props.onFocus) {\n this.props.onFocus(ev);\n }\n\n this.setState({ isFocused: true }, () => {\n if (this.props.validateOnFocusIn) {\n this._validate(this.value);\n }\n });\n };\n\n private _onBlur = (ev: React.FocusEvent): void => {\n if (this.props.onBlur) {\n this.props.onBlur(ev);\n }\n\n this.setState({ isFocused: false }, () => {\n if (this.props.validateOnFocusOut) {\n this._validate(this.value);\n }\n });\n };\n\n private _onRenderLabel = (props: ITextFieldProps): JSX.Element | null => {\n const { label, required } = props;\n // IProcessedStyleSet definition requires casting for what Label expects as its styles prop\n const labelStyles = this._classNames.subComponentStyles\n ? (this._classNames.subComponentStyles.label as IStyleFunctionOrObject)\n : undefined;\n\n if (label) {\n return (\n \n );\n }\n return null;\n };\n\n private _onRenderDescription = (props: ITextFieldProps): JSX.Element | null => {\n if (props.description) {\n return {props.description};\n }\n return null;\n };\n\n private _onRenderPrefix(props: ITextFieldProps): JSX.Element {\n const { prefix } = props;\n return {prefix};\n }\n\n private _onRenderSuffix(props: ITextFieldProps): JSX.Element {\n const { suffix } = props;\n return {suffix};\n }\n\n /**\n * Current error message from either `props.errorMessage` or the result of `props.onGetErrorMessage`.\n *\n * - If there is no validation error or we have not validated the input value, errorMessage is an empty string.\n * - If we have done the validation and there is validation error, errorMessage is the validation error message.\n */\n private get _errorMessage(): string | JSX.Element {\n const { errorMessage = this.state.errorMessage } = this.props;\n return errorMessage || '';\n }\n\n /**\n * Renders error message based on the type of the message.\n *\n * - If error message is string, it will render using the built in styles.\n * - If error message is an element, user has full control over how it's rendered.\n */\n private _renderErrorMessage(): JSX.Element | null {\n const errorMessage = this._errorMessage;\n\n return errorMessage ? (\n typeof errorMessage === 'string' ? (\n

    \n {errorMessage}\n

    \n ) : (\n
    \n {errorMessage}\n
    \n )\n ) : null;\n }\n\n /**\n * If a custom description render function is supplied then treat description as always available.\n * Otherwise defer to the presence of description or error message text.\n */\n private get _isDescriptionAvailable(): boolean {\n const props = this.props;\n return !!(props.onRenderDescription || props.description || this._errorMessage);\n }\n\n private _renderTextArea(): React.ReactElement> {\n const { invalid = !!this._errorMessage } = this.props;\n const textAreaProps = getNativeProps>(\n this.props,\n textAreaProperties,\n ['defaultValue'],\n );\n const ariaLabelledBy = this.props['aria-labelledby'] || (this.props.label ? this._labelId : undefined);\n return (\n }\n value={this.value || ''}\n onInput={this._onInputChange}\n onChange={this._onInputChange}\n className={this._classNames.field}\n aria-labelledby={ariaLabelledBy}\n aria-describedby={this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby']}\n aria-invalid={invalid}\n aria-label={this.props.ariaLabel}\n readOnly={this.props.readOnly}\n onFocus={this._onFocus}\n onBlur={this._onBlur}\n />\n );\n }\n\n private _renderInput(): JSX.Element | null {\n const {\n ariaLabel,\n invalid = !!this._errorMessage,\n onRenderPrefix,\n onRenderSuffix,\n prefix,\n suffix,\n type = 'text',\n label,\n } = this.props;\n\n // build aria-labelledby list from label, prefix, and suffix\n const labelIds = [];\n label && labelIds.push(this._labelId);\n (prefix !== undefined || onRenderPrefix) && labelIds.push(this._prefixId);\n (suffix !== undefined || onRenderSuffix) && labelIds.push(this._suffixId);\n\n const inputProps: React.InputHTMLAttributes & React.RefAttributes = {\n type: this.state.isRevealingPassword ? 'text' : type,\n id: this._id,\n ...getNativeProps(this.props, inputProperties, ['defaultValue', 'type']),\n 'aria-labelledby': this.props['aria-labelledby'] || (labelIds.length > 0 ? labelIds.join(' ') : undefined),\n ref: this._textElement as React.RefObject,\n value: this.value || '',\n onInput: this._onInputChange,\n onChange: this._onInputChange,\n className: this._classNames.field,\n 'aria-label': ariaLabel,\n 'aria-describedby': this._isDescriptionAvailable ? this._descriptionId : this.props['aria-describedby'],\n 'aria-invalid': invalid,\n onFocus: this._onFocus,\n onBlur: this._onBlur,\n };\n\n const defaultRender = (updatedInputProps: React.InputHTMLAttributes) => {\n return ;\n };\n const onRenderInput = this.props.onRenderInput || defaultRender;\n return onRenderInput(inputProps, defaultRender);\n }\n\n private _onRevealButtonClick = (event: React.MouseEvent): void => {\n this.setState(prevState => ({ isRevealingPassword: !prevState.isRevealingPassword }));\n };\n\n private _onInputChange = (event: React.FormEvent): void => {\n // Previously, we needed to call both onInput and onChange due to some weird IE/React issues,\n // which have *probably* been fixed now:\n // - https://github.com/microsoft/fluentui/issues/744 (likely fixed)\n // - https://github.com/microsoft/fluentui/issues/824 (confirmed fixed)\n\n // TODO (Fabric 8?) - Switch to calling only onChange. This switch is pretty disruptive for\n // tests (ours and maybe consumers' too), so it seemed best to do the switch in a major bump.\n\n const element = event.target as HTMLInputElement;\n const value = element.value;\n // Ignore this event if any of the following are true:\n // - the value is undefined (in case one of the IE bugs comes back)\n // - it's a duplicate event (important since onInputChange is called twice per actual user event)\n // - it's the same as the previous value\n const previousValue = _getValue(this.props, this.state) || '';\n if (value === undefined || value === this._lastChangeValue || value === previousValue) {\n this._lastChangeValue = undefined;\n return;\n }\n this._lastChangeValue = value;\n\n this.props.onChange?.(event, value);\n\n if (!this._isControlled) {\n // ONLY if this is an uncontrolled component, update the displayed value.\n // (Controlled components must update the `value` prop from `onChange`.)\n this.setState({ uncontrolledValue: value });\n }\n };\n\n private _validate(value: string | undefined): void {\n // In case _validate is called again while validation promise is executing\n if (this._latestValidateValue === value && _shouldValidateAllChanges(this.props)) {\n return;\n }\n\n this._latestValidateValue = value;\n const onGetErrorMessage = this.props.onGetErrorMessage;\n const result = onGetErrorMessage && onGetErrorMessage(value || '');\n\n if (result !== undefined) {\n if (typeof result === 'string' || !('then' in result)) {\n this.setState({ errorMessage: result });\n this._notifyAfterValidate(value, result);\n } else {\n const currentValidation: number = ++this._lastValidation;\n\n result.then((errorMessage: string | JSX.Element) => {\n if (currentValidation === this._lastValidation) {\n this.setState({ errorMessage });\n }\n this._notifyAfterValidate(value, errorMessage);\n });\n }\n } else {\n this._notifyAfterValidate(value, '');\n }\n }\n\n private _notifyAfterValidate(value: string | undefined, errorMessage: string | JSX.Element): void {\n if (value === this.value && this.props.onNotifyValidationResult) {\n this.props.onNotifyValidationResult(errorMessage, value);\n }\n }\n\n private _adjustInputHeight(): void {\n if (this._textElement.current && this.props.autoAdjustHeight && this.props.multiline) {\n const scrollTop = this.props.scrollContainerRef?.current?.scrollTop;\n const textField = this._textElement.current;\n textField.style.height = '';\n textField.style.height = textField.scrollHeight + 'px';\n\n if (scrollTop) {\n // Safe to assert not null, otherwise we wouldn't have a scrollTop;\n this.props.scrollContainerRef!.current!.scrollTop = scrollTop;\n }\n }\n }\n}\n\n/** Get the value from the given state and props (converting from number to string if needed) */\nfunction _getValue(props: ITextFieldProps, state: ITextFieldState): string | undefined {\n const { value = state.uncontrolledValue } = props;\n if (typeof value === 'number') {\n // not allowed per typings, but happens anyway\n return String(value);\n }\n return value;\n}\n\n/**\n * If `validateOnFocusIn` or `validateOnFocusOut` is true, validation should run **only** on that event.\n * Otherwise, validation should run on every change.\n */\nfunction _shouldValidateAllChanges(props: ITextFieldProps): boolean {\n return !(props.validateOnFocusIn || props.validateOnFocusOut);\n}\n\n// Only calculate this once across all TextFields, since will stay the same\nlet __browserNeedsRevealButton: boolean | undefined;\n\nfunction _browserNeedsRevealButton() {\n if (typeof __browserNeedsRevealButton !== 'boolean') {\n const win = getWindow();\n\n if (win?.navigator) {\n // Edge, Chromium Edge\n const isEdge = /Edg/.test(win.navigator.userAgent || '');\n\n __browserNeedsRevealButton = !(isIE11() || isEdge);\n } else {\n __browserNeedsRevealButton = true;\n }\n }\n return __browserNeedsRevealButton;\n}\n","import {\n AnimationClassNames,\n getFocusStyle,\n getGlobalClassNames,\n getInputFocusStyle,\n HighContrastSelector,\n normalize,\n getPlaceholderStyles,\n IconFontSizes,\n getHighContrastNoAdjustStyle,\n} from '../../Styling';\nimport type { IStyle } from '../../Styling';\nimport type { ILabelStyles, ILabelStyleProps } from '../../Label';\nimport type { ITextFieldStyleProps, ITextFieldStyles } from './TextField.types';\nimport type { IStyleFunctionOrObject } from '@fluentui/utilities';\n\nconst globalClassNames = {\n root: 'ms-TextField',\n description: 'ms-TextField-description',\n errorMessage: 'ms-TextField-errorMessage',\n field: 'ms-TextField-field',\n fieldGroup: 'ms-TextField-fieldGroup',\n prefix: 'ms-TextField-prefix',\n suffix: 'ms-TextField-suffix',\n wrapper: 'ms-TextField-wrapper',\n revealButton: 'ms-TextField-reveal',\n\n multiline: 'ms-TextField--multiline',\n borderless: 'ms-TextField--borderless',\n underlined: 'ms-TextField--underlined',\n unresizable: 'ms-TextField--unresizable',\n\n required: 'is-required',\n disabled: 'is-disabled',\n active: 'is-active',\n};\n\nfunction getLabelStyles(props: ITextFieldStyleProps): IStyleFunctionOrObject {\n const { underlined, disabled, focused, theme } = props;\n const { palette, fonts } = theme;\n\n return () => ({\n root: [\n underlined &&\n disabled && {\n color: palette.neutralTertiary,\n },\n underlined && {\n fontSize: fonts.medium.fontSize,\n marginRight: 8,\n paddingLeft: 12,\n paddingRight: 0,\n lineHeight: '22px',\n height: 32,\n },\n underlined &&\n focused && {\n selectors: {\n [HighContrastSelector]: {\n height: 31, // -1px to prevent jumpiness in HC with the increased border-width to 2px\n },\n },\n },\n ],\n });\n}\n\nexport function getStyles(props: ITextFieldStyleProps): ITextFieldStyles {\n const {\n theme,\n className,\n disabled,\n focused,\n required,\n multiline,\n hasLabel,\n borderless,\n underlined,\n hasIcon,\n resizable,\n hasErrorMessage,\n inputClassName,\n autoAdjustHeight,\n hasRevealButton,\n } = props;\n\n const { semanticColors, effects, fonts } = theme;\n\n const classNames = getGlobalClassNames(globalClassNames, theme);\n\n const fieldPrefixSuffix: IStyle = {\n // Suffix/Prefix are not editable so the disabled slot perfectly fits.\n background: semanticColors.disabledBackground,\n color: !disabled ? semanticColors.inputPlaceholderText : semanticColors.disabledText,\n display: 'flex',\n alignItems: 'center',\n padding: '0 10px',\n lineHeight: 1,\n whiteSpace: 'nowrap',\n flexShrink: 0,\n selectors: {\n [HighContrastSelector]: {\n background: 'Window',\n color: disabled ? 'GrayText' : 'WindowText',\n },\n },\n };\n\n // placeholder style constants\n const placeholderStyles: IStyle = [\n {\n color: semanticColors.inputPlaceholderText,\n opacity: 1,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n ];\n\n const disabledPlaceholderStyles: IStyle = {\n color: semanticColors.disabledText,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n };\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n required && classNames.required,\n disabled && classNames.disabled,\n focused && classNames.active,\n multiline && classNames.multiline,\n borderless && classNames.borderless,\n underlined && classNames.underlined,\n normalize,\n {\n position: 'relative',\n },\n className,\n ],\n wrapper: [\n classNames.wrapper,\n\n underlined && [\n {\n display: 'flex',\n borderBottom: `1px solid ${!hasErrorMessage ? semanticColors.inputBorder : semanticColors.errorText}`,\n width: '100%',\n },\n disabled && {\n borderBottomColor: semanticColors.disabledBackground,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n !disabled && {\n selectors: {\n ':hover': {\n borderBottomColor: !hasErrorMessage ? semanticColors.inputBorderHovered : semanticColors.errorText,\n selectors: {\n [HighContrastSelector]: {\n borderBottomColor: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n },\n },\n focused && [\n {\n position: 'relative',\n },\n getInputFocusStyle(\n !hasErrorMessage ? semanticColors.inputFocusBorderAlt : semanticColors.errorText,\n 0,\n 'borderBottom',\n ),\n ],\n ],\n ],\n fieldGroup: [\n classNames.fieldGroup,\n normalize,\n {\n border: `1px solid ${semanticColors.inputBorder}`,\n borderRadius: effects.roundedCorner2,\n background: semanticColors.inputBackground,\n cursor: 'text',\n height: 32,\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'stretch',\n position: 'relative',\n },\n multiline && {\n minHeight: '60px',\n height: 'auto',\n display: 'flex',\n },\n\n !focused &&\n !disabled && {\n selectors: {\n ':hover': {\n borderColor: semanticColors.inputBorderHovered,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n },\n },\n\n focused &&\n !underlined &&\n getInputFocusStyle(\n !hasErrorMessage ? semanticColors.inputFocusBorderAlt : semanticColors.errorText,\n effects.roundedCorner2,\n ),\n disabled && {\n borderColor: semanticColors.disabledBackground,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n\n cursor: 'default',\n },\n borderless && {\n border: 'none',\n },\n borderless &&\n focused && {\n border: 'none',\n selectors: {\n ':after': {\n border: 'none',\n },\n },\n },\n underlined && {\n flex: '1 1 0px',\n border: 'none',\n textAlign: 'left',\n },\n underlined &&\n disabled && {\n backgroundColor: 'transparent',\n },\n\n hasErrorMessage &&\n !underlined && {\n borderColor: semanticColors.errorText,\n selectors: {\n '&:hover': {\n borderColor: semanticColors.errorText,\n },\n },\n },\n !hasLabel &&\n required && {\n selectors: {\n ':before': {\n content: `'*'`,\n color: semanticColors.errorText,\n position: 'absolute',\n top: -5,\n right: -10,\n },\n [HighContrastSelector]: {\n selectors: {\n ':before': {\n color: 'WindowText',\n right: -14, // moving the * 4 pixel to right to alleviate border clipping in HC mode.\n },\n },\n },\n },\n },\n ],\n field: [\n fonts.medium,\n classNames.field,\n normalize,\n {\n borderRadius: 0,\n border: 'none',\n background: 'none',\n backgroundColor: 'transparent',\n color: semanticColors.inputText,\n padding: '0 8px',\n width: '100%',\n minWidth: 0,\n textOverflow: 'ellipsis',\n outline: 0,\n selectors: {\n '&:active, &:focus, &:hover': { outline: 0 },\n '::-ms-clear': {\n display: 'none',\n },\n [HighContrastSelector]: {\n background: 'Window',\n color: disabled ? 'GrayText' : 'WindowText',\n },\n },\n },\n getPlaceholderStyles(placeholderStyles),\n multiline &&\n !resizable && [\n classNames.unresizable,\n {\n resize: 'none',\n },\n ],\n multiline && {\n minHeight: 'inherit',\n lineHeight: 17,\n flexGrow: 1,\n paddingTop: 6,\n paddingBottom: 6,\n overflow: 'auto',\n width: '100%',\n },\n multiline &&\n autoAdjustHeight && {\n overflow: 'hidden',\n },\n hasIcon &&\n !hasRevealButton && {\n paddingRight: 24,\n },\n multiline &&\n hasIcon && {\n paddingRight: 40,\n },\n disabled && [\n {\n backgroundColor: semanticColors.disabledBackground,\n color: semanticColors.disabledText,\n borderColor: semanticColors.disabledBackground,\n },\n getPlaceholderStyles(disabledPlaceholderStyles),\n ],\n underlined && {\n textAlign: 'left',\n },\n focused &&\n !borderless && {\n selectors: {\n [HighContrastSelector]: {\n paddingLeft: 11,\n paddingRight: 11,\n },\n },\n },\n focused &&\n multiline &&\n !borderless && {\n selectors: {\n [HighContrastSelector]: {\n paddingTop: 4, // take into consideration the 2px increased border-width (not when borderless).\n },\n },\n },\n inputClassName,\n ],\n icon: [\n multiline && {\n paddingRight: 24,\n alignItems: 'flex-end',\n },\n {\n pointerEvents: 'none',\n position: 'absolute',\n bottom: 6,\n right: 8,\n top: 'auto',\n fontSize: IconFontSizes.medium,\n lineHeight: 18,\n },\n disabled && {\n color: semanticColors.disabledText,\n },\n ],\n description: [\n classNames.description,\n {\n color: semanticColors.bodySubtext,\n fontSize: fonts.xSmall.fontSize,\n },\n ],\n errorMessage: [\n classNames.errorMessage,\n AnimationClassNames.slideDownIn20,\n fonts.small,\n {\n color: semanticColors.errorText,\n margin: 0,\n paddingTop: 5,\n display: 'flex',\n alignItems: 'center',\n },\n ],\n prefix: [classNames.prefix, fieldPrefixSuffix],\n suffix: [classNames.suffix, fieldPrefixSuffix],\n revealButton: [\n classNames.revealButton,\n 'ms-Button',\n 'ms-Button--icon',\n getFocusStyle(theme, { inset: 1 }),\n {\n height: 30,\n width: 32,\n border: 'none',\n padding: '0px 4px',\n backgroundColor: 'transparent',\n color: semanticColors.link,\n selectors: {\n ':hover': {\n outline: 0,\n color: semanticColors.primaryButtonBackgroundHovered,\n backgroundColor: semanticColors.buttonBackgroundHovered,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n color: 'Highlight',\n },\n },\n },\n ':focus': { outline: 0 },\n },\n },\n hasIcon && {\n marginRight: 28,\n },\n ],\n revealSpan: {\n display: 'flex',\n height: '100%',\n alignItems: 'center',\n },\n revealIcon: {\n margin: '0px 4px',\n pointerEvents: 'none',\n bottom: 6,\n right: 8,\n top: 'auto',\n fontSize: IconFontSizes.medium,\n lineHeight: 18,\n },\n subComponentStyles: {\n label: getLabelStyles(props),\n },\n };\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { TextFieldBase } from './TextField.base';\nimport { getStyles } from './TextField.styles';\nimport type { ITextFieldProps, ITextFieldStyles, ITextFieldStyleProps } from './TextField.types';\n\nexport const TextField: React.FunctionComponent = styled<\n ITextFieldProps,\n ITextFieldStyleProps,\n ITextFieldStyles\n>(TextFieldBase, getStyles, undefined, {\n scope: 'TextField',\n});\n\nexport type { ITextField } from './TextField.types';\n","import * as React from 'react';\nimport { createComponent } from '@fluentui/foundation-legacy';\nimport { TextView } from './Text.view';\nimport { TextStyles as styles } from './Text.styles';\nimport type { ITextProps } from './Text.types';\n\nexport const Text: React.FunctionComponent = createComponent(TextView, {\n displayName: 'Text',\n styles,\n});\n\nexport default Text;\n","/** @jsxRuntime classic */\n/** @jsx withSlots */\nimport { withSlots, getSlots } from '@fluentui/foundation-legacy';\nimport { getNativeProps, htmlElementProperties } from '../../Utilities';\nimport type { ITextComponent, ITextProps, ITextSlots } from './Text.types';\n\nexport const TextView: ITextComponent['view'] = props => {\n // eslint-disable-next-line eqeqeq\n if (props.children == null) {\n return null;\n }\n\n const { block, className, as: RootType = 'span', variant, nowrap, ...rest } = props;\n\n const Slots = getSlots(props, {\n root: RootType,\n });\n\n return ;\n};\n","import type { ITextComponent, ITextStyles, ITextStylesReturnType, ITextProps } from './Text.types';\nimport type { ITheme } from '../../Styling';\n\nexport const TextStyles: ITextComponent['styles'] = (props: ITextProps, theme: ITheme): ITextStylesReturnType => {\n const { as, className, block, nowrap, variant } = props;\n const { fonts, semanticColors } = theme;\n const variantObject = fonts[variant || 'medium'];\n\n return {\n root: [\n variantObject,\n {\n color: variantObject.color || semanticColors.bodyText,\n display: block ? (as === 'td' ? 'table-cell' : 'block') : 'inline',\n mozOsxFontSmoothing: variantObject.MozOsxFontSmoothing,\n webkitFontSmoothing: variantObject.WebkitFontSmoothing,\n },\n nowrap && {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n className,\n ],\n } as ITextStyles;\n};\n","import * as React from 'react';\nimport { useControllableValue, useId, useWarnings } from '@fluentui/react-hooks';\nimport { classNamesFunction, getNativeProps, inputProperties, useFocusRects } from '@fluentui/utilities';\nimport { Label } from '../Label/Label';\nimport type { IToggleProps, IToggleStyleProps, IToggleStyles, IToggle } from './Toggle.types';\n\nconst getClassNames = classNamesFunction();\n\nconst COMPONENT_NAME = 'Toggle';\n\nexport const ToggleBase: React.FunctionComponent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n as: RootType = 'div',\n ariaLabel,\n checked: controlledChecked,\n className,\n defaultChecked = false,\n disabled,\n inlineLabel,\n label,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n offAriaLabel,\n offText,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onAriaLabel,\n onChange,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n onChanged,\n onClick: onToggleClick,\n onText,\n role,\n styles,\n theme,\n } = props;\n\n const [checked, setChecked] = useControllableValue(\n controlledChecked,\n defaultChecked,\n React.useCallback(\n (ev: React.MouseEvent, isChecked: boolean) => {\n onChange?.(ev, isChecked);\n onChanged?.(isChecked);\n },\n [onChange, onChanged],\n ),\n );\n\n const classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n disabled,\n checked,\n inlineLabel,\n onOffMissing: !onText && !offText,\n });\n const badAriaLabel = checked ? onAriaLabel : offAriaLabel;\n const id = useId(COMPONENT_NAME, props.id);\n const labelId = `${id}-label`;\n const stateTextId = `${id}-stateText`;\n const stateText = checked ? onText : offText;\n const toggleNativeProps = getNativeProps>(props, inputProperties, [\n 'defaultChecked',\n ]);\n\n // The following properties take priority for what Narrator should read:\n // 1. ariaLabel\n // 2. onAriaLabel (if checked) or offAriaLabel (if not checked)\n // 3. label, if existent\n\n let labelledById: string | undefined = undefined;\n if (!ariaLabel && !badAriaLabel) {\n if (label) {\n labelledById = labelId;\n }\n if (stateText && !labelledById) {\n labelledById = stateTextId;\n }\n }\n\n const toggleButton = React.useRef(null);\n useFocusRects(toggleButton);\n useComponentRef(props, checked, toggleButton);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: COMPONENT_NAME,\n props,\n deprecations: {\n offAriaLabel: undefined,\n onAriaLabel: 'ariaLabel',\n onChanged: 'onChange',\n },\n mutuallyExclusive: { checked: 'defaultChecked' },\n });\n }\n\n const onClick = (ev: React.MouseEvent) => {\n if (!disabled) {\n setChecked(!checked, ev);\n if (onToggleClick) {\n onToggleClick(ev);\n }\n }\n };\n\n const slotProps = {\n root: {\n className: classNames.root,\n hidden: toggleNativeProps.hidden,\n },\n label: {\n children: label,\n className: classNames.label,\n htmlFor: id,\n id: labelId,\n },\n container: {\n className: classNames.container,\n },\n pill: {\n ...toggleNativeProps,\n 'aria-disabled': disabled,\n 'aria-checked': checked,\n 'aria-label': ariaLabel ? ariaLabel : badAriaLabel,\n 'aria-labelledby': labelledById,\n className: classNames.pill,\n 'data-is-focusable': true,\n 'data-ktp-target': true,\n disabled,\n id,\n onClick,\n ref: toggleButton,\n role: role ? role : 'switch',\n type: 'button' as React.ButtonHTMLAttributes['type'],\n },\n thumb: {\n className: classNames.thumb,\n },\n stateText: {\n children: stateText,\n className: classNames.text,\n htmlFor: id,\n id: stateTextId,\n },\n };\n\n return (\n } {...slotProps.root}>\n {label && \n );\n },\n);\n\nToggleBase.displayName = COMPONENT_NAME + 'Base';\n\nconst useComponentRef = (\n props: IToggleProps,\n isChecked: boolean | undefined,\n toggleButtonRef: React.RefObject,\n) => {\n React.useImperativeHandle(\n props.componentRef,\n () => ({\n get checked() {\n return !!isChecked;\n },\n focus() {\n if (toggleButtonRef.current) {\n toggleButtonRef.current.focus();\n }\n },\n }),\n [isChecked, toggleButtonRef],\n );\n};\n","import * as React from 'react';\nimport { styled } from '@fluentui/utilities';\nimport { ToggleBase } from './Toggle.base';\nimport { getStyles } from './Toggle.styles';\nimport type { IToggleProps, IToggleStyleProps, IToggleStyles } from './Toggle.types';\n\nexport const Toggle: React.FunctionComponent = styled(\n ToggleBase,\n getStyles,\n undefined,\n {\n scope: 'Toggle',\n },\n);\n","import {\n HighContrastSelector,\n getFocusStyle,\n FontWeights,\n getHighContrastNoAdjustStyle,\n} from '@fluentui/style-utilities';\nimport type { IToggleStyleProps, IToggleStyles } from './Toggle.types';\n\nconst DEFAULT_PILL_WIDTH = 40;\nconst DEFAULT_PILL_HEIGHT = 20;\nconst DEFAULT_THUMB_SIZE = 12;\n\nexport const getStyles = (props: IToggleStyleProps): IToggleStyles => {\n const { theme, className, disabled, checked, inlineLabel, onOffMissing } = props;\n const { semanticColors, palette } = theme;\n\n // Tokens\n const pillUncheckedBackground = semanticColors.bodyBackground;\n const pillCheckedBackground = semanticColors.inputBackgroundChecked;\n const pillCheckedHoveredBackground = semanticColors.inputBackgroundCheckedHovered;\n const thumbUncheckedHoveredBackground = palette.neutralDark;\n const pillCheckedDisabledBackground = semanticColors.disabledBodySubtext;\n const thumbBackground = semanticColors.smallInputBorder;\n const thumbCheckedBackground = semanticColors.inputForegroundChecked;\n const thumbDisabledBackground = semanticColors.disabledBodySubtext;\n const thumbCheckedDisabledBackground = semanticColors.disabledBackground;\n const pillBorderColor = semanticColors.smallInputBorder;\n const pillBorderHoveredColor = semanticColors.inputBorderHovered;\n const pillBorderDisabledColor = semanticColors.disabledBodySubtext;\n const textDisabledColor = semanticColors.disabledText;\n\n return {\n root: [\n 'ms-Toggle',\n checked && 'is-checked',\n !disabled && 'is-enabled',\n disabled && 'is-disabled',\n theme.fonts.medium,\n {\n marginBottom: '8px',\n },\n inlineLabel && {\n display: 'flex',\n alignItems: 'center',\n },\n className,\n ],\n\n label: [\n 'ms-Toggle-label',\n { display: 'inline-block' },\n disabled && {\n color: textDisabledColor,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n inlineLabel &&\n !onOffMissing && {\n marginRight: 16,\n },\n onOffMissing &&\n inlineLabel && {\n order: 1,\n marginLeft: 16,\n },\n inlineLabel && { wordBreak: 'break-word' },\n ],\n\n container: [\n 'ms-Toggle-innerContainer',\n {\n display: 'flex',\n position: 'relative',\n },\n ],\n\n pill: [\n 'ms-Toggle-background',\n getFocusStyle(theme, { inset: -3 }),\n {\n fontSize: '20px',\n boxSizing: 'border-box',\n width: DEFAULT_PILL_WIDTH,\n height: DEFAULT_PILL_HEIGHT,\n borderRadius: DEFAULT_PILL_HEIGHT / 2,\n transition: 'all 0.1s ease',\n border: `1px solid ${pillBorderColor}`,\n background: pillUncheckedBackground,\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n padding: '0 3px',\n overflow: 'visible',\n },\n !disabled && [\n !checked && {\n selectors: {\n ':hover': [\n {\n borderColor: pillBorderHoveredColor,\n },\n ],\n ':hover .ms-Toggle-thumb': [\n {\n backgroundColor: thumbUncheckedHoveredBackground,\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n },\n },\n },\n ],\n },\n },\n checked && [\n {\n background: pillCheckedBackground,\n borderColor: 'transparent',\n justifyContent: 'flex-end',\n },\n {\n selectors: {\n ':hover': [\n {\n backgroundColor: pillCheckedHoveredBackground,\n borderColor: 'transparent',\n selectors: {\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n },\n },\n },\n ],\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ],\n ],\n disabled && [\n {\n cursor: 'default',\n },\n !checked && [\n {\n borderColor: pillBorderDisabledColor,\n },\n ],\n checked && [\n {\n backgroundColor: pillCheckedDisabledBackground,\n borderColor: 'transparent',\n justifyContent: 'flex-end',\n },\n ],\n ],\n !disabled && {\n selectors: {\n '&:hover': {\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'Highlight',\n },\n },\n },\n },\n },\n ],\n\n thumb: [\n 'ms-Toggle-thumb',\n {\n display: 'block',\n width: DEFAULT_THUMB_SIZE,\n height: DEFAULT_THUMB_SIZE,\n borderRadius: '50%',\n transition: 'all 0.1s ease',\n backgroundColor: thumbBackground,\n /* Border is added to handle high contrast mode for Firefox */\n borderColor: 'transparent',\n borderWidth: DEFAULT_THUMB_SIZE / 2,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n },\n !disabled &&\n checked && [\n {\n backgroundColor: thumbCheckedBackground,\n selectors: {\n [HighContrastSelector]: {\n backgroundColor: 'Window',\n borderColor: 'Window',\n },\n },\n },\n ],\n disabled && [\n !checked && [\n {\n backgroundColor: thumbDisabledBackground,\n },\n ],\n checked && [\n {\n backgroundColor: thumbCheckedDisabledBackground,\n },\n ],\n ],\n ],\n\n text: [\n 'ms-Toggle-stateText',\n {\n selectors: {\n // Workaround: make rules more specific than Label rules.\n '&&': {\n padding: '0',\n margin: '0 8px',\n userSelect: 'none',\n fontWeight: FontWeights.regular,\n },\n },\n },\n disabled && {\n selectors: {\n '&&': {\n color: textDisabledColor,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n },\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { TooltipBase } from './Tooltip.base';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport type { ICalloutProps } from '../../Callout';\nimport type { IRenderFunction, IRefObject, IStyleFunctionOrObject } from '../../Utilities';\nimport type { IStyle, ITheme } from '../../Styling';\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltip {}\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipProps extends Omit, 'content'> {\n /**\n * Optional callback to access the ITooltip interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Properties to pass through for Callout.\n * @defaultvalue `{ isBeakVisible: true, beakWidth: 16, gapSpace: 0, setInitialFocus: true, doNotLayer: false }`\n */\n calloutProps?: ICalloutProps;\n\n /**\n * Content to be passed to the tooltip\n */\n content?: string | JSX.Element | JSX.Element[];\n\n /**\n * Render function to populate tooltip content.\n */\n onRenderContent?: IRenderFunction;\n\n /**\n * Length of delay. Set to `TooltipDelay.zero` if you do not want a delay.\n * @defaultvalue TooltipDelay.medium\n */\n delay?: TooltipDelay;\n\n /**\n * Max width of tooltip\n * @defaultvalue 364px\n */\n maxWidth?: string | null;\n\n /**\n * Element to anchor the Tooltip to.\n */\n targetElement?: HTMLElement;\n\n /**\n * How the tooltip should be anchored to its `targetElement`.\n * @defaultvalue DirectionalHint.topCenter\n */\n directionalHint?: DirectionalHint;\n\n /**\n * How the element should be positioned in RTL layouts.\n * If not specified, a mirror of `directionalHint` will be used instead\n */\n directionalHintForRTL?: DirectionalHint;\n\n /**\n * Theme provided by higher-order component.\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport enum TooltipDelay {\n zero = 0,\n /** 300 ms delay before showing the tooltip */\n medium = 1,\n /** 500 ms delay before showing the tooltip */\n long = 2,\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipStyleProps {\n theme: ITheme;\n\n className?: string;\n\n /**\n * Delay before tooltip appears.\n * @deprecated Delay logic moved to TooltipHost vs relying on animation delay.\n */\n delay?: TooltipDelay;\n\n /**\n * Maximum width of tooltip.\n */\n maxWidth?: string;\n\n /**\n * The gap between the Callout and the target\n * @defaultvalue 0\n */\n gapSpace?: number;\n\n /**\n * The width of the Callout's beak\n * @defaultvalue 16\n */\n beakWidth?: number;\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n\n /**\n * Style for the content element.\n */\n content: IStyle;\n\n /**\n * Style for the subtext element.\n */\n subText: IStyle;\n}\n","import * as React from 'react';\nimport { classNamesFunction, divProperties, getNativeProps } from '../../Utilities';\nimport { Callout } from '../../Callout';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type { ITooltipProps, ITooltipStyleProps, ITooltipStyles } from './Tooltip.types';\n\nconst getClassNames = classNamesFunction();\n\nexport class TooltipBase extends React.Component {\n // Specify default props values\n public static defaultProps: Partial = {\n directionalHint: DirectionalHint.topCenter,\n maxWidth: '364px',\n calloutProps: {\n isBeakVisible: true,\n beakWidth: 16,\n gapSpace: 0,\n setInitialFocus: true,\n doNotLayer: false,\n },\n };\n\n private _classNames: IProcessedStyleSet;\n\n public render(): JSX.Element {\n const {\n className,\n calloutProps,\n directionalHint,\n directionalHintForRTL,\n styles,\n id,\n maxWidth,\n onRenderContent = this._onRenderContent,\n targetElement,\n theme,\n } = this.props;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className: className || (calloutProps && calloutProps.className),\n beakWidth: calloutProps && calloutProps.isBeakVisible ? calloutProps.beakWidth : 0,\n gapSpace: calloutProps && calloutProps.gapSpace,\n maxWidth: maxWidth!,\n });\n\n return (\n \n \n {onRenderContent(this.props, this._onRenderContent)}\n \n \n );\n }\n\n private _onRenderContent = (props: ITooltipProps): JSX.Element => {\n if (typeof props.content === 'string') {\n return

    {props.content}

    ;\n } else {\n return
    {props.content}
    ;\n }\n };\n}\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { TooltipBase } from './Tooltip.base';\nimport { getStyles } from './Tooltip.styles';\nimport type { ITooltipProps, ITooltipStyleProps, ITooltipStyles } from './Tooltip.types';\n\nexport const Tooltip: React.FunctionComponent = styled<\n ITooltipProps,\n ITooltipStyleProps,\n ITooltipStyles\n>(TooltipBase, getStyles, undefined, {\n scope: 'Tooltip',\n});\n","import { AnimationClassNames } from '../../Styling';\nimport type { ITooltipStyleProps, ITooltipStyles } from './Tooltip.types';\n\nexport const getStyles = (props: ITooltipStyleProps): ITooltipStyles => {\n const { className, beakWidth = 16, gapSpace = 0, maxWidth, theme } = props;\n const { semanticColors, fonts, effects } = theme;\n\n // The math here is done to account for the 45 degree rotation of the beak\n // and sub-pixel rounding that differs across browsers, which is more noticeable when\n // the device pixel ratio is larger\n const tooltipGapSpace =\n -(Math.sqrt((beakWidth * beakWidth) / 2) + gapSpace) +\n 1 /\n // There isn't really a great way to pass in a `window` reference here so disabling the line rule\n // eslint-disable-next-line no-restricted-globals\n window.devicePixelRatio;\n\n return {\n root: [\n 'ms-Tooltip',\n theme.fonts.medium,\n AnimationClassNames.fadeIn200,\n {\n background: semanticColors.menuBackground,\n boxShadow: effects.elevation8,\n padding: '8px',\n maxWidth,\n selectors: {\n ':after': {\n content: `''`,\n position: 'absolute',\n bottom: tooltipGapSpace,\n left: tooltipGapSpace,\n right: tooltipGapSpace,\n top: tooltipGapSpace,\n zIndex: 0,\n },\n },\n },\n className,\n ],\n content: [\n 'ms-Tooltip-content',\n fonts.small,\n {\n position: 'relative',\n zIndex: 1,\n color: semanticColors.menuItemText,\n wordWrap: 'break-word',\n overflowWrap: 'break-word',\n overflow: 'hidden',\n },\n ],\n subText: [\n 'ms-Tooltip-subtext',\n {\n // Using inherit here to avoid unintentional global overrides of the

    tag.\n fontSize: 'inherit',\n fontWeight: 'inherit',\n color: 'inherit',\n margin: 0,\n },\n ],\n };\n};\n","import * as React from 'react';\nimport { hiddenContentStyle } from '../../Styling';\nimport {\n initializeComponentRef,\n Async,\n divProperties,\n getNativeProps,\n getId,\n assign,\n hasOverflow,\n portalContainsElement,\n classNamesFunction,\n KeyCodes,\n} from '../../Utilities';\nimport { TooltipOverflowMode } from './TooltipHost.types';\nimport { Tooltip } from './Tooltip';\nimport { TooltipDelay } from './Tooltip.types';\nimport type { ITooltipHostProps, ITooltipHostStyles, ITooltipHostStyleProps, ITooltipHost } from './TooltipHost.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx } from '../../utilities/dom';\n\nexport interface ITooltipHostState {\n /** @deprecated No longer used internally */\n isAriaPlaceholderRendered: boolean;\n isTooltipVisible: boolean;\n}\n\nconst getClassNames = classNamesFunction();\n\nexport class TooltipHostBase extends React.Component implements ITooltipHost {\n public static defaultProps = {\n delay: TooltipDelay.medium,\n };\n\n public static contextType = WindowContext;\n private static _currentVisibleTooltip: ITooltipHost | undefined;\n\n // The wrapping div that gets the hover events\n private _tooltipHost = React.createRef();\n\n private _classNames: { [key in keyof ITooltipHostStyles]: string };\n private _async: Async;\n private _dismissTimerId: number;\n private _openTimerId: number;\n private _defaultTooltipId = getId('tooltip');\n private _ignoreNextFocusEvent: boolean;\n\n // Constructor\n constructor(props: ITooltipHostProps) {\n super(props);\n\n initializeComponentRef(this);\n\n this.state = {\n isAriaPlaceholderRendered: false,\n isTooltipVisible: false,\n };\n }\n\n // Render\n public render(): JSX.Element {\n const {\n calloutProps,\n children,\n content,\n directionalHint,\n directionalHintForRTL,\n hostClassName: className,\n id,\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n setAriaDescribedBy = true,\n tooltipProps,\n styles,\n theme,\n } = this.props;\n\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n className,\n });\n\n const { isTooltipVisible } = this.state;\n const tooltipId = id || this._defaultTooltipId;\n\n const tooltipRenderProps = {\n id: `${tooltipId}--tooltip`,\n content,\n targetElement: this._getTargetElement(),\n directionalHint,\n directionalHintForRTL,\n calloutProps: assign({}, calloutProps, {\n onDismiss: this._hideTooltip,\n onFocus: this._onTooltipContentFocus,\n onMouseEnter: this._onTooltipMouseEnter,\n onMouseLeave: this._onTooltipMouseLeave,\n }),\n onMouseEnter: this._onTooltipMouseEnter,\n onMouseLeave: this._onTooltipMouseLeave,\n ...getNativeProps(this.props, divProperties, ['id']), // Make sure we use the id above\n ...tooltipProps,\n };\n\n // Get the content of the tooltip for use in the hidden div used for screen readers\n const tooltipContent = tooltipProps?.onRenderContent\n ? tooltipProps.onRenderContent(tooltipRenderProps, props => (props?.content ? <>{props.content} : null))\n : content;\n const showTooltip = isTooltipVisible && !!tooltipContent;\n const ariaDescribedBy = setAriaDescribedBy && isTooltipVisible && !!tooltipContent ? tooltipId : undefined;\n\n return (\n \n {children}\n {showTooltip && }\n

    \n \n );\n }\n\n public componentDidMount(): void {\n this._async = new Async(this);\n }\n\n public componentWillUnmount(): void {\n if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip === this) {\n TooltipHostBase._currentVisibleTooltip = undefined;\n }\n\n this._async.dispose();\n }\n\n public show = (): void => {\n this._toggleTooltip(true);\n };\n\n public dismiss = (): void => {\n this._hideTooltip();\n };\n\n private _getTargetElement = (): HTMLElement | undefined => {\n if (!this._tooltipHost.current) {\n return undefined;\n }\n\n const { overflowMode } = this.props;\n\n // Select target element based on overflow mode. For parent mode, you want to position the tooltip relative\n // to the parent element, otherwise it might look off.\n if (overflowMode !== undefined) {\n switch (overflowMode) {\n case TooltipOverflowMode.Parent:\n return this._tooltipHost.current.parentElement!;\n\n case TooltipOverflowMode.Self:\n return this._tooltipHost.current;\n }\n }\n\n return this._tooltipHost.current;\n };\n\n private _onTooltipFocus = (ev: React.FocusEvent) => {\n if (this._ignoreNextFocusEvent) {\n this._ignoreNextFocusEvent = false;\n return;\n }\n\n this._onTooltipMouseEnter(ev);\n };\n\n private _onTooltipContentFocus = (ev: React.FocusEvent) => {\n if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== this) {\n TooltipHostBase._currentVisibleTooltip.dismiss();\n }\n TooltipHostBase._currentVisibleTooltip = this;\n\n this._clearDismissTimer();\n this._clearOpenTimer();\n };\n\n private _onTooltipBlur = (ev: React.FocusEvent) => {\n // The focused element gets a blur event when the document loses focus\n // (e.g. switching tabs in the browser), but we don't want to show the\n // tooltip again when the document gets focus back. Handle this case by\n // checking if the blurred element is still the document's activeElement,\n // and ignoring when it next gets focus back.\n // See https://github.com/microsoft/fluentui/issues/13541\n this._ignoreNextFocusEvent = getDocumentEx(this.context)?.activeElement === ev.target;\n\n this._dismissTimerId = this._async.setTimeout(() => {\n this._hideTooltip();\n }, 0);\n };\n\n // Show Tooltip\n private _onTooltipMouseEnter = (ev: any): void => {\n const { overflowMode, delay } = this.props;\n const doc = getDocumentEx(this.context);\n\n if (TooltipHostBase._currentVisibleTooltip && TooltipHostBase._currentVisibleTooltip !== this) {\n TooltipHostBase._currentVisibleTooltip.dismiss();\n }\n TooltipHostBase._currentVisibleTooltip = this;\n\n if (overflowMode !== undefined) {\n const overflowElement = this._getTargetElement();\n if (overflowElement && !hasOverflow(overflowElement)) {\n return;\n }\n }\n\n if (ev.target && portalContainsElement(ev.target as HTMLElement, this._getTargetElement(), doc)) {\n // Do not show tooltip when target is inside a portal relative to TooltipHost.\n return;\n }\n\n this._clearDismissTimer();\n this._clearOpenTimer();\n\n if (delay !== TooltipDelay.zero) {\n const delayTime = this._getDelayTime(delay!); // non-null assertion because we set it in `defaultProps`\n\n this._openTimerId = this._async.setTimeout(() => {\n this._toggleTooltip(true);\n }, delayTime);\n } else {\n this._toggleTooltip(true);\n }\n };\n\n // Hide Tooltip\n private _onTooltipMouseLeave = (ev: any): void => {\n const { closeDelay } = this.props;\n\n this._clearDismissTimer();\n this._clearOpenTimer();\n\n if (closeDelay) {\n this._dismissTimerId = this._async.setTimeout(() => {\n this._toggleTooltip(false);\n }, closeDelay);\n } else {\n this._toggleTooltip(false);\n }\n\n if (TooltipHostBase._currentVisibleTooltip === this) {\n TooltipHostBase._currentVisibleTooltip = undefined;\n }\n };\n\n private _onTooltipKeyDown = (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if ((ev.which === KeyCodes.escape || ev.ctrlKey) && this.state.isTooltipVisible) {\n this._hideTooltip();\n ev.stopPropagation();\n }\n };\n\n private _clearDismissTimer = (): void => {\n this._async.clearTimeout(this._dismissTimerId);\n };\n\n private _clearOpenTimer = (): void => {\n this._async.clearTimeout(this._openTimerId);\n };\n\n // Hide Tooltip\n private _hideTooltip = (): void => {\n this._clearOpenTimer();\n this._clearDismissTimer();\n this._toggleTooltip(false);\n };\n\n private _toggleTooltip = (isTooltipVisible: boolean): void => {\n if (this.state.isTooltipVisible !== isTooltipVisible) {\n this.setState(\n { isTooltipVisible },\n () => this.props.onTooltipToggle && this.props.onTooltipToggle(isTooltipVisible),\n );\n }\n };\n\n private _getDelayTime = (delay: TooltipDelay): number => {\n switch (delay) {\n case TooltipDelay.medium:\n return 300;\n case TooltipDelay.long:\n return 500;\n default:\n return 0;\n }\n };\n}\n","import { getGlobalClassNames } from '../../Styling';\nimport type { ITooltipHostStyleProps, ITooltipHostStyles } from './TooltipHost.types';\n\nconst GlobalClassNames = {\n root: 'ms-TooltipHost',\n ariaPlaceholder: 'ms-TooltipHost-aria-placeholder',\n};\n\nexport const getStyles = (props: ITooltipHostStyleProps): ITooltipHostStyles => {\n const { className, theme } = props;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n {\n display: 'inline',\n },\n className,\n ],\n };\n};\n","import * as React from 'react';\nimport { styled } from '../../Utilities';\nimport { TooltipHostBase } from './TooltipHost.base';\nimport { getStyles } from './TooltipHost.styles';\nimport type { ITooltipHostProps, ITooltipHostStyleProps, ITooltipHostStyles } from './TooltipHost.types';\n\nexport const TooltipHost: React.FunctionComponent = styled<\n ITooltipHostProps,\n ITooltipHostStyleProps,\n ITooltipHostStyles\n>(TooltipHostBase, getStyles, undefined, {\n scope: 'TooltipHost',\n});\n","import * as React from 'react';\nimport { TooltipHostBase } from './TooltipHost.base';\nimport { TooltipDelay } from './Tooltip.types';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport type { ITooltipProps } from './Tooltip.types';\nimport type { ICalloutProps } from '../../Callout';\nimport type { IRefObject, IStyleFunctionOrObject } from '../../Utilities';\nimport type { IStyle, ITheme } from '../../Styling';\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipHost {\n /**\n * Shows the tooltip.\n */\n show: () => void;\n\n /**\n * Dismisses the tooltip.\n */\n dismiss: () => void;\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport enum TooltipOverflowMode {\n /** Only show tooltip if parent DOM element is overflowing */\n Parent,\n\n /**\n * Only show tooltip if tooltip host's content is overflowing.\n * Note that this does not check the children for overflow, only the TooltipHost root.\n */\n Self,\n}\n\n/**\n * TooltipHost props. Note that native props (such as `id`, `className`, and `aria-` props) are\n * passed through to the Tooltip itself, rather than being used on the host element.\n * {@docCategory Tooltip}\n */\nexport interface ITooltipHostProps extends Omit, 'content'> {\n /**\n * Optional callback to access the ITooltipHost interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject;\n\n /**\n * Additional properties to pass through for Callout.\n */\n calloutProps?: ICalloutProps;\n\n /**\n * Number of milliseconds to delay closing the tooltip, so that the user has time to hover over\n * the tooltip and interact with it. Hovering over the tooltip will count as hovering over the\n * host, so that the tooltip will stay open if the user is actively interacting with it.\n */\n closeDelay?: number;\n\n /**\n * Content to display in the Tooltip.\n */\n content?: string | JSX.Element | JSX.Element[];\n\n /**\n * Length of delay before showing the tooltip on hover.\n * @defaultvalue TooltipDelay.medium\n */\n delay?: TooltipDelay;\n\n /**\n * How the tooltip should be anchored to its `targetElement`.\n * @defaultvalue DirectionalHint.topCenter\n */\n directionalHint?: DirectionalHint;\n\n /**\n * How the element should be positioned in RTL layouts.\n * If not specified, a mirror of `directionalHint` will be used.\n */\n directionalHintForRTL?: DirectionalHint;\n\n /**\n * Class name to apply to tooltip host.\n */\n hostClassName?: string;\n\n /**\n * Class name to apply to the *tooltip itself*, not the host.\n * To apply a class to the host, use `hostClassName` or `styles.root`.\n */\n className?: string;\n\n /**\n * If this is unset (the default), the tooltip is always shown even if there's no overflow.\n *\n * If set, only show the tooltip if the specified element (`Self` or `Parent`) has overflow.\n * When set to `Parent`, the parent element is also used as the tooltip's target element.\n *\n * Note that even with `Self` mode, the TooltipHost *does not* check whether any children have overflow.\n */\n overflowMode?: TooltipOverflowMode;\n\n /**\n * Whether or not to mark the TooltipHost root element as described by the tooltip.\n * Since this applies aria-describedby to a generic
    , the description will not be\n * read by screen readers. Instead, the caller should pass an `id` to the TooltipHost\n * (to be passed through to the Tooltip) and mark the appropriate element as `aria-describedby`\n * with the `id`.\n * @defaultvalue true\n * @deprecated use aria-describedby on the appropriate element instead\n */\n setAriaDescribedBy?: boolean;\n\n /**\n * Additional properties to pass through for Tooltip.\n */\n tooltipProps?: ITooltipProps;\n\n /**\n * Optional ID to pass through to the tooltip (not used on the host itself).\n * Auto-generated if not provided.\n */\n id?: string;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by higher-order component.\n */\n theme?: ITheme;\n\n /**\n * Notifies when tooltip becomes visible or hidden, whatever the trigger was.\n */\n onTooltipToggle?(isTooltipVisible: boolean): void;\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipHostStyleProps {\n theme: ITheme;\n className?: string;\n}\n\n/**\n * {@docCategory Tooltip}\n */\nexport interface ITooltipHostStyles {\n /**\n * Style for the host wrapper element.\n */\n root: IStyle;\n}\n","import * as React from 'react';\n\nimport { KeyCodes } from '../../../Utilities';\nimport type { IReactProps, IRefObject, IRenderFunction, IStyleFunctionOrObject } from '../../../Utilities';\nimport type { IPersonaProps } from '../../Persona/Persona.types';\nimport type { IStyle, ITheme } from '../../../Styling';\nimport type { ISpinnerStyleProps } from '../../Spinner/Spinner.types';\nimport type { ISuggestionItemProps } from './SuggestionsItem.types';\nimport { IIconProps } from '../../Icon/Icon.types';\n/**\n * Suggestions component.\n * {@docCategory Pickers}\n */\nexport interface ISuggestions {\n /** Execute the action selected. Can be SearchMore or ForceResolve actions. */\n executeSelectedAction: () => void;\n\n /** Focus on the ForceResolve action above the suggestions. If not available then focus on SearchMore action. */\n focusAboveSuggestions: () => void;\n\n /** Focus on the SearchMore action below the suggestions. If not available then focus on ForceResolve action. */\n focusBelowSuggestions: () => void;\n\n /** Focus the SearchMore action button. */\n focusSearchForMoreButton: () => void;\n\n /** Whether it has any suggested actions like ForceResolve or SearchMore. */\n hasSuggestedAction: () => boolean;\n\n /** Whether any of the suggested actions (ForceResolve or SearchMore) is selected. */\n hasSuggestedActionSelected: () => boolean;\n\n /** Returns true if the event was handled, false otherwise. */\n tryHandleKeyDown: (keyCode: number, currentSuggestionIndex: number) => boolean;\n}\n\n/**\n * Suggestions props interface. Refers to the entire container holding all the suggestions.\n * Type T is the type of the items that are displayed.\n * {@docCategory Pickers}\n */\nexport interface ISuggestionsProps extends IReactProps {\n /**\n * Optional callback to access the ISuggestions interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject>;\n\n /**\n * How the suggestion should look in the suggestion list.\n */\n onRenderSuggestion: (props: T, suggestionItemProps: ISuggestionItemProps) => JSX.Element;\n\n /**\n * What should occur when a suggestion is clicked\n */\n onSuggestionClick: (ev?: React.MouseEvent, item?: any, index?: number) => void;\n\n /**\n * The list of Suggestions that will be displayed\n */\n suggestions: ISuggestionModel[];\n\n /**\n * How the \"no result found\" should look in the suggestion list.\n */\n onRenderNoResultFound?: IRenderFunction;\n\n /**\n * The text that appears at the top of the suggestions list.\n */\n suggestionsHeaderText?: string;\n\n /**\n * The text that should appear at the top of the most recently used box.\n */\n mostRecentlyUsedHeaderText?: string;\n\n /**\n * The icon that appears indicating to the user that they can search for more results.\n */\n searchForMoreIcon?: IIconProps;\n\n /**\n * The text that appears indicating to the user that they can search for more results.\n */\n searchForMoreText?: string;\n\n /**\n * The callback that should be called when the user attempts to get more results\n */\n onGetMoreResults?: () => void;\n\n /**\n * The text that appears indicating to the use to force resolve the input\n */\n forceResolveText?: string;\n\n /**\n * The callback that should be called to see if the force resolve command should be shown\n */\n showForceResolve?: () => boolean;\n\n /**\n * The callback that should be called when the user attempts to use the input text as as item\n */\n createGenericItem?: () => void;\n\n /**\n * The CSS className of the suggestions root.\n */\n className?: string;\n\n /**\n * The CSS className of the suggestions list\n */\n suggestionsClassName?: string;\n\n /**\n * The text that should appear if there is a search error.\n *\n * @deprecated Use noResultsFoundText instead.\n */\n searchErrorText?: string;\n\n /**\n * The text that should appear if no results are found when searching.\n */\n noResultsFoundText?: string;\n\n /**\n * The className of the suggestion item.\n */\n suggestionsItemClassName?: string;\n\n /**\n * Used to indicate whether or not the user can request more suggestions.\n * Dictates whether or not the searchForMore button is displayed.\n */\n moreSuggestionsAvailable?: boolean;\n\n /**\n * Used to indicate whether or not the suggestions are loading.\n */\n isLoading?: boolean;\n\n /**\n * Used to indicate whether or not the suggestions are taking an extended amount of time to load.\n */\n isExtendedLoading?: boolean;\n\n /**\n * Used to indicate whether or not the component is searching for more results.\n */\n isSearching?: boolean;\n\n /**\n * The text to display while the results are loading.\n */\n loadingText?: string;\n\n /**\n * The text to display while searching for more results in a limited suggestions list.\n */\n searchingText?: string;\n\n /**\n * Indicates if a short list of recent suggestions should be shown.\n */\n isMostRecentlyUsedVisible?: boolean;\n\n /**\n * Function to fire when one of the optional remove buttons on a suggestion is clicked.\n *\n * TODO (adjective-object) remove IPersonaprops before the next major version bump\n */\n onSuggestionRemove?: (ev?: React.MouseEvent, item?: T | IPersonaProps, index?: number) => void;\n\n /**\n * Indicates if the text in resultsFooter or resultsFooterFull should be shown at the end of the suggestion list.\n * @defaultvalue true\n */\n isResultsFooterVisible?: boolean;\n\n /**\n * Maximum number of suggestions to show in the full suggestion list.\n */\n resultsMaximumNumber?: number;\n\n /**\n * A renderer that adds an element at the end of the suggestions list it has more items than resultsMaximumNumber.\n * This should not include interactive elements as the footer is not focusable.\n */\n resultsFooterFull?: (props: ISuggestionsProps) => JSX.Element;\n\n /**\n * A renderer that adds an element at the end of the suggestions list it has fewer items than resultsMaximumNumber.\n * This should not include interactive elements as the footer is not focusable.\n */\n resultsFooter?: (props: ISuggestionsProps) => JSX.Element;\n\n /**\n * Indicates whether to show a button with each suggestion to remove that suggestion.\n */\n showRemoveButtons?: boolean;\n\n /**\n * Screen reader message to read when there are suggestions available.\n */\n suggestionsAvailableAlertText?: string;\n\n /**\n * A function that resets focus to the expected item in the suggestion list\n */\n refocusSuggestions?: (keyCode: KeyCodes) => void;\n\n /**\n * An ARIA label for the container that is the parent of the suggestions.\n */\n suggestionsContainerAriaLabel?: string;\n\n /**\n * An ARIA label to use for the buttons to remove individual suggestions.\n */\n removeSuggestionAriaLabel?: string;\n\n /**\n * The string that will be used as the suggestionsListId.\n * Will be used by the BasePicker to keep track of the list for aria.\n */\n suggestionsListId?: string;\n\n /** Call to provide customized styling that will layer on top of the variant rules. */\n styles?: IStyleFunctionOrObject;\n\n /** Theme provided by High-Order Component. */\n theme?: ITheme;\n\n /**\n * Props for the icon used in the item's remove button.\n * @defaultvalue `{ iconName:'Cancel' }`\n */\n removeButtonIconProps?: IIconProps;\n}\n\n/**\n * The props needed to construct Suggestions styles.\n * {@docCategory Pickers}\n */\nexport type ISuggestionsStyleProps = Required, 'theme'>> &\n Pick, 'className' | 'suggestionsClassName'> & {\n /** Whether the forceResolve actionButton is selected. */\n forceResolveButtonSelected?: boolean;\n\n /** Whether the searchForMore actionButton is selected. */\n searchForMoreButtonSelected?: boolean;\n };\n\n/**\n * Represents the stylable areas of the Suggestions.\n * {@docCategory Pickers}\n */\nexport interface ISuggestionsStyles {\n /** Root element of the suggestions outer wrapper. */\n root: IStyle;\n\n /** Refers to the suggestions container. */\n suggestionsContainer: IStyle;\n\n /** Refers to the title rendered for suggestions container header and/or footer (if provided). */\n title: IStyle;\n\n /** Refers to the 'Force resolve' actionButton. */\n forceResolveButton: IStyle;\n\n /** Refers to the 'Search for more' actionButton. */\n searchForMoreButton: IStyle;\n\n /** Refers to the text rendered when no suggestions are found. */\n noSuggestions: IStyle;\n\n /** Refers to the text displaying if more suggestions available. */\n suggestionsAvailable: IStyle;\n\n /** SubComponents (Spinner) styles. */\n subComponentStyles: ISuggestionsSubComponentStyles;\n}\n\n/**\n * Styles interface of the SubComponents rendered within PeoplePickerItemSelected.\n * {@docCategory Pickers}\n */\nexport interface ISuggestionsSubComponentStyles {\n /** Refers to the Spinner rendered within the Suggestions when searching or loading suggestions. */\n spinner: IStyleFunctionOrObject;\n}\n\n/**\n * SuggestionModel interface.\n * Type T is the type of the item that is suggested (Persona, Tag or any other custom picker).\n * {@docCategory Pickers}\n */\nexport interface ISuggestionModel {\n /** The suggested item of the type T */\n item: T;\n\n /** Whether the suggested item is selected or not. */\n selected: boolean;\n\n /** Aria-label string for each suggested item. */\n ariaLabel?: string;\n}\n\n/**\n * Enum to help identify which suggestions action button is selected.\n * {@docCategory Pickers}\n */\nexport enum SuggestionActionType {\n /** None of the actions is selected. */\n none,\n\n /** ForceResolve action is selected. */\n forceResolve,\n\n /** SearchMore action is selected. */\n searchMore,\n}\n","/* eslint-disable */\nimport { loadStyles } from '@microsoft/load-themed-styles';\nloadStyles([{\"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}\"}]);\nexport const root = \"root_8c91000a\";\nexport const suggestionsItem = \"suggestionsItem_8c91000a\";\nexport const closeButton = \"closeButton_8c91000a\";\nexport const suggestionsItemIsSuggested = \"suggestionsItemIsSuggested_8c91000a\";\nexport const itemButton = \"itemButton_8c91000a\";\nexport const actionButton = \"actionButton_8c91000a\";\nexport const buttonSelected = \"buttonSelected_8c91000a\";\nexport const suggestionsTitle = \"suggestionsTitle_8c91000a\";\nexport const suggestionsContainer = \"suggestionsContainer_8c91000a\";\nexport const suggestionsNone = \"suggestionsNone_8c91000a\";\nexport const suggestionsSpinner = \"suggestionsSpinner_8c91000a\";\nexport const suggestionsAvailable = \"suggestionsAvailable_8c91000a\";","import * as React from 'react';\n\nimport { classNamesFunction, css, initializeComponentRef } from '../../../Utilities';\nimport { CommandButton, IconButton } from '../../../Button';\nimport * as stylesImport from './Suggestions.scss';\nimport type { IProcessedStyleSet } from '../../../Styling';\nimport type { ISuggestionItemProps, ISuggestionsItemStyleProps, ISuggestionsItemStyles } from './SuggestionsItem.types';\n\nconst legacyStyles: any = stylesImport;\n\nconst getClassNames = classNamesFunction();\n\n/**\n * {@docCategory Pickers}\n */\nexport class SuggestionsItem extends React.Component, {}> {\n constructor(props: ISuggestionItemProps) {\n super(props);\n\n initializeComponentRef(this);\n }\n\n public render(): JSX.Element {\n const {\n suggestionModel,\n RenderSuggestion,\n onClick,\n className,\n id,\n onRemoveItem,\n isSelectedOverride,\n removeButtonAriaLabel,\n styles,\n theme,\n removeButtonIconProps,\n } = this.props;\n\n // TODO\n // Clean this up by leaving only the first part after removing support for SASS.\n // Currently we can not remove the SASS styles from SuggestionsItem class because it\n // might be used by consumers separately from pickers extending from BasePicker\n // and have not used the new 'styles' prop. Because it's expecting a type parameter,\n // we can not use the 'styled' function without adding some helpers which can break\n // downstream consumers who did not use the new helpers.\n // We check for 'styles' prop which is going to be injected by the 'styled' HOC\n // in Suggestions when the typed SuggestionsItem class is ready to be rendered. If the\n // check passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker),\n // then we just use the old SASS styles instead.\n const classNames: Partial> = styles\n ? getClassNames(styles, {\n theme: theme!,\n className,\n suggested: suggestionModel.selected || isSelectedOverride,\n })\n : {\n root: css(\n 'ms-Suggestions-item',\n legacyStyles.suggestionsItem,\n {\n ['is-suggested ' + legacyStyles.suggestionsItemIsSuggested]:\n suggestionModel.selected || isSelectedOverride,\n },\n className,\n ),\n itemButton: css('ms-Suggestions-itemButton', legacyStyles.itemButton),\n closeButton: css('ms-Suggestions-closeButton', legacyStyles.closeButton),\n };\n\n return (\n
    \n \n {RenderSuggestion(suggestionModel.item, this.props)}\n \n {this.props.showRemoveButton ? (\n \n ) : null}\n
    \n );\n }\n}\n","import * as React from 'react';\n\nimport { initializeComponentRef, KeyCodes, classNamesFunction, css, styled } from '../../../Utilities';\nimport { CommandButton } from '../../../Button';\nimport { Spinner } from '../../../Spinner';\nimport { Announced } from '../../../Announced';\nimport { SuggestionActionType } from './Suggestions.types';\nimport { SuggestionsItem } from './SuggestionsItem';\nimport { getStyles as suggestionsItemStyles } from './SuggestionsItem.styles';\nimport * as stylesImport from './Suggestions.scss';\nimport type { IStyleFunctionOrObject } from '../../../Utilities';\nimport type { IProcessedStyleSet } from '../../../Styling';\nimport type { IButton } from '../../../Button';\nimport type { ISpinnerStyleProps, ISpinnerStyles } from '../../../Spinner';\nimport type { ISuggestionsProps, ISuggestionsStyleProps, ISuggestionsStyles } from './Suggestions.types';\nimport type { ISuggestionItemProps, ISuggestionsItemStyleProps, ISuggestionsItemStyles } from './SuggestionsItem.types';\n\nconst legacyStyles: any = stylesImport;\n\nconst getClassNames = classNamesFunction();\n\nexport interface ISuggestionsState {\n selectedActionType: SuggestionActionType;\n}\n\nconst StyledSuggestionsItem = styled, ISuggestionsItemStyleProps, ISuggestionsItemStyles>(\n SuggestionsItem,\n suggestionsItemStyles,\n undefined,\n {\n scope: 'SuggestionItem',\n },\n);\n\n/**\n * {@docCategory Pickers}\n */\nexport class Suggestions extends React.Component, ISuggestionsState> {\n protected _forceResolveButton = React.createRef();\n protected _searchForMoreButton = React.createRef();\n protected _selectedElement = React.createRef();\n protected _scrollContainer = React.createRef();\n private activeSelectedElement: HTMLDivElement | null;\n private _classNames: Partial>;\n\n constructor(suggestionsProps: ISuggestionsProps) {\n super(suggestionsProps);\n\n initializeComponentRef(this);\n\n this.state = {\n selectedActionType: SuggestionActionType.none,\n };\n }\n\n public componentDidMount(): void {\n this.scrollSelected();\n this.activeSelectedElement = this._selectedElement ? this._selectedElement.current : null;\n }\n\n public componentDidUpdate(): void {\n // Only scroll to selected element if the selected element has changed. Otherwise do nothing.\n // This prevents some odd behavior where scrolling the active element out of view and clicking on a selected element\n // will trigger a focus event and not give the clicked element the click.\n if (this._selectedElement.current && this.activeSelectedElement !== this._selectedElement.current) {\n this.scrollSelected();\n this.activeSelectedElement = this._selectedElement.current;\n }\n }\n\n public render(): JSX.Element {\n const {\n forceResolveText,\n mostRecentlyUsedHeaderText,\n searchForMoreIcon,\n searchForMoreText,\n className,\n moreSuggestionsAvailable,\n noResultsFoundText,\n suggestions,\n isLoading,\n isSearching,\n loadingText,\n onRenderNoResultFound,\n searchingText,\n isMostRecentlyUsedVisible,\n resultsMaximumNumber,\n resultsFooterFull,\n resultsFooter,\n isResultsFooterVisible = true,\n suggestionsHeaderText,\n suggestionsClassName,\n theme,\n styles,\n suggestionsListId,\n suggestionsContainerAriaLabel,\n } = this.props;\n\n // TODO\n // Clean this up by leaving only the first part after removing support for SASS.\n // Currently we can not remove the SASS styles from Suggestions class because it\n // might be used by consumers separately from pickers extending from BasePicker\n // and have not used the new 'styles' prop. Because it's expecting a type parameter,\n // we can not use the 'styled' function without adding some helpers which can break\n // downstream consumers who did not use the new helpers.\n // We check for 'styles' prop which is going to be injected by the 'styled' HOC\n // in BasePicker when the typed Suggestions class is ready to be rendered. If the check\n // passes we can use the CSS-in-JS styles. If the check fails (ex: custom picker),\n // then we just use the old SASS styles instead.\n this._classNames = styles\n ? getClassNames(styles, {\n theme: theme!,\n className,\n suggestionsClassName,\n forceResolveButtonSelected: this.state.selectedActionType === SuggestionActionType.forceResolve,\n searchForMoreButtonSelected: this.state.selectedActionType === SuggestionActionType.searchMore,\n })\n : {\n root: css('ms-Suggestions', className, legacyStyles.root),\n title: css('ms-Suggestions-title', legacyStyles.suggestionsTitle),\n searchForMoreButton: css('ms-SearchMore-button', legacyStyles.actionButton, {\n ['is-selected ' + legacyStyles.buttonSelected]:\n this.state.selectedActionType === SuggestionActionType.searchMore,\n }),\n forceResolveButton: css('ms-forceResolve-button', legacyStyles.actionButton, {\n ['is-selected ' + legacyStyles.buttonSelected]:\n this.state.selectedActionType === SuggestionActionType.forceResolve,\n }),\n suggestionsAvailable: css('ms-Suggestions-suggestionsAvailable', legacyStyles.suggestionsAvailable),\n suggestionsContainer: css(\n 'ms-Suggestions-container',\n legacyStyles.suggestionsContainer,\n suggestionsClassName,\n ),\n noSuggestions: css('ms-Suggestions-none', legacyStyles.suggestionsNone),\n };\n\n const spinnerStyles = this._classNames.subComponentStyles\n ? (this._classNames.subComponentStyles.spinner as IStyleFunctionOrObject)\n : undefined;\n\n // TODO: cleanup after refactor of pickers to composition pattern and remove SASS support.\n const spinnerClassNameOrStyles = styles\n ? { styles: spinnerStyles }\n : {\n className: css('ms-Suggestions-spinner', legacyStyles.suggestionsSpinner),\n };\n\n const noResults = () => {\n const defaultRender = () => {\n return
    {noResultsFoundText}
    ;\n };\n\n return (\n // This ID can be used by the parent to set aria-activedescendant to this\n
    \n {onRenderNoResultFound ? onRenderNoResultFound(undefined, defaultRender) : defaultRender()}\n
    \n );\n };\n\n // MostRecently Used text should supercede the header text if it's there and available.\n let headerText: string | undefined = suggestionsHeaderText;\n if (isMostRecentlyUsedVisible && mostRecentlyUsedHeaderText) {\n headerText = mostRecentlyUsedHeaderText;\n }\n\n let footerTitle: ((props: ISuggestionsProps) => JSX.Element) | undefined = undefined;\n if (isResultsFooterVisible) {\n footerTitle = suggestions.length >= (resultsMaximumNumber as number) ? resultsFooterFull : resultsFooter;\n }\n\n const hasNoSuggestions = (!suggestions || !suggestions.length) && !isLoading;\n\n const forceResolveId =\n this.state.selectedActionType === SuggestionActionType.forceResolve ? 'sug-selectedAction' : undefined;\n const searchForMoreId =\n this.state.selectedActionType === SuggestionActionType.searchMore ? 'sug-selectedAction' : undefined;\n\n return (\n \n \n\n {headerText ?
    {headerText}
    : null}\n {forceResolveText && this._shouldShowForceResolve() && (\n \n {forceResolveText}\n \n )}\n {isLoading && }\n {hasNoSuggestions ? noResults() : this._renderSuggestions()}\n {searchForMoreText && moreSuggestionsAvailable && (\n \n {searchForMoreText}\n \n )}\n {isSearching ? : null}\n {footerTitle && !moreSuggestionsAvailable && !isMostRecentlyUsedVisible && !isSearching ? (\n
    {footerTitle(this.props)}
    \n ) : null}\n
    \n );\n }\n\n /**\n * Returns true if the event was handled, false otherwise\n */\n public tryHandleKeyDown = (keyCode: number, currentSuggestionIndex: number): boolean => {\n let isEventHandled = false;\n let newSelectedActionType = null;\n const currentSelectedAction = this.state.selectedActionType;\n const suggestionLength = this.props.suggestions.length;\n if (keyCode === KeyCodes.down) {\n switch (currentSelectedAction) {\n case SuggestionActionType.forceResolve:\n if (suggestionLength > 0) {\n this._refocusOnSuggestions(keyCode);\n newSelectedActionType = SuggestionActionType.none;\n } else if (this._searchForMoreButton.current) {\n newSelectedActionType = SuggestionActionType.searchMore;\n } else {\n newSelectedActionType = SuggestionActionType.forceResolve;\n }\n break;\n case SuggestionActionType.searchMore:\n if (this._forceResolveButton.current) {\n newSelectedActionType = SuggestionActionType.forceResolve;\n } else if (suggestionLength > 0) {\n this._refocusOnSuggestions(keyCode);\n newSelectedActionType = SuggestionActionType.none;\n } else {\n newSelectedActionType = SuggestionActionType.searchMore;\n }\n break;\n case SuggestionActionType.none:\n if (currentSuggestionIndex === -1 && this._forceResolveButton.current) {\n newSelectedActionType = SuggestionActionType.forceResolve;\n }\n break;\n }\n } else if (keyCode === KeyCodes.up) {\n switch (currentSelectedAction) {\n case SuggestionActionType.forceResolve:\n if (this._searchForMoreButton.current) {\n newSelectedActionType = SuggestionActionType.searchMore;\n } else if (suggestionLength > 0) {\n this._refocusOnSuggestions(keyCode);\n newSelectedActionType = SuggestionActionType.none;\n }\n break;\n case SuggestionActionType.searchMore:\n if (suggestionLength > 0) {\n this._refocusOnSuggestions(keyCode);\n newSelectedActionType = SuggestionActionType.none;\n } else if (this._forceResolveButton.current) {\n newSelectedActionType = SuggestionActionType.forceResolve;\n }\n break;\n case SuggestionActionType.none:\n if (currentSuggestionIndex === -1 && this._searchForMoreButton.current) {\n newSelectedActionType = SuggestionActionType.searchMore;\n }\n break;\n }\n }\n\n if (newSelectedActionType !== null) {\n this.setState({ selectedActionType: newSelectedActionType });\n isEventHandled = true;\n }\n\n return isEventHandled;\n };\n\n public hasSuggestedAction(): boolean {\n return !!this._searchForMoreButton.current || !!this._forceResolveButton.current;\n }\n\n public hasSuggestedActionSelected(): boolean {\n return this.state.selectedActionType !== SuggestionActionType.none;\n }\n\n public executeSelectedAction(): void {\n switch (this.state.selectedActionType) {\n case SuggestionActionType.forceResolve:\n this._forceResolve();\n break;\n case SuggestionActionType.searchMore:\n this._getMoreResults();\n break;\n }\n }\n\n public focusAboveSuggestions(): void {\n if (this._forceResolveButton.current) {\n this.setState({ selectedActionType: SuggestionActionType.forceResolve });\n } else if (this._searchForMoreButton.current) {\n this.setState({ selectedActionType: SuggestionActionType.searchMore });\n }\n }\n\n public focusBelowSuggestions(): void {\n if (this._searchForMoreButton.current) {\n this.setState({ selectedActionType: SuggestionActionType.searchMore });\n } else if (this._forceResolveButton.current) {\n this.setState({ selectedActionType: SuggestionActionType.forceResolve });\n }\n }\n\n public focusSearchForMoreButton(): void {\n if (this._searchForMoreButton.current) {\n this._searchForMoreButton.current.focus();\n }\n }\n\n public scrollSelected(): void {\n if (\n this._selectedElement.current &&\n this._scrollContainer.current &&\n this._scrollContainer.current.scrollTo !== undefined\n ) {\n const { offsetHeight, offsetTop } = this._selectedElement.current;\n const { offsetHeight: parentOffsetHeight, scrollTop } = this._scrollContainer.current;\n\n const isAbove = offsetTop < scrollTop;\n const isBelow = offsetTop + offsetHeight > scrollTop + parentOffsetHeight;\n\n if (isAbove) {\n this._scrollContainer.current.scrollTo(0, offsetTop);\n } else if (isBelow) {\n this._scrollContainer.current.scrollTo(0, offsetTop - parentOffsetHeight + offsetHeight);\n }\n }\n }\n\n private _getAlertText = () => {\n const {\n isLoading,\n isSearching,\n suggestions,\n suggestionsAvailableAlertText,\n noResultsFoundText,\n isExtendedLoading,\n loadingText,\n } = this.props;\n\n if (!isLoading && !isSearching) {\n if (suggestions.length > 0) {\n return suggestionsAvailableAlertText || '';\n }\n if (noResultsFoundText) {\n return noResultsFoundText;\n }\n } else if (isLoading && isExtendedLoading) {\n return loadingText || '';\n }\n return '';\n };\n\n private _renderSuggestions(): JSX.Element | null {\n const {\n onRenderSuggestion,\n removeSuggestionAriaLabel,\n suggestionsItemClassName,\n resultsMaximumNumber,\n showRemoveButtons,\n removeButtonIconProps,\n } = this.props;\n\n let { suggestions } = this.props;\n\n const StyledTypedSuggestionsItem: React.FunctionComponent> = StyledSuggestionsItem;\n\n let selectedIndex = -1;\n suggestions.some((element, index) => {\n if (element.selected) {\n selectedIndex = index;\n return true;\n }\n return false;\n });\n\n if (resultsMaximumNumber) {\n suggestions =\n selectedIndex >= resultsMaximumNumber\n ? suggestions.slice(selectedIndex - resultsMaximumNumber + 1, selectedIndex + 1)\n : suggestions.slice(0, resultsMaximumNumber);\n }\n\n if (suggestions.length === 0) {\n return null;\n }\n\n return (\n
    \n {suggestions.map((suggestion, index) => (\n \n \n
    \n ))}\n \n );\n }\n\n private _getMoreResults = (): void => {\n if (this.props.onGetMoreResults) {\n this.props.onGetMoreResults();\n\n // Reset selected action type as it will be of type SuggestionActionType.none after more results are gotten\n this.setState({ selectedActionType: SuggestionActionType.none });\n }\n };\n\n private _forceResolve = (): void => {\n if (this.props.createGenericItem) {\n this.props.createGenericItem();\n }\n };\n\n private _shouldShowForceResolve = (): boolean => {\n return this.props.showForceResolve ? this.props.showForceResolve() : false;\n };\n\n private _onClickTypedSuggestionsItem = (item: T, index: number): ((ev: React.MouseEvent) => void) => {\n return (ev: React.MouseEvent): void => {\n this.props.onSuggestionClick(ev, item, index);\n };\n };\n\n private _refocusOnSuggestions = (keyCode: number): void => {\n if (typeof this.props.refocusSuggestions === 'function') {\n this.props.refocusSuggestions(keyCode);\n }\n };\n\n private _onRemoveTypedSuggestionsItem = (item: T, index: number): ((ev: React.MouseEvent) => void) => {\n return (ev: React.MouseEvent): void => {\n const onSuggestionRemove = this.props.onSuggestionRemove!;\n onSuggestionRemove(ev, item, index);\n ev.stopPropagation();\n };\n };\n}\n","import {\n getGlobalClassNames,\n getHighContrastNoAdjustStyle,\n HighContrastSelector,\n hiddenContentStyle,\n} from '../../../Styling';\nimport type { IStyle } from '../../../Styling';\nimport type { ISuggestionsStyleProps, ISuggestionsStyles } from './Suggestions.types';\n\nconst GlobalClassNames = {\n root: 'ms-Suggestions',\n suggestionsContainer: 'ms-Suggestions-container',\n title: 'ms-Suggestions-title',\n forceResolveButton: 'ms-forceResolve-button',\n searchForMoreButton: 'ms-SearchMore-button',\n spinner: 'ms-Suggestions-spinner',\n noSuggestions: 'ms-Suggestions-none',\n suggestionsAvailable: 'ms-Suggestions-suggestionsAvailable',\n isSelected: 'is-selected',\n};\n\nexport function getStyles(props: ISuggestionsStyleProps): ISuggestionsStyles {\n const { className, suggestionsClassName, theme, forceResolveButtonSelected, searchForMoreButtonSelected } = props;\n\n const { palette, semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const actionButtonStyles: IStyle = {\n backgroundColor: 'transparent',\n border: 0,\n cursor: 'pointer',\n margin: 0,\n paddingLeft: 8,\n position: 'relative',\n borderTop: `1px solid ${palette.neutralLight}`,\n height: 40,\n textAlign: 'left',\n width: '100%',\n fontSize: fonts.small.fontSize,\n selectors: {\n ':hover': {\n backgroundColor: semanticColors.menuItemBackgroundPressed,\n cursor: 'pointer',\n },\n ':focus, :active': {\n backgroundColor: palette.themeLight,\n },\n '.ms-Button-icon': {\n fontSize: fonts.mediumPlus.fontSize,\n width: 25,\n },\n '.ms-Button-label': {\n margin: '0 4px 0 9px',\n },\n },\n };\n\n const actionButtonSelectedStyles: IStyle = {\n backgroundColor: palette.themeLight,\n selectors: {\n [HighContrastSelector]: {\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n color: 'HighlightText',\n ...getHighContrastNoAdjustStyle(),\n },\n ':after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n bottom: 0,\n right: 0,\n border: `1px solid ${theme.semanticColors.focusBorder}`,\n },\n },\n };\n\n return {\n root: [\n classNames.root,\n {\n minWidth: 260,\n },\n className,\n ],\n suggestionsContainer: [\n classNames.suggestionsContainer,\n {\n overflowY: 'auto',\n overflowX: 'hidden',\n maxHeight: 300,\n transform: 'translate3d(0,0,0)',\n },\n suggestionsClassName,\n ],\n title: [\n classNames.title,\n {\n padding: '0 12px',\n fontSize: fonts.small.fontSize,\n color: palette.themePrimary,\n lineHeight: 40,\n borderBottom: `1px solid ${semanticColors.menuItemBackgroundPressed}`,\n },\n ],\n forceResolveButton: [\n classNames.forceResolveButton,\n actionButtonStyles,\n forceResolveButtonSelected && [classNames.isSelected, actionButtonSelectedStyles],\n ],\n searchForMoreButton: [\n classNames.searchForMoreButton,\n actionButtonStyles,\n searchForMoreButtonSelected && [classNames.isSelected, actionButtonSelectedStyles],\n ],\n noSuggestions: [\n classNames.noSuggestions,\n {\n textAlign: 'center',\n color: palette.neutralSecondary,\n fontSize: fonts.small.fontSize,\n lineHeight: 30,\n },\n ],\n suggestionsAvailable: [classNames.suggestionsAvailable, hiddenContentStyle],\n subComponentStyles: {\n spinner: {\n root: [\n classNames.spinner,\n {\n margin: '5px 0',\n paddingLeft: 14,\n textAlign: 'left',\n whiteSpace: 'nowrap',\n lineHeight: 20,\n fontSize: fonts.small.fontSize,\n },\n ],\n circle: {\n display: 'inline-block',\n verticalAlign: 'middle',\n },\n label: {\n display: 'inline-block',\n verticalAlign: 'middle',\n margin: '0 10px 0 16px',\n },\n },\n },\n };\n}\n","import type { ISuggestionModel } from './Suggestions.types';\n\n/**\n * {@docCategory Pickers}\n */\nexport class SuggestionsController {\n public currentIndex: number;\n public currentSuggestion: ISuggestionModel | undefined;\n public suggestions: ISuggestionModel[];\n\n constructor() {\n this.suggestions = [];\n this.currentIndex = -1;\n }\n\n public updateSuggestions(newSuggestions: T[], selectedIndex?: number, maxCount?: number): void {\n if (newSuggestions && newSuggestions.length > 0) {\n if (maxCount && newSuggestions.length > maxCount) {\n const startIndex = selectedIndex && selectedIndex > maxCount ? selectedIndex + 1 - maxCount : 0;\n newSuggestions = newSuggestions.slice(startIndex, startIndex + maxCount - 1);\n }\n this.suggestions = this.convertSuggestionsToSuggestionItems(newSuggestions);\n this.currentIndex = selectedIndex ? selectedIndex : 0;\n if (selectedIndex! === -1) {\n this.currentSuggestion = undefined;\n } else if (selectedIndex !== undefined) {\n this.suggestions[selectedIndex].selected = true;\n this.currentSuggestion = this.suggestions[selectedIndex];\n }\n } else {\n this.suggestions = [];\n this.currentIndex = -1;\n this.currentSuggestion = undefined;\n }\n }\n\n /**\n * Increments the suggestion index and gets the next suggestion in the list.\n */\n public nextSuggestion(): boolean {\n if (this.suggestions && this.suggestions.length) {\n if (this.currentIndex < this.suggestions.length - 1) {\n this.setSelectedSuggestion(this.currentIndex + 1);\n return true;\n } else if (this.currentIndex === this.suggestions.length - 1) {\n this.setSelectedSuggestion(0);\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Decrements the suggestion index and gets the previous suggestion in the list.\n */\n public previousSuggestion(): boolean {\n if (this.suggestions && this.suggestions.length) {\n if (this.currentIndex > 0) {\n this.setSelectedSuggestion(this.currentIndex - 1);\n return true;\n } else if (this.currentIndex === 0) {\n this.setSelectedSuggestion(this.suggestions.length - 1);\n return true;\n }\n }\n\n return false;\n }\n\n public getSuggestions(): ISuggestionModel[] {\n return this.suggestions;\n }\n\n public getCurrentItem(): ISuggestionModel {\n return this.currentSuggestion!;\n }\n\n public getSuggestionAtIndex(index: number): ISuggestionModel {\n return this.suggestions[index];\n }\n\n public hasSelectedSuggestion(): boolean {\n return this.currentSuggestion ? true : false;\n }\n\n public removeSuggestion(index: number): void {\n this.suggestions.splice(index, 1);\n }\n\n public createGenericSuggestion(itemToConvert: ISuggestionModel | T) {\n const itemToAdd = this.convertSuggestionsToSuggestionItems([itemToConvert])[0];\n this.currentSuggestion = itemToAdd;\n }\n\n public convertSuggestionsToSuggestionItems(suggestions: Array | T>): ISuggestionModel[] {\n return Array.isArray(suggestions) ? suggestions.map(this._ensureSuggestionModel) : [];\n }\n\n public deselectAllSuggestions(): void {\n if (this.currentIndex > -1) {\n this.suggestions[this.currentIndex].selected = false;\n this.currentIndex = -1;\n }\n }\n\n public setSelectedSuggestion(index: number): void {\n if (index > this.suggestions.length - 1 || index < 0) {\n this.currentIndex = 0;\n this.currentSuggestion!.selected = false;\n this.currentSuggestion = this.suggestions[0];\n this.currentSuggestion.selected = true;\n } else {\n if (this.currentIndex > -1) {\n this.suggestions[this.currentIndex].selected = false;\n }\n this.suggestions[index].selected = true;\n this.currentIndex = index;\n this.currentSuggestion = this.suggestions[index];\n }\n }\n\n private _isSuggestionModel = (value: ISuggestionModel | T): value is ISuggestionModel => {\n return (>value).item !== undefined;\n };\n\n private _ensureSuggestionModel = (suggestion: ISuggestionModel | T): ISuggestionModel => {\n if (this._isSuggestionModel(suggestion)) {\n return suggestion as ISuggestionModel;\n } else {\n return {\n item: suggestion,\n selected: false,\n ariaLabel: (suggestion).ariaLabel,\n } as ISuggestionModel;\n }\n };\n}\n","/* eslint-disable */\nimport { loadStyles } from '@microsoft/load-themed-styles';\nloadStyles([{\"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}\"}]);\nexport const picker = \"picker_94f06b16\";\nexport const pickerText = \"pickerText_94f06b16\";\nexport const inputFocused = \"inputFocused_94f06b16\";\nexport const inputDisabled = \"inputDisabled_94f06b16\";\nexport const pickerInput = \"pickerInput_94f06b16\";\nexport const pickerItems = \"pickerItems_94f06b16\";\nexport const screenReaderOnly = \"screenReaderOnly_94f06b16\";","import * as React from 'react';\nimport {\n Async,\n KeyCodes,\n css,\n elementContains,\n format,\n getId,\n classNamesFunction,\n styled,\n initializeComponentRef,\n IStyleFunctionOrObject,\n} from '../../Utilities';\nimport { Callout } from '../../Callout';\nimport { Selection, SelectionZone, SelectionMode } from '../../utilities/selection/index';\nimport { DirectionalHint } from '../../common/DirectionalHint';\nimport { Suggestions } from './Suggestions/Suggestions';\nimport { getStyles as suggestionsStyles } from './Suggestions/Suggestions.styles';\nimport { SuggestionsController } from './Suggestions/SuggestionsController';\nimport { ValidationState } from './BasePicker.types';\nimport { Autofill } from '../Autofill/index';\nimport * as stylesImport from './BasePicker.scss';\nimport { Label } from '../../Label';\nimport type { IProcessedStyleSet } from '../../Styling';\nimport type {\n ISuggestions,\n ISuggestionsProps,\n ISuggestionsStyleProps,\n ISuggestionsStyles,\n} from './Suggestions/Suggestions.types';\nimport type { IBasePicker, IBasePickerProps, IBasePickerStyleProps, IBasePickerStyles } from './BasePicker.types';\nimport type { IAutofill } from '../Autofill/index';\nimport type { IPickerItemProps } from './PickerItem.types';\nimport { WindowContext } from '@fluentui/react-window-provider';\nimport { getDocumentEx } from '../../utilities/dom';\nimport type { ILabelStyleProps, ILabelStyles } from '../../Label';\n\nconst legacyStyles: any = stylesImport;\n\nconst EXTENDED_LOAD_TIME = 3000;\n\nexport interface IBasePickerState {\n items?: any;\n suggestedDisplayValue?: string;\n moreSuggestionsAvailable?: boolean;\n isFocused?: boolean;\n isSearching?: boolean;\n isMostRecentlyUsedVisible?: boolean;\n suggestionsVisible?: boolean;\n suggestionsLoading?: boolean;\n suggestionsExtendedLoading?: boolean;\n isResultsFooterVisible?: boolean;\n selectedIndices?: number[];\n selectionRemoved?: T;\n errorMessage?: string | JSX.Element;\n}\n\n/**\n * Aria id's for internal picker components\n * {@docCategory Pickers}\n */\nexport type IPickerAriaIds = {\n /**\n * Aria id for selected suggestion alert component\n */\n selectedSuggestionAlert: string;\n /**\n * Aria id for selected items container component\n */\n selectedItems: string;\n /**\n * Aria id for suggestions list component\n */\n suggestionList: string;\n /**\n * Aria id for element with role=combobox\n */\n combobox: string;\n /**\n * Aria id for error message component\n */\n error: string;\n};\n\nconst getClassNames = classNamesFunction();\n\n/**\n * Should be removed once new picker without inheritance is created\n */\nfunction getStyledSuggestions(suggestionsType: new (props: ISuggestionsProps) => Suggestions) {\n return styled, ISuggestionsStyleProps, ISuggestionsStyles>(\n suggestionsType,\n suggestionsStyles,\n undefined,\n {\n scope: 'Suggestions',\n },\n );\n}\n\n/**\n * {@docCategory Pickers}\n */\nexport class BasePicker>\n extends React.Component>\n implements IBasePicker\n{\n public static contextType = WindowContext;\n\n // Refs\n protected root = React.createRef();\n protected input = React.createRef();\n protected suggestionElement = React.createRef>();\n protected selection: Selection;\n protected suggestionStore: SuggestionsController;\n /**\n * @deprecated this is no longer necessary as typescript now supports generic elements\n */\n protected SuggestionOfProperType = Suggestions as new (props: ISuggestionsProps) => Suggestions;\n protected currentPromise: PromiseLike | undefined;\n protected _ariaMap: IPickerAriaIds;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private _styledSuggestions = getStyledSuggestions(this.SuggestionOfProperType);\n private _id: string;\n private _async: Async;\n private _isMounted: boolean = false;\n private _onResolveSuggestionsDebounced: (updatedValue: string) => void;\n private _overrideScrollDismiss = false;\n private _overrideScrollDimissTimeout: number;\n\n public static getDerivedStateFromProps(newProps: IBasePickerProps) {\n if (newProps.selectedItems) {\n return { items: newProps.selectedItems };\n }\n return null;\n }\n\n constructor(basePickerProps: P) {\n super(basePickerProps);\n\n initializeComponentRef(this);\n\n const items: T[] = basePickerProps.selectedItems || basePickerProps.defaultSelectedItems || [];\n\n this._id = getId();\n this._ariaMap = {\n selectedItems: `selected-items-${this._id}`,\n selectedSuggestionAlert: `selected-suggestion-alert-${this._id}`,\n suggestionList: `suggestion-list-${this._id}`,\n combobox: `combobox-${this._id}`,\n error: `error-${this._id}`,\n };\n this.suggestionStore = new SuggestionsController();\n this.selection = new Selection({ onSelectionChanged: () => this.onSelectionChange() });\n this.selection.setItems(items);\n this.state = {\n items,\n suggestedDisplayValue: '',\n isMostRecentlyUsedVisible: false,\n moreSuggestionsAvailable: false,\n isFocused: false,\n isSearching: false,\n selectedIndices: [],\n selectionRemoved: undefined,\n };\n }\n\n public get items(): T[] {\n return this.state.items;\n }\n\n public componentDidMount(): void {\n this._isMounted = true;\n this._async = new Async(this);\n this._updateErrorMessage(this.state.items);\n this.selection.setItems(this.state.items);\n this._onResolveSuggestionsDebounced = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay);\n }\n\n public componentDidUpdate(oldProps: P, oldState: IBasePickerState) {\n if (this.state.items && this.state.items !== oldState.items) {\n const currentSelectedIndex = this.selection.getSelectedIndices()[0];\n this.selection.setItems(this.state.items);\n if (this.state.isFocused) {\n // Reset focus and selection so that selected item stays in sync if something\n // has been removed\n if (this.state.items.length < oldState.items.length) {\n this.selection.setIndexSelected(currentSelectedIndex, false, true);\n this.resetFocus(currentSelectedIndex);\n }\n // Reset focus to last item if the input is removed\n else if (this.state.items.length > oldState.items.length && !this.canAddItems()) {\n this.resetFocus(this.state.items.length - 1);\n }\n }\n }\n\n this._updateErrorMessage(this.state.items);\n\n // handle dismiss buffer after suggestions are opened\n if (this.state.suggestionsVisible && !oldState.suggestionsVisible) {\n this._overrideScrollDismiss = true;\n this._async.clearTimeout(this._overrideScrollDimissTimeout);\n this._overrideScrollDimissTimeout = this._async.setTimeout(() => {\n this._overrideScrollDismiss = false;\n }, 100);\n }\n }\n\n public componentWillUnmount(): void {\n this._isMounted = false;\n if (this.currentPromise) {\n this.currentPromise = undefined;\n }\n this._async.dispose();\n }\n\n public focus() {\n if (this.input.current) {\n this.input.current.focus();\n }\n }\n\n public focusInput() {\n if (this.input.current) {\n this.input.current.focus();\n }\n }\n\n public dismissSuggestions = (ev?: any): void => {\n const selectItemFunction = () => {\n let addItemOnDismiss: boolean | void = true;\n if (this.props.onDismiss) {\n addItemOnDismiss = this.props.onDismiss(\n ev,\n this.suggestionStore.currentSuggestion ? this.suggestionStore.currentSuggestion.item : undefined,\n );\n }\n\n if (!ev || (ev && !ev.defaultPrevented)) {\n // Select the first suggestion if one is available and permitted by onDismiss when user leaves.\n if (\n addItemOnDismiss !== false &&\n this.canAddItems() &&\n this.suggestionStore.hasSelectedSuggestion() &&\n this.state.suggestedDisplayValue\n ) {\n this.addItemByIndex(0);\n }\n }\n };\n\n if (this.currentPromise) {\n this.currentPromise.then(() => selectItemFunction());\n } else {\n selectItemFunction();\n }\n\n this.setState({ suggestionsVisible: false });\n };\n\n public completeSuggestion(forceComplete?: boolean) {\n if (this.suggestionStore.hasSelectedSuggestion() && this.input.current) {\n this.completeSelection(this.suggestionStore.currentSuggestion!.item);\n } else if (forceComplete) {\n this._completeGenericSuggestion();\n }\n }\n\n public refocusSuggestions = (keyCode: KeyCodes): void => {\n this.resetFocus();\n if (this.suggestionStore.suggestions && this.suggestionStore.suggestions.length > 0) {\n if (keyCode === KeyCodes.up) {\n this.suggestionStore.setSelectedSuggestion(this.suggestionStore.suggestions.length - 1);\n } else if (keyCode === KeyCodes.down) {\n this.suggestionStore.setSelectedSuggestion(0);\n }\n }\n };\n\n public render(): JSX.Element {\n const { suggestedDisplayValue, isFocused, items } = this.state;\n const { className, inputProps, disabled, selectionAriaLabel, selectionRole = 'list', theme, styles } = this.props;\n\n const suggestionsVisible = !!this.state.suggestionsVisible;\n const suggestionsAvailable = suggestionsVisible ? this._ariaMap.suggestionList : undefined;\n const hasError = !!(this.state.errorMessage ?? this.props.errorMessage);\n // TODO\n // Clean this up by leaving only the first part after removing support for SASS.\n // Currently we can not remove the SASS styles from BasePicker class because it\n // might be used by consumers who created custom pickers from extending from\n // this base class and have not used the new 'styles' prop.\n // We check for 'styles' prop which is going to be injected by the 'styled' HOC\n // for every other already existing picker variant (PeoplePicker, TagPicker)\n // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker),\n // then we just use the old SASS styles instead.\n const classNames: Partial> = styles\n ? getClassNames(styles, {\n theme,\n className,\n isFocused,\n disabled,\n hasErrorMessage: hasError,\n inputClassName: inputProps && inputProps.className,\n })\n : {\n root: css('ms-BasePicker', className ? className : ''),\n error: 'ms-BasePicker-error',\n text: css('ms-BasePicker-text', legacyStyles.pickerText, this.state.isFocused && legacyStyles.inputFocused),\n itemsWrapper: legacyStyles.pickerItems,\n input: css('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className),\n screenReaderText: legacyStyles.screenReaderOnly,\n };\n\n const comboLabel = this.props['aria-label'] || inputProps?.['aria-label'];\n const inputId = inputProps?.id ?? this._ariaMap.combobox;\n\n // selectionAriaLabel is contained in a separate rather than an aria-label on the items list\n // because if the items list has an aria-label, the aria-describedby on the input will only read\n // that label instead of all the selected items. Using aria-labelledby instead fixes this, since\n // aria-describedby and aria-labelledby will not follow a second aria-labelledby\n return (\n \n {this.renderLabel(inputId, classNames.subComponentStyles?.label)}\n {this.renderCustomAlert(classNames.screenReaderText)}\n \n \n
    \n {items.length > 0 && (\n \n {this.renderItems()}\n \n )}\n {this.canAddItems() && (\n \n )}\n
    \n
    \n {this.renderError(classNames.error)}\n {this.renderSuggestions()}\n \n );\n }\n\n protected _getDescribedBy = (items: T[], hasError: boolean): string => {\n let describedBy = '';\n if (items.length > 0) {\n describedBy += this._ariaMap.selectedItems + ' ';\n }\n if (hasError) {\n describedBy += this._ariaMap.error;\n }\n return describedBy;\n };\n\n protected canAddItems(): boolean {\n const { items } = this.state;\n const { itemLimit } = this.props;\n return itemLimit === undefined || items.length < itemLimit;\n }\n\n protected renderLabel(\n inputId: string,\n styles: IStyleFunctionOrObject | undefined,\n ): JSX.Element | null {\n const { label, disabled, required } = this.props;\n if (!label) {\n return null;\n }\n return (\n \n );\n }\n\n protected renderError(className?: string): JSX.Element | null {\n const { errorMessage = this.state.errorMessage } = this.props;\n if (!errorMessage) {\n return null;\n }\n return (\n
    \n {errorMessage}\n
    \n );\n }\n\n protected renderSuggestions(): JSX.Element | null {\n const StyledTypedSuggestions: React.FunctionComponent> = this._styledSuggestions;\n\n return this.state.suggestionsVisible && this.input ? (\n this._preventDismissOnScrollOrResize(ev)}\n {...this.props.pickerCalloutProps}\n >\n \n \n ) : null;\n }\n\n protected renderItems(): JSX.Element[] {\n const { disabled, removeButtonAriaLabel, removeButtonIconProps } = this.props;\n const onRenderItem = this.props.onRenderItem as (props: IPickerItemProps) => JSX.Element;\n\n const { items, selectedIndices } = this.state;\n return items.map((item: any, index: number) =>\n onRenderItem({\n item,\n index,\n key: item.key ? item.key : index,\n selected: selectedIndices!.indexOf(index) !== -1,\n onRemoveItem: () => this.removeItem(item),\n disabled,\n onItemChange: this.onItemChange,\n removeButtonAriaLabel,\n removeButtonIconProps,\n }),\n );\n }\n\n protected resetFocus(index?: number) {\n const { items } = this.state;\n\n if (items.length) {\n // default to focusing the last item\n index = index ?? items.length - 1;\n const newEl: HTMLElement | null =\n this.root.current &&\n (this.root.current.querySelectorAll('[data-selection-index] > button')[\n Math.min(index!, items.length - 1)\n ] as HTMLElement | null);\n if (newEl) {\n newEl.focus();\n }\n } else {\n if (this.input.current) {\n this.input.current.focus();\n }\n }\n }\n\n protected onSuggestionSelect() {\n if (this.suggestionStore.currentSuggestion) {\n const currentValue: string = this.input.current ? this.input.current.value : '';\n const itemValue: string = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, currentValue);\n this.setState({ suggestedDisplayValue: itemValue });\n }\n }\n\n protected onSelectionChange() {\n this.setState({\n selectedIndices: this.selection.getSelectedIndices(),\n });\n }\n\n protected updateSuggestions(suggestions: any[]) {\n const maxSuggestionsCount = this.props.pickerSuggestionsProps?.resultsMaximumNumber;\n this.suggestionStore.updateSuggestions(suggestions, 0, maxSuggestionsCount);\n this.forceUpdate();\n }\n\n /**\n * Only to be called when there is nothing in the input. Checks to see if the consumer has\n * provided a function to resolve suggestions\n */\n protected onEmptyInputFocus() {\n const emptyResolveSuggestions = this.props.onEmptyResolveSuggestions\n ? this.props.onEmptyResolveSuggestions\n : // eslint-disable-next-line @typescript-eslint/no-deprecated\n this.props.onEmptyInputFocus;\n\n // Only attempt to resolve suggestions if it exists\n if (emptyResolveSuggestions) {\n const suggestions = emptyResolveSuggestions(this.state.items);\n\n this.updateSuggestionsList(suggestions);\n\n this.setState({\n isMostRecentlyUsedVisible: true,\n suggestionsVisible: true,\n moreSuggestionsAvailable: false,\n });\n }\n }\n\n protected updateValue(updatedValue: string) {\n this._onResolveSuggestionsDebounced(updatedValue);\n }\n\n protected updateSuggestionsList(suggestions: T[] | PromiseLike, updatedValue?: string) {\n // Check to see if the returned value is an array, if it is then just pass it into the next function .\n // If the returned value is not an array then check to see if it's a promise or PromiseLike.\n // If it is then resolve it asynchronously.\n if (Array.isArray(suggestions)) {\n this._updateAndResolveValue(updatedValue, suggestions);\n } else if (suggestions && (suggestions as PromiseLike).then) {\n this.setState({\n suggestionsLoading: true,\n });\n this._startLoadTimer();\n\n // Clear suggestions\n this.suggestionStore.updateSuggestions([]);\n\n if (updatedValue !== undefined) {\n this.setState({\n suggestionsVisible: this._getShowSuggestions(),\n });\n } else {\n this.setState({\n suggestionsVisible:\n this.input.current! && this.input.current!.inputElement === getDocumentEx(this.context)?.activeElement,\n });\n }\n\n // Ensure that the promise will only use the callback if it was the most recent one.\n this.currentPromise = suggestions;\n suggestions.then((newSuggestions: T[]) => {\n if (suggestions === this.currentPromise) {\n this._updateAndResolveValue(updatedValue, newSuggestions);\n }\n });\n }\n }\n\n protected resolveNewValue(updatedValue: string, suggestions: T[]) {\n this.updateSuggestions(suggestions);\n let itemValue: string | undefined = undefined;\n\n if (this.suggestionStore.currentSuggestion) {\n itemValue = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, updatedValue);\n }\n\n // Only set suggestionloading to false after there has been time for the new suggestions to flow\n // to the suggestions list. This is to ensure that the suggestions are available before aria-activedescendant\n // is set so that screen readers will read out the first selected option.\n this.setState(\n {\n suggestedDisplayValue: itemValue,\n suggestionsVisible: this._getShowSuggestions(),\n },\n () => this.setState({ suggestionsLoading: false, suggestionsExtendedLoading: false }),\n );\n }\n\n protected onChange(items?: T[]) {\n if (this.props.onChange) {\n (this.props.onChange as any)(items);\n }\n }\n\n protected onInputChange = (value: string): void => {\n this.updateValue(value);\n this.setState({\n moreSuggestionsAvailable: true,\n isMostRecentlyUsedVisible: false,\n });\n };\n\n protected onSuggestionClick = (ev: React.MouseEvent, item: any, index: number): void => {\n this.addItemByIndex(index);\n };\n\n protected onSuggestionRemove = (ev: React.MouseEvent, item: T, index: number): void => {\n if (this.props.onRemoveSuggestion) {\n this.props.onRemoveSuggestion(item);\n }\n this.suggestionStore.removeSuggestion(index);\n };\n\n protected onInputFocus = (ev: React.FocusEvent): void => {\n this.selection.setAllSelected(false);\n // Only trigger all of the focus if this component isn't already focused.\n // For example when an item is selected or removed from the selected list it should be treated\n // as though the input is still focused.\n if (!this.state.isFocused) {\n this._userTriggeredSuggestions();\n\n if (this.props.inputProps && this.props.inputProps.onFocus) {\n this.props.inputProps.onFocus(ev as React.FocusEvent);\n }\n }\n };\n\n protected onInputBlur = (ev: React.FocusEvent): void => {\n if (this.props.inputProps && this.props.inputProps.onBlur) {\n this.props.inputProps.onBlur(ev as React.FocusEvent);\n }\n };\n\n protected onBlur = (ev: React.FocusEvent): void => {\n if (this.state.isFocused) {\n // Only blur the entire component if an unrelated element gets focus.\n // Otherwise treat it as though it still has focus.\n // Do nothing if the blur is coming from something\n // inside the comboBox root or the comboBox menu since\n // it we are not really bluring from the whole comboBox\n let relatedTarget: EventTarget | null = ev.relatedTarget;\n\n if (ev.relatedTarget === null) {\n // In IE11, due to lack of support, event.relatedTarget is always\n // null making every onBlur call to be \"outside\" of the ComboBox\n // even when it's not. Using document.activeElement is another way\n // for us to be able to get what the relatedTarget without relying\n // on the event\n relatedTarget = getDocumentEx(this.context)!.activeElement;\n }\n if (relatedTarget && !elementContains(this.root.current!, relatedTarget as HTMLElement)) {\n this.setState({ isFocused: false });\n if (this.props.onBlur) {\n this.props.onBlur(ev as React.FocusEvent);\n }\n }\n }\n };\n\n /**\n * Resets focus to last element in wrapper div if clicking back into Picker that has hit item limit\n */\n protected onWrapperClick = (ev: React.MouseEvent): void => {\n if (this.state.items.length && !this.canAddItems()) {\n this.resetFocus(this.state.items.length - 1);\n }\n };\n\n /**\n * Reveals suggestions any time the user clicks on the input element\n * without shifting focus.\n */\n protected onClick = (ev: React.MouseEvent): void => {\n if (this.props.inputProps !== undefined && this.props.inputProps.onClick !== undefined) {\n this.props.inputProps.onClick(ev);\n }\n\n // Only primary (left) clicks show suggestions.\n if (ev.button === 0) {\n this._userTriggeredSuggestions();\n }\n };\n\n protected onFocus = () => {\n if (!this.state.isFocused) {\n this.setState({ isFocused: true });\n }\n };\n\n protected onKeyDown = (ev: React.KeyboardEvent): void => {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const keyCode = ev.which;\n switch (keyCode) {\n case KeyCodes.escape:\n if (this.state.suggestionsVisible) {\n this.setState({ suggestionsVisible: false });\n ev.preventDefault();\n ev.stopPropagation();\n }\n break;\n\n case KeyCodes.tab:\n case KeyCodes.enter:\n if (this.suggestionElement.current && this.suggestionElement.current.hasSuggestedActionSelected()) {\n this.suggestionElement.current.executeSelectedAction();\n } else if (!ev.shiftKey && this.suggestionStore.hasSelectedSuggestion() && this.state.suggestionsVisible) {\n this.completeSuggestion();\n ev.preventDefault();\n ev.stopPropagation();\n } else {\n this._completeGenericSuggestion();\n }\n\n break;\n\n case KeyCodes.backspace:\n if (!this.props.disabled) {\n this.onBackspace(ev);\n }\n ev.stopPropagation();\n break;\n\n case KeyCodes.del:\n if (!this.props.disabled) {\n if (\n this.input.current &&\n ev.target === this.input.current.inputElement &&\n this.state.suggestionsVisible &&\n this.suggestionStore.currentIndex !== -1\n ) {\n if (this.props.onRemoveSuggestion) {\n this.props.onRemoveSuggestion(this.suggestionStore.currentSuggestion!.item);\n }\n this.suggestionStore.removeSuggestion(this.suggestionStore.currentIndex);\n this.forceUpdate();\n } else {\n this.onBackspace(ev);\n }\n }\n ev.stopPropagation();\n break;\n\n case KeyCodes.up:\n if (this.input.current && ev.target === this.input.current.inputElement && this.state.suggestionsVisible) {\n if (\n this.suggestionElement.current &&\n this.suggestionElement.current.tryHandleKeyDown(keyCode, this.suggestionStore.currentIndex)\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n this.forceUpdate();\n } else {\n if (\n this.suggestionElement.current &&\n this.suggestionElement.current.hasSuggestedAction() &&\n this.suggestionStore.currentIndex === 0\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n this.suggestionElement.current.focusAboveSuggestions();\n this.suggestionStore.deselectAllSuggestions();\n this.forceUpdate();\n } else {\n if (this.suggestionStore.previousSuggestion()) {\n ev.preventDefault();\n ev.stopPropagation();\n this.onSuggestionSelect();\n }\n }\n }\n }\n break;\n\n case KeyCodes.down:\n if (this.input.current && ev.target === this.input.current.inputElement && this.state.suggestionsVisible) {\n if (\n this.suggestionElement.current &&\n this.suggestionElement.current.tryHandleKeyDown(keyCode, this.suggestionStore.currentIndex)\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n this.forceUpdate();\n } else {\n if (\n this.suggestionElement.current &&\n this.suggestionElement.current.hasSuggestedAction() &&\n this.suggestionStore.currentIndex + 1 === this.suggestionStore.suggestions.length\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n this.suggestionElement.current.focusBelowSuggestions();\n this.suggestionStore.deselectAllSuggestions();\n this.forceUpdate();\n } else {\n if (this.suggestionStore.nextSuggestion()) {\n ev.preventDefault();\n ev.stopPropagation();\n this.onSuggestionSelect();\n }\n }\n }\n }\n break;\n }\n };\n\n protected onItemChange = (changedItem: T, index: number): void => {\n const { items } = this.state;\n\n if (index >= 0) {\n const newItems: T[] = items;\n newItems[index] = changedItem;\n\n this._updateSelectedItems(newItems);\n }\n };\n\n protected onGetMoreResults = (): void => {\n this.setState(\n {\n isSearching: true,\n },\n () => {\n if (this.props.onGetMoreResults && this.input.current) {\n const suggestions: T[] | PromiseLike = (this.props.onGetMoreResults as any)(\n this.input.current.value,\n this.state.items,\n );\n const suggestionsArray: T[] = suggestions as T[];\n const suggestionsPromiseLike: PromiseLike = suggestions as PromiseLike;\n\n if (Array.isArray(suggestionsArray)) {\n this.updateSuggestions(suggestionsArray);\n this.setState({ isSearching: false });\n } else if (suggestionsPromiseLike.then) {\n suggestionsPromiseLike.then((newSuggestions: T[]) => {\n this.updateSuggestions(newSuggestions);\n this.setState({ isSearching: false });\n });\n }\n } else {\n this.setState({ isSearching: false });\n }\n\n if (this.input.current) {\n this.input.current.focus();\n }\n\n this.setState({\n moreSuggestionsAvailable: false,\n isResultsFooterVisible: true,\n });\n },\n );\n };\n\n protected completeSelection = (item: T) => {\n this.addItem(item);\n this.updateValue('');\n if (this.input.current) {\n this.input.current.clear();\n }\n this.setState({ suggestionsVisible: false });\n };\n\n protected addItemByIndex = (index: number): void => {\n this.completeSelection(this.suggestionStore.getSuggestionAtIndex(index).item);\n };\n\n protected addItem = (item: T): void => {\n const processedItem: T | PromiseLike | null = this.props.onItemSelected\n ? (this.props.onItemSelected as any)(item)\n : item;\n\n if (processedItem === null) {\n return;\n }\n\n const processedItemObject: T = processedItem as T;\n const processedItemPromiseLike: PromiseLike = processedItem as PromiseLike;\n\n if (processedItemPromiseLike && processedItemPromiseLike.then) {\n processedItemPromiseLike.then((resolvedProcessedItem: T) => {\n const newItems: T[] = this.state.items.concat([resolvedProcessedItem]);\n this._updateSelectedItems(newItems);\n });\n } else {\n const newItems: T[] = this.state.items.concat([processedItemObject]);\n this._updateSelectedItems(newItems);\n }\n this.setState({ suggestedDisplayValue: '', selectionRemoved: undefined });\n };\n\n protected removeItem = (item: T): void => {\n const { items } = this.state;\n const index: number = items.indexOf(item);\n\n if (index >= 0) {\n const newItems: T[] = items.slice(0, index).concat(items.slice(index + 1));\n this.setState({ selectionRemoved: item });\n this._updateSelectedItems(newItems);\n\n // reset selection removed text after a timeout so it isn't reached by screen reader virtual cursor.\n // the exact timing isn't important, the live region will fully read even if the text is removed.\n this._async.setTimeout(() => {\n this.setState({ selectionRemoved: undefined });\n }, 1000);\n }\n };\n\n protected removeItems = (itemsToRemove: any[]): void => {\n const { items } = this.state;\n const newItems: T[] = items.filter((item: any) => itemsToRemove.indexOf(item) === -1);\n\n this._updateSelectedItems(newItems);\n };\n\n // This is protected because we may expect the backspace key to work differently in a different kind of picker.\n // This lets the subclass override it and provide it's own onBackspace. For an example see the BasePickerListBelow\n protected onBackspace(ev: React.KeyboardEvent) {\n if (\n (this.state.items.length && !this.input.current) ||\n (this.input.current && !this.input.current.isValueSelected && this.input.current.cursorLocation === 0)\n ) {\n if (this.selection.getSelectedCount() > 0) {\n this.removeItems(this.selection.getSelection());\n } else {\n this.removeItem(this.state.items[this.state.items.length - 1]);\n }\n }\n }\n\n /**\n * @deprecated this is no longer necessary as focuszone has been removed\n */\n protected _shouldFocusZoneEnterInnerZone = (ev: React.KeyboardEvent): boolean => {\n // If suggestions are shown const up/down keys control them, otherwise allow them through to control the focusZone.\n if (this.state.suggestionsVisible) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n switch (ev.which) {\n case KeyCodes.up:\n case KeyCodes.down:\n return true;\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter) {\n return true;\n }\n\n return false;\n };\n\n protected getActiveDescendant() {\n if (this.state.suggestionsLoading) {\n return undefined;\n }\n\n const currentIndex = this.suggestionStore.currentIndex;\n\n if (currentIndex < 0) {\n // if the suggestions element has actions and the currentIndex does not point to a suggestion,\n // return the action id\n if (this.suggestionElement.current?.hasSuggestedAction()) {\n return 'sug-selectedAction';\n }\n\n // If there are no suggestions and no action suggested, then return the ID for the no results found.\n if (this.suggestionStore.suggestions.length === 0) {\n return 'sug-noResultsFound';\n }\n\n return undefined;\n } else {\n return `sug-${currentIndex}`;\n }\n }\n\n /** @deprecated use renderCustomAlert instead */\n protected getSuggestionsAlert(suggestionAlertClassName: string = legacyStyles.screenReaderOnly) {\n const currentIndex = this.suggestionStore.currentIndex;\n if (this.props.enableSelectedSuggestionAlert) {\n const selectedSuggestion =\n currentIndex > -1 ? this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex) : undefined;\n const selectedSuggestionAlertText = selectedSuggestion ? selectedSuggestion.ariaLabel : undefined;\n // keeping the id/className here for legacy support\n return (\n
    \n {`${selectedSuggestionAlertText} `}\n
    \n );\n }\n }\n\n protected renderCustomAlert(alertClassName: string = legacyStyles.screenReaderOnly) {\n const { suggestionRemovedText = 'removed {0}' } = this.props;\n let removedItemText = '';\n\n if (this.state.selectionRemoved) {\n const itemName = this._getTextFromItem(this.state.selectionRemoved, '');\n removedItemText = format(suggestionRemovedText, itemName);\n }\n\n return (\n
    \n {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this.getSuggestionsAlert(alertClassName)\n }\n {removedItemText}\n
    \n );\n }\n\n // do not dismiss if the window resizes or scrolls within 100ms of opening\n // this prevents the Android issue where pickers immediately dismiss on open, because the keyboard appears\n private _preventDismissOnScrollOrResize(ev: Event) {\n if (this._overrideScrollDismiss && (ev.type === 'scroll' || ev.type === 'resize')) {\n return true;\n }\n\n return false;\n }\n\n /** If suggestions are still loading after a predefined amount of time, set state to show user alert */\n private _startLoadTimer() {\n this._async.setTimeout(() => {\n if (this.state.suggestionsLoading) {\n this.setState({ suggestionsExtendedLoading: true });\n }\n }, EXTENDED_LOAD_TIME);\n }\n\n /**\n * Takes in the current updated value and either resolves it with the new suggestions\n * or if updated value is undefined then it clears out currently suggested items\n */\n private _updateAndResolveValue(updatedValue: string | undefined, newSuggestions: T[]) {\n if (updatedValue !== undefined) {\n this.resolveNewValue(updatedValue, newSuggestions);\n } else {\n const maxSuggestionsCount = this.props.pickerSuggestionsProps?.resultsMaximumNumber;\n this.suggestionStore.updateSuggestions(newSuggestions, -1, maxSuggestionsCount);\n if (this.state.suggestionsLoading) {\n this.setState({\n suggestionsLoading: false,\n suggestionsExtendedLoading: false,\n });\n }\n }\n }\n\n private async _getErrorMessage(items: T[]): Promise {\n if (this.props.errorMessage) {\n return this.props.errorMessage;\n }\n if (this.props.onGetErrorMessage) {\n try {\n const errorMessage = this.props.onGetErrorMessage(items);\n if (errorMessage) {\n if ((errorMessage as PromiseLike).then) {\n return await (errorMessage as PromiseLike);\n } else {\n return errorMessage as string | JSX.Element;\n }\n } else {\n return undefined;\n }\n } catch (err) {\n /* NO-OP */\n }\n }\n }\n\n private _updateErrorMessage(items: T[]): void {\n let newErrorMessage: string | JSX.Element | undefined;\n this._getErrorMessage(items)\n .then(errorMessage => {\n newErrorMessage = errorMessage;\n })\n .catch(() => {\n /* NO-OP */\n })\n .finally(() => {\n if (this._isMounted && newErrorMessage !== this.state.errorMessage) {\n this.setState({ errorMessage: newErrorMessage });\n }\n });\n }\n\n /**\n * Controls what happens whenever there is an action that impacts the selected items.\n * If `selectedItems` is provided, this will act as a controlled component and it will not update its own state.\n */\n private _updateSelectedItems(items: T[]): void {\n if (this.props.selectedItems) {\n // If the component is a controlled component then the controlling component will need to add or remove the items.\n this.onChange(items);\n } else {\n this.setState({ items }, () => {\n this._updateErrorMessage(items);\n this._onSelectedItemsUpdated(items);\n });\n }\n }\n\n private _onSelectedItemsUpdated(items?: T[]): void {\n this.onChange(items);\n }\n\n /**\n * Suggestions are normally shown after the user updates text and the text\n * is non-empty, but also when the user clicks on the input element.\n * @returns True if suggestions should be shown.\n */\n private _getShowSuggestions(): boolean {\n const areSuggestionsVisible =\n this.input.current !== undefined &&\n this.input.current !== null &&\n this.input.current.inputElement === getDocumentEx(this.context)?.activeElement &&\n this.input.current.value !== '';\n\n return areSuggestionsVisible;\n }\n\n private _onResolveSuggestions = (updatedValue: string): void => {\n const suggestions: T[] | PromiseLike | null = this.props.onResolveSuggestions(updatedValue, this.state.items);\n\n if (suggestions !== null) {\n this.updateSuggestionsList(suggestions, updatedValue);\n }\n };\n\n private _completeGenericSuggestion = (): void => {\n if (\n this.props.onValidateInput &&\n this.input.current &&\n (this.props.onValidateInput as any)(this.input.current.value) !== ValidationState.invalid &&\n this.props.createGenericItem\n ) {\n const itemToConvert = this.props.createGenericItem(\n this.input.current.value,\n this.props.onValidateInput(this.input.current.value),\n );\n this.suggestionStore.createGenericSuggestion(itemToConvert);\n this.completeSuggestion();\n }\n };\n\n private _getTextFromItem(item: T, currentValue?: string): string {\n if (this.props.getTextFromItem) {\n return (this.props.getTextFromItem as any)(item, currentValue);\n } else {\n return '';\n }\n }\n\n /**\n * This should be called when the user does something other than use text entry to trigger suggestions.\n *\n */\n private _userTriggeredSuggestions = () => {\n if (!this.state.suggestionsVisible) {\n const input = this.input.current ? this.input.current.value : '';\n if (!input) {\n this.onEmptyInputFocus();\n } else {\n if (this.suggestionStore.suggestions.length === 0) {\n this._onResolveSuggestionsDebounced(input);\n } else {\n this.setState({\n isMostRecentlyUsedVisible: false,\n suggestionsVisible: true,\n });\n }\n }\n }\n };\n}\n\nexport class BasePickerListBelow> extends BasePicker {\n public render(): JSX.Element {\n const { suggestedDisplayValue, isFocused, items } = this.state;\n const { className, inputProps, disabled, selectionAriaLabel, selectionRole = 'list', theme, styles } = this.props;\n\n const suggestionsVisible = !!this.state.suggestionsVisible;\n\n const suggestionsAvailable: string | undefined = suggestionsVisible ? this._ariaMap.suggestionList : undefined;\n const hasError = !!(this.state.errorMessage ?? this.props.errorMessage);\n // TODO\n // Clean this up by leaving only the first part after removing support for SASS.\n // Currently we can not remove the SASS styles from BasePicker class because it\n // might be used by consumers who created custom pickers from extending from\n // this base class and have not used the new 'styles' prop.\n // We check for 'styles' prop which is going to be injected by the 'styled' HOC\n // for every other already existing picker variant (PeoplePicker, TagPicker)\n // so that we can use the CSS-in-JS styles. If the check fails (ex: custom picker),\n // then we just use the old SASS styles instead.\n const classNames: Partial> = styles\n ? getClassNames(styles, {\n theme,\n className,\n isFocused,\n disabled,\n hasErrorMessage: hasError,\n inputClassName: inputProps && inputProps.className,\n })\n : {\n root: css('ms-BasePicker', legacyStyles.picker, className ? className : ''),\n error: 'ms-BasePicker-error',\n text: css(\n 'ms-BasePicker-text',\n legacyStyles.pickerText,\n this.state.isFocused && legacyStyles.inputFocused,\n disabled && legacyStyles.inputDisabled,\n ),\n itemsWrapper: legacyStyles.pickerItems,\n input: css('ms-BasePicker-input', legacyStyles.pickerInput, inputProps && inputProps.className),\n screenReaderText: legacyStyles.screenReaderOnly,\n };\n\n const comboLabel = this.props['aria-label'] || inputProps?.['aria-label'];\n const inputId = inputProps?.id ?? this._ariaMap.combobox;\n\n return (\n
    \n {this.renderLabel(inputId, classNames.subComponentStyles?.label)}\n
    \n {this.renderCustomAlert(classNames.screenReaderText)}\n \n
    \n \n
    \n
    \n {this.renderSuggestions()}\n \n \n {this.renderItems()}\n
    \n
    \n {this.renderError(classNames.error)}\n \n );\n }\n\n protected onBackspace(ev: React.KeyboardEvent) {\n // override the existing backspace method to not do anything because the list items appear below.\n }\n}\n","import {\n getGlobalClassNames,\n getInputFocusStyle,\n getPlaceholderStyles,\n hiddenContentStyle,\n HighContrastSelector,\n} from '../../Styling';\nimport type { IBasePickerStyleProps, IBasePickerStyles } from './BasePicker.types';\nimport type { IStyle } from '../../Styling';\n\nconst GlobalClassNames = {\n root: 'ms-BasePicker',\n label: 'ms-BasePicker-label',\n text: 'ms-BasePicker-text',\n itemsWrapper: 'ms-BasePicker-itemsWrapper',\n input: 'ms-BasePicker-input',\n error: 'ms-BasePicker-error',\n};\n\nexport function getStyles(props: IBasePickerStyleProps): IBasePickerStyles {\n const { className, theme, isFocused, inputClassName, disabled, hasErrorMessage } = props;\n\n if (!theme) {\n throw new Error('theme is undefined or null in base BasePicker getStyles function.');\n }\n const { semanticColors, effects, fonts } = theme;\n const { inputBorder, inputBorderHovered, inputFocusBorderAlt } = semanticColors;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n // placeholder style constants\n const placeholderStyles: IStyle = [\n fonts.medium,\n {\n color: semanticColors.inputPlaceholderText,\n opacity: 1,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n ];\n\n const disabledPlaceholderStyles: IStyle = {\n color: semanticColors.disabledText,\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n };\n\n // The following lines are to create a semi-transparent color overlay for the disabled state with designer's approval.\n // @todo: investigate the performance cost of the calculation below and apply if negligible.\n // Replacing with a static color for now.\n // const rgbColor: IRGB | undefined = cssColor(palette.neutralQuaternaryAlt);\n // const disabledOverlayColor = rgbColor ? `rgba(${rgbColor.r}, ${rgbColor.g}, ${rgbColor.b}, 0.29)` : 'transparent';\n const disabledOverlayColor = 'rgba(218, 218, 218, 0.29)';\n\n const focusColor = isFocused && !disabled && (hasErrorMessage ? semanticColors.errorText : inputFocusBorderAlt);\n\n return {\n root: [classNames.root, className, { position: 'relative' }],\n error: [\n classNames.error,\n {\n fontSize: 12,\n fontWeight: 400,\n color: semanticColors.errorText,\n margin: 0,\n paddingTop: 5,\n display: hasErrorMessage ? 'flex' : 'none',\n alignItems: 'center',\n },\n ],\n text: [\n classNames.text,\n {\n display: 'flex',\n position: 'relative',\n flexWrap: 'wrap',\n alignItems: 'center',\n boxSizing: 'border-box',\n minWidth: 180,\n minHeight: 30,\n border: `1px solid ${inputBorder}`,\n borderRadius: effects.roundedCorner2,\n },\n !isFocused &&\n !disabled && {\n selectors: {\n ':hover': {\n borderColor: inputBorderHovered,\n },\n },\n },\n focusColor && getInputFocusStyle(focusColor, effects.roundedCorner2),\n disabled && {\n borderColor: disabledOverlayColor,\n selectors: {\n ':after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n background: disabledOverlayColor,\n },\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n selectors: {\n ':after': {\n background: 'none',\n },\n },\n },\n },\n },\n hasErrorMessage && {\n borderColor: semanticColors.errorText,\n selectors: {\n ':hover': {\n borderColor: semanticColors.errorText,\n },\n },\n },\n ],\n itemsWrapper: [\n classNames.itemsWrapper,\n {\n display: 'flex',\n flexWrap: 'wrap',\n maxWidth: '100%',\n },\n ],\n input: [\n classNames.input,\n fonts.medium,\n {\n height: 30,\n border: 'none',\n flexGrow: 1,\n outline: 'none',\n padding: '0 6px 0',\n alignSelf: 'flex-end',\n borderRadius: effects.roundedCorner2,\n backgroundColor: 'transparent',\n color: semanticColors.inputText,\n selectors: {\n '::-ms-clear': {\n display: 'none',\n },\n '&:placeholder-shown': {\n textOverflow: 'ellipsis',\n },\n },\n },\n getPlaceholderStyles(placeholderStyles),\n disabled && getPlaceholderStyles(disabledPlaceholderStyles),\n inputClassName,\n ],\n screenReaderText: hiddenContentStyle,\n subComponentStyles: {\n label: {},\n },\n };\n}\n","import * as React from 'react';\nimport { Autofill } from '../../Autofill';\nimport type { IPickerItemProps } from './PickerItem.types';\nimport type { IReactProps, IRefObject, IStyleFunctionOrObject } from '../../Utilities';\nimport type { ISuggestionModel, ISuggestionsProps } from './Suggestions/Suggestions.types';\nimport type { ICalloutProps } from '../../Callout';\nimport type { ITheme, IStyle } from '../../Styling';\nimport type { ISuggestionItemProps } from '../pickers/Suggestions/SuggestionsItem.types';\nimport { IIconProps } from '../Icon/Icon.types';\nimport { ILabelStyleProps, ILabelStyles } from '../Label/Label.types';\n\n/**\n * BasePicker component.\n * {@docCategory Pickers}\n */\nexport interface IBasePicker {\n /** Gets the current value of the input. */\n items: T[] | undefined;\n\n /** Sets focus to the focus zone. */\n focus: () => void;\n\n /** Set focus to the input */\n focusInput: () => void;\n\n /**\n * When called, will take the currently selected suggestion and complete it.\n * If called with forceComplete true, it will attempt to force the current suggestion\n * to complete, must provide both createGenericSuggestion, so the text can be turned into\n * an object in the right shape, and onValidateInput, so the object knows if it's correct or not.\n */\n completeSuggestion: (forceComplete?: boolean) => void;\n}\n\n/**\n * Type T is the type of the item that is displayed\n * and searched for by the picker. For example, if the picker is\n * displaying persona's then type T could either be of Persona or IPersona props\n * {@docCategory Pickers}\n */\nexport interface IBasePickerProps extends IReactProps {\n /**\n * Optional callback to access the IBasePicker interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: IRefObject>;\n\n /**\n * Descriptive label for the field.\n */\n label?: string;\n\n /**\n * Function that specifies how the selected item will appear.\n */\n onRenderItem?: (props: IPickerItemProps) => JSX.Element;\n\n /**\n * Function that specifies how an individual suggestion item will appear.\n */\n onRenderSuggestionsItem?: (props: T, itemProps: ISuggestionItemProps) => JSX.Element;\n\n /**\n * A callback for what should happen when a person types text into the input.\n * Returns the already selected items so the resolver can filter them out.\n * If used in conjunction with resolveDelay this will only kick off after the delay throttle.\n */\n onResolveSuggestions: (filter: string, selectedItems?: T[]) => T[] | PromiseLike;\n\n /**\n * The delay time in ms before resolving suggestions, which is kicked off when input has been changed.\n * e.g. If a second input change happens within the resolveDelay time, the timer will start over.\n * Only until after the timer completes will onResolveSuggestions be called.\n */\n resolveDelay?: number;\n\n /**\n * A callback for what should happen when a user clicks within the input area.\n * @deprecated Please use `onEmptyResolveSuggestions` instead, as the suggestions aren't about\n * setting focus as they are about resolving suggestions when there is no input.\n */\n onEmptyInputFocus?: (selectedItems?: T[]) => T[] | PromiseLike;\n\n /**\n * A callback for what should happen when suggestions are shown without\n * input provided.\n * Returns the already selected items so the resolver can filter them out.\n * If used in conjunction with resolveDelay this will only kick off after the delay throttle.\n */\n onEmptyResolveSuggestions?: (selectedItems?: T[]) => T[] | PromiseLike;\n\n /**\n * Initial items that have already been selected and should appear in the people picker.\n */\n defaultSelectedItems?: T[];\n\n /**\n * A callback for when the selected list of items changes.\n */\n onChange?: (items?: T[]) => void;\n\n /**\n * A callback for when the user put focus on the picker\n * @deprecated Use `inputProps.onFocus` instead\n */\n onFocus?: React.FocusEventHandler;\n\n /**\n * A callback for when the user moves the focus away from the picker\n */\n onBlur?: React.FocusEventHandler;\n\n /**\n * A callback to get text from an item. Used to autofill text in the pickers.\n */\n getTextFromItem?: (item: T, currentValue?: string) => string;\n\n /**\n * A callback that gets the rest of the results when a user clicks get more results.\n */\n onGetMoreResults?: (filter: string, selectedItems?: T[]) => T[] | PromiseLike;\n\n /**\n * ClassName for the picker.\n */\n className?: string;\n\n /**\n * The properties that will get passed to the Suggestions component.\n */\n pickerSuggestionsProps?: IBasePickerSuggestionsProps;\n\n /**\n * The properties that will get passed to the Callout component.\n */\n pickerCalloutProps?: ICalloutProps;\n\n /**\n * AutoFill input native props\n * @defaultvalue undefined\n */\n inputProps?: IInputProps;\n\n /**\n * Static error message displayed below the selection zone of the field. Use `onGetErrorMessage` to dynamically\n * change the error message displayed (if any) based on the current value. `errorMessage` and\n * `onGetErrorMessage` are mutually exclusive (`errorMessage` takes precedence).\n */\n errorMessage?: string | JSX.Element;\n\n /**\n * Function used to determine whether the selected items are valid and get an error message if not.\n * Mutually exclusive with the static string `errorMessage` (it will take precedence over this).\n *\n * When it returns `string | JSX.Element`:\n * - If valid, it returns empty string.\n * - If invalid, it returns the error message and the text field will\n * show a red border and show an error message below the text field.\n *\n * When it returns `Promise`:\n * - The resolved value is displayed as the error message.\n * - If rejected, the value is thrown away.\n */\n onGetErrorMessage?: (items: T[]) => string | JSX.Element | PromiseLike | undefined;\n\n /**\n * A callback for when an item is removed from the suggestion list\n */\n onRemoveSuggestion?: (item: T) => void;\n\n /**\n * A function used to validate if raw text entered into the well can be added into the selected items list\n */\n onValidateInput?: (input: string) => ValidationState;\n\n /**\n * The text to display while searching for more results in a limited suggestions list\n */\n searchingText?: ((props: { input: string }) => string) | string;\n\n /**\n * Flag for disabling the picker.\n * @defaultvalue false\n */\n disabled?: boolean;\n\n /**\n * Whether or not the field is required.\n * @defaultvalue false\n */\n required?: boolean;\n\n /**\n * Restrict the amount of selectable items.\n * @defaultvalue undefined\n */\n itemLimit?: number;\n\n /**\n * Function that specifies how arbitrary text entered into the well is handled.\n */\n createGenericItem?: (input: string, ValidationState: ValidationState) => ISuggestionModel | T;\n\n /**\n * Aria label for the \"X\" button in the selected item component.\n * @defaultvalue ''\n */\n removeButtonAriaLabel?: string;\n\n /**\n * The text that will be announced when a suggestion is removed. A default value is only provided for English.\n * @default 'removed \\{0\\}'\n */\n suggestionRemovedText?: string;\n\n /**\n * Optional aria-label that will be placed on the element that has the role \"combobox\"\n * attached. Additionally aria-labelled by will get added to the supporting input element contained\n * with in the combobox container\n */\n ['aria-label']?: string;\n\n /**\n * A callback to process a selection after the user selects something from the picker. If the callback returns null,\n * the item will not be added to the picker.\n */\n onItemSelected?: (selectedItem?: T) => T | PromiseLike | null;\n\n /**\n * The items that the base picker should currently display as selected.\n * If this is provided then the picker will act as a controlled component.\n */\n selectedItems?: T[];\n\n /**\n * Aria label for the displayed selection. A good value would be something like \"Selected Contacts\".\n * @defaultvalue ''\n */\n selectionAriaLabel?: string;\n\n /**\n * Override the role used for the element containing selected items.\n * Update this if onRenderItem does not return elements with role=\"listitem\".\n * A good alternative would be 'group'.\n * @defaultvalue 'list'\n */\n selectionRole?: string;\n\n /**\n * A callback used to modify the input string.\n */\n onInputChange?: (input: string) => string;\n\n /**\n * A callback to override the default behavior of adding the selected suggestion on dismiss. If it returns true or\n * nothing, the selected item will be added on dismiss. If false, the selected item will not be added on dismiss.\n *\n */\n onDismiss?: (ev?: any, selectedItem?: T) => boolean | void;\n\n /**\n * Adds an additional alert for the currently selected suggestion. This prop should be set to true for IE11 and below,\n * as it enables proper screen reader behavior for each suggestion (since aria-activedescendant does not work\n * with IE11). It should not be set for modern browsers (Edge, Chrome).\n * @defaultvalue false\n */\n enableSelectedSuggestionAlert?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject;\n\n /**\n * Theme provided by styled() function.\n */\n theme?: ITheme;\n\n /**\n * Props for the icon used in the item's remove button.\n * @defaultvalue `{ iconName:'Cancel' }`\n */\n removeButtonIconProps?: IIconProps;\n}\n\n/**\n * Subset of picker options that may be legally passed through a picker to its\n * internal Suggestions component.\n * {@docCategory Pickers}\n */\nexport interface IBasePickerSuggestionsProps\n extends Pick<\n ISuggestionsProps,\n | 'onRenderNoResultFound'\n | 'suggestionsHeaderText'\n | 'mostRecentlyUsedHeaderText'\n | 'noResultsFoundText'\n | 'className'\n | 'suggestionsClassName'\n | 'suggestionsItemClassName'\n | 'searchForMoreIcon'\n | 'searchForMoreText'\n | 'forceResolveText'\n | 'loadingText'\n | 'searchingText'\n | 'resultsFooterFull'\n | 'resultsFooter'\n | 'resultsMaximumNumber'\n | 'showRemoveButtons'\n | 'suggestionsAvailableAlertText'\n | 'suggestionsContainerAriaLabel'\n | 'showForceResolve'\n | 'removeButtonIconProps'\n > {}\n\n/**\n * Validation state of the user's input.\n * {@docCategory Pickers}\n */\nexport enum ValidationState {\n /** User input is valid. */\n valid,\n\n /** User input could be valid or invalid, its state is not known yet. */\n warning,\n\n /** User input is invalid. */\n invalid,\n}\n\n/**\n * Pickers' input props interface\n * {@docCategory Pickers}\n */\nexport interface IInputProps extends React.InputHTMLAttributes {\n /**\n * Screen reader label to apply to an input element.\n */\n 'aria-label'?: string;\n\n /**\n * The default value to be visible when the autofill first created.\n * This is different than placeholder text because the placeholder text will disappear and re-appear. This\n * text persists until deleted or changed.\n */\n defaultVisibleValue?: string;\n}\n\n/**\n * The props needed to construct styles.\n * {@docCategory Pickers}\n */\nexport type IBasePickerStyleProps = Pick, 'theme' | 'className' | 'disabled'> & {\n /** Whether the element has an error message or not. */\n hasErrorMessage: boolean;\n\n /** Whether text style area is focused */\n isFocused?: boolean;\n\n /** Optional pickerInput className */\n inputClassName?: string;\n};\n\n/**\n * {@docCategory Pickers}\n */\nexport interface IBasePickerSubComponentStyles {\n /** Styling for Label child component. */\n label: IStyleFunctionOrObject;\n}\n\n/**\n * Represents the stylable areas of the control.\n * {@docCategory Pickers}\n */\nexport interface IBasePickerStyles {\n /** Root element of any picker extending from BasePicker (wraps all the elements). */\n root: IStyle;\n\n /** Refers fo the error message element. */\n error: IStyle;\n\n /**\n * Refers to the elements already selected (picked) wrapped by `itemsWrapper` along with the input to type\n * a new selection.\n */\n text: IStyle;\n\n /** Styling for subcomponents. */\n subComponentStyles: IBasePickerSubComponentStyles;\n\n /** Refers to the items already selected (picked). */\n itemsWrapper: IStyle;\n\n /** Refers to the input were to type new selections (picks). */\n input: IStyle;\n\n /** Refers to helper element used for accessibility tools (hidden from view on screen). */\n screenReaderText: IStyle;\n}\n","import { getGlobalClassNames, HighContrastSelector } from '../../../../Styling';\nimport { SuggestionsItemGlobalClassNames as suggested } from '../../Suggestions/SuggestionsItem.styles';\nimport type { IStyle } from '../../../../Styling';\nimport type {\n IPeoplePickerItemSuggestionStyles,\n IPeoplePickerItemSuggestionStyleProps,\n} from './PeoplePickerItem.types';\n\nconst GlobalClassNames = {\n root: 'ms-PeoplePicker-personaContent',\n personaWrapper: 'ms-PeoplePicker-Persona',\n};\n\nexport function getStyles(props: IPeoplePickerItemSuggestionStyleProps): IPeoplePickerItemSuggestionStyles {\n const { className, theme } = props;\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const textSelectorsStyles: IStyle = {\n selectors: {\n [`.${suggested.isSuggested} &`]: {\n selectors: {\n [HighContrastSelector]: {\n color: 'HighlightText',\n },\n },\n },\n [`.${classNames.root}:hover &`]: {\n selectors: {\n [HighContrastSelector]: {\n color: 'HighlightText',\n },\n },\n },\n },\n };\n\n return {\n root: [\n classNames.root,\n {\n width: '100%',\n padding: '4px 12px',\n },\n className,\n ],\n personaWrapper: [\n classNames.personaWrapper,\n {\n width: 180,\n },\n ],\n subComponentStyles: {\n persona: {\n primaryText: textSelectorsStyles,\n secondaryText: textSelectorsStyles,\n },\n },\n };\n}\n","import * as React from 'react';\n\nimport { classNamesFunction, styled } from '../../../../Utilities';\nimport { Persona, PersonaSize } from '../../../../Persona';\nimport { getStyles } from './PeoplePickerItemSuggestion.styles';\nimport type { IStyleFunctionOrObject } from '../../../../Utilities';\nimport type { IPersonaStyleProps, IPersonaStyles } from '../../../../Persona';\nimport type {\n IPeoplePickerItemSuggestionProps,\n IPeoplePickerItemSuggestionStyleProps,\n IPeoplePickerItemSuggestionStyles,\n} from './PeoplePickerItem.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const PeoplePickerItemSuggestionBase = (props: IPeoplePickerItemSuggestionProps) => {\n const { personaProps, suggestionsProps, compact, styles, theme, className } = props;\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n className: (suggestionsProps && suggestionsProps.suggestionsItemClassName) || className,\n });\n\n const personaStyles =\n classNames.subComponentStyles && classNames.subComponentStyles.persona\n ? (classNames.subComponentStyles.persona as IStyleFunctionOrObject)\n : undefined;\n\n return (\n
    \n \n
    \n );\n};\n\nexport const PeoplePickerItemSuggestion = styled<\n IPeoplePickerItemSuggestionProps,\n IPeoplePickerItemSuggestionStyleProps,\n IPeoplePickerItemSuggestionStyles\n>(PeoplePickerItemSuggestionBase, getStyles, undefined, { scope: 'PeoplePickerItemSuggestion' });\n","import * as React from 'react';\n\nimport { getRTL, getInitials, styled } from '../../../Utilities';\nimport { BasePicker, BasePickerListBelow } from '../BasePicker';\nimport { ValidationState } from '../BasePicker.types';\nimport { PeoplePickerItem } from './PeoplePickerItems/PeoplePickerItem';\nimport { PeoplePickerItemSuggestion } from './PeoplePickerItems/PeoplePickerItemSuggestion';\nimport { getStyles } from '../BasePicker.styles';\nimport type {\n IBasePickerProps,\n IBasePickerSuggestionsProps,\n IBasePickerStyleProps,\n IBasePickerStyles,\n} from '../BasePicker.types';\nimport type { IPersonaProps } from '../../../Persona';\nimport type { IPeoplePickerItemSelectedProps } from './PeoplePickerItems/PeoplePickerItem.types';\n\n/**\n * PeoplePicker props interface which renders Personas as items.\n * {@docCategory PeoplePicker}\n * */\nexport interface IPeoplePickerProps extends IBasePickerProps {}\n\n/**\n * {@docCategory PeoplePicker}\n */\nexport class BasePeoplePicker extends BasePicker {}\n\n/**\n * {@docCategory PeoplePicker}\n */\nexport class MemberListPeoplePicker extends BasePickerListBelow {}\n\n/**\n * Standard People Picker.\n * {@docCategory PeoplePicker}\n */\nexport class NormalPeoplePickerBase extends BasePeoplePicker {\n /** Default props for NormalPeoplePicker. */\n public static defaultProps = {\n onRenderItem: (props: IPeoplePickerItemSelectedProps) => ,\n onRenderSuggestionsItem: (personaProps: IPersonaProps, suggestionsProps?: IBasePickerSuggestionsProps) => (\n \n ),\n createGenericItem,\n };\n}\n\n/**\n * Compact layout. It uses personas without secondary text when displaying search results.\n * {@docCategory PeoplePicker}\n */\nexport class CompactPeoplePickerBase extends BasePeoplePicker {\n /** Default props for CompactPeoplePicker. */\n public static defaultProps = {\n onRenderItem: (props: IPeoplePickerItemSelectedProps) => ,\n onRenderSuggestionsItem: (personaProps: IPersonaProps, suggestionsProps?: IBasePickerSuggestionsProps) => (\n \n ),\n createGenericItem,\n };\n}\n\n/**\n * MemberList layout. The selected people show up below the search box.\n * {@docCategory PeoplePicker}\n */\nexport class ListPeoplePickerBase extends MemberListPeoplePicker {\n /** Default props for ListPeoplePicker. */\n public static defaultProps = {\n onRenderItem: (props: IPeoplePickerItemSelectedProps) => ,\n onRenderSuggestionsItem: (personaProps: IPersonaProps, suggestionsProps?: IBasePickerSuggestionsProps) => (\n \n ),\n createGenericItem,\n };\n}\n\n/**\n * {@docCategory PeoplePicker}\n */\nexport interface IGenericItem {\n primaryText: string;\n imageInitials: string;\n ValidationState: ValidationState;\n}\n\n/**\n * {@docCategory PeoplePicker}\n */\nexport function createGenericItem(\n name: string,\n currentValidationState: ValidationState,\n): IGenericItem & { key: React.Key } {\n const personaToConvert = {\n key: name,\n primaryText: name,\n imageInitials: '!',\n ValidationState: currentValidationState,\n };\n\n if (currentValidationState !== ValidationState.warning) {\n personaToConvert.imageInitials = getInitials(name, getRTL());\n }\n\n return personaToConvert;\n}\n\nexport const NormalPeoplePicker = styled(\n NormalPeoplePickerBase,\n getStyles,\n undefined,\n {\n scope: 'NormalPeoplePicker',\n },\n);\n\nexport const CompactPeoplePicker = styled(\n CompactPeoplePickerBase,\n getStyles,\n undefined,\n {\n scope: 'CompactPeoplePicker',\n },\n);\n\nexport const ListPeoplePicker = styled(\n ListPeoplePickerBase,\n getStyles,\n undefined,\n {\n scope: 'ListPeoplePickerBase',\n },\n);\n","import {\n getGlobalClassNames,\n getFocusStyle,\n HighContrastSelector,\n getHighContrastNoAdjustStyle,\n} from '../../../../Styling';\nimport { ButtonGlobalClassNames } from '../../../Button/BaseButton.classNames';\nimport type { IStyle } from '../../../../Styling';\nimport type { IPeoplePickerItemSelectedStyleProps, IPeoplePickerItemSelectedStyles } from './PeoplePickerItem.types';\n\nconst GlobalClassNames = {\n root: 'ms-PickerPersona-container',\n itemContent: 'ms-PickerItem-content',\n removeButton: 'ms-PickerItem-removeButton',\n isSelected: 'is-selected',\n isInvalid: 'is-invalid',\n};\n\nconst REMOVE_BUTTON_SIZE = 24;\nconst PICKER_PERSONA_RADIUS = 15;\n\nexport function getStyles(props: IPeoplePickerItemSelectedStyleProps): IPeoplePickerItemSelectedStyles {\n const { className, theme, selected, invalid, disabled } = props;\n\n const { palette, semanticColors, fonts } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n const personaRootStyles: IStyle = {\n color: 'inherit',\n };\n\n // set text color to inherit to allow focus styles to control persona text colors\n const personaPrimaryTextStyles: IStyle = [\n selected &&\n !invalid &&\n !disabled && {\n color: 'inherit',\n selectors: {\n ':hover': {\n color: 'inherit',\n },\n [HighContrastSelector]: {\n color: 'HighlightText',\n },\n },\n },\n ((invalid && !selected) || (invalid && selected && disabled)) && {\n color: 'inherit',\n borderBottom: `2px dotted currentColor`,\n selectors: {\n [`.${classNames.root}:hover &`]: {\n // override Persona root:hover selector\n color: 'inherit',\n },\n },\n },\n invalid &&\n selected &&\n !disabled && {\n color: 'inherit',\n borderBottom: `2px dotted currentColor`,\n selectors: {\n ':hover': {\n color: 'inherit',\n },\n },\n },\n disabled && {\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n ];\n\n const personaSecondaryTextStyles: IStyle = [\n selected &&\n !invalid &&\n !disabled && {\n color: 'inherit',\n selectors: {\n ':hover': {\n color: 'inherit',\n },\n [HighContrastSelector]: {\n color: 'HighlightText',\n },\n },\n },\n ];\n\n const personaCoinInitialsStyles: IStyle = [\n invalid && {\n fontSize: fonts.xLarge.fontSize,\n },\n ];\n\n return {\n root: [\n classNames.root,\n getFocusStyle(theme, { inset: -2 }),\n {\n borderRadius: PICKER_PERSONA_RADIUS,\n display: 'inline-flex',\n alignItems: 'center',\n background: palette.neutralLighter,\n margin: '1px 2px',\n cursor: 'default',\n userSelect: 'none',\n maxWidth: 300,\n verticalAlign: 'middle',\n minWidth: 0,\n selectors: {\n ':hover': {\n background: !selected && !disabled ? palette.neutralLight : '',\n },\n [HighContrastSelector]: [{ border: '1px solid WindowText' }, disabled && { borderColor: 'GrayText' }],\n },\n },\n selected &&\n !disabled && [\n classNames.isSelected,\n {\n selectors: {\n ':focus-within': {\n background: palette.themePrimary,\n color: palette.white,\n },\n [HighContrastSelector]: {\n borderColor: 'HighLight',\n background: 'Highlight',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ],\n invalid && [classNames.isInvalid],\n invalid &&\n selected &&\n !disabled && {\n ':focus-within': {\n background: palette.redDark,\n color: palette.white,\n },\n },\n ((invalid && !selected) || (invalid && selected && disabled)) && {\n color: palette.redDark,\n },\n className,\n ],\n itemContent: [\n classNames.itemContent,\n {\n flex: '0 1 auto',\n minWidth: 0,\n // CSS below is needed for IE 11 to properly truncate long persona names in the picker\n // and to clip the presence indicator (in all browsers)\n maxWidth: '100%',\n overflow: 'hidden',\n },\n ],\n removeButton: [\n classNames.removeButton,\n {\n borderRadius: PICKER_PERSONA_RADIUS,\n color: palette.neutralPrimary,\n flex: '0 0 auto',\n width: REMOVE_BUTTON_SIZE,\n height: REMOVE_BUTTON_SIZE,\n selectors: {\n ':hover': {\n background: palette.neutralTertiaryAlt,\n color: palette.neutralDark,\n },\n },\n },\n selected && [\n getFocusStyle(theme, {\n inset: 2,\n borderColor: 'transparent',\n highContrastStyle: { inset: 2, left: 1, top: 1, bottom: 1, right: 1, outlineColor: 'ButtonText' },\n outlineColor: palette.white,\n borderRadius: PICKER_PERSONA_RADIUS,\n }),\n {\n selectors: {\n ':hover': {\n color: palette.white,\n background: palette.themeDark,\n },\n ':active': {\n color: palette.white,\n background: palette.themeDarker,\n },\n ':focus': {\n color: palette.white,\n },\n [HighContrastSelector]: {\n color: 'HighlightText',\n },\n },\n },\n invalid && {\n selectors: {\n ':hover': {\n color: palette.white,\n background: palette.red,\n },\n ':active': {\n color: palette.white,\n background: palette.redDark,\n },\n },\n },\n ],\n disabled && {\n selectors: {\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: semanticColors.buttonText,\n },\n },\n },\n ],\n subComponentStyles: {\n persona: {\n root: personaRootStyles,\n primaryText: personaPrimaryTextStyles,\n secondaryText: personaSecondaryTextStyles,\n },\n personaCoin: {\n initials: personaCoinInitialsStyles,\n },\n },\n };\n}\n","import * as React from 'react';\n\nimport { getId, classNamesFunction, styled } from '../../../../Utilities';\nimport { Persona, PersonaSize } from '../../../../Persona';\nimport { IconButton, IButton } from '../../../../Button';\nimport { ValidationState } from '../../BasePicker.types';\nimport { getStyles } from './PeoplePickerItem.styles';\nimport type { IStyleFunctionOrObject } from '../../../../Utilities';\nimport type {\n IPersonaStyleProps,\n IPersonaStyles,\n IPersonaCoinStyleProps,\n IPersonaCoinStyles,\n} from '../../../../Persona';\nimport type {\n IPeoplePickerItemSelectedProps,\n IPeoplePickerItemSelectedStyleProps,\n IPeoplePickerItemSelectedStyles,\n} from './PeoplePickerItem.types';\n\nconst getClassNames = classNamesFunction();\n\nexport const PeoplePickerItemBase = (props: IPeoplePickerItemSelectedProps) => {\n const {\n item,\n onRemoveItem,\n index,\n selected,\n removeButtonAriaLabel,\n styles,\n theme,\n className,\n disabled,\n removeButtonIconProps,\n } = props;\n\n const buttonRef = React.createRef();\n\n const handleClick: React.MouseEventHandler = () => {\n buttonRef.current?.focus();\n };\n\n const itemId = getId();\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n className,\n selected,\n disabled,\n invalid: item.ValidationState === ValidationState.warning,\n });\n\n const personaStyles = classNames.subComponentStyles\n ? (classNames.subComponentStyles.persona as IStyleFunctionOrObject)\n : undefined;\n\n const personaCoinStyles = classNames.subComponentStyles\n ? (classNames.subComponentStyles.personaCoin as IStyleFunctionOrObject)\n : undefined;\n\n return (\n
    \n
    \n \n
    \n \n
    \n );\n};\n\nexport const PeoplePickerItem = styled<\n IPeoplePickerItemSelectedProps,\n IPeoplePickerItemSelectedStyleProps,\n IPeoplePickerItemSelectedStyles\n>(PeoplePickerItemBase, getStyles, undefined, { scope: 'PeoplePickerItem' });\n","import { getGlobalClassNames, HighContrastSelector, getHighContrastNoAdjustStyle } from '../../../Styling';\nimport { IsFocusVisibleClassName } from '../../../Utilities';\nimport type { ISuggestionsItemStyleProps, ISuggestionsItemStyles } from './SuggestionsItem.types';\n\nexport const SuggestionsItemGlobalClassNames = {\n root: 'ms-Suggestions-item',\n itemButton: 'ms-Suggestions-itemButton',\n closeButton: 'ms-Suggestions-closeButton',\n isSuggested: 'is-suggested',\n};\n\nexport function getStyles(props: ISuggestionsItemStyleProps): ISuggestionsItemStyles {\n const { className, theme, suggested } = props;\n\n const { palette, semanticColors } = theme;\n\n const classNames = getGlobalClassNames(SuggestionsItemGlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n {\n display: 'flex',\n alignItems: 'stretch',\n boxSizing: 'border-box',\n width: '100%',\n position: 'relative',\n selectors: {\n '&:hover': {\n background: semanticColors.menuItemBackgroundHovered,\n },\n '&:hover .ms-Suggestions-closeButton': {\n display: 'block',\n },\n },\n },\n suggested && {\n selectors: {\n [`.${IsFocusVisibleClassName} &, :host(.${IsFocusVisibleClassName}) &`]: {\n selectors: {\n [`.${classNames.closeButton}`]: {\n display: 'block',\n background: semanticColors.menuItemBackgroundPressed,\n },\n },\n },\n ':after': {\n pointerEvents: 'none',\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n bottom: 0,\n right: 0,\n border: `1px solid ${theme.semanticColors.focusBorder}`,\n },\n },\n },\n className,\n ],\n itemButton: [\n classNames.itemButton,\n {\n justifyContent: 'flex-start',\n width: '100%',\n padding: 0,\n border: 'none',\n height: '100%',\n // Force the item button to be collapsible so it can always shrink\n // to accommodate the close button as a peer in its flex container.\n minWidth: 0,\n // Required for IE11 to truncate the component.\n overflow: 'hidden',\n selectors: {\n [HighContrastSelector]: {\n color: 'WindowText',\n selectors: {\n ':hover': {\n background: 'Highlight',\n color: 'HighlightText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ':hover': {\n color: semanticColors.menuItemTextHovered,\n },\n },\n },\n suggested && [\n classNames.isSuggested,\n {\n background: semanticColors.menuItemBackgroundPressed,\n selectors: {\n ':hover': {\n background: semanticColors.menuDivider,\n },\n [HighContrastSelector]: {\n background: 'Highlight',\n color: 'HighlightText',\n ...getHighContrastNoAdjustStyle(),\n },\n },\n },\n ],\n ],\n closeButton: [\n classNames.closeButton,\n {\n display: 'none',\n color: palette.neutralSecondary,\n padding: '0 4px',\n height: 'auto',\n width: 32,\n selectors: {\n ':hover, :active': {\n background: palette.neutralTertiaryAlt,\n color: palette.neutralDark,\n },\n [HighContrastSelector]: {\n color: 'WindowText',\n },\n },\n },\n suggested && {\n [`.${IsFocusVisibleClassName} &, :host(.${IsFocusVisibleClassName}) &`]: {\n selectors: {\n ':hover, :active': {\n background: palette.neutralTertiary,\n },\n },\n },\n selectors: {\n ':hover, :active': {\n background: palette.neutralTertiary,\n color: palette.neutralPrimary,\n },\n },\n },\n ],\n };\n}\n","import { getGlobalClassNames, getFocusStyle, HighContrastSelector } from '../../../Styling';\nimport { ButtonGlobalClassNames } from '../../Button/BaseButton.classNames';\nimport { getRTL } from '../../../Utilities';\nimport type { ITagItemStyleProps, ITagItemStyles } from './TagPicker.types';\n\nconst GlobalClassNames = {\n root: 'ms-TagItem',\n text: 'ms-TagItem-text',\n close: 'ms-TagItem-close',\n isSelected: 'is-selected',\n};\n\nconst TAG_HEIGHT = 26;\n\nexport function getStyles(props: ITagItemStyleProps): ITagItemStyles {\n const { className, theme, selected, disabled } = props;\n\n const { palette, effects, fonts, semanticColors } = theme;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n root: [\n classNames.root,\n fonts.medium,\n getFocusStyle(theme),\n {\n boxSizing: 'content-box',\n flexShrink: '1',\n margin: 2,\n height: TAG_HEIGHT,\n lineHeight: TAG_HEIGHT,\n cursor: 'default',\n userSelect: 'none',\n display: 'flex',\n flexWrap: 'nowrap',\n maxWidth: 300,\n minWidth: 0, // needed to prevent long tags from overflowing container\n borderRadius: effects.roundedCorner2,\n color: semanticColors.inputText,\n background: palette.neutralLighter,\n selectors: {\n ':hover': [\n !disabled &&\n !selected && {\n color: palette.neutralDark,\n background: palette.neutralLight,\n selectors: {\n '.ms-TagItem-close': {\n color: palette.neutralPrimary,\n },\n },\n },\n disabled && { background: palette.neutralLighter },\n ],\n [HighContrastSelector]: {\n border: `1px solid ${!selected ? 'WindowText' : 'WindowFrame'}`,\n },\n },\n },\n disabled && {\n selectors: {\n [HighContrastSelector]: {\n borderColor: 'GrayText',\n },\n },\n },\n selected &&\n !disabled && [\n classNames.isSelected,\n {\n ':focus-within': {\n background: palette.themePrimary,\n color: palette.white,\n },\n },\n ],\n className,\n ],\n text: [\n classNames.text,\n {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n minWidth: 30,\n margin: '0 8px',\n },\n disabled && {\n selectors: {\n [HighContrastSelector]: {\n color: 'GrayText',\n },\n },\n },\n ],\n close: [\n classNames.close,\n getFocusStyle(theme, { borderColor: 'transparent', inset: 1, outlineColor: palette.white }),\n {\n color: palette.neutralSecondary,\n width: 30,\n height: '100%',\n flex: '0 0 auto',\n borderRadius: getRTL(theme)\n ? `${effects.roundedCorner2} 0 0 ${effects.roundedCorner2}`\n : `0 ${effects.roundedCorner2} ${effects.roundedCorner2} 0`,\n selectors: {\n ':hover': {\n background: palette.neutralQuaternaryAlt,\n color: palette.neutralPrimary,\n },\n [`.${classNames.isSelected} &:focus`]: {\n color: palette.white,\n background: palette.themePrimary,\n },\n ':focus:hover': {\n color: palette.white,\n background: palette.themeDark,\n },\n ':active': {\n color: palette.white,\n backgroundColor: palette.themeDark,\n },\n },\n },\n disabled && {\n selectors: {\n [`.${ButtonGlobalClassNames.msButtonIcon}`]: {\n color: palette.neutralSecondary,\n },\n },\n },\n ],\n };\n}\n","import * as React from 'react';\n\nimport { styled, classNamesFunction } from '../../../Utilities';\nimport { IconButton, IButton } from '../../../Button';\nimport { getStyles } from './TagItem.styles';\nimport { useId } from '@fluentui/react-hooks';\nimport type { ITagItemProps, ITagItemStyleProps, ITagItemStyles } from './TagPicker.types';\n\nconst getClassNames = classNamesFunction();\n\n/**\n * {@docCategory TagPicker}\n */\nexport const TagItemBase = (props: ITagItemProps) => {\n const {\n theme,\n styles,\n selected,\n disabled,\n enableTagFocusInDisabledPicker,\n children,\n className,\n index,\n onRemoveItem,\n removeButtonAriaLabel,\n title = typeof props.children === 'string' ? props.children : props.item.name,\n removeButtonIconProps,\n removeButtonProps,\n } = props;\n\n const buttonRef = React.createRef();\n\n const handleClick: React.MouseEventHandler = () => {\n buttonRef.current?.focus();\n };\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n className,\n selected,\n disabled,\n });\n\n const itemId = useId();\n\n const disabledAttrs = enableTagFocusInDisabledPicker\n ? {\n 'aria-disabled': disabled,\n tabindex: 0,\n }\n : {\n disabled,\n };\n\n return (\n
    \n \n {children}\n \n \n \n
    \n );\n};\n\nexport const TagItem = styled(TagItemBase, getStyles, undefined, {\n scope: 'TagItem',\n});\n","import { getGlobalClassNames } from '../../../Styling';\nimport type { ITagItemSuggestionStyleProps, ITagItemSuggestionStyles } from './TagPicker.types';\n\nconst GlobalClassNames = {\n suggestionTextOverflow: 'ms-TagItem-TextOverflow',\n};\n\nexport function getStyles(props: ITagItemSuggestionStyleProps): ITagItemSuggestionStyles {\n const { className, theme } = props;\n\n const classNames = getGlobalClassNames(GlobalClassNames, theme);\n\n return {\n suggestionTextOverflow: [\n classNames.suggestionTextOverflow,\n {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '60vw',\n padding: '6px 12px 7px',\n whiteSpace: 'nowrap',\n },\n className,\n ],\n };\n}\n","import * as React from 'react';\n\nimport { classNamesFunction, styled } from '../../../Utilities';\nimport { getStyles } from './TagItemSuggestion.styles';\nimport type {\n ITagItemSuggestionProps,\n ITagItemSuggestionStyleProps,\n ITagItemSuggestionStyles,\n} from './TagPicker.types';\n\nconst getClassNames = classNamesFunction();\n\n/**\n * {@docCategory TagPicker}\n */\nexport const TagItemSuggestionBase = (props: ITagItemSuggestionProps) => {\n const { styles, theme, children, ...rest } = props;\n\n const classNames = getClassNames(styles, {\n theme: theme!,\n });\n\n return (\n
    \n {' '}\n {children}{' '}\n
    \n );\n};\n\nexport const TagItemSuggestion = styled<\n ITagItemSuggestionProps,\n ITagItemSuggestionStyleProps,\n ITagItemSuggestionStyles\n>(TagItemSuggestionBase, getStyles, undefined, { scope: 'TagItemSuggestion' });\n","import * as React from 'react';\nimport { styled } from '../../../Utilities';\nimport { BasePicker } from '../BasePicker';\nimport { getStyles } from '../BasePicker.styles';\nimport { TagItem } from './TagItem';\nimport { TagItemSuggestion } from './TagItemSuggestion';\nimport type { IBasePickerStyleProps, IBasePickerStyles } from '../BasePicker.types';\nimport type { ITagPickerProps, ITag, ITagItemProps } from './TagPicker.types';\n\n/**\n * {@docCategory TagPicker}\n */\nexport class TagPickerBase extends BasePicker {\n public static defaultProps = {\n onRenderItem: (props: ITagItemProps) => {props.item.name},\n onRenderSuggestionsItem: (props: ITag) => {props.name},\n };\n}\n\nexport const TagPicker = styled(\n TagPickerBase,\n getStyles,\n undefined,\n {\n scope: 'TagPicker',\n },\n);\n","import * as React from 'react';\nimport { hoistMethods, unhoistMethods } from '../../Utilities';\n\nexport class BaseDecorator extends React.Component {\n protected _composedComponentInstance: React.Component;\n\n private _hoisted: string[];\n\n constructor(props: TProps) {\n super(props);\n this._updateComposedComponentRef = this._updateComposedComponentRef.bind(this);\n }\n\n /**\n * Updates the ref to the component composed by the decorator, which will also take care of hoisting\n * (and unhoisting as appropriate) methods from said component.\n *\n * Pass this method as the argument to the 'ref' property of the composed component.\n */\n protected _updateComposedComponentRef(composedComponentInstance: React.Component): void {\n this._composedComponentInstance = composedComponentInstance;\n if (composedComponentInstance) {\n this._hoisted = hoistMethods(this, composedComponentInstance);\n } else if (this._hoisted) {\n unhoistMethods(this, this._hoisted);\n }\n }\n}\n","import * as React from 'react';\nimport { BaseDecorator } from './BaseDecorator';\nimport { getWindow, hoistStatics, EventGroup } from '../../Utilities';\nimport { WindowContext } from '../../WindowProvider';\n\n/**\n * @deprecated Decorator usage is deprecated. Either call `getResponsiveMode` manually, or\n * use the `useResponsiveMode` hook within a function component.\n */\nexport interface IWithResponsiveModeState {\n responsiveMode?: ResponsiveMode;\n}\n\nexport enum ResponsiveMode {\n /** Width \\<= 479px */\n small = 0,\n /** Width \\> 479px and \\<= 639px */\n medium = 1,\n /** Width \\> 639px and \\<= 1023px */\n large = 2,\n /** Width \\> 1023px and \\<= 1365px */\n xLarge = 3,\n /** Width \\> 1365px and \\<= 1919px */\n xxLarge = 4,\n /** Width \\> 1919px */\n xxxLarge = 5,\n unknown = 999,\n}\n\nconst RESPONSIVE_MAX_CONSTRAINT = [479, 639, 1023, 1365, 1919, 99999999];\n\n/**\n * User specified mode to default to, useful for server side rendering scenarios.\n */\nlet _defaultMode: ResponsiveMode | undefined;\n\n/**\n * Tracking the last mode we successfully rendered, which allows us to\n * paint initial renders with the correct size.\n */\nlet _lastMode: ResponsiveMode | undefined;\n\n/**\n * Allows a server rendered scenario to provide a **default** responsive mode.\n * This WILL NOT trigger any updates to components that have already consumed the responsive mode!\n */\nexport function setResponsiveMode(responsiveMode: ResponsiveMode | undefined): void {\n _defaultMode = responsiveMode;\n}\n\n/**\n * Initializes the responsive mode to the current window size. This can be used to avoid\n * a re-render during first component mount since the window would otherwise not be measured\n * until after mounting.\n *\n * This WILL NOT trigger any updates to components that have already consumed the responsive mode!\n */\nexport function initializeResponsiveMode(element?: HTMLElement): void {\n const currentWindow = getWindow(element);\n\n if (currentWindow) {\n getResponsiveMode(currentWindow);\n }\n}\n\nexport function getInitialResponsiveMode(): ResponsiveMode {\n return _defaultMode ?? _lastMode ?? ResponsiveMode.large;\n}\n\n/**\n * @deprecated Decorator usage is deprecated. Either call `getResponsiveMode` manually, or\n * use the `useResponsiveMode` hook within a function component.\n */\nexport function withResponsiveMode(\n ComposedComponent: new (props: TProps, ...args: any[]) => React.Component,\n): any {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const resultClass = class WithResponsiveMode extends BaseDecorator {\n public static contextType = WindowContext;\n public context: React.ContextType;\n\n private _events: EventGroup;\n\n constructor(props: TProps) {\n super(props);\n this._events = new EventGroup(this);\n this._updateComposedComponentRef = this._updateComposedComponentRef.bind(this);\n\n this.state = {\n responsiveMode: getInitialResponsiveMode(),\n };\n }\n\n public componentDidMount(): void {\n this._events.on(this.context.window, 'resize', this._onResize);\n this._onResize();\n }\n\n public componentWillUnmount(): void {\n this._events.dispose();\n }\n\n public render(): JSX.Element | null {\n const { responsiveMode } = this.state;\n\n return responsiveMode === ResponsiveMode.unknown ? null : (\n \n );\n }\n\n private _onResize = () => {\n const responsiveMode = getResponsiveMode(this.context.window);\n\n if (responsiveMode !== this.state.responsiveMode) {\n this.setState({\n responsiveMode,\n });\n }\n };\n };\n return hoistStatics(ComposedComponent, resultClass);\n}\n\nfunction getWidthOfCurrentWindow(currentWindow: Window): number {\n try {\n return currentWindow.document.documentElement.clientWidth;\n } catch (e) {\n return currentWindow.innerWidth;\n }\n}\n\n/**\n * Hook to get the current responsive mode (window size category).\n * @param currentWindow - Use this window when determining the responsive mode.\n */\nexport function getResponsiveMode(currentWindow: Window | undefined): ResponsiveMode {\n let responsiveMode = ResponsiveMode.small;\n\n if (currentWindow) {\n try {\n while (getWidthOfCurrentWindow(currentWindow) > RESPONSIVE_MAX_CONSTRAINT[responsiveMode]) {\n responsiveMode++;\n }\n } catch (e) {\n // Return a best effort result in cases where we're in the browser but it throws on getting innerWidth.\n responsiveMode = getInitialResponsiveMode();\n }\n\n // Tracking last mode just gives us a better default in future renders,\n // which avoids starting with the wrong value if we've measured once.\n _lastMode = responsiveMode;\n } else {\n if (_defaultMode !== undefined) {\n responsiveMode = _defaultMode;\n } else {\n throw new Error(\n 'Content was rendered in a server environment without providing a default responsive mode. ' +\n 'Call setResponsiveMode to define what the responsive mode is.',\n );\n }\n }\n\n return responsiveMode;\n}\n","import { useDocument, useWindow, WindowProviderProps } from '@fluentui/react-window-provider';\n\n/**\n * NOTE: the check for `window`/`document` is a bit verbose and perhaps\n * overkill but it ensures the prior assumbed behavior of directly\n * calling `window`/`document` is preserved.\n *\n * It is possible to set `window` to undefined on `WindowProvider` so\n * we'll fallback to directly accessing the global in that (hopefully unlikely)\n * case.\n */\n\n/**\n * Get a reference to the `document` object.\n * Use this in place of the global `document` in React function components.\n * @returns Document | undefined\n */\nexport const useDocumentEx = () => {\n // eslint-disable-next-line no-restricted-globals\n return useDocument() ?? (typeof document !== 'undefined' ? document : undefined);\n};\n\n/**\n * Get a reference to the `window` object.\n * Use this in place of the global `window` in React function components.\n * @returns Window | undefined\n */\nexport const useWindowEx = () => {\n // eslint-disable-next-line no-restricted-globals\n return useWindow() ?? (typeof window !== 'undefined' ? window : undefined);\n};\n\n/**\n * Get a reference to the `document` object.\n * Use this in place of the global `document` in React class components.\n *\n * @param ctx - Class component WindowContext\n * @returns Document | undefined\n */\nexport const getDocumentEx = (ctx: Pick | undefined) => {\n // eslint-disable-next-line no-restricted-globals\n return ctx?.window?.document ?? (typeof document !== 'undefined' ? document : undefined);\n};\n\n/**\n * Get a reference to the `window` object.\n * Use this in place of the global `window` in React class components.\n *\n * @param ctx - Class component WindowContext\n * @returns Window | undefined\n */\nexport const getWindowEx = (ctx: Pick | undefined) => {\n // eslint-disable-next-line no-restricted-globals\n return ctx?.window ?? (typeof window !== 'undefined' ? window : undefined);\n};\n","import * as React from 'react';\nimport { getWindow } from '@fluentui/utilities';\nimport { useOnEvent } from '@fluentui/react-hooks';\nimport { ResponsiveMode, getResponsiveMode, getInitialResponsiveMode } from '../decorators/withResponsiveMode';\nimport { useWindow } from '../../WindowProvider';\n\n/**\n * Hook to get the current responsive mode (window size category).\n * @param elementRef - Use this element's parent window when determining the responsive mode.\n * @param overrideResponsiveMode - Override the responsive mode. If this param is present, it's always returned.\n */\nexport const useResponsiveMode = (\n elementRef: React.RefObject,\n overrideResponsiveMode?: ResponsiveMode,\n) => {\n const [lastResponsiveMode, setLastResponsiveMode] = React.useState(getInitialResponsiveMode());\n\n const onResize = React.useCallback(() => {\n const newResponsiveMode = getResponsiveMode(getWindow(elementRef.current));\n\n // Setting the same value should not cause a re-render.\n if (lastResponsiveMode !== newResponsiveMode) {\n setLastResponsiveMode(newResponsiveMode);\n }\n }, [elementRef, lastResponsiveMode]);\n\n const win = useWindow();\n useOnEvent(win, 'resize', onResize);\n\n // Call resize function initially on mount, or if the override changes from defined to undefined\n // (the effect will run on all override changes, but onResize will only be called if it changed to undefined)\n React.useEffect(() => {\n if (overrideResponsiveMode === undefined) {\n onResize();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- only meant to run on mount or when override changes\n }, [overrideResponsiveMode]);\n\n return overrideResponsiveMode ?? lastResponsiveMode;\n};\n","export const KTP_PREFIX = 'ktp';\nexport const KTP_SEPARATOR = '-';\nexport const KTP_FULL_PREFIX = KTP_PREFIX + KTP_SEPARATOR;\nexport const DATAKTP_TARGET = 'data-ktp-target';\nexport const DATAKTP_EXECUTE_TARGET = 'data-ktp-execute-target';\nexport const DATAKTP_ARIA_TARGET = 'data-ktp-aria-target';\nexport const KTP_LAYER_ID = 'ktp-layer-id';\nexport const KTP_ARIA_SEPARATOR = ', ';\n\n// Events\nexport namespace KeytipEvents {\n export const KEYTIP_ADDED = 'keytipAdded';\n export const KEYTIP_REMOVED = 'keytipRemoved';\n export const KEYTIP_UPDATED = 'keytipUpdated';\n export const PERSISTED_KEYTIP_ADDED = 'persistedKeytipAdded';\n export const PERSISTED_KEYTIP_REMOVED = 'persistedKeytipRemoved';\n export const PERSISTED_KEYTIP_EXECUTE = 'persistedKeytipExecute';\n export const ENTER_KEYTIP_MODE = 'enterKeytipMode';\n export const EXIT_KEYTIP_MODE = 'exitKeytipMode';\n}\n","import { EventGroup, getId } from '../../Utilities';\nimport { KeytipEvents } from '../../utilities/keytips/KeytipConstants';\nimport type { IKeytipProps } from '../../Keytip';\n\nexport interface IUniqueKeytip {\n uniqueID: string;\n keytip: IKeytipProps;\n}\n\n/**\n * This class is responsible for handling registering, updating, and unregistering of keytips\n */\nexport class KeytipManager {\n private static _instance: KeytipManager = new KeytipManager();\n\n public keytips: { [key: string]: IUniqueKeytip } = {};\n public persistedKeytips: { [key: string]: IUniqueKeytip } = {};\n public sequenceMapping: { [key: string]: IKeytipProps } = {};\n\n // This is (and should be) updated and kept in sync\n // with the inKeytipMode in KeytipLayer.\n public inKeytipMode = false;\n\n // Boolean that gets checked before entering keytip mode by the KeytipLayer\n // Used for an override in special cases (e.g. Disable entering keytip mode when a modal is shown)\n public shouldEnterKeytipMode = true;\n\n // Boolean to indicate whether to delay firing an event to update subscribers of\n // keytip data changed.\n public delayUpdatingKeytipChange = false;\n\n /**\n * Static function to get singleton KeytipManager instance\n *\n * @returns Singleton KeytipManager instance\n */\n public static getInstance(): KeytipManager {\n return this._instance;\n }\n\n /**\n * Initialization code to set set parameters to define\n * how the KeytipManager handles keytip data.\n *\n * @param delayUpdatingKeytipChange - T/F if we should delay notifiying keytip subscribers\n * of keytip changes\n */\n public init(delayUpdatingKeytipChange: boolean) {\n this.delayUpdatingKeytipChange = delayUpdatingKeytipChange;\n }\n\n /**\n * Registers a keytip\n *\n * @param keytipProps - Keytip to register\n * @param persisted - T/F if this keytip should be persisted, default is false\n * @returns Unique ID for this keytip\n */\n public register(keytipProps: IKeytipProps, persisted: boolean = false): string {\n let props: IKeytipProps = keytipProps;\n if (!persisted) {\n // Add the overflowSetSequence if necessary\n props = this.addParentOverflow(keytipProps);\n this.sequenceMapping[props.keySequences.toString()] = props;\n }\n // Create a unique keytip\n const uniqueKeytip: IUniqueKeytip = this._getUniqueKtp(props);\n // Add to dictionary\n persisted\n ? (this.persistedKeytips[uniqueKeytip.uniqueID] = uniqueKeytip)\n : (this.keytips[uniqueKeytip.uniqueID] = uniqueKeytip);\n\n // We only want to add something new if we are currently showing keytip mode\n if (this.inKeytipMode || !this.delayUpdatingKeytipChange) {\n const event = persisted ? KeytipEvents.PERSISTED_KEYTIP_ADDED : KeytipEvents.KEYTIP_ADDED;\n EventGroup.raise(this, event, {\n keytip: props,\n uniqueID: uniqueKeytip.uniqueID,\n });\n }\n\n return uniqueKeytip.uniqueID;\n }\n\n /**\n * Update a keytip\n *\n * @param keytipProps - Keytip to update\n * @param uniqueID - Unique ID of this keytip\n */\n public update(keytipProps: IKeytipProps, uniqueID: string): void {\n const newKeytipProps = this.addParentOverflow(keytipProps);\n const uniqueKeytip = this._getUniqueKtp(newKeytipProps, uniqueID);\n const oldKeyTip = this.keytips[uniqueID];\n if (oldKeyTip) {\n // Update everything except 'visible'\n uniqueKeytip.keytip.visible = oldKeyTip.keytip.visible;\n // Update keytip in this.keytips\n this.keytips[uniqueID] = uniqueKeytip;\n\n // Update the sequence to be up to date\n delete this.sequenceMapping[oldKeyTip.keytip.keySequences.toString()];\n this.sequenceMapping[uniqueKeytip.keytip.keySequences.toString()] = uniqueKeytip.keytip;\n\n // Raise event only if we are currently in keytip mode\n if (this.inKeytipMode || !this.delayUpdatingKeytipChange) {\n EventGroup.raise(this, KeytipEvents.KEYTIP_UPDATED, {\n keytip: uniqueKeytip.keytip,\n uniqueID: uniqueKeytip.uniqueID,\n });\n }\n }\n }\n\n /**\n * Unregisters a keytip\n *\n * @param keytipToRemove - IKeytipProps of the keytip to remove\n * @param uniqueID - Unique ID of this keytip\n * @param persisted - T/F if this keytip should be persisted, default is false\n */\n public unregister(keytipToRemove: IKeytipProps, uniqueID: string, persisted: boolean = false): void {\n persisted ? delete this.persistedKeytips[uniqueID] : delete this.keytips[uniqueID];\n !persisted && delete this.sequenceMapping[keytipToRemove.keySequences.toString()];\n\n const event = persisted ? KeytipEvents.PERSISTED_KEYTIP_REMOVED : KeytipEvents.KEYTIP_REMOVED;\n // Update keytips only if we're in keytip mode\n if (this.inKeytipMode || !this.delayUpdatingKeytipChange) {\n EventGroup.raise(this, event, {\n keytip: keytipToRemove,\n uniqueID,\n });\n }\n }\n\n /**\n * Manual call to enter keytip mode\n */\n public enterKeytipMode(): void {\n EventGroup.raise(this, KeytipEvents.ENTER_KEYTIP_MODE);\n }\n\n /**\n * Manual call to exit keytip mode\n */\n public exitKeytipMode(): void {\n EventGroup.raise(this, KeytipEvents.EXIT_KEYTIP_MODE);\n }\n\n /**\n * Gets all IKeytipProps from this.keytips\n *\n * @returns All keytips stored in the manager\n */\n public getKeytips(): IKeytipProps[] {\n return Object.keys(this.keytips).map(key => this.keytips[key].keytip);\n }\n\n /**\n * Adds the overflowSetSequence to the keytipProps if its parent keytip also has it\n *\n * @param keytipProps - Keytip props to add overflowSetSequence to if necessary\n * @returns - Modified keytip props, if needed to be modified\n */\n public addParentOverflow(keytipProps: IKeytipProps): IKeytipProps {\n const fullSequence = [...keytipProps.keySequences];\n fullSequence.pop();\n if (fullSequence.length !== 0) {\n const parentKeytip = this.sequenceMapping[fullSequence.toString()];\n if (parentKeytip && parentKeytip.overflowSetSequence) {\n return {\n ...keytipProps,\n overflowSetSequence: parentKeytip.overflowSetSequence,\n };\n }\n }\n return keytipProps;\n }\n\n /**\n * Public function to bind for overflow items that have a submenu\n */\n public menuExecute(overflowButtonSequences: string[], keytipSequences: string[]) {\n EventGroup.raise(this, KeytipEvents.PERSISTED_KEYTIP_EXECUTE, {\n overflowButtonSequences,\n keytipSequences,\n });\n }\n\n /**\n * Creates an IUniqueKeytip object\n *\n * @param keytipProps - IKeytipProps\n * @param uniqueID - Unique ID, will default to the next unique ID if not passed\n * @returns IUniqueKeytip object\n */\n private _getUniqueKtp(keytipProps: IKeytipProps, uniqueID: string = getId()): IUniqueKeytip {\n return { keytip: { ...keytipProps }, uniqueID };\n }\n}\n","import { DirectionalHint } from '../../common/DirectionalHint';\nimport type { IRectangle, Point } from '../../Utilities';\n\nexport enum RectangleEdge {\n top = 1,\n bottom = -1,\n left = 2,\n right = -2,\n}\n\nexport enum Position {\n top = 0,\n bottom = 1,\n start = 2,\n end = 3,\n}\n\n/**\n * Window with typings for experimental features regarding Dual Screen devices.\n */\nexport interface IWindowWithSegments extends Window {\n getWindowSegments?: () => DOMRect[];\n}\n\nexport interface IPositionProps {\n target?: Element | MouseEvent | Point;\n /** how the element should be positioned */\n directionalHint?: DirectionalHint;\n /**\n * How the element should be positioned in RTL layouts.\n * If not specified, a mirror of `directionalHint` will be used instead\n */\n directionalHintForRTL?: DirectionalHint;\n /** The gap between the callout and the target */\n gapSpace?: number;\n /**\n * The bounding rectangle for which the contextual menu can appear in.\n */\n bounds?: IRectangle;\n /**\n * If true the position returned will have the menu element cover the target.\n * If false then it will position next to the target;\n */\n coverTarget?: boolean;\n /**\n * If true the position will not change edges in an attempt to fit the rectangle within bounds.\n * It will still attempt to align it to whatever bounds are given.\n * @defaultvalue false\n */\n directionalHintFixed?: boolean;\n\n /**\n * If true the positioning logic will prefer flipping edges over nudging the rectangle to fit within bounds,\n * thus making sure the element align perfectly with target.\n */\n alignTargetEdge?: boolean;\n}\n\nexport interface ICalloutPositionProps extends IPositionProps {\n /**\n * The width of the beak.\n */\n beakWidth?: number;\n\n /**\n * Whether or not the beak is visible\n */\n isBeakVisible?: boolean;\n}\n\nexport interface IPositionedData {\n /**\n * The new position of the element.\n */\n elementPosition: IPosition;\n /**\n * The finalized target edge that element is aligning to. For instance RectangleEdge.bottom would mean\n * that the bottom edge of the target is being aligned to by the RectangleEdge.top of the element\n * that is being positioned.\n */\n targetEdge: RectangleEdge;\n /**\n * The finalized alignment edge that the element is aligning too. For instance, RectangleEdge.left means\n * that the left edge of the target should be in line with the left edge of the element being positioned.\n */\n alignmentEdge?: RectangleEdge;\n}\n\nexport interface ICalloutPositionedInfo extends IPositionedData {\n beakPosition: ICalloutBeakPositionedInfo;\n}\n\nexport interface ICalloutBeakPositionedInfo extends IPositionedData {\n closestEdge: RectangleEdge;\n hideBeak?: boolean;\n}\n\n/**\n * Gives the position of some element on the page. Only a pair of vertical and horizontal edges need to be\n * given. So top/left or bottom/left is sufficient.\n * The number given is the distance in pixels from whatever host was given..\n * So bottom: 100 would be 100px up from the bottom of the host while top: 100px from the top.\n */\nexport interface IPosition {\n top?: number;\n left?: number;\n bottom?: number;\n right?: number;\n [key: string]: number | undefined;\n}\n\nexport interface IPositionDirectionalHintData {\n targetEdge: RectangleEdge;\n alignmentEdge?: RectangleEdge;\n isAuto?: boolean;\n alignTargetEdge?: boolean;\n}\n\nexport interface IRelativePositions {\n calloutPosition: IPosition;\n beakPosition: { position: IPosition | undefined; display: 'block' };\n directionalClassName: string;\n submenuDirection: DirectionalHint;\n}\n\nexport type { Point, IPoint } from '../../Utilities';\n","import type { ISelectableOption } from '../../utilities/selectableOption/SelectableOption.types';\n\nexport function getAllSelectedOptions(options: ISelectableOption[], selectedIndices: number[]): ISelectableOption[] {\n const selectedOptions: ISelectableOption[] = [];\n for (const index of selectedIndices) {\n const option = options[index];\n\n if (option) {\n selectedOptions.push(option);\n }\n }\n\n return selectedOptions;\n}\n","export interface ISelectableOption {\n /**\n * Arbitrary string associated with this option.\n */\n key: string | number;\n\n /**\n * ID attribute associated with this option\n */\n id?: string;\n\n /**\n * Text to render for this option\n */\n text: string;\n\n /**\n * Title attribute (built in tooltip) for a given option.\n */\n title?: string;\n\n /**\n * Text to render for this option\n * Note: the SelectAll itemType is only supported on one option in multiselect components\n */\n itemType?: SelectableOptionMenuItemType;\n\n /**\n * Index for this option\n */\n index?: number;\n\n /**\n * The aria label for the dropdown option. If not present, the `text` will be used.\n */\n ariaLabel?: string;\n\n /** If option is selected. */\n selected?: boolean;\n\n /**\n * Whether the option is disabled\n * @defaultvalue false\n */\n disabled?: boolean;\n\n /**\n * Defines whether the option is hidden or not.\n * @defaultvalue false\n */\n hidden?: boolean;\n\n /**\n * Data available to custom onRender functions.\n */\n data?: T;\n}\n\nexport enum SelectableOptionMenuItemType {\n Normal = 0,\n Divider = 1,\n Header = 2,\n SelectAll = 3,\n}\n","import * as React from 'react';\nimport {\n Async,\n EventGroup,\n KeyCodes,\n elementContains,\n findScrollableParent,\n getParent,\n getDocument,\n getWindow,\n isElementTabbable,\n css,\n initializeComponentRef,\n FocusRects,\n} from '../../Utilities';\nimport { SelectionMode } from './interfaces';\nimport type { ISelection, IObjectWithKey } from './interfaces';\n\n// Selection definitions:\n//\n// Anchor index: the point from which a range selection starts.\n// Focus index: the point from which layout movement originates from.\n//\n// These two can differ. Tests:\n//\n// If you start at index 5\n// Shift click to index 10\n// The focus is 10, the anchor is 5.\n// If you shift click at index 0\n// The anchor remains at 5, the items between 0 and 5 are selected and everything else is cleared.\n// If you click index 8\n// The anchor and focus are set to 8.\n\nconst SELECTION_DISABLED_ATTRIBUTE_NAME = 'data-selection-disabled';\nconst SELECTION_INDEX_ATTRIBUTE_NAME = 'data-selection-index';\nconst SELECTION_SPAN_ATTRIBUTE_NAME = 'data-selection-span';\nconst SELECTION_TOGGLE_ATTRIBUTE_NAME = 'data-selection-toggle';\nconst SELECTION_INVOKE_ATTRIBUTE_NAME = 'data-selection-invoke';\nconst SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME = 'data-selection-touch-invoke';\nconst SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME = 'data-selection-all-toggle';\nconst SELECTION_SELECT_ATTRIBUTE_NAME = 'data-selection-select';\n\n/**\n * {@docCategory Selection}\n */\nexport interface ISelectionZone {\n /**\n * Method to ignore subsequent focus.\n */\n ignoreNextFocus: () => void;\n}\n\n/**\n * {@docCategory Selection}\n */\nexport interface ISelectionZoneProps extends React.ClassAttributes {\n children?: React.ReactNode;\n /**\n * Reference to the component interface.\n */\n componentRef?: () => void;\n /**\n * Required {@link ISelection} instance bound to the {@link SelectionZone}.\n */\n selection: ISelection;\n /**\n * @deprecated No longer in use, focus is now managed by {@link FocusZone}.\n */\n layout?: {};\n /**\n * The mode of Selection, where the value is one of\n * 'none', 'single', or 'multiple'.\n *\n * @defaultvalue {@link SelectionMode.multiple}\n */\n selectionMode?: SelectionMode;\n /**\n * If true, selection is preserved on outer click.\n */\n selectionPreservedOnEmptyClick?: boolean;\n /**\n * If true, disables automatic selection on input elements.\n */\n disableAutoSelectOnInputElements?: boolean;\n /**\n * If true, modal selection is enabled on touch event.\n */\n enterModalOnTouch?: boolean;\n /**\n * Determines whether elements with the attribute `data-selection-touch-invoke` should be used as invocation targets\n * for an item if the user is using touch.\n *\n * @defaultvalue false\n */\n enableTouchInvocationTarget?: boolean;\n /**\n * Determines if an item is selected on focus.\n *\n * @defaultvalue true\n */\n isSelectedOnFocus?: boolean;\n /**\n * Determines if elements within the selection zone that DO NOT have the 'data-selection-toggle' or\n * 'data-selection-all-toggle' attribute are clickable and can alter the selection.\n *\n * @defaultvalue true\n */\n selectionClearedOnSurfaceClick?: boolean;\n\n /**\n * Determines if pressing the Escape clears the selection.\n *\n * @defaultvalue true\n */\n selectionClearedOnEscapePress?: boolean;\n\n /**\n * Allows the default toggle behavior to be overridden.\n * When set to `true` users do not have press a modifier key (e.g., ctrl or meta)\n * to toggle values.\n *\n * @default false\n */\n toggleWithoutModifierPressed?: boolean;\n\n /**\n * Optional callback for when an item is\n * invoked via ENTER or double-click.\n */\n onItemInvoked?: (item?: IObjectWithKey, index?: number, ev?: Event) => void;\n /**\n * Optional callback for when an\n * item's contextual menu action occurs.\n */\n onItemContextMenu?: (item?: any, index?: number, ev?: Event) => void | boolean;\n /**\n * Additional CSS class(es) to apply to the SelectionZone.\n */\n className?: string;\n}\n\n/**\n * {@docCategory Selection}\n */\nexport interface ISelectionZoneState {\n isModal: boolean | undefined;\n}\n\n/**\n * {@docCategory Selection}\n */\nexport class SelectionZone extends React.Component {\n public static defaultProps = {\n isSelectedOnFocus: true,\n toggleWithoutModifierPressed: false,\n selectionMode: SelectionMode.multiple,\n selectionClearedOnEscapePress: true,\n };\n\n private _async: Async;\n private _events: EventGroup;\n private _root = React.createRef();\n private _isCtrlPressed: boolean;\n private _isShiftPressed: boolean;\n private _isMetaPressed: boolean;\n private _isTabPressed: boolean;\n private _shouldHandleFocus: boolean;\n private _shouldHandleFocusTimeoutId: number | undefined;\n private _isTouch: boolean;\n private _isTouchTimeoutId: number | undefined;\n\n public static getDerivedStateFromProps(\n nextProps: ISelectionZoneProps,\n prevState: ISelectionZoneState,\n ): ISelectionZoneState {\n const isModal = nextProps.selection.isModal && nextProps.selection.isModal();\n\n return {\n ...prevState,\n isModal,\n };\n }\n\n constructor(props: ISelectionZoneProps) {\n super(props);\n\n this._events = new EventGroup(this);\n this._async = new Async(this);\n initializeComponentRef(this);\n\n const { selection } = this.props;\n\n // Reflect the initial modal state of selection into the state.\n const isModal = selection.isModal && selection.isModal();\n\n this.state = {\n isModal,\n };\n }\n\n public componentDidMount(): void {\n const win = getWindow(this._root.current);\n const doc = win?.document;\n\n // Track the latest modifier keys globally.\n this._events.on(win, 'keydown, keyup', this._updateModifiers, true);\n this._events.on(doc, 'click', this._findScrollParentAndTryClearOnEmptyClick);\n this._events.on(doc?.body, 'touchstart', this._onTouchStartCapture, true);\n this._events.on(doc?.body, 'touchend', this._onTouchStartCapture, true);\n\n // Subscribe to the selection to keep modal state updated.\n this._events.on(this.props.selection, 'change', this._onSelectionChange);\n }\n\n public render(): JSX.Element {\n const { isModal } = this.state;\n\n return (\n \n {this.props.children}\n \n \n );\n }\n\n public componentDidUpdate(previousProps: ISelectionZoneProps): void {\n const { selection } = this.props;\n\n if (selection !== previousProps.selection) {\n // Whenever selection changes, update the subscripton to keep modal state updated.\n this._events.off(previousProps.selection);\n this._events.on(selection, 'change', this._onSelectionChange);\n }\n }\n\n public componentWillUnmount(): void {\n this._events.dispose();\n this._async.dispose();\n }\n\n /**\n * In some cases, the consuming scenario requires to set focus on a row without having SelectionZone\n * react to the event. Note that focus events in IE \\<= 11 will occur asynchronously after .focus() has\n * been called on an element, so we need a flag to store the idea that we will bypass the \"next\"\n * focus event that occurs. This method does that.\n */\n public ignoreNextFocus = (): void => {\n this._handleNextFocus(false);\n };\n\n private _onSelectionChange = (): void => {\n const { selection } = this.props;\n\n const isModal = selection.isModal && selection.isModal();\n\n this.setState({\n isModal,\n });\n };\n\n private _onMouseDownCapture = (ev: React.MouseEvent): void => {\n let target = ev.target as HTMLElement;\n const win = getWindow(this._root.current);\n const doc = win?.document;\n\n if (doc?.activeElement !== target && !elementContains(doc?.activeElement as HTMLElement, target)) {\n this.ignoreNextFocus();\n return;\n }\n\n if (!elementContains(target, this._root.current)) {\n return;\n }\n\n while (target !== this._root.current) {\n if (this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) {\n this.ignoreNextFocus();\n break;\n }\n\n target = getParent(target) as HTMLElement;\n }\n };\n\n /**\n * When we focus an item, for single/multi select scenarios, we should try to select it immediately\n * as long as the focus did not originate from a mouse down/touch event. For those cases, we handle them\n * specially.\n */\n private _onFocus = (ev: React.FocusEvent): void => {\n const target = ev.target as HTMLElement;\n const { selection } = this.props;\n const isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed;\n\n const selectionMode = this._getSelectionMode();\n\n if (this._shouldHandleFocus && selectionMode !== SelectionMode.none) {\n const isToggle = this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME);\n const itemRoot = this._findItemRoot(target);\n\n if (!isToggle && itemRoot) {\n const index = this._getItemIndex(itemRoot);\n const span = this._getItemSpan(itemRoot);\n\n if (span === undefined) {\n if (isToggleModifierPressed) {\n // set anchor only.\n selection.setIndexSelected(index, selection.isIndexSelected(index), true);\n if (this.props.enterModalOnTouch && this._isTouch && selection.setModal) {\n selection.setModal(true);\n this._setIsTouch(false);\n }\n } else {\n if (this.props.isSelectedOnFocus) {\n this._onItemSurfaceClick('focus', index);\n }\n }\n }\n }\n }\n\n this._handleNextFocus(false);\n };\n\n private _onMouseDown = (ev: React.MouseEvent): void => {\n this._updateModifiers(ev);\n\n const { toggleWithoutModifierPressed } = this.props;\n\n let target = ev.target as HTMLElement;\n const itemRoot = this._findItemRoot(target);\n\n // No-op if selection is disabled\n if (this._isSelectionDisabled(target)) {\n return;\n }\n\n while (target !== this._root.current) {\n if (this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) {\n break;\n } else if (itemRoot) {\n if (this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) {\n break;\n } else if (this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)) {\n break;\n } else if (\n (target === itemRoot || this._shouldAutoSelect(target)) &&\n !this._isShiftPressed &&\n !this._isCtrlPressed &&\n !this._isMetaPressed &&\n !toggleWithoutModifierPressed\n ) {\n this._onInvokeMouseDown(ev, this._getItemIndex(itemRoot), this._getItemSpan(itemRoot));\n\n break;\n } else if (\n this.props.disableAutoSelectOnInputElements &&\n (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT')\n ) {\n return;\n }\n }\n\n target = getParent(target) as HTMLElement;\n }\n };\n\n private _onTouchStartCapture = (ev: React.TouchEvent): void => {\n this._setIsTouch(true);\n };\n\n private _onClick = (ev: React.MouseEvent): void => {\n const { enableTouchInvocationTarget = false } = this.props;\n\n this._updateModifiers(ev);\n\n let target = ev.target as HTMLElement;\n const itemRoot = this._findItemRoot(target);\n\n const isSelectionDisabled = this._isSelectionDisabled(target);\n\n while (target !== this._root.current) {\n if (this._hasAttribute(target, SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME)) {\n if (!isSelectionDisabled) {\n this._onToggleAllClick(ev);\n }\n break;\n } else if (itemRoot) {\n const index = this._getItemIndex(itemRoot);\n const span = this._getItemSpan(itemRoot);\n\n if (this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) {\n if (!isSelectionDisabled) {\n if (this._isShiftPressed) {\n this._onItemSurfaceClick('click', index, span);\n } else {\n this._onToggleClick(ev, index, span);\n }\n }\n break;\n } else if (\n (this._isTouch &&\n enableTouchInvocationTarget &&\n this._hasAttribute(target, SELECTION_INVOKE_TOUCH_ATTRIBUTE_NAME)) ||\n this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)\n ) {\n if (span === undefined) {\n // Items should be invokable even if selection is disabled.\n this._onInvokeClick(ev, index);\n }\n break;\n } else if (target === itemRoot) {\n if (!isSelectionDisabled) {\n this._onItemSurfaceClick('click', index, span);\n }\n break;\n } else if (target.tagName === 'A' || target.tagName === 'BUTTON' || target.tagName === 'INPUT') {\n return;\n }\n }\n\n target = getParent(target) as HTMLElement;\n }\n };\n\n private _onContextMenu = (ev: React.MouseEvent): void => {\n const target = ev.target as HTMLElement;\n\n const { onItemContextMenu, selection } = this.props;\n if (onItemContextMenu) {\n const itemRoot = this._findItemRoot(target);\n\n if (itemRoot) {\n const index = this._getItemIndex(itemRoot);\n\n this._onInvokeMouseDown(ev, index);\n\n const skipPreventDefault = onItemContextMenu(selection.getItems()[index], index, ev.nativeEvent);\n\n // In order to keep back compat, if the value here is undefined, then we should still\n // call preventDefault(). Only in the case where true is explicitly returned should\n // the call be skipped.\n if (!skipPreventDefault) {\n ev.preventDefault();\n }\n }\n }\n };\n\n private _isSelectionDisabled(target: HTMLElement): boolean {\n if (this._getSelectionMode() === SelectionMode.none) {\n return true;\n }\n\n while (target !== this._root.current) {\n if (this._hasAttribute(target, SELECTION_DISABLED_ATTRIBUTE_NAME)) {\n return true;\n }\n target = getParent(target) as HTMLElement;\n }\n\n return false;\n }\n\n /**\n * In multi selection, if you double click within an item's root (but not within the invoke element or\n * input elements), we should execute the invoke handler.\n */\n private _onDoubleClick = (ev: React.MouseEvent): void => {\n let target = ev.target as HTMLElement;\n\n const { onItemInvoked } = this.props;\n const itemRoot = this._findItemRoot(target);\n\n if (itemRoot && onItemInvoked && !this._isInputElement(target)) {\n const index = this._getItemIndex(itemRoot);\n\n while (target !== this._root.current) {\n if (\n this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME) ||\n this._hasAttribute(target, SELECTION_INVOKE_ATTRIBUTE_NAME)\n ) {\n break;\n } else if (target === itemRoot) {\n this._onInvokeClick(ev, index);\n break;\n }\n\n target = getParent(target) as HTMLElement;\n }\n\n target = getParent(target) as HTMLElement;\n }\n };\n\n private _onKeyDownCapture = (ev: React.KeyboardEvent): void => {\n this._updateModifiers(ev);\n\n this._handleNextFocus(true);\n };\n\n private _onKeyDown = (ev: React.KeyboardEvent): boolean | undefined => {\n this._updateModifiers(ev);\n\n let target = ev.target as HTMLElement;\n\n const isSelectionDisabled = this._isSelectionDisabled(target);\n\n const { selection, selectionClearedOnEscapePress } = this.props;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isSelectAllKey = ev.which === KeyCodes.a && (this._isCtrlPressed || this._isMetaPressed);\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const isClearSelectionKey = ev.which === KeyCodes.escape;\n\n // Ignore key downs from input elements.\n if (this._isInputElement(target)) {\n // A key was pressed while an item in this zone was focused.\n return;\n }\n\n const selectionMode = this._getSelectionMode();\n\n // If ctrl-a is pressed, select all (if all are not already selected.)\n if (isSelectAllKey && selectionMode === SelectionMode.multiple && !selection.isAllSelected()) {\n if (!isSelectionDisabled) {\n selection.setAllSelected(true);\n }\n ev.stopPropagation();\n ev.preventDefault();\n return;\n }\n\n // If escape is pressed and the component is configured to clear on escape press,\n // clear selection (if any are selected.)\n if (selectionClearedOnEscapePress && isClearSelectionKey && selection.getSelectedCount() > 0) {\n if (!isSelectionDisabled) {\n selection.setAllSelected(false);\n }\n ev.stopPropagation();\n ev.preventDefault();\n return;\n }\n\n const itemRoot = this._findItemRoot(target);\n\n // If a key was pressed within an item, we should treat \"enters\" as invokes and \"space\" as toggle\n if (itemRoot) {\n const index = this._getItemIndex(itemRoot);\n const span = this._getItemSpan(itemRoot);\n\n while (target !== this._root.current) {\n if (this._hasAttribute(target, SELECTION_TOGGLE_ATTRIBUTE_NAME)) {\n // For toggle elements, assuming they are rendered as buttons, they will generate a click event,\n // so we can no-op for any keydowns in this case.\n break;\n } else if (this._shouldAutoSelect(target)) {\n if (!isSelectionDisabled && span === undefined) {\n // If the event went to an element which should trigger auto-select, select it and then let\n // the default behavior kick in.\n this._onInvokeMouseDown(ev, index, span);\n }\n break;\n } else if (\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n (ev.which === KeyCodes.enter || ev.which === KeyCodes.space) &&\n (target.tagName === 'BUTTON' ||\n target.tagName === 'A' ||\n target.tagName === 'INPUT' ||\n target.tagName === 'SUMMARY')\n ) {\n return false;\n } else if (target === itemRoot) {\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n if (ev.which === KeyCodes.enter) {\n if (span === undefined) {\n // Items should be invokable even if selection is disabled.\n this._onInvokeClick(ev, index);\n ev.preventDefault();\n }\n return;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n } else if (ev.which === KeyCodes.space) {\n if (!isSelectionDisabled) {\n this._onToggleClick(ev, index, span);\n }\n ev.preventDefault();\n return;\n }\n break;\n }\n\n target = getParent(target) as HTMLElement;\n }\n }\n };\n\n private _onToggleAllClick(ev: React.MouseEvent): void {\n const { selection } = this.props;\n\n const selectionMode = this._getSelectionMode();\n\n if (selectionMode === SelectionMode.multiple) {\n selection.toggleAllSelected();\n ev.stopPropagation();\n ev.preventDefault();\n }\n }\n\n private _onToggleClick(\n ev: React.MouseEvent | React.KeyboardEvent,\n index: number,\n span?: number,\n ): void {\n const { selection } = this.props;\n\n const selectionMode = this._getSelectionMode();\n\n selection.setChangeEvents(false);\n\n if (\n this.props.enterModalOnTouch &&\n this._isTouch &&\n (span !== undefined ? !selection.isRangeSelected(index, span) : !selection.isIndexSelected(index)) &&\n selection.setModal\n ) {\n selection.setModal(true);\n this._setIsTouch(false);\n }\n\n if (selectionMode === SelectionMode.multiple) {\n if (span !== undefined) {\n selection.toggleRangeSelected(index, span);\n } else {\n selection.toggleIndexSelected(index);\n }\n } else if (selectionMode === SelectionMode.single) {\n if (span === undefined || span === 1) {\n const isSelected = selection.isIndexSelected(index);\n const isModal = selection.isModal && selection.isModal();\n selection.setAllSelected(false);\n selection.setIndexSelected(index, !isSelected, true);\n if (isModal && selection.setModal) {\n // Since the above call to setAllSelected(false) clears modal state,\n // restore it. This occurs because the SelectionMode of the Selection\n // may differ from the SelectionZone.\n selection.setModal(true);\n }\n }\n } else {\n selection.setChangeEvents(true);\n return;\n }\n\n selection.setChangeEvents(true);\n\n ev.stopPropagation();\n\n // NOTE: ev.preventDefault is not called for toggle clicks, because this will kill the browser behavior\n // for checkboxes if you use a checkbox for the toggle.\n }\n\n private _onInvokeClick(ev: React.MouseEvent | React.KeyboardEvent, index: number): void {\n const { selection, onItemInvoked } = this.props;\n\n if (onItemInvoked) {\n onItemInvoked(selection.getItems()[index], index, ev.nativeEvent);\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n\n private _onItemSurfaceClick(type: 'focus' | 'click', index: number, span?: number): void {\n const { selection, toggleWithoutModifierPressed } = this.props;\n const isToggleModifierPressed = this._isCtrlPressed || this._isMetaPressed;\n\n const selectionMode = this._getSelectionMode();\n\n if (selectionMode === SelectionMode.multiple) {\n if (this._isShiftPressed && !this._isTabPressed) {\n if (span !== undefined) {\n selection.selectToRange?.(index, span, !isToggleModifierPressed);\n } else {\n selection.selectToIndex(index, !isToggleModifierPressed);\n }\n } else if (type === 'click' && (isToggleModifierPressed || toggleWithoutModifierPressed)) {\n if (span !== undefined) {\n selection.toggleRangeSelected(index, span);\n } else {\n selection.toggleIndexSelected(index);\n }\n } else {\n this._clearAndSelectIndex(index, span);\n }\n } else if (selectionMode === SelectionMode.single) {\n this._clearAndSelectIndex(index, span);\n }\n }\n\n private _onInvokeMouseDown(\n ev: React.MouseEvent | React.KeyboardEvent,\n index: number,\n span?: number,\n ): void {\n const { selection } = this.props;\n\n if (span !== undefined) {\n if (selection.isRangeSelected(index, span)) {\n return;\n }\n } else {\n // Only do work if item is not selected.\n if (selection.isIndexSelected(index)) {\n return;\n }\n }\n\n this._clearAndSelectIndex(index, span);\n }\n\n /**\n * To avoid high startup cost of traversing the DOM on component mount,\n * defer finding the scrollable parent until a click interaction.\n *\n * The styles will probably already calculated since we're running in a click handler,\n * so this is less likely to cause layout thrashing then doing it in mount.\n */\n private _findScrollParentAndTryClearOnEmptyClick(ev: MouseEvent) {\n const win = getWindow(this._root.current);\n const doc = win?.document;\n const scrollParent = findScrollableParent(this._root.current) as HTMLElement;\n // unbind this handler and replace binding with a binding on the actual scrollable parent\n this._events.off(doc, 'click', this._findScrollParentAndTryClearOnEmptyClick);\n this._events.on(scrollParent, 'click', this._tryClearOnEmptyClick);\n\n // If we clicked inside the scrollable parent, call through to the handler on this click.\n if ((scrollParent && ev.target instanceof Node && scrollParent.contains(ev.target)) || scrollParent === ev.target) {\n this._tryClearOnEmptyClick(ev);\n }\n }\n\n private _tryClearOnEmptyClick(ev: MouseEvent): void {\n if (!this.props.selectionPreservedOnEmptyClick && this._isNonHandledClick(ev.target as HTMLElement)) {\n this.props.selection.setAllSelected(false);\n }\n }\n\n private _clearAndSelectIndex(index: number, span?: number): void {\n const { selection, selectionClearedOnSurfaceClick = true } = this.props;\n const isAlreadySingleSelected =\n (span === undefined || span === 1) && selection.getSelectedCount() === 1 && selection.isIndexSelected(index);\n\n if (!isAlreadySingleSelected && selectionClearedOnSurfaceClick) {\n const isModal = selection.isModal && selection.isModal();\n selection.setChangeEvents(false);\n selection.setAllSelected(false);\n if (span !== undefined) {\n selection.setRangeSelected?.(index, span, true, true);\n } else {\n selection.setIndexSelected(index, true, true);\n }\n if (isModal || (this.props.enterModalOnTouch && this._isTouch)) {\n if (selection.setModal) {\n selection.setModal(true);\n }\n if (this._isTouch) {\n this._setIsTouch(false);\n }\n }\n selection.setChangeEvents(true);\n }\n }\n\n /**\n * We need to track the modifier key states so that when focus events occur, which do not contain\n * modifier states in the Event object, we know how to behave.\n */\n private _updateModifiers(ev: React.KeyboardEvent | React.MouseEvent): void {\n this._isShiftPressed = ev.shiftKey;\n this._isCtrlPressed = ev.ctrlKey;\n this._isMetaPressed = ev.metaKey;\n\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n const keyCode = (ev as React.KeyboardEvent).keyCode;\n this._isTabPressed = keyCode ? keyCode === KeyCodes.tab : false;\n }\n\n private _findItemRoot(target: HTMLElement): HTMLElement | undefined {\n const { selection } = this.props;\n\n while (target !== this._root.current) {\n const indexValue = target.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME);\n const index = Number(indexValue);\n\n if (indexValue !== null && index >= 0 && index < selection.getItems().length) {\n break;\n }\n\n target = getParent(target) as HTMLElement;\n }\n\n if (target === this._root.current) {\n return undefined;\n }\n\n return target;\n }\n\n private _getItemIndex(itemRoot: HTMLElement): number {\n const indexValue = parseInt(itemRoot.getAttribute(SELECTION_INDEX_ATTRIBUTE_NAME) ?? '', 10);\n\n return isNaN(indexValue) ? -1 : indexValue;\n }\n\n private _getItemSpan(itemRoot: HTMLElement): number | undefined {\n const spanValue = parseInt(itemRoot.getAttribute(SELECTION_SPAN_ATTRIBUTE_NAME) ?? '', 10);\n\n return isNaN(spanValue) ? undefined : spanValue;\n }\n\n private _shouldAutoSelect(element: HTMLElement): boolean {\n return this._hasAttribute(element, SELECTION_SELECT_ATTRIBUTE_NAME);\n }\n\n private _hasAttribute(element: HTMLElement, attributeName: string): boolean {\n let isToggle = false;\n\n while (!isToggle && element !== this._root.current) {\n const value = element.getAttribute(attributeName);\n if (value === 'false') {\n isToggle = false;\n break;\n }\n isToggle = value === 'true';\n element = getParent(element) as HTMLElement;\n }\n\n return isToggle;\n }\n\n private _isInputElement(element: HTMLElement): boolean {\n return (\n element.tagName === 'INPUT' ||\n element.tagName === 'TEXTAREA' ||\n element.getAttribute('contenteditable') === 'true' ||\n element.getAttribute('contenteditable') === ''\n );\n }\n\n private _isNonHandledClick(element: HTMLElement): boolean {\n const doc = getDocument();\n\n if (doc && element) {\n while (element && element !== doc.documentElement) {\n if (isElementTabbable(element) || element.hasAttribute('data-selection-index')) {\n return false;\n }\n\n element = getParent(element) as HTMLElement;\n }\n }\n\n return true;\n }\n\n private _handleNextFocus(handleFocus: boolean): void {\n if (this._shouldHandleFocusTimeoutId) {\n this._async.clearTimeout(this._shouldHandleFocusTimeoutId);\n this._shouldHandleFocusTimeoutId = undefined;\n }\n\n this._shouldHandleFocus = handleFocus;\n\n if (handleFocus) {\n this._async.setTimeout(() => {\n this._shouldHandleFocus = false;\n }, 100);\n }\n }\n\n private _setIsTouch(isTouch: boolean): void {\n if (this._isTouchTimeoutId) {\n this._async.clearTimeout(this._isTouchTimeoutId);\n this._isTouchTimeoutId = undefined;\n }\n\n this._isTouch = true;\n\n if (isTouch) {\n this._async.setTimeout(() => {\n this._isTouch = false;\n }, 300);\n }\n }\n\n private _getSelectionMode(): SelectionMode {\n const { selection } = this.props;\n\n const { selectionMode = selection ? selection.mode : SelectionMode.none } = this.props;\n\n return selectionMode;\n }\n}\n"],"names":["DirectionalHint","topLeftEdge","topCenter","topRightEdge","topAutoEdge","bottomLeftEdge","bottomCenter","bottomRightEdge","bottomAutoEdge","leftTopEdge","leftCenter","leftBottomEdge","rightTopEdge","rightCenter","rightBottomEdge","getClassNames","classNamesFunction","AnnouncedBase","_super","__extends","prototype","render","_a","this","props","message","styles","_b","as","Root","className","classNames","React","__assign","role","root","getNativeProps","divProperties","DelayedRender","screenReaderText","defaultProps","Announced","styled","hiddenContentStyle","undefined","scope","SELECTION_BACKWARD","Autofill","_this","call","_inputElement","_autoFillEnabled","_onCompositionStart","ev","setState","isComposing","_onCompositionUpdate","isIE11","_updateValue","_getCurrentInputValue","_onCompositionEnd","inputValue","_tryEnableAutofill","value","_async","setTimeout","_onClick","_onKeyDown","onKeyDown","nativeEvent","which","KeyCodes","del","backspace","left","right","prev","suggestedDisplayValue","enableAutofillOnKeyPress","indexOf","_onInputChanged","state","nativeEventComposing","_onChanged","newValue","composing","onInputChange","onInputValueChange","initializeComponentRef","Async","defaultVisibleValue","getDerivedStateFromProps","updateValueInWillReceiveProps","updatedInputValue","Object","defineProperty","current","inputElement","selectionDirection","selectionEnd","selectionStart","Boolean","_getControlledValue","componentDidUpdate","_","previousState","cursor","shouldSelectFullInputValueInComponentDidUpdate","differenceIndex","preventValueSelection","document","context","window","getDocument","activeElement","_doesTextStartWith","shouldSelectFullRange","setSelectionRange","length","toLocaleLowerCase","start","end","dir","componentWillUnmount","dispose","nativeProps","inputProperties","style","fontFamily","autoCapitalize","autoComplete","ref","_getDisplayValue","onCompositionStart","onCompositionUpdate","onCompositionEnd","onChange","onInput","onClick","focus","clear","getSnapshotBeforeUpdate","inel","target","oldValue","isComposed","displayValue","console","warn","concat","toString","down","up","contextType","WindowContext","text","startWith","nullFunction","nonActionableItemProps","selectors","color","theme","semanticColors","bodyText","BreadcrumbBase","_focusZone","_onReduceData","data","renderedItems","renderedOverflowItems","overflowIndex","movedItem","__spreadArray","splice","_onGrowData","maxDisplayedItems","pop","_onRenderBreadcrumb","ariaLabel","dividerAs","DividerType","Icon","onRenderItem","overflowAriaLabel","onRenderOverflowIcon","overflowButtonAs","contextualItems","map","item","isActionable","href","name","key","_onBreadcrumbClicked","bind","disabled","itemProps","lastItemIndex","hasOverflowItems","itemElements","index","finalOnRenderItem","_onRenderItem","onRender","composeRenderFunction","_classNames","listItem","String","chevron","iconName","getRTL","iconProps","onRenderMenuIcon","OverflowButton","IconButton","overflow","overflowButton","menuProps","items","directionalHint","htmlElementProperties","FocusZone","componentRef","direction","FocusZoneDirection","horizontal","focusZoneProps","list","isCurrentItem","onRenderContent","additionalProps","__rest","finalOnRenderContent","defaultOnRenderCrumbContent","onRenderItemContent","Link","itemLink","TooltipHost","content","overflowMode","TooltipOverflowMode","Parent","tooltipHostProps","Tag","_validateProps","onReduceData","_c","onGrowData","breadcrumbData","ResizeGroup","onRenderData","Error","GlobalClassNames","SingleLineTextStyle","whiteSpace","textOverflow","MinimumScreenSelector","getScreenSelector","ScreenWidthMaxSmall","MediumScreenSelector","ScreenWidthMinMedium","ScreenWidthMaxMedium","Breadcrumb","palette","fonts","getGlobalClassNames","itemBackgroundHoveredColor","menuItemBackgroundHovered","itemBackgroundPressedColor","menuItemBackgroundPressed","itemTextColor","neutralSecondary","itemTextFontWeight","FontWeights","regular","itemTextHoveredOrPressedColor","neutralPrimary","itemLastChildTextColor","itemLastChildTextFontWeight","semibold","chevronButtonColor","overflowButtonColor","lastChildItemStyles","fontWeight","itemStateSelectors","backgroundColor","HighContrastSelector","textDecoration","commonItemStyles","padding","lineHeight","fontSize","medium","margin","display","alignItems","listStyleType","position","MsHighContrastAdjust","forcedColorAdjust","small","getHighContrastNoAdjustStyle","getFocusStyle","highContrastStyle","top","bottom","height","_d","mediumPlus","_e","neutralDark","IsFocusVisibleClassName","outline","getStyles","memoizeFunction","customStyles","baseButtonStyles","getBaseButtonStyles","actionButtonStyles","border","borderColor","rootHovered","themePrimary","iconHovered","rootPressed","black","rootExpanded","iconPressed","themeDarker","rootDisabled","neutralTertiary","rootChecked","iconChecked","flexContainer","justifyContent","icon","themeDarkAlt","iconDisabled","menuIcon","textContainer","flexGrow","concatStyleSets","ActionButton","BaseButton","variantClassName","onRenderDescription","nullRender","__decorate","customizable","ButtonGlobalClassNames","msButton","msButtonHasMenu","msButtonIcon","msButtonMenuIcon","msButtonLabel","msButtonDescription","msButtonScreenReaderText","msButtonFlexContainer","msButtonTextContainer","getBaseButtonClassNames","iconClassName","menuIconClassName","hasMenu","checked","expanded","isSplit","isExpanded","mergeStyleSets","__shadowConfig__","iconExpandedHovered","menuIconExpandedHovered","rootExpandedHovered","rootHasMenu","labelHovered","descriptionHovered","menuIconHovered","rootFocused","descriptionPressed","menuIconPressed","rootCheckedDisabled","rootCheckedHovered","rootCheckedPressed","iconExpanded","label","labelChecked","labelDisabled","menuIconChecked","menuIconDisabled","menuIconExpanded","description","descriptionChecked","descriptionDisabled","ContextualMenuItemType","ImageIcon","imageProps","altText","alt","hasName","title","imageNameProps","containerProps","css","MS_ICON","image","Image","getIsChecked","canCheck","isChecked","hasSubmenu","subMenuProps","isItemDisabled","isDisabled","getMenuItemAriaRole","defaultIconRenderer","renderItemIcon","hasIcons","onRenderIcon","renderCheckMarkIcon","onCheckmarkClick","isItemChecked","checkmarkIcon","e","renderItemName","renderSecondaryText","secondaryText","renderSubMenuIcon","submenuIconProps","subMenuIcon","ContextualMenuItemBase","openSubMenu","getSubmenuTarget","submenuTarget","dismissSubMenu","dismissMenu","dismissAll","renderContent","_renderLayout","split","linkContentMenu","linkContent","defaultRenders","getDividerClassNames","wrapper","divider","width","neutralTertiaryAlt","CONTEXTUAL_MENU_ITEM_HEIGHT","getMenuItemStyles","ContextualMenuItemBackgroundHoverColor","ContextualMenuItemTextHoverColor","menuItemTextHovered","ContextualMenuItemBackgroundSelectedColor","ContextualMenuItemDividerColor","bodyDivider","menuItemStyles","boxSizing","textAlign","disabledBodyText","pointerEvents","opacity","white","themeDark","bodyTextChecked","maxWidth","anchorLink","textRendering","letterSpacing","wordSpacing","textTransform","textIndent","textShadow","verticalAlign","paddingLeft","minHeight","maxHeight","IconFontSizes","flexShrink","large","iconColor","bodySubtext","splitButtonFlexContainer","flexWrap","CONTEXTUAL_SPLIT_MENU_MINWIDTH","getSplitButtonVerticalDividerClassNames","splitMenu","getItemClassNames","isAnchorLink","knownIcon","itemClassName","dividerClassName","subMenuClassName","primaryDisabled","background","splitPrimary","flexBasis","minWidth","splitContainer","visibility","getItemStyles","ContextualMenuItem","ContextualMenuItemWrapper","_onItemMouseEnter","onItemMouseEnter","currentTarget","_onItemClick","onItemClickBase","_onItemMouseLeave","onItemMouseLeave","_onItemKeyDown","onItemKeyDown","_onItemMouseMove","onItemMouseMove","_getSubmenuTarget","shouldComponentUpdate","newProps","shallowCompare","sequencesToID","keySequences","reduce","prevValue","keySequence","KTP_SEPARATOR","join","KTP_PREFIX","useKeytipData","options","uniqueId","keytipProps","keytipManager","useConst","KeytipManager","getInstance","prevOptions","usePrevious","useIsomorphicLayoutEffect","update","register","unregister","nativeKeytipProps","ariaDescribedBy","keytipId","describedByPrepend","newKeytipProps","addParentOverflow","mergeAriaAttributeValues","describedby","KTP_LAYER_ID","getAriaDescribedBy","overflowSetSequence","overflowKeySequences","overflowSequenceLen","overflowSequence","newKeySequences","addElementAtIndex","mergeOverflows","getKeytipData","KeytipData","children","DATAKTP_TARGET","DATAKTP_EXECUTE_TARGET","ContextualMenuAnchor","_anchor","_getMemoizedMenuButtonKeytipProps","onItemClick","_renderAriaDescription","ariaDescription","id","_ariaDescriptionId","focusableElementIndex","totalItemCount","hasCheckmarks","expandedMenuItemKey","ChildrenRenderer","contextualMenuItemAs","composeComponentAs","anchorRel","rel","toLowerCase","itemHasSubmenu","anchorProperties","getId","ariaDescribedByIds","additionalItemProperties","keytipAttributes","onMouseEnter","onMouseLeave","onMouseMove","ContextualMenuSplitButton","enter","_executeItemClick","preventDefault","stopPropagation","_splitButton","_onItemMouseEnterPrimary","_onItemMouseEnterIcon","_onItemMouseMovePrimary","_onItemMouseMoveIcon","_onIconItemClick","executeItemClick","_processingTouch","_onTouchStart","_handleTouchAndPointerEvent","_onPointerDown","pointerType","stopImmediatePropagation","_events","EventGroup","_dismissLabelId","componentDidMount","on","ariaChecked","splitButton","onTouchStart","tabIndex","_renderSplitPrimaryButton","_renderSplitDivider","_renderSplitIconButton","itemComponentProps","buttonProperties","VerticalDivider","onItemMouseDown","buttonProps","onMouseDown","onTap","_lastTouchTimeoutId","clearTimeout","ContextualMenuButton","_btn","defaultRole","buttonNativeProperties","itemRole","itemButtonProperties","MenuContext","getContextualMenuItemClassNames","DEFAULT_PROPS","shouldFocusOnMount","gapSpace","beakWidth","getItemCount","_i","items_1","itemType","Divider","Header","customOnRenderListLength","getSubmenuItems","overrideItems","items_2","subItem","preferMenuTargetAsEventTarget","contextItem","push","getOnClickWithOverrideTarget","COMPONENT_NAME","_getMenuItemStylesFunction","arguments","styleProps","concatStyleSetsWithProps","apply","useSubMenuState","dismiss","hidden","menuTarget","setExpandedMenuItemKey","setSubmenuTarget","shouldFocusOnContainer","setShouldFocusOnContainer","subMenuId","useId","closeSubMenu","focusContainer","submenuItemKey","onSubMenuDismiss","isMountedRef","useOnSubmenuDismiss","findItemByKeyFromItems","submenuProps","onDismiss","isSubMenu","isBeakVisible","assign","useKeyHandlers","hostElement","checkForNoWrap","focusZoneDirection","vertical","lastKeyDownWasAltOrMeta","keyHandler","shouldHandleKey","dismissAllMenus","handled","shouldHandleKeyDown","escape","submenuCloseKey","shouldWrapFocus","shouldCloseSubMenu","altKey","metaKey","isAltOrMeta","isMac","isIOS","shouldHandleKeyUp","keyPressIsAltOrMetaAlone","hasModifier","isUp","isDown","elementToFocus","getLastFocusable","lastChild","getFirstFocusable","firstChild","openKey","ContextualMenuBase","propsWithoutDefaults","forwardedRef","getPropsWithDefaults","asyncTracker","useAsync","menuId","useWarnings","deprecations","getMenuClassNames","useTarget","targetRef","targetWindow","tryFocusPreviousActiveElement","onRestoreFocus","previousActiveElement","documentContainsFocus","originalElement","containsFocus","hasFocus","newElement","contains","tagName","usePreviousActiveElement","getSubmenuProps","delayUpdateFocusOnHover","shouldUpdateFocusOnMouseEvent","gotMouseMove","onMenuFocusCapture","useShouldUpdateFocusOnMouseMove","_f","isScrollIdle","scrollIdleTimeoutId","useScrollHandler","onScroll","_g","subMenuHoverDelay","enterTimerRef","cancelSubMenuTimer","onTimerExpired","useSubmenuEnterTimer","startSubmenuTimer","subMenuEntryTimer","responsiveMode","useResponsiveMode","onMenuDismissed","onMenuOpened","previousHidden","onMenuOpenedRef","onMenuClosedRef","propsRef","useVisibility","_h","onKeyUp","onMenuKeyDown","_j","shouldIgnoreMouseEvent","updateFocusOnMouseEvent","targetElement","overrideTarget","shouldDismiss","defaultPrevented","setActive","useMouseHandlers","onItemMouseEnterBase","onItemMouseMoveBase","onMouseItemLeave","onAnchorClick","onDefaultRenderMenuList","menuListProps","menuClassNames","defaultRender","indexCorrection","menuItem","renderMenuItem","indexIncrease","itemClassNames","subMenuIconClassName","itemStyleProps","subComponentStyles","renderSeparator","headerItem","renderHeaderMenuItem","renderListItem","Section","renderSectionItem","defaultRenderNormalItem","renderNormalItem","onRenderContextualMenuItem","sectionItem","sectionProps","groupProps","headerContextualMenuItem","ariaLabelledby","id_1","replace","id_2","correctedIndex_1","topDivider","contextualMenuItem","itemsIndex","bottomDivider","fromSection","commonProps","ContextualMenuAnchorAs","contextualMenuItemWrapperAs","ContextualMenuSplitButtonAs","ContextualMenuButtonAs","divHtmlProperties","header","labelElementId","directionalHintForRTL","alignTargetEdge","coverTarget","doNotLayer","bounds","useTargetWidth","useTargetAsMinWidth","directionalHintFixed","calloutProps","_k","onRenderSubMenu","onDefaultRenderSubMenu","_l","onRenderMenuList","itemsHaveIcons","contextualMenuItems","contextualMenuItems_1","contextMenuStyle","adjustedFocusZoneProps","handleTabKey","FocusZoneTabbableElements","all","isCircularNavigation","some","submenuItem","canAnyMenuItemsCheck","ResponsiveMode","targetAsHtmlElement","offsetWidth","targetWidth","getBoundingClientRect","totalItemCount_1","calloutStyles_1","callout","Consumer","menuContext","Callout","setInitialFocus","container","onFocusCapture","focusZoneAs","renderFocusZone","defaultMenuItemRenderer","FocusRects","prevProps","shouldUpdateWhenHidden","items_3","match","persist","Event","Element","displayName","isopen","LocalContextualMenu","effects","menuBackground","menuHeader","userSelect","paddingRight","paddingBottom","paddingTop","boxShadow","elevation8","ContextualMenu","SplitButtonGlobalClassNames","getSplitButtonClassNames","mergeStyles","splitButtonMenuButton","splitButtonMenuButtonExpanded","splitButtonMenuButtonDisabled","splitButtonMenuButtonChecked","splitButtonMenuFocused","splitButtonContainer","splitButtonContainerChecked","splitButtonContainerCheckedHovered","splitButtonContainerHovered","splitButtonContainerFocused","splitButtonContainerDisabled","splitButtonMenuIcon","splitButtonMenuIconDisabled","splitButtonDivider","splitButtonDividerDisabled","_buttonElement","_splitButtonContainer","_mergedRef","createMergedRef","_renderedVisibleMenu","_onRenderIcon","rest","FontIcon","_onRenderTextContents","onRenderText","_onRenderText","_onRenderDescription","_hasText","_labelId","_onRenderChildren","_descriptionId","_onRenderAriaDescription","_onRenderMenuIcon","menuIconProps","_onRenderMenu","MenuType","menuAs","_onDismissMenu","_dismissMenu","_menuShouldFocusOnMount","_menuShouldFocusOnContainer","menuHidden","_openMenu","_onToggleMenu","_onSplitContainerFocusCapture","portalContainsElement","_onSplitButtonPrimaryClick","singleTouchTarget","toggle","_onMenuClick","space","_onMenuKeyDown","_onKeyUp","_onKeyPress","onKeyPress","_onMouseUp","onMouseUp","_onMouseDown","_onSplitButtonContainerKeyDown","click","_isValidMenuOpenKey","onMenuClick","setFocusVisibility","registeredProviders","forceUpdate","_isSplitButton","warnConditionallyRequiredProps","warnDeprecations","rootProps","toggled","ariaHidden","allowDisabledFocus","isPrimaryButtonDisabled","renderAsAnchor","tag","type","resolvedAriaLabel","ariaLabelledBy","dataIsFocusable","isCheckboxTypeRole","checkedOrPressedValue","elementRef","_onRenderSplitButtonContent","_onRenderContent","onPointerUp","prevState","onAfterMenuDismiss","openMenu","onRenderAriaDescription","onRenderChildren","onRenderMenu","Button","_shouldRenderMenu","_getMenuProps","Content","persistMenu","renderPersistedMenuHiddenOnMount","primaryActionButtonProps","getBaseSplitButtonClassNames","onPointerDown","SplitButton","_onRenderSplitButtonMenuButton","_onRenderSplitButtonDivider","splitButtonMenuProps","splitButtonAriaLabel","splitButtonProps","menuTriggerKeyCode","baseClassName","FocusRectsContext","noOutline","iconStyle","buttonBorder","disabledBackground","disabledText","buttonHighContrastFocus","outlineColor","inset","borderRadius","roundedCorner2","ElementType","ButtonType","buttonType","command","compound","CompoundButton","primary","PrimaryButton","DefaultButton","splitButtonDividerBaseStyles","standardStyles","s","p","buttonBackground","buttonBackgroundPressed","buttonBackgroundHovered","buttonBackgroundDisabled","buttonText","buttonTextHovered","buttonTextDisabled","buttonTextChecked","buttonTextCheckedHovered","neutralLight","neutralQuaternaryAlt","primaryStyles","primaryButtonBackground","primaryButtonText","primaryButtonBackgroundHovered","primaryButtonTextHovered","primaryButtonBackgroundPressed","primaryButtonTextPressed","primaryButtonTextDisabled","primaryButtonBackgroundDisabled","focusInset","focusColor","baseSplitButtonStyles","getSplitButtonStyles","commandButtonStyles","neutralLighter","disabledBodySubtext","borderTopRightRadius","borderBottomRightRadius","_m","_o","CommandBarButton","CommandButton","splitButtonStyles","compoundButtonStyles","flexDirection","standardCompoundTheme","primaryCompoundTheme","defaultButtonStyles","iconButtonStyles","link","borderRight","borderRightWidth","borderLeftWidth","neutralSecondaryAlt","borderLeft","marginLeft","marginTop","marginRight","marginBottom","_p","_q","_r","_s","_createPositionData","targetEdge","alignmentEdge","isAuto","DirectionalDictionary","RectangleEdge","_isRectangleWithinBounds","rect","boundingRect","_getOutOfBoundsEdges","outOfBounds","_getEdgeValue","edge","_setEdgeValue","_getCenterValue","edges","_getFlankingEdges","positiveEdge","negativeEdge","_getRelativeEdgeValue","_getRelativeRectEdgeValue","_getRelativeEdgeDifference","hostRect","_moveEdge","maintainSize","difference","returnRect","_alignEdges","gap","_isEdgeInBounds","_getOutOfBoundsDegree","total","breakingEdges_1","Math","pow","_canScrollResizeToFitEdge","bounding","minimumScrollResizeHeight","_adjustFitWithinBounds","element","positionData","shouldScroll","elementEstimate","elementRectangle","directions","oobDegree","currentEstimate","currentEdge","currentAlignment","bestEdge","bestAlignment","i","forcedInBounds","currentOOBDegree","slice","_estimatePosition","_flipToFit","fixedEdge","flippedElementEstimate","oppositeEdge","_flipAlignmentEdge","_alignOutOfBoundsEdges","outOfBoundsEdges","preserveEdge","outOfBoundsEdges_1","edgeAttempt","_centerEdgeToPoint","point","elementToPosition","estimatedElementPosition","Rectangle","elementEdge","adjustedGap","_alignOppositeEdges","_finalizeReturnEdge","returnEdge","abs","_finalizeElementPosition","doNotFinalizeReturnEdge","forceWithinBounds","returnValue","_getRectangleFromElement","_isEdgeOnBounds","_calculateActualBeakWidthInPixels","sqrt","_getPositionData","previousPositions","positionInformation","getClosestEdge","targetCenter","boundingCenter","_positionElementWithinBounds","_finalizeBeakPosition","elementPosition","positionedBeak","actualElement","showBeak","targetRectangle","closestEdge","hideBeak","_positionBeak","beakTargetPoint","elementBounds","beakPosition","clientRect","_getRectangleFromIRect","_positionElementRelative","targetRect","clientX","clientY","rectOrPoint","x","top_1","y","outOfBounds_1","_getTargetRect","_getAlignmentData","positionedElement","_finalizePositionData","_calculateGapSpace","_positionCallout","win","theWin","getWindow","positionProps","innerWidth","getScrollbarWidth","innerHeight","finalizedBeakPosition","_getRectangleFromTarget","mouseTarget","elementTarget","rectOrPointTarget","positionCard","_positionCard","ANIMATIONS","AnimationClassNames","slideUpIn10","slideDownIn10","slideLeftIn10","slideRightIn10","BEAK_ORIGIN_POSITION","OFF_SCREEN_STYLE","filter","ARIA_ROLE_ATTRIBUTES","preventDismissOnLostFocus","preventDismissOnScroll","preventDismissOnResize","minPagePadding","disableCaching","useMaxHeight","getBounds","positions","calloutMaxHeight","finalHeight","setMaxHeight","calculatedHeight","topBounds","bottomBounds","calculateGapSpace","usePositions","calloutElement","popupRef","popupStyles","setPositions","positionAttempts","previousTarget","async","onPositioned","hideOverflow","preferScrollResizePositioning","useWindowEx","localRef","getComputedStyle","popupOverflowY","overflowY","timerId_1","requestAnimationFrame","prevElementPositions","newElementPosition","currentProps","dupeCalloutElement","cloneNode","parentElement","appendChild","newPositions","positionCallout","removeChild","comparePositions","cancelAnimationFrame","CalloutContentBase","calloutWidth","calloutMaxWidth","calloutMinWidth","shouldRestoreFocus","onLayerMounted","popupProps","mergedPopupRefs","useMergedRefs","setCalloutElement","calloutCallback","calloutEl","rootRef","targetWindowResized","setTargetWindowResized","cachedBounds","currentBounds","segments","getWindowSegments","segments_1","segment","_getBoundsFromTargetWindow","getBoundsFromTargetWindow","useOnEvent","debounce","leading","useBounds","dismissOnTargetClick","shouldDismissOnWindowFocus","preventDismissOnEvent","isMouseDownOnPopup","mouseDownHandlers","positionsExists","dismissOnScroll","dismissOnClickOrScroll","dismissOnResize","dismissOnLostFocus","eventPaths","composedPath","isEventTargetOutsideCallout","elementContains","dismissOnTargetWindowBlur","relatedTarget","disposablesPromise","Promise","resolve","disposables_1","documentElement","forEach","then","useDismissHandlers","mouseDownOnPopup","mouseUpOnPopup","isForcedInBounds","cssPositions","hasPositions","timerId_2","focusFirstChild","useAutoFocus","overflowYHidden","beakVisible","overflowStyle","visibilityStyle","beak","getBeakPosition","beakCurtain","Popup","calloutMain","previousProps","nextProps","beakPositionStyle","newElementPositions","hasOwnProperty","oldPositionEdge","newPositionEdge","toFixed","getBeakStyle","CalloutContent","zIndex","ZIndexes","Layer","elevation16","borderWidth","borderStyle","focusClear","transform","overflowX","layerProps","CheckboxBase","required","inputProps","ariaPositionInSet","ariaSetSize","checkmarkIconProps","boxSide","mergedRootRefs","inputRef","useControllableValue","defaultChecked","setIsChecked","indeterminate","defaultIndeterminate","isIndeterminate","setIsIndeterminate","useFocusRects","reversed","isUsingCustomLabelRender","onRenderLabel","event","defaultLabelRenderer","checkboxProps","setNativeIndeterminate","setIndeterminate","checkBoxRef","useComponentRef","mergedInputProps","input","htmlFor","checkbox","checkmark","MS_CHECKBOX_LABEL_SIZE","MS_CHECKBOX_TRANSITION_DURATION","MS_CHECKBOX_TRANSITION_TIMING","Checkbox","checkmarkFontColor","inputForegroundChecked","checkmarkFontColorHovered","checkboxBorderColor","checkboxBorderIndeterminateColor","inputBackgroundChecked","checkboxBorderColorChecked","checkboxBorderColorDisabled","checkboxBorderHoveredColor","inputBorderHovered","checkboxBorderIndeterminateHoveredColor","inputBackgroundCheckedHovered","checkboxBackgroundChecked","checkboxBackgroundCheckedHovered","checkboxBorderColorCheckedHovered","checkboxHoveredTextColor","inputTextHovered","checkboxBackgroundDisabledChecked","checkboxTextColor","checkboxTextColorDisabled","indeterminateDotStyles","transitionProperty","transitionDuration","transitionTimingFunction","outlineOffset","_t","imageSize","ChoiceGroupOptionBase","itemKey","focused","imageSrc","hasIcon","hasImage","imageIsLarge","defaultOnRenderLabel","labelId","defaultOnRenderField","imageAlt","selectedImageSrc","field","innerField","imageWrapper","src","selectedImageWrapper","iconWrapper","labelWrapper","onRenderField","choiceFieldWrapper","evt","onFocus","onBlur","choiceFieldTransitionDuration","choiceFieldTransitionTiming","getChoiceGroupFocusStyle","focusBorderColor","hasIconOrImage","getImageWrapperStyle","isSelectedImageWrapper","ChoiceGroupOption","circleBorderColor","circleHoveredBorderColor","circleCheckedBorderColor","circleCheckedHoveredBorderColor","circleDisabledBorderColor","circleBackgroundColor","bodyBackground","dotUncheckedHoveredColor","dotCheckedColor","dotCheckedHoveredColor","dotDisabledColor","labelHoverFocusColor","focusBorder","iconOrImageChoiceBorderUncheckedHoveredColor","iconOrImageChoiceBorderCheckedColor","iconOrImageChoiceBorderCheckedHoveredColor","iconOrImageChoiceBackgroundColor","fieldHoverOrFocusProperties","enabledFieldWithImageHoverOrFocusProperties","circleAreaProperties","dotAreaProperties","choiceFieldSize","radioButtonSpacing","labelWrapperLineHeight","getOptionId","option","findOption","find","focusSelectedOption","keyChecked","focusProviders","doc","optionToFocus","getElementById","ChoiceGroupBase","defaultSelectedKey","divProps","optionsContainIconOrImage","selectedKey","setKeyChecked","keyFocused","setKeyFocused","focusContext","useDocumentEx","checkedOption","onOptionChange","onRadioFocus","HTMLElement","dataset","isFocusTrapZoneBumper","focusFromFocusTrapZone","Label","ChoiceGroup","SearchDirection","HoverStatus","getDisabledStyles","listOptionHighContrastStyles","inputHighContrastStyles","getOptionStyles","customStylesForAllOptions","customOptionStylesForCurrentOption","isPending","isHidden","isSelected","textHoveredColor","textSelectedColor","textDisabledColor","backgroundHoveredColor","backgroundPressedColor","optionStyles","wordWrap","overflowWrap","isFocusedOnly","optionText","optionTextWrapper","getCaretDownButtonStyles","caret","buttonTextColor","buttonTextHoveredCheckedColor","buttonBackgroundHoveredColor","listItemBackgroundHovered","buttonBackgroundCheckedColor","listItemBackgroundChecked","buttonBackgroundCheckedHoveredColor","listItemBackgroundCheckedHovered","buttonHighContrastStyles","comboBoxOptionWidth","textColor","inputText","inputBorder","borderHoveredColor","borderPressedColor","inputFocusBorderAlt","borderFocusedColor","inputBackground","erroredColor","errorText","headerTextColor","dividerBorderColor","placeholderHighContrastStyles","placeholderStyles","inputPlaceholderText","placeholderStylesHovered","disabledPlaceholderStyles","ComboBoxRootHighContrastFocused","focusBorderStyles","getInputFocusStyle","getPlaceholderStyles","rootError","rootDisallowFreeForm","font","inputDisabled","errorMessage","optionsContainerWrapper","optionsContainer","isOpen","allowFreeForm","hasErrorMessage","getComboBoxOptionClassNames","ComboBoxOptionWrapper","oldProps","allowFreeform","allowParentArrowNavigation","buttonIconProps","useOptionsState","getSelectedIndices","selectedKeys","buildSelectedKeys","buildDefaultSelectedKeys","selectedIndices","setSelectedIndices","currentOptions","setCurrentOptions","setSuggestedDisplayValue","indices","ComboBox","mergedRootRef","ComboBoxInternal","hoisted","findFirstDescendant","getChildren","child","candidate","_autofill","_comboBoxWrapper","_comboBoxMenu","_selectedElement","_overrideScrollDismiss","shouldOpenOnFocus","useFocusAsync","focusAsync","_hasFocus","focusState","_onUpdateValueInAutofillWillReceiveProps","comboBox","normalizeToString","_currentVisibleValue","_renderComboBoxWrapper","multiselectAccessibleText","errorMessageId","isButtonAriaHidden","placeholderProp","placeholder","autofill","iconButtonProps","ariaActiveDescendantValue","multiSelect","labelledBy","_id","trim","labelProps","_onFocus","_onBlur","_onInputKeyDown","_onInputKeyUp","_onAutofillClick","_onInputChange","_getAriaAutoCompleteValue","readOnly","spellCheck","_onShouldSelectFullInputValueInAutofillComponentDidUpdate","_getCaretButtonStyles","_onComboBoxClick","_getVisibleValue","allowFreeInput","currentPendingValueValidIndex","currentPendingValue","currentPendingIndexValid","indexWithinBounds","_getPendingString","_getMultiselectDisplayString","_getFirstSelectedIndex","getPreviewText","updatedValue","_handleInputWhenDisabled","_processInputChangeWithFreeform","_processInputChangeWithoutFreeform","select","_onResolveOptions","onResolveOptions","newOptions_1","Array","isArray","_currentPromise","newOptionsFromPromise","getDocumentEx","isBlurFromComboBoxTitle","isBlurFromComboBoxMenu","isBlurFromComboBoxMenuAncestor","findElementRecursive","_submitPendingValue","_onRenderContainer","onRenderList","dropdownWidth","dropdownMaxWidth","onRenderUpperContent","_onRenderUpperContent","onRenderLowerContent","_onRenderLowerContent","useComboBoxAsMenuWidth","comboBoxMenuWidth","clientWidth","_onLayerMounted","_onDismiss","_onCalloutMouseDown","_onScroll","_preventDismissOnScrollOrResize","_onRenderList","_onCalloutLayerMounted","_scrollIntoView","_onRenderLabel","onRenderLabelProps","queue","renderedList","emptyQueue","newGroup","SelectableOptionMenuItemType","placeRenderedOptionIntoQueue","_renderSeparator","_renderHeader","_renderOption","onRenderOption","_onRenderOptionContent","_isOptionSelected","_isOptionChecked","_isOptionIndeterminate","_getCurrentOptionStyles","optionClassNames","_renderCheckboxLabel","_onOptionMouseEnter","_onOptionMouseMove","_onOptionMouseLeave","_isScrollIdle","_scrollIdleTimeoutId","_onRenderMultiselectOptionContent","onMenuDismiss","_setOpenStateAndFocusOnClose","_resetSelectedIndex","_onAfterClearPendingInfo","_processingClearPendingInfo","currentPendingValueValidIndexOnHover","_lastKeyDownWasAltOrMeta","_getPendingSelectedIndex","tab","clearAll","_setPendingInfoFromIndexAndDirection","backward","forward","home","directionToSearch","keyCode","openOnKeyboardFocus","_shouldIgnoreMouseEvent","warnMutuallyExclusive","_gotMouseMove","default","getAllSelectedOptions","onMenuOpen","_focusInputAfterClose","_notifyPendingValueChanged","_overrideScrollDimissTimeout","newCurrentPendingValueValidIndex","_updateAutocompleteIndexWithoutFreeform","descendantText","onRenderContainer","comboBoxWrapper","displayValues","idx","SelectAll","multiSelectDelimiter","isNormalOption","_setPendingInfo","originalUpdatedValue","_adjustForCaseSensitivity","newSuggestedDisplayValue","_autoCompleteTimeout","matchingIndex","_setPendingInfoFromIndex","_getNextSelectableIndex","searchDirection","newIndex","max","min","isSelectableOption","none","_setSelectedIndex","submitPendingValueEvent","onPendingValueChanged","initialIndices","changedOptions","selected","currentOption","selectAllOption","o","selectAllState","_isSelectAllChecked","selectAllIndex_1","_hasPendingValue","_clearPendingInfo","pendingOptionText","adjustedCurrentPendingValue","isValueSelected","newOption","newOptions","_isOptionHighlighted","testIndices","selectAllIndex","compareSelectedIndices","selectableOptions","includeCurrentPendingValue","onScrollToItem","scrollSelectedToTop","currentPendingSelectedIndex","scrollToElement","offsetParent","alignToTop","scrollableParent","offsetHeight","offsetTop","parentOffsetHeight","scrollTop","isBelow","scrollTo","scrollIntoView","selectedIndex","indexUpdate","newPendingIndex","newPendingValue","focusInputAfterClose","customCaretDownButtonStyles","caretDownButtonStyles","comboBoxOptionStyles","customStylesForCurrentOption","_isPendingOption","caseSensitive","findIndex","selectedKeys_1","keys","Number","sort","useAriaLabelAsText","VirtualizedComboBox","_comboBox","_list","List","onRenderCell","_onScrollToItem","itemIndex","scrollToIndex","selectedOptions","CalendarMonthHeaderRow","showWeekNumbers","strings","firstDayOfWeek","allFocusable","weeksToShow","weeks","dayLabels","shortDays","firstOfMonthIndex","day","originalDate","getDate","firstOfMonthIndexOffset","DAYS_IN_WEEK","shortMonths","getMonth","dayCell","val","days","weekDayLabelCell","CalendarGridDayCell","navigatedDate","dateTimeFormatter","activeDescendantId","navigatedDayRef","calculateRoundedStyles","dayIndex","weekIndex","weekCorners","customDayCellRef","dateRangeType","daysToSelectInDayView","onSelectDate","restrictedDates","minDate","maxDate","onNavigateDate","getDayInfosInRangeOfDay","getRefsFromDayInfos","cornerStyle","isNavigatedDate","compareDates","months","getFullYear","isMarked","dayMarkedAriaLabel","daySelected","isInBounds","dayOutsideBounds","isInMonth","dayOutsideNavigatedMonth","setRef","onSelected","onMouseOver","dayInfos","dayRefs","dayRef","classList","add","DateRangeType","Day","remove","bottomLeftCornerDate","bottomRightCornerDate","topLeftCornerDate","topRightCornerDate","classNamesToAdd","onMouseOut","date","targetDate","addWeeks","getRTLSafeKeyCode","addDays","findAvailableDateOptions","initialDate","nextDate","findAvailableDate","week","dayToCompare","navigateMonthEdge","isToday","dayButton","dayIsToday","formatDay","dayMarker","CalendarGridRow","rowClassName","ariaRole","firstWeekOfYear","weekNumbers","getWeekNumbersInMonth","titleString","weekNumberFormatString","format","weekNumberCell","CalendarDayGridBase","daysRef","dayKey","useDayRefs","getSetRefCallback","weeksGrid","getDayGrid","firstVisibleDay","lastVisibleDay","markedDays","getMarkedDays","dayInfo","markedDay","useWeeks","selectedDate","workWeekDays","restrictedDatesOptions","dateRange","getDateRangeArray","getBoundedDateRange","d","isRestrictedDate","animateBackwards","previousNavigatedDate","getTime","useAnimateBackwards","above","below","roundedTopRight","roundedBottomLeft","roundedBottomRight","calculateBorderStyles","datesAbove","datesBelow","datesRight","datesLeft","isInSameHoverRange","date1","date2","date1Selected","date2Selected","dateRangeHoverType","WorkWeek","Week","initialWeeks","weekCornersStyled","useWeekCornerStyles","getWeekCornerStyles","lightenDaysOutsideNavigatedMonth","animationDirection","partialWeekProps","sortedWWDays","isContiguous","getDateRangeTypeToUse","accumulatedValue","currentWeek","weekDay","dayInfosInRange","preventDefaultWhenHandled","table","firstTransitionWeek","weekRow","lastTransitionWeek","AnimationDirection","hoverStyle","pressedStyle","dayIsTodayStyle","daySelectedStyle","transitionRowDisappearance","keyframes","CalendarDayGrid","rowAnimationStyle","Horizontal","AnimationStyles","slideRightIn20","slideLeftIn20","slideDownIn20","slideUpIn20","firstTransitionRowAnimationStyle","lastTransitionRowAnimationStyle","animationName","slideUpOut20","slideDownOut20","disabledStyle","borderCollapse","borderSpacing","tableLayout","FontSizes","Month","fadeIn200","neutralLighterAlt","span","borderTopLeftRadius","borderBottomLeftRadius","borderTop","borderBottom","CalendarDayBase","dayGrid","onHeaderSelect","showSixWeeksByDefault","monthAndYearId","headerIsClickable","monthAndYear","formatMonthYear","HeaderButtonComponentType","headerAriaLabel","yearPickerHeaderAriaLabel","onButtonKeyDown","CalendarDayNavigationButtons","navigationIcons","showCloseButton","onSelectNextMonth","addMonths","onSelectPrevMonth","leftNavigationIcon","leftNavigation","rightNavigationIcon","rightNavigation","closeNavigationIcon","closeIcon","prevMonthInBounds","compareDatePart","getMonthStart","nextMonthInBounds","getMonthEnd","monthComponents","headerIconButton","prevMonthAriaLabel","nextMonthAriaLabel","closeButtonAriaLabel","callback","CalendarDay","normalize","alignSelf","hasHeaderClickCallback","highlightCurrent","highlightSelected","animationStyle","headerAnimationStyle","headerContainer","currentItemButton","navigationButtonsContainer","navigationButton","gridContainer","buttonRow","itemButton","themeLight","getPickerStyles","defaultCalendarStrings","DEFAULT_CALENDAR_STRINGS","defaultCalendarNavigationIcons","CELL_COUNT","DefaultCalendarYearStrings","prevRangeAriaLabel","nextRangeAriaLabel","CalendarYearGridCell","highlightCurrentYear","highlightSelectedYear","year","onSelectYear","onRenderYear","buttonRef","CalendarYearNavDirection","CalendarYearGrid","fromYear","toYear","minYear","maxYear","selectedYear","selectedCellRef","currentCellRef","yearToRender","gridAriaLabel","cells","j","Date","cellRow","CalendarYearNavArrow","onSelectPrev","onSelectNext","Previous","newRangeOffset","ariaLabelString","onNavigate","isLeftNavigation","Next","CalendarYearNav","CalendarYearTitle","rangeAriaLabel","headerAriaLabelFormatString","currentDateRange","CalendarYearHeader","onRenderTitle","CalendarYearBase","navigatedYear","rangeYear","floor","previousFromYear","setFromYear","useYearRangeState","onNavNext","onNavPrevious","gridRef","CalendarYear","DEFAULT_DATE_FORMATTING","yearPickerHidden","CalendarMonthBase","navigatedMonthRef","calendarYearRef","focusOnUpdate","useFocusLogic","focusOnNextUpdate","isYearPickerVisible","setIsYearPickerVisible","currentYear","previousYear","today","highlightCurrentMonth","highlightSelectedMonth","selectMonthCallback","newMonth","onSelectMonth","onSelectNextYear","addYears","onSelectPrevYear","setMonth","dateFormatter","isPrevYearInBounds","getYearStart","isNextYearInBounds","getYearEnd","yearToString","yearFormattingDate","setFullYear","formatYear","yearRangeToString","yearRange","yearRangeToNextDecadeLabel","nextYearRangeAriaLabel","yearRangeToPrevDecadeLabel","prevYearRangeAriaLabel","getYearStrings","yearStrings","newNavigationDate","rowIndexes","yearString","monthPickerHeaderAriaLabel","prevYearAriaLabel","nextYearAriaLabel","rowNum","monthsForRow","month","monthIndex","indexedMonth","isNavigatedMonth","isSelectedMonth","isSelectedYear","isCurrentMonth","formatMonth","CalendarMonth","defaultWorkWeekDays","DayOfWeek","Monday","Tuesday","Wednesday","Thursday","Friday","isMonthPickerVisible","isDayPickerVisible","showMonthPickerAsOverlay","Sunday","showGoToToday","FirstWeekOfYear","FirstDay","CalendarBase","todayProp","setSelectedDate","navigatedDay","setNavigatedDay","navigatedMonth","setNavigatedMonth","lastSelectedDate","setLastSelectedDate","valueOf","selectedDateRangeArray","useDateState","onDateSelected","navigateDay","navigateMonth","getShowMonthPickerAsOverlay","setIsMonthPickerVisible","setIsDayPickerVisible","useVisibilityState","toggleDayMonthPickerVisibility","dayPicker","monthPicker","renderGoToTodayButton","goTodayEnabled","classes","goTodayButton","onGotoToday","goToToday","calendarDayProps","calendarMonthProps","monthPickerOnly","overlaidWithButton","overlayedWithButton","todayDateString","selectedDateString","todayDateFormatString","formatMonthDayYear","selectedDateFormatString","dateStringFormatter","selectionAndTodayString","pageUp","ctrlKey","pageDown","liveRegion","focusOnNavigatedDay","monthPickerWrapper","Calendar","totalWidth","defaultDatePickerStrings","isRequiredErrorMessage","invalidInputErrorMessage","isResetStatusMessage","allowTextInput","formatDate","toDateString","parseDateFromString","dateStr","parse","initialPickerDate","isRequired","borderless","pickerAriaLabel","underlined","DatePickerBase","calendarProps","textFieldProps","textField","calendarAs","CalendarType","disableAutoFocus","calloutId","calendar","datePickerDiv","textFieldRef","preventFocusOpeningPicker","preventNextFocusOpeningPicker","isCalendarShown","setIsCalendarShown","isMounted","useCalendarVisibility","setSelectedDateState","formattedDate","setFormattedDate","newDate","useSelectedDate","setErrorMessage","statusMessage","setStatusMessage","isFirstLoadRef","validateOnLoad","isDateOutOfBounds","isOutOfBoundsErrorMessage","getDatePartHashValue","isNaN","selectedText","statusText","useErrorMessage","validateTextInput","showDatePickerPopup","reset","dismissDatePickerPopup","newlySelectedDate","calendarDismissed","handleEscKey","isDatePickerShown","textFieldId","iconA11yProps","TextField","openOnClick","onRenderInput","readOnlyTextFieldClassName","readOnlyTextField","readOnlyPlaceholder","shouldFocus","FocusTrapZone","isClickableOutsideFocusTrap","disableFirstFocus","withLabel","withoutLabel","DatePicker","DatePickerIcon","TEXTFIELD_HEIGHT","CollapseAllVisibility","GroupSpacer","count","indentWidth","CheckBase","useFastIcons","IconComponent","circle","check","CheckGlobalClassNames","checkHost","Check","checkBoxHeight","isRTL","sharedCircleCheck","DetailsRowGlobalClassNames","compact","cell","cellAnimation","cellCheck","cellMeasurer","listCellFirstChild","isContentUnselectable","isCheckVisible","isRowHeader","fields","DEFAULT_CELL_STYLE_PROPS","cellLeftPadding","cellRightPadding","cellExtraRightPadding","DEFAULT_ROW_HEIGHTS","rowHeight","compactRowHeight","values","rowVerticalPadding","compactRowVerticalPadding","tooltipHost","cellIsCheck","collapseButton","isCollapsed","isAllSelected","isSelectAllHidden","isResizingColumn","cellSizer","isResizing","dropHintCircleStyle","dropHintCaretStyle","dropHintLineStyle","cellTitle","cellName","filterChevron","gripperBarVertical","checkTooltip","getCellStyles","cellStyleProps","isHeader","FastCheck","_defaultCheckboxRender","_fastDefaultCheckboxRender","SelectAllVisibility","DetailsRowCheck","isVisible","canSelect","anySelected","selectionMode","checkClassName","onRenderDetailsCheckbox","defaultCheckboxRender","onRenderCheckbox","detailsCheckboxProps","getNativeElementProps","checkRole","SelectionMode","single","DragDropHelper","params","_selection","selection","_dragEnterCounts","_activeTargets","_lastId","_initialized","subscribe","events","dragDropOptions","body","_onDocumentMouseUp","onDragStart","onDragLeave","onDragEnter","onDragEnd","onDrop","onDragOver","isDraggable","isDroppable","activeTarget","handlers","eventMap","updateDropState_1","updateDropState","dragDropTarget","_isDraggable","_isDroppable","eventMap_1","event_1","handler","eventName","isHandled","_onDragEnd","getSelection","_isDragging","dataTransfer","setData","handlers_1","off","unsubscribe","_dragData","dropTarget","raise","_onMouseMove","buttons","_isChild","_onMouseLeave","button","eventTarget","dragTarget","childElement","canDrag","dragContext","canDrop","defaultOnRenderHeader","column","isIconOnly","accessibleLabel","DetailsColumnBase","_root","_tooltipRef","_onRenderFilterIcon","columnProps","_onRenderColumnHeaderTooltip","hostClassName","_onColumnClick","onColumnClick","columnActionsMode","ColumnActionsMode","_onColumnKeyDown","onColumnKeyDown","_onColumnBlur","_onColumnFocus","show","_onDragStart","selectedItems","_updateHeaderDragInfo","borderWhileDragging","noBorderWhileDragging","setDraggedItemIndex","updateDragInfo","_onColumnContextMenu","onColumnContextMenu","_onRootMouseDown","parentId","onRenderColumnHeaderTooltip","headerClassName","isEmpty","isIconVisible","isSorted","isGrouped","isFiltered","isPadded","transitionDurationDrag","transitionDurationDrop","onRenderFilterIcon","onRenderHeader","hasInnerButton","shouldAssociateTooltip","_hasAccessibleDescription","accNameDescription","isSortedDescending","draggable","calculatedWidth","gripperBarVerticalStyle","cellTooltip","setAriaDescribedBy","onContextMenu","hasDropdown","isMenuOpen","nearIcon","showSortIconWhenUnsorted","sortIcon","_renderAccessibleDescription","dragDropHelper","_addDragDropHandling","isDropped","borderAfterDropping","noBorderAfterDropping","TRANSITION_DURATION_DROP","_dragDropSubscription","_getColumnDragDropOptions","columnIndex","selectionIndex","filterAriaLabel","sortAscendingAriaLabel","sortDescendingAriaLabel","groupAriaLabel","sortableAriaLabel","DetailsColumn","colors","iconForegroundColor","headerForegroundColor","headerBackgroundColor","dropdownChevronForegroundColor","resizerColor","nearIconStyle","borderAfterDragOrDrop","listHeaderBackgroundHovered","listHeaderBackgroundPressed","alignContent","flex","transition","NO_COLUMNS","DetailsHeaderBase","_rootElement","_rootComponent","_draggedColumnIndex","_dropHintDetails","_updateDroppingState","_resetDropHints","_onDragOver","_computeDropHintToBeShown","_onDrop","columnReorderProps","_getColumnReorderProps","targetIndex","_currentDropHintIndex","isValidDrop","_isValidCurrentDropHintIndex","_onDropIndexInfo","sourceIndex","onColumnDrop","dragDropDetails","draggedIndex","handleColumnReorder","_computeColumnIndexOffset","showCheckbox","offset","groupNestingDepth","_updateDragInfo","_isCheckboxColumnHidden","_getDropHintPositions","onColumnDragStart","onColumnDragEnd","columnDragEndLocation","_isEventOnHeader","dropLocation","prevRef","columns","prevX","prevMid","frozenColumnCountFromStart","frozenColumnCountFromEnd","dropHintElement","querySelectorAll","offsetLeft","newMid","originX","startX","endX","dropHintElementRef","isRtl","eventXRelativePosition","currentDropHintIndex","_liesBetween","currentIndex","lastValidColumn","indexToUpdate","_isBefore","_isAfter","startIndex","endIndex","middleIndex","ceil","_updateDropHintElement","_renderColumnSizer","columnResizeDetails","isResizable","_stopPropagation","_onSizerBlur","cellSizerStart","cellSizerEnd","cellIsResizing","onDoubleClick","_onSizerDoubleClick","_onSelectAllClicked","toggleAllSelected","columnIndexAttr","getAttribute","columnMinWidth","_onRootMouseMove","isSizing","_onRootKeyDown","onColumnResized","increment","shiftKey","_onSizerMouseMove","onColumnIsSizingChanged","movement","_onSizerMouseUp","_onToggleCollapseAll","onToggleCollapseAll","newCollapsed","isAllCollapsed","_dragDropHelper","minimumPixelsForDrag","SELECTION_CHANGE","_onSelectionChanged","_subscriptionObject","_getHeaderDragDropOptions","previousColumns","ariaLabelForToggleAllGroupsButton","ariaLabelForSelectAllCheckbox","selectAllVisibility","ariaLabelForSelectionColumn","checkboxVisibility","isCheckboxHidden","isCheckboxAlwaysVisible","CheckboxVisibility","always","hasGroupExpander","showGroupExpander","collapseAllVisibility","visible","columnIndexOffset","multiple","cellIsGroupExpander","_renderDropHint","_renderColumnDivider","sizingOverlay","columnReorderOptions","displayProperty","childNodes","ColumnDragEndLocation","onRenderDivider","dropHintIndex","dropHintStyle","onColumnAutoResized","rtl","a","b","DetailsHeader","cellSizerFadeInStyles","cellStyles","cellWrapperPadded","cellIsActionable","cellIsEmpty","transformOrigin","DetailsRowFields","rowClassNames","onRenderItemColumn","getCellValueKey","propsOnRenderField","cellsByColumn","enableUpdateAnimations","rowHeaderId","cellValueKeysRef","cellValueKeys","fieldProps","cellValueKey","fieldItem","fieldItemIndex","isMultiline","cellPadded","cellUnpadded","getValueKey","defaultOnRender","previousValueKey","showAnimation","fieldName","getCellText","DetailsRowBase","_cellMeasurer","selectionState","getSelectionState","isDropping","dragDropEvents","_droppingClassNames","columnMeasureInfo","onDidMount","_getRowDragDropOptions","_onDidMountCalled","newWidth","onMeasureDone","onWillUnmount","nextState","useReducedRowRenderer","newSelectionState","flatIndexOffset","onRenderCheck","_onRenderCheck","getRowAriaLabel","getRowAriaDescription","getRowAriaDescribedBy","isGridRow","checkButtonAriaLabel","checkboxCellClassName","rowFieldsAs","group","isSelectionModal","droppingClassName","ariaRowDescription","canSelectItem","ariaSelected","_rowClassNames","RowFields","rowFields","columnStartIndex","_ariaRowDescriptionId","hasRowHeader","groupedListRowProps","allowFocusRoot","checkCell","measureCell","forceIntoFirstElement","eventsToRegister","isIndexSelected","isModal","DetailsRow","focusedLinkColor","linkHovered","defaultHeaderText","defaultMetaText","defaultBackground","defaultHoverHeaderText","defaultHoverMetaText","defaultHoverBackground","selectedHeaderText","selectedMetaText","selectedBackground","selectedHoverHeaderText","selectedHoverMetaText","selectedHoverBackground","focusHeaderText","focusMetaText","focusBackground","focusHoverBackground","selectedStyles","LinkGlobalClassNames","cannotSelectStyles","rootCompactStyles","cellCompactStyles","defaultCellStyles","fadeIn400","slideLeftIn40","wordBreak","listCell","beziers","dropIcon","expand","iconTag","GroupHeaderBase","_toggleCollapse","onToggleCollapse","isGroupLoading","newLoadingVisible","isLoadingVisible","onGroupHeaderKeyUp","shouldOpen","_onToggleClick","_onHeaderClick","onGroupHeaderClick","_onRenderTitle","onRenderName","_onRenderName","ariaColSpan","headerCount","hasMoreData","groupLevel","viewport","loadingText","onRenderGroupHeaderCheckbox","isCollapsedGroupSelectVisible","expandButtonProps","expandButtonIcon","selectAllButtonProps","ariaLevel","ariaPosInSet","ariaRowIndex","canSelectGroup","isSelectionCheckVisible","currentlySelected","groupHeaderContainer","expandIsCollapsed","Spinner","GroupHeader","finalRowHeight","checkExpandResetStyles","listBackground","actionLinkHovered","AnimationVariables","durationValue4","durationValue1","transitionDelay","durationValue3","neutralQuaternary","durationValue2","GroupShowAll","showAllLinkText","onToggleSummarize","memoizedOnClick","GroupFooter","footerText","GroupedListSection","_subGroupRefs","_droppingClassName","_onRenderGroupHeader","_onRenderGroupShowAll","_onRenderGroupFooter","_renderSubGroup","subGroup","subGroupIndex","getGroupItemLimit","headerProps","showAllProps","footerProps","listProps","onRenderGroupHeader","onRenderGroupShowAll","onRenderGroupFooter","onShouldVirtualize","nestingDepth","level","showEmptyGroups","_getGroupKey","groupIndex","groups","_getGroupDragDropOptions","isGroup","newIsDropping","isRangeSelected","_onSelectionChange","groupedListClassNames","renderCount","Infinity","isShowAllVisible","isShowingAll","hasNestedGroups","version","dividerProps","ariaControlsProps","groupedListId","groupHeaderProps","groupShowAllProps","groupFooterProps","canDragGroups","_getDroppingClassName","getItemCountForPage","_returnOne","_onRenderGroup","forceListUpdate","subGroupCount","pageRefs","_onRenderGroupCell","groupIsDropping","ROW_HEIGHT","COMPACT_ROW_HEIGHT","GroupedListBase","_renderGroup","onToggleSelectGroup","_onToggleSelectGroup","_onToggleCollapse","_onToggleSummarize","_getGroupNestingDepth","finalListProps","onRenderShowAll","onRenderFooter","_getDefaultGroupItemLimit","_getGroupItemLimit","_getGroupHeight","_getPageHeight","getGroupHeight","pageGroup","_updateIsSomeGroupExpanded","toggleRangeSelected","_isInnerZoneKeystroke","_getPageSpecification","_isSomeGroupExpanded","_computeIsSomeGroupExpanded","listVersion","shouldForceUpdates","measureItem","scrollToMode","getStartItemIndexInView","isAllGroupsCollapsed","_setGroupsCollapsedState","usePageCache","rootListProps","shouldEnterInnerZone","getPageHeight","getPageSpecification","_forceListUpdates","toggleCollapseAll","allCollapsed","groupsInLevel","onGroupExpandStateChanged","newIsSomeGroupExpanded","isHeaderVisible","GroupedList","withViewport","ComposedComponent","WithViewportComponent","_registerResizeObserver","_viewportResizeObserver","ResizeObserver","_onAsyncResize","observe","_unregisterResizeObserver","disconnect","_updateViewport","withForceUpdate","viewportElement","scrollElement","findScrollableParent","scrollRect","getRect","_resizeAttempts","_composedComponentInstance","delayFirstMeasure","disableResizeObserver","skipViewportMeasures","_isResizeObserverAvailable","previousSkipViewportMeasures","newViewport","_updateComposedComponentRef","BaseDecorator","MIN_COLUMN_WIDTH","rowFocusZoneAddTabIndexProps","rowFocusZoneNoTabIndexProps","DetailsListInner","ariaLabelForListHeader","constrainMode","isPlaceholderData","layoutMode","onItemInvoked","onItemContextMenu","onColumnHeaderClick","onColumnHeaderContextMenu","mode","selectionPreservedOnEmptyClick","selectionZoneProps","ariaLabelForGrid","rowElementEventMap","shouldApplyApplicationRole","getKey","adjustedColumns","isSomeGroupExpanded","listRef","focusZoneRef","groupedListRef","headerRef","onRowDidMount","onRowWillUnmount","disableSelectionZone","isSelectedOnFocus","onActiveRowChanged","onRenderMissingItem","checkButtonGroupAriaLabel","enterModalSelectionOnTouch","onRenderDefaultRow","selectionZoneRef","rowId","getGroupNestingDepth","groupedDetailsListIndexMap","indexMap","rowCount","numGroupHeaders","groups_1","numOfGroupHeadersBeforeItem","totalRowCount","useGroupedDetailsListIndexMap","additionalListProps","renderedWindowsAhead","renderedWindowsBehind","defaultOnRenderDetailsHeader","detailsHeaderProps","defaultOnRenderDetailsFooter","propsOnRenderDetailsHeader","onRenderDetailsHeader","propsOnRenderDetailsFooter","onRenderDetailsFooter","detailsFooterProps","columnReorderOnDragEnd","finalDropLocation","outside","surface","remainingGroups","currentGroup","GetGroupCount","colCount","isFixed","DetailsListLayoutMode","fixedColumns","isHorizontalConstrained","ConstrainMode","horizontalConstrained","onRenderDetailsGroupFooter","finalOnRenderDetailsGroupFooter","onRenderDetailsGroupHeader","finalOnRenderDetailsGroupHeader","groupKey","ariaRowCount","finalGroupProps","sumColumnWidths","rowWidth","finalOnRenderRow","onRenderRow","rowRole","rowFocusZoneProps","rowProps","onRenderListCell","isRightArrow","focusZoneInnerProps","focusZone","onActiveElementChanged","shouldRaiseClicksOnEnter","FinalGroupedList","groupedListAs","onHeaderKeyDown","setIndexSelected","onContentKeyDown","headerWrapper","contentWrapper","SelectionZone","selectionClearedOnEscapePress","toggleWithoutModifierPressed","enterModalOnTouch","DetailsListBase","_header","_groupedList","_selectionZone","_onRenderRow","_getDerivedStateFromProps","setKey","newViewportWidth","oldViewportWidth","shouldResetSelection","_initialFocusedIndex","initialFocusedIndex","focusedItemIndex","setItems","_adjustColumns","_onGroupExpandStateChanged","_onColumnIsSizingChanged","_onRowDidMount","row","_getItemKey","_activeRows","_setFocusToRowIfPending","_onRowWillUnmount","collapsed","_onColumnResized","resizingColumn","resizingColumnIndex","newCalculatedWidth","onColumnResize","_rememberCalculatedWidth","_onColumnAutoResized","totalCount","_onActiveRowChanged","el","onActiveItemChanged","_columnOverrides","lastWidth","_getAdjustedColumns","Selection","onSelectionChanged","focusIndex","_setFocusToRow","updateColumn","newColumnIndex","col","isCheckboxColumnHidden","_notifyColumnsResized","onDidUpdate","ignoreNextFocus","currentWidth","viewportWidth","newItems","newColumns","lastSelectionMode","canResizeColumns","sortedColumnKey","groupedColumnKey","firstItem","propName","isCollapsible","clickable","buildColumns","_getFixedColumns","_getJustifiedColumns","_getColumnOverride","flexMargin","remainingWidth","sumProportionalWidth","getPaddedWidth","rowCheckWidth","groupExpandWidth","widthFraction","newColumn","fullWidth","shrinkWidth","MAX_VALUE","minimumWidth","availableWidth","baseColumn","isCollapsable","lastIndex","overflowWidth","originalWidth","isLast","overrides","spaceLeft","justified","onHover","paddingOnly","DetailsList","listText","WebkitOverflowScrolling","DialogFooterType","DialogFooter","DialogContentBase","titleId","subTextContent","subTextId","subText","titleProps","draggableHeaderClassName","isLargeHeader","DialogType","largeHeader","isClose","close","groupings","_groupChildren","topButton","topButtonsProps","inner","innerContent","contents","footers","withResponsiveMode","contentLgHeader","headerLg","DialogContent","ScreenWidthMinSmall","xLarge","xxLarge","DefaultModalProps","isDarkOverlay","isBlocking","containerClassName","topOffsetFixed","enableAriaHiddenSiblings","DefaultDialogContentProps","normal","DialogBase","_getSubTextId","ariaDescribedById","modalProps","dialogContentProps","subtitleAriaId","_defaultSubTextId","_getTitleTextId","ariaLabelledById","titleAriaId","_defaultTitleTextId","dialogDraggableClassName","dragOptions","contentClassName","elementToFocusOnDismiss","firstFocusableSelector","forceFocusInsideTrap","disableRestoreFocus","ignoreExternalFocusing","onDismissed","onLayerDidMount","mergedLayerProps","dragHandleSelector","mergedModalProps","dialogDefaultMinWidth","dialogDefaultMaxWidth","Modal","main","Dialog","DialogFooterBase","actions","actionsRight","_renderChildrenAsActions","action","VerticalDividerBase","deprecatedGetClassNames","names","DocumentCardType","DocumentCardContext","DocumentCardBase","_onAction","onClickHref","onClickTarget","getWindowEx","open","location","accentColor","actionable","borderBottomColor","documentCardContextValue","Provider","DocumentCardPreviewGlobalClassNames","iconContainer","DocumentCardActivityGlobalClassNames","multiplePeople","details","activity","avatars","avatar","DocumentCardLocationGlobalClassNames","rootActionable","rootCompact","DocumentCard","WebkitFontSmoothing","locationClassNames","titleClassNames","previewClassNames","activityClassNames","DocumentCardDetailsBase","DocumentCardDetails","DocumentCardImageBase","_onImageLoad","imageHasLoaded","imageFit","onLoad","_renderCornerIcon","_renderCenterIcon","centeredIconWrapper","centeredIcon","cornerIcon","centeredIconSize","cornerIconSize","DocumentCardImage","DocumentCardTitleBase","_titleElement","_truncateTitle","_needMeasurement","_truncateWhenInAnimation","originalTitle","scrollWidth","_clientWidth","lines","parseInt","overFlowRate","truncatedLength","truncatedTitleFirstPiece","truncatedTitleSecondPiece","_shrinkTitle","titleElement","scrollHeight","clientHeight","shouldTruncate","_updateTruncation","showAsSecondaryTitle","_timerId","DocumentCardTitle","DocumentCardTitleGlobalClassNames","DropdownSizePosCache","_size","updateOptions","displayOnlyOptionsCache","notSelectableOptionsCache","size","DropdownMenuItemType","_displayOnlyOptionsCache","_notSelectableOptionsCache","_cachedOptions","positionInSet","DropdownBase","selectedKeyPropToUse","defaultSelectedKeys","oldOptions","didOptionsChange","oldSelectedKeyProp","getAllSelectedIndices","getSelectedIndex","searchKey","selectedKeyPropToUse_1","getSelectedIndexes","useSelectedItemsState","DropdownInternal","_host","_dropDown","_scrollIdleDelay","_sizePosCache","_requestAnimationFrame","safeRequestAnimationFrame","_onChange","onChanged","changedOpt","_getPlaceholder","placeHolder","_getTitle","_unused","_onRenderPlaceholder","panelProps","isSmall","focusTrapZoneProps","firstFocusableTarget","_listId","panelStyles","panel","Panel","hasCloseButton","isLightDismiss","_renderFocusableList","_onPositioned","_onRenderCaretDown","caretDown","_onRenderOption","isItemSelected","dropdownItemHidden","dropdownItemSelectedAndDisabled","dropdownItemSelected","dropdownItemDisabled","dropdownItem","multiSelectItemStyles","multiSelectItem","_onMouseItemLeave","_onRenderItemLabel","optionSetSize","dropdownOptionText","_onRenderMultiselectOption","_hasBeenPositioned","focusElement","calloutRenderEdge","setSelectedIndex","_onDropdownBlur","_isDisabled","_onDropdownKeyDown","_isAltOrMeta","containsExpandCollapseModifier","_moveIndex","_onDropdownKeyUp","_shouldHandleKeyUp","_onZoneKeyDown","document_1","getPreviousElement","getNextElement","_onZoneKeyUp","_onDropdownClick","_shouldOpenOnFocus","_isFocusedByClick","_onDropdownMouseDown","labelStyles","_optionId","propStyles","onRenderCaretDown","onRenderPlaceholder","onRenderPlaceHolder","cachedOptions","hasError","hasLabel","isRenderingPlaceholder","panelClassName","calloutClassName","dropdown","caretDownWrapper","notifyOnReselect","newIndexes","_copyArray","array","newArray","array_1","stepValue","stepCounter","dropdownItemsWrapper","dropdownItems","separatorClassName","dropdownDividerHidden","dropdownDivider","dropdownItemHeaderHidden","dropdownItemHeader","titleIsPlaceHolder","titleHasError","highContrastAdjustMixin","HighContrastSelectorWhite","highContrastItemAndTitleStateMixin","highContrastBorderState","Dropdown","globalClassnames","rootHoverFocusActiveSelectorNeutralDarkMixin","rootHoverFocusActiveSelectorNeutralPrimaryMixin","menuItemText","borderColorError","dropdownItemStyle","dropdownHeaderStyle","selectedItemBackgroundColor","itemSelectors","titleOpenBorderRadius","calloutOpenBorderRadius","DROPDOWN_HEIGHT","contentInner","firstBumper","lastBumper","useDocument","inShadow","useHasMergeStylesShadowRootContext","isFirstRender","internalState","focusStackId","focusPreviouslyFocusedInnerElement","bumperProps","focusElementAsync","focusFTZ","useEventCallback","previouslyFocusedElementInTrapZone","firstFocusableChild","querySelector","focusSelector","focusBumper","isFirstBumper","nextFocusable","getLastTabbable","getFirstTabbable","returnFocusToInitiator","focusStack","shadowRoot","forceFocusOrClickInTrap","getEventTarget","getActiveElement","disposables","modalize","useUnmount","previouslyFocusedElement","onBlurCapture","getIconContent","getIcon","subset","code","fontFace","mergeImageProps","iconContent","accessibleName","finalChildren","IconType","cacheSize","IconBase","_onImageLoadingStateChange","onLoadingStateChange","ImageLoadState","error","imageLoadError","imageErrorAs","isPlaceholder","isImage","iconType","iconContentChildren","RootType","ImageType","finalIconContentChildren","imageContainer","SVG_REGEX","ImageBase","frameElement","imageElement","onError","notLoaded","loadState","setLoadState","naturalWidth","naturalHeight","complete","test","loaded","onImageLoaded","onImageError","useLoadState","imgProperties","shouldFadeIn","shouldStartVisible","maximizeFrame","loading","coverStyle","previousLoadState","ImageFit","cover","contain","centerContain","centerCover","desiredRatio","ImageCoverStyle","landscape","portrait","computeCoverStyle","useCoverStyle","isLoaded","isLandscape","isCenter","center","isCenterContain","isCenterCover","isContain","isCover","isNone","isError","isNotImageFit","rootMaximizeFrame","imageCenter","imageContain","imageCover","imageCenterContain","imageCenterCover","imageNone","imageLandscape","imagePortrait","ImageFitStyles","supportsObjectFit","navigator","msMaxTouchPoints","fallbackObjectFitStyles","objectFit","LabelBase","labelFontWeight","labelColor","labelDisabledColor","labelRequiredStarColor","getFabricTheme","createTheme","FabricBase","applyTheme","applyThemeToBody","rootElement","bodyThemed","currentDoc_1","useApplyThemeToBody","contextDir","pageDir","componentDir","rootDir","needsTheme","getDir","renderedContent","FocusRectsProvider","providerRef","Customizer","settings","useRenderedContent","inheritFont","Fabric","preventBlanketFontInheritance","_layersByHostId","_layerHostsById","defaultHostId","_defaultHostSelector","filteredEventProps","LayerBase","registerPortalEl","usePortalCompat","mergedRef","layerRef","fabricElementRef","needRaiseLayerMount","setNeedRaiseLayerMount","focusRectsRef","isFocusVisible","eventBubblingEnabled","fabricProps","hostId","insertFirst","onLayerWillUnmount","fabricRef","isNotHost","getHost","layerHost","layerHosts","getLayerHost","defaultHostSelector","host","createElement","setAttribute","cssText","createDefaultLayerHost","removeLayerElement","elem","parentNode","createLayerElement","getRootNode","__tabsterElementFlags","noDirectAriaHidden","ownerDocument","setPortalAttribute","setVirtualParent","insertBefore","layerHosts_1","notifyLayersChanged","registerLayer","unregisterPortalEl","layers","layerHosts_2","unregisterLayer","ReactDOM","layerRoot","onFilterEvent","getFilteredEvents","eventPhase","BUBBLING_PHASE","rootNoHost","adjustPropsForRootType","restProps","underline","LinkBase","isButton","isUnderlined","rootType","slots","slotProps","useLink","linkColor","linkInteractedColor","linkDisabledColor","ScrollToMode","getScrollYPosition","scrollPos","scrollY","setScrollYPosition","pos","scrollX","SPACER_KEY_PREFIX","SCROLL_RATIO","EMPTY_RECT","_measurePageRect","_measureSurfaceRect","_measureScrollRect","_surface","_pageRefs","hasMounted","renderEarly","canUseDOM","_resetRequiredWindows","_requiredRect","_measureVersion","_invalidatePageCache","_updatePages","_onRenderRoot","surfaceElement","_onRenderSurface","surfaceRef","pageElements","_onRenderPage","pageProps","onRenderCellConditional","page","cellRole","renderCell","ignoreScrollingState","isScrolling","pages","_estimatedPageHeight","_totalEstimates","_requiredWindowsAhead","_requiredWindowsBehind","_cachedPageHeights","_focusedIndex","_pageCache","_getRenderCount","allowedRect","_allowedRect","itemsPerPage","pageSpecification","pageHeight","itemCount","_scrollElement","scrollPosition","scrollWindow","itemPositionWithinPage","itemIndexInPage","scrollBottom","pages_1","isSpacer","_scrollTop","totalRowHeight","_onAsyncScrollDebounced","_onAsyncScroll","maxWait","_onAsyncIdleDebounced","_onAsyncIdle","_onAsyncResizeDebounced","_onScrollingDoneDebounced","_onScrollingDone","finalProps","finalState","pagesVersion","_updatePageMeasurements","_materializedRect","_hasCompletedFirstRender","onPagesUpdated","newState","oldPages","newPages","oldPage","newPage","_updateRenderRects","getTotalListHeight","_surfaceRect","onRenderSurface","onRenderRoot","pages_2","_renderPage","finalOnRenderSurface","_shouldVirtualize","cachedPage","pageElement","pageStyle","_getPageStyle","onRenderPage","newRef","getPageStyle","indexString","getParent","innerRect","outerRect","requiredWindowsAhead","requiredWindowsBehind","windowsAhead","windowsBehind","newListState","_buildPages","oldListPages","_notifyPageChanges","onPageAdded","onPageRemoved","renderedIndexes","oldPages_1","newPages_1","_onPageAdded","_onPageRemoved","heightChanged","_measurePage","hasChangedHeight","cachedHeight","measureVersion","newClientRect","round","materializedRect","pageTop","currentSpacer","focusedIndex","shouldVirtualize","this_1","pageData","newRect","pageBottom","isPageRendered","isPageInAllowedRange","isPageInRequiredRange","itemsInPage","_createPage","_visibleRect","visibleRect","_getItemCountForPage","visibileRect","pageKey","surfaceRect","getScrollHeight","_scrollHeight","visibleTop","_expandRect","pagesBefore","pagesAfter","ICON_MAP","MessageBarType","info","warning","blocked","severeWarning","success","getAnnouncementPriority","messageBarType","getRole","MessageBarBase","useBoolean","expandSingleLine","toggleExpandSingleLine","overflowButtonAriaLabel","dismissIconProps","truncated","dismissButtonAriaLabel","messageBarIconProps","delayedRender","onExpandButtonToggled","showExpandButton","handleToggleExpandSingleLine","expandIconProps","regionProps","actionsDiv","dismissButton","dismissal","innerText","dismissSingleLine","multiline","singleline","dismissalSingleLine","expandingSingleLine","actionsSingleline","highContrastBorderColor","highContrastWhiteBorderColor","MessageBar","SmallScreenSelector","dismissalAndExpandIconStyle","xSmall","messageText","dismissalAndExpandStyle","messageLink","messageLinkHovered","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","animationDuration","globalClassNames","scrollableContent","layer","isDragging","touchAction","eventMapping","move","stop","DraggableZone","_currentEventType","only","_onDragStop","_onTouchEnd","onTouchEnd","handleSelector","_matchesSelector","preventDragSelector","_touchId","_getTouchId","_getControlPosition","dragData","_createDragDataFromPosition","onStart","lastPosition","_onDrag","updatedData","_createUpdatedDragData","updatedPosition","onDragChange","baseDragData","onStop","statePosition","touchObj","_getActiveTouch","eventToGetOffset","targetTouches","_findTouchInTouchList","changedTouches","touch","identifier","selector","matchesSelectorFn","matches","webkitMatchesSelector","msMatchesSelector","touchList","delta","ZERO","ModalBase","allowTouchBodyScroll","scrollableContentClassName","isAlert","overlay","isModeless","focusTrapZone","focusTrapZoneRef","focusTrapZoneElm","modalResponsiveMode","focusTrapZoneId","useWindow","useSetTimeout","isModalOpen","setIsModalOpen","setIsVisible","coordinates","setCoordinates","modalRectangleTop","setModalRectangleTop","isModalMenuOpen","toggleModalMenuOpen","setModalMenuClose","setFalse","onModalCloseTimer","lastSetCoordinates","keepInBounds","isAlertRole","layerClassName","hasBeenOpened","windowInnerHeight","isDefaultDragHandle","allowScrollOnModal","elt","allowOverscrollOnElement","allowScrollOnElement","registerInitialModalPosition","dialogMain","modalRectangle","minPosition","maxPosition","getClampedAxis","axis","handleModalClose","isInKeyboardMoveMode","disposeOnKeyUp","handleDragStart","handleDrag","handleDragStop","handleKeyUp","parseFloat","modalContent","disposeOnKeyDown","keyboardMoveIconContainer","keyboardMoveIconProps","keyboardMoveIcon","menu","moveMenuItemText","handleKeyDown","newLocal","handledEvent","delta_1","getMoveDelta","closeMenuItemText","Overlay","isDarkThemed","elevation64","xLargePlus","registerPersistedKeytips","keytipsToRegister","registeredPersistedKeytips","keytipsToRegister_1","keytip","unregisterPersistedKeytips","uniqueID","overflowItems","keytipSequences","itemSubMenuProvider","onRenderOverflowButton","persistedKeytips","getSubMenuForItem","newKeytipsToRegister","newOverflowItems","overflowItem","persistedKeytip","hasDynamicChildren","onExecute","menuExecute","hasOverflowSubMenu","newOverflowItem","modifiedOverflowItems","prevPersistedKeytips","useKeytipRegistrations","OverflowSetBase","divContainer","_forceIntoFirstElement","bypassHiddenElements","focusSucceeded","overflowSide","showOverflow","overflowItemStyle","OverflowSet","OverlayBase","_allowTouchBodyScroll","disableBodyScroll","enableBodyScroll","isDark","rootDark","whiteTranslucent40","blackTranslucent40","PanelVisibilityState","PanelBase","_panel","_animationCallback","_hasCustomNavigation","onRenderNavigation","onRenderNavigationContent","isActive","_allowScrollOnPanel","_resizeObserver","_createResizeObserver","entries","_updateFooterPosition","_scrollableContent","_onRenderNavigation","_onRenderNavigationContent","navigation","_onRenderHeader","closeButton","_headerTextId","_onPanelClick","headerTextId","headerText","headerTextProps","_onRenderBody","_onRenderFooter","onRenderFooterContent","footer","footerInner","_animateTo","newVisibilityState","onOpen","_onTransitionComplete","_clearExistingAnimationTimer","onOpened","closed","isFooterSticky","animatingClosed","animatingOpen","_shouldListenForOuterClick","_dismissOnOuterClick","shouldListenOnOuterClick","previousShouldListenOnOuterClick","isFooterAtBottom","isHiddenOnDismiss","overlayProps","customWidth","onLightDismissClick","onRenderBody","isLeft","PanelType","smallFixedNear","customNear","isOnRightSide","customWidthStyles","custom","isAnimating","focusTrapZoneClassName","hasCustomNavigation","hiddenPanel","commands","resizeObserver","defaultView","innerHeight_1","onOuterClick","smallFixedFar","smallFluid","largeFixed","extraLarge","panelWidth","panelMargin","smallPanelSelectors","mediumPanelSelectors","ScreenWidthMinLarge","ScreenWidthMinXLarge","largePanelSelectors","ScreenWidthMinUhfMobile","ScreenWidthMinXXLarge","largeFixedPanelSelectors","extraLargePanelSelectors","getPanelBreakpoints","sharedPaddingStyles","isCustomPanel","fadeIn100","fadeOut100","variantBorder","slideRightIn40","slideLeftOut40","slideRightOut40","hyphens","easeFunction2","borderTopColor","PersonaSize","size48","presence","PersonaPresenceEnum","showOverflowTooltip","PersonaBase","getText","primaryText","renderElement","elementClassNames","renderFunction","defaultRenderFunction","tooltip","onInternalRenderPrimaryText","onInternalRenderSecondaryText","onInternalRenderTertiaryText","tertiaryText","onInternalRenderOptionalText","optionalText","hidePersonaDetails","onRenderOptionalText","onRenderPrimaryText","onRenderSecondaryText","onRenderTertiaryText","onRenderPersonaCoin","providedCoinProps","PersonaCoin","allowPhoneInitials","coinProps","showUnknownPersonaCoin","coinSize","imageInitials","imageShouldFadeIn","imageShouldStartVisible","imageUrl","initialsColor","initialsTextColor","isOutOfOffice","onPhotoLoadingStateChange","onRenderCoin","onRenderInitials","presenceTitle","presenceColors","showInitialsUntilImageLoads","showSecondaryText","personaCoinProps","personaDetails","size8","size10","tiny","size16","size24","size28","size32","size40","size56","size72","size100","size120","available","away","busy","doNotDisturb","offline","textContent","Persona","sizeBoolean","presenceBoolean","showSecondaryTextDefaultHeight","sharedTextStyles","personaSize","isSize8","isSize10","isSize16","isSize24","isSize28","isSize32","isSize40","isSize48","isSize56","isSize72","isSize100","isSize120","isAvailable","isAway","isBlocked","isBusy","isDoNotDisturb","isOffline","noWrap","PersonaPresence","PersonaInitialsColor","PersonaPresenceBase","renderIcon","presenceHeightWidth","presenceMaxSize","coinSizeWithPresenceIconStyle","presenceFontMaxSize","coinSizeWithPresenceStyle","presenceIcon","determineIcon","oofIcon","makeOpenCircleIconStyle","makeBeforeBorderStyle","borderSize","makeSizeStyle","presenceColorAvailable","presenceColorAway","presenceColorBusy","presenceColorDnd","dnd","presenceColorOffline","presenceColorOof","oof","presenceColorBackground","isOpenCirclePresence","personaPresenceSize","size12","backgroundClip","size6","size20","COLOR_SWATCHES_LOOKUP","lightBlue","blue","darkBlue","teal","green","darkGreen","lightPink","pink","magenta","purple","orange","lightRed","darkRed","violet","gold","burgundy","warmGray","cyan","rust","coolGray","COLOR_SWATCHES_NUM_ENTRIES","getPersonaInitialsColor","personaInitialsColor","lightGreen","red","transparent","gray","personaInitialsColorToHexCode","hashCode","iLen","ch","charCodeAt","shift","getInitialsColorFromName","getInitialsStyles","PersonaCoinBase","imageLoadState","setImageLoadstate","useImageLoadState","renderCoin","getCoinRenderer","renderPersonaCoinInitials","divCoinProps","coinSizeStyle","hideImage","personaPresenceProps","shouldRenderInitials","coin","imageArea","initials","size10WithoutPresenceIcon","dimension","sizeToPixels","getInitials","perspective","superLarge","extraExtraSmall","extraSmall","online","useOverflow","onOverflowItemsChanged","pinnedIndex","updateOverflowRef","containerWidthRef","containerRef","useRefEffect","cleanupObserver","onResize","observer_1","t","onResizeWrapper_1","win_1","animationFrameId_1","addEventListener","removeEventListener","observeResize","contentRect","menuButtonRef","menuButton","minContainerWidth","extraWidth","containerWidth","itemOffsetEnd","setOverflowIndex","prevOverflowIndex","ele","isOverflowing","getLinkItems","pivotId","result","links","keyToIndexMapping","keyToTabIdMapping","toArray","isPivotItem","linkText","pivotItemProps","getTabId","PivotItem","PivotBase","overflowMenuButtonComponentRef","setSelectedKey","linkSize","linkFormat","overflowBehavior","nameProps","linkCollection","renderLinkContent","itemIcon","renderPivotLink","renderLinkCollection","renderPivotLinkSelectedKey","headerButtonProps","onRenderItemLink","tabId","contentString","itemSemantics","linkIsSelected","onLinkClick","updateSelectedItem","renderedSelectedKey","renderedSelectedIndex","l","overflowMenuProps","overflowMenuButtonRef","elements","linkInMenu","overflowMenuButton","alwaysRender","headersOnly","selectedTabId","itemContainer","renderPivotItem","rootIsLarge","rootIsTabs","getLinkStyles","isLinkInOverflowMenu","actionLink","bold","Pivot","defaultFocusRestorer","shouldHideSiblings","useHideSiblingNodes","originalFocusedElement","doesElementContainFocus","useRestoreFocus","needsVerticalScrollBar","needsVerticalScrollBarState","setNeedsVerticalScrollBar","firstElementChild","rootHeight","firstChildHeight","useScrollbarAsync","ProgressIndicatorBase","_onRenderProgress","ariaValueText","barHeight","percentComplete","progressBarStyles","ariaValueMin","ariaValueMax","ariaValueNow","itemProgress","progressTrack","progressBar","progressHidden","onRenderProgress","itemName","itemDescription","IndeterminateProgress","IndeterminateProgressRTL","ProgressIndicator","progressTrackColor","marginBetweenText","textHeight","animation","ResizeGroupDirection","getNextResizeGroupStateProvider","measurementCache","measurementsCache","getCachedMeasurement","cacheKey","addMeasurementToCache","measurement","_containerDimension","_measurementCache","_getMeasuredDimension","measuredData","getElementToMeasureDimension","cachedDimension","measuredDimension","_shrinkContentsUntilTheyFit","dataToMeasure","nextMeasuredData","renderedData","resizeDirection","getNextState","currentState","newContainerDimension","newDimension","fullDimensionData","measureContainer","_updateContainerDimension","_growDataUntilItDoesNotFit","shouldRenderDataForMeasurement","getInitialResizeGroupState","MeasuredContext","isMeasured","hiddenDivStyles","hiddenParentStyles","resizeDataReducer","useResizingBehavior","nextResizeGroupStateProvider","initialHiddenDiv","updateHiddenDiv","hasRenderedContent","initialStateData","resizeData","dispatchResizeDataAction","stateRef","useResizeState","updateResizeState","remeasure","dataDidRender","containerDimension","refToMeasure","measuredBoundingRect","dataNeedsMeasuring","isInitialMeasure","measuredContextValue","ResizeGroupBase","contentContainer","ScrollablePaneContext","scrollablePane","ScrollablePaneBase","_stickyAboveRef","_stickyBelowRef","_contentContainer","_subscribers","delete","addSticky","sticky","_stickies","setDistanceFromTop","sortSticky","removeSticky","_removeStickyFromContainers","notifySubscribers","sortAgain","stickyAbove","stickyBelow","canStickyTop","stickyContentTop","_addToStickyContainer","canStickyBottom","stickyContentBottom","updateStickyRefHeights","stickyItems","stickyTopHeight","stickyBottomHeight","isStickyTop","isStickyBottom","nonStickyContent","_checkStickyStatus","handle","getScrollPosition","syncScrollSticky","syncScroll","_getScrollablePaneContext","stickyContainer","stickyContentToAdd","stickyChildrenElements_1","stickyList_1","stickyItem","targetStickyToAppendBefore","stickyListSorted_1","distanceFromTop","stickyContent","stickyListItem","targetContainer","_onWindowResize","scrollbarWidth","_getScrollbarWidth","scrollbarHeight","_getScrollbarHeight","_getStickyContainerStyle","isTop","_notifyThrottled","Set","initialScrollPosition","throttle","setStickiesDistanceFromTop","_mutationObserver","MutationObserver","mutation","mutationRecord","stickyList_2","childList","attributes","subtree","characterData","scrollContainerFocus","scrollContainerAriaLabel","scrollbarVisibility","scrollContainerProps","stickyBelowItems","forceLayoutUpdate","resetSticky","ScrollablePane","AboveAndBelowStyles","positioningStyle","defaultClearButtonProps","SearchBoxBase","defaultValue","labelText","clearButtonProps","disableAnimation","showIcon","customOnClear","onClear","customOnBlur","customOnEscape","onEscape","customOnSearch","onSearch","customOnKeyDown","setHasFocus","prevChangeTimestamp","timeStamp","uncastValue","setValue","rootElementRef","inputElementRef","customOnClearClick","hasInput","onClearClick","blur","clearButton","SearchBox","inputIconAlt","inputIconAltHovered","inputBorderDisabled","inputBackgroundHovered","inputBackgroundDisabled","inputIconHovered","inputIcon","inputIconDisabled","shimmerWrapper","shimmerGradient","dataWrapper","BACKGROUND_OFF_SCREEN_POSITION","shimmerAnimation","shimmerAnimationRTL","topLeftCorner","topRightCorner","bottomLeftCorner","bottomRightCorner","ShimmerLine","borderStyles","sharedCornerStyles","fill","borderTopStyle","borderBottomStyle","ShimmerGap","svg","ShimmerCircle","viewBox","getElementStyles","elementType","elementHeight","dif","borderBottomWidth","borderTopWidth","ShimmerElementType","line","ShimmerElementsGroup","shimmerElements","shimmerElementsDefaulted","ShimmerElementsDefaultHeights","acc","next","findMaxElementHeight","renderedElements","filteredElem","getRenderedElements","ShimmerBase","customElementsGroup","shimmerColors","isDataLoaded","improveCSSPerformance","transitionAnimationInterval","shimmerColor","shimmer","shimmerWaveColor","shimmerWave","lastTimeoutId","contentLoaded","setContentLoaded","divStyleProp","Shimmer","animationTimingFunction","animationIterationCount","SpinnerBase","ariaLive","labelPosition","styleSize","SpinnerType","SpinnerSize","spinAnimation","borderRightColor","borderLeftColor","alignMap","_getThemedSpacing","spacing","_getValueUnitGap","numericalPart","numericalValue","numericalString","unit","substring","parsePadding","paddingValues","padding1","padding2","nameMap","StackItem","createComponent","Slots","getSlots","withSlots","tokens","grow","shrink","disableShrink","align","verticalFill","order","basis","_processStackChildren","enableScopedSelectors","doNotRenderFalsyValues","childrenArray","childAsReactElement","defaultItemProps","childClassName","StackGlobalClassNames","StackStatics","Item","Stack","wrap","stackInnerId","stackChildren","horizontalAlign","childrenGap","rowGap","columnGap","splitGap","calculatedGap","parseGap","horizontalMargin","verticalMargin","childStyles","childSelector","disableShrinkStyles","StackItemGlobalClassNames","statics","__browserNeedsRevealButton","TextFieldBase","_textElement","isFocused","validateOnFocusIn","_validate","validateOnFocusOut","_onRevealButtonClick","isRevealingPassword","previousValue","_getValue","_lastChangeValue","_isControlled","uncontrolledValue","_fallbackId","_prefixId","_suffixId","_warnControlledUsage","_delayedValidate","deferredValidationTime","_lastValidation","_adjustInputHeight","snapshot","_shouldValidateAllChanges","invalid","inputClassName","prefix","resizable","suffix","autoAdjustHeight","canRevealPassword","revealPasswordAriaLabel","onRenderPrefix","_onRenderPrefix","onRenderSuffix","_onRenderSuffix","_errorMessage","isInvalid","hasRevealButton","isEdge","userAgent","_browserNeedsRevealButton","fieldGroup","_renderTextArea","_renderInput","revealButton","revealSpan","revealIcon","_isDescriptionAvailable","_renderErrorMessage","setSelectionStart","setSelectionEnd","warnControlledUsage","componentId","componentName","valueProp","defaultValueProp","onChangeProp","readOnlyProp","_hasWarnedNullValue","isControlled","textAreaProps","textAreaProperties","labelIds","updatedInputProps","_latestValidateValue","onGetErrorMessage","currentValidation_1","_notifyAfterValidate","onNotifyValidationResult","scrollContainerRef","unresizable","active","getLabelStyles","fieldPrefixSuffix","resize","Text","block","variant","nowrap","variantObject","mozOsxFontSmoothing","MozOsxFontSmoothing","webkitFontSmoothing","ToggleBase","controlledChecked","inlineLabel","offAriaLabel","offText","onAriaLabel","onToggleClick","onText","setChecked","onOffMissing","badAriaLabel","stateTextId","stateText","toggleNativeProps","labelledById","toggleButton","pill","thumb","toggleButtonRef","Toggle","pillUncheckedBackground","pillCheckedBackground","pillCheckedHoveredBackground","thumbUncheckedHoveredBackground","pillCheckedDisabledBackground","thumbBackground","smallInputBorder","thumbCheckedBackground","thumbDisabledBackground","thumbCheckedDisabledBackground","pillBorderColor","pillBorderHoveredColor","pillBorderDisabledColor","DEFAULT_PILL_HEIGHT","DEFAULT_THUMB_SIZE","TooltipDelay","TooltipBase","Tooltip","tooltipGapSpace","devicePixelRatio","TooltipHostBase","_tooltipHost","_defaultTooltipId","_toggleTooltip","_hideTooltip","_getTargetElement","Self","_onTooltipFocus","_ignoreNextFocusEvent","_onTooltipMouseEnter","_onTooltipContentFocus","_currentVisibleTooltip","_clearDismissTimer","_clearOpenTimer","_onTooltipBlur","_dismissTimerId","delay","overflowElement","hasOverflow","zero","delayTime","_getDelayTime","_openTimerId","_onTooltipMouseLeave","closeDelay","_onTooltipKeyDown","isTooltipVisible","onTooltipToggle","long","isAriaPlaceholderRendered","tooltipProps","tooltipId","tooltipRenderProps","tooltipContent","showTooltip","ariaPlaceholder","SuggestionActionType","loadStyles","suggestionsItem","suggestionsItemIsSuggested","actionButton","buttonSelected","suggestionsTitle","suggestionsContainer","suggestionsNone","suggestionsSpinner","suggestionsAvailable","legacyStyles","stylesImport","SuggestionsItem","suggestionModel","RenderSuggestion","onRemoveItem","isSelectedOverride","removeButtonAriaLabel","removeButtonIconProps","suggested","showRemoveButton","StyledSuggestionsItem","suggestionsItemStyles","Suggestions","suggestionsProps","_forceResolveButton","_searchForMoreButton","_scrollContainer","tryHandleKeyDown","currentSuggestionIndex","isEventHandled","newSelectedActionType","currentSelectedAction","selectedActionType","suggestionLength","suggestions","forceResolve","_refocusOnSuggestions","searchMore","_getAlertText","isLoading","isSearching","suggestionsAvailableAlertText","noResultsFoundText","isExtendedLoading","_getMoreResults","onGetMoreResults","_forceResolve","createGenericItem","_shouldShowForceResolve","showForceResolve","_onClickTypedSuggestionsItem","onSuggestionClick","refocusSuggestions","_onRemoveTypedSuggestionsItem","onSuggestionRemove","scrollSelected","activeSelectedElement","forceResolveText","mostRecentlyUsedHeaderText","searchForMoreIcon","searchForMoreText","moreSuggestionsAvailable","onRenderNoResultFound","searchingText","isMostRecentlyUsedVisible","resultsMaximumNumber","resultsFooterFull","resultsFooter","isResultsFooterVisible","suggestionsHeaderText","suggestionsClassName","suggestionsListId","suggestionsContainerAriaLabel","forceResolveButtonSelected","searchForMoreButtonSelected","searchForMoreButton","forceResolveButton","noSuggestions","spinnerStyles","spinner","spinnerClassNameOrStyles","footerTitle","hasNoSuggestions","forceResolveId","searchForMoreId","_renderSuggestions","hasSuggestedAction","hasSuggestedActionSelected","executeSelectedAction","focusAboveSuggestions","focusBelowSuggestions","focusSearchForMoreButton","onRenderSuggestion","removeSuggestionAriaLabel","suggestionsItemClassName","showRemoveButtons","StyledTypedSuggestionsItem","suggestion","actionButtonSelectedStyles","SuggestionsController","_isSuggestionModel","_ensureSuggestionModel","updateSuggestions","newSuggestions","maxCount","convertSuggestionsToSuggestionItems","currentSuggestion","nextSuggestion","setSelectedSuggestion","previousSuggestion","getSuggestions","getCurrentItem","getSuggestionAtIndex","hasSelectedSuggestion","removeSuggestion","createGenericSuggestion","itemToConvert","itemToAdd","deselectAllSuggestions","picker","pickerText","inputFocused","pickerInput","pickerItems","screenReaderOnly","BasePicker","basePickerProps","suggestionsType","suggestionElement","SuggestionOfProperType","_styledSuggestions","suggestionsStyles","_isMounted","dismissSuggestions","selectItemFunction","addItemOnDismiss","suggestionStore","canAddItems","addItemByIndex","currentPromise","suggestionsVisible","resetFocus","_getDescribedBy","describedBy","_ariaMap","updateValue","onRemoveSuggestion","onInputFocus","setAllSelected","_userTriggeredSuggestions","onInputBlur","onWrapperClick","completeSuggestion","_completeGenericSuggestion","onBackspace","onSuggestionSelect","onItemChange","changedItem","_updateSelectedItems","suggestionsArray","suggestionsPromiseLike","completeSelection","addItem","processedItem","onItemSelected","processedItemObject","processedItemPromiseLike","resolvedProcessedItem","selectionRemoved","removeItem","removeItems","itemsToRemove","_shouldFocusZoneEnterInnerZone","_onResolveSuggestions","onResolveSuggestions","updateSuggestionsList","onValidateInput","ValidationState","_onResolveSuggestionsDebounced","onEmptyInputFocus","defaultSelectedItems","selectedSuggestionAlert","suggestionList","combobox","onSelectionChange","_updateErrorMessage","resolveDelay","oldState","currentSelectedIndex","focusInput","forceComplete","selectionAriaLabel","selectionRole","itemsWrapper","comboLabel","inputId","renderLabel","renderCustomAlert","renderItems","getActiveDescendant","renderError","renderSuggestions","itemLimit","StyledTypedSuggestions","pickerCalloutProps","onRenderSuggestionsItem","suggestionsLoading","suggestionsExtendedLoading","pickerSuggestionsProps","newEl","currentValue","itemValue","_getTextFromItem","maxSuggestionsCount","emptyResolveSuggestions","onEmptyResolveSuggestions","_updateAndResolveValue","_startLoadTimer","_getShowSuggestions","resolveNewValue","cursorLocation","getSelectedCount","getSuggestionsAlert","suggestionAlertClassName","enableSelectedSuggestionAlert","selectedSuggestion","selectedSuggestionAlertText","alertClassName","suggestionRemovedText","removedItemText","_getErrorMessage","sent","newErrorMessage","catch","finally","_onSelectedItemsUpdated","getTextFromItem","BasePickerListBelow","disabledOverlayColor","personaWrapper","PeoplePickerItemSuggestion","personaProps","personaStyles","persona","textSelectorsStyles","isSuggested","BasePeoplePicker","MemberListPeoplePicker","NormalPeoplePickerBase","PeoplePickerItem","CompactPeoplePickerBase","ListPeoplePickerBase","currentValidationState","personaToConvert","NormalPeoplePicker","itemContent","removeButton","itemId","personaCoinStyles","personaCoin","personaPrimaryTextStyles","personaSecondaryTextStyles","personaCoinInitialsStyles","redDark","SuggestionsItemGlobalClassNames","menuDivider","TagItem","enableTagFocusInDisabledPicker","removeButtonProps","disabledAttrs","tabindex","suggestionTextOverflow","TagItemSuggestion","TagPickerBase","TagPicker","composedComponentInstance","_hoisted","hoistMethods","unhoistMethods","_defaultMode","_lastMode","RESPONSIVE_MAX_CONSTRAINT","getInitialResponsiveMode","resultClass","WithResponsiveMode","_onResize","getResponsiveMode","unknown","hoistStatics","getWidthOfCurrentWindow","currentWindow","ctx","overrideResponsiveMode","lastResponsiveMode","setLastResponsiveMode","newResponsiveMode","KeytipEvents","KEYTIP_ADDED","KEYTIP_REMOVED","KEYTIP_UPDATED","PERSISTED_KEYTIP_ADDED","PERSISTED_KEYTIP_REMOVED","PERSISTED_KEYTIP_EXECUTE","ENTER_KEYTIP_MODE","EXIT_KEYTIP_MODE","keytips","sequenceMapping","inKeytipMode","shouldEnterKeytipMode","delayUpdatingKeytipChange","_instance","init","persisted","uniqueKeytip","_getUniqueKtp","oldKeyTip","keytipToRemove","enterKeytipMode","exitKeytipMode","getKeytips","fullSequence","parentKeytip","overflowButtonSequences","Position","selectedIndices_1","SELECTION_INDEX_ATTRIBUTE_NAME","SELECTION_TOGGLE_ATTRIBUTE_NAME","SELECTION_INVOKE_ATTRIBUTE_NAME","SELECTALL_TOGGLE_ALL_ATTRIBUTE_NAME","_handleNextFocus","_onMouseDownCapture","_hasAttribute","isToggleModifierPressed","_isCtrlPressed","_isMetaPressed","_getSelectionMode","_shouldHandleFocus","isToggle","itemRoot","_findItemRoot","_getItemIndex","_getItemSpan","_isTouch","setModal","_setIsTouch","_onItemSurfaceClick","_updateModifiers","_isSelectionDisabled","_shouldAutoSelect","_isShiftPressed","_onInvokeMouseDown","disableAutoSelectOnInputElements","_onTouchStartCapture","enableTouchInvocationTarget","isSelectionDisabled","_onToggleAllClick","_onInvokeClick","_onContextMenu","getItems","_onDoubleClick","_isInputElement","_onKeyDownCapture","isSelectAllKey","isClearSelectionKey","_findScrollParentAndTryClearOnEmptyClick","onKeyDownCapture","onMouseDownCapture","setChangeEvents","toggleIndexSelected","_isTabPressed","selectToRange","selectToIndex","_clearAndSelectIndex","scrollParent","_tryClearOnEmptyClick","Node","_isNonHandledClick","selectionClearedOnSurfaceClick","setRangeSelected","indexValue","spanValue","attributeName","isElementTabbable","hasAttribute","handleFocus","_shouldHandleFocusTimeoutId","isTouch","_isTouchTimeoutId"],"sourceRoot":""}