@azure/communication-react 1.18.0-alpha-202406280014 → 1.18.0-alpha-202406300015
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-react.d.ts +15 -1
 - package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js → ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js} +2 -2
 - package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js.map → ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js.map} +1 -1
 - package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-G-04IaQB.js → RichTextSendBoxWrapper-BMGUpdeA.js} +2 -2
 - package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-G-04IaQB.js.map → RichTextSendBoxWrapper-BMGUpdeA.js.map} +1 -1
 - package/dist/dist-cjs/communication-react/{index-CWs0GTYF.js → index-D8bZR5YN.js} +72 -57
 - package/dist/dist-cjs/communication-react/index-D8bZR5YN.js.map +1 -0
 - package/dist/dist-cjs/communication-react/index.js +1 -1
 - package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
 - package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
 - package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +3 -1
 - package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +12 -0
 - package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
 - package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +7 -2
 - package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
 - package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
 - package/dist/dist-esm/communication-react/src/index.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/NotificationStack.d.ts +4 -0
 - package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -1
 - package/dist/dist-esm/react-components/src/components/utils.js +3 -1
 - package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
 - package/dist/dist-esm/react-components/src/theming/icons.js +1 -2
 - package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -9
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +1 -0
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +12 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -0
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +6 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +4 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +3 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +4 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +3 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +10 -0
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +6 -2
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +5 -4
 - package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
 - package/package.json +1 -1
 - package/dist/dist-cjs/communication-react/index-CWs0GTYF.js.map +0 -1
 
| 
         @@ -7535,7 +7535,7 @@ export declare const fromFlatCommunicationIdentifier: (id: string) => Communicat 
     | 
|
| 
       7535 
7535 
     | 
    
         
             
             *
         
     | 
| 
       7536 
7536 
     | 
    
         
             
             * @public
         
     | 
| 
       7537 
7537 
     | 
    
         
             
             */
         
     | 
| 
       7538 
     | 
    
         
            -
            export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : undefined;
         
     | 
| 
      
 7538 
     | 
    
         
            +
            export declare type GetCallingSelector<Component extends (props: any) => JSX.Element | undefined> = AreEqual<Component, typeof VideoGallery> extends true ? VideoGallerySelector : AreEqual<Component, typeof DevicesButton> extends true ? DevicesButtonSelector : AreEqual<Component, typeof MicrophoneButton> extends true ? MicrophoneButtonSelector : AreEqual<Component, typeof CameraButton> extends true ? CameraButtonSelector : AreEqual<Component, typeof ScreenShareButton> extends true ? ScreenShareButtonSelector : AreEqual<Component, typeof ParticipantList> extends true ? ParticipantListSelector : AreEqual<Component, typeof ParticipantsButton> extends true ? ParticipantsButtonSelector : AreEqual<Component, typeof EndCallButton> extends true ? EmptySelector : AreEqual<Component, typeof ErrorBar> extends true ? CallErrorBarSelector : AreEqual<Component, typeof Dialpad> extends true ? EmptySelector : AreEqual<Component, typeof HoldButton> extends true ? HoldButtonSelector : AreEqual<Component, typeof NotificationStack> extends true ? NotificationStackSelector : undefined;
         
     | 
| 
       7539 
7539 
     | 
    
         | 
| 
       7540 
7540 
     | 
    
         
             
            /**
         
     | 
| 
       7541 
7541 
     | 
    
         
             
             * Get the selector for a specified component.
         
     | 
| 
         @@ -9073,6 +9073,16 @@ export declare interface NotificationStackProps { 
     | 
|
| 
       9073 
9073 
     | 
    
         
             
                ignorePremountNotifications?: boolean;
         
     | 
| 
       9074 
9074 
     | 
    
         
             
            }
         
     | 
| 
       9075 
9075 
     | 
    
         | 
| 
      
 9076 
     | 
    
         
            +
            /**
         
     | 
| 
      
 9077 
     | 
    
         
            +
             * Selector type for {@link Notification} component.
         
     | 
| 
      
 9078 
     | 
    
         
            +
             *
         
     | 
| 
      
 9079 
     | 
    
         
            +
             * @beta
         
     | 
| 
      
 9080 
     | 
    
         
            +
             */
         
     | 
| 
      
 9081 
     | 
    
         
            +
            export declare type NotificationStackSelector = (state: CallClientState, props: CallingBaseSelectorProps) => {
         
     | 
| 
      
 9082 
     | 
    
         
            +
                activeErrorMessages: ActiveNotification[];
         
     | 
| 
      
 9083 
     | 
    
         
            +
                activeNotifications: ActiveNotification[];
         
     | 
| 
      
 9084 
     | 
    
         
            +
            };
         
     | 
| 
      
 9085 
     | 
    
         
            +
             
     | 
| 
       9076 
9086 
     | 
    
         
             
            /**
         
     | 
| 
       9077 
9087 
     | 
    
         
             
             * All strings that may be shown on the UI in the {@link NotificationStack}.
         
     | 
| 
       9078 
9088 
     | 
    
         
             
             *
         
     | 
| 
         @@ -9198,6 +9208,10 @@ export declare interface NotificationStackStrings { 
     | 
|
| 
       9198 
9208 
     | 
    
         
             
                 * Muted by a remote participant message
         
     | 
| 
       9199 
9209 
     | 
    
         
             
                 */
         
     | 
| 
       9200 
9210 
     | 
    
         
             
                mutedByRemoteParticipant: NotificationStrings;
         
     | 
| 
      
 9211 
     | 
    
         
            +
                /**
         
     | 
| 
      
 9212 
     | 
    
         
            +
                 * Speaking while muted message
         
     | 
| 
      
 9213 
     | 
    
         
            +
                 */
         
     | 
| 
      
 9214 
     | 
    
         
            +
                speakingWhileMuted: NotificationStrings;
         
     | 
| 
       9201 
9215 
     | 
    
         
             
            }
         
     | 
| 
       9202 
9216 
     | 
    
         | 
| 
       9203 
9217 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -4,7 +4,7 @@ var react = require('@fluentui/react'); 
     | 
|
| 
       4 
4 
     | 
    
         
             
            var reactChat = require('@fluentui-contrib/react-chat');
         
     | 
| 
       5 
5 
     | 
    
         
             
            var reactComponents = require('@fluentui/react-components');
         
     | 
| 
       6 
6 
     | 
    
         
             
            require('@azure/communication-common');
         
     | 
