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,903 @@
/* Metro module 15511; source: modules/voice_panel/native/prejoin/VoicePanelPreJoinContent.tsx; dependencies: [5, 57, 31, 27, 1378, 4295, 12579, 4492, 1226, 1379, 3784, 4296, 1878, 4297, 4300, 11795, 11798, 661, 12584, 33, 4501, 11799, 697, 11794, 4796, 8913, 4285, 566, 6821, 4573, 1244, 10270, 6777, 3774, 15502, 1478, 4017, 8107, 8106, 10718, 5278, 15500, 4578, 8742, 480, 7684, 9243, 4617, 6238, 11624, 11319, 6771, 6789, 683, 15467, 4577, 4508, 8141, 15390, 15512, 2] */
function _fun118741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:6, offset: 0x024eb26b, size: 1231 bytes, params: 8, frame: 29
var object2;
const env0_0 = require;
const _arrayLikeToArray_118744 = 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 Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
const voiceChannelBlockedUserStore = importDefault(12579) /* metro dependency 12579: VoiceChannelBlockedUserStore */;
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const sortedVoiceStateStore = importDefault(4300) /* metro dependency 4300: SortedVoiceStateStore */;
const env0_17 = (require(11795) /* metro dependency 11795: VoicePanelConstants */).MODE_CHANGE_PHYSICS;
const EDGE_GUTTER = (require(11798) /* metro dependency 11798: VoicePanelCardConstants */).EDGE_GUTTER;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_19 = constantsModule.AnalyticEvents;
const env0_20 = constantsModule.AnalyticsSections;
const env0_21 = constantsModule.Permissions;
const env0_22 = (require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */).VoiceChannelWarningSurfaces;
let value3 = require(33) /* metro dependency 33 */;
const env0_23 = value3.jsx;
const env0_24 = value3.jsxs;
const env0_25 = value3.Fragment;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
const BASE_VOICE_PANEL_HEADER_HEIGHT = (require(11799) /* metro dependency 11799: calculateVoicePanelHeaderSpecs */).BASE_VOICE_PANEL_HEADER_HEIGHT;
object2.contentWrapper = {'paddingTop': null, 'gap': 24, 'paddingBottom': 16,
paddingTop: EDGE_GUTTER + BASE_VOICE_PANEL_HEADER_HEIGHT + EDGE_GUTTER};
object2.channelInfoWrapper = {paddingHorizontal: 16};
object2.subheading = {'textAlign': 'center', 'paddingTop': 16, 'paddingBottom': 16};
const object3 = {'position': 'relative', 'width': '100%', 'aspectRatio': 1.7777777777777777, 'borderRadius': null,
'overflow': 'hidden', 'justifyContent': 'center'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object3.backgroundColor = BLACK;
object2.previewImageWrapper = object3;
const object6 = {};
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
object6['opacity'] = 0.5;
object2.previewImage = object6;
object2.activityInfoWrapper = {paddingHorizontal: 16};
object2.activityInfoHeader = {marginBottom: 8};
const object7 = {};
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
object7['display'] = 'flex';
object7['alignItems'] = 'center';
object7['justifyContent'] = 'center';
object2.joinButtonWrapper = object7;
object2.optInChannelsContainer = {marginHorizontal: 16};
const object9 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.gap = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.padding = PX_8;
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const ICON_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_WARNING;
object9.borderColor = ICON_FEEDBACK_WARNING;
object9.borderWidth = 1;
const BACKGROUND_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_WARNING;
object9.backgroundColor = BACKGROUND_FEEDBACK_WARNING;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.marginHorizontal = PX_16;
object2.blockedMemberWarning = object9;
object2.consolePreJoinPadding = {height: 36};
const env0_26 = Reflect.apply(createStyles, createStylesModule, [object2]);
const env0_27 = value.memo(_fun118766);
object2 = {code: 'function VoicePanelPreJoinContentTsx1(){const{windowDimensions}=this.__closure;return windowDimensions.get().width;}'};
object2 = {code: 'function VoicePanelPreJoinContentTsx2(width,previous){const{runOnJS,setActivityPreviewWidth,EDGE_GUTTER}=this.__closure;if(width===previous)return;runOnJS(setActivityPreviewWidth)(width-(EDGE_GUTTER+16)*2);}'};
const env0_30 = value.memo(_fun118767);
const env0_31 = value.memo(_fun118768);
const env0_32 = value.memo(VoicePanelPreJoinContentInner);
object2 = {code: "function VoicePanelPreJoinContentTsx3(){const{windowDimensions,roundToNearestPixel,controlsSpecs,safeArea,withSpring,transitionState,TransitionStates,interpolate,useReducedMotion,MODE_CHANGE_PHYSICS,runOnJS,transitionCleanUp}=this.__closure;const{height:windowHeight}=windowDimensions.get();return{paddingBottom:windowHeight-roundToNearestPixel(windowHeight*0.8)+controlsSpecs.get().height+safeArea.get().bottom,opacity:withSpring(transitionState===TransitionStates.YEETED?0:1),transform:[{translateY:withSpring(interpolate(!useReducedMotion.get()&&transitionState===TransitionStates.YEETED?1:0,[0,1],[0,400]),MODE_CHANGE_PHYSICS,'respect-motion-settings',function(finished=false){finished&&transitionState===TransitionStates.YEETED&&runOnJS(transitionCleanUp)();})}]};}"};
object2 = {code: 'function VoicePanelPreJoinContentTsx4(finished=false){const{transitionState,TransitionStates,runOnJS,transitionCleanUp}=this.__closure;finished&&transitionState===TransitionStates.YEETED&&runOnJS(transitionCleanUp)();}'};
value = value.memo(VoicePanelPreJoinWrapper);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/prejoin/VoicePanelPreJoinContent.tsx');
exports.default = value;
}
function _createForOfIteratorHelperLoose_118742(a0, a1) { // fn#118742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:475, offset: 0x024eb73a, 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 _fun118743;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_118744(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_118744(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_118744(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun118743;
}
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 StreamPreview({voiceState, stream, channelId}) { // fn#118745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:2450, offset: 0x024eb8ae, size: 504 bytes, params: 2, frame: 30
const styles = useStyles();
const {mode,
setFocused} = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const value3 = env0_5.useCallback(_fun118746, [channelId, stream, setFocused]);
const env0_3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], function() {
var CONNECT = Permissions.CONNECT;
return PermissionStore.can(CONNECT, channel);
});
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const I0mOAs = (require(1244) /* metro dependency 1244: indexNative */).t.I0mOAs;
const text = <Text variant="text-sm/semibold" style={styles.activityInfoHeader} color="text-default">{Reflect.apply(format,
intl, [I0mOAs, {username: voiceState.nick ?? voiceState.user.username}])}</Text>;
const defaultImport2 = NativeView;
const VoicePanelStreamPreview = (require(10270) /* metro dependency 10270: VoicePanelStreamPreview */).VoicePanelStreamPreview;
return (
<NativeView style={styles.activityInfoWrapper}>
{text}
{((Component) => <Component style={styles.previewImageWrapper}><VoicePanelStreamPreview mode={mode} disabled={!value4} stream={stream} onPress={value3} /></Component>)(defaultImport2)}
</NativeView>
);
}
function ActivityInfo({activity, analyticsLocations}) { // fn#118749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:3809, offset: 0x024ebb42, size: 1171 bytes, params: 2, frame: 37
var r0;
var NativeView;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items3;
var PressableOpacity;
var items2;
var NativeView2;
var Button;
var object8;
var Icon;
var value;
const styles = useStyles();
const property = env0_4((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([activity.applicationId]),
1)[0];
const embeddedActivityLocationUtilsModule = require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */;
const getEmbeddedActivityLocationChannelId = embeddedActivityLocationUtilsModule.getEmbeddedActivityLocationChannelId;
const value6 = (importDefault(15502) /* metro dependency 15502: useActivityUsers */)(activity.applicationId,
Reflect.apply(getEmbeddedActivityLocationChannelId, embeddedActivityLocationUtilsModule, [activity.location]));
const {channelId,
windowDimensions} = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
var env0_4 = windowDimensions;
const [property2, property3] = env0_4(env0_5.useState(function() {
return require(dependencyMap[35]).getWindowDimensions().width - 2 * (EDGE_GUTTER + 16);
}), 2);
var env0_5 = property3;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
const closure = function() {
return windowDimensions.get().width;
};
closure.__closure = {windowDimensions: windowDimensions};
closure.__workletHash = 16837592262556;
closure.__initData = env0_28;
const closure2 = ActivityInfoS;
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setActivityPreviewWidth: property3,
EDGE_GUTTER: EDGE_GUTTER};
closure2.__workletHash = 1481130207412;
closure2.__initData = env0_29;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
const value10 = (require(8107) /* metro dependency 8107: getEmbeddedActivityJoinability */).useEmbeddedActivityJoinability({userId: AuthenticationStore.getId(),
channelId: channelId, application: property});
const EmbeddedActivityJoinability = (require(8107) /* metro dependency 8107: getEmbeddedActivityJoinability */).EmbeddedActivityJoinability;
const CAN_JOIN = EmbeddedActivityJoinability.CAN_JOIN;
const value12 = env0_5.useCallback(_fun118753, [activity.launchId, analyticsLocations, property,
value10 === CAN_JOIN, channelId, value10]);
if (property == null) {
r0 = null;
} else {
NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
var defaultImport4Props = {style: styles.activityInfoWrapper};
items3 = [((Text) => <Text variant="text-sm/semibold" style={styles.activityInfoHeader} color="text-default">{intl.format(t['n/IJ6Y'],
{n: value6.length})}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {activeOpacity: 0.7, onPress: value12, style: styles.previewImageWrapper,
accessible: false};
items2 = [((Component) => <Component style={styles.previewImage}>{((Component) => <Component imageBackground={(importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */)({applicationId: activity.applicationId,
size: property2,
names: ['embedded_background']})} aspectRatio={1.7777777777777777} />)(importDefault(15500) /* metro dependency 15500: ActivityShelfItemBackground */)}</Component>)(importDefault(6821) /* metro dependency 6821: NativeView */)];
NativeView2 = importDefault(6821) /* metro dependency 6821: NativeView */;
var defaultImport7Props = {style: styles.joinButtonWrapper};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var buttonProps = {'text': null, 'size': 'sm', 'iconPosition': 'start', 'variant': 'primary-overlay',
text: intl.formatToPlainString(t['YV/hE8'], {name: property.name})};
Icon = (require(4578) /* metro dependency 4578: ButtonNative */).Button.Icon;
value = property.getIconURL(20);
buttonProps.icon = <Icon variant="entity" source={{'uri': null, 'width': 20, 'height': 20,
uri: value ?? undefined}} />;
buttonProps.onPress = value12;
items2[1] = <NativeView2 {...defaultImport7Props}><Button {...buttonProps} /></NativeView2>;
items3[1] = <PressableOpacity {...pressableOpacityProps}>{items2}</PressableOpacity>;
value = <NativeView {...defaultImport4Props}>{items3}</NativeView>;
r0 = value;
}
return r0;
}
function RoomMembersSection({title, members, channelId, guildId}) { // fn#118757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:6643, offset: 0x024ec18f, size: 245 bytes, params: 2, frame: 31
var r6;
var value4;
var user;
var push;
var jsxRuntimeEnv0_23Binding2;
var MemberRowItem;
var object;
var defaultImport;
var value6;
const VoicePanelFormSection = (require(9243) /* metro dependency 9243: FormComponents */).VoicePanelFormSection;
const items2 = [];
const value2 = _createForOfIteratorHelperLoose_118742(members);
const value3 = value2();
let done = value3.done;
if (!done) {
r6 = value3;
while (true) {
value4 = r6.value;
user = UserStore.getUser(value4);
if (user != null) {
push = items2.push;
jsxRuntimeEnv0_23Binding2 = jsxRuntimeEnv0_23;
MemberRowItem = (require(9243) /* metro dependency 9243: FormComponents */).MemberRowItem;
object = {user: user, channelId: channelId, guildId: guildId};
defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
object.nick = defaultImport.getName(guildId, channelId, user);
Reflect.apply(push, items2, [<MemberRowItem {...object} key={value4} />]);
}
value6 = value2();
done = value6.done;
if (done) {
break;
}
r6 = value6;
continue;
}
}
return (
<VoicePanelFormSection title={title} hasIcons>
{items2}
</VoicePanelFormSection>
);
}
function RoomMembers({members, streamingMembers, blockedMembers, ignoredMembers}) { // fn#118758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:7009, offset: 0x024ec284, size: 1033 bytes, params: 2, frame: 40
var r5;
var r9;
var r15;
var r23;
var jsxRuntimeEnv0_23Binding;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
var VoicePanelFormSection;
var object;
var vloEU7;
var items2;
var value16;
var value17;
var done;
var value18;
var has;
var user;
var id;
var value19;
var value20;
var push;
var MemberRowItem;
var object2;
var defaultImport;
var getName;
var value21;
var items3;
const {channelId,
guildId} = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const [property, env0_2] = env0_4(env0_5.useState(20), 2);
const value5 = blockedMembers.size + ignoredMembers.size;
let length = members.length;
const value6 = length - value5;
const jsxRuntimeEnv0_25Binding = jsxRuntimeEnv0_25;
const items4 = [value5 > 0 && ((Component) => <Component channelId={channelId} blockedUserIds={blockedMembers} ignoredUserIds={ignoredMembers} />)(env0_30)];
items4[1] = streamingMembers.map(_fun118759);
items4[2] = blockedMembers.size > 0 && <RoomMembersSection title={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.pGJ1Qy,
{n: blockedMembers.size})} members={blockedMembers} channelId={channelId} guildId={guildId} />;
items4[3] = ignoredMembers.size > 0 && <RoomMembersSection title={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['/pXOCN'],
{n: ignoredMembers.size})} members={ignoredMembers} channelId={channelId} guildId={guildId} />;
const value13 = value6 > 0;
if (value13) {
VoicePanelFormSection = (require(9243) /* metro dependency 9243: FormComponents */).VoicePanelFormSection;
object = {hasIcons: true};
if (value5 === 0) {
formatToPlainString = intl.formatToPlainString;
vloEU7 = (require(1244) /* metro dependency 1244: indexNative */).t.vloEU7;
length = members.length;
r9 = Reflect.apply(formatToPlainString, intl, [vloEU7, {n: length}]);
} else {
r9 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.R0h4pE,
{n: value6});
}
object.title = r9;
items2 = [];
value16 = _createForOfIteratorHelperLoose_118742(members);
value17 = value16();
done = value17.done;
if (!done) {
r15 = value17;
while (true) {
value18 = r15.value;
length = items2.length;
if (length >= property) {
break;
}
has = blockedMembers.has;
user = value18.user;
id = user.id;
value19 = Reflect.apply(has, blockedMembers, [id]);
if (value19) {
r23 = value19;
continue;
}
has = ignoredMembers.has;
user = value18.user;
id = user.id;
value20 = Reflect.apply(has, ignoredMembers, [id]);
r23 = value20;
if (r23) {
continue;
}
push = items2.push;
jsxRuntimeEnv0_23Binding = jsxRuntimeEnv0_23;
MemberRowItem = (require(9243) /* metro dependency 9243: FormComponents */).MemberRowItem;
object2 = {};
user = value18.user;
object2.user = user;
object2.channelId = channelId;
object2.guildId = guildId;
defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
getName = defaultImport.getName;
user = value18.user;
object2.nick = Reflect.apply(getName, defaultImport, [guildId, channelId, user]);
user = value18.user;
id = user.id;
Reflect.apply(push, items2, [<MemberRowItem {...object2} key={id} />]);
value21 = value16();
done = value21.done;
if (done) {
break;
}
r15 = value21;
continue;
}
}
items3 = [items2];
items3[1] = value6 > property && ((TableRow) => <TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.F4MCUO)} onPress={onPress_118760} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow);
r5 = <VoicePanelFormSection {...object}>{items3}</VoicePanelFormSection>;
} else {
r5 = value13;
}
items4[4] = r5;
return (
<>
{items4}
</>
);
}
function PreJoinTransitioner(a0) { // fn#118761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:10467, offset: 0x024ec718, size: 503 bytes, params: 2, frame: 30
const transitionState = a0.transitionState;
const transitionCleanUp = a0.transitionCleanUp;
const value = Object.create(null);
value.transitionState = 0;
value.transitionCleanUp = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const value4 = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const windowDimensions = value4.windowDimensions;
const controlsSpecs = value4.controlsSpecs;
const safeArea = value4.safeArea;
const preJoinContentSize = value4.preJoinContentSize;
var env0_5 = preJoinContentSize;
const useReducedMotion = value4.useReducedMotion;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = PreJoinTransitionerO;
const object2 = {windowDimensions: windowDimensions,
roundToNearestPixel: importDefault(11624) /* metro dependency 11624: roundToNearestPixel */,
controlsSpecs: controlsSpecs, safeArea: safeArea};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.transitionState = transitionState;
const TransitionStates = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates;
object2.TransitionStates = TransitionStates;
object2.interpolate = reanimatedRexportModule.interpolate;
object2.useReducedMotion = useReducedMotion;
object2.MODE_CHANGE_PHYSICS = MODE_CHANGE_PHYSICS;
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.transitionCleanUp = transitionCleanUp;
closure.__closure = object2;
closure.__workletHash = 16643118377748;
closure.__initData = env0_33;
return ((Component) => <Component style={Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
[closure])} collapsable={false}>{((Component) => <Component onLayout={env0_5.useCallback(function(a0) {
preJoinContentSize.set(importDefault(dependencyMap[49])(a0.nativeEvent.layout.height));
},
[preJoinContentSize])} collapsable={false} style={styles.contentWrapper}>{((Component) => <Component {...value2} />)(env0_32)}</Component>)(importDefault(6821) /* metro dependency 6821: NativeView */)}</Component>)(importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */);
}
function renderItem_118765(a0, a1, a2, a3) { // fn#118765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:11909, offset: 0x024ecb90, size: 53 bytes, params: 5, frame: 15
return (
<PreJoinTransitioner
transitionState={a2}
transitionCleanUp={a3}
{...a1}
key={a0}
/>
);
}
function _fun118766({hasMembers}) { // fn#118766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:3224, offset: 0x024ecbc5, size: 186 bytes, params: 2, frame: 22
var r0;
var NativeView;
var Text;
var intl;
const styles = useStyles();
if (hasMembers) {
r0 = null;
} else {
NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
var defaultImportProps = {style: styles.channelInfoWrapper};
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'variant': 'text-sm/medium', 'color': 'text-default', style: styles.subheading};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <NativeView {...defaultImportProps}><Text {...textProps}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sS2J0G)}</Text></NativeView>;
}
return r0;
}
function _fun118767({channelId, blockedUserIds, ignoredUserIds}) { // fn#118767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:5866, offset: 0x024ecc7f, size: 641 bytes, params: 2, frame: 24
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const styles = useStyles();
const defaultImport = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
const object3 = {};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const VOICE_CHANNEL_BLOCKED_USER_WARNING = ImpressionNames.VOICE_CHANNEL_BLOCKED_USER_WARNING;
object3.name = VOICE_CHANNEL_BLOCKED_USER_WARNING;
const object4 = {channel_id: channelId};
const Array = global.Array;
object4.blocked_user_ids = Array.from(blockedUserIds);
const PRE_JOIN_SHEET = VoiceChannelWarningSurfaces.PRE_JOIN_SHEET;
object4.warning_surface = PRE_JOIN_SHEET;
object3.properties = object4;
defaultImport(object3);
const size = ignoredUserIds.size;
const size2 = blockedUserIds.size;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const CjrALd = (require(1244) /* metro dependency 1244: indexNative */).t.CjrALd;
const value2 = Reflect.apply(string, intl, [CjrALd]);
const r9 = size2 > 0 && size > 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.MpRfpC) : size > 0 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.u9trAZ,
{n: size}) : intl.format((require(1244) /* metro dependency 1244: indexNative */).t['6X29zb'], {n: size2});
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
const circleErrorIcon = <CircleErrorIcon color="text-feedback-warning" />;
const items2 = [r9, ' '];
items2[2] = value2 != null ? <Text variant="heading-sm/semibold">{value2}</Text> : null;
return (
<NativeView style={styles.blockedMemberWarning}>
{circleErrorIcon}
<Text
variant="text-sm/bold"
color="interactive-text-active"
style={{flexShrink: 1}}
>
{items2}
</Text>
</NativeView>
);
}
function _fun118768({channelId}) { // fn#118768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:8253, offset: 0x024ecf00, size: 159 bytes, params: 2, frame: 19
var r0;
var value;
const styles = useStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
const items = [AuthenticationStore];
items[1] = GameConsoleStore;
items[2] = VoiceStateStore;
items[3] = SessionsStore;
if (Reflect.apply(useStateFromStores, fluxModule, [items, _fun118769, [channelId]])) {
value = importDefault(6821) /* metro dependency 6821: NativeView */;
value = ((Component) => <Component style={styles.consolePreJoinPadding} />)(value);
r0 = value;
} else {
r0 = null;
}
return r0;
}
function VoicePanelPreJoinContentInner({members, streamingMembers, blockedMembers, ignoredMembers, activities}) { // fn#118770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:8682, offset: 0x024ed054, size: 500 bytes, params: 2, frame: 30
const styles = useStyles();
const {channelId,
guildId} = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const value3 = (importDefault(11319) /* metro dependency 11319: useShowChannelOptInNotice */)(channel);
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const VOICE_PANEL_PRE_JOIN = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).VOICE_PANEL_PRE_JOIN;
env0_5.useEffect(function() {
var defaultImport = importDefault(dependencyMap[53]);
var VIEW_VOICE_CHANNEL = AnalyticEvents.VIEW_VOICE_CHANNEL;
defaultImport.track(VIEW_VOICE_CHANNEL, {guild_id: guildId, channel_id: channelId,
location_stack: analyticsLocations});
}, [channelId, guildId, defaultImport(VOICE_PANEL_PRE_JOIN).analyticsLocations]);
const jsxRuntimeEnv0_25Binding = jsxRuntimeEnv0_25;
const items2 = [((Component) => <Component hasMembers={members.length > 0} />)(env0_27)];
items2[1] = value3 ? ((Component) => <Component style={styles.optInChannelsContainer} channel={channel} analyticsSection={AnalyticsSections.CHANNEL} />)(importDefault(15467) /* metro dependency 15467: VoicePanelChannelOptInNotice */) : null;
items2[2] = activities.map(_fun118773);
let r6 = members.length > 0 || blockedMembers.size > 0;
r6 = (!r6 ? ignoredMembers.size > 0 : r6) && <RoomMembers members={members} streamingMembers={streamingMembers} blockedMembers={blockedMembers} ignoredMembers={ignoredMembers} />;
items2[3] = r6;
items2[4] = ((Component) => <Component channelId={channelId} />)(env0_31);
return (
<>
{items2}
</>
);
}
function VoicePanelPreJoinWrapper() { // fn#118774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:12029, offset: 0x024ed2c8, size: 237 bytes, params: 1, frame: 23
const {channelId,
guildId} = env0_5.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SortedVoiceStateStore,
VoiceChannelBlockedUserStore, EmbeddedActivitiesStore, ApplicationStreamingStore], _fun118775,
[(importDefault(15390) /* metro dependency 15390: useIsConnectedToVoiceChannel */)(channelId), channelId,
guildId],
(require(15512) /* metro dependency 15512: VoicePanelPreJoinUtils */).areVoicePanelPreJoinContentPropsEqual);
const TransitionItem = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionItem;
return <TransitionItem item={value4} renderItem={renderItem_118765} />;
}
function _fun118746() { // fn#118746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:2588, offset: 0x024ebaa6, size: 118 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
defaultImport.selectVoiceChannel(channelId);
value = require(8913) /* metro dependency 8913: StreamActionCreators */;
const watchStream = value.watchStream;
const streamBinding = stream;
Reflect.apply(watchStream, value, [streamBinding, {forceMultiple: true}]);
const setFocusedBinding = setFocused;
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
setFocusedBinding(value.encodeStreamKey(streamBinding));
}
function ActivityInfoS(a0, a1) { // fn#118752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:4301, owner: ActivityInfo.s, offset: 0x024ec02c, size: 83 bytes, params: 3, frame: 14
var value;
if (a0 !== a1) {
value = environment.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS(env0_5)(a0 - 2 * (EDGE_GUTTER + 16));
}
}
function _fun118753() { // fn#118753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:4647, offset: 0x024ec07f, size: 80 bytes, params: 1, frame: 14
const defaultImport = importDefault(8106) /* metro dependency 8106: handlePressJoinActivity */;
const object2 = {};
object2.embeddedActivityJoinability = env0_6;
const env0_0 = env1_3(_fun118755);
object2.handleCanJoin = handleCanJoin_118756;
defaultImport(object2);
}
function _fun118759(a0) { // fn#118759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:7307, offset: 0x024ec68d, size: 112 bytes, params: 2, frame: 18
var r0;
var r1;
var r2;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r5 = value2 ? value : item;
if (value2) {
r0 = value;
r1 = item2;
r2 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = value;
r1 = item3;
r2 = value3;
} else {
r0 = item;
r1 = item3;
r2 = value3;
}
}
if (!r2) {
r1.return();
}
return (
<StreamPreview
channelId={channelId}
voiceState={r5}
stream={r0}
key={r0.ownerId}
/>
);
}
function RoomMembersOnPress() { // fn#118760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:8219, owner: RoomMembers.onPress, offset: 0x024ec6fd, size: 27 bytes, params: 1, frame: 11
return env0_2(env0_1 + 20);
}
function PreJoinTransitionerO() { // fn#118762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:10708, owner: PreJoinTransitioner.o, offset: 0x024ec90f, size: 463 bytes, params: 1, frame: 26
const windowDimensionsBinding = windowDimensions;
let get = windowDimensionsBinding.get;
const height = Reflect.apply(get, windowDimensionsBinding, []).height;
const object2 = {};
const value3 = height - (importDefault(11624) /* metro dependency 11624: roundToNearestPixel */)(0.8 * height);
const controlsSpecsBinding = controlsSpecs;
get = controlsSpecsBinding.get;
const value4 = value3 + Reflect.apply(get, controlsSpecsBinding, []).height;
const safeAreaBinding = safeArea;
get = safeAreaBinding.get;
object2.paddingBottom = value4 + Reflect.apply(get, safeAreaBinding, []).bottom;
const springModule = require(4577) /* metro dependency 4577: spring */;
let withSpring = springModule.withSpring;
const transitionStateBinding = transitionState;
const TransitionStates = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates;
const YEETED = TransitionStates.YEETED;
const value5 = 1;
object2.opacity = Reflect.apply(withSpring, springModule, [transitionStateBinding !== YEETED ? value5 : 0]);
const moduleValue2 = springModule;
withSpring = moduleValue2.withSpring;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = reanimatedRexportModule.interpolate;
get = useReducedMotion.get;
const value8 = Reflect.apply(interpolate, reanimatedRexportModule, [Reflect.apply(get, useReducedMotion,
[]) ? 0 : transitionState === TransitionStates.YEETED ? value5 : 0, [0, 1], [0, 400]]);
const closure = oN;
const object4 = {};
object4.transitionState = transitionState;
object4.TransitionStates = TransitionStates;
object4.runOnJS = reanimatedRexportModule.runOnJS;
object4.transitionCleanUp = transitionCleanUp;
closure.__closure = object4;
closure.__workletHash = 2541522666097;
closure.__initData = env1_34;
object2.transform = [{translateY: Reflect.apply(withSpring, moduleValue2, [value8, MODE_CHANGE_PHYSICS,
'respect-motion-settings', closure])}];
return object2;
}
function _fun118769() { // fn#118769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:8334, offset: 0x024ecf9f, size: 181 bytes, params: 1, frame: 17
var sessionId;
var r1;
var r0;
var value8;
var getSessionById;
let value = environment.__proto__;
const id = AuthenticationStore.getId();
const getVoiceStateForSession = VoiceStateStore.getVoiceStateForSession;
const getRemoteSessionId = GameConsoleStore.getRemoteSessionId;
const value3 = Reflect.apply(getVoiceStateForSession, VoiceStateStore, [id, Reflect.apply(getRemoteSessionId,
GameConsoleStore, [])]);
const value4 = undefined;
let r2 = value3 ?? value4;
const awaitingRemoteSessionInfo = GameConsoleStore.getAwaitingRemoteSessionInfo();
const value7 = (awaitingRemoteSessionInfo == null ? value4 : awaitingRemoteSessionInfo.channelId) === channelId;
if (value7) {
r0 = value7;
} else {
value8 = (r2 == null ? value4 : r2.channelId) === channelId;
if (value8) {
getSessionById = SessionsStore.getSessionById;
sessionId = r2 == null ? value4 : r2.sessionId;
value = '';
r2 = sessionId ?? value;
value = Reflect.apply(getSessionById, SessionsStore, [r2]) != null;
r1 = value;
} else {
r1 = value8;
}
r0 = r1;
}
return r0;
}
function _fun118773(a0) { // fn#118773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:9250, offset: 0x024ed296, size: 50 bytes, params: 2, frame: 15
return (
<ActivityInfo
activity={a0}
analyticsLocations={analyticsLocations}
key={a0.launchId}
/>
);
}
function _fun118775() { // fn#118775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:12176, offset: 0x024ed3b5, size: 262 bytes, params: 1, frame: 26
var r7;
var value10;
var voiceState;
var selfStream;
var getStreamForUser;
var user;
var id;
var value11;
var value12;
if (env0_2) {
return undefined;
}
const voiceStatesForChannelAlt = SortedVoiceStateStore.getVoiceStatesForChannelAlt(channelId, guildId ?? undefined);
const getBlockedUsersForVoiceChannel = VoiceChannelBlockedUserStore.getBlockedUsersForVoiceChannel;
channelIdBinding = channelId;
const value5 = Reflect.apply(getBlockedUsersForVoiceChannel, VoiceChannelBlockedUserStore, [channelIdBinding]);
const ignoredUsersForVoiceChannel = VoiceChannelBlockedUserStore.getIgnoredUsersForVoiceChannel(channelIdBinding);
const embeddedActivitiesForChannel = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(channelIdBinding);
const items2 = [];
const value8 = _createForOfIteratorHelperLoose_118742(voiceStatesForChannelAlt);
const value9 = value8();
let done = value9.done;
if (!done) {
r7 = value9;
while (true) {
value10 = r7.value;
voiceState = value10.voiceState;
selfStream = voiceState.selfStream;
if (selfStream) {
getStreamForUser = ApplicationStreamingStore.getStreamForUser;
user = value10.user;
id = user.id;
value11 = Reflect.apply(getStreamForUser, ApplicationStreamingStore, [id, guildId]);
if (value11 == null) {
break;
}
items2.push([value10, value11]);
break;
}
value12 = value8();
done = value12.done;
if (done) {
break;
}
r7 = value12;
continue;
}
}
return {members: voiceStatesForChannelAlt, activities: embeddedActivitiesForChannel, streamingMembers: items2,
blockedMembers: value5, ignoredMembers: ignoredUsersForVoiceChannel};
}
function* _fun118755() { // fn#118755, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:4718, offset: 0x024ec0da, size: 181 bytes, params: 1, frame: 15
var value5;
var value6;
if (true) {
value = environment.__proto__.__proto__;
if (GameConsoleStore) {
if (dependencyMap == null) {
return undefined;
}
value5 = environment.__proto__.__proto__.__proto__;
value6 = env3_0(env3_2[38]);
yield value6.maybeJoinEmbeddedActivity({channelId: env2_3, applicationId: dependencyMap.id,
launchId: require.launchId, inputApplication: dependencyMap, analyticsLocations: importDefault});
if (false) {
return undefined;
}
} else {
env3_1(env3_2[24]).selectVoiceChannel(env2_3);
}
}
}
function oN() { // fn#118763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15708:11045, owner: PreJoinTransitioner.o.n, offset: 0x024ecade, size: 109 bytes, params: 1, frame: 14
var transitionStateBinding;
var runOnJS;
var value2;
let value = a0;
let r1 = value !== undefined ? value : false;
if (r1) {
value = environment.__proto__;
transitionStateBinding = transitionState;
value = environment.__proto__.__proto__;
value = transitionStateBinding === (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionStates.YEETED;
r1 = value;
}
if (r1) {
value = environment.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = value.runOnJS;
value2 = environment.__proto__;
Reflect.apply(runOnJS, value, [transitionCleanUp])();
}
}
@@ -0,0 +1,172 @@
/* Metro module 15512; source: modules/voice_panel/native/prejoin/VoicePanelPreJoinUtils.tsx; dependencies: [628, 2] */
function _fun118776(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15709:6, offset: 0x024ed4bb, size: 121 bytes, params: 8, frame: 17
const _arrayLikeToArray_118779 = 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 Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/prejoin/VoicePanelPreJoinUtils.tsx');
exports.areVoicePanelPreJoinContentPropsEqual = areVoicePanelPreJoinContentPropsEqual;
}
function _createForOfIteratorHelperLoose_118777(a0, a1) { // fn#118777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15709:46, offset: 0x024ed534, 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 _fun118778;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_118779(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_118779(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_118779(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun118778;
}
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 areVoicePanelPreJoinContentPropsEqual(a0, a1) { // fn#118780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15709:1143, offset: 0x024ed6a8, size: 186 bytes, params: 3, frame: 23
var r3;
var r4;
var _createForOfIteratorHelperLoose_118777Binding;
var streamingMembers;
var value3;
var done;
var value4;
var property;
var property2;
var property3;
var value5;
var value6;
if (a0 == null) {
return a0 === a1;
}
if (a1 == null) {
return a0 === a1;
}
var value;
const value2 = 0;
if (importDefault(dependencyMap[value2])(a0, a1, ['streamingMembers'])) {
_createForOfIteratorHelperLoose_118777Binding = _createForOfIteratorHelperLoose_118777;
streamingMembers = a0.streamingMembers;
value = _createForOfIteratorHelperLoose_118777Binding(streamingMembers);
value3 = value();
done = value3.done;
if (done) {
return true;
}
r3 = value2;
r4 = value3;
loopExit5: while (true) {
value4 = r4.value;
streamingMembers = a1.streamingMembers;
property = streamingMembers[r3];
if (property == null) {
return false;
}
property2 = value4[value2];
if (property2 !== property[value2]) {
break loopExit5;
}
property3 = value4[1];
if (property3 !== property[1]) {
break loopExit5;
}
value5 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
value6 = value();
done = value6.done;
if (done) {
return true;
}
r3 = value5;
r4 = value6;
continue;
}
}
return false;
}