Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,34 @@
/* Metro module 15478; source: modules/voice_panel/native/hooks/useCanConnect.tsx; dependencies: [1379, 1867, 3784, 4297, 482, 566, 4800, 2] */
function _fun118466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15675:6, offset: 0x024dc6c3, size: 184 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_6 = (require(482) /* metro dependency 482: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useCanConnect.tsx');
exports.default = function(a0) {
var env0_0 = a0;
return require(dependencyMap[5]).useStateFromStoresObject([ChannelStore, PermissionStore, GuildStore,
VoiceStateStore], _fun118468, [a0]);
};
}
function useCanConnect(a0) { // fn#118467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15675:252, offset: 0x024dc77b, size: 100 bytes, params: 2, frame: 17
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ChannelStore, PermissionStore,
GuildStore, VoiceStateStore], _fun118468, [a0]);
}
function _fun118468() { // fn#118468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15675:329, offset: 0x024dc7df, size: 139 bytes, params: 1, frame: 19
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
const object2 = {};
object2.canConnect = channel != null && (channel.isPrivate() || PermissionStore.can(Permissions.CONNECT, channel));
object2.isAtMaxCapacity = channel == null || (require(4800) /* metro dependency 4800: ChannelUtils */).isChannelFull(channel,
VoiceStateStore, GuildStore);
return object2;
}
@@ -0,0 +1,28 @@
/* Metro module 15454; source: modules/voice_panel/native/hooks/useCanInviteMembers.tsx; dependencies: [1379, 3784, 482, 632, 2] */
function _fun118296(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15651:6, offset: 0x024d588a, size: 152 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_4 = (require(482) /* metro dependency 482: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useCanInviteMembers.tsx');
exports.useCanInviteMembers = function(a0) {
var env0_0 = a0;
return require(dependencyMap[3]).useStateFromStores([ChannelStore, PermissionStore], _fun118298, [a0]);
};
}
function useCanInviteMembers(a0) { // fn#118297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15651:250, offset: 0x024d5922, size: 83 bytes, params: 2, frame: 17
const env0_0 = a0;
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelStore,
PermissionStore], _fun118298, [a0]);
}
function _fun118298() { // fn#118298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15651:323, offset: 0x024d5975, size: 90 bytes, params: 1, frame: 15
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
return channel != null && PermissionStore.can(Permissions.CONNECT,
channel) && PermissionStore.can(Permissions.CREATE_INSTANT_INVITE, channel);
}
@@ -0,0 +1,23 @@
/* Metro module 15482; source: modules/voice_panel/native/hooks/useChatBadge.tsx; dependencies: [4605, 566, 2] */
function _fun118474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15679:6, offset: 0x024dcbf3, size: 114 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useChatBadge.tsx');
exports.default = function(a0) {
var env0_0 = a0;
return require(dependencyMap[1]).useStateFromStores([ReadStateStore], _fun118476);
};
}
function useChatBadge(a0) { // fn#118475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15679:199, offset: 0x024dcc65, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ReadStateStore], _fun118476);
}
function _fun118476() { // fn#118476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15679:263, offset: 0x024dcca7, size: 71 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ReadStateStore.getMentionCount(env0_0) > 0 ? 'mention' : ReadStateStore.hasUnread(env0_0) ? 'unread' : null;
}
@@ -0,0 +1,40 @@
/* Metro module 15517; source: modules/voice_panel/native/hooks/useConsoleConnectingInfo.tsx; dependencies: [4295, 4296, 9325, 632, 15518, 9436, 15519, 15520, 2] */
function _fun118832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15714:6, offset: 0x024f0bc3, size: 134 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useConsoleConnectingInfo.tsx');
exports.default = useConsoleConnectingInfo;
}
function useConsoleConnectingInfo(a0) { // fn#118833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15714:221, offset: 0x024f0c49, size: 372 bytes, params: 2, frame: 23
var object2;
const value2 = undefined;
const value3 = (importDefault(9325) /* metro dependency 9325: useVoiceStateForRemoteSession */)();
const value4 = (value3 == null ? value2 : value3.channelId) === a0;
const awaitingRemoteSessionInfo = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GameConsoleStore],
function() {
return GameConsoleStore.getAwaitingRemoteSessionInfo();
});
const sessionById = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([SessionsStore],
_fun118835);
const r3 = (awaitingRemoteSessionInfo == null ? value2 : awaitingRemoteSessionInfo.type) ?? (sessionById == null ? value2 : sessionById.clientInfo.os) ?? '';
const value6 = (importDefault(15518) /* metro dependency 15518: useShouldDisplayCancelConsoleTransfer */)(awaitingRemoteSessionInfo);
object2 = {};
object2.isConnectingToConsole = (awaitingRemoteSessionInfo == null ? value2 : awaitingRemoteSessionInfo.channelId) === a0;
object2.isConnectingOrConnectedToConsole = (awaitingRemoteSessionInfo == null ? value2 : awaitingRemoteSessionInfo.channelId) === a0 || value4;
object2.icon = (importDefault(9436) /* metro dependency 9436: getConsoleIcon */)(r3);
object2.text = (require(15519) /* metro dependency 15519: getConsoleConnectingText */).getConsoleConnectingText(sessionById,
awaitingRemoteSessionInfo, value4);
object2.color = (importDefault(15520) /* metro dependency 15520: getConsoleColor */)(r3);
object2.displayCancel = value6;
return object2;
}
function _fun118835() { // fn#118835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15714:420, offset: 0x024f0dd0, size: 62 bytes, params: 1, frame: 14
const value = environment.__proto__;
return SessionsStore.getSessionById(env0_0?.sessionId ?? '');
}
@@ -0,0 +1,55 @@
/* Metro module 15547; source: modules/voice_panel/native/hooks/useControlAccessoryHeight.tsx; dependencies: [31, 11794, 1357, 15517, 4017, 15522, 15410, 15521, 2] */
function _fun118978(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15744:6, offset: 0x024f7978, size: 137 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
object = {code: 'function useControlAccessoryHeightTsx1(){const{consoleStatusHeight,floatingCTAHeight}=this.__closure;return consoleStatusHeight.get()+floatingCTAHeight.get();}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useControlAccessoryHeight.tsx');
exports.default = useControlAccessoryHeight;
}
function useControlAccessoryHeight() { // fn#118979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15744:383, offset: 0x024f7a01, size: 349 bytes, params: 1, frame: 24
const binding = env0_3;
const useContext = binding.useContext;
const channelId = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).channelId;
const value2 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('useControlAccessoryHeight');
const isConnectingOrConnectedToConsole = (importDefault(15517) /* metro dependency 15517: useConsoleConnectingInfo */)(channelId).isConnectingOrConnectedToConsole;
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
binding.useEffect(_fun118980, [value3, isConnectingOrConnectedToConsole]);
const value4 = (require(15410) /* metro dependency 15410: VoicePanelFloatingCTAUtils */).useShouldShowFloatingCTA(channelId);
const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const floatingCTATotalViewHeight = (require(15521) /* metro dependency 15521: VoicePanelFloatingCTAContainer */).getFloatingCTATotalViewHeight(value2);
const env0_4 = floatingCTATotalViewHeight;
binding.useEffect(_fun118981, [value5, value4, floatingCTATotalViewHeight]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useDerivedValue = reanimatedRexportModule.useDerivedValue;
const closure = useControlAccessoryHeightC;
closure.__closure = {consoleStatusHeight: value3, floatingCTAHeight: value5};
closure.__workletHash = 7974849446653;
closure.__initData = env0_4;
return Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]);
}
function _fun118980() { // fn#118980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15744:584, offset: 0x024f7b5e, size: 61 bytes, params: 1, frame: 14
const binding = env0_1;
const set = binding.set;
const CONSOLE_STATUS_HEIGHT = isConnectingOrConnectedToConsole ? (require(15522) /* metro dependency 15522: VoicePanelConsoleStatus */).CONSOLE_STATUS_HEIGHT : 0;
Reflect.apply(set, binding, [CONSOLE_STATUS_HEIGHT]);
}
function _fun118981() { // fn#118981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15744:774, offset: 0x024f7b9b, size: 34 bytes, params: 1, frame: 13
const binding = env0_3;
binding.set(env0_2 ? env0_4 : 0);
}
function useControlAccessoryHeightC() { // fn#118982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15744:831, owner: useControlAccessoryHeight.c, offset: 0x024f7bbd, size: 35 bytes, params: 1, frame: 10
let binding = env0_1;
let get = binding.get;
const value2 = Reflect.apply(get, binding, []);
binding = env0_3;
get = binding.get;
return value2 + Reflect.apply(get, binding, []);
}
@@ -0,0 +1,64 @@
/* Metro module 15523; source: modules/voice_panel/native/hooks/useControlsTranslation.tsx; dependencies: [31, 11795, 11798, 11794, 4017, 4577, 2] */
function _fun118864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15720:6, offset: 0x024f2369, size: 181 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(11795) /* metro dependency 11795: VoicePanelConstants */).MODE_CHANGE_PHYSICS;
const env0_5 = (require(11798) /* metro dependency 11798: VoicePanelCardConstants */).CALL_TILE_GUTTER;
object = {code: 'function useControlsTranslationTsx1(){const{withSpring,wrapperSpecs,MODE_CHANGE_PHYSICS,useReducedMotion,CALL_TILE_GUTTER,viewHeight}=this.__closure;return{transform:[{translateX:withSpring(wrapperSpecs.get().x,MODE_CHANGE_PHYSICS)},{translateY:withSpring(!useReducedMotion.get()&&wrapperSpecs.get().hidden?wrapperSpecs.get().height+CALL_TILE_GUTTER+viewHeight.get():wrapperSpecs.get().y,MODE_CHANGE_PHYSICS)}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useControlsTranslation.tsx');
exports.default = useControlsTranslation;
}
function useControlsTranslation(a0, a1, a2) { // fn#118865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15720:691, offset: 0x024f241e, size: 192 bytes, params: 4, frame: 20
const env0_0 = a1;
const env0_1 = a2;
const binding = env0_3;
const useContext = binding.useContext;
const useReducedMotion = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).useReducedMotion;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = useControlsTranslationS;
const object2 = {};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.wrapperSpecs = a1;
object2.MODE_CHANGE_PHYSICS = MODE_CHANGE_PHYSICS;
object2.useReducedMotion = useReducedMotion;
object2.CALL_TILE_GUTTER = CALL_TILE_GUTTER;
object2.viewHeight = a2;
closure.__closure = object2;
closure.__workletHash = 11281989557090;
closure.__initData = env0_6;
return Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
}
function useControlsTranslationS() { // fn#118866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15720:813, owner: useControlsTranslation.S, offset: 0x024f24de, size: 220 bytes, params: 1, frame: 21
var r4;
var value3;
const springModule = require(4577) /* metro dependency 4577: spring */;
let withSpring = springModule.withSpring;
let get = require.get;
const items2 = [{translateX: Reflect.apply(withSpring, springModule, [Reflect.apply(get, require, []).x,
MODE_CHANGE_PHYSICS])}];
const moduleValue2 = springModule;
withSpring = moduleValue2.withSpring;
get = useReducedMotion.get;
if (Reflect.apply(get, useReducedMotion, [])) {
r4 = require.get().y;
} else {
get = require.get;
if (Reflect.apply(get, require, []).hidden) {
get = require.get;
value3 = Reflect.apply(get, require, []).height + CALL_TILE_GUTTER;
get = importDefault.get;
r4 = value3 + Reflect.apply(get, importDefault, []);
} else {
r4 = require.get().y;
}
}
items2[1] = {translateY: Reflect.apply(withSpring, moduleValue2, [r4, MODE_CHANGE_PHYSICS])};
return {transform: items2};
}
@@ -0,0 +1,41 @@
/* Metro module 15413; source: modules/voice_panel/native/hooks/useInviteMembersCallback.tsx; dependencies: [31, 1379, 661, 4007, 9151, 2] */
function _fun117909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15610:6, offset: 0x024c4d59, size: 165 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.AnalyticsPages;
const env0_5 = constantsModule.InstantInviteSources;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useInviteMembersCallback.tsx');
exports.useInviteMembersCallback = useInviteMembersCallback;
}
function useInviteMembersCallback(a0) { // fn#117910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15610:292, offset: 0x024c4dfe, size: 44 bytes, params: 2, frame: 14
const env0_0 = a0;
return env0_2.useCallback(_fun117911, [a0]);
}
function _fun117911() { // fn#117911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15610:351, offset: 0x024c4e2a, size: 144 bytes, params: 1, frame: 18
var r1;
var r0;
var moduleValue2;
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
const value4 = null;
if (value4 != channel) {
if (channel.isPrivate()) {
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
r1 = moduleValue2.navigateToNewGroupDM(channel.id, AnalyticsPages.CHANNEL_CALL);
} else {
r1 = (require(9151) /* metro dependency 9151: InstantInviteUtils */).showInstantInviteActionSheet(channel,
{source: InstantInviteSources.VOICE_CHANNEL});
}
r0 = r1;
} else {
r0 = value4;
}
return r0;
}
@@ -0,0 +1,45 @@
/* Metro module 15390; source: modules/voice_panel/native/hooks/useIsConnectedToVoiceChannel.tsx; dependencies: [1226, 4294, 4297, 661, 566, 2] */
function _fun117666(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15587:6, offset: 0x024bd316, size: 168 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).RTCConnectionStates;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useIsConnectedToVoiceChannel.tsx');
exports.default = function(a0) {
var env0_0 = a0;
return require(dependencyMap[4]).useStateFromStores([RTCConnectionStore, VoiceStateStore, AuthenticationStore],
_fun117668);
};
}
function useIsConnectedToVoiceChannel_117667(a0) { // fn#117667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15587:265, offset: 0x024bd3be, size: 82 bytes, params: 2, frame: 15
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore, VoiceStateStore,
AuthenticationStore], _fun117668);
}
function _fun117668() { // fn#117668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15587:349, offset: 0x024bd410, size: 132 bytes, params: 1, frame: 15
const channelId = RTCConnectionStore.getChannelId();
const r4 = env0_0 ?? channelId;
if (r4 !== channelId) {
return false;
}
const isInChannel = VoiceStateStore.isInChannel;
const getId = AuthenticationStore.getId;
if (!Reflect.apply(isInChannel, VoiceStateStore, [r4, Reflect.apply(getId, AuthenticationStore, [])])) {
var state = RTCConnectionStore.getState();
var DISCONNECTED = RTCConnectionStates.DISCONNECTED;
if (DISCONNECTED === state) {
return false;
}
var NO_ROUTE = RTCConnectionStates.NO_ROUTE;
if (NO_ROUTE === state) {
return false;
}
}
return true;
}
@@ -0,0 +1,48 @@
/* Metro module 15542; source: modules/voice_panel/native/hooks/useSoundboardConfig.tsx; dependencies: [31, 1379, 15390, 3968, 1365, 15415, 6982, 2] */
function _fun118965(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15739:6, offset: 0x024f6ff1, size: 173 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useSoundboardConfig.tsx');
exports.default = useSoundboardConfig;
exports.SoundboardButtonLocation = {VOICE_CONTROLS: 'call control drawer',
VOICE_PANEL_CONTROLS: 'voice panel controls'};
}
function useSoundboardConfig(a0, a1) { // fn#118966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15739:329, offset: 0x024f709e, size: 220 bytes, params: 3, frame: 20
const env0_0 = a0;
const env0_1 = a1;
const value2 = (importDefault(15390) /* metro dependency 15390: useIsConnectedToVoiceChannel */)(a0);
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const SOUNDBOARD_MOBILE_NEW_BADGE = DismissibleContent.SOUNDBOARD_MOBILE_NEW_BADGE;
const value3 = !Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[SOUNDBOARD_MOBILE_NEW_BADGE]);
const object2 = {};
object2.visible = value2 && (a1 === env0_5.VOICE_CONTROLS || a1 === env0_5.VOICE_PANEL_CONTROLS);
const binding = env0_3;
object2.handlePress = binding.useCallback(_fun118967, [a0, a1]);
object2.disabled = binding.useMemo(_fun118968, [a0]);
object2.showIndicator = value3;
return object2;
}
function _fun118967() { // fn#118967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15739:583, offset: 0x024f717a, size: 82 bytes, params: 1, frame: 13
const value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0);
if (channel != null) {
(require(15415) /* metro dependency 15415: SoundboardActionCreators */).showSoundboardSoundPickerActionSheet({channel: channel,
analyticsSource: require});
}
}
function _fun118968() { // fn#118968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15739:724, offset: 0x024f71cc, size: 56 bytes, params: 1, frame: 13
const defaultImport = importDefault(6982) /* metro dependency 6982: canChannelUseSoundboard */;
const getChannel = ChannelStore.getChannel;
return !defaultImport(Reflect.apply(getChannel, ChannelStore, [env0_0]));
}
@@ -0,0 +1,156 @@
/* Metro module 15474; source: modules/voice_panel/native/hooks/useSpeakerTooltips.tsx; dependencies: [57, 31, 15471, 11793, 1376, 33, 15475, 15414, 7713, 11794, 4017, 7013, 15447, 1244, 1365, 15477, 8543, 2] */
function _fun118437(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:6, offset: 0x024db841, size: 277 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 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const consoleVoiceUpsellStoreModule = require(15471) /* metro dependency 15471: ConsoleVoiceUpsellStore */;
const env0_5 = consoleVoiceUpsellStoreModule.setVoiceUpsellDismissed;
const env0_6 = consoleVoiceUpsellStoreModule.useConsoleVoiceUpsellStore;
const env0_7 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes;
const env0_8 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
object = {code: 'function useSpeakerTooltipsTsx1(){const{controlsSpecs}=this.__closure;return controlsSpecs.get().mode;}'};
object = {code: 'function useSpeakerTooltipsTsx2(currentControlsMode,previous){const{runOnJS,setIsShowingControls,VoicePanelControlsModes}=this.__closure;if(currentControlsMode===previous)return;runOnJS(setIsShowingControls)(currentControlsMode===VoicePanelControlsModes.FLOATING_DEFAULT);}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useSpeakerTooltips.tsx');
exports.default = useSpeakerTooltips;
}
function useCoachmarkHelper(a0, a1, a2) { // fn#118438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:668, offset: 0x024db956, size: 126 bytes, params: 4, frame: 17
const env0_0 = a1;
const env0_1 = a2;
env0_4.useEffect(_fun118440, [a2, env0_4.useCallback(function() {
if (require.visible) {
require.onDismiss();
}
}, [a1])]);
(require(8543) /* metro dependency 8543: useCoachmarkNative */).useCoachmark(a0, a1);
}
function useSpeakerTooltips(a0, a1) { // fn#118441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:922, offset: 0x024dba0e, size: 632 bytes, params: 3, frame: 32
var object2;
let value = a1;
const value3 = (importDefault(15475) /* metro dependency 15475: useConsoleConnectedAccountForVoiceUpsell */)();
const voiceUpsellDismissed = useConsoleVoiceUpsellStore().voiceUpsellDismissed;
const value4 = (importDefault(15414) /* metro dependency 15414: useChannelFloatingCTAContent */)(undefined);
const env0_3 = value4;
const value5 = (require(7713) /* metro dependency 7713: VoicePanelUtilsNative */).useIsVoicePanelFullscreen();
let binding = env0_4;
const useContext = binding.useContext;
const controlsSpecs = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).controlsSpecs;
var env0_4 = controlsSpecs;
let [property, property2] = env0_3(env0_4.useState(true), 2);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
const closure = function() {
return controlsSpecs.get().mode;
};
closure.__closure = {controlsSpecs: controlsSpecs};
closure.__workletHash = 13952338295275;
closure.__initData = env0_10;
const closure2 = useSpeakerTooltipsS;
object2 = {};
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.setIsShowingControls = property2;
object2.VoicePanelControlsModes = VoicePanelControlsModes;
closure2.__closure = object2;
closure2.__workletHash = 5084069556209;
closure2.__initData = env0_11;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
const r3 = value && value5 && property;
binding = env0_4;
let useMemo = binding.useMemo;
value = Reflect.apply(useMemo, binding, [_fun118444, [r3, value4]]);
value = (require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(value);
value = env0_3(value, 2);
property = value[0];
const property3 = value[1];
value = (importDefault(15447) /* metro dependency 15447: useControlsLock */)();
const value8 = env0_4.useMemo(_fun118445, [r3, property3, property]);
binding = env0_4;
useMemo = binding.useMemo;
let visible = value8.visible;
const value9 = Reflect.apply(useMemo, binding, [_fun118448, [value3, r3, voiceUpsellDismissed, visible]]);
visible = value8.visible;
visible = !visible ? value9.visible : visible;
env0_4.useEffect(_fun118450, [visible, value]);
useCoachmarkHelper(a0, value8, r3);
useCoachmarkHelper(a0, value9, r3);
}
function _fun118440() { // fn#118440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:774, offset: 0x024db9f6, size: 24 bytes, params: 1, frame: 9
if (!importDefault) {
env0_2();
}
}
function useSpeakerTooltipsS(a0, a1) { // fn#118443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:1267, owner: useSpeakerTooltips.S, offset: 0x024dbc9d, size: 75 bytes, params: 3, frame: 14
var value;
if (a0 !== a1) {
value = environment.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS(env0_5)(a0 === VoicePanelControlsModes.FLOATING_DEFAULT);
}
}
function _fun118444() { // fn#118444, offset: 0x024dbce8, size: 22 bytes, params: 1, frame: 3
return require ? env0_3 : [];
}
function _fun118445() { // fn#118445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:1608, offset: 0x024dbcfe, size: 216 bytes, params: 1, frame: 18
var environment;
const object2 = {position: 'bottom'};
const value = environment.__proto__;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const O2WA4u = t.O2WA4u;
object2.title = Reflect.apply(string, intl, [O2WA4u]);
object2.description = intl.string(t.fr5bJy);
object2.visible = require && env0_6 === (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.DONUT_MOBILE_NUX;
object2.renderImgComponent = renderImgComponent_118446;
object2.withBlurBackground = true;
object2.onDismiss = onDismiss_118447;
return object2;
}
function _fun118448() { // fn#118448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:1902, offset: 0x024dbe1a, size: 217 bytes, params: 1, frame: 17
const value2 = null;
const r2 = value2 != env0_1 ? (require(15477) /* metro dependency 15477: VoicePanelConsoleFacepile */).getConsoleInfo(env0_1) : value2;
const r4 = require && !voiceUpsellDismissed && value2 != r2 && !env0_9.visible;
const value = undefined;
const connectLabel = value2 == r2 ? value : r2.connectLabel;
const value7 = '';
const connectSublabel = value2 == r2 ? value : r2.connectSublabel;
return {position: 'bottom', title: value2 != connectLabel ? connectLabel : value7,
description: value2 != connectSublabel ? connectSublabel : value7, visible: r4,
imgSource: value2 == r2 ? value : r2.icon, withBlurBackground: true, onDismiss: function() {
setVoiceUpsellDismissed(true);
}};
}
function _fun118450() { // fn#118450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:2266, offset: 0x024dbf05, size: 54 bytes, params: 1, frame: 11
var lock;
const visibleBinding = visible;
const binding = env0_8;
if (visibleBinding) {
lock = binding.lock;
value = environment.__proto__;
Reflect.apply(lock, binding, [VoicePanelControlsModes.FLOATING_DEFAULT]);
} else {
binding.unlock();
}
}
function renderImgComponent_118446() { // fn#118446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:1809, offset: 0x024dbdd6, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(15477) /* metro dependency 15477: VoicePanelConsoleFacepile */);
}
function onDismiss_118447() { // fn#118447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15671:1860, offset: 0x024dbdfd, size: 29 bytes, params: 1, frame: 11
const binding = env1_7;
const UNKNOWN = ContentDismissActionType.UNKNOWN;
return binding(UNKNOWN);
}
@@ -0,0 +1,123 @@
/* Metro module 15490; source: modules/voice_panel/native/hooks/useTapGestures.tsx; dependencies: [31, 11794, 5321, 4017, 4081, 2] */
function _fun118618(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:6, offset: 0x024e4e67, size: 185 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
object = {code: "function useTapGesturesTsx1(){const{runOnJS,handleEvent}=this.__closure;return runOnJS(handleEvent)('double');}"};
object = {code: 'function useTapGesturesTsx2(event,manager){const{isFocusedVideoZoomed}=this.__closure;if(isFocusedVideoZoomed.get()){manager.fail();}}'};
object = {code: "function useTapGesturesTsx3(){const{runOnJS,handleEvent}=this.__closure;return runOnJS(handleEvent)('single');}"};
object = {code: "function useTapGesturesTsx4(){const{runOnJS,triggerHapticFeedback,HapticFeedbackTypes,handleEvent}=this.__closure;runOnJS(triggerHapticFeedback)(HapticFeedbackTypes.IMPACT_MEDIUM);runOnJS(handleEvent)('long');}"};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useTapGestures.tsx');
exports.default = useTapGestures;
}
function useTapGestures(a0) { // fn#118619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:815, offset: 0x024e4f20, size: 189 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env0_3;
const useContext = binding.useContext;
const isFocusedVideoZoomed = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).isFocusedVideoZoomed;
const env0_2 = binding.useRef(a0);
const value = a0.onSingleTap != null;
const value2 = a0.onDoubleTap != null;
const value3 = a0.onLongPress != null;
const gesturesEnabled = a0.gesturesEnabled;
binding.useLayoutEffect(_fun118620);
return binding.useMemo(_fun118621, [value, value2, value3, gesturesEnabled, isFocusedVideoZoomed]);
}
function _fun118621() { // fn#118621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:1048, offset: 0x024e4fdd, size: 592 bytes, params: 1, frame: 27
var object2;
const closure = handleEvent;
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
const Exclusive = Gesture.Exclusive;
const Gesture2 = (require(5321) /* metro dependency 5321 */).Gesture;
const value2 = Gesture2.Tap();
const value6 = value2.enabled(gesturesEnabled && result_2).maxDistance(30).numberOfTaps(2);
const onTouchesDown = value6.onTouchesDown;
const closure2 = function(a0, a1) {
if (isFocusedVideoZoomed.get()) {
a1.fail();
}
};
closure2.__closure = {isFocusedVideoZoomed: isFocusedVideoZoomed};
closure2.__workletHash = 3236469126950;
closure2.__initData = env1_5;
const value7 = Reflect.apply(onTouchesDown, value6, [closure2]);
let onStart = value7.onStart;
const closure3 = h_118624;
const runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
closure3.__closure = {runOnJS: runOnJS, handleEvent: closure};
closure3.__workletHash = 13571114432746;
closure3.__initData = env1_4;
const value8 = Reflect.apply(onStart, value7, [closure3]);
const Gesture3 = (require(5321) /* metro dependency 5321 */).Gesture;
const value9 = Gesture3.Tap();
const value11 = value9.enabled(gesturesEnabled && result).maxDistance(30);
onStart = value11.onStart;
const closure4 = c_118625;
closure4.__closure = {runOnJS: runOnJS, handleEvent: closure};
closure4.__workletHash = 14109132753191;
closure4.__initData = env1_6;
const value12 = Reflect.apply(onStart, value11, [closure4]);
const Gesture4 = (require(5321) /* metro dependency 5321 */).Gesture;
const value13 = Gesture4.LongPress();
const value14 = value13.enabled(gesturesEnabled && result_3);
onStart = value14.onStart;
const closure5 = n_118626;
object2 = {};
object2.runOnJS = runOnJS;
object2.triggerHapticFeedback = (require(4081) /* metro dependency 4081: HapticUtilsNative */).triggerHapticFeedback;
const HapticFeedbackTypes = (require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes;
object2.HapticFeedbackTypes = HapticFeedbackTypes;
object2.handleEvent = closure;
closure5.__closure = object2;
closure5.__workletHash = 1947700378974;
closure5.__initData = env1_7;
return Reflect.apply(Exclusive, Gesture, [value8, value12, Reflect.apply(onStart, value14, [closure5])]);
}
function handleEvent(a0) { // fn#118622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:1077, offset: 0x024e522d, size: 167 bytes, params: 2, frame: 10
var value;
if (a0 === 'single') {
value = environment.__proto__;
if (env1_2.current.onSingleTap != null) {
env1_2.current.onSingleTap();
}
} else if (a0 === 'double') {
value = environment.__proto__;
if (env1_2.current.onDoubleTap != null) {
env1_2.current.onDoubleTap();
}
} else if (a0 === 'long') {
value = environment.__proto__;
if (env1_2.current.onLongPress != null) {
env1_2.current.onLongPress();
}
}
}
function h_118624() { // fn#118624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:1550, offset: 0x024e52f8, size: 53 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = Reflect.apply((require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS, value, [handleEvent]);
return value('double');
}
function c_118625() { // fn#118625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:1767, offset: 0x024e532d, size: 53 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = Reflect.apply((require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS, value, [handleEvent]);
return value('single');
}
function n_118626() { // fn#118626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15687:1974, offset: 0x024e5362, size: 116 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
value = Reflect.apply((require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS, value,
[(require(4081) /* metro dependency 4081: HapticUtilsNative */).triggerHapticFeedback]);
const HapticFeedbackTypes = (require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes;
const IMPACT_MEDIUM = HapticFeedbackTypes.IMPACT_MEDIUM;
value(IMPACT_MEDIUM);
value = Reflect.apply((require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS, value, [handleEvent]);
value('long');
}
@@ -0,0 +1,162 @@
/* Metro module 15458; source: modules/voice_panel/native/hooks/useVoicePanelCardUserStateIcons.tsx; dependencies: [31, 4294, 4297, 4299, 33, 11794, 9245, 632, 10268, 4406, 10269, 14703, 15410, 3857, 7684, 697, 1244, 2] */
function _fun118319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:6, offset: 0x024d6838, size: 260 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_6 = (require(4299) /* metro dependency 4299: CallConstants */).ParticipantTypes;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useVoicePanelCardUserStateIcons.tsx');
exports.default = useVoicePanelCardUserStateIcons;
exports.VoicePanelCardUserStateIconType = {STREAM_ICON: 'STREAM_ICON', USER_VIDEO_ICON: 'USER_VIDEO_ICON',
MUTE_DEAFEN_ICON: 'MUTE_DEAFEN_ICON', USER_DISCONNECTED_ICON: 'DISCONNECTED_ICON',
SPEAKER_MUTE_ICON: 'SPEAKER_MUTE_ICON'};
}
function useVoicePanelCardUserStateIcons(a0, a1, a2) { // fn#118320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:495, offset: 0x024d693c, size: 645 bytes, params: 4, frame: 26
const value = a1;
const value2 = a3;
const env0_0 = a0;
const value3 = undefined;
const r7 = value2 !== value3 ? value2 : null;
let env0_3 = value3;
let binding = env0_3;
const useContext = binding.useContext;
const setShowFloatingCTA = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).setShowFloatingCTA;
env0_3 = setShowFloatingCTA;
const voiceStateIconUtilsModule = require(9245) /* metro dependency 9245: VoiceStateIconUtils */;
const useMuteDeafenIconState = voiceStateIconUtilsModule.useMuteDeafenIconState;
let USER = ParticipantTypes.USER;
const value6 = Reflect.apply(useMuteDeafenIconState, voiceStateIconUtilsModule, [a0 !== USER ? value3 : value, a2]);
const moduleValue2 = voiceStateIconUtilsModule;
const useVideoIconState = moduleValue2.useVideoIconState;
USER = ParticipantTypes.USER;
const value7 = Reflect.apply(useVideoIconState, moduleValue2, [a0 !== USER ? value3 : value, a2]);
const value8 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([RTCConnectionStore],
function() {
return RTCConnectionStore.isConnected();
});
const value9 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([VoiceStateStore],
_fun118322, [r7, value]);
let defaultImport = importDefault(10268) /* metro dependency 10268: useMuteAwareLocalVolume */;
let STREAM = ParticipantTypes.STREAM;
let r4 = a0 !== STREAM ? value3 : value;
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
STREAM = MediaEngineContextTypes.STREAM;
const effectiveVolume = defaultImport(r4, STREAM).effectiveVolume;
const defaultImport2 = importDefault(10269) /* metro dependency 10269: MobileAudioOutputExperiment */;
const useConfig = defaultImport2.useConfig;
r4 = Reflect.apply(useConfig, defaultImport2,
[{location: 'useVoicePanelCardUserStateIcons'}]).showTileVolumeIndicator && effectiveVolume === 0 && a0 === ParticipantTypes.STREAM;
const value12 = (require(14703) /* metro dependency 14703: RTCConnectionDesyncHooks */).useIsRTCDisconnectedUIVisible(r7,
value);
binding = env0_3;
return binding.useMemo(_fun118326, [value8, a0, value7, value6, value12, value9, binding.useCallback(function() {
setShowFloatingCTA(require(dependencyMap[12]).OverrideFloatingCTA.BAD_CONNECTION);
}, [setShowFloatingCTA]), value, binding.useCallback(function() {
var defaultImport = importDefault(dependencyMap[13]);
var object = {key: 'user-disconnected-indicator', icon: _fun118325};
object.content = require(dependencyMap[16]).intl.string(require(dependencyMap[16]).t.HFwRpk);
defaultImport.open(object);
}, []), r4]);
}
function _fun118322() { // fn#118322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:794, offset: 0x024d6bc1, size: 60 bytes, params: 1, frame: 14
const value2 = null;
return value2 != env0_2 && value2 != require ? VoiceStateStore.getVoicePlatformForChannel(env0_2, require) : value2;
}
function _fun118324() { // fn#118324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:1201, offset: 0x024d6c30, size: 120 bytes, params: 1, frame: 17
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'user-disconnected-indicator', icon: icon_118325};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const HFwRpk = (require(1244) /* metro dependency 1244: indexNative */).t.HFwRpk;
object2.content = Reflect.apply(string, intl, [HFwRpk]);
Reflect.apply(open, defaultImport, [object2]);
}
function _fun118326() { // fn#118326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:1415, offset: 0x024d6cfc, size: 414 bytes, params: 1, frame: 19
var environment;
var binding;
var value2;
var items2;
const VideoIconState = (require(9245) /* metro dependency 9245: VoiceStateIconUtils */).VideoIconState;
if (env0_6) {
binding = env0_0;
value2 = environment.__proto__;
if (binding === ParticipantTypes.STREAM) {
items2 = [];
if (env0_8) {
items2.push({type: env1_8.SPEAKER_MUTE_ICON, onPress: onPress_118327});
}
items2.push({type: env1_8.STREAM_ICON, voicePlatform: env0_7});
return items2;
}
binding = env0_0;
if (binding !== ParticipantTypes.USER) {
return [];
}
items2 = [];
if (env0_9) {
items2.push({type: env1_8.USER_DISCONNECTED_ICON, onPress: env0_11});
}
if (env0_5 != null && env0_5 !== VideoIconState.VIDEO_ACTIVE) {
items2.push({type: env1_8.USER_VIDEO_ICON, videoIconState: env0_5,
onPress: env0_5 !== VideoIconState.VIDEO_DISABLED_LOCAL_AUTO ? undefined : env0_10});
}
if (env0_4 != null) {
items2.push({type: env1_8.MUTE_DEAFEN_ICON, muteDeafenIconState: env0_4, withLeftMargin: items2.length > 0,
onPress: onPress_118328});
}
return items2;
}
return [];
}
function icon_118325() { // fn#118325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:1260, offset: 0x024d6ca8, size: 84 bytes, params: 1, frame: 16
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
return <CircleErrorIcon size="xs" color={STATUS_WARNING} />;
}
function onPress_118327() { // fn#118327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:1512, offset: 0x024d6e9a, size: 135 bytes, params: 1, frame: 19
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {};
object2.key = '' + require + '-stream-status';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Q8Uzof = (require(1244) /* metro dependency 1244: indexNative */).t.Q8Uzof;
object2.content = Reflect.apply(string, intl, [Q8Uzof]);
Reflect.apply(open, defaultImport, [object2]);
}
function onPress_118328() { // fn#118328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15655:2008, offset: 0x024d6f21, size: 850 bytes, params: 1, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const binding = env1_4;
const MuteDeafenIconState = (require(9245) /* metro dependency 9245: VoiceStateIconUtils */).MuteDeafenIconState;
const DEAFENED_SERVER = MuteDeafenIconState.DEAFENED_SERVER;
if (DEAFENED_SERVER === binding) {
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: '' + require + '-status',
content: intl.string(t.btxSdB)});
} else if (MuteDeafenIconState.DEAFENED === binding) {
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: '' + require + '-status',
content: intl.string(t.NjmiOL)});
} else if (MuteDeafenIconState.MUTED_SERVER === binding) {
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: '' + require + '-status',
content: intl.string(t.uLddbQ)});
} else if (MuteDeafenIconState.MUTED_LOCAL === binding) {
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: '' + require + '-status',
content: intl.string(t.Q8Uzof)});
} else if (MuteDeafenIconState.MUTED === binding) {
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: '' + require + '-status',
content: intl.string(t.tjtv3P)});
}
}
@@ -0,0 +1,37 @@
/* Metro module 15455; source: modules/voice_panel/native/hooks/useVoicePanelNavArrowPressed.tsx; dependencies: [31, 11793, 11794, 2] */
function _fun118299(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15652:6, offset: 0x024d59cf, size: 139 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useVoicePanelNavArrowPressed.tsx');
exports.default = useVoicePanelNavArrowPressed;
}
function useVoicePanelNavArrowPressed() { // fn#118300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15652:249, offset: 0x024d5a5a, size: 122 bytes, params: 1, frame: 17
const binding = env0_2;
const value = binding.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
return binding.useCallback(_fun118301, [value.focused, value.controlsSpecs, value.dismissPanel, value.setFocused]);
}
function _fun118301() { // fn#118301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15652:401, offset: 0x024d5ad4, size: 96 bytes, params: 1, frame: 14
var r0;
var controlsSpecsBinding;
var mode;
var value4;
if (focused.get()?.id == null) {
r0 = dismissPanel();
} else {
controlsSpecsBinding = controlsSpecs;
mode = controlsSpecsBinding.get().mode;
value4 = environment.__proto__;
if (mode !== VoicePanelControlsModes.DRAWER) {
setFocused(null);
r0 = true;
} else {
r0 = dismissPanel();
}
}
return r0;
}
@@ -0,0 +1,558 @@
/* Metro module 15435; source: modules/voice_panel/native/hooks/useVoicePanelParticipants.tsx; dependencies: [57, 31, 4606, 1226, 1379, 4294, 4297, 4300, 11795, 661, 15390, 566, 14703, 11794, 11797, 2] */
function _fun118081(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:6, offset: 0x024cb259, size: 341 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_118084 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const getMemoizedParticipant = function(a0, a1) {
var r0;
var value = a0;
var value2 = '' + value.type + '-' + value.id;
var value3 = a1.get(value2);
if (value3 != null) {
r0 = value3;
} else {
a1.set(value2, value);
r0 = value;
}
return r0;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const sortedVoiceStateStore = importDefault(4300) /* metro dependency 4300: SortedVoiceStateStore */;
const voicePanelConstantsModule = require(11795) /* metro dependency 11795: VoicePanelConstants */;
const env0_11 = voicePanelConstantsModule.VoicePanelCardItemType;
const env0_12 = voicePanelConstantsModule.VoicePanelCTACard;
const env0_13 = (require(661) /* metro dependency 661: Constants */).RTCConnectionStates;
const env0_14 = [];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/hooks/useVoicePanelParticipants.tsx');
exports.default = useVoicePanelCards;
exports.useChunkedParticipants = useChunkedParticipants;
}
function _createForOfIteratorHelperLoose_118082(a0, a1) { // fn#118082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:288, offset: 0x024cb3ae, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun118083;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_118084(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_118084(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_118084(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun118083;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useVoicePanelCards(a0, a1) { // fn#118086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:1425, offset: 0x024cb56e, size: 363 bytes, params: 3, frame: 26
const env0_0 = a0;
const env0_1 = a1;
const id = AuthenticationStore.getId();
const isDM = ChannelStore.getChannel(a0)?.isDM();
const r9 = isDM != null && isDM;
const env0_3 = r9;
const value6 = (importDefault(15390) /* metro dependency 15390: useIsConnectedToVoiceChannel */)(a0);
const binding = value6;
const property = env0_3(binding.useState(function() {
var Map = global.Map;
var value = Object.create(Map.prototype, {constructor: {value: Map}});
var value2 = new Map();
return value2 instanceof Object ? value2 : value;
}), 1)[0];
binding.useEffect(function() {
return _fun118089;
}, [property]);
const value9 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore], function() {
return RTCConnectionStore.getState() === RTCConnectionStates.RTC_CONNECTED;
});
const value10 = (require(14703) /* metro dependency 14703: RTCConnectionDesyncHooks */).useDesyncedChannelParticipants(a0);
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
return {items: Reflect.apply(useStateFromStoresArray, fluxModule, [[ChannelRTCStore, SortedVoiceStateStore],
_fun118091, [value6, value10, a0, a1, property, r9, id, value9]]), isConnected: value6};
}
function useChunkedParticipants(a0, a1) { // fn#118093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:2602, offset: 0x024cb969, size: 263 bytes, params: 3, frame: 25
const env0_0 = a0;
const env0_1 = a1;
const id = AuthenticationStore.getId();
const binding = env0_4;
const useContext = binding.useContext;
const layoutManager = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).layoutManager;
const env0_3 = layoutManager;
const value3 = (require(11797) /* metro dependency 11797: VoicePanelCardLayoutManager */).useManagerSubscription(layoutManager);
const property = env0_3(binding.useState(function() {
var Map = global.Map;
var value = Object.create(Map.prototype, {constructor: {value: Map}});
var value2 = new Map();
return value2 instanceof Object ? value2 : value;
}), 1)[0];
binding.useEffect(function() {
return _fun118096;
}, [property]);
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([VoiceStateStore, ChannelRTCStore],
_fun118097, [a0, property, layoutManager, a1, value3, id]);
}
function _fun118088() { // fn#118088, offset: 0x024cb6d9, size: 11 bytes, params: 1, frame: 1
return _fun118089;
}
function _fun118091() { // fn#118091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:1805, offset: 0x024cb718, size: 536 bytes, params: 1, frame: 25
var r0;
var r6;
var r12;
var r10;
var r11;
var r13;
var r8;
var r4;
var binding;
var length;
var getVoiceParticipantsHidden;
var value3;
var items2;
var filteredParticipants;
var value5;
var property;
var push;
var value6;
var value7;
var value8;
var done;
var value9;
var value10;
var items3;
var value11;
var getMemoizedParticipantBinding;
var PARTICIPANT;
var id;
var memoizedParticipantBinding;
var value13;
var value14;
var CTA;
var CALLER_DISCONNECTED;
var value15;
var NO_VIDEO_PARTICIPANTS;
var value;
if (env0_4) {
getVoiceParticipantsHidden = ChannelRTCStore.getVoiceParticipantsHidden;
binding = env0_0;
value3 = Reflect.apply(getVoiceParticipantsHidden, ChannelRTCStore, [binding]);
items2 = [];
filteredParticipants = ChannelRTCStore.getFilteredParticipants(binding);
length = filteredParticipants.length;
value5 = 0;
if (value5 < length) {
r6 = value5;
reducibleLoop5: while (true) {
property = filteredParticipants[r6];
push = items2.push;
Reflect.apply(push, items2, [property]);
value6 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
length = filteredParticipants.length;
if (value6 < length) {
r6 = value6;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
reducibleJoin10: while (true) {
if (value3) {
break reducibleJoin10;
}
if (env0_7 == null) {
break reducibleJoin10;
}
value7 = _createForOfIteratorHelperLoose_118082(env0_7);
value8 = value7();
done = value8.done;
if (done) {
break reducibleJoin10;
}
r6 = value8;
reducibleLoop9: while (true) {
value9 = r6.value;
push = items2.push;
Reflect.apply(push, items2, [value9]);
value10 = value7();
done = value10.done;
if (done) {
break reducibleJoin10;
}
r6 = value10;
continue reducibleLoop9;
}
}
items3 = [];
reducibleJoin12: while (true) {
if (items2 != null) {
r12 = items2;
break reducibleJoin12;
}
r12 = [];
break reducibleJoin12;
}
length = r12.length;
value11 = undefined;
if (value5 < length) {
r10 = value5;
r11 = value11;
reducibleLoop13: while (true) {
property = r12[r10];
getMemoizedParticipantBinding = getMemoizedParticipant;
PARTICIPANT = VoicePanelCardItemType.PARTICIPANT;
id = property.id;
memoizedParticipantBinding = getMemoizedParticipantBinding({type: PARTICIPANT, id: id}, env0_5);
reducibleJoin16: while (true) {
reducibleJoin15: while (true) {
if (env0_3) {
id = memoizedParticipantBinding.id;
if (id === env0_2) {
r13 = memoizedParticipantBinding;
break reducibleJoin16;
}
break reducibleJoin15;
}
break reducibleJoin15;
}
push = items3.push;
Reflect.apply(push, items3, [memoizedParticipantBinding]);
r13 = r11;
break reducibleJoin16;
}
value13 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
length = r12.length;
if (value13 < length) {
r10 = value13;
r11 = r13;
continue reducibleLoop13;
}
r8 = r13;
break reducibleLoop13;
}
} else {
r8 = value11;
}
reducibleJoin19: while (true) {
if (r8 == null) {
break reducibleJoin19;
}
push = items3.push;
Reflect.apply(push, items3, [r8]);
break reducibleJoin19;
}
binding = env0_3;
reducibleJoin21: while (true) {
if (binding) {
binding = env0_6;
r6 = binding;
break reducibleJoin21;
}
r6 = binding;
break reducibleJoin21;
}
reducibleJoin23: while (true) {
if (r6) {
length = items3.length;
value14 = length === 1;
r6 = value14;
break reducibleJoin23;
}
break reducibleJoin23;
}
reducibleJoin25: while (true) {
if (r6) {
push = items3.push;
getMemoizedParticipantBinding = getMemoizedParticipant;
CTA = VoicePanelCardItemType.CTA;
CALLER_DISCONNECTED = VoicePanelCTACard.CALLER_DISCONNECTED;
Reflect.apply(push, items3, [getMemoizedParticipantBinding({type: CTA, id: CALLER_DISCONNECTED},
env0_5)]);
break reducibleJoin25;
}
break reducibleJoin25;
}
reducibleJoin27: while (true) {
if (value3) {
length = items2.length;
value15 = value5 === length;
r4 = value15;
break reducibleJoin27;
}
r4 = value3;
break reducibleJoin27;
}
reducibleJoin29: while (true) {
if (r4) {
push = items3.push;
getMemoizedParticipantBinding = getMemoizedParticipant;
CTA = VoicePanelCardItemType.CTA;
NO_VIDEO_PARTICIPANTS = VoicePanelCTACard.NO_VIDEO_PARTICIPANTS;
Reflect.apply(push, items3, [getMemoizedParticipantBinding({type: CTA, id: NO_VIDEO_PARTICIPANTS},
env0_5)]);
break reducibleJoin29;
}
break reducibleJoin29;
}
length = items3.length;
reducibleJoin31: while (true) {
if (length > value5) {
r0 = items3;
break reducibleJoin31;
}
binding = env1_14;
r0 = binding;
break reducibleJoin31;
}
} else {
value = SortedVoiceStateStore.getVoiceStatesForChannelAlt(env0_0, require);
value = value.map(_fun118092);
reducibleJoin3: while (true) {
if (value.length > 0) {
r0 = value;
break reducibleJoin3;
}
binding = env1_14;
r0 = binding;
break reducibleJoin3;
}
}
return r0;
}
function _fun118095() { // fn#118095, offset: 0x024cba70, size: 11 bytes, params: 1, frame: 1
return _fun118096;
}
function _fun118097() { // fn#118097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:2859, offset: 0x024cba7b, size: 362 bytes, params: 1, frame: 23
var r8;
var r5;
var r4;
var r0;
var _createForOfIteratorHelperLoose_118082Binding;
var Set;
var items2;
var start;
var end;
var layoutManagerBinding;
var getChunk;
var value3;
var push;
var Array;
var from;
var value4;
var items3;
var value5;
var value6;
var set;
var value8;
var value9;
var done;
var value10;
var getMemoizedParticipantBinding;
var value11;
var voiceParticipantsHidden;
var length;
var value13;
var CTA;
var NO_VIDEO_PARTICIPANTS;
if (env0_4 < 0) {
value = environment.__proto__;
return env1_14;
}
const isInChannel = VoiceStateStore.isInChannel;
let binding = env0_0;
const isInChannel2 = Reflect.apply(isInChannel, VoiceStateStore, [binding, env0_2]);
const items4 = [];
if (isInChannel2) {
_createForOfIteratorHelperLoose_118082Binding = _createForOfIteratorHelperLoose_118082;
Set = global.Set;
items2 = [];
start = require.start;
end = require.end;
if (start <= end) {
r8 = start;
reducibleLoop4: while (true) {
layoutManagerBinding = layoutManager;
getChunk = layoutManagerBinding.getChunk;
value3 = Reflect.apply(getChunk, layoutManagerBinding, [r8]);
push = items2.push;
Array = global.Array;
from = Array.from;
value4 = Reflect.apply(from, Array, [value3]);
items3 = [];
arraySpread(items3, value4, 0, value3);
apply(push, items3, items2, value3);
value5 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
end = require.end;
if (value5 <= end) {
r8 = value5;
continue reducibleLoop4;
}
break reducibleLoop4;
}
}
value6 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
value8 = _createForOfIteratorHelperLoose_118082Binding(set instanceof Object ? set : value6);
value9 = value8();
done = value9.done;
if (!done) {
r5 = value9;
reducibleLoop6: while (true) {
value10 = r5.value;
push = items4.push;
Reflect.apply(push, items4, [getMemoizedParticipant(value10, env0_5)]);
value11 = value8();
done = value11.done;
if (done) {
break reducibleLoop6;
}
r5 = value11;
continue reducibleLoop6;
}
}
voiceParticipantsHidden = ChannelRTCStore.getVoiceParticipantsHidden(env0_0);
reducibleJoin9: while (true) {
if (voiceParticipantsHidden) {
length = items4.length;
value13 = length === 0;
r4 = value13;
break reducibleJoin9;
}
r4 = voiceParticipantsHidden;
break reducibleJoin9;
}
reducibleJoin11: while (true) {
if (r4) {
push = items4.push;
getMemoizedParticipantBinding = getMemoizedParticipant;
CTA = VoicePanelCardItemType.CTA;
NO_VIDEO_PARTICIPANTS = VoicePanelCTACard.NO_VIDEO_PARTICIPANTS;
Reflect.apply(push, items4, [getMemoizedParticipantBinding({type: CTA, id: NO_VIDEO_PARTICIPANTS},
env0_5)]);
break reducibleJoin11;
}
break reducibleJoin11;
}
length = items4.length;
reducibleJoin13: while (true) {
if (length > 0) {
r0 = items4;
break reducibleJoin13;
}
binding = env1_14;
r0 = binding;
break reducibleJoin13;
}
return r0;
}
return items4;
}
function _fun118089() { // fn#118089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:1608, offset: 0x024cb6e4, size: 19 bytes, params: 1, frame: 9
return env1_5.clear();
}
function _fun118092({user}) { // fn#118092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15632:1863, offset: 0x024cb930, size: 57 bytes, params: 2, frame: 13
const getMemoizedParticipantBinding = getMemoizedParticipant;
const PARTICIPANT = VoicePanelCardItemType.PARTICIPANT;
return getMemoizedParticipantBinding({type: PARTICIPANT, id: user.id}, env1_5);
}