Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
// Module ID: 17025
|
|
// Function ID: 17026
|
|
// Name: shouldExcludeSafeAreaForModalKey
|
|
// Dependencies: [1074, 9706, 8485, 4846, 2]
|
|
// Exports: shouldExcludeSafeAreaForModalKey
|
|
|
|
// Module 17025 (shouldExcludeSafeAreaForModalKey)
|
|
import Constants2 from "Constants" /* 1074 */;
|
|
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4846 */;
|
|
import SharePreparingModalConstants from "SharePreparingModalConstants" /* 8485 */;
|
|
import Constants from "Constants" /* 9706 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY } = Constants);
|
|
const items = [Constants2.MEDIA_MODAL_KEY, OAUTH2_AUTHORIZE_MODAL_KEY, OAUTH2_SUCCESS_RESULT_MODAL_KEY, OAUTH2_ERROR_RESULT_MODAL_KEY, SharePreparingModalConstants.SHARE_PREPARING_MODAL_KEY];
|
|
const set = new Set(items);
|
|
const result = size.fileFinishedImporting("modules/safe_area/shouldExcludeSafeAreaForModalKey.native.tsx");
|
|
|
|
export const shouldExcludeSafeAreaForModalKey = function shouldExcludeSafeAreaForModalKey(key) {
|
|
let tmp = null != key;
|
|
if (tmp) {
|
|
let hasItem = PrivateChannelCallUtils.isVoiceChannelModalKey(key);
|
|
if (!hasItem) {
|
|
hasItem = set.has(key);
|
|
}
|
|
tmp = hasItem;
|
|
}
|
|
return tmp;
|
|
};
|