/* Metro module 15448; source: modules/voice_panel/native/VoicePanelSystemUIManager.tsx; dependencies: [57, 31, 4606, 11795, 11793, 4299, 33, 11794, 690, 477, 6949, 4017, 7739, 7725, 7727, 2] */ function _fun118240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15645:6, offset: 0x024d2865, size: 301 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */; const env0_6 = (require(11795) /* metro dependency 11795: VoicePanelConstants */).VoicePanelModes; const env0_7 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes; const env0_8 = (require(4299) /* metro dependency 4299: CallConstants */).ParticipantTypes; const value2 = require(33) /* metro dependency 33 */; const env0_9 = value2.jsx; const env0_10 = value2.Fragment; const env0_11 = value2.jsxs; object = {code: 'function VoicePanelSystemUIManagerTsx1(){const{focused,mode,controlsSpecs,windowDimensions}=this.__closure;var _focused$get;return{focusedId:(_focused$get=focused.get())===null||_focused$get===void 0?void 0:_focused$get.id,mode:mode.get(),controlsMode:controlsSpecs.get().mode,landscape:windowDimensions.get().landscape};}'}; object = {code: 'function VoicePanelSystemUIManagerTsx2(props,previous){const{cheapWorkletShallowEqual,runOnJS,handleStateChange}=this.__closure;if(cheapWorkletShallowEqual(props,previous!==null&&previous!==void 0?previous:undefined))return;runOnJS(handleStateChange)(props);}'}; value = value.memo(VoicePanelSystemUIManager); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/VoicePanelSystemUIManager.tsx'); exports.default = value; } function VoicePanelSystemUIManager() { // fn#118241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15645:872, offset: 0x024d2992, size: 597 bytes, params: 1, frame: 28 const binding = env0_4; const value2 = binding.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */); const focused = value2.focused; const channelId = value2.channelId; const mode = value2.mode; const controlsSpecs = value2.controlsSpecs; const env0_3 = controlsSpecs; const windowDimensions = value2.windowDimensions; let useState = binding.useState; const value3 = Reflect.apply(useState, binding, [true]); const binding2 = env0_3; const value4 = binding2(value3, 2); const property = value4[0]; const env0_5 = value4[1]; useState = binding.useState; const value5 = binding2(Reflect.apply(useState, binding, [true]), 2); const property2 = value5[0]; const env0_6 = value5[1]; useState = binding.useState; const value6 = binding2(Reflect.apply(useState, binding, [false]), 2); const property3 = value6[0]; const env0_7 = value6[1]; useState = binding.useState; const value7 = binding2(Reflect.apply(useState, binding, [false]), 2); const property4 = value7[0]; const env0_8 = value7[1]; const {cancelPendingDebounce, handleStateChange} = binding.useMemo(_fun118242, [channelId]); binding.useEffect(function() { return _fun118248; }, [cancelPendingDebounce]); const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction; const closure = function() { var object = {}; object.focusedId = focused.get()?.id; object.mode = mode.get(); object.controlsMode = controlsSpecs.get().mode; object.landscape = windowDimensions.get().landscape; return object; }; closure.__closure = {focused: focused, mode: mode, controlsSpecs: controlsSpecs, windowDimensions: windowDimensions}; closure.__workletHash = 2478376475717; closure.__initData = env0_12; const closure2 = VoicePanelSystemUIManagerU; closure2.__closure = {cheapWorkletShallowEqual: (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual, runOnJS: reanimatedRexportModule.runOnJS, handleStateChange: handleStateChange}; closure2.__workletHash = 3592680244658; closure2.__initData = env0_13; Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]); return ( <> {property2 ? ((Component) =>