This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,104 +1,109 @@
/* Metro module 8468; source: modules/voice_panel/native/card/DominantColorUtils.tsx; dependencies: [57, 31, 27, 1393, 4000, 697, 628, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun67250(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:6, offset: 0x01c1b512, size: 296 bytes, params: 8, frame: 23
const env0_0 = require;
const closure = getCachedSourceFromURI;
const closure2 = useDominantRGBFromImage_67252;
const getCachedSourceFromURI2 = getCachedSourceFromURI;
const useDominantRGBFromImage_672522 = useDominantRGBFromImage_67252;
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 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.NativeModules;
const env0_6 = value.Image;
value = importDefault(1393) /* metro dependency 1393 */;
value = new value({max: 1000});
value = importDefault(1393) /* metro dependency 1393 */;
value = new value({max: 1000});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/DominantColorUtils.tsx');
exports.getCachedSourceFromURI = closure;
exports.useDominantRGBFromImage = closure2;
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/DominantColorUtils.tsx');
exports.getCachedSourceFromURI = getCachedSourceFromURI2;
exports.useDominantRGBFromImage = useDominantRGBFromImage_672522;
exports.useDominantColorFromImage = useDominantColorFromImage_67259;
}
function getCachedSourceFromURI(a0) { // fn#67251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:209, offset: 0x01c1b63a, size: 101 bytes, params: 2, frame: 17
const value = a0;
const value3 = env0_8.get(value);
const value4 = null;
const r0 = value4 != value3 ? value3 : typeof value === 'number' ? value : value4 == value || value.trim() === '' ? value4 : {uri: value};
env0_8.set(value, r0);
return r0;
}
function useDominantRGBFromImage_67252(a0) { // fn#67252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:387, offset: 0x01c1b69f, size: 223 bytes, params: 2, frame: 21
var moduleValue;
const env0_0 = a0;
let binding = env0_4;
const env0_1 = binding.useRef(true);
env0_4.useEffect(function() {
return _fun67254;
}, []);
binding = env0_4;
const useState = binding.useState;
let r0 = a0 != null ? env0_7.get(a0) : undefined;
if (r0 == null) {
moduleValue = require(4000) /* metro dependency 4000: ColorUtils */;
r0 = moduleValue.hexToRgb((importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_800);
function getCachedSourceFromURI(a0) { // fn#67251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:209, offset: 0x01c1b63a, size: 101 bytes, params: 2, frame: 17
const value = a0;
const value3 = env0_8.get(value);
const value4 = null;
const r0 = value4 != value3 ? value3 : typeof value === 'number' ? value : value4 == value || value.trim() === '' ? value4 : {uri: value};
env0_8.set(value, r0);
return r0;
}
const value6 = env0_3(Reflect.apply(useState, binding, [r0]), 2);
const property = value6[0];
const env0_2 = value6[1];
env0_4.useEffect(_fun67255, [a0]);
return property;
}
function useDominantColorFromImage_67259(a0) { // fn#67259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:1244, offset: 0x01c1b926, size: 76 bytes, params: 2, frame: 20
const value = useDominantRGBFromImage_67252(a0);
return 'rgb(' + value.r + ', ' + value.g + ', ' + value.b + ')';
}
function _fun67253() { // fn#67253, offset: 0x01c1b77e, size: 11 bytes, params: 1, frame: 1
return _fun67254;
}
function _fun67255() { // fn#67255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:638, offset: 0x01c1b79c, size: 225 bytes, params: 1, frame: 16
var environment;
var value5;
var value;
const value2 = undefined;
const r2 = env0_0 != null ? env1_7.get(env0_0) : value2;
var env0_0 = r2;
if (env0_0 != null) {
if (r2 == null) {
value5 = environment.__proto__;
value = getCachedSourceFromURI(env0_0);
if (value != null) {
value = (typeof value === 'number' ? NativeModules.ImageManager.getDominantColorsLocalAsset(Image.resolveAssetSource(value)) : NativeModules.ImageManager.getDominantColors(Image.resolveAssetSource(value))).then(_fun67256);
value.catch(function() {
});
}
} else {
env0_2(_fun67258);
function useDominantRGBFromImage_67252(a0) { // fn#67252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:387, offset: 0x01c1b69f, size: 223 bytes, params: 2, frame: 21
var moduleValue;
const env0_0 = a0;
let binding = ReactModule;
const env0_1 = binding.useRef(true);
ReactModule.useEffect(function() {
return _fun67254;
}, []);
binding = ReactModule;
const useState = binding.useState;
let r0 = a0 != null ? env0_7.get(a0) : undefined;
if (r0 == null) {
moduleValue = require(4000) /* metro dependency 4000: ColorUtils */;
r0 = moduleValue.hexToRgb((importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_800);
}
const value6 = Module00057(Reflect.apply(useState, binding, [r0]), 2);
const property = value6[0];
const env0_2 = value6[1];
ReactModule.useEffect(_fun67255, [a0]);
return property;
function _fun67253() { // fn#67253, offset: 0x01c1b77e, size: 11 bytes, params: 1, frame: 1
return _fun67254;
function _fun67254() { // fn#67254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:461, offset: 0x01c1b789, size: 19 bytes, params: 1, frame: 2
env1_1.current = false;
}
}
function _fun67255() { // fn#67255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:638, offset: 0x01c1b79c, size: 225 bytes, params: 1, frame: 16
var environment;
var value5;
var value;
const value2 = undefined;
const r2 = env0_0 != null ? env1_7.get(env0_0) : value2;
var env0_0 = r2;
if (env0_0 != null) {
if (r2 == null) {
value5 = environment.__proto__;
value = getCachedSourceFromURI(env0_0);
if (value != null) {
value = (typeof value === 'number' ? NativeModules.ImageManager.getDominantColorsLocalAsset(Image.resolveAssetSource(value)) : NativeModules.ImageManager.getDominantColors(Image.resolveAssetSource(value))).then(_fun67256);
value.catch(function() {
});
}
} else {
env0_2(_fun67258);
}
}
return value2;
function _fun67256(a0) { // fn#67256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:892, offset: 0x01c1b87d, size: 105 bytes, params: 2, frame: 15
const value2 = env2_3(a0[0], 3);
const object = {r: value2[0], g: value2[1], b: value2[2]};
env2_7.set(env1_0, object);
if (env1_1.current) {
env1_2(object);
}
}
function _fun67258(a0) { // fn#67258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:991, offset: 0x01c1b8e6, size: 64 bytes, params: 2, frame: 15
const value = a0;
return env0_0 === value || (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_0,
value) ? value : env0_0;
}
}
}
return value2;
}
function _fun67254() { // fn#67254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:461, offset: 0x01c1b789, size: 19 bytes, params: 1, frame: 2
env1_1.current = false;
}
function _fun67256(a0) { // fn#67256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:892, offset: 0x01c1b87d, size: 105 bytes, params: 2, frame: 15
const value2 = env2_3(a0[0], 3);
const object2 = {r: value2[0], g: value2[1], b: value2[2]};
env2_7.set(env1_0, object2);
if (env1_1.current) {
env1_2(object2);
function useDominantColorFromImage_67259(a0) { // fn#67259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:1244, offset: 0x01c1b926, size: 76 bytes, params: 2, frame: 20
const value = useDominantRGBFromImage_67252(a0);
return 'rgb(' + value.r + ', ' + value.g + ', ' + value.b + ')';
}
}
function _fun67258(a0) { // fn#67258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8653:991, offset: 0x01c1b8e6, size: 64 bytes, params: 2, frame: 15
const value = a0;
return env0_0 === value || (importDefault(628) /* metro dependency 628: shallowEqual */)(env0_0,
value) ? value : env0_0;
}
global.__d(_fun67250, 8468, [57, 31, 27, 1393, 4000, 697, 628,
2]) /* metro module 8468, dependencies: [57, 31, 27, 1393, 4000, 697, 628, 2] */;
@@ -1,29 +1,45 @@
/* Metro module 15496; source: modules/voice_panel/native/card/VoicePanelAnimatedActivityCard.tsx; dependencies: [57, 31, 1378, 7730, 1379, 11795, 11793, 661, 4237, 33, 4501, 697, 11794, 15319, 566, 15497, 7860, 6777, 10701, 6771, 6789, 8620, 12711, 4017, 4610, 5321, 1478, 10703, 8141, 10704, 15498, 15499, 15503, 3868, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import EmbeddedActivitiesStore from '../../../activities/EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseAnalyticsLocations from '../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import UseGetOrFetchApplications from '../../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import AnalyticsLocation from '../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import ChannelCallLifecycleStore from '../../../video_calls/native/ChannelCallLifecycleStore.tsx'; /* Metro dependency 7730 */
import UseCurrentEmbeddedApplication from '../../../activities/utils/useCurrentEmbeddedApplication.tsx'; /* Metro dependency 10701 */
import VoicePanelStateContext from '../VoicePanelStateContext.tsx'; /* Metro dependency 11794 */
import UseAnimatedKeyboardHeight from '../../../keyboard/native/useAnimatedKeyboardHeight.tsx'; /* Metro dependency 15319 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as ConstantsModule2 from '../../../activities/Constants.tsx'; /* Metro dependency 4237 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as Module05321Module from '../../../../by-id/module-05321.js'; /* Metro dependency 5321 */
import * as UseAnalyticsLocationsModule from '../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import * as EmbeddedActivitiesActionCreatorsModule from '../../../activities/EmbeddedActivitiesActionCreators.tsx'; /* Metro dependency 7860 */
import * as AnalyticsModule from '../../../../hooks/analytics.tsx'; /* Metro dependency 8620 */
import * as GetDefaultOrientationLockStateModule from '../../../activities/native/getDefaultOrientationLockState.tsx'; /* Metro dependency 10703 */
import * as VoicePanelControlsConstantsModule from '../controls/VoicePanelControlsConstants.tsx'; /* Metro dependency 11793 */
import * as VoicePanelConstantsModule from '../../VoicePanelConstants.tsx'; /* Metro dependency 11795 */
import * as IsActivityParticipantCurrentUserCurrentSessionModule from '../../../activities/isActivityParticipantCurrentUserCurrentSession.tsx'; /* Metro dependency 12711 */
import * as UseActivityShelfItemDataModule from '../../../activities/useActivityShelfItemData.tsx'; /* Metro dependency 15497 */
function _fun118643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6, offset: 0x024e6309, size: 544 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const channelCallLifecycleStore = importDefault(7730) /* metro dependency 7730: ChannelCallLifecycleStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const voicePanelConstantsModule = require(11795) /* metro dependency 11795: VoicePanelConstants */;
const env0_8 = voicePanelConstantsModule.IS_IOS;
const env0_9 = voicePanelConstantsModule.VoicePanelModes;
const env0_10 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes;
const env0_11 = (require(661) /* metro dependency 661: Constants */).ThemeTypes;
const constantsModule = require(4237) /* metro dependency 4237: Constants */;
let value = ReactModule;
const constantsModule = ConstantsModule2;
const env0_12 = constantsModule.ACTIVITY_PORTRAIT_ASPECT_RATIO;
const env0_13 = constantsModule.ActivityLayoutMode;
const env0_14 = constantsModule.OrientationLockState;
const value4 = require(33) /* metro dependency 33 */;
const env0_15 = value4.jsx;
const env0_16 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const env0_17 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
const env0_17 = Reflect.apply(createStyles, CreateStylesModule,
[{activityContainerBackground: {backgroundColor: BACKGROUND_SURFACE_HIGH}}]);
object = {code: 'function VoicePanelAnimatedActivityCardTsx1(){const{sharedVisible,mode}=this.__closure;return{visible:sharedVisible.get(),mode:mode.get()};}'};
object = {code: 'function VoicePanelAnimatedActivityCardTsx2({visible:visible,mode:mode},prev){const{VoicePanelModes,runOnJS,incrementActivityKey}=this.__closure;if(visible===1&&prev!=null&&prev.visible===0||mode!==VoicePanelModes.PIP&&(prev===null||prev===void 0?void 0:prev.mode)===VoicePanelModes.PIP){runOnJS(incrementActivityKey)();}}'};
@@ -34,366 +50,397 @@ function _fun118643(global, require, importDefault, importAll, module, exports,
object = {code: "function VoicePanelAnimatedActivityCardTsx7(){const{IS_IOS,animatedKeyboardHeight,windowDimensions,isTabletActivitySurface,focusedOrientationLockState,OrientationLockState,ACTIVITY_PORTRAIT_ASPECT_RATIO,isActivityFocused,backgroundColor}=this.__closure;const keyboardHeight=IS_IOS?animatedKeyboardHeight.get():0;const isScreenLandscape=windowDimensions.get().landscape;const screenWidth=windowDimensions.get().width;const screenHeight=windowDimensions.get().height;const shouldLetterBox=isTabletActivitySurface&&focusedOrientationLockState===OrientationLockState.LANDSCAPE&&!isScreenLandscape;const shouldPillarBox=isTabletActivitySurface&&focusedOrientationLockState===OrientationLockState.PORTRAIT&&isScreenLandscape;let containerPaddingVertical=0;let containerPaddingHorizontal=0;if(shouldLetterBox){containerPaddingVertical=(screenHeight-screenWidth*ACTIVITY_PORTRAIT_ASPECT_RATIO)/2;}else if(shouldPillarBox){containerPaddingHorizontal=(screenWidth-screenHeight*ACTIVITY_PORTRAIT_ASPECT_RATIO)/2;}return{flex:isActivityFocused?0:1,backgroundColor:backgroundColor,paddingVertical:containerPaddingVertical,paddingHorizontal:containerPaddingHorizontal,width:isActivityFocused?screenWidth:'auto',height:isActivityFocused?screenHeight-keyboardHeight:'auto',maxHeight:'100%',maxWidth:'100%'};}"};
object = {code: 'function VoicePanelAnimatedActivityCardTsx8(event,manager){const{controlsSpecs,VoicePanelControlsModes,runOnJS,hideControls}=this.__closure;manager.fail();if(controlsSpecs.get().mode!==VoicePanelControlsModes.HIDDEN){runOnJS(hideControls)({debounce:true});}}'};
value = value.memo(VoicePanelAnimatedActivityCard);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelAnimatedActivityCard.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelAnimatedActivityCard.tsx');
exports.default = value;
}
function VoicePanelAnimatedActivityCardInner({applicationId, sharedVisible, layout}) { // fn#118644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:3773, offset: 0x024e6529, size: 2256 bytes, params: 2, frame: 50
var object4;
var r13;
const GestureDetector = (require(5321) /* metro dependency 5321 */).GestureDetector;
var ReanimatedNativeView;
var object2;
var items2;
const env0_18 = undefined;
const env0_19 = undefined;
const env0_21 = undefined;
const styles = useStyles();
let binding = env0_4;
let useState = binding.useState;
const value4 = env0_3(Reflect.apply(useState, binding, [0]), 2);
const property = value4[0];
const env0_2 = value4[1];
const value5 = env0_4.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
var env0_3 = value5.channelId;
const focused = value5.focused;
var env0_4 = focused;
const layoutManager = value5.layoutManager;
const mode = value5.mode;
const windowDimensions = value5.windowDimensions;
const hideControls = value5.hideControls;
const controlsSpecs = value5.controlsSpecs;
const value6 = (importDefault(15319) /* metro dependency 15319: useAnimatedKeyboardHeight */)();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const value7 = env0_4.useMemo(function() {
return {channel: channel, type: 'channel'};
}, [channel]);
const guild_id = channel?.guild_id;
const useActivityShelfItemDataModule = require(15497) /* metro dependency 15497: useActivityShelfItemData */;
const useActivityShelfItemData = useActivityShelfItemDataModule.useActivityShelfItemData;
let r5 = channel?.guild_id ?? null;
const value9 = Reflect.apply(useActivityShelfItemData, useActivityShelfItemDataModule, [r5, applicationId]);
env0_4.useEffect(_fun118647, [guild_id]);
const property2 = env0_3((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([applicationId]),
1)[0];
const {gridOrientationLockState,
focusedOrientationLockState} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([EmbeddedActivitiesStore],
function() {
var object = {};
var applicationIdBinding = applicationId;
object.gridOrientationLockState = EmbeddedActivitiesStore.getGridOrientationLockStateForApp(applicationIdBinding);
object.focusedOrientationLockState = EmbeddedActivitiesStore.getOrientationLockStateForApp(applicationIdBinding);
return object;
}, [applicationId]);
const value12 = (importDefault(10701) /* metro dependency 10701: useCurrentEmbeddedApplication */)();
const value13 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
_fun118649);
const defaultImport2 = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const ACTIVITY_TILE = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).ACTIVITY_TILE;
const analyticsLocations = defaultImport2(ACTIVITY_TILE).analyticsLocations;
const value14 = (require(8620) /* metro dependency 8620: analytics */).useAnalyticsContext();
let r2 = value12 != null && value12.id === property2?.id;
r2 = !r2 ? (value13 == null || value13.participants == null ? undefined : value13.participants.find(_fun118652)) != null : r2;
const value19 = env0_4.useCallback(_fun118653, [r2]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
let closure = function() {
var object = {};
object.visible = sharedVisible.get();
object.mode = mode.get();
return object;
};
closure.__closure = {sharedVisible: sharedVisible, mode: mode};
closure.__workletHash = 2072430391020;
closure.__initData = env0_18;
const closure2 = VoicePanelAnimatedActivityCardInnerQ;
closure2.__closure = {VoicePanelModes: VoicePanelModes, runOnJS: reanimatedRexportModule.runOnJS,
incrementActivityKey: value19};
closure2.__workletHash = 9732208421749;
closure2.__initData = env0_19;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
const [property3, property4] = env0_3(env0_4.useState(false), 2);
const r39 = value13 != null ? (require(4610) /* metro dependency 4610: ChannelRTCParticipants */).getEmbeddedActivityParticipantId({applicationId: value13.applicationId,
instanceId: value13.compositeInstanceId}) : null;
const env0_20 = r39;
const moduleValue8 = reanimatedRexportModule;
useAnimatedReaction = moduleValue8.useAnimatedReaction;
closure = VoicePanelAnimatedActivityCardInnerUe;
object4 = {activityParticipantId: r39, focused: focused, mode: mode};
object4.VoicePanelModes = VoicePanelModes;
closure.__closure = object4;
closure.__workletHash = 2833167890519;
closure.__initData = env0_20;
const closure3 = VoicePanelAnimatedActivityCardInnerLe;
closure3.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setIsActivityFocused: property4};
closure3.__workletHash = 12291590020155;
closure3.__initData = env0_21;
Reflect.apply(useAnimatedReaction, moduleValue8, [closure, closure3]);
const value23 = env0_4.useMemo(function() {
var Gesture = require(dependencyMap[25]).Gesture;
return Gesture.Tap();
}, []);
const value24 = env0_4.useCallback(_fun118660, [layoutManager, applicationId]);
env0_4.useLayoutEffect(_fun118661, [value24, windowDimensions, gridOrientationLockState, r2]);
binding = env0_4;
useState = binding.useState;
const getDefaultTargetDimensions = layoutManager.getDefaultTargetDimensions;
const value26 = env0_3(Reflect.apply(useState, binding, [Reflect.apply(getDefaultTargetDimensions, layoutManager,
[])]), 2);
const property5 = value26[0];
const property6 = value26[1];
const env0_22 = property6;
const value27 = env0_4.useCallback(_fun118662, [layoutManager, property6]);
const env0_23 = value27;
const moduleValue9 = reanimatedRexportModule;
useAnimatedReaction = moduleValue9.useAnimatedReaction;
closure = function() {
return windowDimensions.get();
};
closure.__closure = {windowDimensions: windowDimensions};
closure.__workletHash = 12220613662042;
closure.__initData = env0_22;
const closure4 = VoicePanelAnimatedActivityCardInnerPe;
closure4.__closure = {runOnJS: reanimatedRexportModule.runOnJS, handleTargetAspectRatioParams: value24,
gridOrientationLockState: gridOrientationLockState, hasJoined: r2, updateNotJoinedActivityDimensions: value27};
closure4.__workletHash = 13125606009235;
closure4.__initData = env0_23;
Reflect.apply(useAnimatedReaction, moduleValue9, [closure, closure4]);
const isTabletActivitySurface = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).getIsTabletActivitySurface();
const env0_24 = isTabletActivitySurface;
const backgroundColor = styles.activityContainerBackground.backgroundColor;
const moduleValue11 = reanimatedRexportModule;
const useAnimatedStyle = moduleValue11.useAnimatedStyle;
closure = Ce;
closure.__closure = {IS_IOS: IS_IOS, animatedKeyboardHeight: value6, windowDimensions: windowDimensions,
isTabletActivitySurface: isTabletActivitySurface, focusedOrientationLockState: focusedOrientationLockState,
OrientationLockState: OrientationLockState, ACTIVITY_PORTRAIT_ASPECT_RATIO: ACTIVITY_PORTRAIT_ASPECT_RATIO,
isActivityFocused: property3, backgroundColor: backgroundColor};
closure.__workletHash = 13392050824169;
closure.__initData = env0_24;
const value29 = Reflect.apply(useAnimatedStyle, moduleValue11, [closure]);
const showActivitiesDebugOverlay = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelCallLifecycleStore],
function() {
return ChannelCallLifecycleStore.getShowActivitiesDebugOverlay();
});
const value30 = env0_4.useMemo(_fun118667, [controlsSpecs, property3, hideControls]);
if (channel == null) {
return null;
}
if (r2) {
object4 = {gesture: value30};
ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
object2 = {layout: layout};
r13 = property3 ? 'auto' : 'none';
object2.pointerEvents = r13;
object2.style = value29;
items2 = [((Component) => <Component channel={channel} layoutMode={property3 ? ActivityLayoutMode.FOCUSED : ActivityLayoutMode.GRID} key={property} />)(importDefault(10704) /* metro dependency 10704: EmbeddedActivityView */)];
r13 = showActivitiesDebugOverlay ? ((Component) => <Component />)(importDefault(15498) /* metro dependency 15498: ActivitiesDebugOverlay */) : null;
items2[1] = r13;
r5 = <GestureDetector {...object4}><ReanimatedNativeView {...object2}>{items2}</ReanimatedNativeView></GestureDetector>;
} else {
r5 = value9 == null ? ((Component) => <Component activity={value13} application={property2} />)(importDefault(15499) /* metro dependency 15499: ActivityItemMissingCard */) : <GestureDetector gesture={value23}>{((Component) => <Component context={value7} guildId={channel.guild_id} activityItem={value9} locationObject={value14.location} itemDimensions={property5} disableBadges />)(importDefault(15503) /* metro dependency 15503: ActivityShelfItem */)}</GestureDetector>;
}
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
return (
<AnalyticsLocationProvider value={analyticsLocations}>
{r5}
</AnalyticsLocationProvider>
);
}
function VoicePanelAnimatedActivityCard(a0) { // fn#118669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8950, offset: 0x024e74b6, size: 89 bytes, params: 2, frame: 17
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
const DARK = ThemeTypes.DARK;
return (
<ThemeContextProvider theme={DARK}>
<VoicePanelAnimatedActivityCardInner {...a0} />
</ThemeContextProvider>
);
}
function _fun118647() { // fn#118647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4294, offset: 0x024e6e10, size: 51 bytes, params: 1, frame: 13
const value = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).fetchShelf({guildId: guild_id});
}
function _fun118649() { // fn#118649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4674, offset: 0x024e6e7b, size: 92 bytes, params: 1, frame: 14
var environment;
var r0;
let value = environment.__proto__;
const getEmbeddedActivitiesForChannel = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel;
const value4 = Reflect.apply(getEmbeddedActivitiesForChannel, EmbeddedActivitiesStore, [channelId]).find(_fun118650);
if (value4 != null) {
r0 = value4;
} else {
value = EmbeddedActivitiesStore.getEmbeddedActivitiesForStartingChannel(channelId);
value = value.find(_fun118651);
r0 = value;
}
return r0;
}
function _fun118652(a0) { // fn#118652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5088, offset: 0x024e6f00, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__;
return (require(12711) /* metro dependency 12711: isActivityParticipantCurrentUserCurrentSession */).isActivityParticipantCurrentUserCurrentSession(a0);
}
function _fun118653() { // fn#118653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5171, offset: 0x024e6f29, size: 34 bytes, params: 1, frame: 11
if (env0_16) {
env0_2(function(a0) {
return typeof a0 === 'bigint' ? a0 + 1n : +a0 + 1;
function VoicePanelAnimatedActivityCardInner({applicationId, sharedVisible, layout}) { // fn#118644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:3773, offset: 0x024e6529, size: 2256 bytes, params: 2, frame: 50
var object3;
var r13;
const GestureDetector = (Module05321Module).GestureDetector;
var ReanimatedNativeView;
var object;
var items2;
const env0_18 = undefined;
const env0_19 = undefined;
const env0_21 = undefined;
const styles = useStyles();
let binding = focused2;
let useState = binding.useState;
const value4 = channelId(Reflect.apply(useState, binding, [0]), 2);
const property = value4[0];
const env0_2 = value4[1];
const value5 = focused2.useContext(VoicePanelStateContext);
var channelId = value5.channelId;
const focused = value5.focused;
var focused2 = focused;
const layoutManager = value5.layoutManager;
const mode = value5.mode;
const windowDimensions = value5.windowDimensions;
const hideControls = value5.hideControls;
const controlsSpecs = value5.controlsSpecs;
const value6 = (UseAnimatedKeyboardHeight)();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
}
}
function VoicePanelAnimatedActivityCardInnerQ({visible, mode}, a1) { // fn#118656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5357, owner: VoicePanelAnimatedActivityCardInner.Q, offset: 0x024e6f7d, size: 157 bytes, params: 3, frame: 14
let value = visible === 1;
let r0 = value && a1 != null && a1.visible === 0;
if (!r0) {
value = environment.__proto__;
r0 = mode !== VoicePanelModes.PIP && a1?.mode === VoicePanelModes.PIP;
}
if (r0) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_17)();
}
}
function VoicePanelAnimatedActivityCardInnerUe() { // fn#118657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5837, owner: VoicePanelAnimatedActivityCardInner.ue, offset: 0x024e701a, size: 86 bytes, params: 1, frame: 12
var value6;
var value;
let r0 = env0_20 != null && focused.get()?.id === env0_20;
if (r0) {
value = mode.get();
value6 = environment.__proto__;
value = value === VoicePanelModes.PANEL;
r0 = value;
}
return r0;
}
function VoicePanelAnimatedActivityCardInnerLe(a0, a1) { // fn#118658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6056, owner: VoicePanelAnimatedActivityCardInner.le, offset: 0x024e7070, size: 61 bytes, params: 3, frame: 13
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_19)(a0);
}
}
function _fun118660(a0, a1, a2) { // fn#118660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6286, offset: 0x024e70d8, size: 195 bytes, params: 4, frame: 14
var value;
var layoutManagerBinding;
if (a2) {
value = environment.__proto__;
if (OrientationLockState.LANDSCAPE === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'landscape');
} else if (OrientationLockState.PORTRAIT === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'portrait');
} else if (OrientationLockState.UNLOCKED === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, a0 ? 'landscape' : 'portrait');
} else if (a1 === null) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, a0 ? 'landscape' : 'portrait');
const value7 = focused2.useMemo(function() {
return {channel: channel, type: 'channel'};
}, [channel]);
const guild_id = channel?.guild_id;
const useActivityShelfItemData = UseActivityShelfItemDataModule.useActivityShelfItemData;
let r5 = channel?.guild_id ?? null;
const value9 = Reflect.apply(useActivityShelfItemData, UseActivityShelfItemDataModule, [r5, applicationId]);
focused2.useEffect(_fun118647, [guild_id]);
const property2 = channelId((UseGetOrFetchApplications)([applicationId]),
1)[0];
const {gridOrientationLockState,
focusedOrientationLockState} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([EmbeddedActivitiesStore],
function() {
var object = {};
var embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
var applicationIdBinding = applicationId;
object.gridOrientationLockState = embeddedActivitiesStoreBinding.getGridOrientationLockStateForApp(applicationIdBinding);
object.focusedOrientationLockState = EmbeddedActivitiesStore.getOrientationLockStateForApp(applicationIdBinding);
return object;
}, [applicationId]);
const value12 = (UseCurrentEmbeddedApplication)();
const value13 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
_fun118649);
const defaultImport2 = UseAnalyticsLocations;
const ACTIVITY_TILE = (AnalyticsLocation).ACTIVITY_TILE;
const analyticsLocations = defaultImport2(ACTIVITY_TILE).analyticsLocations;
const value14 = (AnalyticsModule).useAnalyticsContext();
let r2 = value12 != null && value12.id === property2?.id;
r2 = !r2 ? (value13 == null || value13.participants == null ? undefined : value13.participants.find(_fun118652)) != null : r2;
const value19 = focused2.useCallback(_fun118653, [r2]);
let useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
let closure = function() {
var object = {};
object.visible = sharedVisible.get();
object.mode = mode.get();
return object;
};
closure.__closure = {sharedVisible: sharedVisible, mode: mode};
closure.__workletHash = 2072430391020;
closure.__initData = env0_18;
const VoicePanelAnimatedActivityCardInnerQ2 = VoicePanelAnimatedActivityCardInnerQ;
VoicePanelAnimatedActivityCardInnerQ2.__closure = {VoicePanelModes: VoicePanelModes,
runOnJS: ReanimatedRexportModule.runOnJS, incrementActivityKey: value19};
VoicePanelAnimatedActivityCardInnerQ2.__workletHash = 9732208421749;
VoicePanelAnimatedActivityCardInnerQ2.__initData = env0_19;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, VoicePanelAnimatedActivityCardInnerQ2]);
const [property3, property4] = channelId(focused2.useState(false), 2);
const r39 = value13 != null ? (require(4610) /* metro dependency 4610: ChannelRTCParticipants */).getEmbeddedActivityParticipantId({applicationId: value13.applicationId,
instanceId: value13.compositeInstanceId}) : null;
const env0_20 = r39;
useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = VoicePanelAnimatedActivityCardInnerUe;
object3 = {activityParticipantId: r39, focused: focused, mode: mode};
object3.VoicePanelModes = VoicePanelModes;
closure.__closure = object3;
closure.__workletHash = 2833167890519;
closure.__initData = env0_20;
const VoicePanelAnimatedActivityCardInnerLe2 = VoicePanelAnimatedActivityCardInnerLe;
VoicePanelAnimatedActivityCardInnerLe2.__closure = {runOnJS: ReanimatedRexportModule.runOnJS,
setIsActivityFocused: property4};
VoicePanelAnimatedActivityCardInnerLe2.__workletHash = 12291590020155;
VoicePanelAnimatedActivityCardInnerLe2.__initData = env0_21;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, VoicePanelAnimatedActivityCardInnerLe2]);
const value23 = focused2.useMemo(function() {
var Gesture = require(dependencyMap[25]).Gesture;
return Gesture.Tap();
}, []);
const value24 = focused2.useCallback(_fun118660, [layoutManager, applicationId]);
focused2.useLayoutEffect(_fun118661, [value24, windowDimensions, gridOrientationLockState, r2]);
binding = focused2;
useState = binding.useState;
const getDefaultTargetDimensions = layoutManager.getDefaultTargetDimensions;
const value26 = channelId(Reflect.apply(useState, binding, [Reflect.apply(getDefaultTargetDimensions, layoutManager,
[])]), 2);
const property5 = value26[0];
const property6 = value26[1];
const property62 = property6;
const value27 = focused2.useCallback(_fun118662, [layoutManager, property6]);
const env0_23 = value27;
useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = function() {
return windowDimensions.get();
};
closure.__closure = {windowDimensions: windowDimensions};
closure.__workletHash = 12220613662042;
closure.__initData = property62;
const VoicePanelAnimatedActivityCardInnerPe2 = VoicePanelAnimatedActivityCardInnerPe;
VoicePanelAnimatedActivityCardInnerPe2.__closure = {runOnJS: ReanimatedRexportModule.runOnJS,
handleTargetAspectRatioParams: value24, gridOrientationLockState: gridOrientationLockState, hasJoined: r2,
updateNotJoinedActivityDimensions: value27};
VoicePanelAnimatedActivityCardInnerPe2.__workletHash = 13125606009235;
VoicePanelAnimatedActivityCardInnerPe2.__initData = env0_23;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, VoicePanelAnimatedActivityCardInnerPe2]);
const isTabletActivitySurface = (GetDefaultOrientationLockStateModule).getIsTabletActivitySurface();
const isTabletActivitySurface2 = isTabletActivitySurface;
const backgroundColor = styles.activityContainerBackground.backgroundColor;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = Ce;
closure.__closure = {IS_IOS: IS_IOS, animatedKeyboardHeight: value6, windowDimensions: windowDimensions,
isTabletActivitySurface: isTabletActivitySurface, focusedOrientationLockState: focusedOrientationLockState,
OrientationLockState: OrientationLockState, ACTIVITY_PORTRAIT_ASPECT_RATIO: ACTIVITY_PORTRAIT_ASPECT_RATIO,
isActivityFocused: property3, backgroundColor: backgroundColor};
closure.__workletHash = 13392050824169;
closure.__initData = isTabletActivitySurface2;
const value29 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const showActivitiesDebugOverlay = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelCallLifecycleStore],
function() {
return ChannelCallLifecycleStore.getShowActivitiesDebugOverlay();
});
const value30 = focused2.useMemo(_fun118667, [controlsSpecs, property3, hideControls]);
if (channel == null) {
return null;
}
} else {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'square');
if (r2) {
object3 = {gesture: value30};
ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
object = {layout: layout};
r13 = property3 ? 'auto' : 'none';
object.pointerEvents = r13;
object.style = value29;
items2 = [
((Component) => <Component channel={channel} layoutMode={property3 ? ActivityLayoutMode.FOCUSED : ActivityLayoutMode.GRID} key={property} />)(importDefault(10704) /* metro dependency 10704: EmbeddedActivityView */),
];
r13 = (
showActivitiesDebugOverlay
? ((Component) => <Component />)(importDefault(15498) /* metro dependency 15498: ActivitiesDebugOverlay */)
: null
);
items2[1] = r13;
r5 = (
<GestureDetector {...object3}>
<ReanimatedNativeView {...object}>
{items2}
</ReanimatedNativeView>
</GestureDetector>
);
} else {
r5 = (
value9 == null
? ((Component) => <Component activity={value13} application={property2} />)(importDefault(15499) /* metro dependency 15499: ActivityItemMissingCard */)
: (
<GestureDetector gesture={value23}>
{((Component) => <Component context={value7} guildId={channel.guild_id} activityItem={value9} locationObject={value14.location} itemDimensions={property5} disableBadges />)(importDefault(15503) /* metro dependency 15503: ActivityShelfItem */)}
</GestureDetector>
)
);
}
const AnalyticsLocationProvider = (UseAnalyticsLocationsModule).AnalyticsLocationProvider;
return (
<AnalyticsLocationProvider value={analyticsLocations}>
{r5}
</AnalyticsLocationProvider>
);
function _fun118647() { // fn#118647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4294, offset: 0x024e6e10, size: 51 bytes, params: 1, frame: 13
const value = environment.__proto__;
(EmbeddedActivitiesActionCreatorsModule).fetchShelf({guildId: guild_id});
}
function _fun118649() { // fn#118649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4674, offset: 0x024e6e7b, size: 92 bytes, params: 1, frame: 14
var environment;
var r0;
let value = environment.__proto__;
let embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
const getEmbeddedActivitiesForChannel = embeddedActivitiesStoreBinding.getEmbeddedActivitiesForChannel;
const value4 = Reflect.apply(getEmbeddedActivitiesForChannel, embeddedActivitiesStoreBinding,
[channelId]).find(_fun118650);
if (value4 != null) {
r0 = value4;
} else {
embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
value = embeddedActivitiesStoreBinding.getEmbeddedActivitiesForStartingChannel(channelId);
value = value.find(_fun118651);
r0 = value;
}
return r0;
function _fun118650({applicationId}) { // fn#118650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4744, offset: 0x024e6ed7, size: 41 bytes, params: 2, frame: 4
return applicationId === env1_13?.id;
}
function _fun118651({applicationId}) { // fn#118651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4845, offset: 0x024e6ed7, size: 41 bytes, params: 2, frame: 4
return applicationId === env1_13?.id;
}
}
function _fun118652(a0) { // fn#118652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5088, offset: 0x024e6f00, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__;
return (IsActivityParticipantCurrentUserCurrentSessionModule).isActivityParticipantCurrentUserCurrentSession(a0);
}
function _fun118653() { // fn#118653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5171, offset: 0x024e6f29, size: 34 bytes, params: 1, frame: 11
if (JsxRuntimeModule.jsxs) {
env0_2(function(a0) {
return typeof a0 === 'bigint' ? a0 + 1n : +a0 + 1;
});
}
}
function VoicePanelAnimatedActivityCardInnerQ({visible, mode}, a1) { // fn#118656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5357, owner: VoicePanelAnimatedActivityCardInner.Q, offset: 0x024e6f7d, size: 157 bytes, params: 3, frame: 14
let value = visible === 1;
let r0 = value && a1 != null && a1.visible === 0;
if (!r0) {
value = environment.__proto__;
r0 = mode !== VoicePanelModes.PIP && a1?.mode === VoicePanelModes.PIP;
}
if (r0) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_17)();
}
}
function VoicePanelAnimatedActivityCardInnerUe() { // fn#118657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:5837, owner: VoicePanelAnimatedActivityCardInner.ue, offset: 0x024e701a, size: 86 bytes, params: 1, frame: 12
var value6;
var value;
let r0 = env0_20 != null && focused.get()?.id === env0_20;
if (r0) {
value = mode.get();
value6 = environment.__proto__;
value = value === VoicePanelModes.PANEL;
r0 = value;
}
return r0;
}
function VoicePanelAnimatedActivityCardInnerLe(a0, a1) { // fn#118658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6056, owner: VoicePanelAnimatedActivityCardInner.le, offset: 0x024e7070, size: 61 bytes, params: 3, frame: 13
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_19)(a0);
}
}
function _fun118660(a0, a1, a2) { // fn#118660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6286, offset: 0x024e70d8, size: 195 bytes, params: 4, frame: 14
var value;
var layoutManagerBinding;
if (a2) {
value = environment.__proto__;
if (OrientationLockState.LANDSCAPE === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'landscape');
} else if (OrientationLockState.PORTRAIT === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'portrait');
} else if (OrientationLockState.UNLOCKED === a1) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, a0 ? 'landscape' : 'portrait');
} else if (a1 === null) {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, a0 ? 'landscape' : 'portrait');
}
} else {
layoutManagerBinding = layoutManager;
layoutManagerBinding.setTargetAspectRatio(applicationId, 'square');
}
}
function _fun118661() { // fn#118661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6576, offset: 0x024e719b, size: 73 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
value = value.getWindowDimensions();
value = value.width > value.height;
env0_21(value, gridOrientationLockState, JsxRuntimeModule.jsxs);
}
function _fun118662() { // fn#118662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6768, offset: 0x024e71e4, size: 30 bytes, params: 1, frame: 11
env0_22(layoutManager.getDefaultTargetDimensions());
}
function VoicePanelAnimatedActivityCardInnerPe(a0, a1) { // fn#118664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6952, owner: VoicePanelAnimatedActivityCardInner.pe, offset: 0x024e7202, size: 142 bytes, params: 3, frame: 16
var value2;
const landscape2 = a0.landscape;
const value = undefined;
if (landscape2 !== (a1 == null ? value : a1.landscape)) {
value2 = environment.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS(env0_21)(a0.landscape,
gridOrientationLockState, JsxRuntimeModule.jsxs);
}
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
reanimatedRexportModule.runOnJS(env0_23)();
return value;
}
function Ce() { // fn#118665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:7406, owner: VoicePanelAnimatedActivityCardInner.Ce, offset: 0x024e7290, size: 283 bytes, params: 1, frame: 18
var r5;
let value = environment.__proto__;
const value2 = 0;
const r3 = IS_IOS ? VoicePanelControlsConstantsModule.VoicePanelControlsModes.get() : value2;
const windowDimensionsBinding = windowDimensions;
let get = windowDimensionsBinding.get;
const landscape = Reflect.apply(get, windowDimensionsBinding, []).landscape;
get = windowDimensionsBinding.get;
const width = Reflect.apply(get, windowDimensionsBinding, []).width;
get = windowDimensionsBinding.get;
const height = Reflect.apply(get, windowDimensionsBinding, []).height;
let r1 = env0_24 && focusedOrientationLockState === OrientationLockState.LANDSCAPE && !landscape;
if (r1) {
value = (height - width * ACTIVITY_PORTRAIT_ASPECT_RATIO) / 2;
r1 = value2;
r5 = value;
} else if (env0_24 && focusedOrientationLockState === OrientationLockState.PORTRAIT && landscape) {
r1 = (width - height * ACTIVITY_PORTRAIT_ASPECT_RATIO) / 2;
r5 = value2;
} else {
r1 = value2;
r5 = value2;
}
value = 'auto';
return {flex: env0_18 ? value2 : 1, backgroundColor: backgroundColor, paddingVertical: r5, paddingHorizontal: r1,
width: env0_18 ? width : value, height: env0_18 ? height - r3 : value, maxHeight: '100%', maxWidth: '100%'};
}
function _fun118667() { // fn#118667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8092, offset: 0x024e73ab, size: 162 bytes, params: 1, frame: 18
const Gesture = (Module05321Module).Gesture;
const value4 = Gesture.Manual().enabled(env0_18);
const onTouchesDown = value4.onTouchesDown;
const t_1186682 = t_118668;
const object = {};
object.controlsSpecs = controlsSpecs;
object.VoicePanelControlsModes = VoicePanelControlsModes;
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
object.hideControls = hideControls;
t_1186682.__closure = object;
t_1186682.__workletHash = 14924492513532;
t_1186682.__initData = env1_25;
return Reflect.apply(onTouchesDown, value4, [t_1186682]);
function t_118668(a0, a1) { // fn#118668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8160, offset: 0x024e744d, size: 105 bytes, params: 3, frame: 12
var moduleValue;
a1.fail();
const value = environment.__proto__;
const controlsSpecsBinding = controlsSpecs;
const get = controlsSpecsBinding.get;
const mode = Reflect.apply(get, controlsSpecsBinding, []).mode;
const HIDDEN = VoicePanelControlsModes.HIDDEN;
if (mode !== HIDDEN) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue.runOnJS(hideControls)({debounce: true});
}
}
}
}
}
function _fun118661() { // fn#118661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6576, offset: 0x024e719b, size: 73 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
value = value.getWindowDimensions();
value = value.width > value.height;
env0_21(value, gridOrientationLockState, env0_16);
}
function _fun118662() { // fn#118662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6768, offset: 0x024e71e4, size: 30 bytes, params: 1, frame: 11
env0_22(layoutManager.getDefaultTargetDimensions());
}
function VoicePanelAnimatedActivityCardInnerPe(a0, a1) { // fn#118664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:6952, owner: VoicePanelAnimatedActivityCardInner.pe, offset: 0x024e7202, size: 142 bytes, params: 3, frame: 16
var value2;
const landscape2 = a0.landscape;
const value = undefined;
if (landscape2 !== (a1 == null ? value : a1.landscape)) {
value2 = environment.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS(env0_21)(a0.landscape,
gridOrientationLockState, env0_16);
}
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
reanimatedRexportModule.runOnJS(env0_23)();
return value;
}
function Ce() { // fn#118665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:7406, owner: VoicePanelAnimatedActivityCardInner.Ce, offset: 0x024e7290, size: 283 bytes, params: 1, frame: 18
var r5;
let value = environment.__proto__;
const value2 = 0;
const r3 = IS_IOS ? env0_10.get() : value2;
const windowDimensionsBinding = windowDimensions;
let get = windowDimensionsBinding.get;
const landscape = Reflect.apply(get, windowDimensionsBinding, []).landscape;
get = windowDimensionsBinding.get;
const width = Reflect.apply(get, windowDimensionsBinding, []).width;
get = windowDimensionsBinding.get;
const height = Reflect.apply(get, windowDimensionsBinding, []).height;
let r1 = env0_24 && focusedOrientationLockState === OrientationLockState.LANDSCAPE && !landscape;
if (r1) {
value = (height - width * ACTIVITY_PORTRAIT_ASPECT_RATIO) / 2;
r1 = value2;
r5 = value;
} else if (env0_24 && focusedOrientationLockState === OrientationLockState.PORTRAIT && landscape) {
r1 = (width - height * ACTIVITY_PORTRAIT_ASPECT_RATIO) / 2;
r5 = value2;
} else {
r1 = value2;
r5 = value2;
}
value = 'auto';
return {flex: env0_18 ? value2 : 1, backgroundColor: backgroundColor, paddingVertical: r5, paddingHorizontal: r1,
width: env0_18 ? width : value, height: env0_18 ? height - r3 : value, maxHeight: '100%', maxWidth: '100%'};
}
function _fun118667() { // fn#118667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8092, offset: 0x024e73ab, size: 162 bytes, params: 1, frame: 18
const Gesture = (require(5321) /* metro dependency 5321 */).Gesture;
const value4 = Gesture.Manual().enabled(env0_18);
const onTouchesDown = value4.onTouchesDown;
const closure = t_118668;
const object2 = {};
object2.controlsSpecs = controlsSpecs;
object2.VoicePanelControlsModes = VoicePanelControlsModes;
object2.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
object2.hideControls = hideControls;
closure.__closure = object2;
closure.__workletHash = 14924492513532;
closure.__initData = env1_25;
return Reflect.apply(onTouchesDown, value4, [closure]);
}
function _fun118650({applicationId}) { // fn#118650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:4744, offset: 0x024e6ed7, size: 41 bytes, params: 2, frame: 4
return applicationId === env1_13?.id;
}
function t_118668(a0, a1) { // fn#118668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8160, offset: 0x024e744d, size: 105 bytes, params: 3, frame: 12
var moduleValue;
a1.fail();
const value = environment.__proto__;
const controlsSpecsBinding = controlsSpecs;
const get = controlsSpecsBinding.get;
const mode = Reflect.apply(get, controlsSpecsBinding, []).mode;
const HIDDEN = VoicePanelControlsModes.HIDDEN;
if (mode !== HIDDEN) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue.runOnJS(hideControls)({debounce: true});
function VoicePanelAnimatedActivityCard(a0) { // fn#118669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15693:8950, offset: 0x024e74b6, size: 89 bytes, params: 2, frame: 17
const ThemeContextProvider = (NativeModule).ThemeContextProvider;
const DARK = ThemeTypes.DARK;
return (
<ThemeContextProvider theme={DARK}>
<VoicePanelAnimatedActivityCardInner {...a0} />
</ThemeContextProvider>
);
}
}
global.__d(_fun118643, 15496, [57, 31, 1378, 7730, 1379, 11795, 11793, 661, 4237, 33, 4501, 697, 11794, 15319, 566,
15497, 7860, 6777, 10701, 6771, 6789, 8620, 12711, 4017, 4610, 5321, 1478, 10703, 8141, 10704, 15498, 15499,
15503, 3868,
2]) /* metro module 15496, dependencies: [57, 31, 1378, 7730, 1379, 11795, 11793, 661, 4237, 33, 4501, 697, 11794, 15319, 566, 15497, 7860, 6777, 10701, 6771, 6789, 8620, 12711, 4017, 4610, 5321, 1478, 10703, 8141, 10704, 15498, 15499, 15503, 3868, 2] */;
@@ -1,6 +1,18 @@
/* Metro module 15494; source: modules/voice_panel/native/card/VoicePanelCTACardCallerDisconnected.tsx; dependencies: [57, 31, 1226, 1379, 1878, 33, 4501, 697, 11794, 566, 4617, 6821, 5475, 4573, 1244, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AuthenticationStore from '../../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import NativeView2 from '../../../core/native/NativeView.tsx'; /* Metro dependency 6821 */
import VoicePanelStateContext from '../VoicePanelStateContext.tsx'; /* Metro dependency 11794 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun118635(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15691:6, offset: 0x024e58e0, size: 445 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const getSourceFromURI = function(a0) {
var value = a0;
@@ -8,97 +20,96 @@ function _fun118635(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const value2 = require(33) /* metro dependency 33 */;
const env0_8 = value2.jsx;
const env0_9 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const VOICE_VIDEO_VIDEO_TILE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_VIDEO_VIDEO_TILE_BACKGROUND;
object2.container = {'width': '100%', 'height': '100%', 'alignItems': 'center', 'justifyContent': 'center',
object.container = {'width': '100%', 'height': '100%', 'alignItems': 'center', 'justifyContent': 'center',
backgroundColor: VOICE_VIDEO_VIDEO_TILE_BACKGROUND};
object2.avatarContainer = {'flexDirection': 'row', 'gap': 24};
const object4 = {'width': 80, 'height': 80, 'borderRadius': null, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.avatarWrapper = object4;
object2.avatar = {'width': 80, 'height': 80};
object2.disconnectedAvatar = {opacity: 0.2};
object2.textContainer = {'position': 'absolute', 'left': 0, 'right': 0, 'bottom': 0, 'padding': 16, 'width': '100%'};
object2.text = {textAlign: 'center'};
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object2]);
object.avatarContainer = {'flexDirection': 'row', 'gap': 24};
const object3 = {'width': 80, 'height': 80, 'borderRadius': null, 'overflow': 'hidden'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.avatarWrapper = object3;
object.avatar = {'width': 80, 'height': 80};
object.disconnectedAvatar = {opacity: 0.2};
object.textContainer = {'position': 'absolute', 'left': 0, 'right': 0, 'bottom': 0, 'padding': 16, 'width': '100%'};
object.text = {textAlign: 'center'};
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(VoicePanelCTACardCallerDisconnected);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCTACardCallerDisconnected.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCTACardCallerDisconnected.tsx');
exports.default = value;
}
function VoicePanelCTACardCallerDisconnected() { // fn#118637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15691:726, offset: 0x024e5ab9, size: 819 bytes, params: 1, frame: 31
var r8;
var NativeView;
var FastImage;
let binding = env0_4;
const useContext = binding.useContext;
const value2 = undefined;
const channelId = Reflect.apply(useContext, binding,
[VoicePanelStateContext]).channelId;
const styles = useStyles();
const channel = ChannelStore.getChannel(channelId);
const r2 = (channel == null ? value2 : channel.recipients) ?? [];
binding = Module00057;
let property = binding(r2, 1)[0];
const id = AuthenticationStore.getId();
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const value7 = binding(Reflect.apply(useStateFromStoresArray, FluxModule, [[UserStore], _fun118638, [channelId, id,
property]]), 3);
property = value7[0];
const property2 = value7[1];
const property3 = value7[2];
const defaultImport2 = NativeView2;
const items2 = [
property != null && <NativeView2 style={styles.avatarWrapper}>{((Component) => <Component source={getSourceFromURI(property)} style={styles.avatar} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</NativeView2>,
];
const value10 = property2 != null;
if (value10) {
NativeView = NativeView2;
var defaultImport5Props = {style: styles.avatarWrapper};
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
r8 = (
<NativeView {...defaultImport5Props}>
<FastImage source={getSourceFromURI(property2)} style={[styles.avatar, styles.disconnectedAvatar]} />
</NativeView>
);
} else {
r8 = value10;
}
items2[1] = r8;
const defaultImport22 = ((Component) => <Component style={styles.avatarContainer}>{items2}</Component>)(defaultImport2);
const defaultImport7 = NativeView2;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const WkAgPU = (require(1244) /* metro dependency 1244: indexNative */).t.WkAgPU;
return (
<NativeView2 style={styles.container}>
{defaultImport22}
{((Component) => <Component style={styles.textContainer}><Text style={styles.text} variant="heading-sm/semibold" color="always-white">{Reflect.apply(string,
intl,
[WkAgPU])}</Text>{property3 != null && <Text style={styles.text} variant="text-xs/medium" color="always-white">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.kXrAqz,
{username: property3})}</Text>}</Component>)(defaultImport7)}
</NativeView2>
);
function _fun118638() { // fn#118638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15691:947, offset: 0x024e5dec, size: 147 bytes, params: 1, frame: 19
let value = environment.__proto__;
const userStoreBinding = UserStore;
const user = userStoreBinding.getUser(env0_2);
const user2 = userStoreBinding.getUser(env0_1);
const value5 = undefined;
const items2 = [user == null ? value5 : user.getAvatarURL(value5, 80)];
items2[1] = user2 == null ? value5 : user2.getAvatarURL(value5, 80);
value = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
const getName = value.getName;
items2[2] = Reflect.apply(getName, value, [value5, channelId, user2]);
return items2;
}
function VoicePanelCTACardCallerDisconnected() { // fn#118637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15691:726, offset: 0x024e5ab9, size: 819 bytes, params: 1, frame: 31
var r8;
var NativeView;
var FastImage;
let binding = env0_4;
const useContext = binding.useContext;
const value2 = undefined;
const channelId = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).channelId;
const styles = useStyles();
const channel = ChannelStore.getChannel(channelId);
const r2 = (channel == null ? value2 : channel.recipients) ?? [];
binding = env0_3;
let property = binding(r2, 1)[0];
const id = AuthenticationStore.getId();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
const value7 = binding(Reflect.apply(useStateFromStoresArray, fluxModule, [[UserStore], _fun118638, [channelId, id,
property]]), 3);
property = value7[0];
const property2 = value7[1];
const property3 = value7[2];
const NativeView2 = importDefault(6821) /* metro dependency 6821: NativeView */;
const defaultImport2 = NativeView2;
const items2 = [property != null && <NativeView2 style={styles.avatarWrapper}>{((Component) => <Component source={getSourceFromURI(property)} style={styles.avatar} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</NativeView2>];
const value10 = property2 != null;
if (value10) {
NativeView = NativeView2;
var defaultImport5Props = {style: styles.avatarWrapper};
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
r8 = <NativeView {...defaultImport5Props}><FastImage source={getSourceFromURI(property2)} style={[styles.avatar,
styles.disconnectedAvatar]} /></NativeView>;
} else {
r8 = value10;
}
items2[1] = r8;
const defaultImport22 = ((Component) => <Component style={styles.avatarContainer}>{items2}</Component>)(defaultImport2);
const defaultImport7 = NativeView2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const WkAgPU = (require(1244) /* metro dependency 1244: indexNative */).t.WkAgPU;
return (
<NativeView2 style={styles.container}>
{defaultImport22}
{((Component) => <Component style={styles.textContainer}><Text style={styles.text} variant="heading-sm/semibold" color="always-white">{Reflect.apply(string,
intl,
[WkAgPU])}</Text>{property3 != null && <Text style={styles.text} variant="text-xs/medium" color="always-white">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.kXrAqz,
{username: property3})}</Text>}</Component>)(defaultImport7)}
</NativeView2>
);
}
function _fun118638() { // fn#118638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15691:947, offset: 0x024e5dec, size: 147 bytes, params: 1, frame: 19
let value = environment.__proto__;
const user = UserStore.getUser(env0_2);
const user2 = UserStore.getUser(env0_1);
const value5 = undefined;
const items2 = [user == null ? value5 : user.getAvatarURL(value5, 80)];
items2[1] = user2 == null ? value5 : user2.getAvatarURL(value5, 80);
value = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
const getName = value.getName;
items2[2] = Reflect.apply(getName, value, [value5, channelId, user2]);
return items2;
}
global.__d(_fun118635, 15494, [57, 31, 1226, 1379, 1878, 33, 4501, 697, 11794, 566, 4617, 6821, 5475, 4573, 1244,
2]) /* metro module 15494, dependencies: [57, 31, 1226, 1379, 1878, 33, 4501, 697, 11794, 566, 4617, 6821, 5475, 4573, 1244, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,8 +1,11 @@
/* Metro module 11798; source: modules/voice_panel/native/card/VoicePanelCardConstants.tsx; dependencies: [697, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun90382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11984:6, offset: 0x020371cd, size: 187 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCardConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCardConstants.tsx');
exports.CARD_SIZE = 165;
exports.CALL_TILE_GUTTER = 12;
exports.EDGE_GUTTER = 12;
@@ -11,12 +14,20 @@ function _fun90382(global, require, importDefault, importAll, module, exports, d
exports.CARD_BACKGROUND_OPACITY_ANDROID = 0.32;
exports.VOICE_PANEL_CONTROLS_OPACITY_ANDROID = 0.54;
exports.VOICE_PANEL_CARD_INNER_PADDING = 8;
function getCallTileGutter() { // fn#90383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11984:260, offset: 0x02037288, size: 72 bytes, params: 1, frame: 13
const value = a0;
const r3 = value !== undefined ? value : [];
const VOICE_PANEL_GUTTER = (Native).modules.mobile.VOICE_PANEL_GUTTER;
return VOICE_PANEL_GUTTER.resolve({enabledExperiments: r3});
}
function getEdgeGutter() { // fn#90384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11984:391, offset: 0x02037288, size: 72 bytes, params: 1, frame: 13
const value = a0;
const r3 = value !== undefined ? value : [];
const VOICE_PANEL_GUTTER = (Native).modules.mobile.VOICE_PANEL_GUTTER;
return VOICE_PANEL_GUTTER.resolve({enabledExperiments: r3});
}
}
function getCallTileGutter() { // fn#90383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11984:260, offset: 0x02037288, size: 72 bytes, params: 1, frame: 13
const value = a0;
const r3 = value !== undefined ? value : [];
const VOICE_PANEL_GUTTER = (importDefault(697) /* metro dependency 697: native */).modules.mobile.VOICE_PANEL_GUTTER;
return VOICE_PANEL_GUTTER.resolve({enabledExperiments: r3});
}
global.__d(_fun90382, 11798, [697, 2]) /* metro module 11798, dependencies: [697, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,374 +1,393 @@
/* Metro module 15483; source: modules/voice_panel/native/card/VoicePanelCardView.tsx; dependencies: [57, 31, 27, 4606, 11795, 11793, 15440, 11798, 4299, 33, 15484, 4017, 7739, 1357, 11794, 3860, 697, 11799, 11624, 4577, 15444, 6619, 8141, 4521, 15435, 566, 22, 3869, 1244, 4508, 2] */
import Module00022 from '../../../../by-id/module-00022.js'; /* Metro dependency 22 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import MobileVisualRefreshExperiment from '../../../themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
import ChannelRTCStore from '../../../calls/ChannelRTCStore.tsx'; /* Metro dependency 4606 */
import UseRefValue from '../../../../hooks/useRefValue.tsx'; /* Metro dependency 6619 */
import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */
import VoicePanelStateContext from '../VoicePanelStateContext.tsx'; /* Metro dependency 11794 */
import CalculateVoicePanelHeaderSpecs from '../header/calculateVoicePanelHeaderSpecs.tsx'; /* Metro dependency 11799 */
import VoicePanelCard from './VoicePanelCard.tsx'; /* Metro dependency 15484 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CallConstantsModule from '../../../calls/CallConstants.tsx'; /* Metro dependency 4299 */
import * as TransitionGroupModule from '../../../../design/components/TransitionGroup/TransitionGroup.tsx'; /* Metro dependency 4508 */
import * as FreezeModule from '../../../../by-id/module-04521-Freeze.jsx'; /* Metro dependency 4521 */
import * as SpringModule from '../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
import * as CheapWorkletShallowEqualModule from '../../../reanimated/native/cheapWorkletShallowEqual.tsx'; /* Metro dependency 7739 */
import * as VoicePanelControlsConstantsModule from '../controls/VoicePanelControlsConstants.tsx'; /* Metro dependency 11793 */
import * as VoicePanelConstantsModule from '../../VoicePanelConstants.tsx'; /* Metro dependency 11795 */
import * as VoicePanelCardConstantsModule from './VoicePanelCardConstants.tsx'; /* Metro dependency 11798 */
import * as UseVoicePanelParticipantsModule from '../hooks/useVoicePanelParticipants.tsx'; /* Metro dependency 15435 */
import * as VoicePanelPIPConstantsModule from '../pip/VoicePanelPIPConstants.tsx'; /* Metro dependency 15440 */
import * as VoicePanelPIPStateContextModule from '../pip/VoicePanelPIPStateContext.tsx'; /* Metro dependency 15444 */
function _fun118477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6, offset: 0x024dccee, size: 483 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const getCardKey = function({type, id}) {
return '' + type + '-' + id;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.StyleSheet;
const env0_6 = value2.View;
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
const voicePanelConstantsModule = require(11795) /* metro dependency 11795: VoicePanelConstants */;
const UI_SHOW_HIDE_PHYSICS = voicePanelConstantsModule.UI_SHOW_HIDE_PHYSICS;
const VOICE_PANEL_CHUNK_DIVISOR = voicePanelConstantsModule.VOICE_PANEL_CHUNK_DIVISOR;
const env0_8 = voicePanelConstantsModule.LAYOUT_PHYSICS;
const env0_9 = voicePanelConstantsModule.VoicePanelModes;
const env0_10 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes;
const env0_11 = (require(15440) /* metro dependency 15440: VoicePanelPIPConstants */).VoicePanelPIPModes;
const env0_12 = (require(11798) /* metro dependency 11798: VoicePanelCardConstants */).EDGE_GUTTER;
const env0_13 = (require(4299) /* metro dependency 4299: CallConstants */).isUserParticipant;
const env0_14 = (require(33) /* metro dependency 33 */).jsx;
object2 = {};
copyDataProperties(object2, UI_SHOW_HIDE_PHYSICS, undefined);
object2['mass'] = 1;
object2['restSpeedThreshold'] = 0.00001;
object2 = {start: 0, end: VOICE_PANEL_CHUNK_DIVISOR};
object2 = {code: 'function VoicePanelCardViewTsx1(){const{viewableChunks}=this.__closure;return viewableChunks.get();}'};
object2 = {code: 'function VoicePanelCardViewTsx2(newChunks,previous){const{cheapWorkletShallowEqual,runOnJS,updateValueIfChange}=this.__closure;if(cheapWorkletShallowEqual(newChunks,previous!==null&&previous!==void 0?previous:undefined))return;runOnJS(updateValueIfChange)(newChunks);}'};
object2 = {code: "function VoicePanelCardViewTsx3(){const{controlsSpecs,VoicePanelControlsModes,safeArea,EDGE_GUTTER,calculateVoicePanelHeaderSpecs,edgeGutter,connected,contentDimensions,windowDimensions,mode,VoicePanelModes,focused,isRefreshEnabled,roundToNearestPixel,withSpring,wrapperOffset,LAYOUT_PHYSICS,SCALE_PHYSICS,freeze}=this.__closure;const hidden=controlsSpecs.get().mode===VoicePanelControlsModes.HIDDEN;let height=0;let scale=1;let top=0;const safeAreaBottom=Math.max(safeArea.get().bottom,EDGE_GUTTER);const{height:headerBarHeight,paddingTop:safeAreaTop}=calculateVoicePanelHeaderSpecs(safeArea.get(),edgeGutter);if(connected.get()){height+=safeAreaTop;height+=contentDimensions.get().height;height+=safeAreaBottom;if(height-windowDimensions.get().height<8){height=windowDimensions.get().height;}if(mode.get()!==VoicePanelModes.PIP&&!hidden&&focused.get()==null){const targetHeight=height-headerBarHeight-EDGE_GUTTER-controlsSpecs.get().height-safeAreaBottom;const fullView=windowDimensions.get().height-safeAreaTop-safeAreaBottom;const controlsView=windowDimensions.get().height-headerBarHeight-controlsSpecs.get().height-safeAreaBottom;top=headerBarHeight;scale=function(){if(contentDimensions.get().height>targetHeight){return targetHeight/contentDimensions.get().height;}return isRefreshEnabled?windowDimensions.get().width/windowDimensions.get().width:(windowDimensions.get().width-48)/windowDimensions.get().width;}();if(contentDimensions.get().height<fullView&&contentDimensions.get().height>controlsView){const offsetOriginal=(fullView-contentDimensions.get().height)/2;const scaledContent=contentDimensions.get().height*scale;const scaledOffset=(controlsView-scaledContent)/2;top-=(offsetOriginal-scaledOffset)*scale;}if(contentDimensions.get().height>targetHeight){top+=(height*scale-height)/2;}else{top+=(targetHeight-(windowDimensions.get().height-safeAreaTop-safeAreaBottom))/2;}top-=safeAreaTop*scale;}}return{position:'relative',width:windowDimensions.get().width,height:roundToNearestPixel(height),transform:[{translateY:withSpring(top+wrapperOffset.get().y,wrapperOffset.get().gestureActive||mode.get()===VoicePanelModes.PIP?LAYOUT_PHYSICS:SCALE_PHYSICS)},{scale:withSpring(scale,SCALE_PHYSICS)}],opacity:freeze?0:1};}"};
let value = ReactModule;
const UI_SHOW_HIDE_PHYSICS = VoicePanelConstantsModule.UI_SHOW_HIDE_PHYSICS;
const VOICE_PANEL_CHUNK_DIVISOR = VoicePanelConstantsModule.VOICE_PANEL_CHUNK_DIVISOR;
object = {};
copyDataProperties(object, UI_SHOW_HIDE_PHYSICS, undefined);
object['mass'] = 1;
object['restSpeedThreshold'] = 0.00001;
object = {start: 0, end: VOICE_PANEL_CHUNK_DIVISOR};
object = {code: 'function VoicePanelCardViewTsx1(){const{viewableChunks}=this.__closure;return viewableChunks.get();}'};
object = {code: 'function VoicePanelCardViewTsx2(newChunks,previous){const{cheapWorkletShallowEqual,runOnJS,updateValueIfChange}=this.__closure;if(cheapWorkletShallowEqual(newChunks,previous!==null&&previous!==void 0?previous:undefined))return;runOnJS(updateValueIfChange)(newChunks);}'};
object = {code: "function VoicePanelCardViewTsx3(){const{controlsSpecs,VoicePanelControlsModes,safeArea,EDGE_GUTTER,calculateVoicePanelHeaderSpecs,edgeGutter,connected,contentDimensions,windowDimensions,mode,VoicePanelModes,focused,isRefreshEnabled,roundToNearestPixel,withSpring,wrapperOffset,LAYOUT_PHYSICS,SCALE_PHYSICS,freeze}=this.__closure;const hidden=controlsSpecs.get().mode===VoicePanelControlsModes.HIDDEN;let height=0;let scale=1;let top=0;const safeAreaBottom=Math.max(safeArea.get().bottom,EDGE_GUTTER);const{height:headerBarHeight,paddingTop:safeAreaTop}=calculateVoicePanelHeaderSpecs(safeArea.get(),edgeGutter);if(connected.get()){height+=safeAreaTop;height+=contentDimensions.get().height;height+=safeAreaBottom;if(height-windowDimensions.get().height<8){height=windowDimensions.get().height;}if(mode.get()!==VoicePanelModes.PIP&&!hidden&&focused.get()==null){const targetHeight=height-headerBarHeight-EDGE_GUTTER-controlsSpecs.get().height-safeAreaBottom;const fullView=windowDimensions.get().height-safeAreaTop-safeAreaBottom;const controlsView=windowDimensions.get().height-headerBarHeight-controlsSpecs.get().height-safeAreaBottom;top=headerBarHeight;scale=function(){if(contentDimensions.get().height>targetHeight){return targetHeight/contentDimensions.get().height;}return isRefreshEnabled?windowDimensions.get().width/windowDimensions.get().width:(windowDimensions.get().width-48)/windowDimensions.get().width;}();if(contentDimensions.get().height<fullView&&contentDimensions.get().height>controlsView){const offsetOriginal=(fullView-contentDimensions.get().height)/2;const scaledContent=contentDimensions.get().height*scale;const scaledOffset=(controlsView-scaledContent)/2;top-=(offsetOriginal-scaledOffset)*scale;}if(contentDimensions.get().height>targetHeight){top+=(height*scale-height)/2;}else{top+=(targetHeight-(windowDimensions.get().height-safeAreaTop-safeAreaBottom))/2;}top-=safeAreaTop*scale;}}return{position:'relative',width:windowDimensions.get().width,height:roundToNearestPixel(height),transform:[{translateY:withSpring(top+wrapperOffset.get().y,wrapperOffset.get().gestureActive||mode.get()===VoicePanelModes.PIP?LAYOUT_PHYSICS:SCALE_PHYSICS)},{scale:withSpring(scale,SCALE_PHYSICS)}],opacity:freeze?0:1};}"};
value = value.memo(VoicePanelCardView);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCardView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelCardView.tsx');
exports.default = value;
}
function renderCard_118479(a0, a1, a2, a3) { // fn#118479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:480, offset: 0x024dced1, size: 66 bytes, params: 5, frame: 15
return ((Component) => <Component item={a1} transitionState={a2} cleanUp={a3} key={a0} />)(importDefault(15484) /* metro dependency 15484: VoicePanelCard */);
}
function CardContentFreezer({children}) { // fn#118480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3230, offset: 0x024dcf13, size: 90 bytes, params: 2, frame: 16
const value = useLazyContentFreeze();
return env0_4.useMemo(_fun118487, [useSpacerStyles(value), value, children]);
}
function VoicePanelCardView({viewableChunks}) { // fn#118488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5295, offset: 0x024dd6db, size: 244 bytes, params: 2, frame: 19
const binding = env0_4;
const useContext = binding.useContext;
const channelId = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).channelId;
const value3 = (require(15435) /* metro dependency 15435: useVoicePanelParticipants */).useChunkedParticipants(channelId,
useViewableChunkState(viewableChunks));
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelRTCStore],
_fun118494, [channelId]);
const env0_3 = env0_4.useRef(value4);
env0_4.useEffect(_fun118496, [value4, channelId]);
return env0_4.useMemo(_fun118498, [value3]);
}
function useLazyContentFreeze() { // fn#118481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3278, owner: CardContentFreezer.useLazyContentFreeze, offset: 0x024dcf6d, size: 191 bytes, params: 1, frame: 19
var environment;
const value = environment.__proto__;
const voicePanelPIPStateContextModule = require(15444) /* metro dependency 15444: VoicePanelPIPStateContext */;
const usePIPState = voicePanelPIPStateContextModule.usePIPState;
const mode = Reflect.apply(usePIPState, voicePanelPIPStateContextModule, []).mode;
const binding = env1_4;
const useRef = binding.useRef;
let IN_APP = VoicePanelPIPModes.IN_APP;
const value2 = Reflect.apply(useRef, binding, [mode === IN_APP]);
const env0_2 = env1_3(env1_4.useState({}), 2)[1];
env1_4.useEffect(_fun118482, [mode]);
const value5 = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value2);
IN_APP = VoicePanelPIPModes.IN_APP;
return mode === IN_APP && value5;
}
function useSpacerStyles(a0) { // fn#118485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3589, owner: CardContentFreezer.useSpacerStyles, offset: 0x024dd0ac, size: 436 bytes, params: 2, frame: 28
const env0_0 = a0;
const value2 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('VoicePanelCardView');
const {connected, controlsSpecs, safeArea, contentDimensions, windowDimensions, mode, focused,
wrapperOffset} = env1_4.useContext(importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */);
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const VOICE_PANEL_GUTTER = (importDefault(697) /* metro dependency 697: native */).modules.mobile.VOICE_PANEL_GUTTER;
const value4 = Reflect.apply(useToken, useTokenModule, [VOICE_PANEL_GUTTER]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = useSpacerStylesO;
const object2 = {controlsSpecs: controlsSpecs};
object2.VoicePanelControlsModes = VoicePanelControlsModes;
object2.safeArea = safeArea;
object2.EDGE_GUTTER = EDGE_GUTTER;
object2.calculateVoicePanelHeaderSpecs = importDefault(11799) /* metro dependency 11799: calculateVoicePanelHeaderSpecs */;
object2.edgeGutter = value4;
object2.connected = connected;
object2.contentDimensions = contentDimensions;
object2.windowDimensions = windowDimensions;
object2.mode = mode;
object2.VoicePanelModes = VoicePanelModes;
object2.focused = focused;
object2.isRefreshEnabled = value2;
object2.roundToNearestPixel = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.wrapperOffset = wrapperOffset;
object2.LAYOUT_PHYSICS = LAYOUT_PHYSICS;
object2.SCALE_PHYSICS = env1_15;
object2.freeze = a0;
closure.__closure = object2;
closure.__workletHash = 495797244676;
closure.__initData = env1_19;
return Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
}
function _fun118487() { // fn#118487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5143, offset: 0x024dd649, size: 146 bytes, params: 1, frame: 22
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
const defaultImportProps = {style: env0_2};
const Freeze = (require(4521) /* metro dependency 4521 */).Freeze;
return (
<ReanimatedNativeView {...defaultImportProps}>
<Freeze freeze={env0_1}>
<View collapsable={false} style={StyleSheet.absoluteFill}>
{children}
</View>
</Freeze>
</ReanimatedNativeView>
);
}
function useViewableChunkState(a0) { // fn#118489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5384, owner: VoicePanelCardView.useViewableChunkState, offset: 0x024dd7cf, size: 261 bytes, params: 2, frame: 22
var object2;
const env0_0 = a0;
let binding = env1_4;
const [property, env0_1] = env1_3(binding.useState(env1_16), 2);
binding = env1_4;
let closure = _fun118490;
const value4 = binding.useCallback(closure, []);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
closure = useViewableChunkStateH;
closure.__closure = {viewableChunks: a0};
closure.__workletHash = 1074173860641;
closure.__initData = env1_17;
const closure2 = useViewableChunkStateS;
object2 = {};
object2.cheapWorkletShallowEqual = (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual;
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.updateValueIfChange = value4;
closure2.__closure = object2;
closure2.__workletHash = 13543715159803;
closure2.__initData = env1_18;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
return property;
}
function _fun118494() { // fn#118494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6016, offset: 0x024dd98c, size: 46 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
const getParticipants = ChannelRTCStore.getParticipants;
return Reflect.apply(getParticipants, ChannelRTCStore, [channelId]).filter(function(a0) {
return isUserParticipant(a0);
});
}
function _fun118496() { // fn#118496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6099, offset: 0x024dd9cd, size: 258 bytes, params: 1, frame: 20
var user;
var defaultImport2;
var value3;
var length;
var value4;
var AccessibilityAnnouncer;
var announce;
var intl;
const defaultImport = importDefault(22) /* metro dependency 22 */;
if (!defaultImport.isEqual(env0_3.current, env0_2)) {
defaultImport2 = defaultImport;
value3 = defaultImport2.differenceWith(env0_3.current, env0_2, function({id}, a1) {
return id === a1.id;
});
length = value3.length;
value4 = null;
user = length > 0 ? value3[0].user : value4;
if (value4 != user) {
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
announce = AccessibilityAnnouncer.announce;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
Reflect.apply(announce, AccessibilityAnnouncer,
[intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9NqwWZ'],
{username: user.username})]);
}
function renderCard_118479(a0, a1, a2, a3) { // fn#118479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:480, offset: 0x024dced1, size: 66 bytes, params: 5, frame: 15
return ((Component) => <Component item={a1} transitionState={a2} cleanUp={a3} key={a0} />)(VoicePanelCard);
}
env0_3.current = env0_2;
}
function _fun118498() { // fn#118498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6392, offset: 0x024ddae5, size: 102 bytes, params: 1, frame: 17
const TransitionGroup = (require(4508) /* metro dependency 4508: TransitionGroup */).TransitionGroup;
return (
<CardContentFreezer>
<TransitionGroup
items={env0_1}
renderItem={renderCard_118479}
getItemKey={getCardKey}
lazyCleanUpDelay={1000}
/>
</CardContentFreezer>
);
}
function CardContentFreezer({children}) { // fn#118480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3230, offset: 0x024dcf13, size: 90 bytes, params: 2, frame: 16
const value = useLazyContentFreeze();
return env0_4.useMemo(_fun118487, [useSpacerStyles(value), value, children]);
function useLazyContentFreeze() { // fn#118481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3278, owner: CardContentFreezer.useLazyContentFreeze, offset: 0x024dcf6d, size: 191 bytes, params: 1, frame: 19
var environment;
const value = environment.__proto__;
const usePIPState = VoicePanelPIPStateContextModule.usePIPState;
const mode = Reflect.apply(usePIPState, VoicePanelPIPStateContextModule, []).mode;
const binding = env1_4;
const useRef = binding.useRef;
let IN_APP = VoicePanelPIPModes.IN_APP;
const value2 = Reflect.apply(useRef, binding, [mode === IN_APP]);
const env0_2 = env1_3(env1_4.useState({}), 2)[1];
env1_4.useEffect(_fun118482, [mode]);
const value5 = (UseRefValue)(value2);
IN_APP = VoicePanelPIPModes.IN_APP;
return mode === IN_APP && value5;
function _fun118482() { // fn#118482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3411, offset: 0x024dd02c, size: 84 bytes, params: 1, frame: 14
const modeBinding = mode;
const IN_APP = VoicePanelPIPModes.IN_APP;
if (modeBinding === IN_APP) {
var env0_0 = global.setTimeout(_fun118483, 700);
return _fun118484;
}
env0_1.current = false;
function _fun118483() { // fn#118483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3451, offset: 0x024dd080, size: 44 bytes, params: 1, frame: 11
if (!env1_1.current) {
env1_1.current = true;
env1_2({});
}
}
function _fun118482() { // fn#118482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3411, offset: 0x024dd02c, size: 84 bytes, params: 1, frame: 14
const modeBinding = mode;
const IN_APP = VoicePanelPIPModes.IN_APP;
if (modeBinding === IN_APP) {
var env0_0 = global.setTimeout(_fun118483, 700);
return _fun118484;
}
env0_1.current = false;
}
function _fun118484() { // fn#118484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3501, offset: 0x00e59c84, size: 24 bytes, params: 1, frame: 11
global.clearTimeout(env0_0);
}
function useSpacerStylesO() { // fn#118486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3909, owner: CardContentFreezer.useSpacerStyles.o, offset: 0x024dd260, size: 1001 bytes, params: 1, frame: 29
var r5;
var r4;
var r11;
var r13;
var r7;
var r8;
var r9;
var value9;
var contentDimensionsBinding;
var value10;
var windowDimensionsBinding;
var value14;
var value15;
var value16;
var value17;
var value18;
var value23;
var value25;
let controlsSpecsBinding = controlsSpecs;
let get = controlsSpecsBinding.get;
const mode2 = Reflect.apply(get, controlsSpecsBinding, []).mode;
const HIDDEN = VoicePanelControlsModes.HIDDEN;
const Math = global.Math;
const max = Math.max;
const safeAreaBinding = safeArea;
get = safeAreaBinding.get;
const value3 = Reflect.apply(max, Math, [Reflect.apply(get, safeAreaBinding, []).bottom, EDGE_GUTTER]);
let {height,
paddingTop} = (importDefault(11799) /* metro dependency 11799: calculateVoicePanelHeaderSpecs */)(safeAreaBinding.get(),
env0_10);
const value6 = connected.get();
const value7 = 0;
const value8 = 1;
if (value6) {
value9 = value7 + paddingTop;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value10 = value9 + Reflect.apply(get, contentDimensionsBinding, []).height + value3;
get = windowDimensions.get;
if (value10 - Reflect.apply(get, windowDimensionsBinding, []).height < 8) {
windowDimensionsBinding = windowDimensions;
r5 = windowDimensionsBinding.get().height;
} else {
r5 = value10;
}
if (mode.get() === VoicePanelModes.PIP) {
r7 = value7;
r8 = r5;
r9 = value8;
} else if (mode2 === HIDDEN) {
r7 = value7;
r8 = r5;
r9 = value8;
} else if (focused.get() == null) {
value14 = r5 - height - EDGE_GUTTER;
controlsSpecsBinding = controlsSpecs;
get = controlsSpecsBinding.get;
value15 = value14 - Reflect.apply(get, controlsSpecsBinding, []).height - value3;
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
value16 = Reflect.apply(get, windowDimensionsBinding, []).height - paddingTop - value3;
get = windowDimensionsBinding.get;
value17 = Reflect.apply(get, windowDimensionsBinding, []).height - height;
get = controlsSpecsBinding.get;
value18 = value17 - Reflect.apply(get, controlsSpecsBinding, []).height - value3;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
r4 = Reflect.apply(get, contentDimensionsBinding,
[]).height > value15 ? value15 / contentDimensions.get().height : env0_1 ? windowDimensions.get().width / windowDimensions.get().width : (windowDimensions.get().width - 48) / windowDimensions.get().width;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value23 = Reflect.apply(get, contentDimensionsBinding, []).height < value16;
if (value23) {
contentDimensionsBinding = contentDimensions;
r11 = contentDimensionsBinding.get().height > value18;
} else {
r11 = value23;
}
if (r11) {
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value25 = (value16 - Reflect.apply(get, contentDimensionsBinding, []).height) / 2;
get = contentDimensionsBinding.get;
r13 = height - (value25 - (value18 - Reflect.apply(get, contentDimensionsBinding,
[]).height * r4) / 2) * r4;
} else {
r13 = height;
}
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
height = Reflect.apply(get, contentDimensionsBinding, []).height;
r11 = height > value15 ? r13 + (r5 * r4 - r5) / 2 : r13 + (value15 - (windowDimensions.get().height - paddingTop - value3)) / 2;
r7 = r11 - paddingTop * r4;
r8 = r5;
r9 = r4;
} else {
r7 = value7;
r8 = r5;
r9 = value8;
}
} else {
r7 = value7;
r8 = value7;
r9 = value8;
function useSpacerStyles(a0) { // fn#118485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3589, owner: CardContentFreezer.useSpacerStyles, offset: 0x024dd0ac, size: 436 bytes, params: 2, frame: 28
const env0_0 = a0;
const value2 = (MobileVisualRefreshExperiment)('VoicePanelCardView');
const {connected, controlsSpecs, safeArea, contentDimensions, windowDimensions, mode, focused,
wrapperOffset} = env1_4.useContext(VoicePanelStateContext);
const useToken = UseTokenModule.useToken;
const VOICE_PANEL_GUTTER = (Native).modules.mobile.VOICE_PANEL_GUTTER;
const value4 = Reflect.apply(useToken, UseTokenModule, [VOICE_PANEL_GUTTER]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const useSpacerStylesO2 = useSpacerStylesO;
const object = {controlsSpecs: controlsSpecs};
object.VoicePanelControlsModes = VoicePanelControlsModes;
object.safeArea = safeArea;
object.EDGE_GUTTER = EDGE_GUTTER;
object.calculateVoicePanelHeaderSpecs = importDefault(11799) /* metro dependency 11799: calculateVoicePanelHeaderSpecs */;
object.edgeGutter = value4;
object.connected = connected;
object.contentDimensions = contentDimensions;
object.windowDimensions = windowDimensions;
object.mode = mode;
object.VoicePanelModes = VoicePanelModes;
object.focused = focused;
object.isRefreshEnabled = value2;
object.roundToNearestPixel = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.wrapperOffset = wrapperOffset;
object.LAYOUT_PHYSICS = LAYOUT_PHYSICS;
object.SCALE_PHYSICS = env1_15;
object.freeze = a0;
useSpacerStylesO2.__closure = object;
useSpacerStylesO2.__workletHash = 495797244676;
useSpacerStylesO2.__initData = env1_19;
return Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [useSpacerStylesO2]);
function useSpacerStylesO() { // fn#118486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3909, owner: CardContentFreezer.useSpacerStyles.o, offset: 0x024dd260, size: 1001 bytes, params: 1, frame: 29
var r5;
var r4;
var r11;
var r13;
var r7;
var r8;
var r9;
var value9;
var contentDimensionsBinding;
var value10;
var windowDimensionsBinding;
var value14;
var value15;
var value16;
var value17;
var value18;
var value23;
var value25;
let controlsSpecsBinding = controlsSpecs;
let get = controlsSpecsBinding.get;
const mode2 = Reflect.apply(get, controlsSpecsBinding, []).mode;
const HIDDEN = VoicePanelControlsModes.HIDDEN;
const Math = global.Math;
const max = Math.max;
const safeAreaBinding = safeArea;
get = safeAreaBinding.get;
const value3 = Reflect.apply(max, Math, [Reflect.apply(get, safeAreaBinding, []).bottom, EDGE_GUTTER]);
let {height,
paddingTop} = (CalculateVoicePanelHeaderSpecs)(safeAreaBinding.get(),
VoicePanelControlsConstantsModule.VoicePanelControlsModes);
const value6 = connected.get();
const value7 = 0;
const value8 = 1;
if (value6) {
value9 = value7 + paddingTop;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value10 = value9 + Reflect.apply(get, contentDimensionsBinding, []).height + value3;
get = windowDimensions.get;
if (value10 - Reflect.apply(get, windowDimensionsBinding, []).height < 8) {
windowDimensionsBinding = windowDimensions;
r5 = windowDimensionsBinding.get().height;
} else {
r5 = value10;
}
if (mode.get() === VoicePanelModes.PIP) {
r7 = value7;
r8 = r5;
r9 = value8;
} else if (mode2 === HIDDEN) {
r7 = value7;
r8 = r5;
r9 = value8;
} else if (focused.get() == null) {
value14 = r5 - height - EDGE_GUTTER;
controlsSpecsBinding = controlsSpecs;
get = controlsSpecsBinding.get;
value15 = value14 - Reflect.apply(get, controlsSpecsBinding, []).height - value3;
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
value16 = Reflect.apply(get, windowDimensionsBinding, []).height - paddingTop - value3;
get = windowDimensionsBinding.get;
value17 = Reflect.apply(get, windowDimensionsBinding, []).height - height;
get = controlsSpecsBinding.get;
value18 = value17 - Reflect.apply(get, controlsSpecsBinding, []).height - value3;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
r4 = Reflect.apply(get, contentDimensionsBinding,
[]).height > value15 ? value15 / contentDimensions.get().height : env0_1 ? windowDimensions.get().width / windowDimensions.get().width : (windowDimensions.get().width - 48) / windowDimensions.get().width;
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value23 = Reflect.apply(get, contentDimensionsBinding, []).height < value16;
if (value23) {
contentDimensionsBinding = contentDimensions;
r11 = contentDimensionsBinding.get().height > value18;
} else {
r11 = value23;
}
if (r11) {
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
value25 = (value16 - Reflect.apply(get, contentDimensionsBinding, []).height) / 2;
get = contentDimensionsBinding.get;
r13 = height - (value25 - (value18 - Reflect.apply(get, contentDimensionsBinding,
[]).height * r4) / 2) * r4;
} else {
r13 = height;
}
contentDimensionsBinding = contentDimensions;
get = contentDimensionsBinding.get;
height = Reflect.apply(get, contentDimensionsBinding, []).height;
r11 = height > value15 ? r13 + (r5 * r4 - r5) / 2 : r13 + (value15 - (windowDimensions.get().height - paddingTop - value3)) / 2;
r7 = r11 - paddingTop * r4;
r8 = r5;
r9 = r4;
} else {
r7 = value7;
r8 = r5;
r9 = value8;
}
} else {
r7 = value7;
r8 = value7;
r9 = value8;
}
const object = {position: 'relative'};
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object.width = Reflect.apply(get, windowDimensionsBinding, []).width;
object.height = (importDefault(11624) /* metro dependency 11624: roundToNearestPixel */)(r8);
const withSpring = SpringModule.withSpring;
const wrapperOffsetBinding = wrapperOffset;
get = wrapperOffsetBinding.get;
const value30 = r7 + Reflect.apply(get, wrapperOffsetBinding, []).y;
get = wrapperOffsetBinding.get;
const items2 = [{translateY: Reflect.apply(withSpring, SpringModule, [value30, Reflect.apply(get,
wrapperOffsetBinding, []).gestureActive || mode.get() === VoicePanelModes.PIP ? LAYOUT_PHYSICS : env2_15])}];
const object3 = {};
object3.scale = SpringModule.withSpring(r9, env2_15);
items2[1] = object3;
object.transform = items2;
object.opacity = env0_0 ? value7 : value8;
return object;
}
}
function _fun118487() { // fn#118487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5143, offset: 0x024dd649, size: 146 bytes, params: 1, frame: 22
const defaultImportProps = {style: env0_2};
const Freeze = (FreezeModule).Freeze;
return (
<ReanimatedNativeView {...defaultImportProps}>
<Freeze freeze={env0_1}>
<View collapsable={false} style={StyleSheet.absoluteFill}>
{children}
</View>
</Freeze>
</ReanimatedNativeView>
);
}
}
const object2 = {position: 'relative'};
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object2.width = Reflect.apply(get, windowDimensionsBinding, []).width;
object2.height = (importDefault(11624) /* metro dependency 11624: roundToNearestPixel */)(r8);
const springModule = require(4577) /* metro dependency 4577: spring */;
const withSpring = springModule.withSpring;
const wrapperOffsetBinding = wrapperOffset;
get = wrapperOffsetBinding.get;
const value30 = r7 + Reflect.apply(get, wrapperOffsetBinding, []).y;
get = wrapperOffsetBinding.get;
const items2 = [{translateY: Reflect.apply(withSpring, springModule, [value30, Reflect.apply(get,
wrapperOffsetBinding, []).gestureActive || mode.get() === VoicePanelModes.PIP ? LAYOUT_PHYSICS : env2_15])}];
const object4 = {};
object4.scale = springModule.withSpring(r9, env2_15);
items2[1] = object4;
object2.transform = items2;
object2.opacity = env0_0 ? value7 : value8;
return object2;
}
function _fun118490(a0) { // fn#118490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5482, offset: 0x024dd8d4, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env0_1(_fun118491);
}
function VoicePanelCardView({viewableChunks}) { // fn#118488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5295, offset: 0x024dd6db, size: 244 bytes, params: 2, frame: 19
const binding = env0_4;
const useContext = binding.useContext;
const channelId = Reflect.apply(useContext, binding,
[VoicePanelStateContext]).channelId;
const value3 = (UseVoicePanelParticipantsModule).useChunkedParticipants(channelId,
useViewableChunkState(viewableChunks));
const value4 = (FluxModule).useStateFromStoresArray([ChannelRTCStore],
_fun118494, [channelId]);
const env0_3 = env0_4.useRef(value4);
env0_4.useEffect(_fun118496, [value4, channelId]);
return env0_4.useMemo(_fun118498, [value3]);
function useViewableChunkState(a0) { // fn#118489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5384, owner: VoicePanelCardView.useViewableChunkState, offset: 0x024dd7cf, size: 261 bytes, params: 2, frame: 22
const env0_0 = a0;
let binding = env1_4;
const [property, env0_1] = env1_3(binding.useState(env1_16), 2);
binding = env1_4;
let closure = _fun118490;
const value4 = binding.useCallback(closure, []);
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = useViewableChunkStateH;
closure.__closure = {viewableChunks: a0};
closure.__workletHash = 1074173860641;
closure.__initData = env1_17;
const useViewableChunkStateS2 = useViewableChunkStateS;
object = {};
object.cheapWorkletShallowEqual = (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual;
object.runOnJS = ReanimatedRexportModule.runOnJS;
object.updateValueIfChange = value4;
useViewableChunkStateS2.__closure = object;
useViewableChunkStateS2.__workletHash = 13543715159803;
useViewableChunkStateS2.__initData = env1_18;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, useViewableChunkStateS2]);
return property;
function _fun118490(a0) { // fn#118490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5482, offset: 0x024dd8d4, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env0_1(_fun118491);
function _fun118491(a0) { // fn#118491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5489, offset: 0x024dd8f4, size: 48 bytes, params: 2, frame: 4
const value = a0;
return value.start !== env0_0.start ? env0_0 : value.end === env0_0.end ? value : env0_0;
}
}
function useViewableChunkStateH() { // fn#118492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5577, owner: VoicePanelCardView.useViewableChunkState.h, offset: 0x01c3cd06, size: 18 bytes, params: 1, frame: 9
return env0_0.get();
}
function useViewableChunkStateS(a0, a1) { // fn#118493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5670, owner: VoicePanelCardView.useViewableChunkState.s, offset: 0x024dd924, size: 104 bytes, params: 3, frame: 17
let value = a1;
const value3 = undefined;
if (!CheapWorkletShallowEqualModule.cheapWorkletShallowEqual(a0, value ?? value3)) {
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_2)(a0);
}
return value3;
}
}
function _fun118494() { // fn#118494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6016, offset: 0x024dd98c, size: 46 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
const channelRTCStoreBinding = ChannelRTCStore;
const getParticipants = channelRTCStoreBinding.getParticipants;
return Reflect.apply(getParticipants, channelRTCStoreBinding, [channelId]).filter(function(a0) {
return isUserParticipant(a0);
});
}
function _fun118496() { // fn#118496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6099, offset: 0x024dd9cd, size: 258 bytes, params: 1, frame: 20
var user;
var defaultImport2;
var value3;
var length;
var value4;
var AccessibilityAnnouncer;
var announce;
var intl;
const defaultImport = Module00022;
if (!defaultImport.isEqual(env0_3.current, env0_2)) {
defaultImport2 = defaultImport;
value3 = defaultImport2.differenceWith(env0_3.current, env0_2, function({id}, a1) {
return id === a1.id;
});
length = value3.length;
value4 = null;
user = length > 0 ? value3[0].user : value4;
if (value4 != user) {
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
announce = AccessibilityAnnouncer.announce;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
Reflect.apply(announce, AccessibilityAnnouncer,
[intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9NqwWZ'],
{username: user.username})]);
}
}
env0_3.current = env0_2;
}
function _fun118498() { // fn#118498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:6392, offset: 0x024ddae5, size: 102 bytes, params: 1, frame: 17
const TransitionGroup = (TransitionGroupModule).TransitionGroup;
return (
<CardContentFreezer>
<TransitionGroup
items={env0_1}
renderItem={renderCard_118479}
getItemKey={getCardKey}
lazyCleanUpDelay={1000}
/>
</CardContentFreezer>
);
}
function useViewableChunkStateS(a0, a1) { // fn#118493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5670, owner: VoicePanelCardView.useViewableChunkState.s, offset: 0x024dd924, size: 104 bytes, params: 3, frame: 17
let value = a1;
const value3 = undefined;
const cheapWorkletShallowEqualModule = require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */;
if (!cheapWorkletShallowEqualModule.cheapWorkletShallowEqual(a0, value ?? value3)) {
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_2)(a0);
}
return value3;
}
function _fun118483() { // fn#118483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:3451, offset: 0x024dd080, size: 44 bytes, params: 1, frame: 11
if (!env1_1.current) {
env1_1.current = true;
env1_2({});
}
}
function _fun118491(a0) { // fn#118491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15680:5489, offset: 0x024dd8f4, size: 48 bytes, params: 2, frame: 4
const value = a0;
return value.start !== env0_0.start ? env0_0 : value.end === env0_0.end ? value : env0_0;
}
global.__d(_fun118477, 15483, [57, 31, 27, 4606, 11795, 11793, 15440, 11798, 4299, 33, 15484, 4017, 7739, 1357,
11794, 3860, 697, 11799, 11624, 4577, 15444, 6619, 8141, 4521, 15435, 566, 22, 3869, 1244, 4508,
2]) /* metro module 15483, dependencies: [57, 31, 27, 4606, 11795, 11793, 15440, 11798, 4299, 33, 15484, 4017, 7739, 1357, 11794, 3860, 697, 11799, 11624, 4577, 15444, 6619, 8141, 4521, 15435, 566, 22, 3869, 1244, 4508, 2] */;
@@ -1,63 +1,76 @@
/* Metro module 15493; source: modules/voice_panel/native/card/VoicePanelNoVideoParticipantsCard.tsx; dependencies: [31, 27, 33, 4501, 697, 11794, 7712, 6821, 4573, 1244, 2] */
import NativeView from '../../../core/native/NativeView.tsx'; /* Metro dependency 6821 */
import VoicePanelStateContext from '../VoicePanelStateContext.tsx'; /* Metro dependency 11794 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun118632(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15690:6, offset: 0x024e55b0, size: 347 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).Pressable;
const value2 = require(33) /* metro dependency 33 */;
const env0_5 = value2.jsx;
const env0_6 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const VOICE_VIDEO_VIDEO_TILE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_VIDEO_VIDEO_TILE_BACKGROUND;
object2.container = {'width': '100%', 'height': '100%', 'alignItems': 'center', 'justifyContent': 'center',
object.container = {'width': '100%', 'height': '100%', 'alignItems': 'center', 'justifyContent': 'center',
'padding': 16, backgroundColor: VOICE_VIDEO_VIDEO_TILE_BACKGROUND};
object2.label = {'marginBottom': 16, 'textAlign': 'center'};
const object4 = {'paddingHorizontal': 20, 'paddingVertical': 12, 'backgroundColor': 'white'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.button = object4;
object.label = {'marginBottom': 16, 'textAlign': 'center'};
const object3 = {'paddingHorizontal': 20, 'paddingVertical': 12, 'backgroundColor': 'white'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.button = object3;
const PRIMARY_860 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_860;
object2.buttonText = {color: PRIMARY_860};
const env0_7 = Reflect.apply(createStyles, createStylesModule, [object2]);
object.buttonText = {color: PRIMARY_860};
const env0_7 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(VoicePanelNoVideoParticipantsCard);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelNoVideoParticipantsCard.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/card/VoicePanelNoVideoParticipantsCard.tsx');
exports.default = value;
}
function VoicePanelNoVideoParticipantsCard() { // fn#118633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15690:557, offset: 0x024e570b, size: 421 bytes, params: 1, frame: 26
const binding = env0_3;
const useContext = binding.useContext;
const channelId = Reflect.apply(useContext, binding,
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).channelId;
const styles = useStyles();
const value2 = binding.useCallback(_fun118634, [channelId]);
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 text = <Text style={styles.label} variant="text-md/semibold" color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8eBJ73'])}</Text>;
return (
<NativeView style={styles.container}>
{text}
<Pressable
style={styles.button}
onPress={value2}
accessibilityRole="button"
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kLQySL)}
function VoicePanelNoVideoParticipantsCard() { // fn#118633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15690:557, offset: 0x024e570b, size: 421 bytes, params: 1, frame: 26
const binding = env0_3;
const useContext = binding.useContext;
const channelId = Reflect.apply(useContext, binding,
[VoicePanelStateContext]).channelId;
const styles = useStyles();
const value2 = binding.useCallback(_fun118634, [channelId]);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const text = (
<Text
style={styles.label}
variant="text-md/semibold"
color="always-white"
>
<Text variant="text-sm/semibold" style={styles.buttonText}>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kLQySL)}
</Text>
</Pressable>
</NativeView>
);
}
{intl.string((IndexNativeModule).t['8eBJ73'])}
</Text>
);
return (
<NativeView style={styles.container}>
{text}
<Pressable
style={styles.button}
onPress={value2}
accessibilityRole="button"
accessibilityLabel={intl.string((IndexNativeModule).t.kLQySL)}
>
<Text variant="text-sm/semibold" style={styles.buttonText}>
{intl.string((IndexNativeModule).t.kLQySL)}
</Text>
</Pressable>
</NativeView>
);
function _fun118634() { // fn#118634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15690:663, offset: 0x024e58b0, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
value.toggleVoiceParticipantsHidden(channelId, false);
}
}
function _fun118634() { // fn#118634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15690:663, offset: 0x024e58b0, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
value.toggleVoiceParticipantsHidden(channelId, false);
}
global.__d(_fun118632, 15493, [31, 27, 33, 4501, 697, 11794, 7712, 6821, 4573, 1244,
2]) /* metro module 15493, dependencies: [31, 27, 33, 4501, 697, 11794, 7712, 6821, 4573, 1244, 2] */;
File diff suppressed because it is too large. Load diff