// Module ID: 11001 // Function ID: 11002 // Name: getPrivateChannelCall // Dependencies: [4655, 1074, 4843, 8085, 1114, 9211, 2] // Exports: default // Module 11001 (getPrivateChannelCall) import CallsUtils from "CallsUtils" /* 9211 */; import VoiceStateStore from "VoiceStateStore" /* 4655 */; const require = globalThis.__r; require = fn; const NOOP_NULL = fn(1074).NOOP_NULL; const size = fn(2); const result = size.fileFinishedImporting("modules/calls/native/getPrivateChannelCall.tsx"); export default function getPrivateChannelCall(id) { _require = id; let flag = arg1; if (arg1 === undefined) { flag = false; } let handleStartCall = arg2; if (arg2 === undefined) { handleStartCall = require("PrivateChannelCallUtils").handleStartCall; } let handleJoinCall = arg3; if (arg3 === undefined) { handleJoinCall = require("PrivateChannelCallUtils").handleJoinCall; } const isInChannelResult = handleStartCall.isInChannel(id.id); const obj = require("useIsCallActive"); if (id.isSystemDM()) { const C = handleJoinCall; let tmp9Result = null; } else if (isInChannelResult) { if (!flag) { const string2 = tmp6(tmp7[4]).intl.string; class C { constructor() { obj = closure_0(closure_1[5]); return obj.handleDisconnect(closure_0); } } } class C { constructor() { obj = closure_0(closure_1[5]); return obj.handleDisconnect(closure_0); } } tmp9Result = tmp16; } else if (checkIsCallActiveResult) { if (flag) { class C { constructor() { return handleJoinCall(closure_0, c1); } } } else { const intl3 = tmp6(tmp7[4]).intl; class C { constructor() { return handleJoinCall(closure_0, c1); } } } class C { constructor() { return handleJoinCall(closure_0, c1); } } } else { const intl = tmp6(tmp7[4]).intl; class C { constructor() { return handleStartCall(closure_0, c1); } } if (flag) { tmp9Result = tmp9(tmp10["7AWk50"]); } else { tmp9Result = tmp9(tmp10["EZgS+9"]); } const intl2 = tmp6(tmp7[4]).intl; const string = intl2.string; const t = tmp6(tmp7[4]).t; if (flag) { let stringResult = string(t.oCqlGG); } else { stringResult = string(t.focH1t); } } const obj2 = { text: tmp9Result, accessibilityHint: null, inCall: null, onPress: null }; if (stringResult == null) { stringResult = tmp9Result; } obj2.accessibilityHint = stringResult; obj2.inCall = isInChannelResult; obj2.onPress = C; return obj2; };