Files
discord-decomp/sources/modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx
T
2026-07-27 16:20:00 +03:00

29 lines
1.7 KiB
TypeScript

/* Metro module 15232; source: modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx; dependencies: [661, 8871, 7709, 2] */
function _fun116526(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15429:6, offset: 0x0248cbf8, size: 196 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const MEDIA_MODAL_KEY = (require(661) /* metro dependency 661: Constants */).MEDIA_MODAL_KEY;
const {OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY,
OAUTH2_SUCCESS_RESULT_MODAL_KEY} = require(8871) /* metro dependency 8871: Constants */;
const Set = global.Set;
const set = new Set([MEDIA_MODAL_KEY, OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY,
OAUTH2_ERROR_RESULT_MODAL_KEY]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx');
exports.shouldExcludeSafeAreaForModalKey = shouldExcludeSafeAreaForModalKey;
}
function shouldExcludeSafeAreaForModalKey(a0) { // fn#116527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15429:384, offset: 0x0248ccbc, size: 76 bytes, params: 2, frame: 14
var r0;
var isVoiceChannelModalKey2;
const value = a0 != null;
if (value) {
isVoiceChannelModalKey2 = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).isVoiceChannelModalKey(a0);
r0 = isVoiceChannelModalKey2 ? !!isVoiceChannelModalKey2 : env0_2.has(a0);
} else {
r0 = value;
}
return r0;
}