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,14 @@
/* Metro module 8245; source: modules/welcome_cta/WelcomeCTAConstants.tsx; dependencies: [2] */
function _fun65906(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8430:6, offset: 0x01be4ef6, size: 190 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_cta/WelcomeCTAConstants.tsx');
exports.WELCOME_STICKERS = [{'id': '749054660769218631', 'format_type': 3, 'description': 'Wumpus waves hello',
'name': 'Wave'}, {'id': '751606379340365864', 'format_type': 3,
'description': 'Nelly peeks around a wall and waves hello', 'name': 'Wave'}, {'id': '754108890559283200',
'format_type': 3, 'description': 'Clyde cheerfully waving', 'name': 'Wave'}, {'id': '781291131828699156',
'format_type': 2, 'description': 'Choco waves in greeting', 'name': 'Wave'}, {'id': '816087792291282944',
'format_type': 3, 'description': 'Doggo spins and greets you', 'name': 'Sup'}, {'id': '819128604311027752',
'format_type': 3, 'description': 'Peach raising her arms in distress', 'name': 'Scream'}];
}
@@ -0,0 +1,45 @@
/* Metro module 8244; source: modules/welcome_cta/WelcomeCTAUtils.tsx; dependencies: [1878, 8245, 661, 21, 7067, 683, 2] */
function _fun65902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8429:6, offset: 0x01be4c9b, size: 186 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_3 = (require(8245) /* metro dependency 8245: WelcomeCTAConstants */).WELCOME_STICKERS;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_cta/WelcomeCTAUtils.tsx');
exports.pickHelloSticker = function() {
var r4;
r4 = UserStore.getCurrentUser()?.id;
return WELCOME_STICKERS[(r4 != null ? importDefault(dependencyMap[3]).extractTimestamp(r4) : 0) % WELCOME_STICKERS.length];
};
exports.pickWelcomeSticker = pickWelcomeSticker;
exports.handleWelcomeCtaClicked = handleWelcomeCtaClicked;
}
function pickWelcomeSticker(a0) { // fn#65904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8429:412, offset: 0x01be4db2, size: 131 bytes, params: 2, frame: 15
const id = UserStore.getCurrentUser()?.id;
const r2 = id != null ? (importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp(id) : 0;
const defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
return WELCOME_STICKERS[(r2 + defaultImport2.extractTimestamp(a0)) % WELCOME_STICKERS.length];
}
function handleWelcomeCtaClicked(a0, a1, a2) { // fn#65905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8429:585, offset: 0x01be4e35, size: 193 bytes, params: 4, frame: 24
var object2;
const value2 = undefined;
const defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
const sendGreetMessage = defaultImport.sendGreetMessage;
const id = a0.id;
const defaultImport2 = defaultImport;
const getSendMessageOptionsForReply = defaultImport2.getSendMessageOptionsForReply;
Reflect.apply(sendGreetMessage, defaultImport, [id, a2, Reflect.apply(getSendMessageOptionsForReply, defaultImport2,
[{channel: a0, message: a1, shouldMention: true, showMentionToggle: true}])]);
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport3.track;
const WELCOME_CTA_CLICKED = AnalyticEvents.WELCOME_CTA_CLICKED;
object2 = {is_reply: true, sticker_id: a2};
object2.target_user = a1.author.id;
const currentUser = UserStore.getCurrentUser();
object2.sender = currentUser == null ? value2 : currentUser.id;
Reflect.apply(track, defaultImport3, [WELCOME_CTA_CLICKED, object2]);
return value2;
}