| 
       7 
     | 
    
         
            -
            var index = require('./index- 
     | 
| 
      
 7 
     | 
    
         
            +
            var index = require('./index-D8bZR5YN.js');
         
     | 
| 
       8 
8 
     | 
    
         
             
            var React = require('react');
         
     | 
| 
       9 
9 
     | 
    
         
             
            require('reselect');
         
     | 
| 
       10 
10 
     | 
    
         
             
            require('@azure/communication-calling');
         
     | 
| 
         @@ -151,4 +151,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => { 
     | 
|
| 
       151 
151 
     | 
    
         | 
| 
       152 
152 
     | 
    
         
             
            exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
         
     | 
| 
       153 
153 
     | 
    
         
             
            exports.default = ChatMessageComponentAsRichTextEditBox;
         
     | 
| 
       154 
     | 
    
         
            -
            //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 154 
     | 
    
         
            +
            //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n  getMessageState,\n  onRenderCancelIcon,\n  onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n  attachmentMetadataReducer,\n  getMessageWithAttachmentMetadata,\n  doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n  onCancel?: (messageId: string) => void;\n  onSubmit: (\n    text: string,\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata?: AttachmentMetadata[]\n  ) => void;\n  message: ChatMessage;\n  strings: MessageThreadStrings;\n  /* @conditional-compile-remove(rich-text-editor-image-upload) */\n  onPaste?: (event: { content: DocumentFragment }) => void;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n  props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n  const {\n    onCancel,\n    onSubmit,\n    strings,\n    message,\n    /* @conditional-compile-remove(rich-text-editor-image-upload) */\n    onPaste\n  } = props;\n\n  const [textValue, setTextValue] = useState<string>(message.content || '');\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const [attachmentMetadata, handleAttachmentAction] = useReducer(\n    attachmentMetadataReducer,\n    getMessageWithAttachmentMetadata(message) ?? []\n  );\n  const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n  const theme = useTheme();\n  const messageState = useMemo(() => {\n    return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n  }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n  const submitEnabled = messageState === 'OK';\n\n  const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n  const chatMyMessageStyles = useChatMyMessageStyles();\n  const locale = useLocale().strings;\n\n  const setText = useCallback((newValue?: string): void => {\n    setTextValue(newValue ?? '');\n  }, []);\n\n  useEffect(() => {\n    editTextFieldRef.current?.focus();\n  }, []);\n\n  const textTooLongMessage = useMemo(() => {\n    return messageState === 'too long'\n      ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n      : undefined;\n  }, [messageState, strings.editBoxTextLimit]);\n\n  const iconClassName = useCallback(\n    (isHover: boolean) => {\n      const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n      return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n    },\n    [theme.palette.accent, theme.palette.neutralSecondary]\n  );\n\n  const onRenderThemedCancelIcon = useCallback(\n    (isHover: boolean) => {\n      return onRenderCancelIcon(iconClassName(isHover));\n    },\n    [iconClassName]\n  );\n\n  const onRenderThemedSubmitIcon = useCallback(\n    (isHover: boolean) => {\n      return onRenderSubmitIcon(iconClassName(isHover));\n    },\n    [iconClassName]\n  );\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const hasMultipleAttachments = useMemo(() => {\n    return doesMessageContainMultipleAttachments(message);\n  }, [message]);\n\n  const actionButtons = useMemo(() => {\n    return (\n      <Stack horizontal>\n        <InputBoxButton\n          className={richTextActionButtonsStyle}\n          ariaLabel={strings.editBoxCancelButton}\n          tooltipContent={strings.editBoxCancelButton}\n          onRenderIcon={onRenderThemedCancelIcon}\n          onClick={() => {\n            onCancel && onCancel(message.messageId);\n          }}\n          id={'dismissIconWrapper'}\n          data-testId={strings.editBoxCancelButton}\n        />\n        <InputBoxButton\n          className={richTextActionButtonsStyle}\n          ariaLabel={strings.editBoxSubmitButton}\n          tooltipContent={strings.editBoxSubmitButton}\n          onRenderIcon={onRenderThemedSubmitIcon}\n          onClick={(e) => {\n            // it's very important to pass an empty attachment here\n            // so when user removes all attachments, UI can reflect it instantly\n            // if you set it to undefined, the attachments pre-edited would still be there\n            // until edit message event is received\n            submitEnabled &&\n              onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n            e.stopPropagation();\n          }}\n          id={'submitIconWrapper'}\n          data-testId={strings.editBoxSubmitButton}\n        />\n      </Stack>\n    );\n  }, [\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata,\n    message.messageId,\n    onCancel,\n    onRenderThemedCancelIcon,\n    onRenderThemedSubmitIcon,\n    onSubmit,\n    strings.editBoxCancelButton,\n    strings.editBoxSubmitButton,\n    submitEnabled,\n    textValue\n  ]);\n  const richTextLocaleStrings = useMemo(() => {\n    /* @conditional-compile-remove(rich-text-editor) */\n    return { ...locale.richTextSendBox, ...strings };\n    return locale.sendBox;\n  }, [\n    /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n    /* @conditional-compile-remove(rich-text-editor) */ strings,\n    locale.sendBox\n  ]);\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n    // edit box only capable of removing attachments\n    // we need to expand attachment actions\n    // if we want to support more actions e.g. add\n    handleAttachmentAction({ type: 'remove', id: attachmentId });\n  }, []);\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const onRenderAttachmentUploads = useCallback(() => {\n    return (\n      <Stack className={attachmentUploadCardsStyles}>\n        <FluentV9ThemeProvider v8Theme={theme}>\n          <_AttachmentUploadCards\n            attachments={attachmentMetadata}\n            onCancelAttachmentUpload={onCancelAttachmentUpload}\n          />\n        </FluentV9ThemeProvider>\n      </Stack>\n    );\n  }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n  const getContent = (): JSX.Element => {\n    return (\n      <Stack className={mergeStyles(editBoxWidthStyles)}>\n        <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n        <RichTextInputBoxComponent\n          placeholderText={strings.editBoxPlaceholderText}\n          onChange={setText}\n          editorComponentRef={editTextFieldRef}\n          initialContent={message.content}\n          strings={richTextLocaleStrings}\n          disabled={false}\n          actionComponents={actionButtons}\n          richTextEditorStyleProps={editBoxRichTextEditorStyle}\n          isHorizontalLayoutDisabled={true}\n          /* @conditional-compile-remove(file-sharing-acs) */\n          onRenderAttachmentUploads={onRenderAttachmentUploads}\n          /* @conditional-compile-remove(rich-text-editor-image-upload) */\n          onPaste={onPaste}\n        />\n      </Stack>\n    );\n  };\n\n  const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n  return (\n    <ChatMyMessage\n      attached={attached}\n      root={{\n        className: mergeClasses(\n          chatMyMessageStyles.root,\n          /* @conditional-compile-remove(file-sharing-acs) */\n          hasMultipleAttachments ? chatMyMessageStyles.multipleAttachments : undefined\n        )\n      }}\n      body={{\n        className: mergeClasses(\n          editContainerStyles.body,\n          attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n        )\n      }}\n    >\n      {getContent()}\n    </ChatMyMessage>\n  );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CA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0B,EAAE,IAAI;;AAEhC,gBAAA,yBAAyB,EAAE,yBAAyB;;AAEpD,gBAAA,OAAO,EAAE,OAAO,EAChB,CAAA,CACI,EACR;AACJ,KAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;AACJ,YAAA,SAAS,EAAEC,4BAAY,CACrB,mBAAmB,CAAC,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,SAAS,CAC7E;AACF,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEA,4BAAY,CACrB,mBAAmB,CAAC,IAAI,EACxB,QAAQ,KAAK,KAAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n  getMessageState,\n  onRenderCancelIcon,\n  onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n  attachmentMetadataReducer,\n  getMessageWithAttachmentMetadata,\n  doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n  onCancel?: (messageId: string) => void;\n  onSubmit: (\n    text: string,\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata?: AttachmentMetadata[]\n  ) => void;\n  message: ChatMessage;\n  strings: MessageThreadStrings;\n  /* @conditional-compile-remove(rich-text-editor-image-upload) */\n  onPaste?: (event: { content: DocumentFragment }) => void;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n  props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n  const {\n    onCancel,\n    onSubmit,\n    strings,\n    message,\n    /* @conditional-compile-remove(rich-text-editor-image-upload) */\n    onPaste\n  } = props;\n\n  const [textValue, setTextValue] = useState<string>(message.content || '');\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const [attachmentMetadata, handleAttachmentAction] = useReducer(\n    attachmentMetadataReducer,\n    getMessageWithAttachmentMetadata(message) ?? []\n  );\n  const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n  const theme = useTheme();\n  const messageState = useMemo(() => {\n    return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n  }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n  const submitEnabled = messageState === 'OK';\n\n  const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n  const chatMyMessageStyles = useChatMyMessageStyles();\n  const locale = useLocale().strings;\n\n  const setText = useCallback((newValue?: string): void => {\n    setTextValue(newValue ?? '');\n  }, []);\n\n  useEffect(() => {\n    editTextFieldRef.current?.focus();\n  }, []);\n\n  const textTooLongMessage = useMemo(() => {\n    return messageState === 'too long'\n      ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n      : undefined;\n  }, [messageState, strings.editBoxTextLimit]);\n\n  const iconClassName = useCallback(\n    (isHover: boolean) => {\n      const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n      return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n    },\n    [theme.palette.accent, theme.palette.neutralSecondary]\n  );\n\n  const onRenderThemedCancelIcon = useCallback(\n    (isHover: boolean) => {\n      return onRenderCancelIcon(iconClassName(isHover));\n    },\n    [iconClassName]\n  );\n\n  const onRenderThemedSubmitIcon = useCallback(\n    (isHover: boolean) => {\n      return onRenderSubmitIcon(iconClassName(isHover));\n    },\n    [iconClassName]\n  );\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const hasMultipleAttachments = useMemo(() => {\n    return doesMessageContainMultipleAttachments(message);\n  }, [message]);\n\n  const actionButtons = useMemo(() => {\n    return (\n      <Stack horizontal>\n        <InputBoxButton\n          className={richTextActionButtonsStyle}\n          ariaLabel={strings.editBoxCancelButton}\n          tooltipContent={strings.editBoxCancelButton}\n          onRenderIcon={onRenderThemedCancelIcon}\n          onClick={() => {\n            onCancel && onCancel(message.messageId);\n          }}\n          id={'dismissIconWrapper'}\n          data-testId={strings.editBoxCancelButton}\n        />\n        <InputBoxButton\n          className={richTextActionButtonsStyle}\n          ariaLabel={strings.editBoxSubmitButton}\n          tooltipContent={strings.editBoxSubmitButton}\n          onRenderIcon={onRenderThemedSubmitIcon}\n          onClick={(e) => {\n            // it's very important to pass an empty attachment here\n            // so when user removes all attachments, UI can reflect it instantly\n            // if you set it to undefined, the attachments pre-edited would still be there\n            // until edit message event is received\n            submitEnabled &&\n              onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n            e.stopPropagation();\n          }}\n          id={'submitIconWrapper'}\n          data-testId={strings.editBoxSubmitButton}\n        />\n      </Stack>\n    );\n  }, [\n    /* @conditional-compile-remove(file-sharing-acs) */\n    attachmentMetadata,\n    message.messageId,\n    onCancel,\n    onRenderThemedCancelIcon,\n    onRenderThemedSubmitIcon,\n    onSubmit,\n    strings.editBoxCancelButton,\n    strings.editBoxSubmitButton,\n    submitEnabled,\n    textValue\n  ]);\n  const richTextLocaleStrings = useMemo(() => {\n    /* @conditional-compile-remove(rich-text-editor) */\n    return { ...locale.richTextSendBox, ...strings };\n    return locale.sendBox;\n  }, [\n    /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n    /* @conditional-compile-remove(rich-text-editor) */ strings,\n    locale.sendBox\n  ]);\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n    // edit box only capable of removing attachments\n    // we need to expand attachment actions\n    // if we want to support more actions e.g. add\n    handleAttachmentAction({ type: 'remove', id: attachmentId });\n  }, []);\n\n  /* @conditional-compile-remove(file-sharing-acs) */\n  const onRenderAttachmentUploads = useCallback(() => {\n    return (\n      <Stack className={attachmentUploadCardsStyles}>\n        <FluentV9ThemeProvider v8Theme={theme}>\n          <_AttachmentUploadCards\n            attachments={attachmentMetadata}\n            onCancelAttachmentUpload={onCancelAttachmentUpload}\n          />\n        </FluentV9ThemeProvider>\n      </Stack>\n    );\n  }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n  const getContent = (): JSX.Element => {\n    return (\n      <Stack className={mergeStyles(editBoxWidthStyles)}>\n        <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n        <RichTextInputBoxComponent\n          placeholderText={strings.editBoxPlaceholderText}\n          onChange={setText}\n          editorComponentRef={editTextFieldRef}\n          initialContent={message.content}\n          strings={richTextLocaleStrings}\n          disabled={false}\n          actionComponents={actionButtons}\n          richTextEditorStyleProps={editBoxRichTextEditorStyle}\n          isHorizontalLayoutDisabled={true}\n          /* @conditional-compile-remove(file-sharing-acs) */\n          onRenderAttachmentUploads={onRenderAttachmentUploads}\n          /* @conditional-compile-remove(rich-text-editor-image-upload) */\n          onPaste={onPaste}\n        />\n      </Stack>\n    );\n  };\n\n  const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n  return (\n    <ChatMyMessage\n      attached={attached}\n      root={{\n        className: mergeClasses(\n          chatMyMessageStyles.root,\n          /* @conditional-compile-remove(file-sharing-acs) */\n          hasMultipleAttachments ? chatMyMessageStyles.multipleAttachments : undefined\n        )\n      }}\n      body={{\n        className: mergeClasses(\n          editContainerStyles.body,\n          attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n        )\n      }}\n    >\n      {getContent()}\n    </ChatMyMessage>\n  );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAGC,gBAAU,CAC7DC,+BAAyB,EACzB,CAAA,EAAA,GAAAC,sCAAgC,CAAC,OAAO,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,EAAE,CAChD,CAAC;IACF,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAA6B,IAAI,CAAC,CAAC;AACxE,IAAA,MAAM,KAAK,GAAGC,cAAQ,EAAE,CAAC;AACzB,IAAA,MAAM,YAAY,GAAGC,aAAO,CAAC,MAAK;AAChC,QAAA,OAAOC,qBAAe,CAAC,SAAS,sDAAsD,kBAAkB,KAAlB,IAAA,IAAA,kBAAkB,KAAlB,KAAA,CAAA,GAAA,kBAAkB,GAAI,EAAE,CAAC,CAAC;KACjH,EAAE,qDAAqD,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;AAExF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AAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            'use strict';
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            var React = require('react');
         
     | 
| 
       4 
     | 
    
         
            -
            var index = require('./index- 
     | 
| 
      
 4 
     | 
    
         
            +
            var index = require('./index-D8bZR5YN.js');
         
     | 
| 
       5 
5 
     | 
    
         
             
            require('@fluentui/react');
         
     | 
| 
       6 
6 
     | 
    
         
             
            require('@fluentui/react-components');
         
     | 
| 
       7 
7 
     | 
    
         
             
            require('@fluentui-contrib/react-chat');
         
     | 
| 
         @@ -50,4 +50,4 @@ const RichTextSendBoxWrapper = (props) => { 
     | 
|
| 
       50 
50 
     | 
    
         
             
            };
         
     | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
52 
     | 
    
         
             
            exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
         
     | 
| 
       53 
     | 
    
         
            -
            //# sourceMappingURL=RichTextSendBoxWrapper- 
     | 
| 
      
 53 
     | 
    
         
            +
            //# sourceMappingURL=RichTextSendBoxWrapper-BMGUpdeA.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"RichTextSendBoxWrapper- 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"RichTextSendBoxWrapper-BMGUpdeA.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n  const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n  return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}
         
     | 
| 
         @@ -175,7 +175,7 @@ function getDefaultExportFromCjs (x) { 
     | 
|
| 
       175 
175 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       176 
176 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
       177 
177 
     | 
    
         
             
            // GENERATED FILE. DO NOT EDIT MANUALLY.
         
     | 
| 
       178 
     | 
    
         
            -
            var telemetryVersion = '1.18.0-alpha- 
     | 
| 
      
 178 
     | 
    
         
            +
            var telemetryVersion = '1.18.0-alpha-202406300015';
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
180 
     | 
    
         | 
| 
       181 
181 
     | 
    
         
             
            var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
         
     | 
| 
         @@ -1320,7 +1320,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev 
     | 
|
| 
       1320 
1320 
     | 
    
         
             
             * @beta
         
     | 
| 
       1321 
1321 
     | 
    
         
             
             */
         
     | 
| 
       1322 
1322 
     | 
    
         
             
            const notificationStackSelector = reselect.createSelector([getLatestErrors$1, getDiagnostics, getDeviceManager$1, getEnvironmentInfo], (latestErrors, diagnostics, deviceManager, environmentInfo) => {
         
     | 
| 
       1323 
     | 
    
         
            -
                var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
         
     | 
| 
      
 1323 
     | 
    
         
            +
                var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
         
     | 
| 
       1324 
1324 
     | 
    
         
             
                // The order in which the errors are returned is significant: The `Notification` shows errors on the UI in that order.
         
     | 
| 
       1325 
1325 
     | 
    
         
             
                // There are several options for the ordering:
         
     | 
| 
       1326 
1326 
     | 
    
         
             
                //   - Sorted by when the errors happened (latest first / oldest first).
         
     | 
| 
         @@ -1435,7 +1435,12 @@ const notificationStackSelector = reselect.createSelector([getLatestErrors$1, ge 
     | 
|
| 
       1435 
1435 
     | 
    
         
             
                    appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'Call.feature', 'startSpotlightWhileMaxParticipantsAreSpotlighted');
         
     | 
| 
       1436 
1436 
     | 
    
         
             
                }
         
     | 
| 
       1437 
1437 
     | 
    
         
             
                //below is for active notifications
         
     | 
| 
       1438 
     | 
    
         
            -
                 
     | 
| 
      
 1438 
     | 
    
         
            +
                let activeNotifications = [];
         
     | 
| 
      
 1439 
     | 
    
         
            +
                if ((_u = diagnostics === null || diagnostics === void 0 ? void 0 : diagnostics.media.latest.speakingWhileMicrophoneIsMuted) === null || _u === void 0 ? void 0 : _u.value) {
         
     | 
| 
      
 1440 
     | 
    
         
            +
                    activeNotifications.push({ type: 'speakingWhileMuted', timestamp: new Date(Date.now()), autoDismiss: true });
         
     | 
| 
      
 1441 
     | 
    
         
            +
                }
         
     | 
| 
      
 1442 
     | 
    
         
            +
                // sort notifications by timestamp from earliest to latest
         
     | 
| 
      
 1443 
     | 
    
         
            +
                activeNotifications = activeNotifications.sort((a, b) => { var _a, _b; return ((_a = a.timestamp) !== null && _a !== void 0 ? _a : new Date(Date.now())).getDate() - ((_b = b.timestamp) !== null && _b !== void 0 ? _b : new Date(Date.now())).getDate(); });
         
     | 
| 
       1439 
1444 
     | 
    
         
             
                return { activeErrorMessages: activeErrorMessages, activeNotifications: activeNotifications };
         
     | 
| 
       1440 
1445 
     | 
    
         
             
            });
         
     | 
| 
       1441 
1446 
     | 
    
         
             
            /* @conditional-compile-remove(notifications) */
         
     | 
| 
         @@ -6424,7 +6429,9 @@ const customNotificationIconName = { 
     | 
|
| 
       6424 
6429 
     | 
    
         
             
                callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',
         
     | 
| 
       6425 
6430 
     | 
    
         
             
                callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied',
         
     | 
| 
       6426 
6431 
     | 
    
         
             
                /* @conditional-compile-remove(soft-mute) */
         
     | 
| 
       6427 
     | 
    
         
            -
                mutedByRemoteParticipant: 'ErrorBarMutedByRemoteParticipant'
         
     | 
| 
      
 6432 
     | 
    
         
            +
                mutedByRemoteParticipant: 'ErrorBarMutedByRemoteParticipant',
         
     | 
| 
      
 6433 
     | 
    
         
            +
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 6434 
     | 
    
         
            +
                speakingWhileMuted: 'ErrorBarCallMicrophoneMutedBySystem'
         
     | 
| 
       6428 
6435 
     | 
    
         
             
            };
         
     | 
| 
       6429 
6436 
     | 
    
         
             
            /**
         
     | 
| 
       6430 
6437 
     | 
    
         
             
             * @private
         
     | 
| 
         @@ -7115,7 +7122,7 @@ const DEFAULT_COMPONENT_ICONS = { 
     | 
|
| 
       7115 
7122 
     | 
    
         
             
                ErrorBarCallMacOsCameraAccessDenied: React.createElement(reactIcons.VideoProhibited16Filled, null),
         
     | 
| 
       7116 
7123 
     | 
    
         
             
                ErrorBarCallMacOsMicrophoneAccessDenied: React.createElement(reactIcons.MicProhibited16Filled, null),
         
     | 
| 
       7117 
7124 
     | 
    
         
             
                ErrorBarCallMicrophoneAccessDenied: React.createElement(reactIcons.MicProhibited16Filled, null),
         
     | 
| 
       7118 
     | 
    
         
            -
                ErrorBarCallMicrophoneMutedBySystem: React.createElement(reactIcons. 
     | 
| 
      
 7125 
     | 
    
         
            +
                ErrorBarCallMicrophoneMutedBySystem: React.createElement(reactIcons.MicOff16Regular, null),
         
     | 
| 
       7119 
7126 
     | 
    
         
             
                ErrorBarCallMicrophoneUnmutedBySystem: React.createElement(reactIcons.Mic16Filled, null),
         
     | 
| 
       7120 
7127 
     | 
    
         
             
                ErrorBarCallNetworkQualityLow: React.createElement(WifiWarning16Filled, null),
         
     | 
| 
       7121 
7128 
     | 
    
         
             
                ErrorBarCallNoMicrophoneFound: React.createElement(reactIcons.MicProhibited16Filled, null),
         
     | 
| 
         @@ -13950,7 +13957,7 @@ class _ErrorBoundary extends React.Component { 
     | 
|
| 
       13950 
13957 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       13951 
13958 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
       13952 
13959 
     | 
    
         
             
            /* @conditional-compile-remove(rich-text-editor) */
         
     | 
| 
       13953 
     | 
    
         
            -
            const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 13960 
     | 
    
         
            +
            const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js'); }));
         
     | 
| 
       13954 
13961 
     | 
    
         
             
            /**
         
     | 
| 
       13955 
13962 
     | 
    
         
             
             * @private
         
     | 
| 
       13956 
13963 
     | 
    
         
             
             * Use this function to load RoosterJS dependencies early in the lifecycle.
         
     | 
| 
         @@ -13958,7 +13965,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve() 
     | 
|
| 
       13958 
13965 
     | 
    
         
             
             *
         
     | 
| 
       13959 
13966 
     | 
    
         
             
             * @conditional-compile-remove(rich-text-editor)
         
     | 
| 
       13960 
13967 
     | 
    
         
             
             */
         
     | 
| 
       13961 
     | 
    
         
            -
            const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox- 
     | 
| 
      
 13968 
     | 
    
         
            +
            const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js'); });
         
     | 
| 
       13962 
13969 
     | 
    
         
             
            /**
         
     | 
| 
       13963 
13970 
     | 
    
         
             
             * @private
         
     | 
| 
       13964 
13971 
     | 
    
         
             
             */
         
     | 
| 
         @@ -24593,6 +24600,10 @@ const getSelector$1 = (component) => { 
     | 
|
| 
       24593 
24600 
     | 
    
         
             
                if (component === HoldButton) {
         
     | 
| 
       24594 
24601 
     | 
    
         
             
                    return findConditionalCompiledSelector(component);
         
     | 
| 
       24595 
24602 
     | 
    
         
             
                }
         
     | 
| 
      
 24603 
     | 
    
         
            +
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 24604 
     | 
    
         
            +
                if (component === NotificationStack) {
         
     | 
| 
      
 24605 
     | 
    
         
            +
                    return findConditionalCompiledSelector(component);
         
     | 
| 
      
 24606 
     | 
    
         
            +
                }
         
     | 
| 
       24596 
24607 
     | 
    
         
             
                return findSelector$1(component);
         
     | 
| 
       24597 
24608 
     | 
    
         
             
            };
         
     | 
| 
       24598 
24609 
     | 
    
         
             
            const findSelector$1 = (component) => {
         
     | 
| 
         @@ -24633,6 +24644,10 @@ const findConditionalCompiledSelector = (component) => { 
     | 
|
| 
       24633 
24644 
     | 
    
         
             
                    case HoldButton:
         
     | 
| 
       24634 
24645 
     | 
    
         
             
                        /* @conditional-compile-remove(PSTN-calls) */
         
     | 
| 
       24635 
24646 
     | 
    
         
             
                        return holdButtonSelector;
         
     | 
| 
      
 24647 
     | 
    
         
            +
                    /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 24648 
     | 
    
         
            +
                    case NotificationStack:
         
     | 
| 
      
 24649 
     | 
    
         
            +
                        /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 24650 
     | 
    
         
            +
                        return notificationStackSelector;
         
     | 
| 
       24636 
24651 
     | 
    
         
             
                }
         
     | 
| 
       24637 
24652 
     | 
    
         
             
            };
         
     | 
| 
       24638 
24653 
     | 
    
         | 
| 
         @@ -28355,7 +28370,7 @@ const AttachmentDownloadErrorBar = (props) => { 
     | 
|
| 
       28355 
28370 
     | 
    
         
             
            /**
         
     | 
| 
       28356 
28371 
     | 
    
         
             
             * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
         
     | 
| 
       28357 
28372 
     | 
    
         
             
             */
         
     | 
| 
       28358 
     | 
    
         
            -
            const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper- 
     | 
| 
      
 28373 
     | 
    
         
            +
            const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-BMGUpdeA.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
         
     | 
| 
       28359 
28374 
     | 
    
         
             
            /**
         
     | 
| 
       28360 
28375 
     | 
    
         
             
             * @private
         
     | 
| 
       28361 
28376 
     | 
    
         
             
             * Use this function to load RoosterJS dependencies early in the lifecycle.
         
     | 
| 
         @@ -28363,7 +28378,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function 
     | 
|
| 
       28363 
28378 
     | 
    
         
             
             *
         
     | 
| 
       28364 
28379 
     | 
    
         
             
            /* @conditional-compile-remove(rich-text-editor-composite-support)
         
     | 
| 
       28365 
28380 
     | 
    
         
             
             */
         
     | 
| 
       28366 
     | 
    
         
            -
            const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper- 
     | 
| 
      
 28381 
     | 
    
         
            +
            const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-BMGUpdeA.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
         
     | 
| 
       28367 
28382 
     | 
    
         
             
            /**
         
     | 
| 
       28368 
28383 
     | 
    
         
             
             * @private
         
     | 
| 
       28369 
28384 
     | 
    
         
             
             */
         
     | 
| 
         @@ -30342,6 +30357,16 @@ const bannerNotificationStyles = { 
     | 
|
| 
       30342 
30357 
     | 
    
         
             
                    pointerEvents: 'auto' // to allow the dismissal or error and warning bars in the notification container
         
     | 
| 
       30343 
30358 
     | 
    
         
             
                }
         
     | 
| 
       30344 
30359 
     | 
    
         
             
            };
         
     | 
| 
      
 30360 
     | 
    
         
            +
            /**
         
     | 
| 
      
 30361 
     | 
    
         
            +
             * @private
         
     | 
| 
      
 30362 
     | 
    
         
            +
             */
         
     | 
| 
      
 30363 
     | 
    
         
            +
            const notificationStackStyles = {
         
     | 
| 
      
 30364 
     | 
    
         
            +
                root: {
         
     | 
| 
      
 30365 
     | 
    
         
            +
                    zIndex: NOTIFICATION_CONTAINER_Z_INDEX,
         
     | 
| 
      
 30366 
     | 
    
         
            +
                    pointerEvents: 'auto', // to allow the dismissal or error and warning bars in the notification container,
         
     | 
| 
      
 30367 
     | 
    
         
            +
                    marginBottom: '0.5rem'
         
     | 
| 
      
 30368 
     | 
    
         
            +
                }
         
     | 
| 
      
 30369 
     | 
    
         
            +
            };
         
     | 
| 
       30345 
30370 
     | 
    
         
             
            /**
         
     | 
| 
       30346 
30371 
     | 
    
         
             
             * @private
         
     | 
| 
       30347 
30372 
     | 
    
         
             
             */
         
     | 
| 
         @@ -31775,41 +31800,8 @@ const showDtmfDialerButton = (options) => { 
     | 
|
| 
       31775 
31800 
     | 
    
         | 
| 
       31776 
31801 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       31777 
31802 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
       31778 
     | 
    
         
            -
             
     | 
| 
       31779 
     | 
    
         
            -
              
     | 
| 
       31780 
     | 
    
         
            -
             */
         
     | 
| 
       31781 
     | 
    
         
            -
            function MutedNotification(props) {
         
     | 
| 
       31782 
     | 
    
         
            -
                const locale = useLocale();
         
     | 
| 
       31783 
     | 
    
         
            -
                const theme = react.useTheme();
         
     | 
| 
       31784 
     | 
    
         
            -
                return (React.createElement(react.Stack, { horizontal: true, horizontalAlign: "center", className: react.mergeStyles(props.speakingWhileMuted === true ? isSpeakingAndMutedAnimationStyles : isNotSpeakingAndMutedAnimationStyles) },
         
     | 
| 
       31785 
     | 
    
         
            -
                    React.createElement(react.Stack, { horizontal: true, className: react.mergeStyles(stackStyle(theme)) },
         
     | 
| 
       31786 
     | 
    
         
            -
                        React.createElement(CallCompositeIcon, { iconName: "Muted", className: react.mergeStyles(iconStyle(theme)) }),
         
     | 
| 
       31787 
     | 
    
         
            -
                        React.createElement(react.Text, { className: react.mergeStyles(textStyle(theme)), "aria-live": 'polite' }, locale.strings.call.mutedMessage))));
         
     | 
| 
       31788 
     | 
    
         
            -
            }
         
     | 
| 
       31789 
     | 
    
         
            -
            const stackStyle = (theme) => {
         
     | 
| 
       31790 
     | 
    
         
            -
                return {
         
     | 
| 
       31791 
     | 
    
         
            -
                    background: theme.palette.black,
         
     | 
| 
       31792 
     | 
    
         
            -
                    gap: `1rem`,
         
     | 
| 
       31793 
     | 
    
         
            -
                    padding: `1rem`,
         
     | 
| 
       31794 
     | 
    
         
            -
                    borderRadius: theme.effects.roundedCorner4,
         
     | 
| 
       31795 
     | 
    
         
            -
                    width: 'fit-content',
         
     | 
| 
       31796 
     | 
    
         
            -
                    opacity: 0.8
         
     | 
| 
       31797 
     | 
    
         
            -
                };
         
     | 
| 
       31798 
     | 
    
         
            -
            };
         
     | 
| 
       31799 
     | 
    
         
            -
            const iconStyle = (theme) => {
         
     | 
| 
       31800 
     | 
    
         
            -
                return {
         
     | 
| 
       31801 
     | 
    
         
            -
                    color: theme.palette.white,
         
     | 
| 
       31802 
     | 
    
         
            -
                    maxHeight: '1.25rem'
         
     | 
| 
       31803 
     | 
    
         
            -
                };
         
     | 
| 
       31804 
     | 
    
         
            -
            };
         
     | 
| 
       31805 
     | 
    
         
            -
            const textStyle = (theme) => {
         
     | 
| 
       31806 
     | 
    
         
            -
                return {
         
     | 
| 
       31807 
     | 
    
         
            -
                    color: theme.palette.white,
         
     | 
| 
       31808 
     | 
    
         
            -
                    fontSize: `1rem`
         
     | 
| 
       31809 
     | 
    
         
            -
                };
         
     | 
| 
       31810 
     | 
    
         
            -
            };
         
     | 
| 
       31811 
     | 
    
         
            -
            const isSpeakingAndMutedAnimationStyles = Object.assign({}, react.AnimationStyles.fadeIn100);
         
     | 
| 
       31812 
     | 
    
         
            -
            const isNotSpeakingAndMutedAnimationStyles = Object.assign(Object.assign({}, react.AnimationStyles.fadeOut200), { display: 'none' });
         
     | 
| 
      
 31803 
     | 
    
         
            +
            Object.assign({}, react.AnimationStyles.fadeIn100);
         
     | 
| 
      
 31804 
     | 
    
         
            +
            Object.assign(Object.assign({}, react.AnimationStyles.fadeOut200), { display: 'none' });
         
     | 
| 
       31813 
31805 
     | 
    
         | 
| 
       31814 
31806 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       31815 
31807 
     | 
    
         
             
            // Licensed under the MIT License.
         
     | 
| 
         @@ -34530,7 +34522,6 @@ const CallArrangement = (props) => { 
     | 
|
| 
       34530 
34522 
     | 
    
         
             
                    togglePeoplePane();
         
     | 
| 
       34531 
34523 
     | 
    
         
             
                }, [togglePeoplePane]);
         
     | 
| 
       34532 
34524 
     | 
    
         
             
                const drawerContainerStylesValue = React.useMemo(() => drawerContainerStyles(DRAWER_Z_INDEX), []);
         
     | 
| 
       34533 
     | 
    
         
            -
                const canUnmute = role !== 'Consumer' ? true : false;
         
     | 
| 
       34534 
34525 
     | 
    
         
             
                let filteredLatestErrors = props.errorBarProps !== false ? props.latestErrors : [];
         
     | 
| 
       34535 
34526 
     | 
    
         
             
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
       34536 
34527 
     | 
    
         
             
                let filteredLatestErrorNotifications = props.showErrorNotifications
         
     | 
| 
         @@ -34570,9 +34561,13 @@ const CallArrangement = (props) => { 
     | 
|
| 
       34570 
34561 
     | 
    
         
             
                    : (_f = props.capabilitiesChangedNotificationBarProps) === null || _f === void 0 ? void 0 : _f.capabilitiesChangedNotifications;
         
     | 
| 
       34571 
34562 
     | 
    
         
             
                const errorNotificationTrampoline = () => {
         
     | 
| 
       34572 
34563 
     | 
    
         
             
                    /* @conditional-compile-remove(notifications) */
         
     | 
| 
       34573 
     | 
    
         
            -
                    return (React.createElement(React.Fragment, null, props.showErrorNotifications && (React.createElement(react.Stack, { styles:  
     | 
| 
      
 34564 
     | 
    
         
            +
                    return (React.createElement(React.Fragment, null, props.showErrorNotifications && (React.createElement(react.Stack, { styles: notificationStackStyles, horizontalAlign: "center", verticalAlign: "center" },
         
     | 
| 
       34574 
34565 
     | 
    
         
             
                        React.createElement(NotificationStack, { onDismissNotification: props.onDismissError, activeNotifications: filteredLatestErrorNotifications })))));
         
     | 
| 
       34575 
34566 
     | 
    
         
             
                };
         
     | 
| 
      
 34567 
     | 
    
         
            +
                const mutedNotificationTrampoline = () => {
         
     | 
| 
      
 34568 
     | 
    
         
            +
                    /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 34569 
     | 
    
         
            +
                    return React.createElement(React.Fragment, null);
         
     | 
| 
      
 34570 
     | 
    
         
            +
                };
         
     | 
| 
       34576 
34571 
     | 
    
         
             
                return (React.createElement("div", { ref: containerRef, className: react.mergeStyles(containerDivStyles), id: props.id },
         
     | 
| 
       34577 
34572 
     | 
    
         
             
                    React.createElement(react.Stack, { verticalFill: true, horizontalAlign: "stretch", className: containerClassName, "data-ui-id": props.dataUiId },
         
     | 
| 
       34578 
34573 
     | 
    
         
             
                        React.createElement(react.Stack, { reversed: true, horizontal: verticalControlBar, grow: true, styles: callArrangementContainerStyles(verticalControlBar) },
         
     | 
| 
         @@ -34606,10 +34601,12 @@ const CallArrangement = (props) => { 
     | 
|
| 
       34606 
34601 
     | 
    
         
             
                                                React.createElement(react.Stack, { styles: bannerNotificationStyles },
         
     | 
| 
       34607 
34602 
     | 
    
         
             
                                                    React.createElement(_ComplianceBanner, Object.assign({}, props.complianceBannerProps))),
         
     | 
| 
       34608 
34603 
     | 
    
         
             
                                                errorNotificationTrampoline(),
         
     | 
| 
      
 34604 
     | 
    
         
            +
                                                /* @conditional-compile-remove(notifications) */ props.latestNotifications && (React.createElement(react.Stack, { styles: notificationStackStyles, horizontalAlign: "center", verticalAlign: "center" },
         
     | 
| 
      
 34605 
     | 
    
         
            +
                                                    React.createElement(NotificationStack, { activeNotifications: props.latestNotifications }))),
         
     | 
| 
       34609 
34606 
     | 
    
         
             
                                                props.capabilitiesChangedNotificationBarProps &&
         
     | 
| 
       34610 
34607 
     | 
    
         
             
                                                    props.capabilitiesChangedNotificationBarProps.capabilitiesChangedNotifications.length > 0 && (React.createElement(react.Stack, { styles: bannerNotificationStyles },
         
     | 
| 
       34611 
34608 
     | 
    
         
             
                                                    React.createElement(CapabilitiesChangedNotificationBar, Object.assign({}, props.capabilitiesChangedNotificationBarProps, { capabilitiesChangedNotifications: filteredCapabilitesChangedNotifications !== null && filteredCapabilitesChangedNotifications !== void 0 ? filteredCapabilitesChangedNotifications : [] })))),
         
     | 
| 
       34612 
     | 
    
         
            -
                                                 
     | 
| 
      
 34609 
     | 
    
         
            +
                                                mutedNotificationTrampoline()),
         
     | 
| 
       34613 
34610 
     | 
    
         
             
                                            renderGallery && props.onRenderGalleryContent && props.onRenderGalleryContent(),
         
     | 
| 
       34614 
34611 
     | 
    
         
             
                                            /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ !isInLocalHold && (React.createElement(CaptionsBanner, { isMobile: props.mobileView, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData, useTeamsCaptions: useTeamsCaptions }))))),
         
     | 
| 
       34615 
34612 
     | 
    
         
             
                                React.createElement(SidePane, { mobileView: props.mobileView, maxWidth: isVideoPaneOpen ? `${VIDEO_EFFECTS_SIDE_PANE_WIDTH_REM}rem` : undefined, minWidth: isVideoPaneOpen ? `${VIDEO_EFFECTS_SIDE_PANE_WIDTH_REM}rem` : undefined, updateSidePaneRenderer: props.updateSidePaneRenderer, onPeopleButtonClicked: props.mobileView && !shouldShowPeopleTabHeaderButton(props.callControlProps.options)
         
     | 
| 
         @@ -35119,7 +35116,9 @@ const DtmfDialpadPage = (props) => { 
     | 
|
| 
       35119 
35116 
     | 
    
         
             
             */
         
     | 
| 
       35120 
35117 
     | 
    
         
             
            const CallPage = (props) => {
         
     | 
| 
       35121 
35118 
     | 
    
         
             
                var _a, _b;
         
     | 
| 
       35122 
     | 
    
         
            -
                const { callInvitationURL, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, mobileView, galleryLayout = 'floatingLocalVideo', onUserSetGalleryLayoutChange, userSetOverflowGalleryPosition = 'Responsive', onSetUserSetOverflowGalleryPosition, onCloseChatPane, pinnedParticipants, setPinnedParticipants, compositeAudioContext, disableAutoShowDtmfDialer = false  
     | 
| 
      
 35119 
     | 
    
         
            +
                const { callInvitationURL, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, mobileView, galleryLayout = 'floatingLocalVideo', onUserSetGalleryLayoutChange, userSetOverflowGalleryPosition = 'Responsive', onSetUserSetOverflowGalleryPosition, onCloseChatPane, pinnedParticipants, setPinnedParticipants, compositeAudioContext, disableAutoShowDtmfDialer = false, 
         
     | 
| 
      
 35120 
     | 
    
         
            +
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 35121 
     | 
    
         
            +
                latestNotifications } = props;
         
     | 
| 
       35123 
35122 
     | 
    
         
             
                // To use useProps to get these states, we need to create another file wrapping Call,
         
     | 
| 
       35124 
35123 
     | 
    
         
             
                // It seems unnecessary in this case, so we get the updated states using this approach.
         
     | 
| 
       35125 
35124 
     | 
    
         
             
                const { callStatus } = useSelector$1(callStatusSelector);
         
     | 
| 
         @@ -35157,7 +35156,9 @@ const CallPage = (props) => { 
     | 
|
| 
       35157 
35156 
     | 
    
         
             
                            options: callControlOptions,
         
     | 
| 
       35158 
35157 
     | 
    
         
             
                            increaseFlyoutItemSize: mobileView
         
     | 
| 
       35159 
35158 
     | 
    
         
             
                        }, onFetchAvatarPersonaData: onFetchAvatarPersonaData, mobileView: mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => _isInCall(callStatus) ? (isNetworkHealthy(networkReconnectTileProps.networkReconnectValue) ? (onRenderGalleryContentTrampoline()) : (React.createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps, { 
         
     | 
| 
       35160 
     | 
    
         
            -
                            /* /* @conditional-compile-remove(teams-meeting-conference) */ isMobile: mobileView })))) : (React.createElement(React.Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: onCloseChatPane, dataUiId: 'call-page', latestErrors: props.latestErrors,  
     | 
| 
      
 35159 
     | 
    
         
            +
                            /* /* @conditional-compile-remove(teams-meeting-conference) */ isMobile: mobileView })))) : (React.createElement(React.Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: onCloseChatPane, dataUiId: 'call-page', latestErrors: props.latestErrors, 
         
     | 
| 
      
 35160 
     | 
    
         
            +
                        /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 35161 
     | 
    
         
            +
                        latestNotifications: latestNotifications, onDismissError: props.onDismissError, onUserSetOverflowGalleryPositionChange: onSetUserSetOverflowGalleryPosition, onUserSetGalleryLayoutChange: onUserSetGalleryLayoutChange, userSetGalleryLayout: galleryLayout, capabilitiesChangedNotificationBarProps: props.capabilitiesChangedNotificationBarProps, onSetDialpadPage: () => setDtmfDialerPresent(!dtmfDialerPresent), dtmfDialerPresent: dtmfDialerPresent, setIsPromptOpen: setIsPromptOpen, setPromptProps: setPromptProps, hideSpotlightButtons: (_b = options === null || options === void 0 ? void 0 : options.spotlight) === null || _b === void 0 ? void 0 : _b.hideSpotlightButtons, pinnedParticipants: pinnedParticipants, setPinnedParticipants: setPinnedParticipants }),
         
     | 
| 
       35161 
35162 
     | 
    
         
             
                    React.createElement(Prompt, Object.assign({ isOpen: isPromptOpen, onDismiss: () => setIsPromptOpen(false) }, promptProps))));
         
     | 
| 
       35162 
35163 
     | 
    
         
             
            };
         
     | 
| 
       35163 
35164 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -36568,7 +36569,9 @@ const LobbyPage = (props) => { 
     | 
|
| 
       36568 
36569 
     | 
    
         
             
                    showErrorNotifications: (_f = (_e = props.options) === null || _e === void 0 ? void 0 : _e.errorBar) !== null && _f !== void 0 ? _f : true, callControlProps: {
         
     | 
| 
       36569 
36570 
     | 
    
         
             
                        options: callControlOptions,
         
     | 
| 
       36570 
36571 
     | 
    
         
             
                        increaseFlyoutItemSize: props.mobileView
         
     | 
| 
       36571 
     | 
    
         
            -
                    }, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => (React.createElement(LobbyTile, Object.assign({}, lobbyProps, { showLocalVideoCameraCycleButton: props.mobileView, overlayProps: overlayProps(strings, inLobby, Object.values(participants)) }))), dataUiId: 'lobby-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, onDismissError: props.onDismissError  
     | 
| 
      
 36572 
     | 
    
         
            +
                    }, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => (React.createElement(LobbyTile, Object.assign({}, lobbyProps, { showLocalVideoCameraCycleButton: props.mobileView, overlayProps: overlayProps(strings, inLobby, Object.values(participants)) }))), dataUiId: 'lobby-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, onDismissError: props.onDismissError, 
         
     | 
| 
      
 36573 
     | 
    
         
            +
                    /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 36574 
     | 
    
         
            +
                    latestNotifications: props.latestNotifications }));
         
     | 
| 
       36572 
36575 
     | 
    
         
             
            };
         
     | 
| 
       36573 
36576 
     | 
    
         
             
            const overlayProps = (strings, inLobby, remoteParticipants) => {
         
     | 
| 
       36574 
36577 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -36941,7 +36944,9 @@ const HoldPage = (props) => { 
     | 
|
| 
       36941 
36944 
     | 
    
         
             
                    showErrorNotifications: (_e = (_d = props.options) === null || _d === void 0 ? void 0 : _d.errorBar) !== null && _e !== void 0 ? _e : true, callControlProps: {
         
     | 
| 
       36942 
36945 
     | 
    
         
             
                        options: callControlOptions,
         
     | 
| 
       36943 
36946 
     | 
    
         
             
                        increaseFlyoutItemSize: props.mobileView
         
     | 
| 
       36944 
     | 
    
         
            -
                    }, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => React.createElement(HoldPane, null), dataUiId: 'hold-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors,  
     | 
| 
      
 36947 
     | 
    
         
            +
                    }, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => React.createElement(HoldPane, null), dataUiId: 'hold-page', updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, 
         
     | 
| 
      
 36948 
     | 
    
         
            +
                    /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 36949 
     | 
    
         
            +
                    latestNotifications: props.latestNotifications, onDismissError: props.onDismissError }));
         
     | 
| 
       36945 
36950 
     | 
    
         
             
            };
         
     | 
| 
       36946 
36951 
     | 
    
         | 
| 
       36947 
36952 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
         @@ -37435,7 +37440,9 @@ const MainScreen = (props) => { 
     | 
|
| 
       37435 
37440 
     | 
    
         
             
                // And then tracking when that error type was last dismissed.
         
     | 
| 
       37436 
37441 
     | 
    
         
             
                const activeErrors = usePropsFor$1(ErrorBar).activeErrorMessages;
         
     | 
| 
       37437 
37442 
     | 
    
         
             
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
       37438 
     | 
    
         
            -
                const activeInCallErrors =  
     | 
| 
      
 37443 
     | 
    
         
            +
                const activeInCallErrors = usePropsFor$1(NotificationStack).activeErrorMessages;
         
     | 
| 
      
 37444 
     | 
    
         
            +
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 37445 
     | 
    
         
            +
                const activeNotifications = usePropsFor$1(NotificationStack).activeNotifications;
         
     | 
| 
       37439 
37446 
     | 
    
         
             
                const [trackedErrors, setTrackedErrors] = React.useState({});
         
     | 
| 
       37440 
37447 
     | 
    
         
             
                /* @conditional-compile-remove(notifications) */
         
     | 
| 
       37441 
37448 
     | 
    
         
             
                const [trackedInCallErrors, setTrackedInCallErrors] = React.useState({});
         
     | 
| 
         @@ -37514,17 +37521,25 @@ const MainScreen = (props) => { 
     | 
|
| 
       37514 
37521 
     | 
    
         
             
                        break;
         
     | 
| 
       37515 
37522 
     | 
    
         
             
                    }
         
     | 
| 
       37516 
37523 
     | 
    
         
             
                    case 'lobby':
         
     | 
| 
       37517 
     | 
    
         
            -
                        pageElement = (React.createElement(LobbyPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: getLatestErrorsTrampoline(),  
     | 
| 
      
 37524 
     | 
    
         
            +
                        pageElement = (React.createElement(LobbyPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: getLatestErrorsTrampoline(), 
         
     | 
| 
      
 37525 
     | 
    
         
            +
                            /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 37526 
     | 
    
         
            +
                            latestNotifications: activeNotifications, onDismissError: onDismissError, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
         
     | 
| 
       37518 
37527 
     | 
    
         
             
                        break;
         
     | 
| 
       37519 
37528 
     | 
    
         
             
                    case 'transferring':
         
     | 
| 
       37520 
     | 
    
         
            -
                        pageElement = (React.createElement(TransferPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onFetchAvatarPersonaData: onFetchAvatarPersonaData, latestErrors: getLatestErrorsTrampoline(),  
     | 
| 
      
 37529 
     | 
    
         
            +
                        pageElement = (React.createElement(TransferPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onFetchAvatarPersonaData: onFetchAvatarPersonaData, latestErrors: getLatestErrorsTrampoline(), 
         
     | 
| 
      
 37530 
     | 
    
         
            +
                            /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 37531 
     | 
    
         
            +
                            latestNotifications: activeNotifications, onDismissError: onDismissError, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
         
     | 
| 
       37521 
37532 
     | 
    
         
             
                        break;
         
     | 
| 
       37522 
37533 
     | 
    
         
             
                    case 'call':
         
     | 
| 
       37523 
     | 
    
         
            -
                        pageElement = (React.createElement(CallPage, { callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: props.onCloseChatPane, latestErrors: getLatestErrorsTrampoline(),  
     | 
| 
      
 37534 
     | 
    
         
            +
                        pageElement = (React.createElement(CallPage, { callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: props.onCloseChatPane, latestErrors: getLatestErrorsTrampoline(), 
         
     | 
| 
      
 37535 
     | 
    
         
            +
                            /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 37536 
     | 
    
         
            +
                            latestNotifications: activeNotifications, onDismissError: onDismissError, galleryLayout: userSetGalleryLayout, onUserSetGalleryLayoutChange: setUserSetGalleryLayout, onSetUserSetOverflowGalleryPosition: setUserSetOverflowGalleryPosition, userSetOverflowGalleryPosition: userSetOverflowGalleryPosition, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps, pinnedParticipants: pinnedParticipants, setPinnedParticipants: setPinnedParticipants, compositeAudioContext: compositeAudioContext, disableAutoShowDtmfDialer: (_q = props.options) === null || _q === void 0 ? void 0 : _q.disableAutoShowDtmfDialer }));
         
     | 
| 
       37524 
37537 
     | 
    
         
             
                        break;
         
     | 
| 
       37525 
37538 
     | 
    
         
             
                    /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
         
     | 
| 
       37526 
37539 
     | 
    
         
             
                    case 'hold':
         
     | 
| 
       37527 
     | 
    
         
            -
                        pageElement = (React.createElement(React.Fragment, null, React.createElement(HoldPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: getLatestErrorsTrampoline(),  
     | 
| 
      
 37540 
     | 
    
         
            +
                        pageElement = (React.createElement(React.Fragment, null, React.createElement(HoldPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: getLatestErrorsTrampoline(), 
         
     | 
| 
      
 37541 
     | 
    
         
            +
                            /* @conditional-compile-remove(notifications) */
         
     | 
| 
      
 37542 
     | 
    
         
            +
                            latestNotifications: activeNotifications, onDismissError: onDismissError, capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps })));
         
     | 
| 
       37528 
37543 
     | 
    
         
             
                        break;
         
     | 
| 
       37529 
37544 
     | 
    
         
             
                }
         
     | 
| 
       37530 
37545 
     | 
    
         
             
                useEndedCallConsoleErrors(endedCall);
         
     | 
| 
         @@ -41614,4 +41629,4 @@ exports.useTeamsCall = useTeamsCall; 
     | 
|
| 
       41614 
41629 
     | 
    
         
             
            exports.useTeamsCallAdapter = useTeamsCallAdapter;
         
     | 
| 
       41615 
41630 
     | 
    
         
             
            exports.useTeamsCallAgent = useTeamsCallAgent;
         
     | 
| 
       41616 
41631 
     | 
    
         
             
            exports.useTheme = useTheme;
         
     | 
| 
       41617 
     | 
    
         
            -
            //# sourceMappingURL=index- 
     | 
| 
      
 41632 
     | 
    
         
            +
            //# sourceMappingURL=index-D8bZR5YN.js.map
         
     |