34 lines
2.3 KiB
TypeScript
34 lines
2.3 KiB
TypeScript
/* Metro module 10537; source: modules/applications/utils/getApplicationEmbedVisibility.tsx; dependencies: [5203, 5205, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun81295(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10723:6, offset: 0x01ec82c0, size: 142 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/applications/utils/getApplicationEmbedVisibility.tsx');
|
|
exports.ApplicationEmbedVisibility = {DISPLAY: 'display', BLOCK_UNDERAGE: 'block_underage',
|
|
BLOCK_CHANNEL_RESTRICTION: 'block_channel_restriction'};
|
|
exports.getApplicationEmbedVisibility = getApplicationEmbedVisibility;
|
|
function getApplicationEmbedVisibility(a0, a1, a2) { // fn#81296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10723:391, offset: 0x01ec834e, size: 191 bytes, params: 4, frame: 18
|
|
var r0;
|
|
var moduleValue;
|
|
var contentClassificationToAgeRestriction;
|
|
var object;
|
|
if (a0 == null) {
|
|
r0 = env0_2.DISPLAY;
|
|
} else {
|
|
moduleValue = require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */;
|
|
contentClassificationToAgeRestriction = moduleValue.contentClassificationToAgeRestriction;
|
|
object = {};
|
|
object.type = (require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */).ContentClassificationVariant.MINIMAL;
|
|
object.data = a0;
|
|
r0 = Reflect.apply(contentClassificationToAgeRestriction, moduleValue,
|
|
[object]) !== (require(5205) /* metro dependency 5205: AgeRestrictionStatus */).AgeRestrictionStatus.ADULT ? env0_2.DISPLAY : a1 !== true ? env0_2.BLOCK_UNDERAGE : a2.isPrivate() || a2.nsfw ? env0_2.DISPLAY : env0_2.BLOCK_CHANNEL_RESTRICTION;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun81295, 10537, [5203, 5205, 2]) /* metro module 10537, dependencies: [5203, 5205, 2] */;
|