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,54 +1,57 @@
/* Metro module 7504; source: modules/applications/utils/ApplicationFlagUtils.tsx; dependencies: [4235, 483, 2] */
import ApplicationRecord from '../../../records/ApplicationRecord.tsx'; /* Metro dependency 4235 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BigFlagUtilsModule from '../../../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
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 getApplicationFlags2 = 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;
(FileImportTrackerModule).fileFinishedImporting('modules/applications/utils/ApplicationFlagUtils.tsx');
exports.getApplicationFlags = getApplicationFlags2;
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 {
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 */;
deserialize = value.deserialize;
r0 = a0.flags_new ?? a0.flags ?? 0;
value = Reflect.apply(deserialize, value, [r0]);
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
return BigFlagUtilsModule.has(getApplicationFlags(a0), a1);
}
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);
}
global.__d(_fun60510, 7504, [4235, 483, 2]) /* metro module 7504, dependencies: [4235, 483, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 8063; source: modules/applications/utils/ApplicationInstallUtils.tsx; dependencies: [7861, 5066, 8042, 2] */
import ApplicationCommandIndexStore from '../../application_commands/ApplicationCommandIndexStore.tsx'; /* Metro dependency 7861 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApplicationCommandConstantsModule from '../../application_commands/ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
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}) {
@@ -21,42 +25,46 @@ function _fun64013(global, require, importDefault, importAll, module, exports, d
};
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');
(FileImportTrackerModule).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;
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;
}
r0 = r1;
return r0;
}
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}))));
}
}
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}))));
function _fun64015(a0) { // fn#64015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8241:284, offset: 0x01b994ea, size: 48 bytes, params: 2, frame: 5
const value = undefined;
return (a0 == null ? value : a0.oauth2_install_params) != null || (a0 == null ? value : a0.oauth2InstallParams) != null;
}
global.__d(_fun64013, 8063, [7861, 5066, 8042, 2]) /* metro module 8063, dependencies: [7861, 5066, 8042, 2] */;
@@ -1,30 +1,33 @@
/* 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});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/utils/getApplicationEmbedVisibility.tsx');
(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 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;
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;
}
return r0;
}
global.__d(_fun81295, 10537, [5203, 5205, 2]) /* metro module 10537, dependencies: [5203, 5205, 2] */;
@@ -1,37 +1,41 @@
/* Metro module 8040; source: modules/applications/utils/isApplicationAgeRestricted.tsx; dependencies: [4234, 8041, 5203, 5205, 2] */
import ApplicationStore from '../ApplicationStore.tsx'; /* Metro dependency 4234 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 isAgeRestrictedContentClassification2 = 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');
(FileImportTrackerModule).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;
exports.isAgeRestrictedContentClassification = isAgeRestrictedContentClassification2;
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 object;
let value = a0 != null;
if (value) {
value = require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */;
contentClassificationToAgeRestriction = value.contentClassificationToAgeRestriction;
object = {};
object.type = (require(5203) /* metro dependency 5203: ContentClassificationToAgeRestriction */).ContentClassificationVariant.MINIMAL;
object.data = a0;
value = Reflect.apply(contentClassificationToAgeRestriction, value, [object]);
value = value === (require(5205) /* metro dependency 5205: AgeRestrictionStatus */).AgeRestrictionStatus.ADULT;
r0 = value;
} else {
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun63740, 8040, [4234, 8041, 5203, 5205,
2]) /* metro module 8040, dependencies: [4234, 8041, 5203, 5205, 2] */;