Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,54 @@
|
||||
/* Metro module 7504; source: modules/applications/utils/ApplicationFlagUtils.tsx; dependencies: [4235, 483, 2] */
|
||||
function _fun60510(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7682:6, offset: 0x01704c7a, size: 130 bytes, params: 8, frame: 18
|
||||
const closure = getApplicationFlags;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/utils/ApplicationFlagUtils.tsx');
|
||||
exports.getApplicationFlags = closure;
|
||||
exports.hasApplicationFlag = hasApplicationFlag;
|
||||
}
|
||||
|
||||
function getApplicationFlags(a0) { // fn#60511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7682:106, offset: 0x01704cfc, size: 242 bytes, params: 2, frame: 15
|
||||
var r4;
|
||||
var r3;
|
||||
var r2;
|
||||
var r0;
|
||||
var value;
|
||||
var deserialize;
|
||||
if (a0 == null) {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value = value.deserialize(0);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = a0 != null;
|
||||
if (value) {
|
||||
r3 = a0 instanceof ApplicationRecord || 'flags' in a0 && typeof a0.flags === 'bigint';
|
||||
if (!r3) {
|
||||
r4 = 'flags' in a0 && a0.flags != null;
|
||||
r4 = r4 && typeof a0.flags === 'object';
|
||||
r4 = r4 && 'parts' in a0.flags;
|
||||
r3 = r4;
|
||||
}
|
||||
r2 = r3;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
if (r2) {
|
||||
r0 = a0.flags;
|
||||
} else {
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
deserialize = value.deserialize;
|
||||
r0 = a0.flags_new ?? a0.flags ?? 0;
|
||||
value = Reflect.apply(deserialize, value, [r0]);
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function hasApplicationFlag(a0, a1) { // fn#60512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7682:588, offset: 0x01704dee, size: 53 bytes, params: 3, frame: 14
|
||||
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
return bigFlagUtilsModule.has(getApplicationFlags(a0), a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 8063; source: modules/applications/utils/ApplicationInstallUtils.tsx; dependencies: [7861, 5066, 8042, 2] */
|
||||
function _fun64013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8241:6, offset: 0x01b993f5, size: 160 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = function({customInstallUrl, installParams, integrationTypesConfig}) {
|
||||
var r0;
|
||||
var r1;
|
||||
var value = customInstallUrl != null;
|
||||
r0 = value || installParams != null;
|
||||
if (!r0) {
|
||||
value = integrationTypesConfig != null;
|
||||
if (value) {
|
||||
value = global.Object.values(integrationTypesConfig);
|
||||
value = value.some(_fun64015);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationCommandIndexStore = importDefault(7861) /* metro dependency 7861: ApplicationCommandIndexStore */;
|
||||
const env0_3 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/utils/ApplicationInstallUtils.tsx');
|
||||
exports.canInstallApplication = closure;
|
||||
exports.isAppUserInstallable = isAppUserInstallable;
|
||||
exports.shouldInstallApplicationOnDemand = shouldInstallApplicationOnDemand;
|
||||
}
|
||||
|
||||
function canInstallApplication({customInstallUrl, installParams, integrationTypesConfig}) { // fn#64014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8241:133, offset: 0x01b99495, size: 85 bytes, params: 2, frame: 13
|
||||
var r1;
|
||||
let value = customInstallUrl != null;
|
||||
let r0 = value || installParams != null;
|
||||
if (!r0) {
|
||||
value = integrationTypesConfig != null;
|
||||
if (value) {
|
||||
value = global.Object.values(integrationTypesConfig);
|
||||
value = value.some(function(a0) {
|
||||
var value = undefined;
|
||||
return (a0 == null ? value : a0.oauth2_install_params) != null || (a0 == null ? value : a0.oauth2InstallParams) != null;
|
||||
});
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isAppUserInstallable({customInstallUrl, installParams, integrationTypesConfig}) { // fn#64016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8241:539, offset: 0x01b9951a, size: 102 bytes, params: 2, frame: 14
|
||||
return canInstallApplication({customInstallUrl: customInstallUrl, installParams: installParams,
|
||||
integrationTypesConfig: integrationTypesConfig}) && integrationTypesConfig != null && (require(8042) /* metro dependency 8042: ApplicationIntegrationType */).ApplicationIntegrationType.USER_INSTALL in integrationTypesConfig;
|
||||
}
|
||||
|
||||
function shouldInstallApplicationOnDemand({applicationId, channel, commandIntegrationTypes}) { // fn#64017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8241:823, offset: 0x01b99580, size: 188 bytes, params: 2, frame: 17
|
||||
return !(commandIntegrationTypes != null && !commandIntegrationTypes.includes((require(8042) /* metro dependency 8042: ApplicationIntegrationType */).ApplicationIntegrationType.USER_INSTALL)) && (!(applicationId === BuiltInSectionId.BUILT_IN) && (!ApplicationCommandIndexStore.hasUserStateApplication(applicationId) && (channel == null || !ApplicationCommandIndexStore.hasContextStateApplication({applicationId: applicationId,
|
||||
channelId: channel.id, guildId: channel.guild_id}))));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 10537; source: modules/applications/utils/getApplicationEmbedVisibility.tsx; dependencies: [5203, 5205, 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});
|
||||
(require(2) /* metro dependency 2 */).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 object2;
|
||||
if (a0 == null) {
|
||||
r0 = env0_2.DISPLAY;
|
||||
} else {
|
||||
moduleValue = require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */;
|
||||
contentClassificationToAgeRestriction = moduleValue.contentClassificationToAgeRestriction;
|
||||
object2 = {};
|
||||
object2.type = (require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */).ContentClassificationVariant.MINIMAL;
|
||||
object2.data = a0;
|
||||
r0 = Reflect.apply(contentClassificationToAgeRestriction, moduleValue,
|
||||
[object2]) !== (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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 8040; source: modules/applications/utils/isApplicationAgeRestricted.tsx; dependencies: [4234, 8041, 5203, 5205, 2] */
|
||||
function _fun63740(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8218:6, offset: 0x01b8f005, size: 133 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = isAgeRestrictedContentClassification;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/utils/isApplicationAgeRestricted.tsx');
|
||||
exports.default = function(a0) {
|
||||
if (importDefault(dependencyMap[1]).getConfig({location: 'isApplicationAgeRestricted'}).enabled) {
|
||||
return isAgeRestrictedContentClassification(ApplicationStore.getApplication(a0)?.contentClassification);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
exports.isAgeRestrictedContentClassification = closure;
|
||||
}
|
||||
|
||||
function isAgeRestrictedContentClassification(a0) { // fn#63741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8218:106, offset: 0x01b8f08a, size: 109 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var contentClassificationToAgeRestriction;
|
||||
var object2;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */;
|
||||
contentClassificationToAgeRestriction = value.contentClassificationToAgeRestriction;
|
||||
object2 = {};
|
||||
object2.type = (require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */).ContentClassificationVariant.MINIMAL;
|
||||
object2.data = a0;
|
||||
value = Reflect.apply(contentClassificationToAgeRestriction, value, [object2]);
|
||||
value = value === (require(5205) /* metro dependency 5205: AgeRestrictionStatus */).AgeRestrictionStatus.ADULT;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user