2026-09-14 20:04:03 +00:00
// Module ID: 14542
// Function ID: 14543
2026-09-10 05:38:07 +00:00
// Name: VoiceNotificationManager
2026-09-14 20:04:03 +00:00
// Dependencies: [32, 17, 1956, 4864, 4658, 1957, 1908, 4659, 4285, 1371, 1074, 576, 7860, 7858, 10169, 11019, 4789, 1114, 1898, 2]
2026-07-20 16:05:17 +00:00
2026-09-14 20:04:03 +00:00
// Module 14542 (VoiceNotificationManager)
2026-09-10 05:38:07 +00:00
import nativeDefault from "native" /* 576 */ ;
2026-09-12 13:45:10 +00:00
import ForegroundServiceManagerDefault from "ForegroundServiceManager" /* 7858 */ ;
import RTCConnectionUtilsDefault from "RTCConnectionUtils" /* 10169 */ ;
2026-09-10 05:38:07 +00:00
import _slicedToArray from "module_32" /* 32 */ ;
import EmbeddedActivitiesStore from "EmbeddedActivitiesStore" /* 1956 */ ;
2026-09-12 13:45:10 +00:00
import ApplicationStore from "ApplicationStore" /* 4864 */ ;
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4658 */ ;
2026-09-10 05:38:07 +00:00
import ChannelStore from "ChannelStore" /* 1957 */ ;
import MediaEngineStore from "MediaEngineStore" /* 1908 */ ;
2026-09-12 13:45:10 +00:00
import RTCConnectionStore from "RTCConnectionStore" /* 4659 */ ;
import RelationshipStore from "RelationshipStore" /* 4285 */ ;
2026-09-10 05:38:07 +00:00
import UserStore from "UserStore" /* 1371 */ ;
import LifecycleManager from "LifecycleManager" /* 1898 */ ;
2026-07-23 10:11:24 +00:00
2026-09-10 05:38:07 +00:00
let obj2 = fn ;
const processColor = fn ( 17 ) . processColor ;
const InputModes = fn ( 1074 ) . InputModes ;
let closure_13 = processColor ( nativeDefault . unsafe_rawColors . BRAND_500 ) ;
let closure_14 = processColor ( nativeDefault . unsafe_rawColors . RED_NEW_46 ) ;
2026-07-29 08:29:29 +00:00
class VoiceNotificationManager {
constructor ( ) {
obj = Object . create ( new . target . prototype ) ;
2026-08-24 06:08:38 +00:00
closure_0 = obj ;
2026-07-29 08:29:29 +00:00
obj . voiceServiceHandlerId = 9000 ;
2026-09-14 20:04:03 +00:00
obj . state = { channelId : "flexDirection" , connectionState : "content" , selfMute : false , deafened : "bal\u00F3n" , isPushToTalk : "hra" , embeddedActivity : "m\u00ED\u010D" , isStreaming : "m\u00ED\u010D na volejbal" } ;
2026-07-29 08:29:29 +00:00
obj . handleVoiceStateChange = function handleVoiceStateChange() {
2026-09-10 05:38:07 +00:00
const channelId = RTCConnectionStore . getChannelId ( ) ;
const state = RTCConnectionStore . getState ( ) ;
2026-07-29 08:29:29 +00:00
if ( ! tmp3 ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . channelId = channelId ;
obj2 . connectionState = state ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
obj . handleMediaEngineStateChange = function handleMediaEngineStateChange() {
2026-09-10 05:38:07 +00:00
const tmp = MediaEngineStore . isSelfMute ( ) || MediaEngineStore . isSelfMutedTemporarily ( ) ;
const tmp2 = MediaEngineStore . isSelfDeaf ( ) || MediaEngineStore . isDeaf ( ) ;
2026-07-29 08:29:29 +00:00
let tmp4 = obj . state . selfMute === tmp ;
const mode = obj . getMode ( ) ;
if ( tmp4 ) {
tmp4 = obj2 . state . deafened === tmp2 ;
}
if ( tmp4 ) {
tmp4 = obj2 . state . isPushToTalk === tmp5 ;
}
if ( ! tmp4 ) {
2026-09-10 05:38:07 +00:00
const obj3 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj2 . state ) ;
2026-09-10 05:38:07 +00:00
obj3 . selfMute = tmp ;
obj3 . deafened = tmp2 ;
obj3 . isPushToTalk = tmp5 ;
obj2 . handleUpdate ( obj3 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
obj . handleEmbeddedActivityStateChange = function handleEmbeddedActivityStateChange() {
if ( null != obj . state . channelId ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
const currentEmbeddedActivity = EmbeddedActivitiesStore . getCurrentEmbeddedActivity ( ) ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . embeddedActivity = currentEmbeddedActivity ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
obj . handleApplicationStreamStateChange = function handleApplicationStreamStateChange() {
2026-09-10 05:38:07 +00:00
const tmp = null != ApplicationStreamingStore . getCurrentUserActiveStream ( ) ;
2026-07-29 08:29:29 +00:00
if ( obj . state . isStreaming !== tmp ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . isStreaming = tmp ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
obj . getIcon = function getIcon ( state ) {
( { deafened , selfMute , isPushToTalk } = state ) ;
2026-09-10 05:38:07 +00:00
const ServiceNotificationIcon = obj ( dependencyMap [ 12 ] ) . ServiceNotificationIcon ;
2026-07-29 08:29:29 +00:00
if ( deafened ) {
2026-09-10 05:38:07 +00:00
const items = [ ServiceNotificationIcon . DEAFENED , closure_1_14 ] ;
2026-07-29 08:29:29 +00:00
let items3 = items ;
} else if ( selfMute ) {
2026-09-10 05:38:07 +00:00
const items1 = [ ServiceNotificationIcon . MUTED , closure_1_14 ] ;
2026-07-29 08:29:29 +00:00
items3 = items1 ;
} else if ( isPushToTalk ) {
2026-09-10 05:38:07 +00:00
const items2 = [ ServiceNotificationIcon . DEFAULT , closure_1_13 ] ;
2026-07-29 08:29:29 +00:00
items3 = items2 ;
} else {
2026-09-10 05:38:07 +00:00
items3 = [ ServiceNotificationIcon . IDLE , closure_1_13 ] ;
2026-07-29 08:29:29 +00:00
}
return items3 ;
} ;
obj . handleUpdate = function handleUpdate ( connectionState ) {
if ( null != connectionState . connectionState ) {
let updateServiceHandlerResult = obj ;
2026-09-10 05:38:07 +00:00
[ tmp4 , tmp5 ] = obj . getIcon ( obj . state ) ;
const tmp3 = _slicedToArray ( obj . getIcon ( obj . state ) , 2 ) ;
[ tmp7 , tmp8 ] = obj . getIcon ( connectionState ) ;
2026-07-29 08:29:29 +00:00
if ( obj . state . channelId === connectionState . channelId ) {
if ( updateServiceHandlerResult . state . connectionState === connectionState . connectionState ) {
if ( updateServiceHandlerResult . state . selfMute === connectionState . selfMute ) {
if ( updateServiceHandlerResult . state . deafened === connectionState . deafened ) {
const embeddedActivity = updateServiceHandlerResult . state . embeddedActivity ;
let compositeInstanceId ;
if ( embeddedActivity != null ) {
compositeInstanceId = embeddedActivity . compositeInstanceId ;
}
const embeddedActivity2 = connectionState . embeddedActivity ;
let compositeInstanceId1 ;
if ( embeddedActivity2 != null ) {
compositeInstanceId1 = embeddedActivity2 . compositeInstanceId ;
}
if ( compositeInstanceId === compositeInstanceId1 ) {
if ( updateServiceHandlerResult . state . isStreaming === connectionState . isStreaming ) {
if ( tmp4 === tmp7 ) {
2026-07-20 16:05:17 +00:00
if ( tmp5 === tmp8 ) {
2026-07-29 08:29:29 +00:00
updateServiceHandlerResult . state = connectionState ;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
}
}
2026-07-29 08:29:29 +00:00
}
const embeddedActivity3 = connectionState . embeddedActivity ;
updateServiceHandlerResult . state = connectionState ;
( { connectionState , selfMute , deafened , isStreaming } = connectionState ) ;
2026-09-10 05:38:07 +00:00
const channel = ChannelStore . getChannel ( connectionState . channelId ) ;
2026-07-29 08:29:29 +00:00
if ( null != channel ) {
2026-09-10 05:38:07 +00:00
let tmp16 = importDefault ;
let updateServiceHandler = dependencyMap ;
2026-07-29 08:29:29 +00:00
let str2 = "" ;
if ( null != embeddedActivity3 ) {
let applicationId ;
if ( embeddedActivity3 != null ) {
applicationId = embeddedActivity3 . applicationId ;
2026-07-20 16:05:17 +00:00
}
2026-09-10 05:38:07 +00:00
const application = ApplicationStore . getApplication ( applicationId ) ;
2026-07-29 08:29:29 +00:00
let name ;
if ( application != null ) {
name = application . name ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const _HermesInternal = HermesInternal ;
2026-09-14 20:04:03 +00:00
str2 = " - " + tmp16 ( 11019 ) ( name ) ;
const tmp16Result = tmp16 ( 11019 ) ;
2026-07-29 08:29:29 +00:00
}
2026-09-10 05:38:07 +00:00
const obj3 = RTCConnectionUtilsDefault ;
2026-07-29 08:29:29 +00:00
obj = { title : null , content : null , priority : null , contentAction : null , auxiliaryActions : null , type : null , usesGateway : true , icon : null , color : null } ;
2026-09-12 13:45:10 +00:00
const channelName = obj2 ( 4789 ) . computeChannelName ( channel , UserStore , RelationshipStore ) ;
2026-09-10 05:38:07 +00:00
const intl = obj2 ( 1114 ) . intl ;
const obj5 = { callState : obj3.getStatus ( connectionState ) . connectionStatusText } ;
obj . title = intl . formatToPlainString ( obj2 ( 1114 ) . t [ "aUT3+M" ] , obj5 ) ;
2026-07-29 08:29:29 +00:00
const _HermesInternal2 = HermesInternal ;
2026-09-10 05:38:07 +00:00
obj . content = "" + channelName + str2 ;
2026-09-12 13:45:10 +00:00
obj . priority = obj2 ( 7860 ) . ServiceNotificationPriority . HIGH ;
2026-09-10 05:38:07 +00:00
obj . contentAction = updateServiceHandlerResult . createAction ( channel , "SelectVoiceChannel" , undefined ) ;
const intl2 = obj2 ( 1114 ) . intl ;
const items = [ updateServiceHandlerResult . createAction ( channel , "Disconnect" , intl2 . string ( obj2 ( 1114 ) . t [ "6vrfgt" ] ) ) , , ] ;
const intl3 = obj2 ( 1114 ) . intl ;
2026-07-29 08:29:29 +00:00
const string = intl3 . string ;
2026-09-10 05:38:07 +00:00
const t = obj2 ( 1114 ) . t ;
2026-07-29 08:29:29 +00:00
if ( selfMute ) {
let stringResult = string ( t . YqAjXy ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
stringResult = string ( t . w4m945 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items [ 1 ] = updateServiceHandlerResult . createAction ( channel , "ToggleSelfMute" , stringResult ) ;
2026-09-10 05:38:07 +00:00
const intl4 = tmp23 ( 1114 ) . intl ;
2026-07-29 08:29:29 +00:00
const string2 = intl4 . string ;
2026-09-10 05:38:07 +00:00
const t2 = tmp23 ( 1114 ) . t ;
2026-07-29 08:29:29 +00:00
if ( deafened ) {
let string2Result = string2 ( t2 [ "2US872" ] ) ;
} else {
string2Result = string2 ( t2 . wjcRFX ) ;
}
items [ 2 ] = updateServiceHandlerResult . createAction ( channel , "ToggleDeafen" , string2Result ) ;
2026-09-10 05:38:07 +00:00
obj . auxiliaryActions = items ;
2026-09-12 13:45:10 +00:00
const ServiceNotificationType = tmp23 ( 7860 ) . ServiceNotificationType ;
2026-09-10 05:38:07 +00:00
obj . type = isStreaming ? ServiceNotificationType.SCREEN_SHARE : ServiceNotificationType.VOICE_CALL ;
obj . icon = tmp7 ;
obj . color = tmp8 ;
2026-09-12 13:45:10 +00:00
tmp16 = tmp16 ( 7858 ) ;
2026-07-29 08:29:29 +00:00
updateServiceHandler = tmp16 . updateServiceHandler ;
updateServiceHandlerResult = updateServiceHandler ( updateServiceHandlerResult . voiceServiceHandlerId , obj ) ;
2026-09-12 13:45:10 +00:00
const obj4 = obj2 ( 4789 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-09-10 05:38:07 +00:00
obj2 = ForegroundServiceManagerDefault ;
obj2 . removeServiceHandler ( updateServiceHandlerResult . voiceServiceHandlerId ) ;
2026-07-20 16:05:17 +00:00
}
2026-09-10 05:38:07 +00:00
const tmp6 = _slicedToArray ( obj . getIcon ( connectionState ) , 2 ) ;
2026-07-29 08:29:29 +00:00
} else {
obj . state = connectionState ;
}
} ;
obj . createAction = function createAction ( channel , Disconnect , intl2 ) {
2026-09-10 05:38:07 +00:00
return { tag : "" + Disconnect + channel . id , taskName : Disconnect , title : intl2 , data : { channelId : channel.id } } ;
2026-07-29 08:29:29 +00:00
} ;
return obj ;
}
}
const prototype = VoiceNotificationManager . prototype ;
prototype [ "initialize" ] = function initialize() {
2026-09-10 05:38:07 +00:00
RTCConnectionStore . addChangeListener ( this . handleVoiceStateChange ) ;
MediaEngineStore . addChangeListener ( this . handleMediaEngineStateChange ) ;
EmbeddedActivitiesStore . addChangeListener ( this . handleEmbeddedActivityStateChange ) ;
ApplicationStreamingStore . addChangeListener ( this . handleApplicationStreamStateChange ) ;
2026-07-29 08:29:29 +00:00
} ;
prototype [ "terminate" ] = function terminate() {
2026-09-10 05:38:07 +00:00
RTCConnectionStore . removeChangeListener ( this . handleVoiceStateChange ) ;
MediaEngineStore . removeChangeListener ( this . handleMediaEngineStateChange ) ;
EmbeddedActivitiesStore . removeChangeListener ( this . handleEmbeddedActivityStateChange ) ;
ApplicationStreamingStore . removeChangeListener ( this . handleApplicationStreamStateChange ) ;
2026-07-29 08:29:29 +00:00
} ;
2026-09-10 05:38:07 +00:00
obj2 = Object . create ( VoiceNotificationManager . prototype ) ;
obj2 . voiceServiceHandlerId = 9000 ;
2026-09-14 20:04:03 +00:00
obj2 . state = { channelId : "flexDirection" , connectionState : "content" , selfMute : false , deafened : "bal\u00F3n" , isPushToTalk : "hra" , embeddedActivity : "m\u00ED\u010D" , isStreaming : "m\u00ED\u010D na volejbal" } ;
2026-09-10 05:38:07 +00:00
obj2 . handleVoiceStateChange = function handleVoiceStateChange() {
const channelId = RTCConnectionStore . getChannelId ( ) ;
const state = RTCConnectionStore . getState ( ) ;
2026-07-29 08:29:29 +00:00
if ( ! tmp3 ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . channelId = channelId ;
obj2 . connectionState = state ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
2026-09-10 05:38:07 +00:00
obj2 . handleMediaEngineStateChange = function handleMediaEngineStateChange() {
const tmp = MediaEngineStore . isSelfMute ( ) || MediaEngineStore . isSelfMutedTemporarily ( ) ;
const tmp2 = MediaEngineStore . isSelfDeaf ( ) || MediaEngineStore . isDeaf ( ) ;
2026-07-29 08:29:29 +00:00
let tmp4 = obj . state . selfMute === tmp ;
const mode = obj . getMode ( ) ;
if ( tmp4 ) {
tmp4 = obj2 . state . deafened === tmp2 ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( tmp4 ) {
tmp4 = obj2 . state . isPushToTalk === tmp5 ;
}
if ( ! tmp4 ) {
2026-09-10 05:38:07 +00:00
const obj3 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj2 . state ) ;
2026-09-10 05:38:07 +00:00
obj3 . selfMute = tmp ;
obj3 . deafened = tmp2 ;
obj3 . isPushToTalk = tmp5 ;
obj2 . handleUpdate ( obj3 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
2026-09-10 05:38:07 +00:00
obj2 . handleEmbeddedActivityStateChange = function handleEmbeddedActivityStateChange() {
2026-07-29 08:29:29 +00:00
if ( null != obj . state . channelId ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
const currentEmbeddedActivity = EmbeddedActivitiesStore . getCurrentEmbeddedActivity ( ) ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . embeddedActivity = currentEmbeddedActivity ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
2026-09-10 05:38:07 +00:00
obj2 . handleApplicationStreamStateChange = function handleApplicationStreamStateChange() {
const tmp = null != ApplicationStreamingStore . getCurrentUserActiveStream ( ) ;
2026-07-29 08:29:29 +00:00
if ( obj . state . isStreaming !== tmp ) {
2026-09-10 05:38:07 +00:00
obj2 = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( obj . state ) ;
2026-09-10 05:38:07 +00:00
obj2 . isStreaming = tmp ;
obj . handleUpdate ( obj2 ) ;
2026-07-29 08:29:29 +00:00
}
} ;
2026-09-10 05:38:07 +00:00
obj2 . getIcon = function getIcon ( state ) {
2026-07-29 08:29:29 +00:00
( { deafened , selfMute , isPushToTalk } = state ) ;
2026-09-10 05:38:07 +00:00
const ServiceNotificationIcon = obj ( dependencyMap [ 12 ] ) . ServiceNotificationIcon ;
2026-07-29 08:29:29 +00:00
if ( deafened ) {
2026-09-10 05:38:07 +00:00
const items = [ ServiceNotificationIcon . DEAFENED , closure_1_14 ] ;
2026-07-29 08:29:29 +00:00
let items3 = items ;
} else if ( selfMute ) {
2026-09-10 05:38:07 +00:00
const items1 = [ ServiceNotificationIcon . MUTED , closure_1_14 ] ;
2026-07-29 08:29:29 +00:00
items3 = items1 ;
} else if ( isPushToTalk ) {
2026-09-10 05:38:07 +00:00
const items2 = [ ServiceNotificationIcon . DEFAULT , closure_1_13 ] ;
2026-07-29 08:29:29 +00:00
items3 = items2 ;
} else {
2026-09-10 05:38:07 +00:00
items3 = [ ServiceNotificationIcon . IDLE , closure_1_13 ] ;
2026-07-29 08:29:29 +00:00
}
return items3 ;
} ;
2026-09-10 05:38:07 +00:00
obj2 . handleUpdate = function handleUpdate ( connectionState ) {
2026-07-29 08:29:29 +00:00
if ( null != connectionState . connectionState ) {
let updateServiceHandlerResult = obj ;
2026-09-10 05:38:07 +00:00
[ tmp4 , tmp5 ] = obj . getIcon ( obj . state ) ;
const tmp3 = _slicedToArray ( obj . getIcon ( obj . state ) , 2 ) ;
[ tmp7 , tmp8 ] = obj . getIcon ( connectionState ) ;
2026-07-29 08:29:29 +00:00
if ( obj . state . channelId === connectionState . channelId ) {
if ( updateServiceHandlerResult . state . connectionState === connectionState . connectionState ) {
if ( updateServiceHandlerResult . state . selfMute === connectionState . selfMute ) {
if ( updateServiceHandlerResult . state . deafened === connectionState . deafened ) {
const embeddedActivity = updateServiceHandlerResult . state . embeddedActivity ;
let compositeInstanceId ;
if ( embeddedActivity != null ) {
compositeInstanceId = embeddedActivity . compositeInstanceId ;
}
const embeddedActivity2 = connectionState . embeddedActivity ;
let compositeInstanceId1 ;
if ( embeddedActivity2 != null ) {
compositeInstanceId1 = embeddedActivity2 . compositeInstanceId ;
}
if ( compositeInstanceId === compositeInstanceId1 ) {
if ( updateServiceHandlerResult . state . isStreaming === connectionState . isStreaming ) {
if ( tmp4 === tmp7 ) {
if ( tmp5 === tmp8 ) {
updateServiceHandlerResult . state = connectionState ;
}
}
}
}
}
}
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const embeddedActivity3 = connectionState . embeddedActivity ;
updateServiceHandlerResult . state = connectionState ;
( { connectionState , selfMute , deafened , isStreaming } = connectionState ) ;
2026-09-10 05:38:07 +00:00
const channel = ChannelStore . getChannel ( connectionState . channelId ) ;
2026-07-29 08:29:29 +00:00
if ( null != channel ) {
2026-09-10 05:38:07 +00:00
let tmp16 = importDefault ;
let updateServiceHandler = dependencyMap ;
2026-07-29 08:29:29 +00:00
let str2 = "" ;
if ( null != embeddedActivity3 ) {
let applicationId ;
if ( embeddedActivity3 != null ) {
applicationId = embeddedActivity3 . applicationId ;
}
2026-09-10 05:38:07 +00:00
const application = ApplicationStore . getApplication ( applicationId ) ;
2026-07-29 08:29:29 +00:00
let name ;
if ( application != null ) {
name = application . name ;
}
const _HermesInternal = HermesInternal ;
2026-09-14 20:04:03 +00:00
str2 = " - " + tmp16 ( 11019 ) ( name ) ;
const tmp16Result = tmp16 ( 11019 ) ;
2026-07-29 08:29:29 +00:00
}
2026-09-10 05:38:07 +00:00
const obj3 = RTCConnectionUtilsDefault ;
2026-07-29 08:29:29 +00:00
obj = { title : null , content : null , priority : null , contentAction : null , auxiliaryActions : null , type : null , usesGateway : true , icon : null , color : null } ;
2026-09-12 13:45:10 +00:00
const channelName = obj2 ( 4789 ) . computeChannelName ( channel , UserStore , RelationshipStore ) ;
2026-09-10 05:38:07 +00:00
const intl = obj2 ( 1114 ) . intl ;
const obj5 = { callState : obj3.getStatus ( connectionState ) . connectionStatusText } ;
obj . title = intl . formatToPlainString ( obj2 ( 1114 ) . t [ "aUT3+M" ] , obj5 ) ;
2026-07-29 08:29:29 +00:00
const _HermesInternal2 = HermesInternal ;
2026-09-10 05:38:07 +00:00
obj . content = "" + channelName + str2 ;
2026-09-12 13:45:10 +00:00
obj . priority = obj2 ( 7860 ) . ServiceNotificationPriority . HIGH ;
2026-09-10 05:38:07 +00:00
obj . contentAction = updateServiceHandlerResult . createAction ( channel , "SelectVoiceChannel" , undefined ) ;
const intl2 = obj2 ( 1114 ) . intl ;
const items = [ updateServiceHandlerResult . createAction ( channel , "Disconnect" , intl2 . string ( obj2 ( 1114 ) . t [ "6vrfgt" ] ) ) , , ] ;
const intl3 = obj2 ( 1114 ) . intl ;
2026-07-29 08:29:29 +00:00
const string = intl3 . string ;
2026-09-10 05:38:07 +00:00
const t = obj2 ( 1114 ) . t ;
2026-07-29 08:29:29 +00:00
if ( selfMute ) {
let stringResult = string ( t . YqAjXy ) ;
} else {
stringResult = string ( t . w4m945 ) ;
}
items [ 1 ] = updateServiceHandlerResult . createAction ( channel , "ToggleSelfMute" , stringResult ) ;
2026-09-10 05:38:07 +00:00
const intl4 = tmp23 ( 1114 ) . intl ;
2026-07-29 08:29:29 +00:00
const string2 = intl4 . string ;
2026-09-10 05:38:07 +00:00
const t2 = tmp23 ( 1114 ) . t ;
2026-07-29 08:29:29 +00:00
if ( deafened ) {
let string2Result = string2 ( t2 [ "2US872" ] ) ;
} else {
string2Result = string2 ( t2 . wjcRFX ) ;
}
items [ 2 ] = updateServiceHandlerResult . createAction ( channel , "ToggleDeafen" , string2Result ) ;
2026-09-10 05:38:07 +00:00
obj . auxiliaryActions = items ;
2026-09-12 13:45:10 +00:00
const ServiceNotificationType = tmp23 ( 7860 ) . ServiceNotificationType ;
2026-09-10 05:38:07 +00:00
obj . type = isStreaming ? ServiceNotificationType.SCREEN_SHARE : ServiceNotificationType.VOICE_CALL ;
obj . icon = tmp7 ;
obj . color = tmp8 ;
2026-09-12 13:45:10 +00:00
tmp16 = tmp16 ( 7858 ) ;
2026-07-29 08:29:29 +00:00
updateServiceHandler = tmp16 . updateServiceHandler ;
updateServiceHandlerResult = updateServiceHandler ( updateServiceHandlerResult . voiceServiceHandlerId , obj ) ;
2026-09-12 13:45:10 +00:00
const obj4 = obj2 ( 4789 ) ;
2026-07-29 08:29:29 +00:00
} else {
2026-09-10 05:38:07 +00:00
obj2 = ForegroundServiceManagerDefault ;
obj2 . removeServiceHandler ( updateServiceHandlerResult . voiceServiceHandlerId ) ;
2026-07-20 16:05:17 +00:00
}
2026-09-10 05:38:07 +00:00
const tmp6 = _slicedToArray ( obj . getIcon ( connectionState ) , 2 ) ;
2026-07-29 08:29:29 +00:00
} else {
obj . state = connectionState ;
}
} ;
2026-09-10 05:38:07 +00:00
obj2 . createAction = function createAction ( channel , Disconnect , intl2 ) {
return { tag : "" + Disconnect + channel . id , taskName : Disconnect , title : intl2 , data : { channelId : channel.id } } ;
2026-07-29 08:29:29 +00:00
} ;
class VoiceNotificationLifecycleManager extends tmp3 {
}
const prototype2 = VoiceNotificationLifecycleManager . prototype ;
prototype2 [ "_initialize" ] = function _initialize() {
2026-09-10 05:38:07 +00:00
obj2 . initialize ( ) ;
2026-07-29 08:29:29 +00:00
} ;
prototype2 [ "_terminate" ] = function _terminate() {
2026-09-10 05:38:07 +00:00
obj2 . terminate ( ) ;
2026-07-29 08:29:29 +00:00
} ;
const voiceNotificationLifecycleManager = new VoiceNotificationLifecycleManager ( ) ;
2026-09-10 05:38:07 +00:00
const size = fn ( 2 ) ;
const result = size . fileFinishedImporting ( "modules/voice_calls/native/VoiceNotificationManager.android.tsx" ) ;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default voiceNotificationLifecycleManager ;