Files
2026-07-28 01:06:53 +03:00

88 lines
4.6 KiB
TypeScript

/* Metro module 7708; source: modules/calls/native/getPrivateChannelCall.tsx; dependencies: [4297, 661, 7709, 8214, 1244, 9228, 2] */
import VoiceStateStore from '../../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseIsCallActiveModule from '../mobile/useIsCallActive.tsx'; /* Metro dependency 8214 */
import * as CallsUtilsModule from '../../voice_calls/native/CallsUtils.tsx'; /* Metro dependency 9228 */
function _fun61566(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:6, offset: 0x01b4564d, size: 134 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/calls/native/getPrivateChannelCall.tsx');
exports.default = getPrivateChannelCall;
function getPrivateChannelCall(a0) { // fn#61567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:216, offset: 0x01b456d3, size: 621 bytes, params: 2, frame: 23
var r1;
var r3;
var r4;
var r7;
var r9;
var handleJoinCall;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
let value = a1;
const value2 = a2;
const value3 = a3;
const env0_0 = a0;
const value4 = undefined;
const r8 = value !== value4 ? value : false;
if (value2 !== value4) {
r1 = value2;
} else {
r1 = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).handleStartCall;
}
if (value3 === value4) {
handleJoinCall = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).handleJoinCall;
}
const voiceStateStoreBinding = VoiceStateStore;
const isInChannel2 = voiceStateStoreBinding.isInChannel(a0.id);
if (a0.isSystemDM()) {
value = null;
r1 = NOOP_NULL;
r3 = value;
r4 = value4;
} else if (isInChannel2) {
r7 = r8 ? null : intl.string(t['4ry6yi']);
r1 = getPrivateChannelCallC;
r3 = r7;
r4 = value4;
} else if (UseIsCallActiveModule.checkIsCallActive(a0.id)) {
r9 = r8 ? a0 != null && VoiceStateStore.hasVideo(a0.id) ? intl.string(t.W68MhH) : null : intl.string(t.fdEeb5);
r1 = getPrivateChannelCallC_61569;
r3 = r9;
r4 = value4;
} else {
string = intl.string;
r3 = r8 ? Reflect.apply(string, intl, [t['7AWk50']]) : Reflect.apply(string, intl, [t['EZgS+9']]);
string = intl.string;
r4 = r8 ? Reflect.apply(string, intl, [t.oCqlGG]) : Reflect.apply(string, intl, [t.focH1t]);
r1 = getPrivateChannelCallC_61570;
}
const object = {text: r3};
r3 = r4 ?? r3;
object.accessibilityHint = r3;
object.inCall = isInChannel2;
object.onPress = r1;
return object;
function getPrivateChannelCallC() { // fn#61568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:462, owner: getPrivateChannelCall.C, offset: 0x01b45940, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (CallsUtilsModule).handleDisconnect(env0_0);
}
function getPrivateChannelCallC_61569() { // fn#61569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:611, owner: getPrivateChannelCall.C, offset: 0x01b4596d, size: 25 bytes, params: 1, frame: 13
return (0, ConstantsModule.NOOP_NULL)(env0_0, env0_1);
}
function getPrivateChannelCallC_61570() { // fn#61570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:792, owner: getPrivateChannelCall.C, offset: 0x01b45986, size: 25 bytes, params: 1, frame: 13
return env0_2(env0_0, env0_1);
}
}
}
global.__d(_fun61566, 7708, [4297, 661, 7709, 8214, 1244, 9228,
2]) /* metro module 7708, dependencies: [4297, 661, 7709, 8214, 1244, 9228, 2] */;