Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,55 @@
/* Metro module 7898; source: modules/premium/roadblocks/native/utils/PremiumFeatureUpsellUtils.tsx; dependencies: [6639, 7892, 676, 44, 2] */
function _fun63263(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8076:6, offset: 0x01b77e71, size: 112 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/premium/roadblocks/native/utils/PremiumFeatureUpsellUtils.tsx');
exports.isSoundboardSectionNitroLocked = isSoundboardSectionNitroLocked;
exports.getUpsellType = getUpsellType;
}
function isSoundboardSectionNitroLocked(a0, a1) { // fn#63264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8076:228, offset: 0x01b77ee1, size: 70 bytes, params: 3, frame: 13
const type = a1.type;
const SoundboardSoundGridSectionType = (require(6639) /* metro dependency 6639: SoundboardTypes */).SoundboardSoundGridSectionType;
const GUILD = SoundboardSoundGridSectionType.GUILD;
return type === GUILD && a1.guild.id !== a0;
}
function getUpsellType(a0) { // fn#63265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8076:367, offset: 0x01b77f27, size: 622 bytes, params: 2, frame: 15
const UpsellTypes = (require(676) /* metro dependency 676: ConstantsIOS */).UpsellTypes;
const EntitlementFeatureNames = (require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames;
const ANIMATED_EMOJIS = EntitlementFeatureNames.ANIMATED_EMOJIS;
if (ANIMATED_EMOJIS === a0) {
return UpsellTypes.ANIMATED_EMOJI;
}
const EMOJIS_EVERYWHERE = EntitlementFeatureNames.EMOJIS_EVERYWHERE;
if (EMOJIS_EVERYWHERE === a0) {
return UpsellTypes.GLOBAL_EMOJI;
}
const INCREASED_FILE_UPLOAD_SIZE = EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE;
if (INCREASED_FILE_UPLOAD_SIZE === a0) {
return UpsellTypes.UPLOAD;
}
const SOUNDBOARD_EVERYWHERE = EntitlementFeatureNames.SOUNDBOARD_EVERYWHERE;
if (SOUNDBOARD_EVERYWHERE === a0) {
return UpsellTypes.SOUNDBOARD;
}
const CLIENT_THEMES = EntitlementFeatureNames.CLIENT_THEMES;
if (CLIENT_THEMES === a0) {
return UpsellTypes.CLIENT_THEMES;
}
const APP_ICONS = EntitlementFeatureNames.APP_ICONS;
if (APP_ICONS === a0) {
return UpsellTypes.APP_ICONS;
}
const SAVED_MESSAGES = EntitlementFeatureNames.SAVED_MESSAGES;
if (SAVED_MESSAGES === a0) {
return UpsellTypes.FOR_LATER;
}
const STREAM_HIGH_QUALITY = EntitlementFeatureNames.STREAM_HIGH_QUALITY;
if (STREAM_HIGH_QUALITY === a0) {
return UpsellTypes.STREAM_HIGH_QUALITY;
}
(importDefault(44) /* metro dependency 44 */)(false, 'Missing featureName: ' + a0);
}
@@ -0,0 +1,18 @@
/* Metro module 7890; source: modules/premium/roadblocks/native/utils/openPremiumUpsellActionSheet.tsx; dependencies: [4080, 7891, 1962, 2] */
function _fun63205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8068:6, offset: 0x01b75539, size: 113 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/premium/roadblocks/native/utils/openPremiumUpsellActionSheet.tsx');
exports.default = openPremiumUpsellActionSheet;
exports.PREMIUM_UPSELL_ACTION_SHEET_KEY = 'PremiumUpsellActionSheetKey';
}
function openPremiumUpsellActionSheet(a0) { // fn#63206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8068:244, offset: 0x01b755aa, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'PremiumUpsellActionSheetKey', {featureName: a0}]);
}
@@ -0,0 +1,45 @@
/* Metro module 7889; source: modules/premium/roadblocks/native/utils/shouldOpenPremiumUpsellActionSheet.tsx; dependencies: [7890, 676, 7892, 2] */
function _fun63202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8067:6, offset: 0x01b75303, size: 110 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/premium/roadblocks/native/utils/shouldOpenPremiumUpsellActionSheet.tsx');
exports.default = maybeOpenPremiumUpsellActionSheet;
}
function _maybeOpenPremiumUpsellActionSheet(a0) { // fn#63203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8067:43, offset: 0x01b75371, size: 36 bytes, params: 2, frame: 11
(importDefault(7890) /* metro dependency 7890: openPremiumUpsellActionSheet */)(a0);
return true;
}
function maybeOpenPremiumUpsellActionSheet({initialUpsellKey}) { // fn#63204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8067:282, offset: 0x01b75395, size: 420 bytes, params: 2, frame: 14
const EntitlementFeatureNames = (require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames;
const UpsellTypes = (require(676) /* metro dependency 676: ConstantsIOS */).UpsellTypes;
const UPLOAD = UpsellTypes.UPLOAD;
if (UPLOAD === initialUpsellKey) {
_maybeOpenPremiumUpsellActionSheet(EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE);
return true;
}
const GLOBAL_EMOJI = UpsellTypes.GLOBAL_EMOJI;
if (GLOBAL_EMOJI === initialUpsellKey) {
_maybeOpenPremiumUpsellActionSheet(EntitlementFeatureNames.EMOJIS_EVERYWHERE);
return true;
}
const ANIMATED_EMOJI = UpsellTypes.ANIMATED_EMOJI;
if (ANIMATED_EMOJI === initialUpsellKey) {
_maybeOpenPremiumUpsellActionSheet(EntitlementFeatureNames.ANIMATED_EMOJIS);
return true;
}
const SOUNDBOARD = UpsellTypes.SOUNDBOARD;
if (SOUNDBOARD === initialUpsellKey) {
_maybeOpenPremiumUpsellActionSheet(EntitlementFeatureNames.SOUNDBOARD_EVERYWHERE);
return true;
}
const STREAM_HIGH_QUALITY = UpsellTypes.STREAM_HIGH_QUALITY;
if (STREAM_HIGH_QUALITY === initialUpsellKey) {
_maybeOpenPremiumUpsellActionSheet(EntitlementFeatureNames.STREAM_HIGH_QUALITY);
return true;
}
return false;
}