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,9 +1,12 @@
/* Metro module 15838; source: modules/urgent_system_dm/Constants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun121776(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16046:6, offset: 0x02550ffe, size: 98 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/urgent_system_dm/Constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/urgent_system_dm/Constants.tsx');
exports.SYSTEM_USER = '643945264868098049';
exports.URGENT_MODAL_KEY = 'URGENT_MESSAGE_MODAL';
}
global.__d(_fun121776, 15838, [2]) /* metro module 15838, dependencies: [2] */;
@@ -1,100 +1,110 @@
/* Metro module 15837; source: modules/urgent_system_dm/UrgentSystemDMManagerBase.tsx; dependencies: [7, 6, 15, 17, 18, 1379, 1934, 1878, 15838, 661, 8061, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from './Constants.tsx'; /* Metro dependency 15838 */
function _fun121766(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:6, offset: 0x02550c72, size: 329 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_10 = (require(15838) /* metro dependency 15838: Constants */).SYSTEM_USER;
const env0_11 = (require(661) /* metro dependency 661: Constants */).UserFlags;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun121772(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/urgent_system_dm/UrgentSystemDMManagerBase.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/urgent_system_dm/UrgentSystemDMManagerBase.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_121767() { // fn#121767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:220, offset: 0x02550dbb, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_121767() { // fn#121767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:220, offset: 0x02550dbb, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_121767_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_121767_isNativeReflectConstruct = function() {
return !!result;
})();
}
function maybeShowUrgentMessageModal(a0) { // fn#121770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:422, offset: 0x02550e1d, size: 117 bytes, params: 2, frame: 14
const currentUser = UserStore.getCurrentUser();
if (currentUser != null) {
var channelId = SelectedChannelStore.getChannelId();
if (currentUser.hasUrgentMessages()) {
if (ChannelStore.getDMFromUserId(SYSTEM_USER) === channelId) {
maybeClearUrgentMessage({channelId: channelId});
function maybeShowUrgentMessageModal(a0) { // fn#121770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:422, offset: 0x02550e1d, size: 117 bytes, params: 2, frame: 14
const currentUser = UserStore.getCurrentUser();
if (currentUser != null) {
var channelId = SelectedChannelStore.getChannelId();
if (currentUser.hasUrgentMessages()) {
if (ChannelStore.getDMFromUserId(SYSTEM_USER) === channelId) {
maybeClearUrgentMessage({channelId: channelId});
return undefined;
}
if (!env0_12) {
a0();
}
return undefined;
}
if (!env0_12) {
a0();
}
return undefined;
maybeClearUrgentMessage({channelId: channelId});
}
maybeClearUrgentMessage({channelId: channelId});
}
}
function maybeClearUrgentMessage({channelId}) { // fn#121771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:639, offset: 0x02550e92, size: 129 bytes, params: 2, frame: 15
var moduleValue;
const currentUser = UserStore.getCurrentUser();
const getDMFromUserId = ChannelStore.getDMFromUserId;
if (currentUser != null && currentUser.hasUrgentMessages() && channelId === Reflect.apply(getDMFromUserId,
ChannelStore, [SYSTEM_USER])) {
moduleValue = importAll(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.setFlag(UserFlags.HAS_UNREAD_URGENT_MESSAGES, false);
function maybeClearUrgentMessage({channelId}) { // fn#121771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:639, offset: 0x02550e92, size: 129 bytes, params: 2, frame: 15
var moduleValue;
const currentUser = UserStore.getCurrentUser();
const channelStoreBinding = ChannelStore;
const getDMFromUserId = channelStoreBinding.getDMFromUserId;
if (currentUser != null && currentUser.hasUrgentMessages() && channelId === Reflect.apply(getDMFromUserId,
channelStoreBinding, [SYSTEM_USER])) {
moduleValue = importAll(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.setFlag(UserFlags.HAS_UNREAD_URGENT_MESSAGES, false);
}
}
function _fun121772(a0) { // fn#121772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:837, offset: 0x02550f13, size: 42 bytes, params: 2, frame: 14
const UrgentSystemDMManagerBase2 = UrgentSystemDMManagerBase;
Inherits(UrgentSystemDMManagerBase2, a0);
return CreateClass(UrgentSystemDMManagerBase2);
function UrgentSystemDMManagerBase(a0) { // fn#121773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:849, offset: 0x02550f3d, size: 164 bytes, params: 2, frame: 21
env1_3(this, UrgentSystemDMManagerBase);
const value3 = env1_5(UrgentSystemDMManagerBase);
const value6 = env1_4(this, _isNativeReflectConstruct_121767() ? global.Reflect.construct(value3, [],
env1_5(this).constructor) : value3.apply(this, undefined));
value6.handleShowUrgentMessageAlert = a0;
value6.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121774, MESSAGE_CREATE: MESSAGE_CREATE_121775,
CHANNEL_SELECT: maybeClearUrgentMessage};
return value6;
function UrgentSystemDMManagerBasePOST_CONNECTION_OPEN() { // fn#121774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:1165, owner: UrgentSystemDMManagerBase.POST_CONNECTION_OPEN, offset: 0x02550fe1, size: 29 bytes, params: 1, frame: 11
maybeShowUrgentMessageModal(env0_0.handleShowUrgentMessageAlert);
}
function UrgentSystemDMManagerBaseMESSAGE_CREATE() { // fn#121775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:1244, owner: UrgentSystemDMManagerBase.MESSAGE_CREATE, offset: 0x02550fe1, size: 29 bytes, params: 1, frame: 11
maybeShowUrgentMessageModal(env0_0.handleShowUrgentMessageAlert);
}
}
}
}
function _fun121772(a0) { // fn#121772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:837, offset: 0x02550f13, size: 42 bytes, params: 2, frame: 14
const closure = UrgentSystemDMManagerBase;
env0_6(closure, a0);
return env0_2(closure);
}
function UrgentSystemDMManagerBase(a0) { // fn#121773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:849, offset: 0x02550f3d, size: 164 bytes, params: 2, frame: 21
env1_3(this, UrgentSystemDMManagerBase);
const value3 = env1_5(UrgentSystemDMManagerBase);
const value6 = env1_4(this, _isNativeReflectConstruct_121767() ? global.Reflect.construct(value3, [],
env1_5(this).constructor) : value3.apply(this, undefined));
value6.handleShowUrgentMessageAlert = a0;
value6.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121774, MESSAGE_CREATE: MESSAGE_CREATE_121775,
CHANNEL_SELECT: maybeClearUrgentMessage};
return value6;
}
function UrgentSystemDMManagerBasePOST_CONNECTION_OPEN() { // fn#121774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16045:1165, owner: UrgentSystemDMManagerBase.POST_CONNECTION_OPEN, offset: 0x02550fe1, size: 29 bytes, params: 1, frame: 11
maybeShowUrgentMessageModal(env0_0.handleShowUrgentMessageAlert);
}
global.__d(_fun121766, 15837, [7, 6, 15, 17, 18, 1379, 1934, 1878, 15838, 661, 8061, 4860,
2]) /* metro module 15837, dependencies: [7, 6, 15, 17, 18, 1379, 1934, 1878, 15838, 661, 8061, 4860, 2] */;
@@ -1,25 +1,32 @@
/* Metro module 15836; source: modules/urgent_system_dm/native/UrgentSystemDMManager.tsx; dependencies: [15837, 4496, 1244, 15839, 2] */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import UrgentSystemDMManagerBase from '../UrgentSystemDMManagerBase.tsx'; /* Metro dependency 15837 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun121764(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16044:6, offset: 0x02550b41, size: 134 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(15837) /* metro dependency 15837: UrgentSystemDMManagerBase */;
let value = UrgentSystemDMManagerBase;
value = new value(_fun121765);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/urgent_system_dm/native/UrgentSystemDMManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/urgent_system_dm/native/UrgentSystemDMManager.tsx');
exports.default = value;
function _fun121765() { // fn#121765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16044:112, offset: 0x02550bc7, size: 171 bytes, params: 1, frame: 19
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.title = Reflect.apply(string, intl, [t.bAhz9l]);
object.body = intl.string(t['7KjxW3']);
object.isDismissable = false;
object.onConfirm = importDefault(15839) /* metro dependency 15839: navigateToSystemDM */;
return Reflect.apply(show, defaultImport, [object]);
}
}
function _fun121765() { // fn#121765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16044:112, offset: 0x02550bc7, size: 171 bytes, params: 1, frame: 19
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
const show = defaultImport.show;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.title = Reflect.apply(string, intl, [t.bAhz9l]);
object2.body = intl.string(t['7KjxW3']);
object2.isDismissable = false;
object2.onConfirm = importDefault(15839) /* metro dependency 15839: navigateToSystemDM */;
return Reflect.apply(show, defaultImport, [object2]);
}
global.__d(_fun121764, 15836, [15837, 4496, 1244, 15839,
2]) /* metro module 15836, dependencies: [15837, 4496, 1244, 15839, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 15839; source: modules/urgent_system_dm/navigateToSystemDM.tsx; dependencies: [1379, 15838, 4796, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 15838 */
function _fun121777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16047:6, offset: 0x02551060, size: 136 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_3 = (require(15838) /* metro dependency 15838: Constants */).SYSTEM_USER;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/urgent_system_dm/navigateToSystemDM.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/urgent_system_dm/navigateToSystemDM.tsx');
exports.default = navigateToSystemDM;
}
function navigateToSystemDM() { // fn#121778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16047:219, offset: 0x025510e8, size: 65 bytes, params: 1, frame: 12
const dMFromUserId = ChannelStore.getDMFromUserId(SYSTEM_USER);
if (dMFromUserId != null) {
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).selectPrivateChannel(dMFromUserId);
function navigateToSystemDM() { // fn#121778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16047:219, offset: 0x025510e8, size: 65 bytes, params: 1, frame: 12
const dMFromUserId = ChannelStore.getDMFromUserId(SYSTEM_USER);
if (dMFromUserId != null) {
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).selectPrivateChannel(dMFromUserId);
}
}
}
global.__d(_fun121777, 15839, [1379, 15838, 4796, 2]) /* metro module 15839, dependencies: [1379, 15838, 4796, 2] */;