// Metro module 10465 (f10466). import EmbeddedActivitiesStore from "../activities/EmbeddedActivitiesStore"; import ChannelStore from "../../stores/ChannelStore"; import { ChatOverlays } from "./ChatOverlayConstants"; import { ActivityPanelModes } from "../activities/panel/ActivityPanelConstants"; import { useStateFromStores } from "../../_bundle/defaultAreStatesEqual"; import { getEmbeddedActivityLocationChannelId } from "../activities/utils/embeddedActivityLocationUtils"; import isVoiceEmbeddedActivity from "../activities/utils/isVoiceEmbeddedActivity"; let c7012_5 = "no_text_activity"; const r28 = { no_text_activity: [ChatOverlays.NEW_MESSAGES, ChatOverlays.OPT_IN_CHANNEL, ChatOverlays.SUMMARIES] }; r28[ActivityPanelModes.DISCONNECTED] = [ChatOverlays.NEW_MESSAGES, ChatOverlays.OPT_IN_CHANNEL, ChatOverlays.SUMMARIES]; r28[ActivityPanelModes.LAUNCHING_WITH_ORIENTATION_CHANGE] = [ChatOverlays.NEW_MESSAGES, ChatOverlays.OPT_IN_CHANNEL, ChatOverlays.SUMMARIES]; r28[ActivityPanelModes.PANEL] = []; r28[ActivityPanelModes.PIP] = [ChatOverlays.NEW_MESSAGES, ChatOverlays.OPT_IN_CHANNEL, ChatOverlays.SUMMARIES]; r28[ActivityPanelModes.ACTIVITY_POPOUT_WINDOW] = [ChatOverlays.NEW_MESSAGES, ChatOverlays.OPT_IN_CHANNEL, ChatOverlays.SUMMARIES]; let c7012_6 = r28; export default function useAllowedChatOverlays() { const stateFromStores = useStateFromStores([EmbeddedActivitiesStore], () => EmbeddedActivitiesStore.getCurrentEmbeddedActivity()); const stateFromStores2 = useStateFromStores([EmbeddedActivitiesStore], () => EmbeddedActivitiesStore.getActivityPanelMode()); const embeddedActivityLocationChannelId = getEmbeddedActivityLocationChannelId(stateFromStores?.location); return stateFromStores !== void 0 && !isVoiceEmbeddedActivity(embeddedActivityLocationChannelId, ChannelStore) ? c7012_6[stateFromStores2] : c7012_6[c7012_5]; };