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

+128 -121
View File
@@ -1,39 +1,78 @@
/* Metro module 10916; source: modules/notifications/FocusModeUtils.tsx; dependencies: [6876, 3796, 661, 3829, 1362, 1345, 683, 4647, 1244, 10917, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import SelfPresenceStore from '../../stores/SelfPresenceStore.tsx'; /* Metro dependency 6876 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as WrappersModule from '../../external/discord_common/js/packages/protos/google/protobuf/wrappers.tsx'; /* Metro dependency 1345 */
import * as UserSettingsProtoActionCreatorsModule from '../user_settings/UserSettingsProtoActionCreators.tsx'; /* Metro dependency 1362 */
import * as NotificationConstantsModule from './NotificationConstants.tsx'; /* Metro dependency 3796 */
import * as UserSettingsModule from '../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
function _fun83654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:6, offset: 0x01f227e8, size: 198 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
const env0_4 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.AnalyticEvents;
const env0_6 = constantsModule.StatusTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/FocusModeUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/FocusModeUtils.tsx');
exports.useFocusModeEnabled = useFocusModeEnabled;
exports.getFocusModeEnabled = getFocusModeEnabled;
exports.setFocusMode = setFocusMode;
}
function useFocusModeEnabled() { // fn#83655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:289, offset: 0x01f228ae, size: 182 bytes, params: 1, frame: 15
var r1;
var r0;
var Date;
var prototype;
var value3;
var date;
var value4;
var value5;
const FocusMode = (require(3829) /* metro dependency 3829: UserSettings */).FocusMode;
let value = FocusMode.useSetting();
const FocusModeExpiresAtSetting = (require(3829) /* metro dependency 3829: UserSettings */).FocusModeExpiresAtSetting;
const value2 = FocusModeExpiresAtSetting.useSetting();
if (value) {
value = value2 === '0';
function useFocusModeEnabled() { // fn#83655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:289, offset: 0x01f228ae, size: 182 bytes, params: 1, frame: 15
var r1;
var r0;
var Date;
var prototype;
var value3;
var date;
var value4;
var value5;
const FocusMode = (UserSettingsModule).FocusMode;
let value = FocusMode.useSetting();
const FocusModeExpiresAtSetting = (UserSettingsModule).FocusModeExpiresAtSetting;
const value2 = FocusModeExpiresAtSetting.useSetting();
if (value) {
r1 = value;
value = value2 === '0';
if (value) {
r1 = value;
} else {
Date = global.Date;
value = global.Number(value2);
prototype = Date.prototype;
value3 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value = date instanceof Object ? date : value3;
value = value.getTime();
Date = global.Date;
prototype = Date.prototype;
value4 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value5 = date instanceof Object ? date : value4;
value -= value5.getTime();
value = value > 0;
r1 = value;
}
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function getFocusModeEnabled() { // fn#83656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:503, offset: 0x01f22964, size: 175 bytes, params: 1, frame: 14
var Date;
var prototype;
var value3;
var date;
var value4;
var value5;
const FocusMode = (UserSettingsModule).FocusMode;
let value = FocusMode.getSetting();
const FocusModeExpiresAtSetting = (UserSettingsModule).FocusModeExpiresAtSetting;
const setting = FocusModeExpiresAtSetting.getSetting();
let r0 = value && setting != null;
if (r0) {
Date = global.Date;
value = global.Number(value2);
value = global.Number(setting);
prototype = Date.prototype;
value3 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
@@ -46,106 +85,74 @@ function useFocusModeEnabled() { // fn#83655, source: /ci/build/discord/discord/
value5 = date instanceof Object ? date : value4;
value -= value5.getTime();
value = value > 0;
r1 = value;
r0 = value;
}
r0 = r1;
} else {
r0 = value;
return r0;
}
return r0;
}
function getFocusModeEnabled() { // fn#83656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:503, offset: 0x01f22964, size: 175 bytes, params: 1, frame: 14
var Date;
var prototype;
var value3;
var date;
var value4;
var value5;
const FocusMode = (require(3829) /* metro dependency 3829: UserSettings */).FocusMode;
let value = FocusMode.getSetting();
const FocusModeExpiresAtSetting = (require(3829) /* metro dependency 3829: UserSettings */).FocusModeExpiresAtSetting;
const setting = FocusModeExpiresAtSetting.getSetting();
let r0 = value && setting != null;
if (r0) {
Date = global.Date;
value = global.Number(setting);
prototype = Date.prototype;
value3 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value = date instanceof Object ? date : value3;
value = value.getTime();
Date = global.Date;
prototype = Date.prototype;
value4 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value5 = date instanceof Object ? date : value4;
value -= value5.getTime();
value = value > 0;
r0 = value;
}
return r0;
}
function setFocusMode(a0, a1) { // fn#83657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:708, offset: 0x01f22a13, size: 485 bytes, params: 3, frame: 22
var show;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
let value = a0;
const env0_1 = a1;
const FocusMode = (require(3829) /* metro dependency 3829: UserSettings */).FocusMode;
const setting = FocusMode.getSetting();
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['notifications', _fun83658,
INFREQUENT_USER_ACTION]);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const NOTIFICATION_SETTINGS_UPDATED = AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED;
let object2 = {};
const ACCOUNT = NotificationSettingsUpdateType.ACCOUNT;
object2.update_type = ACCOUNT;
object2.quiet_mode_enabled = value;
object2.quiet_mode_enabled_old = setting;
Reflect.apply(track, defaultImport, [NOTIFICATION_SETTINGS_UPDATED, object2]);
const status = SelfPresenceStore.getStatus();
const DND = StatusTypes.DND;
if (status === DND && value && a1 == null) {
value = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = value.show;
object2 = {};
object2.title = intl.string(t['B+cbLS']);
object2.body = intl.string(t.CYVgLI);
object2.cancelText = intl.string(t.f3Pet9);
object2.confirmText = intl.string(t.BddRzS);
object2.onConfirm = function() {
importDefault(dependencyMap[9])({nextStatus: StatusTypes.ONLINE});
};
Reflect.apply(show, value, [object2]);
}
}
function _fun83658(a0) { // fn#83658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:845, offset: 0x01f22bf8, size: 144 bytes, params: 2, frame: 16
var r1;
let value = environment.__proto__;
const BoolValue = (require(1345) /* metro dependency 1345: wrappers */).BoolValue;
const create = BoolValue.create;
const binding = env0_0;
a0.quietMode = Reflect.apply(create, BoolValue, [{value: binding}]);
const value2 = '0';
if (binding) {
if (require != null) {
value = global.Date.now() + require;
value = '' + value;
r1 = value;
} else {
r1 = value2;
function setFocusMode(a0, a1) { // fn#83657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:708, offset: 0x01f22a13, size: 485 bytes, params: 3, frame: 22
var show;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
let value = a0;
const env0_1 = a1;
const FocusMode = (UserSettingsModule).FocusMode;
const setting = FocusMode.getSetting();
const PreloadedUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (UserSettingsProtoActionCreatorsModule).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['notifications', _fun83658,
INFREQUENT_USER_ACTION]);
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const NOTIFICATION_SETTINGS_UPDATED = AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED;
let object = {};
const ACCOUNT = NotificationSettingsUpdateType.ACCOUNT;
object.update_type = ACCOUNT;
object.quiet_mode_enabled = value;
object.quiet_mode_enabled_old = setting;
Reflect.apply(track, defaultImport, [NOTIFICATION_SETTINGS_UPDATED, object]);
const status = SelfPresenceStore.getStatus();
const DND = StatusTypes.DND;
if (status === DND && value && a1 == null) {
value = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = value.show;
object = {};
object.title = intl.string(t['B+cbLS']);
object.body = intl.string(t.CYVgLI);
object.cancelText = intl.string(t.f3Pet9);
object.confirmText = intl.string(t.BddRzS);
object.onConfirm = function() {
importDefault(dependencyMap[9])({nextStatus: StatusTypes.ONLINE});
};
Reflect.apply(show, value, [object]);
}
} else {
r1 = value2;
function _fun83658(a0) { // fn#83658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11102:845, offset: 0x01f22bf8, size: 144 bytes, params: 2, frame: 16
var r1;
let value = environment.__proto__;
const BoolValue = (WrappersModule).BoolValue;
const create = BoolValue.create;
const binding = env0_0;
a0.quietMode = Reflect.apply(create, BoolValue, [{value: binding}]);
const value2 = '0';
if (binding) {
if (require != null) {
value = global.Date.now() + require;
value = '' + value;
r1 = value;
} else {
r1 = value2;
}
} else {
r1 = value2;
}
a0.focusModeExpiresAtMs = r1;
}
}
a0.focusModeExpiresAtMs = r1;
}
global.__d(_fun83654, 10916, [6876, 3796, 661, 3829, 1362, 1345, 683, 4647, 1244, 10917,
2]) /* metro module 10916, dependencies: [6876, 3796, 661, 3829, 1362, 1345, 683, 4647, 1244, 10917, 2] */;
@@ -1,17 +1,21 @@
/* Metro module 12565; source: modules/notifications/HabitualDNDStore.tsx; dependencies: [6, 7, 15, 17, 18, 6876, 661, 672, 3829, 694, 566, 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 Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import SelfPresenceStore from '../../stores/SelfPresenceStore.tsx'; /* Metro dependency 6876 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun96223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:6, offset: 0x021583f2, size: 366 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
const env0_9 = (require(661) /* metro dependency 661: Constants */).StatusTypes;
let env0_10 = [];
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun96229(PersistedStore);
value.displayName = 'HabitualDNDStore';
value.persistKey = 'habitualDND';
@@ -20,94 +24,108 @@ function _fun96223(global, require, importDefault, importAll, module, exports, d
env0_11 = !!hasBeenUsingDND();
env0_10 = [];
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/HabitualDNDStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/HabitualDNDStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_96224() { // fn#96224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:180, offset: 0x02158560, 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_96224_isNativeReflectConstruct = function() {
return !!result;
})();
}
function hasBeenUsingDND() { // fn#96227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:387, offset: 0x021585c2, size: 48 bytes, params: 1, frame: 12
return env0_10.length >= 4 && env0_10.some(function(a0) {
return a0 < global.Date.now() - 3 * importDefault(dependencyMap[7]).Millis.DAY;
});
}
function _fun96229(a0) { // fn#96229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:487, offset: 0x0215863c, size: 151 bytes, params: 2, frame: 16
const closure = HabitualDNDStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'initialize', value: function(a0) {
this.waitFor(SelfPresenceStore);
if (a0 != null && global.Array.isArray(a0.sessionStartsWithDND)) {
env1_10 = a0.sessionStartsWithDND;
function _isNativeReflectConstruct_96224() { // fn#96224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:180, offset: 0x02158560, 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) {
}
}}, {key: 'showNagBar', value: value_96232}, {key: 'getState', value: value_96233}, {key: 'getTemp',
value: function() {
var object = {};
var StatusExpiresAtSetting = require(dependencyMap[8]).StatusExpiresAtSetting;
object.x = StatusExpiresAtSetting.getSetting();
return object;
}}]);
}
return (_isNativeReflectConstruct_96224_isNativeReflectConstruct = function() {
return !!result;
})();
}
function POST_CONNECTION_OPEN_96235() { // fn#96235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:1232, offset: 0x0215875e, size: 223 bytes, params: 1, frame: 17
var binding;
var push;
var Date;
const status = SelfPresenceStore.getStatus();
const DND = StatusTypes.DND;
if (status !== DND) {
env0_10 = [];
} else if ((require(3829) /* metro dependency 3829: UserSettings */).StatusExpiresAtSetting.getSetting() === '0') {
binding = env0_10;
push = binding.push;
Date = global.Date;
Reflect.apply(push, binding, [Date.now()]);
binding = env0_10;
env0_10 = binding.filter(function(a0) {
return a0 > global.Date.now() - 5 * importDefault(dependencyMap[7]).Millis.DAY;
function hasBeenUsingDND() { // fn#96227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:387, offset: 0x021585c2, size: 48 bytes, params: 1, frame: 12
return env0_10.length >= 4 && env0_10.some(function(a0) {
return a0 < global.Date.now() - 3 * importDefault(dependencyMap[7]).Millis.DAY;
});
if (hasBeenUsingDND()) {
global.setTimeout(_fun96237, 15 * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND);
}
} else {
env0_10 = [];
}
function _fun96229(a0) { // fn#96229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:487, offset: 0x0215863c, size: 151 bytes, params: 2, frame: 16
const HabitualDNDStore2 = HabitualDNDStore;
Inherits(HabitualDNDStore2, a0);
return CreateClass(HabitualDNDStore2, [{key: 'initialize', value: function(a0) {
this.waitFor(SelfPresenceStore);
if (a0 != null && global.Array.isArray(a0.sessionStartsWithDND)) {
env1_10 = a0.sessionStartsWithDND;
}
}}, {key: 'showNagBar', value: value_96232}, {key: 'getState', value: value_96233}, {key: 'getTemp',
value: function() {
var object = {};
var StatusExpiresAtSetting = require(dependencyMap[8]).StatusExpiresAtSetting;
object.x = StatusExpiresAtSetting.getSetting();
return object;
}}]);
function HabitualDNDStore() { // fn#96230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:499, offset: 0x0108afcb, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, HabitualDNDStore);
const value3 = env1_6(HabitualDNDStore);
return env1_5(this, _isNativeReflectConstruct_96224() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_96232() { // fn#96232, offset: 0x00ef8482, size: 9 bytes, params: 1, frame: 1
return env1_11;
}
function value_96233() { // fn#96233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:970, offset: 0x0215871d, size: 16 bytes, params: 1, frame: 2
return {sessionStartsWithDND: env1_10};
}
}
function POST_CONNECTION_OPEN_96235() { // fn#96235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:1232, offset: 0x0215875e, size: 223 bytes, params: 1, frame: 17
var binding;
var push;
var Date;
const status = SelfPresenceStore.getStatus();
const DND = StatusTypes.DND;
if (status !== DND) {
env0_10 = [];
} else if ((require(3829) /* metro dependency 3829: UserSettings */).StatusExpiresAtSetting.getSetting() === '0') {
binding = env0_10;
push = binding.push;
Date = global.Date;
Reflect.apply(push, binding, [Date.now()]);
binding = env0_10;
env0_10 = binding.filter(function(a0) {
return a0 > global.Date.now() - 5 * importDefault(dependencyMap[7]).Millis.DAY;
});
if (hasBeenUsingDND()) {
global.setTimeout(_fun96237, 15 * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND);
}
} else {
env0_10 = [];
}
function _fun96237() { // fn#96237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:1432, offset: 0x02158887, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'HABITUAL_DND_CLEAR'});
}
}
}
function value_96233() { // fn#96233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:970, offset: 0x0215871d, size: 16 bytes, params: 1, frame: 2
return {sessionStartsWithDND: env1_10};
}
function _fun96237() { // fn#96237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12755:1432, offset: 0x02158887, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HABITUAL_DND_CLEAR'});
}
global.__d(_fun96223, 12565, [6, 7, 15, 17, 18, 6876, 661, 672, 3829, 694, 566,
2]) /* metro module 12565, dependencies: [6, 7, 15, 17, 18, 6876, 661, 672, 3829, 694, 566, 2] */;
@@ -1,15 +1,19 @@
/* Metro module 4819; source: modules/notifications/IOSPushNotificationRawPayloadFixExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun42034(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4997:6, offset: 0x0112e708, size: 162 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-01-ios-push-notif-json-fix',
const env0_0 = (ApexModule).createApexExperiment({'name': '2026-01-ios-push-notif-json-fix',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/IOSPushNotificationRawPayloadFixExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/IOSPushNotificationRawPayloadFixExperiment.tsx');
exports.isIOSPushNotificationRawPayloadFixExperimentEnabled = isIOSPushNotificationRawPayloadFixExperimentEnabled;
function isIOSPushNotificationRawPayloadFixExperimentEnabled() { // fn#42035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4997:399, offset: 0x0112e7aa, size: 55 bytes, params: 1, frame: 13
env0_1 = env0_1 ?? env0_0.getConfig({location: 'isIOSPushNotificationRawPayloadFixExperiment'}).enabled;
return env0_1;
}
}
function isIOSPushNotificationRawPayloadFixExperimentEnabled() { // fn#42035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4997:399, offset: 0x0112e7aa, size: 55 bytes, params: 1, frame: 13
env0_1 = env0_1 ?? env0_0.getConfig({location: 'isIOSPushNotificationRawPayloadFixExperiment'}).enabled;
return env0_1;
}
global.__d(_fun42034, 4819, [1854, 2]) /* metro module 4819, dependencies: [1854, 2] */;
@@ -1,226 +1,240 @@
/* Metro module 6611; source: modules/notifications/LastMentionTimestampStore.tsx; dependencies: [6, 7, 15, 17, 18, 1945, 4864, 1878, 694, 566, 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 Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildMemberStore from '../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun52208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:6, offset: 0x013229fa, size: 368 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
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 guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_14 = {};
const env0_15 = {};
const env0_16 = {};
const env0_17 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun52212(Store);
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{CONNECTION_OPEN: CONNECTION_OPEN_52219, MESSAGE_NOTIFICATION_SHOWN: MESSAGE_NOTIFICATION_SHOWN});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/LastMentionTimestampStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/LastMentionTimestampStore.tsx');
exports.default = value;
exports.trackMessageNotificationTimestamps = trackMessageNotificationTimestamps;
}
function _isNativeReflectConstruct_52209() { // fn#52209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:178, offset: 0x01322b6a, size: 94 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_52209_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _isNativeReflectConstruct_52209() { // fn#52209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:178, offset: 0x01322b6a, size: 94 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() {
function _fun52212(a0) { // fn#52212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:429, offset: 0x01322bc8, size: 116 bytes, params: 2, frame: 16
const LastMentionTimestampStore2 = LastMentionTimestampStore;
Inherits(LastMentionTimestampStore2, a0);
return CreateClass(LastMentionTimestampStore2, [{key: 'initialize', value: function() {
this.waitFor(GuildMemberStore, UserGuildSettingsStore, UserStore);
}}, {key: 'getGlobalStats', value: value_52215}, {key: 'getStats', value: value_52217}]);
function LastMentionTimestampStore() { // fn#52213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:441, offset: 0x01176269, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, LastMentionTimestampStore);
const value3 = env1_5(LastMentionTimestampStore);
return env1_4(this, _isNativeReflectConstruct_52209() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_52215() { // fn#52215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:845, offset: 0x01322c5f, size: 72 bytes, params: 1, frame: 13
var environment;
const closure = function(a0) {
var r0;
var Math;
var value = null;
if (value == a0) {
r0 = value;
} else {
Math = global.Math;
value = global.Date.now() - a0;
value = Math.floor(value / 1000);
r0 = value;
}
return r0;
};
const object = {};
let value = environment.__proto__;
object.approx_seconds_since_last_notification = closure(env1_10);
object.approx_seconds_since_last_mention = closure(env1_11);
object.approx_seconds_since_last_role_mention = closure(env1_12);
object.approx_seconds_since_last_everyone_mention = closure(env1_13);
return object;
}
function value_52217(a0) { // fn#52217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:1126, offset: 0x01322ce5, size: 193 bytes, params: 2, frame: 16
var environment;
const closure = function(a0) {
var r0;
var Math;
var value = null;
if (value == a0) {
r0 = value;
} else {
Math = global.Math;
value = global.Date.now() - a0;
value = Math.floor(value / 1000);
r0 = value;
}
return r0;
};
const object = {};
let value = environment.__proto__;
object.approx_seconds_since_last_notification = closure(env1_10);
object.approx_seconds_since_last_mention = closure(env1_11);
object.approx_seconds_since_last_role_mention = closure(env1_12);
object.approx_seconds_since_last_everyone_mention = closure(env1_13);
const value2 = null;
object.approx_seconds_since_last_guild_notification = value2 == a0 ? value2 : closure(env1_14[a0]);
object.approx_seconds_since_last_guild_mention = value2 == a0 ? value2 : closure(env1_15[a0]);
object.approx_seconds_since_last_guild_role_mention = value2 == a0 ? value2 : closure(env1_17[a0]);
object.approx_seconds_since_last_guild_everyone_mention = value2 == a0 ? value2 : closure(env1_16[a0]);
return object;
}
}
function CONNECTION_OPEN_52219() { // fn#52219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:1708, offset: 0x01322da6, size: 286 bytes, params: 1, frame: 18
var r3;
var propertyName;
var propertyName2;
var propertyName3;
var propertyName4;
var propertyName5;
const closure = function(a0) {
var r0;
var value = a0 != null;
if (value) {
value = global.Date.now() - a0;
value = value < 60000;
r0 = value;
} else {
r0 = value;
}
return r0;
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_52209_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun52212(a0) { // fn#52212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:429, offset: 0x01322bc8, size: 116 bytes, params: 2, frame: 16
const closure = LastMentionTimestampStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: function() {
this.waitFor(GuildMemberStore, UserGuildSettingsStore, UserStore);
}}, {key: 'getGlobalStats', value: value_52215}, {key: 'getStats', value: value_52217}]);
}
function CONNECTION_OPEN_52219() { // fn#52219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:1708, offset: 0x01322da6, size: 286 bytes, params: 1, frame: 18
var r3;
var propertyName;
var propertyName2;
var propertyName3;
var propertyName4;
var propertyName5;
const closure = function(a0) {
var r0;
var value = a0 != null;
if (value) {
value = global.Date.now() - a0;
value = value < 60000;
r0 = value;
} else {
r0 = value;
if (closure(env0_10)) {
}
return r0;
};
if (closure(env0_10)) {
}
if (closure(env0_11)) {
}
if (closure(env0_12)) {
}
if (closure(env0_13)) {
}
for (propertyName in env0_14) {
if (closure(env0_14[propertyName])) {
if (closure(env0_11)) {
}
if (closure(env0_12)) {
}
if (closure(env0_13)) {
}
for (propertyName in env0_14) {
if (closure(env0_14[propertyName])) {
r3 = propertyName2;
continue;
}
delete env0_14[propertyName];
r3 = propertyName2;
continue;
}
delete env0_14[propertyName];
r3 = propertyName2;
}
for (propertyName in env0_15) {
if (closure(env0_15[propertyName])) {
for (propertyName in env0_15) {
if (closure(env0_15[propertyName])) {
r3 = propertyName3;
continue;
}
delete env0_15[propertyName];
r3 = propertyName3;
continue;
}
delete env0_15[propertyName];
r3 = propertyName3;
}
for (propertyName in env0_17) {
if (closure(env0_17[propertyName])) {
for (propertyName in env0_17) {
if (closure(env0_17[propertyName])) {
r3 = propertyName4;
continue;
}
delete env0_17[propertyName];
r3 = propertyName4;
continue;
}
delete env0_17[propertyName];
r3 = propertyName4;
}
for (propertyName in env0_16) {
if (closure(env0_16[propertyName])) {
for (propertyName in env0_16) {
if (closure(env0_16[propertyName])) {
r3 = propertyName5;
continue;
}
delete env0_16[propertyName];
r3 = propertyName5;
continue;
}
delete env0_16[propertyName];
r3 = propertyName5;
}
}
function MESSAGE_NOTIFICATION_SHOWN({guildId, mentioned, roleMentioned, everyoneMentioned}) { // fn#52221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2070, offset: 0x01322ef1, size: 125 bytes, params: 2, frame: 15
const Date = global.Date;
const value = Date.now();
if (guildId != null) {
env0_14[guildId] = value;
}
if (mentioned) {
function MESSAGE_NOTIFICATION_SHOWN({guildId, mentioned, roleMentioned, everyoneMentioned}) { // fn#52221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2070, offset: 0x01322ef1, size: 125 bytes, params: 2, frame: 15
const Date = global.Date;
const value = Date.now();
if (guildId != null) {
env0_15[guildId] = value;
env0_14[guildId] = value;
}
if (mentioned) {
if (guildId != null) {
env0_15[guildId] = value;
}
}
if (roleMentioned) {
if (guildId != null) {
env0_17[guildId] = value;
}
}
if (everyoneMentioned) {
if (guildId != null) {
env0_16[guildId] = value;
}
}
}
if (roleMentioned) {
if (guildId != null) {
env0_17[guildId] = value;
}
}
if (everyoneMentioned) {
if (guildId != null) {
env0_16[guildId] = value;
function trackMessageNotificationTimestamps(a0, a1) { // fn#52222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2431, offset: 0x01322f6e, size: 287 bytes, params: 3, frame: 22
const currentUser = UserStore.getCurrentUser();
const value3 = null;
const value4 = undefined;
const id = value3 == currentUser ? value4 : currentUser.id;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const isSuppressEveryoneEnabled2 = userGuildSettingsStoreBinding.isSuppressEveryoneEnabled(a1);
const isSuppressRolesEnabled2 = userGuildSettingsStoreBinding.isSuppressRolesEnabled(a1);
const r8 = value3 != a0.mentions && a0.mentions.some(function({id}) {
return id === id;
});
const r3 = value3 == a1 || value3 == id ? value3 : GuildMemberStore.getMember(a1, id);
let r6 = value3 != a0.mention_roles && value3 != r3 && value3 != r3.roles && a0.mention_roles.some(_fun52224);
const dispatch = Dispatcher.dispatch;
r6 = r6 && !isSuppressRolesEnabled2;
Reflect.apply(dispatch, Dispatcher, [{type: 'MESSAGE_NOTIFICATION_SHOWN', guildId: a1, mentioned: r8, roleMentioned: r6,
everyoneMentioned: a0.mention_everyone === true && !isSuppressEveryoneEnabled2}]);
return value4;
function _fun52224(a0) { // fn#52224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2755, offset: 0x0132308d, size: 28 bytes, params: 2, frame: 11
return env0_1.roles.includes(a0);
}
}
}
function trackMessageNotificationTimestamps(a0, a1) { // fn#52222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2431, offset: 0x01322f6e, size: 287 bytes, params: 3, frame: 22
const currentUser = UserStore.getCurrentUser();
const value3 = null;
const value4 = undefined;
const id = value3 == currentUser ? value4 : currentUser.id;
const isSuppressEveryoneEnabled2 = UserGuildSettingsStore.isSuppressEveryoneEnabled(a1);
const isSuppressRolesEnabled2 = UserGuildSettingsStore.isSuppressRolesEnabled(a1);
const r8 = value3 != a0.mentions && a0.mentions.some(function({id}) {
return id === id;
});
const r3 = value3 == a1 || value3 == id ? value3 : GuildMemberStore.getMember(a1, id);
let r6 = value3 != a0.mention_roles && value3 != r3 && value3 != r3.roles && a0.mention_roles.some(_fun52224);
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
r6 = r6 && !isSuppressRolesEnabled2;
Reflect.apply(dispatch, value, [{type: 'MESSAGE_NOTIFICATION_SHOWN', guildId: a1, mentioned: r8, roleMentioned: r6,
everyoneMentioned: a0.mention_everyone === true && !isSuppressEveryoneEnabled2}]);
return value4;
}
function value_52215() { // fn#52215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:845, offset: 0x01322c5f, size: 72 bytes, params: 1, frame: 13
var environment;
const closure = function(a0) {
var r0;
var Math;
var value = null;
if (value == a0) {
r0 = value;
} else {
Math = global.Math;
value = global.Date.now() - a0;
value = Math.floor(value / 1000);
r0 = value;
}
return r0;
};
const object2 = {};
let value = environment.__proto__;
object2.approx_seconds_since_last_notification = closure(env1_10);
object2.approx_seconds_since_last_mention = closure(env1_11);
object2.approx_seconds_since_last_role_mention = closure(env1_12);
object2.approx_seconds_since_last_everyone_mention = closure(env1_13);
return object2;
}
function value_52217(a0) { // fn#52217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:1126, offset: 0x01322ce5, size: 193 bytes, params: 2, frame: 16
var environment;
const closure = function(a0) {
var r0;
var Math;
var value = null;
if (value == a0) {
r0 = value;
} else {
Math = global.Math;
value = global.Date.now() - a0;
value = Math.floor(value / 1000);
r0 = value;
}
return r0;
};
const object2 = {};
let value = environment.__proto__;
object2.approx_seconds_since_last_notification = closure(env1_10);
object2.approx_seconds_since_last_mention = closure(env1_11);
object2.approx_seconds_since_last_role_mention = closure(env1_12);
object2.approx_seconds_since_last_everyone_mention = closure(env1_13);
const value2 = null;
object2.approx_seconds_since_last_guild_notification = value2 == a0 ? value2 : closure(env1_14[a0]);
object2.approx_seconds_since_last_guild_mention = value2 == a0 ? value2 : closure(env1_15[a0]);
object2.approx_seconds_since_last_guild_role_mention = value2 == a0 ? value2 : closure(env1_17[a0]);
object2.approx_seconds_since_last_guild_everyone_mention = value2 == a0 ? value2 : closure(env1_16[a0]);
return object2;
}
function _fun52224(a0) { // fn#52224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6789:2755, offset: 0x0132308d, size: 28 bytes, params: 2, frame: 11
return env0_1.roles.includes(a0);
}
global.__d(_fun52208, 6611, [6, 7, 15, 17, 18, 1945, 4864, 1878, 694, 566,
2]) /* metro module 6611, dependencies: [6, 7, 15, 17, 18, 1945, 4864, 1878, 694, 566, 2] */;
@@ -1,16 +1,18 @@
/* Metro module 3796; source: modules/notifications/NotificationConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun28939(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3923:6, offset: 0x00f8799c, size: 178 bytes, params: 8, frame: 17
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {USE_NEW_NOTIFICATIONS: 16};
object2[16] = 'USE_NEW_NOTIFICATIONS';
object2.MENTION_ON_ALL_MESSAGES = 32;
object2[32] = 'MENTION_ON_ALL_MESSAGES';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationConstants.tsx');
exports.AccountNotificationFlags = object2;
object = {USE_NEW_NOTIFICATIONS: 16};
object[16] = 'USE_NEW_NOTIFICATIONS';
object.MENTION_ON_ALL_MESSAGES = 32;
object[32] = 'MENTION_ON_ALL_MESSAGES';
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationConstants.tsx');
exports.AccountNotificationFlags = object;
exports.NotificationSettingsUpdateType = {GUILD: 'guild', CHANNEL: 'channel', ACCOUNT: 'account',
AUTHORIZED_APP_DM: 'authorized_app_dm',
AUTHORIZED_APP_DM_PUSH_NOTIFICATION: 'authorized_app_dm_push_notification'};
}
global.__d(_fun28939, 3796, [2]) /* metro module 3796, dependencies: [2] */;
@@ -1,289 +1,296 @@
/* Metro module 2518; source: modules/notifications/NotificationSettings.messages.js; dependencies: [1247, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2546, 2547, 2548, 2549, 1282, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun23552(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:6, offset: 0x00f0f338, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_23553, cs: cs_23555, da: da_23557, de: de_23559, el: el_23561};
object2['en-GB'] = _fun23563;
object2['es-419'] = _fun23565;
object2['es-ES'] = _fun23567;
object2.fi = fi_23569;
object2.fr = fr_23571;
object2.hi = hi_23573;
object2.hr = hr_23575;
object2.hu = hu_23577;
object2.it = it_23579;
object2.ja = ja_23581;
object2.ko = ko_23583;
object2.lt = lt_23585;
object2.nl = nl_23587;
object2.no = no_23589;
object2.pl = pl_23591;
object2['pt-BR'] = _fun23593;
object2.ro = ro_23595;
object2.ru = ru_23597;
object2['sv-SE'] = _fun23599;
object2.th = th_23601;
object2.tr = tr_23603;
object2.uk = uk_23605;
object2.vi = vi_23607;
object2['zh-CN'] = _fun23609;
object2['zh-TW'] = _fun23611;
object2['en-US'] = _fun23613;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationSettings.messages.js');
object = {bg: bg_23553, cs: cs_23555, da: da_23557, de: de_23559, el: el_23561};
object['en-GB'] = _fun23563;
object['es-419'] = _fun23565;
object['es-ES'] = _fun23567;
object.fi = fi_23569;
object.fr = fr_23571;
object.hi = hi_23573;
object.hr = hr_23575;
object.hu = hu_23577;
object.it = it_23579;
object.ja = ja_23581;
object.ko = ko_23583;
object.lt = lt_23585;
object.nl = nl_23587;
object.no = no_23589;
object.pl = pl_23591;
object['pt-BR'] = _fun23593;
object.ro = ro_23595;
object.ru = ru_23597;
object['sv-SE'] = _fun23599;
object.th = th_23601;
object.tr = tr_23603;
object.uk = uk_23605;
object.vi = vi_23607;
object['zh-CN'] = _fun23609;
object['zh-TW'] = _fun23611;
object['en-US'] = _fun23613;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationSettings.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_23553() { // fn#23553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:102, offset: 0x00f0f4fd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2519) /* metro dependency 2519 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23555() { // fn#23555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:165, offset: 0x00f0f53e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2520) /* metro dependency 2520 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23557() { // fn#23557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:228, offset: 0x00f0f57f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2521) /* metro dependency 2521 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23559() { // fn#23559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:291, offset: 0x00f0f5c0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2522) /* metro dependency 2522 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23561() { // fn#23561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:354, offset: 0x00f0f601, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2523) /* metro dependency 2523 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23563() { // fn#23563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:422, offset: 0x00f0f642, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2524) /* metro dependency 2524 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23565() { // fn#23565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:491, offset: 0x00f0f683, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2525) /* metro dependency 2525 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23567() { // fn#23567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:559, offset: 0x00f0f6c4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2526) /* metro dependency 2526 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23569() { // fn#23569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:622, offset: 0x00f0f705, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2527) /* metro dependency 2527 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23571() { // fn#23571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:685, offset: 0x00f0f746, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2528) /* metro dependency 2528 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23573() { // fn#23573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:749, offset: 0x00f0f787, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2529) /* metro dependency 2529 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23575() { // fn#23575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:813, offset: 0x00f0f7c8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2530) /* metro dependency 2530 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23577() { // fn#23577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:877, offset: 0x00f0f809, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2531) /* metro dependency 2531 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23579() { // fn#23579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:941, offset: 0x00f0f84a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2532) /* metro dependency 2532 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23581() { // fn#23581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1005, offset: 0x00f0f88b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2533) /* metro dependency 2533 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23583() { // fn#23583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1069, offset: 0x00f0f8cc, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2534) /* metro dependency 2534 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23585() { // fn#23585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1133, offset: 0x00f0f90d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2535) /* metro dependency 2535 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23587() { // fn#23587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1197, offset: 0x00f0f94e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2536) /* metro dependency 2536 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23589() { // fn#23589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1261, offset: 0x00f0f98f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2537) /* metro dependency 2537 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23591() { // fn#23591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1325, offset: 0x00f0f9d0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2538) /* metro dependency 2538 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23593() { // fn#23593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1394, offset: 0x00f0fa11, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2539) /* metro dependency 2539 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23595() { // fn#23595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1458, offset: 0x00f0fa52, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2540) /* metro dependency 2540 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23597() { // fn#23597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1522, offset: 0x00f0fa93, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2541) /* metro dependency 2541 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23599() { // fn#23599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1591, offset: 0x00f0fad4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2542) /* metro dependency 2542 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23601() { // fn#23601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1655, offset: 0x00f0fb15, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2543) /* metro dependency 2543 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23603() { // fn#23603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1719, offset: 0x00f0fb56, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2544) /* metro dependency 2544 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23605() { // fn#23605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1783, offset: 0x00f0fb97, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2545) /* metro dependency 2545 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23607() { // fn#23607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1847, offset: 0x00f0fbd8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2546) /* metro dependency 2546 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23609() { // fn#23609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1916, offset: 0x00f0fc19, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2547) /* metro dependency 2547 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23611() { // fn#23611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1985, offset: 0x00f0fc5a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2548) /* metro dependency 2548 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23613() { // fn#23613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:2054, offset: 0x00f0fc9b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2549) /* metro dependency 2549 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_23553() { // fn#23553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:102, offset: 0x00f0f4fd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2519) /* metro dependency 2519 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23555() { // fn#23555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:165, offset: 0x00f0f53e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2520) /* metro dependency 2520 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23557() { // fn#23557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:228, offset: 0x00f0f57f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2521) /* metro dependency 2521 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23559() { // fn#23559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:291, offset: 0x00f0f5c0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2522) /* metro dependency 2522 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23561() { // fn#23561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:354, offset: 0x00f0f601, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2523) /* metro dependency 2523 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23563() { // fn#23563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:422, offset: 0x00f0f642, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2524) /* metro dependency 2524 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23565() { // fn#23565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:491, offset: 0x00f0f683, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2525) /* metro dependency 2525 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23567() { // fn#23567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:559, offset: 0x00f0f6c4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2526) /* metro dependency 2526 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23569() { // fn#23569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:622, offset: 0x00f0f705, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2527) /* metro dependency 2527 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23571() { // fn#23571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:685, offset: 0x00f0f746, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2528) /* metro dependency 2528 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23573() { // fn#23573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:749, offset: 0x00f0f787, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2529) /* metro dependency 2529 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23575() { // fn#23575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:813, offset: 0x00f0f7c8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2530) /* metro dependency 2530 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23577() { // fn#23577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:877, offset: 0x00f0f809, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2531) /* metro dependency 2531 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23579() { // fn#23579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:941, offset: 0x00f0f84a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2532) /* metro dependency 2532 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23581() { // fn#23581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1005, offset: 0x00f0f88b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2533) /* metro dependency 2533 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23583() { // fn#23583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1069, offset: 0x00f0f8cc, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2534) /* metro dependency 2534 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23585() { // fn#23585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1133, offset: 0x00f0f90d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2535) /* metro dependency 2535 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23587() { // fn#23587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1197, offset: 0x00f0f94e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2536) /* metro dependency 2536 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23589() { // fn#23589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1261, offset: 0x00f0f98f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2537) /* metro dependency 2537 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23591() { // fn#23591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1325, offset: 0x00f0f9d0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2538) /* metro dependency 2538 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23593() { // fn#23593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1394, offset: 0x00f0fa11, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2539) /* metro dependency 2539 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23595() { // fn#23595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1458, offset: 0x00f0fa52, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2540) /* metro dependency 2540 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23597() { // fn#23597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1522, offset: 0x00f0fa93, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2541) /* metro dependency 2541 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23599() { // fn#23599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1591, offset: 0x00f0fad4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2542) /* metro dependency 2542 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23601() { // fn#23601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1655, offset: 0x00f0fb15, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2543) /* metro dependency 2543 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23603() { // fn#23603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1719, offset: 0x00f0fb56, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2544) /* metro dependency 2544 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23605() { // fn#23605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1783, offset: 0x00f0fb97, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2545) /* metro dependency 2545 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23607() { // fn#23607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1847, offset: 0x00f0fbd8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2546) /* metro dependency 2546 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23609() { // fn#23609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1916, offset: 0x00f0fc19, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2547) /* metro dependency 2547 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23611() { // fn#23611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:1985, offset: 0x00f0fc5a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2548) /* metro dependency 2548 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23613() { // fn#23613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2645:2054, offset: 0x00f0fc9b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2549) /* metro dependency 2549 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun23552, 2518, [1247, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531,
2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2546, 2547, 2548, 2549,
1282,
2]) /* metro module 2518, dependencies: [1247, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2546, 2547, 2548, 2549, 1282, 2] */;
@@ -1,32 +1,35 @@
/* Metro module 12999; source: modules/notifications/NotificationSettingsConstants.tsx; dependencies: [2518, 13000, 13001, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NotifSettingsModule from '../../external/discord_common/js/shared/shared-constants/NotifSettings.tsx'; /* Metro dependency 13000 */
import * as NotifTypesModule from '../../external/discord_common/js/shared/shared-constants/NotifTypes.tsx'; /* Metro dependency 13001 */
function _fun99173(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13189:6, offset: 0x021bd433, size: 3077 bytes, params: 8, frame: 25
var object4;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object4 = {'badge': true, 'visibility': 'popup', 'vibrate': true, 'sound': true};
const object5 = {'badge': true, 'visibility': 'default', 'vibrate': true, 'sound': true};
const object9 = {'badge': true, 'visibility': 'default', 'vibrate': false, 'sound': false};
object = {'badge': true, 'visibility': 'popup', 'vibrate': true, 'sound': true};
const object2 = {'badge': true, 'visibility': 'default', 'vibrate': true, 'sound': true};
const object3 = {'badge': true, 'visibility': 'default', 'vibrate': false, 'sound': false};
const S5cB9e = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).S5cB9e;
const items3 = [{title: S5cB9e, string_id: '111_realtime'}];
items3[1] = {title: (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['UzRF+8'],
string_id: '222_social'};
const object10 = {};
object10.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zRKbpz;
object10.string_id = '333_server';
items3[2] = object10;
const object11 = {};
object11.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).q5M7HV;
object11.string_id = '444_other';
items3[3] = object11;
const object12 = {'title': null, 'id': null, 'string_id': 'calls', 'category': '111_realtime', 'behavior': null,
const object6 = {};
object6.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zRKbpz;
object6.string_id = '333_server';
items3[2] = object6;
const object7 = {};
object7.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).q5M7HV;
object7.string_id = '444_other';
items3[3] = object7;
const object8 = {'title': null, 'id': null, 'string_id': 'calls', 'category': '111_realtime', 'behavior': null,
'systemOnly': true};
object12.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['IUH/Oe'];
const NotifSettings = (require(13000) /* metro dependency 13000: NotifSettings */).NotifSettings;
object8.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['IUH/Oe'];
const NotifSettings = (NotifSettingsModule).NotifSettings;
const CALLS = NotifSettings.CALLS;
object12.id = CALLS;
object12.behavior = {'badge': false, 'ringtone': 'call_ringing', 'visibility': 'popup', 'vibrate': true,
object8.id = CALLS;
object8.behavior = {'badge': false, 'ringtone': 'call_ringing', 'visibility': 'popup', 'vibrate': true,
'sound': true};
const items2 = [object12];
const items2 = [object8];
const VeBD1N = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).VeBD1N;
const VOICE_CONNECTED = NotifSettings.VOICE_CONNECTED;
items2[1] = {'title': null, 'id': null, 'string_id': 'mediaConnections', 'category': '111_realtime',
@@ -35,200 +38,202 @@ function _fun99173(global, require, importDefault, importAll, module, exports, d
const NGdNZb = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NGdNZb;
const DMS = NotifSettings.DMS;
items2[2] = {'title': null, 'id': null, 'string_id': 'directMessages', 'category': '222_social', 'behavior': null,
'systemOnly': true, title: NGdNZb, id: DMS, behavior: object4};
'systemOnly': true, title: NGdNZb, id: DMS, behavior: object};
const NxgGZA = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NxgGZA;
const FRIEND_REQUESTS = NotifSettings.FRIEND_REQUESTS;
items2[3] = {'title': null, 'id': null, 'string_id': 'friendRequests', 'category': '222_social', 'behavior': null,
'systemOnly': true, title: NxgGZA, id: FRIEND_REQUESTS, behavior: object4};
'systemOnly': true, title: NxgGZA, id: FRIEND_REQUESTS, behavior: object};
const MOjygY = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).MOjygY;
const POLLS = NotifSettings.POLLS;
items2[4] = {'title': null, 'id': null, 'string_id': 'polls', 'category': '222_social', 'behavior': null,
'systemOnly': true, title: MOjygY, id: POLLS, behavior: object5};
const object17 = {};
object17.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).wv4QHR;
'systemOnly': true, title: MOjygY, id: POLLS, behavior: object2};
const object13 = {};
object13.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).wv4QHR;
const REACTIONS = NotifSettings.REACTIONS;
object17.id = REACTIONS;
object17.string_id = 'reactions';
object17.category = '222_social';
object17.behavior = object5;
items2[5] = object17;
const object18 = {'title': null, 'id': null, 'string_id': 'missed_messages_low', 'category': '222_social',
object13.id = REACTIONS;
object13.string_id = 'reactions';
object13.category = '222_social';
object13.behavior = object2;
items2[5] = object13;
const object14 = {'title': null, 'id': null, 'string_id': 'missed_messages_low', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object18.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
object14.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
let MISSED_MESSAGES_LOW = NotifSettings.MISSED_MESSAGES_LOW;
object18.id = MISSED_MESSAGES_LOW;
object18.behavior = object9;
object18.variations = [0, 2, 3, 4];
items2[6] = object18;
const object19 = {'title': null, 'id': null, 'string_id': 'missed_messages_default', 'category': '222_social',
object14.id = MISSED_MESSAGES_LOW;
object14.behavior = object3;
object14.variations = [0, 2, 3, 4];
items2[6] = object14;
const object15 = {'title': null, 'id': null, 'string_id': 'missed_messages_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object19.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
object15.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
let MISSED_MESSAGES_DEFAULT = NotifSettings.MISSED_MESSAGES_DEFAULT;
object19.id = MISSED_MESSAGES_DEFAULT;
object19.behavior = object5;
object19.variations = [1];
items2[7] = object19;
const object27 = {'title': null, 'id': null, 'string_id': 'missed_messages_default', 'category': '222_social',
object15.id = MISSED_MESSAGES_DEFAULT;
object15.behavior = object2;
object15.variations = [1];
items2[7] = object15;
const object16 = {'title': null, 'id': null, 'string_id': 'missed_messages_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object27.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
object16.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).n0Wp6j;
MISSED_MESSAGES_DEFAULT = NotifSettings.MISSED_MESSAGES_DEFAULT;
object27.id = MISSED_MESSAGES_DEFAULT;
object27.behavior = object5;
object27.variations = [5];
items2[8] = object27;
object16.id = MISSED_MESSAGES_DEFAULT;
object16.behavior = object2;
object16.variations = [5];
items2[8] = object16;
let Iy9grw = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).Iy9grw;
let VOICE_ACTIVITY_LOW = NotifSettings.VOICE_ACTIVITY_LOW;
items2[9] = {'title': null, 'id': null, 'string_id': 'voice_activity_low', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults', title: Iy9grw,
id: VOICE_ACTIVITY_LOW, behavior: object9, variations: [0, 1, 3, 4]};
id: VOICE_ACTIVITY_LOW, behavior: object3, variations: [0, 1, 3, 4]};
Iy9grw = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).Iy9grw;
let VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
items2[10] = {'title': null, 'id': null, 'string_id': 'voice_activity_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults', title: Iy9grw,
id: VOICE_ACTIVITY_DEFAULT, behavior: object5, variations: [2]};
id: VOICE_ACTIVITY_DEFAULT, behavior: object2, variations: [2]};
Iy9grw = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).Iy9grw;
VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
items2[11] = {'title': null, 'id': null, 'string_id': 'voice_activity_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults', title: Iy9grw,
id: VOICE_ACTIVITY_DEFAULT, behavior: object5, variations: [5]};
const object33 = {'title': null, 'id': null, 'string_id': 'gaming_low', 'category': '222_social', 'behavior': null,
id: VOICE_ACTIVITY_DEFAULT, behavior: object2, variations: [5]};
const object20 = {'title': null, 'id': null, 'string_id': 'gaming_low', 'category': '222_social', 'behavior': null,
'experiment': '2026-05-noisier-notif-settings-defaults'};
object33.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
object20.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
let GAMING_LOW = NotifSettings.GAMING_LOW;
object33.id = GAMING_LOW;
object33.behavior = object9;
object33.variations = [0, 1, 2, 4];
items2[12] = object33;
const object34 = {'title': null, 'id': null, 'string_id': 'gaming_default', 'category': '222_social',
object20.id = GAMING_LOW;
object20.behavior = object3;
object20.variations = [0, 1, 2, 4];
items2[12] = object20;
const object21 = {'title': null, 'id': null, 'string_id': 'gaming_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object34.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
object21.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
let GAMING_DEFAULT = NotifSettings.GAMING_DEFAULT;
object34.id = GAMING_DEFAULT;
object34.behavior = object5;
object34.variations = [3];
items2[13] = object34;
const object35 = {'title': null, 'id': null, 'string_id': 'gaming_default', 'category': '222_social',
object21.id = GAMING_DEFAULT;
object21.behavior = object2;
object21.variations = [3];
items2[13] = object21;
const object22 = {'title': null, 'id': null, 'string_id': 'gaming_default', 'category': '222_social',
'behavior': null, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object35.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
object22.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['9EDo+/'];
GAMING_DEFAULT = NotifSettings.GAMING_DEFAULT;
object35.id = GAMING_DEFAULT;
object35.behavior = object5;
object35.variations = [5];
items2[14] = object35;
const object36 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
object22.id = GAMING_DEFAULT;
object22.behavior = object2;
object22.variations = [5];
items2[14] = object22;
const object23 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
'systemOnly': true, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object36.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
object23.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
let FRIEND_ACTIVITY_LOW = NotifSettings.FRIEND_ACTIVITY_LOW;
object36.id = FRIEND_ACTIVITY_LOW;
object36.behavior = object9;
object36.variations = [0, 1, 2, 3];
items2[15] = object36;
const object37 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
object23.id = FRIEND_ACTIVITY_LOW;
object23.behavior = object3;
object23.variations = [0, 1, 2, 3];
items2[15] = object23;
const object24 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
'systemOnly': true, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object37.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
object24.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
let FRIEND_ACTIVITY_DEFAULT = NotifSettings.FRIEND_ACTIVITY_DEFAULT;
object37.id = FRIEND_ACTIVITY_DEFAULT;
object37.behavior = object5;
object37.variations = [4];
items2[16] = object37;
const object38 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
object24.id = FRIEND_ACTIVITY_DEFAULT;
object24.behavior = object2;
object24.variations = [4];
items2[16] = object24;
const object25 = {'title': null, 'id': null, 'string_id': 'social', 'category': '222_social', 'behavior': null,
'systemOnly': true, 'experiment': '2026-05-noisier-notif-settings-defaults'};
object38.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
object25.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).vcrTV5;
FRIEND_ACTIVITY_DEFAULT = NotifSettings.FRIEND_ACTIVITY_DEFAULT;
object38.id = FRIEND_ACTIVITY_DEFAULT;
object38.behavior = object5;
object38.variations = [5];
items2[17] = object38;
const object39 = {'title': null, 'id': null, 'string_id': 'messages', 'category': '333_server', 'behavior': null,
object25.id = FRIEND_ACTIVITY_DEFAULT;
object25.behavior = object2;
object25.variations = [5];
items2[17] = object25;
const object26 = {'title': null, 'id': null, 'string_id': 'messages', 'category': '333_server', 'behavior': null,
'systemOnly': true};
object39.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4qWUAO'];
object26.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4qWUAO'];
const GUILD_MESSAGES = NotifSettings.GUILD_MESSAGES;
object39.id = GUILD_MESSAGES;
object39.behavior = object4;
items2[18] = object39;
object26.id = GUILD_MESSAGES;
object26.behavior = object;
items2[18] = object26;
const HibKoy = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).HibKoy;
const FORUM_NOTIFICATIONS = NotifSettings.FORUM_NOTIFICATIONS;
items2[19] = {'title': null, 'id': null, 'string_id': 'forumThreadCreated', 'category': '333_server',
'behavior': null, 'systemOnly': true, title: HibKoy, id: FORUM_NOTIFICATIONS, behavior: object4};
const object40 = {'title': null, 'id': null, 'string_id': 'guildEventLive', 'category': '333_server',
'behavior': null, 'systemOnly': true, title: HibKoy, id: FORUM_NOTIFICATIONS, behavior: object};
const object28 = {'title': null, 'id': null, 'string_id': 'guildEventLive', 'category': '333_server',
'behavior': null, 'systemOnly': true};
object40.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['40TIqW'];
object28.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['40TIqW'];
const GUILD_EVENT_NOTIFICATIONS = NotifSettings.GUILD_EVENT_NOTIFICATIONS;
object40.id = GUILD_EVENT_NOTIFICATIONS;
object40.behavior = object4;
items2[20] = object40;
const object41 = {'title': null, 'id': null, 'string_id': 'stageLive', 'category': '333_server', 'behavior': null,
object28.id = GUILD_EVENT_NOTIFICATIONS;
object28.behavior = object;
items2[20] = object28;
const object29 = {'title': null, 'id': null, 'string_id': 'stageLive', 'category': '333_server', 'behavior': null,
'systemOnly': true};
object41.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4n388K'];
object29.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4n388K'];
let STAGE_NOTIFICATIONS = NotifSettings.STAGE_NOTIFICATIONS;
object41.id = STAGE_NOTIFICATIONS;
object41.behavior = object4;
items2[21] = object41;
const object42 = {'title': null, 'id': null, 'string_id': 'other', 'category': '333_server', 'behavior': null,
object29.id = STAGE_NOTIFICATIONS;
object29.behavior = object;
items2[21] = object29;
const object30 = {'title': null, 'id': null, 'string_id': 'other', 'category': '333_server', 'behavior': null,
'systemOnly': true};
object42.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).kIrLfg;
object30.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).kIrLfg;
const OTHER_GUILD = NotifSettings.OTHER_GUILD;
object42.id = OTHER_GUILD;
object42.behavior = object9;
items2[22] = object42;
const object43 = {'title': null, 'id': null, 'string_id': 'default', 'category': '444_other', 'behavior': null,
object30.id = OTHER_GUILD;
object30.behavior = object3;
items2[22] = object30;
const object31 = {'title': null, 'id': null, 'string_id': 'default', 'category': '444_other', 'behavior': null,
'systemOnly': true};
object43.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['T+79Eo'];
object31.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['T+79Eo'];
const OTHER = NotifSettings.OTHER;
object43.id = OTHER;
object43.behavior = object9;
items2[23] = object43;
const object44 = {'title': null, 'id': null, 'string_id': 'systemMessages', 'category': '444_other',
object31.id = OTHER;
object31.behavior = object3;
items2[23] = object31;
const object32 = {'title': null, 'id': null, 'string_id': 'systemMessages', 'category': '444_other',
'behavior': null, 'systemOnly': true};
object44.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zJlwvV;
object32.title = (importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zJlwvV;
const SYSTEM = NotifSettings.SYSTEM;
object44.id = SYSTEM;
object44.behavior = object4;
items2[24] = object44;
object4 = {};
const NotifTypes = (require(13001) /* metro dependency 13001: NotifTypes */).NotifTypes;
object32.id = SYSTEM;
object32.behavior = object;
items2[24] = object32;
object = {};
const NotifTypes = (NotifTypesModule).NotifTypes;
const GUILD_STREAM_START = NotifTypes.GUILD_STREAM_START;
VOICE_ACTIVITY_LOW = NotifSettings.VOICE_ACTIVITY_LOW;
VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
object4[GUILD_STREAM_START] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
object[GUILD_STREAM_START] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
const STAGE_INSTANCE_CREATE = NotifTypes.STAGE_INSTANCE_CREATE;
STAGE_NOTIFICATIONS = NotifSettings.STAGE_NOTIFICATIONS;
object4[STAGE_INSTANCE_CREATE] = [STAGE_NOTIFICATIONS];
object[STAGE_INSTANCE_CREATE] = [STAGE_NOTIFICATIONS];
const GO_LIVE_NOTIFICATION = NotifTypes.GO_LIVE_NOTIFICATION;
VOICE_ACTIVITY_LOW = NotifSettings.VOICE_ACTIVITY_LOW;
VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
object4[GO_LIVE_NOTIFICATION] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
object[GO_LIVE_NOTIFICATION] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
const VOICE_CHANNEL_ACTIVITY = NotifTypes.VOICE_CHANNEL_ACTIVITY;
VOICE_ACTIVITY_LOW = NotifSettings.VOICE_ACTIVITY_LOW;
VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
object4[VOICE_CHANNEL_ACTIVITY] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
object[VOICE_CHANNEL_ACTIVITY] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
const VOICE_CHANNEL_ACTIVITY_PEAK_AFFINITY = NotifTypes.VOICE_CHANNEL_ACTIVITY_PEAK_AFFINITY;
VOICE_ACTIVITY_LOW = NotifSettings.VOICE_ACTIVITY_LOW;
VOICE_ACTIVITY_DEFAULT = NotifSettings.VOICE_ACTIVITY_DEFAULT;
object4[VOICE_CHANNEL_ACTIVITY_PEAK_AFFINITY] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
object[VOICE_CHANNEL_ACTIVITY_PEAK_AFFINITY] = [VOICE_ACTIVITY_LOW, VOICE_ACTIVITY_DEFAULT];
const MISSED_MESSAGE_PUSH = NotifTypes.MISSED_MESSAGE_PUSH;
MISSED_MESSAGES_LOW = NotifSettings.MISSED_MESSAGES_LOW;
MISSED_MESSAGES_DEFAULT = NotifSettings.MISSED_MESSAGES_DEFAULT;
object4[MISSED_MESSAGE_PUSH] = [MISSED_MESSAGES_LOW, MISSED_MESSAGES_DEFAULT];
object[MISSED_MESSAGE_PUSH] = [MISSED_MESSAGES_LOW, MISSED_MESSAGES_DEFAULT];
const FRIEND_GAMING_ACTIVITY_PUSH = NotifTypes.FRIEND_GAMING_ACTIVITY_PUSH;
GAMING_LOW = NotifSettings.GAMING_LOW;
GAMING_DEFAULT = NotifSettings.GAMING_DEFAULT;
object4[FRIEND_GAMING_ACTIVITY_PUSH] = [GAMING_LOW, GAMING_DEFAULT];
object[FRIEND_GAMING_ACTIVITY_PUSH] = [GAMING_LOW, GAMING_DEFAULT];
const FRIENDS_PLAYING_GAME = NotifTypes.FRIENDS_PLAYING_GAME;
GAMING_LOW = NotifSettings.GAMING_LOW;
GAMING_DEFAULT = NotifSettings.GAMING_DEFAULT;
object4[FRIENDS_PLAYING_GAME] = [GAMING_LOW, GAMING_DEFAULT];
object[FRIENDS_PLAYING_GAME] = [GAMING_LOW, GAMING_DEFAULT];
const CUSTOM_STATUS_UPDATE = NotifTypes.CUSTOM_STATUS_UPDATE;
FRIEND_ACTIVITY_LOW = NotifSettings.FRIEND_ACTIVITY_LOW;
FRIEND_ACTIVITY_DEFAULT = NotifSettings.FRIEND_ACTIVITY_DEFAULT;
object4[CUSTOM_STATUS_UPDATE] = [FRIEND_ACTIVITY_LOW, FRIEND_ACTIVITY_DEFAULT];
object[CUSTOM_STATUS_UPDATE] = [FRIEND_ACTIVITY_LOW, FRIEND_ACTIVITY_DEFAULT];
const PROFILE_UPDATES_NOTIFICATION = NotifTypes.PROFILE_UPDATES_NOTIFICATION;
FRIEND_ACTIVITY_LOW = NotifSettings.FRIEND_ACTIVITY_LOW;
FRIEND_ACTIVITY_DEFAULT = NotifSettings.FRIEND_ACTIVITY_DEFAULT;
object4[PROFILE_UPDATES_NOTIFICATION] = [FRIEND_ACTIVITY_LOW, FRIEND_ACTIVITY_DEFAULT];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationSettingsConstants.tsx');
object[PROFILE_UPDATES_NOTIFICATION] = [FRIEND_ACTIVITY_LOW, FRIEND_ACTIVITY_DEFAULT];
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationSettingsConstants.tsx');
exports.NOTIF_CATEGORIES = items3;
exports.NOTIF_SETTINGS = items2;
exports.NOTIF_SETTING_MAPPING = object4;
exports.NOTIF_SETTING_MAPPING = object;
}
global.__d(_fun99173, 12999, [2518, 13000, 13001,
2]) /* metro module 12999, dependencies: [2518, 13000, 13001, 2] */;
@@ -1,14 +1,16 @@
/* Metro module 13006; source: modules/notifications/NotificationSettingsExperiments.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun99196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13196:6, offset: 0x021bf4fa, size: 210 bytes, params: 8, frame: 22
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {};
const apexModule = require(1854) /* metro dependency 1854: apex */;
object2['2026-05-noisier-notif-settings-defaults'] = apexModule.createApexExperiment({'name': '2026-05-noisier-notif-settings-defaults',
object = {};
object['2026-05-noisier-notif-settings-defaults'] = ApexModule.createApexExperiment({'name': '2026-05-noisier-notif-settings-defaults',
'kind': 'user', defaultConfig: {variation: 0}, variations: {[1]: {variation: 1}, [2]: {variation: 2},
[3]: {variation: 3}, [4]: {variation: 4}, [5]: {variation: 5}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationSettingsExperiments.tsx');
exports.knownExperimentConfigs = object2;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationSettingsExperiments.tsx');
exports.knownExperimentConfigs = object;
}
global.__d(_fun99196, 13006, [1854, 2]) /* metro module 13006, dependencies: [1854, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 13005; source: modules/notifications/NotificationSettingsUtils.tsx; dependencies: [57, 12999, 13006, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NotificationSettingsConstantsModule from './NotificationSettingsConstants.tsx'; /* Metro dependency 12999 */
function _fun99191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:6, offset: 0x021bf0d9, size: 168 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_99194 = function(a0, a1) {
@@ -46,211 +50,213 @@ function _fun99191(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const notificationSettingsConstantsModule = require(12999) /* metro dependency 12999: NotificationSettingsConstants */;
const env0_3 = notificationSettingsConstantsModule.NOTIF_SETTING_MAPPING;
const env0_4 = notificationSettingsConstantsModule.NOTIF_SETTINGS;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationSettingsUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationSettingsUtils.tsx');
exports.getAssignedNotifSettingsAndMappings = getAssignedNotifSettingsAndMappings;
}
function _createForOfIteratorHelperLoose_99192(a0, a1) { // fn#99192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:166, offset: 0x021bf181, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_99192(a0, a1) { // fn#99192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:166, offset: 0x021bf181, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun99193;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_99194(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun99193;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_99194(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_99194(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_99194(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun99193;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun99193() { // fn#99193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:737, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
return _fun99193;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function getAssignedNotifSettingsAndMappings() { // fn#99195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:1201, offset: 0x021bf2f5, size: 517 bytes, params: 1, frame: 28
var r6;
var r4;
var r14;
var value5;
var experiment;
var knownExperimentConfigs;
var property;
var definition;
var name;
var getConfig;
var variation;
var variations;
var includes;
var push;
var add;
var id;
var value6;
var Error;
var concat;
var value10;
var property2;
var parseInt;
var int;
var value11;
var value12;
var value13;
var has;
var value14;
var value15;
const items3 = [];
const items2 = [];
const Set = global.Set;
const set = new Set();
const value3 = _createForOfIteratorHelperLoose_99192(NOTIF_SETTINGS);
const value4 = value3();
let done = value4.done;
if (!done) {
r6 = value4;
reducibleLoop1: while (true) {
value5 = r6.value;
experiment = value5.experiment;
if (experiment != null) {
knownExperimentConfigs = (require(13006) /* metro dependency 13006: NotificationSettingsExperiments */).knownExperimentConfigs;
}
function getAssignedNotifSettingsAndMappings() { // fn#99195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13195:1201, offset: 0x021bf2f5, size: 517 bytes, params: 1, frame: 28
var r6;
var r4;
var r14;
var value5;
var experiment;
var knownExperimentConfigs;
var property;
var definition;
var name;
var getConfig;
var variation;
var variations;
var includes;
var push;
var add;
var id;
var value6;
var Error;
var concat;
var value10;
var property2;
var parseInt;
var int;
var value11;
var value12;
var value13;
var has;
var value14;
var value15;
const items3 = [];
const items2 = [];
const Set = global.Set;
const set = new Set();
const value3 = _createForOfIteratorHelperLoose_99192(NOTIF_SETTINGS);
const value4 = value3();
let done = value4.done;
if (!done) {
r6 = value4;
reducibleLoop1: while (true) {
value5 = r6.value;
experiment = value5.experiment;
property = knownExperimentConfigs[experiment];
definition = property.definition;
name = definition.name;
experiment = value5.experiment;
if (name !== experiment) {
Error = global.Error;
name = property.definition.name;
if (experiment != null) {
knownExperimentConfigs = (require(13006) /* metro dependency 13006: NotificationSettingsExperiments */).knownExperimentConfigs;
experiment = value5.experiment;
concat = global.HermesInternal.concat;
throw new Error('Experiment called ' + name + ' assigned to name ' + experiment);
}
getConfig = property.getConfig;
variation = Reflect.apply(getConfig, property,
[{location: 'getAssignedNotifSettingsAndMappings'}]).variation;
variations = value5.variations;
includes = variations.includes;
reducibleJoin5: while (true) {
if (Reflect.apply(includes, variations, [variation])) {
push = items3.push;
Reflect.apply(push, items3, [value5]);
add = set.add;
id = value5.id;
Reflect.apply(add, set, [id]);
property = knownExperimentConfigs[experiment];
definition = property.definition;
name = definition.name;
experiment = value5.experiment;
if (name !== experiment) {
Error = global.Error;
name = property.definition.name;
experiment = value5.experiment;
concat = global.HermesInternal.concat;
throw new Error('Experiment called ' + name + ' assigned to name ' + experiment);
}
getConfig = property.getConfig;
variation = Reflect.apply(getConfig, property,
[{location: 'getAssignedNotifSettingsAndMappings'}]).variation;
variations = value5.variations;
includes = variations.includes;
reducibleJoin5: while (true) {
if (Reflect.apply(includes, variations, [variation])) {
push = items3.push;
Reflect.apply(push, items3, [value5]);
add = set.add;
id = value5.id;
Reflect.apply(add, set, [id]);
break reducibleJoin5;
}
break reducibleJoin5;
}
break reducibleJoin5;
value6 = value3();
if (value6.done) {
break reducibleLoop1;
}
r6 = value6;
continue reducibleLoop1;
}
push = items3.push;
Reflect.apply(push, items3, [value5]);
add = set.add;
id = value5.id;
Reflect.apply(add, set, [id]);
value6 = value3();
if (value6.done) {
done = value6.done;
if (done) {
break reducibleLoop1;
}
r6 = value6;
continue reducibleLoop1;
}
push = items3.push;
Reflect.apply(push, items3, [value5]);
add = set.add;
id = value5.id;
Reflect.apply(add, set, [id]);
value6 = value3();
done = value6.done;
if (done) {
break reducibleLoop1;
}
r6 = value6;
continue reducibleLoop1;
}
}
const Object = global.Object;
const value8 = Object.entries(NOTIF_SETTING_MAPPING);
let length = value8.length;
const value9 = 0;
if (value9 < length) {
r4 = value9;
reducibleLoop8: while (true) {
property = value8[r4];
value10 = env0_2(property, 2);
property = value10[value9];
property2 = value10[1];
parseInt = global.parseInt;
int = parseInt(property);
value11 = _createForOfIteratorHelperLoose_99192(property2);
value12 = value11();
done = value12.done;
if (!done) {
r14 = value12;
reducibleLoop9: while (true) {
value13 = r14.value;
has = set.has;
if (Reflect.apply(has, set, [value13])) {
push = items2.push;
Reflect.apply(push, items2, [{notifType: int, notifSetting: value13}]);
break reducibleLoop9;
const Object = global.Object;
const value8 = Object.entries(NOTIF_SETTING_MAPPING);
let length = value8.length;
const value9 = 0;
if (value9 < length) {
r4 = value9;
reducibleLoop8: while (true) {
property = value8[r4];
value10 = Module00057(property, 2);
property = value10[value9];
property2 = value10[1];
parseInt = global.parseInt;
int = parseInt(property);
value11 = _createForOfIteratorHelperLoose_99192(property2);
value12 = value11();
done = value12.done;
if (!done) {
r14 = value12;
reducibleLoop9: while (true) {
value13 = r14.value;
has = set.has;
if (Reflect.apply(has, set, [value13])) {
push = items2.push;
Reflect.apply(push, items2, [{notifType: int, notifSetting: value13}]);
break reducibleLoop9;
}
value14 = value11();
done = value14.done;
if (done) {
break reducibleLoop9;
}
r14 = value14;
continue reducibleLoop9;
}
value14 = value11();
done = value14.done;
if (done) {
break reducibleLoop9;
}
r14 = value14;
continue reducibleLoop9;
}
value15 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value8.length;
if (value15 < length) {
r4 = value15;
continue reducibleLoop8;
}
break reducibleLoop8;
}
value15 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value8.length;
if (value15 < length) {
r4 = value15;
continue reducibleLoop8;
}
break reducibleLoop8;
}
return {settings: items3, mappings: items2};
}
return {settings: items3, mappings: items2};
}
global.__d(_fun99191, 13005, [57, 12999, 13006, 2]) /* metro module 13005, dependencies: [57, 12999, 13006, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,15 +1,17 @@
/* Metro module 10939; source: modules/notifications/NotificationUtils.tsx; dependencies: [4864, 661, 670, 1244, 21, 1391, 3787, 566, 2] */
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as FlagUtilsModule from '../../external/discord_common/js/shared/utils/FlagUtils.tsx'; /* Metro dependency 1391 */
function _fun83871(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:6, offset: 0x01f2c3f1, size: 238 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const userSettingsConstantsModule = require(670) /* metro dependency 670: UserSettingsConstants */;
const env0_6 = userSettingsConstantsModule.MuteUntilSeconds;
const env0_7 = userSettingsConstantsModule.ChannelNotificationSettingsFlags;
const env0_8 = {'ignoreMute': false, 'ignoreUnreadSetting': true, 'ignoreNotificationSetting': false};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/NotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/NotificationUtils.tsx');
exports.getMuteTimeOptions = getMuteTimeOptions;
exports.filterOverrides = filterOverrides;
exports.useShouldUseNewNotificationSystem = function() {
@@ -18,74 +20,78 @@ function _fun83871(global, require, importDefault, importAll, module, exports, d
exports.shouldShowUseNewNotificationSystem = function() {
return UserGuildSettingsStore.useNewNotifications;
};
}
function getMuteTimeOptions() { // fn#83872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:381, offset: 0x01f2c4df, size: 468 bytes, params: 1, frame: 18
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const MINUTES_15 = MuteUntilSeconds.MINUTES_15;
const items2 = [{id: '15-minutes', label: Reflect.apply(string, intl, [t['8ot6gv']]), value: MINUTES_15}];
string = intl.string;
const UMWBZr = t.UMWBZr;
const HOURS_1 = MuteUntilSeconds.HOURS_1;
items2[1] = {id: '1-hour', label: Reflect.apply(string, intl, [UMWBZr]), value: HOURS_1};
string = intl.string;
const QmYWtu = t.QmYWtu;
const HOURS_3 = MuteUntilSeconds.HOURS_3;
items2[2] = {id: '3-hours', label: Reflect.apply(string, intl, [QmYWtu]), value: HOURS_3};
string = intl.string;
const EpAXPC = t.EpAXPC;
const HOURS_8 = MuteUntilSeconds.HOURS_8;
items2[3] = {id: '8-hours', label: Reflect.apply(string, intl, [EpAXPC]), value: HOURS_8};
object2 = {id: '24-hours'};
object2.label = intl.string(t['755t4q']);
const HOURS_24 = MuteUntilSeconds.HOURS_24;
object2.value = HOURS_24;
items2[4] = object2;
const ALWAYS = MuteUntilSeconds.ALWAYS;
items2[5] = {id: 'forever', label: intl.string(t.r3LawO), value: ALWAYS};
return items2;
}
function filterOverrides(a0) { // fn#83873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:900, offset: 0x01f2c6b3, size: 81 bytes, params: 2, frame: 14
let value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : env0_8;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.keys(a0);
return value.filter(_fun83874);
}
function useShouldUseNewNotificationSystem() { // fn#83875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:1297, offset: 0x01f2c81a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore], function() {
return UserGuildSettingsStore.useNewNotifications;
});
}
function _fun83874(a0) { // fn#83874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:963, offset: 0x01f2c704, size: 278 bytes, params: 2, frame: 22
var moduleValue2;
const binding = env0_0;
const message_notifications = binding[a0].message_notifications;
const NULL = UserNotificationSettings.NULL;
const value3 = message_notifications !== NULL;
const flagUtilsModule = importAll(1391) /* metro dependency 1391: FlagUtils */;
const hasFlag = flagUtilsModule.hasFlag;
const flags = binding[a0].flags;
const value4 = 0;
let r1 = flags ?? value4;
const UNREADS_ALL_MESSAGES = ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES;
const hasFlag2 = Reflect.apply(hasFlag, flagUtilsModule, [r1, UNREADS_ALL_MESSAGES]);
if (hasFlag2) {
r1 = hasFlag2;
} else {
moduleValue2 = flagUtilsModule;
r1 = moduleValue2.hasFlag(env0_0[a0].flags ?? value4, ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
function getMuteTimeOptions() { // fn#83872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:381, offset: 0x01f2c4df, size: 468 bytes, params: 1, frame: 18
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const MINUTES_15 = MuteUntilSeconds.MINUTES_15;
const items2 = [{id: '15-minutes', label: Reflect.apply(string, intl, [t['8ot6gv']]), value: MINUTES_15}];
string = intl.string;
const UMWBZr = t.UMWBZr;
const HOURS_1 = MuteUntilSeconds.HOURS_1;
items2[1] = {id: '1-hour', label: Reflect.apply(string, intl, [UMWBZr]), value: HOURS_1};
string = intl.string;
const QmYWtu = t.QmYWtu;
const HOURS_3 = MuteUntilSeconds.HOURS_3;
items2[2] = {id: '3-hours', label: Reflect.apply(string, intl, [QmYWtu]), value: HOURS_3};
string = intl.string;
const EpAXPC = t.EpAXPC;
const HOURS_8 = MuteUntilSeconds.HOURS_8;
items2[3] = {id: '8-hours', label: Reflect.apply(string, intl, [EpAXPC]), value: HOURS_8};
object = {id: '24-hours'};
object.label = intl.string(t['755t4q']);
const HOURS_24 = MuteUntilSeconds.HOURS_24;
object.value = HOURS_24;
items2[4] = object;
const ALWAYS = MuteUntilSeconds.ALWAYS;
items2[5] = {id: 'forever', label: intl.string(t.r3LawO), value: ALWAYS};
return items2;
}
let r0 = !env0_1.ignoreUnreadSetting && r1;
r0 = !r0 ? !env0_1.ignoreNotificationSetting && value3 : r0;
r0 = !r0 ? !env0_1.ignoreMute && (require(3787) /* metro dependency 3787: MuteTimers */).computeIsMuted(env0_0[a0]) : r0;
return r0;
function filterOverrides(a0) { // fn#83873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:900, offset: 0x01f2c6b3, size: 81 bytes, params: 2, frame: 14
let value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : env0_8;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.keys(a0);
return value.filter(_fun83874);
function _fun83874(a0) { // fn#83874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:963, offset: 0x01f2c704, size: 278 bytes, params: 2, frame: 22
var moduleValue2;
const binding = env0_0;
const message_notifications = binding[a0].message_notifications;
const NULL = UserNotificationSettings.NULL;
const value3 = message_notifications !== NULL;
const hasFlag = FlagUtilsModule.hasFlag;
const flags = binding[a0].flags;
const value4 = 0;
let r1 = flags ?? value4;
const UNREADS_ALL_MESSAGES = ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES;
const hasFlag2 = Reflect.apply(hasFlag, FlagUtilsModule, [r1, UNREADS_ALL_MESSAGES]);
if (hasFlag2) {
r1 = hasFlag2;
} else {
moduleValue2 = FlagUtilsModule;
r1 = moduleValue2.hasFlag(env0_0[a0].flags ?? value4, ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
}
let r0 = !env0_1.ignoreUnreadSetting && r1;
r0 = !r0 ? !env0_1.ignoreNotificationSetting && value3 : r0;
r0 = !r0 ? !env0_1.ignoreMute && (require(3787) /* metro dependency 3787: MuteTimers */).computeIsMuted(env0_0[a0]) : r0;
return r0;
}
}
function useShouldUseNewNotificationSystem() { // fn#83875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:1297, offset: 0x01f2c81a, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore], function() {
return UserGuildSettingsStore.useNewNotifications;
});
function _fun83876() { // fn#83876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11125:1381, offset: 0x01f2c855, size: 15 bytes, params: 1, frame: 1
return UserGuildSettingsStore.useNewNotifications;
}
}
}
global.__d(_fun83871, 10939, [4864, 661, 670, 1244, 21, 1391, 3787, 566,
2]) /* metro module 10939, dependencies: [4864, 661, 670, 1244, 21, 1391, 3787, 566, 2] */;
@@ -1,99 +1,114 @@
/* Metro module 10912; source: modules/notifications/RpcNotificationSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 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 Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun83628(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:6, offset: 0x01f21c60, size: 301 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_6 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun83632(Store);
value.displayName = 'RpcNotificationSettingsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{RPC_APP_DISCONNECTED: RPC_APP_DISCONNECTED_83636,
SET_RPC_NOTIFICATION_SETTINGS: SET_RPC_NOTIFICATION_SETTINGS});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/RpcNotificationSettingsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/RpcNotificationSettingsStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_83629() { // fn#83629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:158, offset: 0x01f21d8d, 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_83629_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun83632(a0) { // fn#83632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:366, offset: 0x01f21def, size: 99 bytes, params: 2, frame: 16
const closure = RpcNotificationSettingsStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: function() {
this.waitFor(AuthenticationStore);
}}, {key: 'areSlayerNotificationsSuppressed', value: value_83635}]);
}
function RPC_APP_DISCONNECTED_83636({socketId}) { // fn#83636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:982, offset: 0x01f21e8f, size: 24 bytes, params: 2, frame: 2
delete env0_6[socketId];
}
function SET_RPC_NOTIFICATION_SETTINGS(a0) { // fn#83637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:1071, offset: 0x01f21ea7, size: 55 bytes, params: 2, frame: 4
delete env0_6[a0.socketId];
if (a0.suppressNotifications) {
env0_6[a0.socketId] = a0.targetUserId;
}
}
function value_83635() { // fn#83635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:811, offset: 0x01f21e52, size: 61 bytes, params: 1, frame: 16
var propertyName;
var propertyName2;
var property;
var getId;
const properties = Object.keys(env1_6);
const properties2 = 0;
const properties3 = properties.length;
if (properties === undefined) {
return false;
}
let r5 = properties2;
loopExit1: while (true) {
propertyName = properties[r5];
propertyName2 = r5 + 1;
if (propertyName === undefined) {
return false;
function _isNativeReflectConstruct_83629() { // fn#83629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:158, offset: 0x01f21d8d, 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) {
}
property = env1_6[propertyName];
getId = AuthenticationStore.getId;
if (property !== Reflect.apply(getId, AuthenticationStore, [])) {
r5 = propertyName2;
continue;
}
break loopExit1;
return (_isNativeReflectConstruct_83629_isNativeReflectConstruct = function() {
return !!result;
})();
}
return true;
function _fun83632(a0) { // fn#83632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:366, offset: 0x01f21def, size: 99 bytes, params: 2, frame: 16
const RpcNotificationSettingsStore2 = RpcNotificationSettingsStore;
Inherits(RpcNotificationSettingsStore2, a0);
return CreateClass(RpcNotificationSettingsStore2, [{key: 'initialize', value: function() {
this.waitFor(AuthenticationStore);
}}, {key: 'areSlayerNotificationsSuppressed', value: value_83635}]);
function RpcNotificationSettingsStore() { // fn#83633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:378, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, RpcNotificationSettingsStore);
const value3 = env1_3(RpcNotificationSettingsStore);
return env1_2(this, _isNativeReflectConstruct_83629() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_83635() { // fn#83635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:811, offset: 0x01f21e52, size: 61 bytes, params: 1, frame: 16
var propertyName;
var propertyName2;
var property;
var authenticationStoreBinding;
var getId;
const properties = Object.keys(env1_6);
const properties2 = 0;
const properties3 = properties.length;
if (properties === undefined) {
return false;
}
let r5 = properties2;
loopExit1: while (true) {
propertyName = properties[r5];
propertyName2 = r5 + 1;
if (propertyName === undefined) {
return false;
}
property = env1_6[propertyName];
authenticationStoreBinding = AuthenticationStore;
getId = authenticationStoreBinding.getId;
if (property !== Reflect.apply(getId, authenticationStoreBinding, [])) {
r5 = propertyName2;
continue;
}
break loopExit1;
}
return true;
}
}
function RPC_APP_DISCONNECTED_83636({socketId}) { // fn#83636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:982, offset: 0x01f21e8f, size: 24 bytes, params: 2, frame: 2
delete env0_6[socketId];
}
function SET_RPC_NOTIFICATION_SETTINGS(a0) { // fn#83637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:1071, offset: 0x01f21ea7, size: 55 bytes, params: 2, frame: 4
delete env0_6[a0.socketId];
if (a0.suppressNotifications) {
env0_6[a0.socketId] = a0.targetUserId;
}
}
}
global.__d(_fun83628, 10912, [6, 7, 15, 17, 18, 1226, 566, 694,
2]) /* metro module 10912, dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13902; source: modules/notifications/friend_gaming_activity/FriendGamingActivityNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14099:6, offset: 0x022bd7ab, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/friend_gaming_activity/FriendGamingActivityNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/friend_gaming_activity/FriendGamingActivityNotificationUtils.tsx');
exports.onFriendGamingActivityNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableFriendGamingActivityNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105591(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105591, 13902, [3796, 661, 3829, 683,
2]) /* metro module 13902, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,14 +1,28 @@
/* Metro module 13899; source: modules/notifications/friend_online/FriendOnlineNotificationExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun105582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14096:6, offset: 0x022bd3f8, size: 192 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-03-friend-is-online-v3',
defaultConfig: {showSettingsToggle: false}, variations: {[1]: {showSettingsToggle: true},
[2]: {showSettingsToggle: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineNotificationExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineNotificationExperiment.tsx');
exports.default = value;
exports.useFriendOnlineNotificationExperiment = useFriendOnlineNotificationExperiment;
exports.isEligibleForFriendOnlineNotifications = isEligibleForFriendOnlineNotifications;
function useFriendOnlineNotificationExperiment(a0) { // fn#105583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14096:448, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function isEligibleForFriendOnlineNotifications(a0) { // fn#105584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14096:573, offset: 0x022bd4b8, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).showSettingsToggle;
}
}
global.__d(_fun105582, 13899, [1854, 2]) /* metro module 13899, dependencies: [1854, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13900; source: modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14097:6, offset: 0x022bd4db, size: 159 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineNotificationUtils.tsx');
exports.onFriendOnlineNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableFriendOnlineNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -18,3 +20,5 @@ function _fun105585(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105585, 13900, [3796, 661, 3829, 683,
2]) /* metro module 13900, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,4 +1,19 @@
/* Metro module 16144; source: modules/notifications/friend_online/FriendOnlineTimer.tsx; dependencies: [6, 7, 15, 17, 18, 5, 6876, 16145, 661, 482, 672, 507, 1216, 694, 3829, 4860, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
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 Durations from '../../../utils/Durations.tsx'; /* Metro dependency 672 */
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import SelfPresenceStore from '../../../stores/SelfPresenceStore.tsx'; /* Metro dependency 6876 */
import FriendOnlineTimerStore from './FriendOnlineTimerStore.tsx'; /* Metro dependency 16145 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as ConstantsModule2 from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
function _fun124724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:6, offset: 0x025c1bcb, size: 376 bytes, params: 8, frame: 19
const env0_0 = require;
const isStatusEffectivelyOnline = function(a0) {
@@ -7,473 +22,481 @@ function _fun124724(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = importDefault(5) /* metro dependency 5 */;
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
const friendOnlineTimerStore = importDefault(16145) /* metro dependency 16145: FriendOnlineTimerStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const env0_12 = (require(482) /* metro dependency 482: Constants */).StatusTypes;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const MINUTE = Millis.MINUTE;
const env0_13 = 5 * MINUTE;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun124732(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineTimer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineTimer.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_124725() { // fn#124725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:220, offset: 0x025c1d43, 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_124725_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _reportSessionMeaningfullyOnline() { // fn#124728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:444, offset: 0x025c1da5, size: 50 bytes, params: 1, frame: 14
return env0_8(_fun124730).apply(this, arguments);
}
function _fun124732(a0) { // fn#124732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:965, offset: 0x025c1f30, size: 97 bytes, params: 2, frame: 16
const closure = FriendOnlineTimerManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: function() {
}}, {key: '_terminate', value: function() {
this.clear();
}}]);
}
function* _fun124730() { // fn#124730, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:531, offset: 0x025c1de2, size: 284 bytes, params: 1, frame: 19
var binding;
var binding2;
var property;
var value3;
var HTTP;
var post;
var object2;
var USER_MEANINGFULLY_ONLINE;
var value4;
var value5;
var value6;
var error;
var HTTPResponseError;
var status;
var dispatch;
var Date;
if (true) {
value = environment.__proto__.__proto__;
function _isNativeReflectConstruct_124725() { // fn#124725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:220, offset: 0x025c1d43, 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 {
binding = env2_0;
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) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
property = binding2[11];
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
HTTP = value3.HTTP;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object2 = {};
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
binding = env2_11;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
USER_MEANINGFULLY_ONLINE = binding.USER_MEANINGFULLY_ONLINE;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object2.url = USER_MEANINGFULLY_ONLINE;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object2.rejectWithError = true;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
value4 = Reflect.apply(post, HTTP, [object2]);
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
if (value6) {
return value5;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object2 = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object2.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object2]);
}
}
function FriendOnlineTimerManager(a0) { // fn#124733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:977, offset: 0x025c1f91, size: 234 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, FriendOnlineTimerManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(FriendOnlineTimerManager);
binding = env1_5;
if (_isNativeReflectConstruct_124725()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.timerId = null;
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_124734, CONNECTION_RESUMED: CONNECTION_RESUMED_124735,
CONNECTION_CLOSED: CONNECTION_CLOSED_124736, CONNECTION_INTERRUPTED: CONNECTION_INTERRUPTED,
SELF_PRESENCE_STORE_UPDATE: SELF_PRESENCE_STORE_UPDATE_124738};
value.start = start_124739;
value.clear = clear_124742;
return value;
}
function FriendOnlineTimerManagerPOST_CONNECTION_OPEN() { // fn#124734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1282, owner: FriendOnlineTimerManager.POST_CONNECTION_OPEN, offset: 0x00dc92bc, size: 18 bytes, params: 1, frame: 9
return env0_0.start();
}
function FriendOnlineTimerManagerStart() { // fn#124739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1448, owner: FriendOnlineTimerManager.start, offset: 0x025c207b, size: 151 bytes, params: 1, frame: 15
const NotifyFriendsOnComeOnline = (require(3829) /* metro dependency 3829: UserSettings */).NotifyFriendsOnComeOnline;
if (NotifyFriendsOnComeOnline.getSetting() && FriendOnlineTimerStore.isCooldownElapsed() && env0_0.timerId == null && isStatusEffectivelyOnline(SelfPresenceStore.getStatus())) {
env0_0.timerId = global.setTimeout(_fun124740, env2_13);
}
}
function FriendOnlineTimerManagerClear() { // fn#124742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1815, owner: FriendOnlineTimerManager.clear, offset: 0x025c217e, size: 54 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_0.timerId != null) {
clearTimeout = global.clearTimeout;
binding = env0_0;
clearTimeout(binding.timerId);
binding.timerId = null;
}
}
function _fun124740() { // fn#124740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1607, offset: 0x025c2112, size: 78 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
env1_0.timerId = null;
value = environment.__proto__.__proto__.__proto__;
if (isStatusEffectivelyOnline(SelfPresenceStore.getStatus()) && FriendOnlineTimerStore.isCooldownElapsed()) {
(function() {
return _reportSessionMeaningfullyOnline.apply(this, arguments);
return (_isNativeReflectConstruct_124725_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _reportSessionMeaningfullyOnline() { // fn#124728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:444, offset: 0x025c1da5, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun124730).apply(this, arguments);
function* _fun124730() { // fn#124730, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:531, offset: 0x025c1de2, size: 284 bytes, params: 1, frame: 19
var binding;
var binding2;
var property;
var value3;
var HTTP;
var post;
var object;
var USER_MEANINGFULLY_ONLINE;
var value4;
var value5;
var value6;
var error;
var HTTPResponseError;
var status;
var dispatch;
var Date;
if (true) {
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
property = binding2[11];
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
HTTP = value3.HTTP;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object = {};
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
binding = env2_11;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
USER_MEANINGFULLY_ONLINE = binding.USER_MEANINGFULLY_ONLINE;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object.url = USER_MEANINGFULLY_ONLINE;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
object.rejectWithError = true;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
try {
value4 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
binding = env2_0;
HTTPResponseError = binding(env2_2[11]).HTTPResponseError;
if (error instanceof HTTPResponseError) {
status = error.status;
if (status !== 429) {
env2_1(env2_2[12]).captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
return undefined;
}
binding = env2_1;
value = binding(env2_2[12]);
value.captureException(error, {tags: {app_context: 'session_timer'}});
return undefined;
}
if (value6) {
return value5;
}
value = env2_1(env2_2[13]);
dispatch = value.dispatch;
object = {type: 'FRIEND_ONLINE_TIMER_REPORTED'};
Date = global.Date;
object.timestampMs = Date.now();
Reflect.apply(dispatch, value, [object]);
}
}
}
function _fun124732(a0) { // fn#124732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:965, offset: 0x025c1f30, size: 97 bytes, params: 2, frame: 16
const FriendOnlineTimerManager2 = FriendOnlineTimerManager;
Inherits(FriendOnlineTimerManager2, a0);
return CreateClass(FriendOnlineTimerManager2, [{key: '_initialize', value: function() {
}}, {key: '_terminate', value: function() {
this.clear();
}}]);
function FriendOnlineTimerManager(a0) { // fn#124733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:977, offset: 0x025c1f91, size: 234 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, FriendOnlineTimerManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(FriendOnlineTimerManager);
binding = env1_5;
if (_isNativeReflectConstruct_124725()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.timerId = null;
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_124734, CONNECTION_RESUMED: CONNECTION_RESUMED_124735,
CONNECTION_CLOSED: CONNECTION_CLOSED_124736, CONNECTION_INTERRUPTED: CONNECTION_INTERRUPTED,
SELF_PRESENCE_STORE_UPDATE: SELF_PRESENCE_STORE_UPDATE_124738};
value.start = start_124739;
value.clear = clear_124742;
return value;
function FriendOnlineTimerManagerPOST_CONNECTION_OPEN() { // fn#124734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1282, owner: FriendOnlineTimerManager.POST_CONNECTION_OPEN, offset: 0x00dc92bc, size: 18 bytes, params: 1, frame: 9
return env0_0.start();
}
function FriendOnlineTimerManagerCONNECTION_RESUMED() { // fn#124735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1315, owner: FriendOnlineTimerManager.CONNECTION_RESUMED, offset: 0x00dc92bc, size: 18 bytes, params: 1, frame: 9
return env0_0.start();
}
function FriendOnlineTimerManagerCONNECTION_CLOSED() { // fn#124736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1347, owner: FriendOnlineTimerManager.CONNECTION_CLOSED, offset: 0x0209c6cb, size: 19 bytes, params: 1, frame: 9
return env0_0.clear();
}
function CONNECTION_INTERRUPTED() { // fn#124737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1384, owner: FriendOnlineTimerManager.CONNECTION_INTERRUPTED, offset: 0x0209c6cb, size: 19 bytes, params: 1, frame: 9
return env0_0.clear();
}
function FriendOnlineTimerManagerSELF_PRESENCE_STORE_UPDATE() { // fn#124738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1425, owner: FriendOnlineTimerManager.SELF_PRESENCE_STORE_UPDATE, offset: 0x00dc92bc, size: 18 bytes, params: 1, frame: 9
return env0_0.start();
}
function FriendOnlineTimerManagerStart() { // fn#124739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1448, owner: FriendOnlineTimerManager.start, offset: 0x025c207b, size: 151 bytes, params: 1, frame: 15
const NotifyFriendsOnComeOnline = (UserSettingsModule).NotifyFriendsOnComeOnline;
if (NotifyFriendsOnComeOnline.getSetting() && FriendOnlineTimerStore.isCooldownElapsed() && env0_0.timerId == null && isStatusEffectivelyOnline(SelfPresenceStore.getStatus())) {
env0_0.timerId = global.setTimeout(_fun124740, env2_13);
}
function _fun124740() { // fn#124740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1607, offset: 0x025c2112, size: 78 bytes, params: 1, frame: 12
var environment;
let value = environment.__proto__;
env1_0.timerId = null;
value = environment.__proto__.__proto__.__proto__;
if (isStatusEffectivelyOnline(SelfPresenceStore.getStatus()) && FriendOnlineTimerStore.isCooldownElapsed()) {
(function() {
return _reportSessionMeaningfullyOnline.apply(this, arguments);
})();
}
}
}
function FriendOnlineTimerManagerClear() { // fn#124742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16352:1815, owner: FriendOnlineTimerManager.clear, offset: 0x025c217e, size: 54 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_0.timerId != null) {
clearTimeout = global.clearTimeout;
binding = env0_0;
clearTimeout(binding.timerId);
binding.timerId = null;
}
}
}
}
}
global.__d(_fun124724, 16144, [6, 7, 15, 17, 18, 5, 6876, 16145, 661, 482, 672, 507, 1216, 694, 3829, 4860,
2]) /* metro module 16144, dependencies: [6, 7, 15, 17, 18, 5, 6876, 16145, 661, 482, 672, 507, 1216, 694, 3829, 4860, 2] */;
@@ -1,77 +1,95 @@
/* Metro module 16145; source: modules/notifications/friend_online/FriendOnlineTimerStore.tsx; dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 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 Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Durations from '../../../utils/Durations.tsx'; /* Metro dependency 672 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun124745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:6, offset: 0x025c21c5, size: 318 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const env0_5 = Millis.HOUR;
object = {lastReportedAtMs: null};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun124749(PersistedStore);
value.displayName = 'FriendOnlineTimerStore';
value.persistKey = 'FriendOnlineTimerStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{FRIEND_ONLINE_TIMER_REPORTED: FRIEND_ONLINE_TIMER_REPORTED});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineTimerStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/friend_online/FriendOnlineTimerStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_124746() { // fn#124746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:148, offset: 0x025c2303, 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_124746() { // fn#124746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:148, offset: 0x025c2303, 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_124746_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_124746_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun124749(a0) { // fn#124749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:403, offset: 0x025c2365, size: 122 bytes, params: 2, frame: 16
const closure = FriendOnlineTimerStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_124751}, {key: 'isCooldownElapsed', value: value_124752},
{key: 'getState', value: value_124753}]);
}
function _fun124749(a0) { // fn#124749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:403, offset: 0x025c2365, size: 122 bytes, params: 2, frame: 16
const FriendOnlineTimerStore2 = FriendOnlineTimerStore;
Inherits(FriendOnlineTimerStore2, a0);
return CreateClass(FriendOnlineTimerStore2, [{key: 'initialize', value: value_124751}, {key: 'isCooldownElapsed',
value: value_124752}, {key: 'getState', value: value_124753}]);
function FriendOnlineTimerStore() { // fn#124750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:415, offset: 0x00e4046a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, FriendOnlineTimerStore);
const value3 = env1_3(FriendOnlineTimerStore);
return env1_2(this, _isNativeReflectConstruct_124746() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function FRIEND_ONLINE_TIMER_REPORTED({timestampMs}) { // fn#124754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:1081, offset: 0x025c2444, size: 26 bytes, params: 2, frame: 2
env0_7.lastReportedAtMs = timestampMs;
return true;
}
function value_124751() { // fn#124751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:743, offset: 0x025c23df, size: 38 bytes, params: 1, frame: 3
let value = a0;
if ((value !== undefined ? value : env1_6) == null) {
value = environment.__proto__;
}
value = environment.__proto__;
}
function value_124752() { // fn#124752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:804, offset: 0x025c2405, size: 63 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_7.lastReportedAtMs == null || global.Date.now() - env1_7.lastReportedAtMs >= HOUR;
}
function value_124753() { // fn#124753, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function value_124751() { // fn#124751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:743, offset: 0x025c23df, size: 38 bytes, params: 1, frame: 3
let value = a0;
if ((value !== undefined ? value : env1_6) == null) {
value = environment.__proto__;
}
value = environment.__proto__;
}
function value_124752() { // fn#124752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:804, offset: 0x025c2405, size: 63 bytes, params: 1, frame: 11
const value = environment.__proto__;
return env1_7.lastReportedAtMs == null || global.Date.now() - env1_7.lastReportedAtMs >= HOUR;
function FRIEND_ONLINE_TIMER_REPORTED({timestampMs}) { // fn#124754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16353:1081, offset: 0x025c2444, size: 26 bytes, params: 2, frame: 2
env0_7.lastReportedAtMs = timestampMs;
return true;
}
}
global.__d(_fun124745, 16145, [6, 7, 15, 17, 18, 672, 566, 694,
2]) /* metro module 16145, dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 2] */;
@@ -1,12 +1,20 @@
/* Metro module 10928; source: modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun83738(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11114:6, offset: 0x01f265a7, size: 166 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-02-gdm-all-reaction-notifications', 'kind': 'user',
defaultConfig: {showSettingsToggle: false}, variations: {[1]: {showSettingsToggle: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsExperiment.tsx');
exports.default = value;
exports.useGdmAllReactionNotificationExperiment = useGdmAllReactionNotificationExperiment;
function useGdmAllReactionNotificationExperiment(a0) { // fn#83739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11114:455, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
}
global.__d(_fun83738, 10928, [1854, 2]) /* metro module 10928, dependencies: [1854, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13883; source: modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105533(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14080:6, offset: 0x022bbf71, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/gdm_all_reaction_notifications/GdmAllReactionNotificationsUtils.tsx');
exports.updateGdmAllReactionNotifications = function(a0) {
require(dependencyMap[2]).EnableGdmAllReactionNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105533(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105533, 13883, [3796, 661, 3829, 683,
2]) /* metro module 13883, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,10 +1,20 @@
/* Metro module 16143; source: modules/notifications/native/ClearChannelNotificationsOnAppForegroundExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun124722(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16351:6, offset: 0x025c1b2d, size: 158 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2025-10-clear-channel-notifications-on-app-foreground-ios',
const env0_0 = (ApexModule).createApexExperiment({'name': '2025-10-clear-channel-notifications-on-app-foreground-ios',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/ClearChannelNotificationsOnAppForegroundExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/ClearChannelNotificationsOnAppForegroundExperiment.tsx');
exports.shouldClearChannelNotificationsOnAppForeground = shouldClearChannelNotificationsOnAppForeground;
function shouldClearChannelNotificationsOnAppForeground({location}) { // fn#124723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16351:428, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun124722, 16143, [1854, 2]) /* metro module 16143, dependencies: [1854, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 9904; source: modules/notifications/native/Constants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun77623(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10090:6, offset: 0x01e04605, size: 150 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/Constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/Constants.tsx');
exports.NotificationUserFeedbackReasons = {TOO_MANY: 'TOO_MANY', IRRELEVANT: 'IRRELEVANT',
DISLIKE_CONTENT: 'DISLIKE_CONTENT', IRRELEVANT_CHANNEL: 'IRRELEVANT_CHANNEL',
IRRELEVANT_USER: 'IRRELEVANT_USER', IRRELEVANT_TOPIC: 'IRRELEVANT_TOPIC',
SENSITIVE_OR_OFFENSIVE_TOPIC: 'SENSITIVE_OR_OFFENSIVE_TOPIC'};
}
global.__d(_fun77623, 9904, [2]) /* metro module 9904, dependencies: [2] */;
@@ -1,80 +1,85 @@
/* Metro module 9903; source: modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx; dependencies: [9904, 661, 4080, 9905, 1962, 1244, 683, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
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 9904 */
function _fun77619(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:6, offset: 0x01e0427a, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(9904) /* metro dependency 9904: Constants */).NotificationUserFeedbackReasons;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx');
exports.openGuildHighlightNotificationForPush = openGuildHighlightNotificationForPush;
function openGuildHighlightNotificationForPush(a0, a1, a2, a3, a4) { // fn#77620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:312, offset: 0x01e0430c, size: 498 bytes, params: 6, frame: 26
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths);
const object3 = {};
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
object3.value = TOO_MANY;
const intl = require(dependencyMap[5]).intl;
let string = intl.string;
const t = require(dependencyMap[5]).t;
object3.label = Reflect.apply(string, intl, [t.pLeQp0]);
const items2 = [object3];
const IRRELEVANT_CHANNEL = NotificationUserFeedbackReasons.IRRELEVANT_CHANNEL;
string = intl.string;
const Lu4n25 = t.Lu4n25;
items2[1] = {value: IRRELEVANT_CHANNEL, label: Reflect.apply(string, intl, [Lu4n25])};
const IRRELEVANT_USER = NotificationUserFeedbackReasons.IRRELEVANT_USER;
string = intl.string;
const TF6AhF = t.TF6AhF;
items2[2] = {value: IRRELEVANT_USER, label: Reflect.apply(string, intl, [TF6AhF])};
const object4 = {};
const IRRELEVANT_TOPIC = NotificationUserFeedbackReasons.IRRELEVANT_TOPIC;
object4.value = IRRELEVANT_TOPIC;
object4.label = intl.string(t['s+8J8f']);
items2[3] = object4;
const SENSITIVE_OR_OFFENSIVE_TOPIC = NotificationUserFeedbackReasons.SENSITIVE_OR_OFFENSIVE_TOPIC;
items2[4] = {value: SENSITIVE_OR_OFFENSIVE_TOPIC, label: intl.string(t.fEUR7Y)};
Reflect.apply(openLazy, defaultImport, [value2, 'GuildHighlightsNotifications', {guildId: a0,
feedbackSettings: {reasons: items2, onFeedbackShown: onFeedbackShown,
onFeedbackCompleted: onFeedbackCompleted}}]);
function onFeedbackShown() { // fn#77621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:858, owner: openGuildHighlightNotificationForPush.onFeedbackShown, offset: 0x01e044fe, size: 111 bytes, params: 1, frame: 17
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEEDBACK_FORM_VIEWED = AnalyticEvents.FEEDBACK_FORM_VIEWED;
const object = {};
object.type = importDefault;
object.location = importAll;
object.guild_id = env0_0;
const channel_id = require.channel_id;
object.channel_id = channel_id;
object.message_id = require.id;
copyDataProperties(object, env0_4, channel_id);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_VIEWED, object]);
}
function onFeedbackCompleted({rating, reason}) { // fn#77622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:998, owner: openGuildHighlightNotificationForPush.onFeedbackCompleted, offset: 0x01e0456d, size: 152 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEEDBACK_FORM_SUBMITTED = AnalyticEvents.FEEDBACK_FORM_SUBMITTED;
const object = {};
object.type = importDefault;
object.location = importAll;
object.rating = rating;
const value3 = reason == null;
object.reason = value3 ? undefined : reason.value;
object.guild_id = env0_0;
object.channel_id = require.channel_id;
object.message_id = require.id;
copyDataProperties(object, env0_4, value3);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_SUBMITTED, object]);
}
}
}
function openGuildHighlightNotificationForPush(a0, a1, a2, a3, a4) { // fn#77620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:312, offset: 0x01e0430c, size: 498 bytes, params: 6, frame: 26
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths);
const object = {};
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
object.value = TOO_MANY;
const intl = require(dependencyMap[5]).intl;
let string = intl.string;
const t = require(dependencyMap[5]).t;
object.label = Reflect.apply(string, intl, [t.pLeQp0]);
const items2 = [object];
const IRRELEVANT_CHANNEL = NotificationUserFeedbackReasons.IRRELEVANT_CHANNEL;
string = intl.string;
const Lu4n25 = t.Lu4n25;
items2[1] = {value: IRRELEVANT_CHANNEL, label: Reflect.apply(string, intl, [Lu4n25])};
const IRRELEVANT_USER = NotificationUserFeedbackReasons.IRRELEVANT_USER;
string = intl.string;
const TF6AhF = t.TF6AhF;
items2[2] = {value: IRRELEVANT_USER, label: Reflect.apply(string, intl, [TF6AhF])};
const object2 = {};
const IRRELEVANT_TOPIC = NotificationUserFeedbackReasons.IRRELEVANT_TOPIC;
object2.value = IRRELEVANT_TOPIC;
object2.label = intl.string(t['s+8J8f']);
items2[3] = object2;
const SENSITIVE_OR_OFFENSIVE_TOPIC = NotificationUserFeedbackReasons.SENSITIVE_OR_OFFENSIVE_TOPIC;
items2[4] = {value: SENSITIVE_OR_OFFENSIVE_TOPIC, label: intl.string(t.fEUR7Y)};
Reflect.apply(openLazy, defaultImport, [value2, 'GuildHighlightsNotifications', {guildId: a0,
feedbackSettings: {reasons: items2, onFeedbackShown: onFeedbackShown,
onFeedbackCompleted: onFeedbackCompleted}}]);
}
function onFeedbackShown() { // fn#77621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:858, owner: openGuildHighlightNotificationForPush.onFeedbackShown, offset: 0x01e044fe, size: 111 bytes, params: 1, frame: 17
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEEDBACK_FORM_VIEWED = AnalyticEvents.FEEDBACK_FORM_VIEWED;
const object2 = {};
object2.type = importDefault;
object2.location = importAll;
object2.guild_id = env0_0;
const channel_id = require.channel_id;
object2.channel_id = channel_id;
object2.message_id = require.id;
copyDataProperties(object2, env0_4, channel_id);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_VIEWED, object2]);
}
function onFeedbackCompleted({rating, reason}) { // fn#77622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:998, owner: openGuildHighlightNotificationForPush.onFeedbackCompleted, offset: 0x01e0456d, size: 152 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEEDBACK_FORM_SUBMITTED = AnalyticEvents.FEEDBACK_FORM_SUBMITTED;
const object2 = {};
object2.type = importDefault;
object2.location = importAll;
object2.rating = rating;
const value3 = reason == null;
object2.reason = value3 ? undefined : reason.value;
object2.guild_id = env0_0;
object2.channel_id = require.channel_id;
object2.message_id = require.id;
copyDataProperties(object2, env0_4, value3);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_SUBMITTED, object2]);
}
global.__d(_fun77619, 9903, [9904, 661, 4080, 9905, 1962, 1244, 683,
2]) /* metro module 9903, dependencies: [9904, 661, 4080, 9905, 1962, 1244, 683, 2] */;
@@ -1,17 +1,30 @@
/* Metro module 9905; source: modules/notifications/native/GuildHighlightsNotificationsActionSheet.tsx; dependencies: [57, 31, 27, 1867, 4864, 661, 9906, 33, 4501, 697, 6819, 4573, 9907, 632, 1244, 9908, 1585, 6275, 6277, 6766, 1948, 4017, 6239, 7972, 6613, 6610, 4080, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import UserGuildSettingsStore from '../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as ConstantsModule2 from '../../feedback/Constants.tsx'; /* Metro dependency 9906 */
import * as PushFeedbackActionsModule from '../../push_feedback/PushFeedbackActions.tsx'; /* Metro dependency 9907 */
function _fun77624(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:6, offset: 0x01e0469b, size: 616 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_8 = value.HelpdeskArticles;
const env0_9 = value.HighlightSettings;
const env0_10 = (require(9906) /* metro dependency 9906: Constants */).FeedbackRating;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
@@ -26,224 +39,276 @@ function _fun77624(global, require, importDefault, importAll, module, exports, d
'marginVertical': 8, 'padding': 0, backgroundColor: BACKGROUND_SURFACE_HIGH}}]);
value = require(4501) /* metro dependency 4501: createStyles */;
createStyles = value.createStyles;
const object = {'flexDirection': 'row', 'padding': 8, 'marginBottom': 16, 'backgroundColor': null,
const object2 = {'flexDirection': 'row', 'padding': 8, 'marginBottom': 16, 'backgroundColor': null,
'alignItems': 'center', 'justifyContent': 'center'};
const GUILD_NOTIFICATIONS_BOTTOM_SHEET_PILL_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.GUILD_NOTIFICATIONS_BOTTOM_SHEET_PILL_BACKGROUND;
object.backgroundColor = GUILD_NOTIFICATIONS_BOTTOM_SHEET_PILL_BACKGROUND;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.backgroundColor = GUILD_NOTIFICATIONS_BOTTOM_SHEET_PILL_BACKGROUND;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object, SHADOW_LOW, undefined);
const env0_14 = Reflect.apply(createStyles, value, [{guildPill: object, guildName: {paddingHorizontal: 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/GuildHighlightsNotificationsActionSheet.tsx');
copyDataProperties(object2, SHADOW_LOW, undefined);
const env0_14 = Reflect.apply(createStyles, value, [{guildPill: object2, guildName: {paddingHorizontal: 8}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/GuildHighlightsNotificationsActionSheet.tsx');
exports.default = SummaryFeedbackActionSheet;
}
function GuildPill({guild}) { // fn#77625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1013, offset: 0x01e04903, size: 210 bytes, params: 2, frame: 22
const styles = useStyles();
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const SMALL_32 = GuildIconSizes.SMALL_32;
const guildIcon = (
<GuildIcon
guild={guild}
size={SMALL_32}
animate
/>
);
const Text = (TextModule).Text;
return (
<View style={styles.guildPill}>
{guildIcon}
<Text
style={styles.guildName}
variant="heading-md/semibold"
color="mobile-text-heading-primary"
>
{guild?.name}
</Text>
</View>
);
}
function GuildPill({guild}) { // fn#77625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1013, offset: 0x01e04903, size: 210 bytes, params: 2, frame: 22
const styles = useStyles();
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const SMALL_32 = GuildIconSizes.SMALL_32;
const guildIcon = <GuildIcon guild={guild} size={SMALL_32} animate />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.guildPill}>
{guildIcon}
function isFeedbackComplete(a0) { // fn#77626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1301, offset: 0x01e049d5, size: 49 bytes, params: 2, frame: 4
const {rating, reason} = a0 ?? ({});
const GOOD = FeedbackRating.GOOD;
return rating === GOOD || reason != null;
}
function isFeedbackGood(a0) { // fn#77627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1400, offset: 0x01e04a06, size: 36 bytes, params: 2, frame: 2
const rating = (a0 ?? ({})).rating;
const GOOD = FeedbackRating.GOOD;
return rating === GOOD;
}
function SummaryFeedbackActionSheet({guildId, feedbackSettings}) { // fn#77628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1581, offset: 0x01e04a2a, size: 1702 bytes, params: 2, frame: 42
var r11;
var r1;
var r21;
var r13;
var FeedbackForm;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const Text = (TextModule).Text;
var Card;
var FormSwitchRow;
var object2;
const styles = useStyles();
const binding = env0_4;
const value4 = binding.useRef(null);
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [undefined]);
const value6 = Module00057(value5, 2);
const property = value6[0];
var env0_4 = value6[1];
useState = binding.useState;
const value8 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property2 = value8[0];
const env0_6 = value8[1];
useState = binding.useState;
const value9 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property3 = value9[0];
const env0_7 = value9[1];
const value10 = binding.useCallback(_fun77629, [property2, feedbackSettings]);
binding.useEffect(function() {
return _fun77631;
}, [property, value10]);
const value11 = binding.useCallback(_fun77632, [value10]);
const value12 = binding.useCallback(_fun77633, []);
const useStateFromStoresObject = UseStateFromStoresModule.useStateFromStoresObject;
object = [UserGuildSettingsStore];
object[1] = GuildStore;
const {guild, muted, notifyHighlights} = Reflect.apply(useStateFromStoresObject, UseStateFromStoresModule, [object,
function() {
var object = {};
var guildStoreBinding = GuildStore;
var guildIdBinding = guildId;
object.guild = guildStoreBinding.getGuild(guildIdBinding);
var userGuildSettingsStoreBinding = UserGuildSettingsStore;
object.muted = userGuildSettingsStoreBinding.isMuted(guildIdBinding);
object.notifyHighlights = userGuildSettingsStoreBinding.getNotifyHighlights(guildIdBinding);
return object;
}, [guildId]]);
const value14 = feedbackSettings?.reasons != null;
if (value14) {
if (isFeedbackComplete(property)) {
r1 = (
<Text
style={[styles.centerText, styles.thanks]}
variant="heading-md/semibold"
color="text-brand"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kZbFIO)}
</Text>
);
} else {
FeedbackForm = (require(9908) /* metro dependency 9908: FeedbackForm */).FeedbackForm;
var feedbackFormProps = {ratingsBodyLabel: intl.string(t.Yzl7Or),
reasonsHeaderLabel: intl.string(t.g1q5fr)};
r11 = feedbackSettings?.reasons ?? [];
feedbackFormProps.reasons = r11;
r11 = feedbackSettings != null ? feedbackSettings.onFeedbackShown : function() {
};
feedbackFormProps.trackOpen = r11;
feedbackFormProps.onFeedbackChanged = value11;
r1 = <FeedbackForm {...feedbackFormProps} />;
}
r21 = r1;
} else {
r21 = null;
}
const value19 = 316 + (value14 ? property2 ? 64 : 148 : 0) + (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
let r6 = value14 ? isFeedbackComplete(property) : !value14;
r6 = !r6 ? property?.rating == null : r6;
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const r5 = r6 ? value19 : undefined;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
const r7 = property3 ? value12 : undefined;
const items4 = [
<GuildPill guild={guild} />,
];
items4[1] = (
<Text
style={styles.guildName}
variant="heading-md/semibold"
style={styles.headerTitle}
variant="heading-lg/semibold"
color="mobile-text-heading-primary"
>
{guild?.name}
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o8Bypv)}
</Text>
</View>
);
}
function isFeedbackComplete(a0) { // fn#77626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1301, offset: 0x01e049d5, size: 49 bytes, params: 2, frame: 4
const {rating, reason} = a0 ?? ({});
const GOOD = FeedbackRating.GOOD;
return rating === GOOD || reason != null;
}
function isFeedbackGood(a0) { // fn#77627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1400, offset: 0x01e04a06, size: 36 bytes, params: 2, frame: 2
const rating = (a0 ?? ({})).rating;
const GOOD = FeedbackRating.GOOD;
return rating === GOOD;
}
function SummaryFeedbackActionSheet({guildId, feedbackSettings}) { // fn#77628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1581, offset: 0x01e04a2a, size: 1702 bytes, params: 2, frame: 42
var r11;
var r1;
var r21;
var r13;
var FeedbackForm;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var Card;
var FormSwitchRow;
var object11;
const styles = useStyles();
const binding = env0_4;
const value4 = binding.useRef(null);
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [undefined]);
const binding2 = env0_3;
const value6 = binding2(value5, 2);
const property = value6[0];
var env0_4 = value6[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value8[0];
const env0_6 = value8[1];
useState = binding.useState;
const value9 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property3 = value9[0];
const env0_7 = value9[1];
const value10 = binding.useCallback(_fun77629, [property2, feedbackSettings]);
binding.useEffect(function() {
return _fun77631;
}, [property, value10]);
const value11 = binding.useCallback(_fun77632, [value10]);
const value12 = binding.useCallback(_fun77633, []);
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStoresObject = useStateFromStoresModule.useStateFromStoresObject;
object = [UserGuildSettingsStore];
object[1] = GuildStore;
const {guild, muted, notifyHighlights} = Reflect.apply(useStateFromStoresObject, useStateFromStoresModule, [object,
function() {
var object = {};
var guildIdBinding = guildId;
object.guild = GuildStore.getGuild(guildIdBinding);
object.muted = UserGuildSettingsStore.isMuted(guildIdBinding);
object.notifyHighlights = UserGuildSettingsStore.getNotifyHighlights(guildIdBinding);
return object;
}, [guildId]]);
const value14 = feedbackSettings?.reasons != null;
if (value14) {
if (isFeedbackComplete(property)) {
r1 = <Text style={[styles.centerText,
styles.thanks]} variant="heading-md/semibold" color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kZbFIO)}</Text>;
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
let centerText = styles.centerText;
let format = intl.format;
const enfuur = (require(1244) /* metro dependency 1244: indexNative */).t.enfuur;
let defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const HIGHLIGHTS_NOTIFICATIONS = HelpdeskArticles.HIGHLIGHTS_NOTIFICATIONS;
items4[2] = (
<TextWithIOSLinkWorkaround
style={centerText}
variant="text-md/medium"
color="text-default"
>
{Reflect.apply(format, intl, [enfuur, {helpUrl: Reflect.apply(getArticleURL, defaultImport,
[HIGHLIGHTS_NOTIFICATIONS])}])}
</TextWithIOSLinkWorkaround>
);
const items5 = [
<View style={styles.header}>
{items4}
</View>,
];
items5[1] = r21 != null && ((View) => <View style={styles.feedback}>{r21}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View);
const isFeedbackGood2 = isFeedbackGood(property);
if (isFeedbackGood2) {
r13 = !isFeedbackGood2;
} else {
FeedbackForm = (require(9908) /* metro dependency 9908: FeedbackForm */).FeedbackForm;
var feedbackFormProps = {ratingsBodyLabel: intl.string(t.Yzl7Or),
reasonsHeaderLabel: intl.string(t.g1q5fr)};
r11 = feedbackSettings?.reasons ?? [];
feedbackFormProps.reasons = r11;
r11 = feedbackSettings != null ? feedbackSettings.onFeedbackShown : function() {
};
feedbackFormProps.trackOpen = r11;
feedbackFormProps.onFeedbackChanged = value11;
r1 = <FeedbackForm {...feedbackFormProps} />;
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
var cardProps = {'style': null, 'shadow': 'low', 'border': 'subtle', style: styles.settings};
FormSwitchRow = (require(7972) /* metro dependency 7972: native */).FormSwitchRow;
r13 = (
<Card {...cardProps}>
<FormSwitchRow
disabled={muted}
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.MVi7LQ)}
value={muted || notifyHighlights === HighlightSettings.DISABLED}
onValueChange={function(a0) {
var defaultImport = importDefault(dependencyMap[24]);
var updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
var guildIdBinding = guildId;
var object = {};
object.notify_highlights = a0 ? HighlightSettings.DISABLED : HighlightSettings.ENABLED;
var NotificationLabel = require(dependencyMap[25]).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildIdBinding, object,
NotificationLabel.highlights(!a0)]);
}}
/>
</Card>
);
}
r21 = r1;
} else {
r21 = null;
}
const value19 = 316 + (value14 ? property2 ? 64 : 148 : 0) + (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
let r6 = value14 ? isFeedbackComplete(property) : !value14;
r6 = !r6 ? property?.rating == null : r6;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const r5 = r6 ? value19 : undefined;
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
const r7 = property3 ? value12 : undefined;
const items4 = [<GuildPill guild={guild} />];
items4[1] = <Text style={styles.headerTitle} variant="heading-lg/semibold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o8Bypv)}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
let centerText = styles.centerText;
let format = intl.format;
const enfuur = (require(1244) /* metro dependency 1244: indexNative */).t.enfuur;
let defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const HIGHLIGHTS_NOTIFICATIONS = HelpdeskArticles.HIGHLIGHTS_NOTIFICATIONS;
items4[2] = <TextWithIOSLinkWorkaround style={centerText} variant="text-md/medium" color="text-default">{Reflect.apply(format,
intl, [enfuur, {helpUrl: Reflect.apply(getArticleURL, defaultImport,
[HIGHLIGHTS_NOTIFICATIONS])}])}</TextWithIOSLinkWorkaround>;
const items5 = [<View style={styles.header}>{items4}</View>];
items5[1] = r21 != null && ((View) => <View style={styles.feedback}>{r21}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View);
const isFeedbackGood2 = isFeedbackGood(property);
if (isFeedbackGood2) {
r13 = !isFeedbackGood2;
} else {
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
var cardProps = {'style': null, 'shadow': 'low', 'border': 'subtle', style: styles.settings};
FormSwitchRow = (require(7972) /* metro dependency 7972: native */).FormSwitchRow;
r13 = <Card {...cardProps}><FormSwitchRow disabled={muted} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.MVi7LQ)} value={muted || notifyHighlights === HighlightSettings.DISABLED} onValueChange={function(a0) {
var defaultImport = importDefault(dependencyMap[24]);
var updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
var guildIdBinding = guildId;
var object = {};
object.notify_highlights = a0 ? HighlightSettings.DISABLED : HighlightSettings.ENABLED;
var NotificationLabel = require(dependencyMap[25]).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildIdBinding, object,
NotificationLabel.highlights(!a0)]);
}} /></Card>;
}
items5[2] = r13;
centerText = styles.centerText;
format = intl.format;
const F9rfLX = (require(1244) /* metro dependency 1244: indexNative */).t.F9rfLX;
items5[3] = <TextWithIOSLinkWorkaround style={centerText} variant="text-sm/medium" color="text-default">{Reflect.apply(format,
intl, [F9rfLX, {notifSettingsHook: notifSettingsHook}])}</TextWithIOSLinkWorkaround>;
return (
<BottomSheet
scrollable
ref={value4}
contentHeight={r5}
startHeight={value19}
>
<BottomSheetScrollView contentContainerStyle={styles.contentContainer} onLayout={r7}>
<View>
{items5}
</View>
</BottomSheetScrollView>
</BottomSheet>
);
}
function _fun77629(a0) { // fn#77629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1819, offset: 0x01e050d0, size: 132 bytes, params: 2, frame: 14
var value6;
if (!(env0_5 || a0?.rating == null)) {
if (!(feedbackSettings == null || feedbackSettings.onFeedbackCompleted == null)) {
feedbackSettings.onFeedbackCompleted(a0);
items5[2] = r13;
centerText = styles.centerText;
format = intl.format;
const F9rfLX = (require(1244) /* metro dependency 1244: indexNative */).t.F9rfLX;
items5[3] = (
<TextWithIOSLinkWorkaround
style={centerText}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(format, intl, [F9rfLX, {notifSettingsHook: notifSettingsHook}])}
</TextWithIOSLinkWorkaround>
);
return (
<BottomSheet
scrollable
ref={value4}
contentHeight={r5}
startHeight={value19}
>
<BottomSheetScrollView contentContainerStyle={styles.contentContainer} onLayout={r7}>
<View>
{items5}
</View>
</BottomSheetScrollView>
</BottomSheet>
);
function _fun77629(a0) { // fn#77629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1819, offset: 0x01e050d0, size: 132 bytes, params: 2, frame: 14
var value6;
if (!(ReactNativeModule.View || a0?.rating == null)) {
if (!(feedbackSettings == null || feedbackSettings.onFeedbackCompleted == null)) {
feedbackSettings.onFeedbackCompleted(a0);
}
value6 = environment.__proto__;
(require(9907) /* metro dependency 9907: PushFeedbackActions */).handleSurveyCleanup();
env0_6(true);
}
}
value6 = environment.__proto__;
(require(9907) /* metro dependency 9907: PushFeedbackActions */).handleSurveyCleanup();
env0_6(true);
function _fun77630() { // fn#77630, offset: 0x01e05154, size: 11 bytes, params: 1, frame: 1
return _fun77631;
function _fun77631() { // fn#77631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1987, offset: 0x01e0515f, size: 20 bytes, params: 1, frame: 11
env1_8(env1_3);
}
}
function _fun77632(a0) { // fn#77632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:2027, offset: 0x01e05173, size: 97 bytes, params: 2, frame: 14
env0_4(a0);
if (isFeedbackComplete(a0)) {
env0_8(a0);
env0_7(false);
} else {
env0_7(true);
}
(PushFeedbackActionsModule).handleSurveyCleanup();
}
function _fun77633() { // fn#77633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:2132, offset: 0x01e051d4, size: 43 bytes, params: 1, frame: 11
const current = env0_2.current;
if (current != null) {
current.expandActionSheet();
}
env0_7(false);
}
function notifSettingsHook() { // fn#77637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:4168, owner: SummaryFeedbackActionSheet.notifSettingsHook, offset: 0x01e052ba, size: 67 bytes, params: 1, frame: 13
let value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
value = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
value.open(guildId);
}
}
}
function _fun77630() { // fn#77630, offset: 0x01e05154, size: 11 bytes, params: 1, frame: 1
return _fun77631;
}
function _fun77632(a0) { // fn#77632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:2027, offset: 0x01e05173, size: 97 bytes, params: 2, frame: 14
env0_4(a0);
if (isFeedbackComplete(a0)) {
env0_8(a0);
env0_7(false);
} else {
env0_7(true);
}
(require(9907) /* metro dependency 9907: PushFeedbackActions */).handleSurveyCleanup();
}
function _fun77633() { // fn#77633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:2132, offset: 0x01e051d4, size: 43 bytes, params: 1, frame: 11
const current = env0_2.current;
if (current != null) {
current.expandActionSheet();
}
env0_7(false);
}
function notifSettingsHook() { // fn#77637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:4168, owner: SummaryFeedbackActionSheet.notifSettingsHook, offset: 0x01e052ba, size: 67 bytes, params: 1, frame: 13
let value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
value = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
value.open(guildId);
}
function _fun77631() { // fn#77631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10091:1987, offset: 0x01e0515f, size: 20 bytes, params: 1, frame: 11
env1_8(env1_3);
}
global.__d(_fun77624, 9905, [57, 31, 27, 1867, 4864, 661, 9906, 33, 4501, 697, 6819, 4573, 9907, 632, 1244, 9908,
1585, 6275, 6277, 6766, 1948, 4017, 6239, 7972, 6613, 6610, 4080,
2]) /* metro module 9905, dependencies: [57, 31, 27, 1867, 4864, 661, 9906, 33, 4501, 697, 6819, 4573, 9907, 632, 1244, 9908, 1585, 6275, 6277, 6766, 1948, 4017, 6239, 7972, 6613, 6610, 4080, 2] */;
@@ -1,36 +1,41 @@
/* Metro module 10931; source: modules/notifications/native/InAppMessageSoundsStore.tsx; dependencies: [587, 685, 3769, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StorageModule from '../../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as Module00685Module from '../../../by-id/module-00685.js'; /* Metro dependency 685 */
function _fun83743(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:6, offset: 0x01f26855, size: 156 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(685) /* metro dependency 685 */).createWithEqualityFn(_fun83744);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/InAppMessageSoundsStore.tsx');
const env0_2 = (Module00685Module).createWithEqualityFn(_fun83744);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/InAppMessageSoundsStore.tsx');
exports.isInAppMessageSoundsEnabled = isInAppMessageSoundsEnabled;
exports.setInAppMessageSoundsEnabled = setInAppMessageSoundsEnabled;
exports.useInAppMessageSoundsEnabled = useInAppMessageSoundsEnabled;
function _fun83744() { // fn#83744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:162, offset: 0x01f268f1, size: 67 bytes, params: 1, frame: 12
const Storage = (StorageModule).Storage;
const value = Storage.get('InAppMessageSoundsEnabled');
return {isEnabled: value == null || value};
}
function isInAppMessageSoundsEnabled() { // fn#83745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:350, offset: 0x01f26934, size: 25 bytes, params: 1, frame: 9
const binding = env0_2;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).isEnabled;
}
function setInAppMessageSoundsEnabled(a0) { // fn#83746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:451, offset: 0x01f2694d, size: 74 bytes, params: 2, frame: 15
const Storage = (StorageModule).Storage;
Storage.set('InAppMessageSoundsEnabled', a0);
env0_2.setState({isEnabled: a0});
}
function useInAppMessageSoundsEnabled() { // fn#83747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:575, offset: 0x01f26997, size: 52 bytes, params: 1, frame: 13
return env0_2(function(a0) {
return a0.isEnabled;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
}
function _fun83744() { // fn#83744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:162, offset: 0x01f268f1, size: 67 bytes, params: 1, frame: 12
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value = Storage.get('InAppMessageSoundsEnabled');
return {isEnabled: value == null || value};
}
function isInAppMessageSoundsEnabled() { // fn#83745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:350, offset: 0x01f26934, size: 25 bytes, params: 1, frame: 9
const binding = env0_2;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).isEnabled;
}
function setInAppMessageSoundsEnabled(a0) { // fn#83746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:451, offset: 0x01f2694d, size: 74 bytes, params: 2, frame: 15
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('InAppMessageSoundsEnabled', a0);
env0_2.setState({isEnabled: a0});
}
function useInAppMessageSoundsEnabled() { // fn#83747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11117:575, offset: 0x01f26997, size: 52 bytes, params: 1, frame: 13
return env0_2(function(a0) {
return a0.isEnabled;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
global.__d(_fun83743, 10931, [587, 685, 3769, 2]) /* metro module 10931, dependencies: [587, 685, 3769, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,12 +1,16 @@
/* Metro module 13002; source: modules/notifications/native/NotifSettingsExperiments.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun99176(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13192:6, offset: 0x021be68f, size: 177 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-declarative-notif-settings', 'kind': 'user',
defaultConfig: {'enabled': false, 'clearDeclarative': false}, variations: {[1]: {'enabled': true,
'clearDeclarative': false}, [2]: {'enabled': false, 'clearDeclarative': true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/NotifSettingsExperiments.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotifSettingsExperiments.tsx');
exports.declarativeNotifSettingsExperiment = value;
}
global.__d(_fun99176, 13002, [1854, 2]) /* metro module 13002, dependencies: [1854, 2] */;
@@ -1,6 +1,11 @@
/* Metro module 13003; source: modules/notifications/native/NotifSettingsUtils.android.tsx; dependencies: [12999, 1244, 13004, 13005, 1216, 2] */
import SentryUtilsNative from '../../../utils/SentryUtils.native.tsx'; /* Metro dependency 1216 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NotificationSettingsConstantsModule from '../NotificationSettingsConstants.tsx'; /* Metro dependency 12999 */
import * as NotificationSettingsUtilsModule from '../NotificationSettingsUtils.tsx'; /* Metro dependency 13005 */
function _fun99177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:6, offset: 0x021be740, size: 317 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const _arrayLikeToArray_99180 = function(a0, a1) {
var r0;
@@ -52,395 +57,398 @@ function _fun99177(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const notificationSettingsConstantsModule = require(12999) /* metro dependency 12999: NotificationSettingsConstants */;
const env0_3 = notificationSettingsConstantsModule.NOTIF_CATEGORIES;
const env0_4 = notificationSettingsConstantsModule.NOTIF_SETTING_MAPPING;
const env0_5 = notificationSettingsConstantsModule.NOTIF_SETTINGS;
object2 = {NONE: 0};
object2[0] = 'NONE';
object2.MIN = 1;
object2[1] = 'MIN';
object2.LOW = 2;
object2[2] = 'LOW';
object2.DEFAULT = 3;
object2[3] = 'DEFAULT';
object2.HIGH = 4;
object2[4] = 'HIGH';
object2 = {clear: clear_99186, registerDeclarativeNotificationCategories: registerDeclarativeNotificationCategories};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/NotifSettingsUtils.android.tsx');
exports.default = object2;
}
function _createForOfIteratorHelperLoose_99178(a0, a1) { // fn#99178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:177, offset: 0x021be87d, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
object = {NONE: 0};
object[0] = 'NONE';
object.MIN = 1;
object[1] = 'MIN';
object.LOW = 2;
object[2] = 'LOW';
object.DEFAULT = 3;
object[3] = 'DEFAULT';
object.HIGH = 4;
object[4] = 'HIGH';
object = {clear: clear_99186, registerDeclarativeNotificationCategories: registerDeclarativeNotificationCategories};
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotifSettingsUtils.android.tsx');
exports.default = object;
function _createForOfIteratorHelperLoose_99178(a0, a1) { // fn#99178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:177, offset: 0x021be87d, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun99179;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_99180(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun99179;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_99180(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_99180(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_99180(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun99179;
}
return _fun99179;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun99179() { // fn#99179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:748, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function inferImportanceFromBehavior(a0) { // fn#99181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1219, offset: 0x021be9f1, size: 118 bytes, params: 2, frame: 3
return 'ringtone' in a0 && a0.ringtone != null || a0.visibility === 'popup' ? env0_6.HIGH : a0.visibility === 'hidden' ? env0_6.MIN : a0.sound ? env0_6.DEFAULT : env0_6.LOW;
}
function inferImportanceFromBehavior(a0) { // fn#99181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1219, offset: 0x021be9f1, size: 118 bytes, params: 2, frame: 3
return 'ringtone' in a0 && a0.ringtone != null || a0.visibility === 'popup' ? env0_6.HIGH : a0.visibility === 'hidden' ? env0_6.MIN : a0.sound ? env0_6.DEFAULT : env0_6.LOW;
}
function formatSetting(a0, a1) { // fn#99183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1468, offset: 0x021beaa9, size: 175 bytes, params: 3, frame: 16
const value = a1;
const object2 = {};
object2.id = a0.string_id;
object2.groupId = a0.category;
const value3 = undefined;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.name = intl.string(a0.title);
object2.importance = value ?? inferImportanceFromBehavior(a0.behavior);
object2.ringtone = 'ringtone' in a0.behavior ? a0.behavior.ringtone : value3;
object2.badge = a0.behavior.badge;
object2.vibrate = a0.behavior.vibrate;
return object2;
}
function formatSetting(a0, a1) { // fn#99183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1468, offset: 0x021beaa9, size: 175 bytes, params: 3, frame: 16
const value = a1;
const object = {};
object.id = a0.string_id;
object.groupId = a0.category;
const value3 = undefined;
const intl = (IndexNativeModule).intl;
object.name = intl.string(a0.title);
object.importance = value ?? inferImportanceFromBehavior(a0.behavior);
object.ringtone = 'ringtone' in a0.behavior ? a0.behavior.ringtone : value3;
object.badge = a0.behavior.badge;
object.vibrate = a0.behavior.vibrate;
return object;
}
function buildChannelsAndMapping() { // fn#99184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1744, offset: 0x021beb58, size: 783 bytes, params: 1, frame: 42
var getAndroidNotifChannelStates;
var r6;
var r13;
var r29;
var r4;
var value6;
var value7;
var value8;
var value9;
var done;
var value10;
var set;
var channelId;
var importance;
var value11;
var value12;
var value13;
var value14;
var value15;
var value16;
var id;
var value17;
var value18;
var value19;
var value20;
var notifType;
var notifSetting;
var property;
var value21;
var value22;
var value23;
var get;
var value24;
var string_id;
var value25;
var inferImportanceFromBehaviorBinding;
var behavior;
var value26;
var value27;
var value32;
var push;
var formatSettingBinding;
var value33;
const value2 = undefined;
const {settings,
mappings} = (require(13005) /* metro dependency 13005: NotificationSettingsUtils */).getAssignedNotifSettingsAndMappings();
let Map = global.Map;
let prototype = Map.prototype;
const value4 = Object.create(prototype, {constructor: {value: Map}});
let map = new Map();
const value5 = map instanceof Object ? map : value4;
reducibleJoin2: while (true) {
if ((importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) == null) {
getAndroidNotifChannelStates = value2;
function buildChannelsAndMapping() { // fn#99184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:1744, offset: 0x021beb58, size: 783 bytes, params: 1, frame: 42
var getAndroidNotifChannelStates;
var r6;
var r13;
var r29;
var r4;
var value6;
var value7;
var value8;
var value9;
var done;
var value10;
var set;
var channelId;
var importance;
var value11;
var value12;
var value13;
var value14;
var value15;
var value16;
var id;
var value17;
var value18;
var value19;
var value20;
var notifType;
var notifSetting;
var property;
var value21;
var value22;
var value23;
var get;
var value24;
var string_id;
var value25;
var inferImportanceFromBehaviorBinding;
var behavior;
var value26;
var value27;
var value32;
var push;
var formatSettingBinding;
var value33;
const value2 = undefined;
const {settings,
mappings} = (NotificationSettingsUtilsModule).getAssignedNotifSettingsAndMappings();
let Map = global.Map;
let prototype = Map.prototype;
const value4 = Object.create(prototype, {constructor: {value: Map}});
let map = new Map();
const value5 = map instanceof Object ? map : value4;
reducibleJoin2: while (true) {
if ((importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) == null) {
getAndroidNotifChannelStates = value2;
break reducibleJoin2;
}
getAndroidNotifChannelStates = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */).getAndroidNotifChannelStates;
break reducibleJoin2;
}
getAndroidNotifChannelStates = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */).getAndroidNotifChannelStates;
break reducibleJoin2;
}
reducibleJoin17: while (true) {
if (getAndroidNotifChannelStates == null) {
break reducibleJoin17;
}
Map = global.Map;
prototype = Map.prototype;
value6 = Object.create(prototype, {constructor: {value: Map}});
map = new Map();
value7 = map instanceof Object ? map : value6;
value8 = _createForOfIteratorHelperLoose_99178(getAndroidNotifChannelStates());
value9 = value8();
done = value9.done;
if (!done) {
r6 = value9;
reducibleLoop4: while (true) {
value10 = r6.value;
set = value7.set;
channelId = value10.channelId;
importance = value10.importance;
Reflect.apply(set, value7, [channelId, importance]);
value11 = value8();
done = value11.done;
if (done) {
break reducibleLoop4;
}
r6 = value11;
continue reducibleLoop4;
reducibleJoin17: while (true) {
if (getAndroidNotifChannelStates == null) {
break reducibleJoin17;
}
}
Map = global.Map;
prototype = Map.prototype;
value12 = Object.create(prototype, {constructor: {value: Map}});
map = new Map();
value13 = map instanceof Object ? map : value12;
value14 = _createForOfIteratorHelperLoose_99178(NOTIF_SETTINGS);
value15 = value14();
done = value15.done;
if (!done) {
r6 = value15;
reducibleLoop6: while (true) {
value16 = r6.value;
set = value13.set;
id = value16.id;
Reflect.apply(set, value13, [id, value16]);
value17 = value14();
done = value17.done;
if (done) {
break reducibleLoop6;
}
r6 = value17;
continue reducibleLoop6;
}
}
value18 = _createForOfIteratorHelperLoose_99178(mappings);
value19 = value18();
done = value19.done;
if (done) {
break reducibleJoin17;
}
r13 = value19;
reducibleLoop8: while (true) {
value20 = r13.value;
notifType = value20.notifType;
notifSetting = value20.notifSetting;
property = NOTIF_SETTING_MAPPING[notifType];
reducibleJoin16: while (true) {
if (property == null) {
break reducibleJoin16;
}
value21 = _createForOfIteratorHelperLoose_99178(property);
value22 = value21();
done = value22.done;
if (done) {
break reducibleJoin16;
}
r29 = value22;
reducibleLoop10: while (true) {
value23 = r29.value;
if (value23 !== notifSetting) {
get = value13.get;
value24 = Reflect.apply(get, value13, [value23]);
reducibleJoin14: while (true) {
if (value24 == null) {
break reducibleJoin14;
}
get = value7.get;
string_id = value24.string_id;
value25 = Reflect.apply(get, value7, [string_id]);
if (value25 == null) {
break reducibleJoin14;
}
inferImportanceFromBehaviorBinding = inferImportanceFromBehavior;
behavior = value24.behavior;
if (value25 !== inferImportanceFromBehaviorBinding(behavior)) {
set = value5.set;
Reflect.apply(set, value5, [notifSetting, value25]);
break reducibleJoin16;
}
break reducibleJoin14;
}
}
value26 = value21();
done = value26.done;
Map = global.Map;
prototype = Map.prototype;
value6 = Object.create(prototype, {constructor: {value: Map}});
map = new Map();
value7 = map instanceof Object ? map : value6;
value8 = _createForOfIteratorHelperLoose_99178(getAndroidNotifChannelStates());
value9 = value8();
done = value9.done;
if (!done) {
r6 = value9;
reducibleLoop4: while (true) {
value10 = r6.value;
set = value7.set;
channelId = value10.channelId;
importance = value10.importance;
Reflect.apply(set, value7, [channelId, importance]);
value11 = value8();
done = value11.done;
if (done) {
break reducibleJoin16;
break reducibleLoop4;
}
r29 = value26;
continue reducibleLoop10;
r6 = value11;
continue reducibleLoop4;
}
}
value27 = value18();
done = value27.done;
Map = global.Map;
prototype = Map.prototype;
value12 = Object.create(prototype, {constructor: {value: Map}});
map = new Map();
value13 = map instanceof Object ? map : value12;
value14 = _createForOfIteratorHelperLoose_99178(NOTIF_SETTINGS);
value15 = value14();
done = value15.done;
if (!done) {
r6 = value15;
reducibleLoop6: while (true) {
value16 = r6.value;
set = value13.set;
id = value16.id;
Reflect.apply(set, value13, [id, value16]);
value17 = value14();
done = value17.done;
if (done) {
break reducibleLoop6;
}
r6 = value17;
continue reducibleLoop6;
}
}
value18 = _createForOfIteratorHelperLoose_99178(mappings);
value19 = value18();
done = value19.done;
if (done) {
break reducibleJoin17;
}
r13 = value27;
continue reducibleLoop8;
}
}
const items2 = [];
Map = global.Map;
map = new Map();
const value30 = _createForOfIteratorHelperLoose_99178(settings);
const value31 = value30();
done = value31.done;
if (!done) {
r4 = value31;
reducibleLoop18: while (true) {
value32 = r4.value;
push = items2.push;
formatSettingBinding = formatSetting;
get = value5.get;
id = value32.id;
Reflect.apply(push, items2, [formatSettingBinding(value32, Reflect.apply(get, value5, [id]))]);
set = map.set;
id = value32.id;
string_id = value32.string_id;
Reflect.apply(set, map, [id, string_id]);
value33 = value30();
done = value33.done;
if (done) {
break reducibleLoop18;
r13 = value19;
reducibleLoop8: while (true) {
value20 = r13.value;
notifType = value20.notifType;
notifSetting = value20.notifSetting;
property = NOTIF_SETTING_MAPPING[notifType];
reducibleJoin16: while (true) {
if (property == null) {
break reducibleJoin16;
}
value21 = _createForOfIteratorHelperLoose_99178(property);
value22 = value21();
done = value22.done;
if (done) {
break reducibleJoin16;
}
r29 = value22;
reducibleLoop10: while (true) {
value23 = r29.value;
if (value23 !== notifSetting) {
get = value13.get;
value24 = Reflect.apply(get, value13, [value23]);
reducibleJoin14: while (true) {
if (value24 == null) {
break reducibleJoin14;
}
get = value7.get;
string_id = value24.string_id;
value25 = Reflect.apply(get, value7, [string_id]);
if (value25 == null) {
break reducibleJoin14;
}
inferImportanceFromBehaviorBinding = inferImportanceFromBehavior;
behavior = value24.behavior;
if (value25 !== inferImportanceFromBehaviorBinding(behavior)) {
set = value5.set;
Reflect.apply(set, value5, [notifSetting, value25]);
break reducibleJoin16;
}
break reducibleJoin14;
}
}
value26 = value21();
done = value26.done;
if (done) {
break reducibleJoin16;
}
r29 = value26;
continue reducibleLoop10;
}
}
value27 = value18();
done = value27.done;
if (done) {
break reducibleJoin17;
}
r13 = value27;
continue reducibleLoop8;
}
r4 = value33;
continue reducibleLoop18;
}
const items2 = [];
Map = global.Map;
map = new Map();
const value30 = _createForOfIteratorHelperLoose_99178(settings);
const value31 = value30();
done = value31.done;
if (!done) {
r4 = value31;
reducibleLoop18: while (true) {
value32 = r4.value;
push = items2.push;
formatSettingBinding = formatSetting;
get = value5.get;
id = value32.id;
Reflect.apply(push, items2, [formatSettingBinding(value32, Reflect.apply(get, value5, [id]))]);
set = map.set;
id = value32.id;
string_id = value32.string_id;
Reflect.apply(set, map, [id, string_id]);
value33 = value30();
done = value33.done;
if (done) {
break reducibleLoop18;
}
r4 = value33;
continue reducibleLoop18;
}
}
const object = {};
object.mapping = mappings.flatMap(_fun99185);
object.channels = items2;
object.inheritedImportances = value5;
return object;
function _fun99185({notifType, notifSetting}) { // fn#99185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:2747, offset: 0x021bee67, size: 56 bytes, params: 2, frame: 12
const value = env0_0.get(notifSetting);
return value == null ? [] : {type: notifType, channel: value};
}
}
function clear_99186() { // fn#99186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:2883, offset: 0x021bee9f, size: 97 bytes, params: 1, frame: 15
const r2 = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) ?? ({});
const registerAndroidNotifGroupsAndChannels = r2.registerAndroidNotifGroupsAndChannels;
const registerAndroidNotifTypeMappings = r2.registerAndroidNotifTypeMappings;
if (registerAndroidNotifGroupsAndChannels != null) {
registerAndroidNotifGroupsAndChannels([], []);
}
if (registerAndroidNotifTypeMappings != null) {
registerAndroidNotifTypeMappings([]);
}
}
const object2 = {};
object2.mapping = mappings.flatMap(_fun99185);
object2.channels = items2;
object2.inheritedImportances = value5;
return object2;
}
function clear_99186() { // fn#99186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:2883, offset: 0x021bee9f, size: 97 bytes, params: 1, frame: 15
const r2 = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) ?? ({});
const registerAndroidNotifGroupsAndChannels = r2.registerAndroidNotifGroupsAndChannels;
const registerAndroidNotifTypeMappings = r2.registerAndroidNotifTypeMappings;
if (registerAndroidNotifGroupsAndChannels != null) {
registerAndroidNotifGroupsAndChannels([], []);
}
if (registerAndroidNotifTypeMappings != null) {
registerAndroidNotifTypeMappings([]);
}
}
function registerDeclarativeNotificationCategories() { // fn#99187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:3086, offset: 0x021bef00, size: 264 bytes, params: 1, frame: 24
let r1 = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) ?? ({});
const registerAndroidNotifGroupsAndChannels = r1.registerAndroidNotifGroupsAndChannels;
const registerAndroidNotifTypeMappings = r1.registerAndroidNotifTypeMappings;
if (registerAndroidNotifGroupsAndChannels == null) {
return false;
}
if (registerAndroidNotifTypeMappings == null) {
return false;
}
const {channels, mapping, inheritedImportances} = buildChannelsAndMapping();
const defaultImport3 = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
const addBreadcrumb = defaultImport3.addBreadcrumb;
const object = {};
object.channels = channels.map(function(a0) {
return a0.id;
});
const Array = global.Array;
object.inheritedImportances = Array.from(inheritedImportances.entries()).map(function(a0) {
var r0;
var r1;
var r3;
var item3;
var value3;
var iterator = a0[Symbol.iterator]();
var iterator2 = iterator.next;
var item2 = Reflect.apply(iterator2, iterator, []);
var item = item2.value;
item2 = item2.done ? undefined : iterator;
var value = undefined;
var value2 = item2 === value;
var r4 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
r3 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value3;
function registerDeclarativeNotificationCategories() { // fn#99187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:3086, offset: 0x021bef00, size: 264 bytes, params: 1, frame: 24
let r1 = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) ?? ({});
const registerAndroidNotifGroupsAndChannels = r1.registerAndroidNotifGroupsAndChannels;
const registerAndroidNotifTypeMappings = r1.registerAndroidNotifTypeMappings;
if (registerAndroidNotifGroupsAndChannels == null) {
return false;
}
if (registerAndroidNotifTypeMappings == null) {
return false;
}
const {channels, mapping, inheritedImportances} = buildChannelsAndMapping();
const defaultImport3 = SentryUtilsNative;
const addBreadcrumb = defaultImport3.addBreadcrumb;
const object2 = {};
object2.channels = channels.map(function(a0) {
return a0.id;
});
const Array = global.Array;
object2.inheritedImportances = Array.from(inheritedImportances.entries()).map(function(a0) {
var r0;
var r1;
var r3;
var item3;
var value3;
var iterator = a0[Symbol.iterator]();
var iterator2 = iterator.next;
var item2 = Reflect.apply(iterator2, iterator, []);
var item = item2.value;
item2 = item2.done ? undefined : iterator;
var value = undefined;
var value2 = item2 === value;
var r4 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value2;
r3 = value;
} else {
r0 = item3;
r1 = value3;
r3 = item;
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value3;
r3 = value;
} else {
r0 = item3;
r1 = value3;
r3 = item;
}
}
}
if (!r1) {
r0.return();
}
return 'NotifSettings#' + r4 + ' -> ' + r3;
});
Reflect.apply(addBreadcrumb, defaultImport3, [{message: 'Registering declarative notification categories',
data: object}]);
registerAndroidNotifGroupsAndChannels(NOTIF_CATEGORIES.map(formatCategory), channels);
registerAndroidNotifTypeMappings(mapping);
return true;
}
if (!r1) {
r0.return();
}
return 'NotifSettings#' + r4 + ' -> ' + r3;
});
Reflect.apply(addBreadcrumb, defaultImport3, [{message: 'Registering declarative notification categories',
data: object2}]);
registerAndroidNotifGroupsAndChannels(NOTIF_CATEGORIES.map(formatCategory), channels);
registerAndroidNotifTypeMappings(mapping);
return true;
}
function _fun99185({notifType, notifSetting}) { // fn#99185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13193:2747, offset: 0x021bee67, size: 56 bytes, params: 2, frame: 12
const value = env0_0.get(notifSetting);
return value == null ? [] : {type: notifType, channel: value};
}
global.__d(_fun99177, 13003, [12999, 1244, 13004, 13005, 1216,
2]) /* metro module 13003, dependencies: [12999, 1244, 13004, 13005, 1216, 2] */;
@@ -1,4 +1,11 @@
/* Metro module 9926; source: modules/notifications/native/NotificationSurveyActionSheet.tsx; dependencies: [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962, 2] */
import FeedbackActionSheet from '../../feedback/native/FeedbackActionSheet.tsx'; /* Metro dependency 9927 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from './Constants.tsx'; /* Metro dependency 9904 */
function _fun77709(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:6, offset: 0x01e07cd9, size: 193 bytes, params: 8, frame: 18
const env0_0 = require;
const trackOpen_77710 = function() {
@@ -8,65 +15,63 @@ function _fun77709(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9904) /* metro dependency 9904: Constants */).NotificationUserFeedbackReasons;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/NotificationSurveyActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotificationSurveyActionSheet.tsx');
exports.default = NotificationSurveyActionSheet;
}
function NotificationSurveyActionSheet({notificationType, location, messageId}) { // fn#77711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:405, offset: 0x01e07dd8, size: 469 bytes, params: 2, frame: 22
let object = {};
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
object.value = TOO_MANY;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.pLeQp0]);
const items2 = [object];
object = {};
const IRRELEVANT = NotificationUserFeedbackReasons.IRRELEVANT;
object.value = IRRELEVANT;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tuwPcC);
items2[1] = object;
object = {};
const DISLIKE_CONTENT = NotificationUserFeedbackReasons.DISLIKE_CONTENT;
object.value = DISLIKE_CONTENT;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.glUMhg);
items2[2] = object;
const feedbackActionSheetProps = {'headerLabel': null, 'showHeaderCloseButton': true,
'hideDontShowAgainCheckbox': true,
headerLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGioO1)};
string = intl.string;
const Yzl7Or = (require(1244) /* metro dependency 1244: indexNative */).t.Yzl7Or;
feedbackActionSheetProps.ratingsBodyLabel = Reflect.apply(string, intl, [Yzl7Or]);
feedbackActionSheetProps.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
feedbackActionSheetProps.reasons = items2;
feedbackActionSheetProps.trackOpen = trackOpen_77710;
feedbackActionSheetProps.trackReport = trackReport;
return <FeedbackActionSheet {...feedbackActionSheetProps} />;
function trackReport({rating, reason}) { // fn#77712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:1022, owner: NotificationSurveyActionSheet.trackReport, offset: 0x01e07fad, size: 277 bytes, params: 2, frame: 20
var value2;
var defaultImport;
let value = null;
if (value != rating) {
value2 = environment.__proto__;
defaultImport = importDefault(dependencyMap[5]);
defaultImport.track(AnalyticEvents.NOTIFICATION_REPORT_SUBMITTED,
{reason: value != reason ? reason.value : value,
rating: rating, notification_type: notificationType, location: location, message_id: messageId});
}
value = environment.__proto__;
require(dependencyMap[7]).handleSurveyCleanup();
value = importDefault(dependencyMap[8]);
const openLazy = value.openLazy;
const value3 = require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[4]).intl;
object.header = intl.string(require(dependencyMap[4]).t.wGioO1);
Reflect.apply(openLazy, value, [value3, 'UserFeedbackSurvey', object]);
}
function NotificationSurveyActionSheet({notificationType, location, messageId}) { // fn#77711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:405, offset: 0x01e07dd8, size: 469 bytes, params: 2, frame: 22
let object2 = {};
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
object2.value = TOO_MANY;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.pLeQp0]);
const items2 = [object2];
object2 = {};
const IRRELEVANT = NotificationUserFeedbackReasons.IRRELEVANT;
object2.value = IRRELEVANT;
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tuwPcC);
items2[1] = object2;
object2 = {};
const DISLIKE_CONTENT = NotificationUserFeedbackReasons.DISLIKE_CONTENT;
object2.value = DISLIKE_CONTENT;
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.glUMhg);
items2[2] = object2;
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
const feedbackActionSheetProps = {'headerLabel': null, 'showHeaderCloseButton': true,
'hideDontShowAgainCheckbox': true,
headerLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wGioO1)};
string = intl.string;
const Yzl7Or = (require(1244) /* metro dependency 1244: indexNative */).t.Yzl7Or;
feedbackActionSheetProps.ratingsBodyLabel = Reflect.apply(string, intl, [Yzl7Or]);
feedbackActionSheetProps.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
feedbackActionSheetProps.reasons = items2;
feedbackActionSheetProps.trackOpen = trackOpen_77710;
feedbackActionSheetProps.trackReport = trackReport;
return <FeedbackActionSheet {...feedbackActionSheetProps} />;
}
function NotificationSurveyActionSheetTrackReport({rating, reason}) { // fn#77712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10112:1022, owner: NotificationSurveyActionSheet.trackReport, offset: 0x01e07fad, size: 277 bytes, params: 2, frame: 20
var value2;
var defaultImport;
let value = null;
if (value != rating) {
value2 = environment.__proto__;
defaultImport = importDefault(dependencyMap[5]);
defaultImport.track(AnalyticEvents.NOTIFICATION_REPORT_SUBMITTED,
{reason: value != reason ? reason.value : value,
rating: rating, notification_type: notificationType, location: location, message_id: messageId});
}
value = environment.__proto__;
require(dependencyMap[7]).handleSurveyCleanup();
value = importDefault(dependencyMap[8]);
const openLazy = value.openLazy;
const value3 = require(dependencyMap[10])(dependencyMap[9], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[4]).intl;
object2.header = intl.string(require(dependencyMap[4]).t.wGioO1);
Reflect.apply(openLazy, value, [value3, 'UserFeedbackSurvey', object2]);
}
global.__d(_fun77709, 9926, [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962,
2]) /* metro module 9926, dependencies: [31, 9904, 661, 33, 1244, 683, 9927, 9907, 4080, 9929, 1962, 2] */;
@@ -1,11 +1,21 @@
/* Metro module 9929; source: modules/notifications/native/NotificationSurveyResponseActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948, 2] */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import TextStyles from '../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
import Module09930 from '../../../by-id/module-09930.js'; /* Metro dependency 9930 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
function _fun77731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:6, offset: 0x01e08f94, size: 410 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(661) /* metro dependency 661: Constants */;
@@ -16,48 +26,62 @@ function _fun77731(global, require, importDefault, importAll, module, exports, d
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
object = {};
const object2 = {};
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
copyDataProperties(object4, textStyles(DISPLAY_EXTRABOLD, INTERACTIVE_TEXT_ACTIVE, 16), undefined);
object4['marginTop'] = 8;
object4['marginBottom'] = 8;
object3.title = object4;
copyDataProperties(object2, TextStyles(DISPLAY_EXTRABOLD, INTERACTIVE_TEXT_ACTIVE, 16), undefined);
object2['marginTop'] = 8;
object2['marginBottom'] = 8;
object.title = object2;
INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object3.subtitle = {'color': null, 'textAlign': 'center', 'width': 343, color: INTERACTIVE_TEXT_ACTIVE};
object3.view = {'paddingTop': 50, 'paddingBottom': 100, 'alignItems': 'center'};
object3.rating = {'width': 116, 'height': 93};
const env0_8 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/NotificationSurveyResponseActionSheet.tsx');
object.subtitle = {'color': null, 'textAlign': 'center', 'width': 343, color: INTERACTIVE_TEXT_ACTIVE};
object.view = {'paddingTop': 50, 'paddingBottom': 100, 'alignItems': 'center'};
object.rating = {'width': 116, 'height': 93};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotificationSurveyResponseActionSheet.tsx');
exports.default = NotificationSurveyResponseActionSheet;
function onClose_77732() { // fn#77732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:517, offset: 0x01e08208, size: 37 bytes, params: 1, frame: 11
(ActionSheetActionCreators).hideActionSheet();
}
function NotificationSurveyResponseActionSheet({header}) { // fn#77733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:664, offset: 0x01e0912e, size: 499 bytes, params: 2, frame: 30
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const r5 = header != null && ((BottomSheetTitleHeader) => <BottomSheetTitleHeader title={header} trailing={((ActionSheetCloseButton) => <ActionSheetCloseButton onPress={onClose_77732} />)((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton)} />)((require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader);
const items2 = [
<Image style={styles.rating} source={Module09930} />,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<Text style={styles.title} variant="heading-md/bold">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['d9+vQ8'])}
</Text>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const format = intl.format;
const WxD5QY = (require(1244) /* metro dependency 1244: indexNative */).t.WxD5QY;
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const HIGHLIGHTS_NOTIFICATIONS = HelpdeskArticles.HIGHLIGHTS_NOTIFICATIONS;
items2[2] = (
<TextWithIOSLinkWorkaround style={styles.subtitle} variant="text-md/normal">
{Reflect.apply(format, intl, [WxD5QY, {helpUrl: Reflect.apply(getArticleURL, defaultImport,
[HIGHLIGHTS_NOTIFICATIONS])}])}
</TextWithIOSLinkWorkaround>
);
return (
<BottomSheet>
{r5}
<View style={styles.view}>
{items2}
</View>
</BottomSheet>
);
}
}
function NotificationSurveyResponseActionSheet({header}) { // fn#77733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10115:664, offset: 0x01e0912e, size: 499 bytes, params: 2, frame: 30
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const r5 = header != null && ((BottomSheetTitleHeader) => <BottomSheetTitleHeader title={header} trailing={((ActionSheetCloseButton) => <ActionSheetCloseButton onPress={onClose} />)((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton)} />)((require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader);
const items2 = [<Image style={styles.rating} source={importDefault(9930) /* metro dependency 9930 */} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text style={styles.title} variant="heading-md/bold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['d9+vQ8'])}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const WxD5QY = (require(1244) /* metro dependency 1244: indexNative */).t.WxD5QY;
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const HIGHLIGHTS_NOTIFICATIONS = HelpdeskArticles.HIGHLIGHTS_NOTIFICATIONS;
items2[2] = <TextWithIOSLinkWorkaround style={styles.subtitle} variant="text-md/normal">{Reflect.apply(format, intl,
[WxD5QY, {helpUrl: Reflect.apply(getArticleURL, defaultImport,
[HIGHLIGHTS_NOTIFICATIONS])}])}</TextWithIOSLinkWorkaround>;
return (
<BottomSheet>
{r5}
<View style={styles.view}>
{items2}
</View>
</BottomSheet>
);
}
global.__d(_fun77731, 9929, [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948,
2]) /* metro module 9929, dependencies: [31, 27, 661, 33, 4501, 6597, 697, 4080, 6275, 6758, 6806, 9930, 4573, 1244, 6766, 1948, 2] */;
@@ -1,392 +1,405 @@
/* Metro module 12998; source: modules/notifications/native/NotificationTokenManager.tsx; dependencies: [6, 7, 15, 17, 18, 27, 1220, 11876, 1226, 12999, 661, 1244, 11875, 694, 10741, 13002, 13003, 1216, 2518, 477, 13004, 683, 4561, 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 ApexExperimentStore from '../../experiments/apex/ApexExperimentStore.tsx'; /* Metro dependency 1220 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import LifecycleManager from '../../../lib/LifecycleManager.tsx'; /* Metro dependency 4561 */
import MultiAccountStore from '../../multi_account/MultiAccountStore.tsx'; /* Metro dependency 11876 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NotificationSettingsConstantsModule from '../NotificationSettingsConstants.tsx'; /* Metro dependency 12999 */
function _fun99146(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6, offset: 0x021bc33e, size: 344 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = (require(27) /* metro dependency 27 */).NativeModules;
const apexExperimentStore = importDefault(1220) /* metro dependency 1220: ApexExperimentStore */;
const multiAccountStore = importDefault(11876) /* metro dependency 11876: MultiAccountStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_12 = (require(12999) /* metro dependency 12999: NotificationSettingsConstants */).NOTIF_SETTINGS;
const env0_13 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
let value = LifecycleManager;
value = _fun99150(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/NotificationTokenManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/NotificationTokenManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_99147() { // fn#99147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:253, offset: 0x021bc496, 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_99147_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun99150(a0) { // fn#99150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:456, offset: 0x021bc4f8, size: 253 bytes, params: 2, frame: 16
const closure = NotificationTokenManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_99161}, {key: '_terminate', value: value_99163},
{key: 'registerListener', value: value_99164}, {key: 'registerNotificationCategories', value: value_99165},
{key: 'registerLegacyNotificationCategories', value: value_99166}, {key: 'trackDisabledAndroidNotifChannels',
value: value_99167}, {key: 'getToken', value: function() {
return this.token;
}}, {key: 'canSync', get: get_99172}]);
}
function NotificationTokenManager(a0) { // fn#99151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:468, offset: 0x021bc5f5, size: 270 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, NotificationTokenManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(NotificationTokenManager);
binding = env1_5;
if (_isNativeReflectConstruct_99147()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value._experimentUnsubscribe = null;
value.token = null;
value.hasRegisterEventListener = false;
value.hasTrackedDisabledAndroidNotifChannels = false;
value.postConnectionOpenTimeoutID = null;
value._handleExperimentsUpdated = _handleExperimentsUpdated;
value.handleToken = handleToken;
value.registerToken = registerToken;
value.handleSyncNoMultiAccountOnLoginSuccess = handleSyncNoMultiAccountOnLoginSuccess;
value.handleSyncNoMultiAccountOnRegisterSuccess = handleSyncNoMultiAccountOnRegisterSuccess;
value.handleSyncNoMultiAccountOnPostConnectionOpen = handleSyncNoMultiAccountOnPostConnectionOpen;
value.handleSyncNoMultiAccount = handleSyncNoMultiAccount;
value.handleSyncWithMultiAccount = handleSyncWithMultiAccount;
return value;
}
function value_99161() { // fn#99161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2063, offset: 0x021bc943, size: 241 bytes, params: 1, frame: 18
var environment;
if (this.token != null) {
this.handleToken(this.token);
}
let value = environment.__proto__;
ApexExperimentStore.addChangeListener(this._handleExperimentsUpdated);
this._experimentUnsubscribe = _experimentUnsubscribe;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('LOGIN_SUCCESS', this.handleSyncNoMultiAccountOnLoginSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('REGISTER_SUCCESS', this.handleSyncNoMultiAccountOnRegisterSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handleSyncNoMultiAccountOnPostConnectionOpen);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handleSyncWithMultiAccount);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('MULTI_ACCOUNT_REMOVE_ACCOUNT', this.handleSyncWithMultiAccount);
}
function value_99163() { // fn#99163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2705, offset: 0x021bca57, size: 200 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('LOGIN_SUCCESS', this.handleSyncNoMultiAccountOnLoginSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('REGISTER_SUCCESS', this.handleSyncNoMultiAccountOnRegisterSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handleSyncNoMultiAccountOnPostConnectionOpen);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handleSyncWithMultiAccount);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('MULTI_ACCOUNT_REMOVE_ACCOUNT', this.handleSyncWithMultiAccount);
if (this._experimentUnsubscribe != null) {
this._experimentUnsubscribe();
this._experimentUnsubscribe = null;
}
}
function value_99164() { // fn#99164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:3275, offset: 0x021bcb1f, size: 100 bytes, params: 1, frame: 12
if (this.hasRegisterEventListener) {
throw new global.Error('Device token listener already registered.');
}
this.hasRegisterEventListener = true;
let value = environment.__proto__;
value = importDefault(10741) /* metro dependency 10741: PushNotification */;
value.addRegisterEventListener(this.handleToken);
}
function value_99165() { // fn#99165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:3511, offset: 0x021bcb83, size: 275 bytes, params: 1, frame: 17
var r4;
var enabled;
var property;
var defaultImport;
var value4;
var error;
var defaultImport2;
var clearDeclarative;
var defaultImport3;
var defaultImport4;
let value = environment.__proto__;
const config = require(dependencyMap[15]).declarativeNotifSettingsExperiment.getConfig({location: 'registerNotificationCategories'});
const value3 = false;
try {
enabled = config.enabled;
if (enabled) {
property = dependencyMap[16];
defaultImport = importDefault(property);
value4 = defaultImport.registerDeclarativeNotificationCategories();
r4 = value4;
} else {
r4 = value3;
}
} catch (error) {
defaultImport2 = importDefault(dependencyMap[17]);
defaultImport2.captureException(error);
r4 = value3;
}
if (!r4) {
function _isNativeReflectConstruct_99147() { // fn#99147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:253, offset: 0x021bc496, 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 {
clearDeclarative = config.clearDeclarative;
if (clearDeclarative) {
property = dependencyMap[17];
defaultImport3 = importDefault(property);
defaultImport3.addBreadcrumb({message: 'Clearing declarative notification categories'});
property = dependencyMap[16];
defaultImport4 = importDefault(property);
defaultImport4.clear();
}
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) {
value = importDefault(dependencyMap[17]);
value.captureException(error);
}
this.registerLegacyNotificationCategories();
return (_isNativeReflectConstruct_99147_isNativeReflectConstruct = function() {
return !!result;
})();
}
this.trackDisabledAndroidNotifChannels();
}
function value_99166() { // fn#99166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:4048, offset: 0x021bcc96, size: 1563 bytes, params: 1, frame: 21
var object3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object4;
let DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
const registerNotificationCategories = DCDNotificationCategoryUtils.registerNotificationCategories;
DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
const registerNotificationCategoriesAndGroups = DCDNotificationCategoryUtils.registerNotificationCategoriesAndGroups;
if (registerNotificationCategoriesAndGroups != null) {
object3 = {};
object3.calls = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['IUH/Oe']);
object3.mediaConnections = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).VeBD1N);
object3.messages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4qWUAO']);
object3.directMessages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NGdNZb);
object3.friendRequests = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NxgGZA);
object3.polls = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).MOjygY);
object3.social = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['UzRF+8']);
object3.stageLive = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4n388K']);
object3.guildEventLive = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['40TIqW']);
object3.guildHighlights = intl.string(t.p5jg9S);
object3.forumThreadCreated = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).HibKoy);
object3.systemMessages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zJlwvV);
object3.other = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).kIrLfg);
object3.default = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['T+79Eo']);
object3.reactions = intl.string(t.gHp0C4);
object4 = {};
object4.realtime = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).S5cB9e);
object4.social = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['UzRF+8']);
object4.server = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zRKbpz);
object4.other = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).q5M7HV);
registerNotificationCategoriesAndGroups(object3, object4);
} else if (registerNotificationCategories != null) {
object3 = {};
object3.calls = intl.string(t.JJogjm);
object3.mediaConnections = intl.string(t.K3lovD);
object3.messages = intl.string(t.OIgYlQ);
object3.directMessages = intl.string(t.YUU0RF);
object3.social = intl.string(t.TdEu5X);
object3.gameDetection = intl.string(t['A/4saf']);
object3.stageLive = intl.string(t.qGRagm);
object3.guildEventLive = intl.string(t.MfGr0a);
object3.guildHighlights = intl.string(t.p5jg9S);
object3.forumThreadCreated = intl.string(t.dl57ho);
object3.other = intl.string(t.BcZTKu);
object3.otherHighPriority = intl.string(t.bcv3rp);
registerNotificationCategories(object3);
}
}
function _fun99150(a0) { // fn#99150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:456, offset: 0x021bc4f8, size: 253 bytes, params: 2, frame: 16
const NotificationTokenManager2 = NotificationTokenManager;
Inherits(NotificationTokenManager2, a0);
return CreateClass(NotificationTokenManager2, [{key: '_initialize', value: value_99161}, {key: '_terminate',
value: value_99163}, {key: 'registerListener', value: value_99164}, {key: 'registerNotificationCategories',
value: value_99165}, {key: 'registerLegacyNotificationCategories', value: value_99166},
{key: 'trackDisabledAndroidNotifChannels', value: value_99167}, {key: 'getToken', value: function() {
return this.token;
}}, {key: 'canSync', get: get_99172}]);
function NotificationTokenManager(a0) { // fn#99151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:468, offset: 0x021bc5f5, size: 270 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, NotificationTokenManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(NotificationTokenManager);
binding = env1_5;
if (_isNativeReflectConstruct_99147()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value._experimentUnsubscribe = null;
value.token = null;
value.hasRegisterEventListener = false;
value.hasTrackedDisabledAndroidNotifChannels = false;
value.postConnectionOpenTimeoutID = null;
value._handleExperimentsUpdated = _handleExperimentsUpdated;
value.handleToken = handleToken;
value.registerToken = registerToken;
value.handleSyncNoMultiAccountOnLoginSuccess = handleSyncNoMultiAccountOnLoginSuccess;
value.handleSyncNoMultiAccountOnRegisterSuccess = handleSyncNoMultiAccountOnRegisterSuccess;
value.handleSyncNoMultiAccountOnPostConnectionOpen = handleSyncNoMultiAccountOnPostConnectionOpen;
value.handleSyncNoMultiAccount = handleSyncNoMultiAccount;
value.handleSyncWithMultiAccount = handleSyncWithMultiAccount;
return value;
function _handleExperimentsUpdated() { // fn#99152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:906, owner: NotificationTokenManager._handleExperimentsUpdated, offset: 0x021bc703, size: 19 bytes, params: 1, frame: 9
return env0_0.registerNotificationCategories();
}
function value_99167() { // fn#99167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:5863, offset: 0x021bd2b1, size: 272 bytes, params: 1, frame: 17
var environment;
var getAndroidNotifChannelStates;
var value;
var value2;
var moduleValue;
var androidNotifChannelStates;
var Set;
var value4;
var set;
var value7;
var defaultImport2;
var track;
var ANDROID_NOTIFICATION_CHANNELS_SYNCED;
var object2;
if (!this.hasTrackedDisabledAndroidNotifChannels) {
this.hasTrackedDisabledAndroidNotifChannels = true;
value = environment.__proto__;
value2 = undefined;
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
getAndroidNotifChannelStates = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) == null ? value2 : (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */).getAndroidNotifChannelStates;
if (getAndroidNotifChannelStates != null) {
androidNotifChannelStates = getAndroidNotifChannelStates();
Set = global.Set;
value4 = NOTIF_SETTINGS.map(function(a0) {
return a0.string_id;
});
set = new Set();
value7 = androidNotifChannelStates.filter(_fun99169);
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport2.track;
ANDROID_NOTIFICATION_CHANNELS_SYNCED = AnalyticEvents.ANDROID_NOTIFICATION_CHANNELS_SYNCED;
object2 = {};
object2.disabled_channels = value7.map(_fun99170);
Reflect.apply(track, defaultImport2, [ANDROID_NOTIFICATION_CHANNELS_SYNCED, object2]);
function handleToken(a0) { // fn#99153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:959, owner: NotificationTokenManager.handleToken, offset: 0x021bc716, size: 43 bytes, params: 2, frame: 10
const binding = env0_0;
binding.token = a0;
if (binding.canSync) {
env0_0.registerToken();
}
}
function registerToken() { // fn#99154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1019, owner: NotificationTokenManager.registerToken, offset: 0x021bc741, size: 283 bytes, params: 1, frame: 24
var environment;
var value2;
var DCDNotificationCategoryUtils;
var registerNotificationReplyCategories;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var TBA5Xg;
var value3;
var value4;
var defaultImport;
if (env0_0.token != null) {
value2 = environment.__proto__.__proto__;
DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
registerNotificationReplyCategories = DCDNotificationCategoryUtils.registerNotificationReplyCategories;
string = intl.string;
TBA5Xg = t.TBA5Xg;
value3 = Reflect.apply(string, intl, [TBA5Xg]);
value4 = intl.string(t.TXNS7S);
string = intl.string;
TBA5Xg = t.TBA5Xg;
Reflect.apply(registerNotificationReplyCategories, DCDNotificationCategoryUtils, [value3, value4,
Reflect.apply(string, intl, [TBA5Xg]), function() {
}]);
if (NativeModules.PushNotificationAndroid) {
NativeModules.PushNotificationAndroid.onRegisterNotificationToken();
}
defaultImport = importDefault(11875) /* metro dependency 11875: PushNotificationActionCreators */;
defaultImport.registerDevice(env0_0.token);
}
}
function handleSyncNoMultiAccountOnLoginSuccess() { // fn#99156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1396, owner: NotificationTokenManager.handleSyncNoMultiAccountOnLoginSuccess, offset: 0x021bc85c, size: 21 bytes, params: 1, frame: 9
env0_0.handleSyncNoMultiAccount();
}
function handleSyncNoMultiAccountOnRegisterSuccess() { // fn#99157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1475, owner: NotificationTokenManager.handleSyncNoMultiAccountOnRegisterSuccess, offset: 0x021bc871, size: 43 bytes, params: 1, frame: 14
const binding = env0_0;
binding.postConnectionOpenTimeoutID = global.setTimeout(binding.handleSyncNoMultiAccountOnPostConnectionOpen, 5000);
}
function handleSyncNoMultiAccountOnPostConnectionOpen() { // fn#99158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1621, owner: NotificationTokenManager.handleSyncNoMultiAccountOnPostConnectionOpen, offset: 0x021bc89c, size: 64 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_0.postConnectionOpenTimeoutID != null) {
clearTimeout = global.clearTimeout;
binding = env0_0;
clearTimeout(binding.postConnectionOpenTimeoutID);
binding.postConnectionOpenTimeoutID = null;
binding.handleSyncNoMultiAccount();
}
}
function handleSyncNoMultiAccount() { // fn#99159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1801, owner: NotificationTokenManager.handleSyncNoMultiAccount, offset: 0x021bc8dc, size: 53 bytes, params: 1, frame: 10
if (env0_0.canSync && !MultiAccountStore.canUseMultiAccountNotifications) {
env0_0.registerToken();
}
}
function handleSyncWithMultiAccount() { // fn#99160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1901, owner: NotificationTokenManager.handleSyncWithMultiAccount, offset: 0x021bc911, size: 50 bytes, params: 1, frame: 10
if (env0_0.canSync && MultiAccountStore.canUseMultiAccountNotifications) {
env0_0.registerToken();
}
}
}
function value_99161() { // fn#99161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2063, offset: 0x021bc943, size: 241 bytes, params: 1, frame: 18
var environment;
if (this.token != null) {
this.handleToken(this.token);
}
let value = environment.__proto__;
const apexExperimentStoreBinding = ApexExperimentStore;
apexExperimentStoreBinding.addChangeListener(this._handleExperimentsUpdated);
this._experimentUnsubscribe = _experimentUnsubscribe_99162;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('LOGIN_SUCCESS', this.handleSyncNoMultiAccountOnLoginSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('REGISTER_SUCCESS', this.handleSyncNoMultiAccountOnRegisterSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handleSyncNoMultiAccountOnPostConnectionOpen);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handleSyncWithMultiAccount);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('MULTI_ACCOUNT_REMOVE_ACCOUNT', this.handleSyncWithMultiAccount);
function value_99161_experimentUnsubscribe() { // fn#99162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2201, owner: value_99161._experimentUnsubscribe, offset: 0x021bca34, size: 35 bytes, params: 1, frame: 11
const apexExperimentStoreBinding = ApexExperimentStore;
apexExperimentStoreBinding.removeChangeListener(env0_0._handleExperimentsUpdated);
}
}
function value_99163() { // fn#99163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2705, offset: 0x021bca57, size: 200 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('LOGIN_SUCCESS', this.handleSyncNoMultiAccountOnLoginSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('REGISTER_SUCCESS', this.handleSyncNoMultiAccountOnRegisterSuccess);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handleSyncNoMultiAccountOnPostConnectionOpen);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handleSyncWithMultiAccount);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('MULTI_ACCOUNT_REMOVE_ACCOUNT', this.handleSyncWithMultiAccount);
if (this._experimentUnsubscribe != null) {
this._experimentUnsubscribe();
this._experimentUnsubscribe = null;
}
}
}
}
function get_99172() { // fn#99172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6350, offset: 0x021bd401, size: 50 bytes, params: 1, frame: 10
var r0;
var value;
const isInitialized = this.isInitialized;
if (isInitialized) {
value = environment.__proto__;
value = AuthenticationStore.isAuthenticated();
r0 = value;
} else {
r0 = isInitialized;
}
if (r0) {
value = environment.__proto__;
value = !MultiAccountStore.isSwitchingAccount;
r0 = value;
}
return r0;
}
function _handleExperimentsUpdated() { // fn#99152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:906, owner: NotificationTokenManager._handleExperimentsUpdated, offset: 0x021bc703, size: 19 bytes, params: 1, frame: 9
return env0_0.registerNotificationCategories();
}
function handleToken(a0) { // fn#99153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:959, owner: NotificationTokenManager.handleToken, offset: 0x021bc716, size: 43 bytes, params: 2, frame: 10
const binding = env0_0;
binding.token = a0;
if (binding.canSync) {
env0_0.registerToken();
}
}
function registerToken() { // fn#99154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1019, owner: NotificationTokenManager.registerToken, offset: 0x021bc741, size: 283 bytes, params: 1, frame: 24
var environment;
var value2;
var DCDNotificationCategoryUtils;
var registerNotificationReplyCategories;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var TBA5Xg;
var value3;
var value4;
var defaultImport;
if (env0_0.token != null) {
value2 = environment.__proto__.__proto__;
DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
registerNotificationReplyCategories = DCDNotificationCategoryUtils.registerNotificationReplyCategories;
string = intl.string;
TBA5Xg = t.TBA5Xg;
value3 = Reflect.apply(string, intl, [TBA5Xg]);
value4 = intl.string(t.TXNS7S);
string = intl.string;
TBA5Xg = t.TBA5Xg;
Reflect.apply(registerNotificationReplyCategories, DCDNotificationCategoryUtils, [value3, value4,
Reflect.apply(string, intl, [TBA5Xg]), function() {
}]);
if (NativeModules.PushNotificationAndroid) {
NativeModules.PushNotificationAndroid.onRegisterNotificationToken();
function value_99164() { // fn#99164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:3275, offset: 0x021bcb1f, size: 100 bytes, params: 1, frame: 12
if (this.hasRegisterEventListener) {
throw new global.Error('Device token listener already registered.');
}
this.hasRegisterEventListener = true;
let value = environment.__proto__;
value = importDefault(10741) /* metro dependency 10741: PushNotification */;
value.addRegisterEventListener(this.handleToken);
}
defaultImport = importDefault(11875) /* metro dependency 11875: PushNotificationActionCreators */;
defaultImport.registerDevice(env0_0.token);
function value_99165() { // fn#99165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:3511, offset: 0x021bcb83, size: 275 bytes, params: 1, frame: 17
var r4;
var enabled;
var property;
var defaultImport;
var value4;
var error;
var defaultImport2;
var clearDeclarative;
var defaultImport3;
var defaultImport4;
let value = environment.__proto__;
const config = require(dependencyMap[15]).declarativeNotifSettingsExperiment.getConfig({location: 'registerNotificationCategories'});
const value3 = false;
try {
enabled = config.enabled;
if (enabled) {
property = dependencyMap[16];
defaultImport = importDefault(property);
value4 = defaultImport.registerDeclarativeNotificationCategories();
r4 = value4;
} else {
r4 = value3;
}
} catch (error) {
defaultImport2 = importDefault(dependencyMap[17]);
defaultImport2.captureException(error);
r4 = value3;
}
if (!r4) {
try {
clearDeclarative = config.clearDeclarative;
if (clearDeclarative) {
property = dependencyMap[17];
defaultImport3 = importDefault(property);
defaultImport3.addBreadcrumb({message: 'Clearing declarative notification categories'});
property = dependencyMap[16];
defaultImport4 = importDefault(property);
defaultImport4.clear();
}
} catch (error) {
value = importDefault(dependencyMap[17]);
value.captureException(error);
}
this.registerLegacyNotificationCategories();
}
this.trackDisabledAndroidNotifChannels();
}
function value_99166() { // fn#99166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:4048, offset: 0x021bcc96, size: 1563 bytes, params: 1, frame: 21
var object;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
var object2;
let DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
const registerNotificationCategories = DCDNotificationCategoryUtils.registerNotificationCategories;
DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
const registerNotificationCategoriesAndGroups = DCDNotificationCategoryUtils.registerNotificationCategoriesAndGroups;
if (registerNotificationCategoriesAndGroups != null) {
object = {};
object.calls = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['IUH/Oe']);
object.mediaConnections = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).VeBD1N);
object.messages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4qWUAO']);
object.directMessages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NGdNZb);
object.friendRequests = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).NxgGZA);
object.polls = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).MOjygY);
object.social = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['UzRF+8']);
object.stageLive = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['4n388K']);
object.guildEventLive = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['40TIqW']);
object.guildHighlights = intl.string(t.p5jg9S);
object.forumThreadCreated = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).HibKoy);
object.systemMessages = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zJlwvV);
object.other = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).kIrLfg);
object.default = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['T+79Eo']);
object.reactions = intl.string(t.gHp0C4);
object2 = {};
object2.realtime = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).S5cB9e);
object2.social = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */)['UzRF+8']);
object2.server = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).zRKbpz);
object2.other = intl.string((importDefault(2518) /* metro dependency 2518: NotificationSettingsMessages */).q5M7HV);
registerNotificationCategoriesAndGroups(object, object2);
} else if (registerNotificationCategories != null) {
object = {};
object.calls = intl.string(t.JJogjm);
object.mediaConnections = intl.string(t.K3lovD);
object.messages = intl.string(t.OIgYlQ);
object.directMessages = intl.string(t.YUU0RF);
object.social = intl.string(t.TdEu5X);
object.gameDetection = intl.string(t['A/4saf']);
object.stageLive = intl.string(t.qGRagm);
object.guildEventLive = intl.string(t.MfGr0a);
object.guildHighlights = intl.string(t.p5jg9S);
object.forumThreadCreated = intl.string(t.dl57ho);
object.other = intl.string(t.BcZTKu);
object.otherHighPriority = intl.string(t.bcv3rp);
registerNotificationCategories(object);
}
}
function value_99167() { // fn#99167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:5863, offset: 0x021bd2b1, size: 272 bytes, params: 1, frame: 17
var environment;
var getAndroidNotifChannelStates;
var value;
var value2;
var moduleValue;
var androidNotifChannelStates;
var Set;
var value4;
var set;
var value7;
var defaultImport2;
var track;
var ANDROID_NOTIFICATION_CHANNELS_SYNCED;
var object;
if (!this.hasTrackedDisabledAndroidNotifChannels) {
this.hasTrackedDisabledAndroidNotifChannels = true;
value = environment.__proto__;
value2 = undefined;
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
getAndroidNotifChannelStates = (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */) == null ? value2 : (importDefault(13004) /* metro dependency 13004: NativeNotifSettingsModule */).getAndroidNotifChannelStates;
if (getAndroidNotifChannelStates != null) {
androidNotifChannelStates = getAndroidNotifChannelStates();
Set = global.Set;
value4 = NOTIF_SETTINGS.map(function(a0) {
return a0.string_id;
});
set = new Set();
value7 = androidNotifChannelStates.filter(_fun99169);
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport2.track;
ANDROID_NOTIFICATION_CHANNELS_SYNCED = AnalyticEvents.ANDROID_NOTIFICATION_CHANNELS_SYNCED;
object = {};
object.disabled_channels = value7.map(_fun99170);
Reflect.apply(track, defaultImport2, [ANDROID_NOTIFICATION_CHANNELS_SYNCED, object]);
}
}
}
function _fun99169(a0) { // fn#99169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6129, offset: 0x021bd3cc, size: 42 bytes, params: 2, frame: 12
return a0.importance === 0 && env0_0.has(a0.channelId);
}
}
function get_99172() { // fn#99172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6350, offset: 0x021bd401, size: 50 bytes, params: 1, frame: 10
var r0;
var value;
const isInitialized = this.isInitialized;
if (isInitialized) {
value = environment.__proto__;
value = AuthenticationStore.isAuthenticated();
r0 = value;
} else {
r0 = isInitialized;
}
if (r0) {
value = environment.__proto__;
value = !MultiAccountStore.isSwitchingAccount;
r0 = value;
}
return r0;
}
}
}
function handleSyncNoMultiAccountOnLoginSuccess() { // fn#99156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1396, owner: NotificationTokenManager.handleSyncNoMultiAccountOnLoginSuccess, offset: 0x021bc85c, size: 21 bytes, params: 1, frame: 9
env0_0.handleSyncNoMultiAccount();
}
function handleSyncNoMultiAccountOnRegisterSuccess() { // fn#99157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1475, owner: NotificationTokenManager.handleSyncNoMultiAccountOnRegisterSuccess, offset: 0x021bc871, size: 43 bytes, params: 1, frame: 14
const binding = env0_0;
binding.postConnectionOpenTimeoutID = global.setTimeout(binding.handleSyncNoMultiAccountOnPostConnectionOpen, 5000);
}
function handleSyncNoMultiAccountOnPostConnectionOpen() { // fn#99158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1621, owner: NotificationTokenManager.handleSyncNoMultiAccountOnPostConnectionOpen, offset: 0x021bc89c, size: 64 bytes, params: 1, frame: 13
var clearTimeout;
var binding;
if (env0_0.postConnectionOpenTimeoutID != null) {
clearTimeout = global.clearTimeout;
binding = env0_0;
clearTimeout(binding.postConnectionOpenTimeoutID);
binding.postConnectionOpenTimeoutID = null;
binding.handleSyncNoMultiAccount();
}
}
function handleSyncNoMultiAccount() { // fn#99159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1801, owner: NotificationTokenManager.handleSyncNoMultiAccount, offset: 0x021bc8dc, size: 53 bytes, params: 1, frame: 10
if (env0_0.canSync && !MultiAccountStore.canUseMultiAccountNotifications) {
env0_0.registerToken();
}
}
function handleSyncWithMultiAccount() { // fn#99160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:1901, owner: NotificationTokenManager.handleSyncWithMultiAccount, offset: 0x021bc911, size: 50 bytes, params: 1, frame: 10
if (env0_0.canSync && MultiAccountStore.canUseMultiAccountNotifications) {
env0_0.registerToken();
}
}
function value_99161_experimentUnsubscribe() { // fn#99162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:2201, owner: value_99161._experimentUnsubscribe, offset: 0x021bca34, size: 35 bytes, params: 1, frame: 11
ApexExperimentStore.removeChangeListener(env0_0._handleExperimentsUpdated);
}
function _fun99169(a0) { // fn#99169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6129, offset: 0x021bd3cc, size: 42 bytes, params: 2, frame: 12
return a0.importance === 0 && env0_0.has(a0.channelId);
function _fun99170(a0) { // fn#99170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13188:6251, offset: 0x0119ee7e, size: 10 bytes, params: 2, frame: 1
return a0.channelId;
}
global.__d(_fun99146, 12998, [6, 7, 15, 17, 18, 27, 1220, 11876, 1226, 12999, 661, 1244, 11875, 694, 10741, 13002,
13003, 1216, 2518, 477, 13004, 683, 4561,
2]) /* metro module 12998, dependencies: [6, 7, 15, 17, 18, 27, 1220, 11876, 1226, 12999, 661, 1244, 11875, 694, 10741, 13002, 13003, 1216, 2518, 477, 13004, 683, 4561, 2] */;
@@ -1,29 +1,35 @@
/* Metro module 10930; source: modules/notifications/native/playInAppMessageSound.tsx; dependencies: [10907, 10931, 661, 1581, 10756, 2] */
import NotificationSettingsStore from '../../../stores/NotificationSettingsStore.tsx'; /* Metro dependency 10907 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as InAppMessageSoundsStoreModule from './InAppMessageSoundsStore.tsx'; /* Metro dependency 10931 */
function _fun83741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11116:6, offset: 0x01f266fe, size: 162 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const notificationSettingsStore = importDefault(10907) /* metro dependency 10907: NotificationSettingsStore */;
const env0_3 = (require(10931) /* metro dependency 10931: InAppMessageSoundsStore */).isInAppMessageSoundsEnabled;
const env0_4 = (require(661) /* metro dependency 661: Constants */).InAppNotificationTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/native/playInAppMessageSound.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/playInAppMessageSound.tsx');
exports.playInAppMessageSound = playInAppMessageSound;
}
function playInAppMessageSound({type}) { // fn#83742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11116:306, offset: 0x01f267a0, size: 181 bytes, params: 2, frame: 15
var moduleValue;
const MESSAGE = InAppNotificationTypes.MESSAGE;
if (type === MESSAGE) {
moduleValue = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
if (moduleValue.isMetaQuest()) {
if (isInAppMessageSoundsEnabled()) {
if (!NotificationSettingsStore.isSoundDisabled('message1')) {
if (!(global.Date.now() - env0_5 < 1000)) {
(require(10756) /* metro dependency 10756: SoundUtils */).playSound('message1', 0.4);
function playInAppMessageSound({type}) { // fn#83742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11116:306, offset: 0x01f267a0, size: 181 bytes, params: 2, frame: 15
var moduleValue;
var notificationSettingsStoreBinding;
const MESSAGE = InAppNotificationTypes.MESSAGE;
if (type === MESSAGE) {
moduleValue = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
if (moduleValue.isMetaQuest()) {
if (isInAppMessageSoundsEnabled()) {
notificationSettingsStoreBinding = NotificationSettingsStore;
if (!notificationSettingsStoreBinding.isSoundDisabled('message1')) {
if (!(global.Date.now() - env0_5 < 1000)) {
(require(10756) /* metro dependency 10756: SoundUtils */).playSound('message1', 0.4);
}
}
}
}
}
}
}
global.__d(_fun83741, 10930, [10907, 10931, 661, 1581, 10756,
2]) /* metro module 10930, dependencies: [10907, 10931, 661, 1581, 10756, 2] */;
@@ -1,14 +1,28 @@
/* Metro module 13904; source: modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun105597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:6, offset: 0x022bda40, size: 203 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-01-profile-updates-notification',
defaultConfig: {showSettingsToggle: false}, variations: {[0]: {showSettingsToggle: false},
[1]: {showSettingsToggle: true}, [2]: {showSettingsToggle: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/ProfileUpdatesNotificationExperiment.tsx');
exports.default = value;
exports.useProfileUpdatesNotificationExperiment = useProfileUpdatesNotificationExperiment;
exports.isEligibleForProfileUpdatesNotificationsToggle = isEligibleForProfileUpdatesNotificationsToggle;
function useProfileUpdatesNotificationExperiment(a0) { // fn#105598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:489, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function isEligibleForProfileUpdatesNotificationsToggle(a0) { // fn#105599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14101:624, offset: 0x022bd4b8, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).showSettingsToggle;
}
}
global.__d(_fun105597, 13904, [1854, 2]) /* metro module 13904, dependencies: [1854, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13905; source: modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105600(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14102:6, offset: 0x022bdb0b, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx');
exports.onProfileUpdatesNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableProfileUpdatesNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105600(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105600, 13905, [3796, 661, 3829, 683,
2]) /* metro module 13905, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2390; source: modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdate.messages.js; dependencies: [1247, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 1282, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun23176(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:6, offset: 0x00f0aac0, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_23177, cs: cs_23179, da: da_23181, de: de_23183, el: el_23185};
object2['en-GB'] = _fun23187;
object2['es-419'] = _fun23189;
object2['es-ES'] = _fun23191;
object2.fi = fi_23193;
object2.fr = fr_23195;
object2.hi = hi_23197;
object2.hr = hr_23199;
object2.hu = hu_23201;
object2.it = it_23203;
object2.ja = ja_23205;
object2.ko = ko_23207;
object2.lt = lt_23209;
object2.nl = nl_23211;
object2.no = no_23213;
object2.pl = pl_23215;
object2['pt-BR'] = _fun23217;
object2.ro = ro_23219;
object2.ru = ru_23221;
object2['sv-SE'] = _fun23223;
object2.th = th_23225;
object2.tr = tr_23227;
object2.uk = uk_23229;
object2.vi = vi_23231;
object2['zh-CN'] = _fun23233;
object2['zh-TW'] = _fun23235;
object2['en-US'] = _fun23237;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdate.messages.js');
object = {bg: bg_23177, cs: cs_23179, da: da_23181, de: de_23183, el: el_23185};
object['en-GB'] = _fun23187;
object['es-419'] = _fun23189;
object['es-ES'] = _fun23191;
object.fi = fi_23193;
object.fr = fr_23195;
object.hi = hi_23197;
object.hr = hr_23199;
object.hu = hu_23201;
object.it = it_23203;
object.ja = ja_23205;
object.ko = ko_23207;
object.lt = lt_23209;
object.nl = nl_23211;
object.no = no_23213;
object.pl = pl_23215;
object['pt-BR'] = _fun23217;
object.ro = ro_23219;
object.ru = ru_23221;
object['sv-SE'] = _fun23223;
object.th = th_23225;
object.tr = tr_23227;
object.uk = uk_23229;
object.vi = vi_23231;
object['zh-CN'] = _fun23233;
object['zh-TW'] = _fun23235;
object['en-US'] = _fun23237;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdate.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_23177() { // fn#23177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:102, offset: 0x00f0ac85, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2391) /* metro dependency 2391 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23179() { // fn#23179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:165, offset: 0x00f0acc6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2392) /* metro dependency 2392 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23181() { // fn#23181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:228, offset: 0x00f0ad07, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2393) /* metro dependency 2393 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23183() { // fn#23183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:291, offset: 0x00f0ad48, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2394) /* metro dependency 2394 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23185() { // fn#23185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:354, offset: 0x00f0ad89, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2395) /* metro dependency 2395 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23187() { // fn#23187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:422, offset: 0x00f0adca, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2396) /* metro dependency 2396 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23189() { // fn#23189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:491, offset: 0x00f0ae0b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2397) /* metro dependency 2397 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23191() { // fn#23191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:559, offset: 0x00f0ae4c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2398) /* metro dependency 2398 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23193() { // fn#23193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:622, offset: 0x00f0ae8d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2399) /* metro dependency 2399 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23195() { // fn#23195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:685, offset: 0x00f0aece, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2400) /* metro dependency 2400 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23197() { // fn#23197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:749, offset: 0x00f0af0f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2401) /* metro dependency 2401 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23199() { // fn#23199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:813, offset: 0x00f0af50, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2402) /* metro dependency 2402 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23201() { // fn#23201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:877, offset: 0x00f0af91, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2403) /* metro dependency 2403 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23203() { // fn#23203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:941, offset: 0x00f0afd2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2404) /* metro dependency 2404 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23205() { // fn#23205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1005, offset: 0x00f0b013, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2405) /* metro dependency 2405 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23207() { // fn#23207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1069, offset: 0x00f0b054, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2406) /* metro dependency 2406 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23209() { // fn#23209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1133, offset: 0x00f0b095, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2407) /* metro dependency 2407 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23211() { // fn#23211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1197, offset: 0x00f0b0d6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2408) /* metro dependency 2408 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23213() { // fn#23213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1261, offset: 0x00f0b117, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2409) /* metro dependency 2409 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23215() { // fn#23215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1325, offset: 0x00f0b158, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2410) /* metro dependency 2410 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23217() { // fn#23217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1394, offset: 0x00f0b199, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2411) /* metro dependency 2411 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23219() { // fn#23219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1458, offset: 0x00f0b1da, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2412) /* metro dependency 2412 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23221() { // fn#23221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1522, offset: 0x00f0b21b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2413) /* metro dependency 2413 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23223() { // fn#23223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1591, offset: 0x00f0b25c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2414) /* metro dependency 2414 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23225() { // fn#23225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1655, offset: 0x00f0b29d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2415) /* metro dependency 2415 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23227() { // fn#23227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1719, offset: 0x00f0b2de, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2416) /* metro dependency 2416 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23229() { // fn#23229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1783, offset: 0x00f0b31f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2417) /* metro dependency 2417 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23231() { // fn#23231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1847, offset: 0x00f0b360, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2418) /* metro dependency 2418 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23233() { // fn#23233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1916, offset: 0x00f0b3a1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2419) /* metro dependency 2419 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23235() { // fn#23235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1985, offset: 0x00f0b3e2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2420) /* metro dependency 2420 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23237() { // fn#23237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:2054, offset: 0x00f0b423, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2421) /* metro dependency 2421 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_23177() { // fn#23177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:102, offset: 0x00f0ac85, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2391) /* metro dependency 2391 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23179() { // fn#23179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:165, offset: 0x00f0acc6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2392) /* metro dependency 2392 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23181() { // fn#23181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:228, offset: 0x00f0ad07, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2393) /* metro dependency 2393 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23183() { // fn#23183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:291, offset: 0x00f0ad48, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2394) /* metro dependency 2394 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23185() { // fn#23185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:354, offset: 0x00f0ad89, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2395) /* metro dependency 2395 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23187() { // fn#23187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:422, offset: 0x00f0adca, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2396) /* metro dependency 2396 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23189() { // fn#23189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:491, offset: 0x00f0ae0b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2397) /* metro dependency 2397 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23191() { // fn#23191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:559, offset: 0x00f0ae4c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2398) /* metro dependency 2398 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23193() { // fn#23193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:622, offset: 0x00f0ae8d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2399) /* metro dependency 2399 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23195() { // fn#23195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:685, offset: 0x00f0aece, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2400) /* metro dependency 2400 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23197() { // fn#23197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:749, offset: 0x00f0af0f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2401) /* metro dependency 2401 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23199() { // fn#23199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:813, offset: 0x00f0af50, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2402) /* metro dependency 2402 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23201() { // fn#23201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:877, offset: 0x00f0af91, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2403) /* metro dependency 2403 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23203() { // fn#23203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:941, offset: 0x00f0afd2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2404) /* metro dependency 2404 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23205() { // fn#23205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1005, offset: 0x00f0b013, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2405) /* metro dependency 2405 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23207() { // fn#23207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1069, offset: 0x00f0b054, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2406) /* metro dependency 2406 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23209() { // fn#23209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1133, offset: 0x00f0b095, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2407) /* metro dependency 2407 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23211() { // fn#23211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1197, offset: 0x00f0b0d6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2408) /* metro dependency 2408 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23213() { // fn#23213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1261, offset: 0x00f0b117, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2409) /* metro dependency 2409 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23215() { // fn#23215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1325, offset: 0x00f0b158, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2410) /* metro dependency 2410 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23217() { // fn#23217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1394, offset: 0x00f0b199, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2411) /* metro dependency 2411 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23219() { // fn#23219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1458, offset: 0x00f0b1da, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2412) /* metro dependency 2412 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23221() { // fn#23221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1522, offset: 0x00f0b21b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2413) /* metro dependency 2413 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23223() { // fn#23223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1591, offset: 0x00f0b25c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2414) /* metro dependency 2414 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23225() { // fn#23225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1655, offset: 0x00f0b29d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2415) /* metro dependency 2415 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23227() { // fn#23227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1719, offset: 0x00f0b2de, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2416) /* metro dependency 2416 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23229() { // fn#23229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1783, offset: 0x00f0b31f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2417) /* metro dependency 2417 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23231() { // fn#23231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1847, offset: 0x00f0b360, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2418) /* metro dependency 2418 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23233() { // fn#23233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1916, offset: 0x00f0b3a1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2419) /* metro dependency 2419 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23235() { // fn#23235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:1985, offset: 0x00f0b3e2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2420) /* metro dependency 2420 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23237() { // fn#23237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2517:2054, offset: 0x00f0b423, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2421) /* metro dependency 2421 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun23176, 2390, [1247, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403,
2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421,
1282,
2]) /* metro module 2390, dependencies: [1247, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, 2421, 1282, 2] */;
@@ -1,13 +1,29 @@
/* Metro module 14146; source: modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun107040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14343:6, offset: 0x022f19fe, size: 189 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-06-notify-friends-on-profile-update',
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateExperiment.tsx');
exports.default = value;
exports.useNotifyFriendsOnProfileUpdateExperiment = useNotifyFriendsOnProfileUpdateExperiment;
exports.getNotifyFriendsOnProfileUpdateExperiment = getNotifyFriendsOnProfileUpdateExperiment;
function useNotifyFriendsOnProfileUpdateExperiment(a0) { // fn#107041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14343:441, offset: 0x00e364db, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
}
function getNotifyFriendsOnProfileUpdateExperiment(a0) { // fn#107042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14343:522, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun107040, 14146, [1854, 2]) /* metro module 14146, dependencies: [1854, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 14145; source: modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun107038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14342:6, offset: 0x022f1900, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/profile_updates/sender/NotifyFriendsOnProfileUpdateUtils.tsx');
exports.onNotifyFriendsOnProfileUpdateSettingsChanged = function(a0) {
require(dependencyMap[2]).NotifyFriendsOnProfileUpdate.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun107038(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun107038, 14145, [3796, 661, 3829, 683,
2]) /* metro module 14145, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13907; source: modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14104:6, offset: 0x022bdd6e, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/server_trending/ServerTrendingNotificationUtils.tsx');
exports.onServerTrendingNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableServerTrendingNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105606(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105606, 13907, [3796, 661, 3829, 683,
2]) /* metro module 13907, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,101 +1,152 @@
/* Metro module 11947; source: modules/notifications/settings/native/MuteAppDmActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 6275, 11759, 9216, 1244, 4573, 4578, 6613, 6610, 4080, 3857, 1305, 8194, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import Module08194 from '../../../../by-id/module-08194.js'; /* Metro dependency 8194 */
import ChatInputActionButton from '../../../chat_input/native/action_buttons/ChatInputActionButton.tsx'; /* Metro dependency 11759 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as BellIconModule from '../../../../design/components/Icon/native/redesign/generated/BellIcon.tsx'; /* Metro dependency 9216 */
function _fun91694(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:6, offset: 0x0206e06f, size: 422 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object2.iconContainer = {'alignItems': 'center', 'marginBottom': 8};
object2.iconBackground = {'width': 48, 'height': 48};
object2.content = {padding: 16};
object2.headerText = {'textAlign': 'center', 'marginBottom': 8, 'paddingHorizontal': 16};
object2.infoText = {'textAlign': 'center', 'marginBottom': 16, 'paddingHorizontal': 16};
object2.dismissButtonContainer = {marginTop: 8};
const object3 = {'borderRadius': null, 'backgroundColor': null, 'height': 24, 'width': 24, 'padding': 4,
object.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object.iconContainer = {'alignItems': 'center', 'marginBottom': 8};
object.iconBackground = {'width': 48, 'height': 48};
object.content = {padding: 16};
object.headerText = {'textAlign': 'center', 'marginBottom': 8, 'paddingHorizontal': 16};
object.infoText = {'textAlign': 'center', 'marginBottom': 16, 'paddingHorizontal': 16};
object.dismissButtonContainer = {marginTop: 8};
const object4 = {'borderRadius': null, 'backgroundColor': null, 'height': 24, 'width': 24, 'padding': 4,
'alignContent': 'center'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_FEEDBACK_NOTIFICATION = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_NOTIFICATION;
object3.backgroundColor = BACKGROUND_FEEDBACK_NOTIFICATION;
object2.mutedNotificationContainer = object3;
object2.mutedNotification = {'width': 16, 'height': 16};
const env0_6 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/MuteAppDmActionSheet.tsx');
object4.backgroundColor = BACKGROUND_FEEDBACK_NOTIFICATION;
object.mutedNotificationContainer = object4;
object.mutedNotification = {'width': 16, 'height': 16};
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/MuteAppDmActionSheet.tsx');
exports.default = MuteAppDMActionSheet;
}
function MuteAppDMActionSheet({channel}) { // fn#91695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:837, offset: 0x0206e215, size: 674 bytes, params: 2, frame: 28
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
let value = importDefault(11759) /* metro dependency 11759: ChatInputActionButton */;
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
value = <View style={styles.iconContainer}>{((Component) => <Component style={styles.iconBackground} IconComponent={BellIcon} active accessibilityLabel={Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL])} />)(value)}</View>;
const items2 = [value];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.headerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL)}</Text>;
items2[2] = <Text variant="text-md/normal" color="text-default" style={styles.infoText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mscFJU)}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[3] = <Button variant="destructive" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL)} onPress={onPress_91696} />;
string = intl.string;
const WAI6xu = (require(1244) /* metro dependency 1244: indexNative */).t.WAI6xu;
items2[4] = <View style={styles.dismissButtonContainer}><Button variant="secondary" text={Reflect.apply(string,
intl, [WAI6xu])} onPress={onPress_91698} /></View>;
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
<View style={styles.content}>
{items2}
function MuteAppDMActionSheet({channel}) { // fn#91695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:837, offset: 0x0206e215, size: 674 bytes, params: 2, frame: 28
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
let value = ChatInputActionButton;
const BellIcon = (BellIconModule).BellIcon;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
value = (
<View style={styles.iconContainer}>
{((Component) => <Component style={styles.iconBackground} IconComponent={BellIcon} active accessibilityLabel={Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL])} />)(value)}
</View>
</BottomSheet>
);
}
);
const items2 = [value];
const Text = (TextModule).Text;
items2[1] = (
<Text
variant="heading-lg/bold"
color="mobile-text-heading-primary"
style={styles.headerText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL)}
</Text>
);
items2[2] = (
<Text
variant="text-md/normal"
color="text-default"
style={styles.infoText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mscFJU)}
</Text>
);
const Button = (ButtonNativeModule).Button;
items2[3] = (
<Button
variant="destructive"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uAmAiL)}
onPress={onPress_91696}
/>
);
string = intl.string;
const WAI6xu = (require(1244) /* metro dependency 1244: indexNative */).t.WAI6xu;
items2[4] = (
<View style={styles.dismissButtonContainer}>
<Button
variant="secondary"
text={Reflect.apply(string, intl, [WAI6xu])}
onPress={onPress_91698}
/>
</View>
);
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
function MuteAppDMActionSheetOnPress() { // fn#91696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:1542, owner: MuteAppDMActionSheet.onPress, offset: 0x0206e4b7, size: 217 bytes, params: 1, frame: 21
var environment;
let value = environment.__proto__;
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const id = channel.id;
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
const Muted = NotificationLabels.Muted;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [null, id, {muted: true}, Muted]);
(ActionSheetActionCreators).hideActionSheet();
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = value.open;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const EgGpkx = (IndexNativeModule).t.EgGpkx;
Reflect.apply(open, value, [{key: 'NOTIFICATIONS_MUTED', content: Reflect.apply(string, intl, [EgGpkx]),
icon: icon_91697}]);
function onPressIcon_91697() { // fn#91697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:1761, owner: MuteAppDMActionSheet.onPress.icon, offset: 0x0206e590, size: 134 bytes, params: 1, frame: 19
const stylesBinding = styles;
const mutedNotificationContainer = stylesBinding.mutedNotificationContainer;
const Icon = (NativeModule).Icon;
const iconProps = {source: Module08194};
const WHITE = (Native).unsafe_rawColors.WHITE;
iconProps.color = WHITE;
iconProps.style = stylesBinding.mutedNotification;
return (
<View style={mutedNotificationContainer}>
<Icon {...iconProps} />
</View>
);
}
function MuteAppDMActionSheetOnPress() { // fn#91696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:1542, owner: MuteAppDMActionSheet.onPress, offset: 0x0206e4b7, size: 217 bytes, params: 1, frame: 21
var environment;
let value = environment.__proto__;
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const id = channel.id;
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
const Muted = NotificationLabels.Muted;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [null, id, {muted: true}, Muted]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = value.open;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const EgGpkx = (require(1244) /* metro dependency 1244: indexNative */).t.EgGpkx;
Reflect.apply(open, value, [{key: 'NOTIFICATIONS_MUTED', content: Reflect.apply(string, intl, [EgGpkx]),
icon: icon_91697}]);
}
}
function MuteAppDMActionSheetOnPress_91698() { // fn#91698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:2054, owner: MuteAppDMActionSheet.onPress, offset: 0x0206e616, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function MuteAppDMActionSheetOnPress_91698() { // fn#91698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:2054, owner: MuteAppDMActionSheet.onPress, offset: 0x0206e616, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
function onPressIcon_91697() { // fn#91697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12133:1761, owner: MuteAppDMActionSheet.onPress.icon, offset: 0x0206e590, size: 134 bytes, params: 1, frame: 19
const stylesBinding = styles;
const mutedNotificationContainer = stylesBinding.mutedNotificationContainer;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(8194) /* metro dependency 8194 */};
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
iconProps.color = WHITE;
iconProps.style = stylesBinding.mutedNotification;
return (
<View style={mutedNotificationContainer}>
<Icon {...iconProps} />
</View>
);
}
global.__d(_fun91694, 11947, [31, 27, 33, 4501, 697, 6275, 11759, 9216, 1244, 4573, 4578, 6613, 6610, 4080, 3857,
1305, 8194,
2]) /* metro module 11947, dependencies: [31, 27, 33, 4501, 697, 6275, 11759, 9216, 1244, 4573, 4578, 6613, 6610, 4080, 3857, 1305, 8194, 2] */;
@@ -1,132 +1,159 @@
/* Metro module 10940; source: modules/notifications/settings/native/NotificationSettingsChannel.tsx; dependencies: [31, 27, 4864, 33, 4501, 697, 10941, 1244, 4805, 1484, 5282, 6613, 6610, 566, 7972, 10943, 10944, 10948, 10955, 10961, 4578, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseChannelName from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as NotificationSettingsPresetsModule from './NotificationSettingsPresets.tsx'; /* Metro dependency 10944 */
import * as NotificationSettingsMessageNotificationModule from './NotificationSettingsMessageNotification.tsx'; /* Metro dependency 10948 */
import * as NotificationSettingsMessageUnreadModule from './NotificationSettingsMessageUnread.tsx'; /* Metro dependency 10955 */
function _fun83878(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:6, offset: 0x01f2c873, size: 264 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
const env0_8 = Reflect.apply(createStyles, value, [{screenContainer: {'flex': 1, 'backgroundColor': null,
'padding': 16, backgroundColor: BACKGROUND_BASE_LOW}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannel.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannel.tsx');
exports.default = NotificationSettingsChannel;
}
function NotificationSettingsChannel(a0) { // fn#83879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:385, offset: 0x01f2c97b, size: 870 bytes, params: 2, frame: 30
var r6;
var r5;
var NotificationSettingsMuteBanner;
var moduleValue4;
var Button;
var object;
const env0_0 = a0;
const value2 = (NotficationSettingsChannelFlagUtilsModule).useChannelPresetInheritance(a0.channel);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const env0_1 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss);
const env0_2 = (UseChannelName)(a0.channel);
const env0_3 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
const binding = env0_3;
binding.useLayoutEffect(_fun83880);
const value3 = binding.useCallback(_fun83883, [a0.channel]);
const value4 = binding.useCallback(_fun83884, [a0.channel]);
const value5 = (FluxModule).useStateFromStoresObject([UserGuildSettingsStore],
_fun83885);
const Form = (NativeModule).Form;
const muted = value5.muted;
if (muted) {
NotificationSettingsMuteBanner = (require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */).NotificationSettingsMuteBanner;
var notificationSettingsMuteBannerProps2 = {style: {marginBottom: 16},
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6MCxAy'])};
moduleValue4 = require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */;
notificationSettingsMuteBannerProps2.subtitle = moduleValue4.getMuteBannerSubtitleFromConfig(value5.config);
notificationSettingsMuteBannerProps2.onPressUnmute = value4;
r6 = <NotificationSettingsMuteBanner {...notificationSettingsMuteBannerProps2} />;
} else {
r6 = muted;
}
const items2 = [r6];
const NotificationSettingsChannelPresets = (NotificationSettingsPresetsModule).NotificationSettingsChannelPresets;
items2[1] = <NotificationSettingsChannelPresets channel={a0.channel} />;
const NotificationSettingsChannelMessageNotification = (NotificationSettingsMessageNotificationModule).NotificationSettingsChannelMessageNotification;
items2[2] = <NotificationSettingsChannelMessageNotification style={{marginTop: 24}} channel={a0.channel} />;
const NotificationSettingsChannelMessageUnread = (NotificationSettingsMessageUnreadModule).NotificationSettingsChannelMessageUnread;
items2[3] = <NotificationSettingsChannelMessageUnread style={{marginTop: 24}} channel={a0.channel} />;
items2[4] = a0.channel.isForumLikeChannel() && ((NotificationSettingsChannelPost) => <NotificationSettingsChannelPost style={{marginTop: 24}} channel={a0.channel} />)((require(10961) /* metro dependency 10961: NotificationSettingsChannelPost */).NotificationSettingsChannelPost);
const inherited = value2.inherited;
if (inherited) {
r5 = !inherited;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = (
<View style={{marginTop: 24}}>
<Button
variant="secondary"
onPress={value3}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PBFN6'])}
/>
</View>
);
}
items2[5] = r5;
return (
<Form style={styles.screenContainer}>
{items2}
</Form>
);
function _fun83880() { // fn#83880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:590, offset: 0x01f2cce1, size: 161 bytes, params: 1, frame: 22
var environment;
var value;
let binding = env0_3;
let setOptions = binding.setOptions;
let object = {};
object.title = '' + env0_1 + ' (' + env0_2 + ')';
object.headerTitle = headerTitle_83881;
Reflect.apply(setOptions, binding, [object]);
if (env0_0.inGuildContext) {
binding = env0_3;
setOptions = binding.setOptions;
object = {};
value = environment.__proto__;
value = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
object.headerLeft = value.getHeaderBackButton(_fun83882);
Reflect.apply(setOptions, binding, [object]);
}
function headerTitle_83881() { // fn#83881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:641, offset: 0x01f2cd82, size: 65 bytes, params: 1, frame: 15
const NavigatorHeader = (NavigatorHeaderNativeModule).NavigatorHeader;
return <NavigatorHeader title={env1_1} subtitle={env1_2} />;
}
function _fun83882() { // fn#83882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:769, offset: 0x01f2cdc3, size: 19 bytes, params: 1, frame: 9
return env1_3.popToTop();
}
}
function _fun83883() { // fn#83883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:814, offset: 0x01f2cdd6, size: 66 bytes, params: 1, frame: 13
let value = environment.__proto__;
value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const updateChannelToGuildDefault = value.updateChannelToGuildDefault;
const binding = env0_0;
return Reflect.apply(updateChannelToGuildDefault, value, [binding.channel.guild_id, binding.channel.id]);
}
function _fun83884() { // fn#83884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:918, offset: 0x01f2ce18, size: 110 bytes, params: 1, frame: 20
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const binding = env0_0;
const guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
const Unmuted = NotificationLabels.Unmuted;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, {muted: false}, Unmuted]);
}
function _fun83885() { // fn#83885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:1098, offset: 0x01f2ce86, size: 92 bytes, params: 1, frame: 15
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelMuteConfig = userGuildSettingsStoreBinding.getChannelMuteConfig;
const binding = env0_0;
return {config: Reflect.apply(getChannelMuteConfig, userGuildSettingsStoreBinding, [binding.channel.guild_id,
binding.channel.id]), muted: userGuildSettingsStoreBinding.isChannelMuted(binding.channel.guild_id,
binding.channel.id)};
}
function NotificationSettingsChannel(a0) { // fn#83879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:385, offset: 0x01f2c97b, size: 870 bytes, params: 2, frame: 30
var r6;
var r5;
var NotificationSettingsMuteBanner;
var moduleValue4;
var Button;
var object13;
const env0_0 = a0;
const value2 = (require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */).useChannelPresetInheritance(a0.channel);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const env0_1 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss);
const env0_2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(a0.channel);
const env0_3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
const binding = env0_3;
binding.useLayoutEffect(_fun83880);
const value3 = binding.useCallback(_fun83883, [a0.channel]);
const value4 = binding.useCallback(_fun83884, [a0.channel]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserGuildSettingsStore],
_fun83885);
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const muted = value5.muted;
if (muted) {
NotificationSettingsMuteBanner = (require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */).NotificationSettingsMuteBanner;
var notificationSettingsMuteBannerProps2 = {style: {marginBottom: 16},
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6MCxAy'])};
moduleValue4 = require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */;
notificationSettingsMuteBannerProps2.subtitle = moduleValue4.getMuteBannerSubtitleFromConfig(value5.config);
notificationSettingsMuteBannerProps2.onPressUnmute = value4;
r6 = <NotificationSettingsMuteBanner {...notificationSettingsMuteBannerProps2} />;
} else {
r6 = muted;
}
const items2 = [r6];
const NotificationSettingsChannelPresets = (require(10944) /* metro dependency 10944: NotificationSettingsPresets */).NotificationSettingsChannelPresets;
items2[1] = <NotificationSettingsChannelPresets channel={a0.channel} />;
const NotificationSettingsChannelMessageNotification = (require(10948) /* metro dependency 10948: NotificationSettingsMessageNotification */).NotificationSettingsChannelMessageNotification;
items2[2] = <NotificationSettingsChannelMessageNotification style={{marginTop: 24}} channel={a0.channel} />;
const NotificationSettingsChannelMessageUnread = (require(10955) /* metro dependency 10955: NotificationSettingsMessageUnread */).NotificationSettingsChannelMessageUnread;
items2[3] = <NotificationSettingsChannelMessageUnread style={{marginTop: 24}} channel={a0.channel} />;
items2[4] = a0.channel.isForumLikeChannel() && ((NotificationSettingsChannelPost) => <NotificationSettingsChannelPost style={{marginTop: 24}} channel={a0.channel} />)((require(10961) /* metro dependency 10961: NotificationSettingsChannelPost */).NotificationSettingsChannelPost);
const inherited = value2.inherited;
if (inherited) {
r5 = !inherited;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = <View style={{marginTop: 24}}><Button variant="secondary" onPress={value3} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PBFN6'])} /></View>;
}
items2[5] = r5;
return (
<Form style={styles.screenContainer}>
{items2}
</Form>
);
}
function _fun83880() { // fn#83880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:590, offset: 0x01f2cce1, size: 161 bytes, params: 1, frame: 22
var environment;
var value;
let binding = env0_3;
let setOptions = binding.setOptions;
let object2 = {};
object2.title = '' + env0_1 + ' (' + env0_2 + ')';
object2.headerTitle = headerTitle_83881;
Reflect.apply(setOptions, binding, [object2]);
if (env0_0.inGuildContext) {
binding = env0_3;
setOptions = binding.setOptions;
object2 = {};
value = environment.__proto__;
value = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
object2.headerLeft = value.getHeaderBackButton(_fun83882);
Reflect.apply(setOptions, binding, [object2]);
}
}
function _fun83883() { // fn#83883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:814, offset: 0x01f2cdd6, size: 66 bytes, params: 1, frame: 13
let value = environment.__proto__;
value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const updateChannelToGuildDefault = value.updateChannelToGuildDefault;
const binding = env0_0;
return Reflect.apply(updateChannelToGuildDefault, value, [binding.channel.guild_id, binding.channel.id]);
}
function _fun83884() { // fn#83884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:918, offset: 0x01f2ce18, size: 110 bytes, params: 1, frame: 20
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const binding = env0_0;
const guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
const Unmuted = NotificationLabels.Unmuted;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, {muted: false}, Unmuted]);
}
function _fun83885() { // fn#83885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:1098, offset: 0x01f2ce86, size: 92 bytes, params: 1, frame: 15
const getChannelMuteConfig = UserGuildSettingsStore.getChannelMuteConfig;
const binding = env0_0;
return {config: Reflect.apply(getChannelMuteConfig, UserGuildSettingsStore, [binding.channel.guild_id,
binding.channel.id]), muted: UserGuildSettingsStore.isChannelMuted(binding.channel.guild_id,
binding.channel.id)};
}
function headerTitle_83881() { // fn#83881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:641, offset: 0x01f2cd82, size: 65 bytes, params: 1, frame: 15
const NavigatorHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
return <NavigatorHeader title={env1_1} subtitle={env1_2} />;
}
function _fun83882() { // fn#83882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:769, offset: 0x01f2cdc3, size: 19 bytes, params: 1, frame: 9
return env1_3.popToTop();
}
global.__d(_fun83878, 10940, [31, 27, 4864, 33, 4501, 697, 10941, 1244, 4805, 1484, 5282, 6613, 6610, 566, 7972,
10943, 10944, 10948, 10955, 10961, 4578,
2]) /* metro module 10940, dependencies: [31, 27, 4864, 33, 4501, 697, 10941, 1244, 4805, 1484, 5282, 6613, 6610, 566, 7972, 10943, 10944, 10948, 10955, 10961, 4578, 2] */;
@@ -1,61 +1,70 @@
/* Metro module 10961; source: modules/notifications/settings/native/NotificationSettingsChannelPost.tsx; dependencies: [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableCheckboxRowNativeModule from '../../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
function _fun83966(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:6, offset: 0x01f31432, size: 175 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannelPost.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannelPost.tsx');
exports.NotificationSettingsChannelPost = NotificationSettingsChannelPost;
function NotificationSettingsChannelPost(a0) { // fn#83967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:284, offset: 0x01f314e1, size: 329 bytes, params: 2, frame: 26
const env0_0 = a0;
const channel = a0.channel;
const env0_1 = channel.guild_id;
const env0_2 = channel.id;
const {muted, guildMuted,
newForumThreadsCreated} = (FluxModule).useStateFromStoresObject([UserGuildSettingsStore],
_fun83968);
const style = a0.style;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.bK11jO]);
object2.hasIcons = false;
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
string = intl.string;
const Rkgjph = (require(1244) /* metro dependency 1244: indexNative */).t.Rkgjph;
return (
<View style={style}>
<TableRowGroup {...object2}>
<TableCheckboxRow
label={Reflect.apply(string, intl, [Rkgjph])}
checked={newForumThreadsCreated}
disabled={muted || guildMuted}
onPress={onPress_83969}
/>
</TableRowGroup>
</View>
);
function _fun83968() { // fn#83968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:404, offset: 0x01f3162a, size: 80 bytes, params: 1, frame: 15
const object = {};
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const isChannelMuted = userGuildSettingsStoreBinding.isChannelMuted;
const guild_idBinding = guild_id;
object.muted = Reflect.apply(isChannelMuted, userGuildSettingsStoreBinding, [guild_idBinding, id]);
object.guildMuted = userGuildSettingsStoreBinding.isMuted(guild_idBinding);
object.newForumThreadsCreated = userGuildSettingsStoreBinding.getNewForumThreadsCreated(env0_0.channel);
return object;
}
function NotificationSettingsChannelPostOnPress() { // fn#83969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:809, owner: NotificationSettingsChannelPost.onPress, offset: 0x01f3167a, size: 58 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
value.setForumThreadsCreated(env0_0.channel, !newForumThreadsCreated);
}
}
}
function NotificationSettingsChannelPost(a0) { // fn#83967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:284, offset: 0x01f314e1, size: 329 bytes, params: 2, frame: 26
const env0_0 = a0;
const channel = a0.channel;
const env0_1 = channel.guild_id;
const env0_2 = channel.id;
const {muted, guildMuted,
newForumThreadsCreated} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserGuildSettingsStore],
_fun83968);
const style = a0.style;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.bK11jO]);
object.hasIcons = false;
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
string = intl.string;
const Rkgjph = (require(1244) /* metro dependency 1244: indexNative */).t.Rkgjph;
return (
<View style={style}>
<TableRowGroup {...object}>
<TableCheckboxRow
label={Reflect.apply(string, intl, [Rkgjph])}
checked={newForumThreadsCreated}
disabled={muted || guildMuted}
onPress={onPress_83969}
/>
</TableRowGroup>
</View>
);
}
function _fun83968() { // fn#83968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:404, offset: 0x01f3162a, size: 80 bytes, params: 1, frame: 15
const object2 = {};
const isChannelMuted = UserGuildSettingsStore.isChannelMuted;
const guild_idBinding = guild_id;
object2.muted = Reflect.apply(isChannelMuted, UserGuildSettingsStore, [guild_idBinding, id]);
object2.guildMuted = UserGuildSettingsStore.isMuted(guild_idBinding);
object2.newForumThreadsCreated = UserGuildSettingsStore.getNewForumThreadsCreated(env0_0.channel);
return object2;
}
function NotificationSettingsChannelPostOnPress() { // fn#83969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:809, owner: NotificationSettingsChannelPost.onPress, offset: 0x01f3167a, size: 58 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
value.setForumThreadsCreated(env0_0.channel, !newForumThreadsCreated);
}
global.__d(_fun83966, 10961, [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613,
2]) /* metro module 10961, dependencies: [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613, 2] */;
@@ -1,101 +1,147 @@
/* Metro module 10948; source: modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx; dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962, 10941, 10954, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import NotificationSettingsMockMessage from './NotificationSettingsMockMessage.tsx'; /* Metro dependency 10950 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */
import * as NotificationSettingsPresetOptionUtilsModule from '../utils/notificationSettingsPresetOptionUtils.tsx'; /* Metro dependency 10949 */
function _fun83922(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:6, offset: 0x01f2e823, size: 361 bytes, params: 8, frame: 23
const env0_0 = require;
const closure = NotificationSettingsMessageNotification;
const NotificationSettingsMessageNotification2 = NotificationSettingsMessageNotification;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'backgroundColor': null, 'borderColor': null, 'borderRadius': 20, 'borderWidth': 1, 'padding': 14};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.borderColor = BACKGROUND_MOD_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{card: object, cta: {'textAlign': 'center', 'marginTop': 4},
const object2 = {'backgroundColor': null, 'borderColor': null, 'borderRadius': 20, 'borderWidth': 1, 'padding': 14};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE;
object2.borderColor = BACKGROUND_MOD_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{card: object2, cta: {'textAlign': 'center', 'marginTop': 4},
label: {'textAlign': 'center', 'marginTop': 8}, header: {marginBottom: 8}, headerTitle: {marginBottom: 4}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx');
exports.default = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx');
exports.default = NotificationSettingsMessageNotification2;
exports.NotificationSettingsGuildMessageNotification = NotificationSettingsGuildMessageNotification;
exports.NotificationSettingsChannelMessageNotification = NotificationSettingsChannelMessageNotification;
function NotificationSettingsMessageNotification(a0) { // fn#83923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:452, offset: 0x01f2e98c, size: 799 bytes, params: 2, frame: 34
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
const value4 = (NotificationSettingsPresetOptionUtilsModule).getPushNotificationSelectOptions().find(_fun83924);
const style = a0.style;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const view = (
<View style={styles.header}>
<Text
variant="text-sm/semibold"
color="text-default"
style={styles.headerTitle}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1m22ZB'])}
</Text>
<Text variant="text-xs/semibold" color="text-default">
{a0.context === 'guild' ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4bP2ZZ']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R1j5+4'])}
</Text>
</View>
);
const PressableOpacity = (PressablesModule).PressableOpacity;
const pressableOpacityProps = {onPress: a0.onCustomize, activeOpacity: 0.6};
const items3 = [
((Component) => <Component notificationSetting={a0.setting} />)(NotificationSettingsMockMessage),
];
items3[1] = (
<Text variant="text-sm/medium" style={styles.label}>
{(value4 == null ? value2 : value4.label) ?? 'unset'}
</Text>
);
const PressableOpacity2 = (PressablesModule).PressableOpacity;
items3[2] = (
<PressableOpacity2 onPress={a0.onCustomize}>
<Text
variant="text-sm/semibold"
style={styles.cta}
color="text-brand"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yxiV9W)}
</Text>
</PressableOpacity2>
);
return (
<View style={style}>
{view}
<PressableOpacity {...pressableOpacityProps}>
<View style={styles.card}>
{items3}
</View>
</PressableOpacity>
</View>
);
function _fun83924({value}) { // fn#83924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:567, offset: 0x01f2ecab, size: 27 bytes, params: 2, frame: 2
return value === env0_0.setting;
}
}
function NotificationSettingsGuildMessageNotification(a0) { // fn#83925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1635, offset: 0x01f2ecc6, size: 108 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const useGuildPresetSettings = NotificationSettingsGuildFlagUtilsModule.useGuildPresetSettings;
return (
<NotificationSettingsMessageNotification
context="guild"
style={style}
setting={Reflect.apply(useGuildPresetSettings, NotificationSettingsGuildFlagUtilsModule, [a0.guildId]).notification}
onCustomize={onCustomize}
/>
);
function NotificationSettingsGuildMessageNotificationOnCustomize() { // fn#83926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1848, owner: NotificationSettingsGuildMessageNotification.onCustomize, offset: 0x01f2ed32, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationGuildActionSheet', {guildId: env0_0.guildId}]);
}
}
function NotificationSettingsChannelMessageNotification(a0) { // fn#83927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2007, offset: 0x01f2ed94, size: 108 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const useChannelPresetSettings = NotficationSettingsChannelFlagUtilsModule.useChannelPresetSettings;
return (
<NotificationSettingsMessageNotification
context="channel"
style={style}
setting={Reflect.apply(useChannelPresetSettings, NotficationSettingsChannelFlagUtilsModule, [a0.channel]).notification}
onCustomize={onCustomize}
/>
);
function NotificationSettingsChannelMessageNotificationOnCustomize() { // fn#83928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2226, owner: NotificationSettingsChannelMessageNotification.onCustomize, offset: 0x01f2ee00, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationChannelActionSheet', {channel: env0_0.channel}]);
}
}
}
function NotificationSettingsMessageNotification(a0) { // fn#83923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:452, offset: 0x01f2e98c, size: 799 bytes, params: 2, frame: 34
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
const value4 = (require(10949) /* metro dependency 10949: notificationSettingsPresetOptionUtils */).getPushNotificationSelectOptions().find(_fun83924);
const style = a0.style;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const view = <View style={styles.header}><Text variant="text-sm/semibold" color="text-default" style={styles.headerTitle}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1m22ZB'])}</Text><Text variant="text-xs/semibold" color="text-default">{a0.context === 'guild' ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4bP2ZZ']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R1j5+4'])}</Text></View>;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const pressableOpacityProps = {onPress: a0.onCustomize, activeOpacity: 0.6};
const items3 = [((Component) => <Component notificationSetting={a0.setting} />)(importDefault(10950) /* metro dependency 10950: NotificationSettingsMockMessage */)];
items3[1] = <Text variant="text-sm/medium" style={styles.label}>{(value4 == null ? value2 : value4.label) ?? 'unset'}</Text>;
const PressableOpacity2 = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
items3[2] = <PressableOpacity2 onPress={a0.onCustomize}><Text variant="text-sm/semibold" style={styles.cta} color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yxiV9W)}</Text></PressableOpacity2>;
return (
<View style={style}>
{view}
<PressableOpacity {...pressableOpacityProps}>
<View style={styles.card}>
{items3}
</View>
</PressableOpacity>
</View>
);
}
function NotificationSettingsGuildMessageNotification(a0) { // fn#83925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1635, offset: 0x01f2ecc6, size: 108 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const value = require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */;
const useGuildPresetSettings = value.useGuildPresetSettings;
return (
<NotificationSettingsMessageNotification
context="guild"
style={style}
setting={Reflect.apply(useGuildPresetSettings, value, [a0.guildId]).notification}
onCustomize={onCustomize}
/>
);
}
function NotificationSettingsChannelMessageNotification(a0) { // fn#83927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2007, offset: 0x01f2ed94, size: 108 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const useChannelPresetSettings = value.useChannelPresetSettings;
return (
<NotificationSettingsMessageNotification
context="channel"
style={style}
setting={Reflect.apply(useChannelPresetSettings, value, [a0.channel]).notification}
onCustomize={onCustomize}
/>
);
}
function NotificationSettingsGuildMessageNotificationOnCustomize() { // fn#83926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1848, owner: NotificationSettingsGuildMessageNotification.onCustomize, offset: 0x01f2ed32, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationGuildActionSheet', {guildId: env0_0.guildId}]);
}
function NotificationSettingsChannelMessageNotificationOnCustomize() { // fn#83928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2226, owner: NotificationSettingsChannelMessageNotification.onCustomize, offset: 0x01f2ee00, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationChannelActionSheet', {channel: env0_0.channel}]);
}
global.__d(_fun83922, 10948, [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962,
10941, 10954,
2]) /* metro module 10948, dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962, 10941, 10954, 2] */;
@@ -1,62 +1,97 @@
/* Metro module 10953; source: modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import NotificationSettingsMockMessage from './NotificationSettingsMockMessage.tsx'; /* Metro dependency 10950 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as TableRadioRowNativeModule from '../../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
function _fun83941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:6, offset: 0x01f2f932, size: 326 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object2.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object2.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx');
object = {};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
object.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx');
exports.default = NotificationSettingsMessageNotificationActionSheet;
}
function NotificationSettingsMessageNotificationActionSheet(a0) { // fn#83942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:548, offset: 0x01f2fa78, size: 663 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const view = <View style={styles.header}>{((Component) => <Component notificationSetting={a0.value} />)(importDefault(10950) /* metro dependency 10950: NotificationSettingsMockMessage */)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const items2 = [<Text variant="text-sm/semibold">{Reflect.apply(string, intl, [t['1m22ZB']])}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted" />;
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items3 = [<TableRadioRow label={Reflect.apply(string, intl,
[t['HVah/3']])} value={ALL_MESSAGES} subLabel={a0.allMessagesSubLabel} />];
string = intl.string;
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items3[1] = <TableRadioRow label={Reflect.apply(string, intl, [t['tu+ZWJ']])} value={ONLY_MENTIONS} />;
string = intl.string;
const X4wWUi = (require(1244) /* metro dependency 1244: indexNative */).t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items3[2] = <TableRadioRow label={Reflect.apply(string, intl, [X4wWUi])} value={NO_MESSAGES} />;
items2[2] = <View style={styles.form}><TableRadioGroup defaultValue={value5} onChange={onChange} hasIcons={false}>{items3}</TableRadioGroup></View>;
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
function NotificationSettingsMessageNotificationActionSheet(a0) { // fn#83942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:548, offset: 0x01f2fa78, size: 663 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const view = (
<View style={styles.header}>
{((Component) => <Component notificationSetting={a0.value} />)(NotificationSettingsMockMessage)}
</View>
</BottomSheet>
);
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const items2 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [t['1m22ZB']])}
</Text>,
];
items2[1] = <Text variant="text-xs/medium" color="text-muted" />;
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items3 = [
<TableRadioRow
label={Reflect.apply(string, intl, [t['HVah/3']])}
value={ALL_MESSAGES}
subLabel={a0.allMessagesSubLabel}
/>,
];
string = intl.string;
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items3[1] = <TableRadioRow label={Reflect.apply(string, intl, [t['tu+ZWJ']])} value={ONLY_MENTIONS} />;
string = intl.string;
const X4wWUi = (IndexNativeModule).t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items3[2] = <TableRadioRow label={Reflect.apply(string, intl, [X4wWUi])} value={NO_MESSAGES} />;
items2[2] = (
<View style={styles.form}>
<TableRadioGroup
defaultValue={value5}
onChange={onChange}
hasIcons={false}
>
{items3}
</TableRadioGroup>
</View>
);
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}
}
global.__d(_fun83941, 10953, [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987,
2]) /* metro module 10953, dependencies: [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987, 2] */;
@@ -1,72 +1,83 @@
/* Metro module 10954; source: modules/notifications/settings/native/NotificationSettingsMessageNotificationChannelActionSheet.tsx; dependencies: [31, 4864, 661, 4865, 670, 33, 10941, 10953, 1244, 10942, 6613, 6610, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import NotificationSettingsMessageNotificationActionSheet from './NotificationSettingsMessageNotificationActionSheet.tsx'; /* Metro dependency 10953 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
function _fun83943(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11140:6, offset: 0x01f2fd0f, size: 220 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationChannelActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationChannelActionSheet.tsx');
exports.default = NotificationSettingsMessageNotificationChannelActionSheet;
}
function NotificationSettingsMessageNotificationChannelActionSheet(a0) { // fn#83944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11140:374, offset: 0x01f2fdeb, size: 212 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (NotficationSettingsChannelFlagUtilsModule).useChannelPresetSettings(a0.channel);
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification === ALL_MESSAGES) {
r5 = value2;
} else if (unread === UnreadSetting.ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageNotificationActionSheet
context="channel"
value={notification}
allMessagesSubLabel={r5}
onChange={onChange_83945}
/>
);
function NotificationSettingsMessageNotificationChannelActionSheetOnChange(a0) { // fn#83945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11140:679, owner: NotificationSettingsMessageNotificationChannelActionSheet.onChange, offset: 0x01f2febf, size: 250 bytes, params: 2, frame: 21
var moduleValue;
var withChannelUnreadFlags;
var userGuildSettingsStoreBinding;
var getChannelIdFlags;
var binding;
var channel;
var guild_id;
const object = {message_notifications: a0};
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (a0 === ALL_MESSAGES && unread !== UnreadSetting.ALL_MESSAGES) {
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
withChannelUnreadFlags = moduleValue.withChannelUnreadFlags;
userGuildSettingsStoreBinding = UserGuildSettingsStore;
getChannelIdFlags = userGuildSettingsStoreBinding.getChannelIdFlags;
binding = env0_0;
channel = binding.channel;
guild_id = channel.guild_id;
channel = binding.channel;
object.flags = Reflect.apply(withChannelUnreadFlags, moduleValue, [Reflect.apply(getChannelIdFlags,
userGuildSettingsStoreBinding, [guild_id, channel.id]),
ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES]);
}
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
binding = env0_0;
guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, object,
NotificationLabel.notifications(a0)]);
}
function NotificationSettingsMessageNotificationChannelActionSheet(a0) { // fn#83944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11140:374, offset: 0x01f2fdeb, size: 212 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */).useChannelPresetSettings(a0.channel);
const NotificationSettingsMessageNotificationActionSheet = importDefault(10953) /* metro dependency 10953: NotificationSettingsMessageNotificationActionSheet */;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification === ALL_MESSAGES) {
r5 = value2;
} else if (unread === UnreadSetting.ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageNotificationActionSheet
context="channel"
value={notification}
allMessagesSubLabel={r5}
onChange={onChange_83945}
/>
);
}
function NotificationSettingsMessageNotificationChannelActionSheetOnChange(a0) { // fn#83945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11140:679, owner: NotificationSettingsMessageNotificationChannelActionSheet.onChange, offset: 0x01f2febf, size: 250 bytes, params: 2, frame: 21
var moduleValue;
var withChannelUnreadFlags;
var getChannelIdFlags;
var binding;
var channel;
var guild_id;
const object2 = {message_notifications: a0};
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (a0 === ALL_MESSAGES && unread !== UnreadSetting.ALL_MESSAGES) {
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
withChannelUnreadFlags = moduleValue.withChannelUnreadFlags;
getChannelIdFlags = UserGuildSettingsStore.getChannelIdFlags;
binding = env0_0;
channel = binding.channel;
guild_id = channel.guild_id;
channel = binding.channel;
object2.flags = Reflect.apply(withChannelUnreadFlags, moduleValue, [Reflect.apply(getChannelIdFlags,
UserGuildSettingsStore, [guild_id, channel.id]), ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES]);
}
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
binding = env0_0;
guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, object2,
NotificationLabel.notifications(a0)]);
}
global.__d(_fun83943, 10954, [31, 4864, 661, 4865, 670, 33, 10941, 10953, 1244, 10942, 6613, 6610,
2]) /* metro module 10954, dependencies: [31, 4864, 661, 4865, 670, 33, 10941, 10953, 1244, 10942, 6613, 6610, 2] */;
@@ -1,59 +1,72 @@
/* Metro module 10952; source: modules/notifications/settings/native/NotificationSettingsMessageNotificationGuildActionSheet.tsx; dependencies: [31, 4864, 661, 4865, 670, 33, 10947, 10953, 1244, 10942, 6613, 6610, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import NotificationSettingsMessageNotificationActionSheet from './NotificationSettingsMessageNotificationActionSheet.tsx'; /* Metro dependency 10953 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */
function _fun83938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11138:6, offset: 0x01f2f6ad, size: 220 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).GuildNotificationSettingsFlags;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationGuildActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationGuildActionSheet.tsx');
exports.default = NotificationSettingsMessageNotificationGuildActionSheet;
}
function NotificationSettingsMessageNotificationGuildActionSheet(a0) { // fn#83939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11138:370, offset: 0x01f2f789, size: 212 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (NotificationSettingsGuildFlagUtilsModule).useGuildPresetSettings(a0.guildId);
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification === ALL_MESSAGES) {
r5 = value2;
} else if (unread === UnreadSetting.ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageNotificationActionSheet
context="guild"
value={notification}
allMessagesSubLabel={r5}
onChange={onChange_83940}
/>
);
function NotificationSettingsMessageNotificationGuildActionSheetOnChange(a0) { // fn#83940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11138:669, owner: NotificationSettingsMessageNotificationGuildActionSheet.onChange, offset: 0x01f2f85d, size: 213 bytes, params: 2, frame: 19
var moduleValue;
var withGuildUnreadFlags;
var userGuildSettingsStoreBinding;
const object = {message_notifications: a0};
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (a0 === ALL_MESSAGES && unread !== UnreadSetting.ALL_MESSAGES) {
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
withGuildUnreadFlags = moduleValue.withGuildUnreadFlags;
userGuildSettingsStoreBinding = UserGuildSettingsStore;
object.flags = Reflect.apply(withGuildUnreadFlags, moduleValue,
[userGuildSettingsStoreBinding.getGuildFlags(env0_0.guildId),
GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES]);
}
const defaultImport = NotificationSettingsModalActionCreators;
const updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
const guildId = env0_0.guildId;
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildId, object,
NotificationLabel.notifications(a0)]);
}
function NotificationSettingsMessageNotificationGuildActionSheet(a0) { // fn#83939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11138:370, offset: 0x01f2f789, size: 212 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */).useGuildPresetSettings(a0.guildId);
const NotificationSettingsMessageNotificationActionSheet = importDefault(10953) /* metro dependency 10953: NotificationSettingsMessageNotificationActionSheet */;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification === ALL_MESSAGES) {
r5 = value2;
} else if (unread === UnreadSetting.ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageNotificationActionSheet
context="guild"
value={notification}
allMessagesSubLabel={r5}
onChange={onChange_83940}
/>
);
}
function NotificationSettingsMessageNotificationGuildActionSheetOnChange(a0) { // fn#83940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11138:669, owner: NotificationSettingsMessageNotificationGuildActionSheet.onChange, offset: 0x01f2f85d, size: 213 bytes, params: 2, frame: 19
var moduleValue;
const object2 = {message_notifications: a0};
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (a0 === ALL_MESSAGES && unread !== UnreadSetting.ALL_MESSAGES) {
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue.withGuildUnreadFlags(UserGuildSettingsStore.getGuildFlags(env0_0.guildId),
GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES);
}
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
const guildId = env0_0.guildId;
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildId, object2,
NotificationLabel.notifications(a0)]);
}
global.__d(_fun83938, 10952, [31, 4864, 661, 4865, 670, 33, 10947, 10953, 1244, 10942, 6613, 6610,
2]) /* metro module 10952, dependencies: [31, 4864, 661, 4865, 670, 33, 10947, 10953, 1244, 10942, 6613, 6610, 2] */;
@@ -1,104 +1,151 @@
/* Metro module 10955; source: modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx; dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10956, 10947, 4080, 10958, 1962, 10941, 10960, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import NotificationSettingsMockChannels from './NotificationSettingsMockChannels.tsx'; /* Metro dependency 10956 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */
import * as NotificationSettingsPresetOptionUtilsModule from '../utils/notificationSettingsPresetOptionUtils.tsx'; /* Metro dependency 10949 */
function _fun83946(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:6, offset: 0x01f2ffb9, size: 351 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'backgroundColor': null, 'borderColor': null, 'borderRadius': 20, 'borderWidth': 1, 'padding': 14};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.borderColor = BACKGROUND_MOD_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{card: object, cta: {'marginTop': 4, 'textAlign': 'center'},
const object2 = {'backgroundColor': null, 'borderColor': null, 'borderRadius': 20, 'borderWidth': 1, 'padding': 14};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE;
object2.borderColor = BACKGROUND_MOD_SUBTLE;
const env0_6 = Reflect.apply(createStyles, value, [{card: object2, cta: {'marginTop': 4, 'textAlign': 'center'},
label: {'marginTop': 8, 'textAlign': 'center'}, header: {marginBottom: 8}, headerTitle: {marginBottom: 4}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx');
exports.NotificationSettingsGuildMessageUnread = NotificationSettingsGuildMessageUnread;
exports.NotificationSettingsChannelMessageUnread = NotificationSettingsChannelMessageUnread;
function NotificationSettingsMessageUnread(a0) { // fn#83947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:452, offset: 0x01f30118, size: 730 bytes, params: 2, frame: 34
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
const value4 = (NotificationSettingsPresetOptionUtilsModule).getUnreadSelectOptions().find(_fun83948);
const style = a0.style;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Tqd1Af = (require(1244) /* metro dependency 1244: indexNative */).t.Tqd1Af;
const text = (
<Text
variant="text-sm/semibold"
color="text-default"
style={styles.headerTitle}
>
{Reflect.apply(string, intl, [Tqd1Af])}
</Text>
);
string = intl.string;
const RpQgm5 = (require(1244) /* metro dependency 1244: indexNative */).t.RpQgm5;
const view = (
<View style={styles.header}>
{text}
<Text variant="text-xs/semibold" color="text-default">
{Reflect.apply(string, intl, [RpQgm5])}
</Text>
</View>
);
const PressableOpacity = (PressablesModule).PressableOpacity;
const pressableOpacityProps = {onPress: a0.onCustomize, activeOpacity: 0.6};
const items3 = [
((Component) => <Component unreadSetting={a0.setting} />)(NotificationSettingsMockChannels),
];
items3[1] = (
<Text variant="text-sm/medium" style={styles.label}>
{(value4 == null ? value2 : value4.label) ?? 'unset'}
</Text>
);
const PressableOpacity2 = (PressablesModule).PressableOpacity;
items3[2] = (
<PressableOpacity2 onPress={a0.onCustomize}>
<Text
variant="text-sm/semibold"
style={styles.cta}
color="text-brand"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yxiV9W)}
{' '}
</Text>
</PressableOpacity2>
);
return (
<View style={style}>
{view}
<PressableOpacity {...pressableOpacityProps}>
<View style={styles.card}>
{items3}
</View>
</PressableOpacity>
</View>
);
function _fun83948({value}) { // fn#83948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:551, offset: 0x01f2ecab, size: 27 bytes, params: 2, frame: 2
return value === env0_0.setting;
}
}
function NotificationSettingsGuildMessageUnread(a0) { // fn#83949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1490, offset: 0x01f303f2, size: 100 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const useGuildPresetSettings = NotificationSettingsGuildFlagUtilsModule.useGuildPresetSettings;
return (
<NotificationSettingsMessageUnread
style={style}
setting={Reflect.apply(useGuildPresetSettings, NotificationSettingsGuildFlagUtilsModule, [a0.guildId]).unread}
onCustomize={onCustomize}
/>
);
function NotificationSettingsGuildMessageUnreadOnCustomize() { // fn#83950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1669, owner: NotificationSettingsGuildMessageUnread.onCustomize, offset: 0x01f30456, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageUnreadActionSheet', {guildId: env0_0.guildId}]);
}
}
function NotificationSettingsChannelMessageUnread(a0) { // fn#83951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1811, offset: 0x01f304b8, size: 100 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const useChannelPresetSettings = NotficationSettingsChannelFlagUtilsModule.useChannelPresetSettings;
return (
<NotificationSettingsMessageUnread
style={style}
setting={Reflect.apply(useChannelPresetSettings, NotficationSettingsChannelFlagUtilsModule, [a0.channel]).unread}
onCustomize={onCustomize}
/>
);
function NotificationSettingsChannelMessageUnreadOnCustomize() { // fn#83952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1994, owner: NotificationSettingsChannelMessageUnread.onCustomize, offset: 0x01f3051c, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageUnreadActionSheet', {channel: env0_0.channel}]);
}
}
}
function NotificationSettingsMessageUnread(a0) { // fn#83947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:452, offset: 0x01f30118, size: 730 bytes, params: 2, frame: 34
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
const value4 = (require(10949) /* metro dependency 10949: notificationSettingsPresetOptionUtils */).getUnreadSelectOptions().find(_fun83948);
const style = a0.style;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Tqd1Af = (require(1244) /* metro dependency 1244: indexNative */).t.Tqd1Af;
const text = <Text variant="text-sm/semibold" color="text-default" style={styles.headerTitle}>{Reflect.apply(string,
intl, [Tqd1Af])}</Text>;
string = intl.string;
const RpQgm5 = (require(1244) /* metro dependency 1244: indexNative */).t.RpQgm5;
const view = <View style={styles.header}>{text}<Text variant="text-xs/semibold" color="text-default">{Reflect.apply(string,
intl, [RpQgm5])}</Text></View>;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const pressableOpacityProps = {onPress: a0.onCustomize, activeOpacity: 0.6};
const items3 = [((Component) => <Component unreadSetting={a0.setting} />)(importDefault(10956) /* metro dependency 10956: NotificationSettingsMockChannels */)];
items3[1] = <Text variant="text-sm/medium" style={styles.label}>{(value4 == null ? value2 : value4.label) ?? 'unset'}</Text>;
const PressableOpacity2 = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
items3[2] = <PressableOpacity2 onPress={a0.onCustomize}><Text variant="text-sm/semibold" style={styles.cta} color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yxiV9W)}{' '}</Text></PressableOpacity2>;
return (
<View style={style}>
{view}
<PressableOpacity {...pressableOpacityProps}>
<View style={styles.card}>
{items3}
</View>
</PressableOpacity>
</View>
);
}
function NotificationSettingsGuildMessageUnread(a0) { // fn#83949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1490, offset: 0x01f303f2, size: 100 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const value = require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */;
const useGuildPresetSettings = value.useGuildPresetSettings;
return (
<NotificationSettingsMessageUnread
style={style}
setting={Reflect.apply(useGuildPresetSettings, value, [a0.guildId]).unread}
onCustomize={onCustomize}
/>
);
}
function NotificationSettingsChannelMessageUnread(a0) { // fn#83951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1811, offset: 0x01f304b8, size: 100 bytes, params: 2, frame: 17
const env0_0 = a0;
const style = a0.style;
const value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const useChannelPresetSettings = value.useChannelPresetSettings;
return (
<NotificationSettingsMessageUnread
style={style}
setting={Reflect.apply(useChannelPresetSettings, value, [a0.channel]).unread}
onCustomize={onCustomize}
/>
);
}
function NotificationSettingsGuildMessageUnreadOnCustomize() { // fn#83950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1669, owner: NotificationSettingsGuildMessageUnread.onCustomize, offset: 0x01f30456, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageUnreadActionSheet', {guildId: env0_0.guildId}]);
}
function NotificationSettingsChannelMessageUnreadOnCustomize() { // fn#83952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11141:1994, owner: NotificationSettingsChannelMessageUnread.onCustomize, offset: 0x01f3051c, size: 98 bytes, params: 1, frame: 16
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[11]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[13]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'MessageUnreadActionSheet', {channel: env0_0.channel}]);
}
global.__d(_fun83946, 10955, [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10956, 10947, 4080, 10958, 1962,
10941, 10960,
2]) /* metro module 10955, dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10956, 10947, 4080, 10958, 1962, 10941, 10960, 2] */;
@@ -1,62 +1,97 @@
/* Metro module 10959; source: modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx; dependencies: [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import NotificationSettingsMockChannels from './NotificationSettingsMockChannels.tsx'; /* Metro dependency 10956 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as TableRadioRowNativeModule from '../../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
function _fun83961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11145:6, offset: 0x01f30df8, size: 326 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object2.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object2.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx');
object = {};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
object.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx');
exports.default = NotificationSettingsMessageUnreadActionSheet;
}
function NotificationSettingsMessageUnreadActionSheet(a0) { // fn#83962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11145:531, offset: 0x01f30f3e, size: 642 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const view = <View style={styles.header}>{((Component) => <Component unreadSetting={a0.value} />)(importDefault(10956) /* metro dependency 10956: NotificationSettingsMockChannels */)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const Tqd1Af = t.Tqd1Af;
const items2 = [<Text variant="text-sm/semibold">{Reflect.apply(string, intl, [Tqd1Af])}</Text>];
string = intl.string;
const RpQgm5 = (require(1244) /* metro dependency 1244: indexNative */).t.RpQgm5;
items2[1] = <Text variant="text-xs/medium" color="text-muted">{Reflect.apply(string, intl, [RpQgm5])}</Text>;
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
const tableRadioRow = <TableRadioRow label={Reflect.apply(string, intl, [t['HVah/3']])} value={ALL_MESSAGES} />;
const tableRadioRowProps2 = {subLabel: a0.disabledMentionOnlyWithReason,
disabled: a0.disabledMentionOnlyWithReason != null,
label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['tu+ZWJ'])};
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
tableRadioRowProps2.value = ONLY_MENTIONS;
items2[2] = <View style={styles.form}><TableRadioGroup defaultValue={value5} onChange={onChange} hasIcons={false}>{tableRadioRow}<TableRadioRow {...tableRadioRowProps2} /></TableRadioGroup></View>;
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
function NotificationSettingsMessageUnreadActionSheet(a0) { // fn#83962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11145:531, offset: 0x01f30f3e, size: 642 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const view = (
<View style={styles.header}>
{((Component) => <Component unreadSetting={a0.value} />)(NotificationSettingsMockChannels)}
</View>
</BottomSheet>
);
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const Tqd1Af = t.Tqd1Af;
const items2 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [Tqd1Af])}
</Text>,
];
string = intl.string;
const RpQgm5 = (IndexNativeModule).t.RpQgm5;
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{Reflect.apply(string, intl, [RpQgm5])}
</Text>
);
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
const tableRadioRow = <TableRadioRow label={Reflect.apply(string, intl, [t['HVah/3']])} value={ALL_MESSAGES} />;
const tableRadioRowProps2 = {subLabel: a0.disabledMentionOnlyWithReason,
disabled: a0.disabledMentionOnlyWithReason != null,
label: intl.string((IndexNativeModule).t['tu+ZWJ'])};
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
tableRadioRowProps2.value = ONLY_MENTIONS;
items2[2] = (
<View style={styles.form}>
<TableRadioGroup
defaultValue={value5}
onChange={onChange}
hasIcons={false}
>
{tableRadioRow}
<TableRadioRow {...tableRadioRowProps2} />
</TableRadioGroup>
</View>
);
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}
}
global.__d(_fun83961, 10959, [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987,
2]) /* metro module 10959, dependencies: [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987, 2] */;
@@ -1,59 +1,68 @@
/* Metro module 10960; source: modules/notifications/settings/native/NotificationSettingsMessageUnreadChannelActionSheet.tsx; dependencies: [31, 4864, 661, 4865, 670, 33, 10941, 10959, 1244, 6613, 10942, 6610, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import NotificationSettingsMessageUnreadActionSheet from './NotificationSettingsMessageUnreadActionSheet.tsx'; /* Metro dependency 10959 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as NotificationSettingsFlagUtilsModule from '../utils/notificationSettingsFlagUtils.tsx'; /* Metro dependency 10942 */
function _fun83963(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11146:6, offset: 0x01f311c0, size: 220 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadChannelActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadChannelActionSheet.tsx');
exports.default = NotificationSettingsMessageUnreadChannelActionSheet;
}
function NotificationSettingsMessageUnreadChannelActionSheet(a0) { // fn#83964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11146:368, offset: 0x01f3129c, size: 184 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (NotficationSettingsChannelFlagUtilsModule).useChannelPresetSettings(a0.channel);
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification !== ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageUnreadActionSheet
value={unread}
disabledMentionOnlyWithReason={r5}
onChange={onChange_83965}
/>
);
function NotificationSettingsMessageUnreadChannelActionSheetOnChange(a0) { // fn#83965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11146:639, owner: NotificationSettingsMessageUnreadChannelActionSheet.onChange, offset: 0x01f31354, size: 222 bytes, params: 2, frame: 24
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelIdFlags = userGuildSettingsStoreBinding.getChannelIdFlags;
const binding = env0_0;
let guild_id = binding.channel.guild_id;
let id = binding.channel.id;
const value3 = Reflect.apply(getChannelIdFlags, userGuildSettingsStoreBinding, [guild_id, id]);
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
guild_id = binding.channel.guild_id;
id = binding.channel.id;
const object = {};
const withChannelUnreadFlags = NotificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object.flags = Reflect.apply(withChannelUnreadFlags, NotificationSettingsFlagUtilsModule, [value3,
a0 === ALL_MESSAGES ? ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES : ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, object, NotificationLabel.unreads(a0)]);
}
function NotificationSettingsMessageUnreadChannelActionSheet(a0) { // fn#83964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11146:368, offset: 0x01f3129c, size: 184 bytes, params: 2, frame: 20
var r5;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */).useChannelPresetSettings(a0.channel);
const NotificationSettingsMessageUnreadActionSheet = importDefault(10959) /* metro dependency 10959: NotificationSettingsMessageUnreadActionSheet */;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification !== ALL_MESSAGES) {
r5 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageUnreadActionSheet
value={unread}
disabledMentionOnlyWithReason={r5}
onChange={onChange_83965}
/>
);
}
function NotificationSettingsMessageUnreadChannelActionSheetOnChange(a0) { // fn#83965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11146:639, owner: NotificationSettingsMessageUnreadChannelActionSheet.onChange, offset: 0x01f31354, size: 222 bytes, params: 2, frame: 24
const getChannelIdFlags = UserGuildSettingsStore.getChannelIdFlags;
const binding = env0_0;
let guild_id = binding.channel.guild_id;
let id = binding.channel.id;
const value3 = Reflect.apply(getChannelIdFlags, UserGuildSettingsStore, [guild_id, id]);
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
guild_id = binding.channel.guild_id;
id = binding.channel.id;
const object2 = {};
const notificationSettingsFlagUtilsModule = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
const withChannelUnreadFlags = notificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object2.flags = Reflect.apply(withChannelUnreadFlags, notificationSettingsFlagUtilsModule, [value3,
a0 === ALL_MESSAGES ? ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES : ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [guild_id, id, object2, NotificationLabel.unreads(a0)]);
}
global.__d(_fun83963, 10960, [31, 4864, 661, 4865, 670, 33, 10941, 10959, 1244, 6613, 10942, 6610,
2]) /* metro module 10960, dependencies: [31, 4864, 661, 4865, 670, 33, 10941, 10959, 1244, 6613, 10942, 6610, 2] */;
@@ -1,57 +1,66 @@
/* Metro module 10958; source: modules/notifications/settings/native/NotificationSettingsMessageUnreadGuildActionSheet.tsx; dependencies: [31, 4864, 661, 4865, 670, 33, 10947, 10959, 1244, 6613, 10942, 6610, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import NotificationSettingsMessageUnreadActionSheet from './NotificationSettingsMessageUnreadActionSheet.tsx'; /* Metro dependency 10959 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotificationSettingsFlagUtilsModule from '../utils/notificationSettingsFlagUtils.tsx'; /* Metro dependency 10942 */
import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */
function _fun83958(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11144:6, offset: 0x01f30bae, size: 220 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).GuildNotificationSettingsFlags;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadGuildActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadGuildActionSheet.tsx');
exports.default = NotificationSettingsMessageUnreadGuildActionSheet;
}
function NotificationSettingsMessageUnreadGuildActionSheet(a0) { // fn#83959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11144:364, offset: 0x01f30c8a, size: 184 bytes, params: 2, frame: 21
var r6;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (NotificationSettingsGuildFlagUtilsModule).useGuildPresetSettings(a0.guildId);
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification !== ALL_MESSAGES) {
r6 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageUnreadActionSheet
disabledMentionOnlyWithReason={r6}
value={unread}
onChange={onChange_83960}
/>
);
function NotificationSettingsMessageUnreadGuildActionSheetOnChange(a0) { // fn#83960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11144:631, owner: NotificationSettingsMessageUnreadGuildActionSheet.onChange, offset: 0x01f30d42, size: 182 bytes, params: 2, frame: 22
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getGuildFlags = userGuildSettingsStoreBinding.getGuildFlags;
const binding = env0_0;
let guildId = binding.guildId;
const value3 = Reflect.apply(getGuildFlags, userGuildSettingsStoreBinding, [guildId]);
const defaultImport = NotificationSettingsModalActionCreators;
const updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
guildId = binding.guildId;
const object = {};
const withGuildUnreadFlags = NotificationSettingsFlagUtilsModule.withGuildUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object.flags = Reflect.apply(withGuildUnreadFlags, NotificationSettingsFlagUtilsModule, [value3,
a0 === ALL_MESSAGES ? GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES : GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildId, object, NotificationLabel.unreads(a0)]);
}
function NotificationSettingsMessageUnreadGuildActionSheet(a0) { // fn#83959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11144:364, offset: 0x01f30c8a, size: 184 bytes, params: 2, frame: 21
var r6;
var intl;
const env0_0 = a0;
const value2 = undefined;
const {unread,
notification} = (require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */).useGuildPresetSettings(a0.guildId);
const NotificationSettingsMessageUnreadActionSheet = importDefault(10959) /* metro dependency 10959: NotificationSettingsMessageUnreadActionSheet */;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notification !== ALL_MESSAGES) {
r6 = value2;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eP8yWU);
}
return (
<NotificationSettingsMessageUnreadActionSheet
disabledMentionOnlyWithReason={r6}
value={unread}
onChange={onChange_83960}
/>
);
}
function NotificationSettingsMessageUnreadGuildActionSheetOnChange(a0) { // fn#83960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11144:631, owner: NotificationSettingsMessageUnreadGuildActionSheet.onChange, offset: 0x01f30d42, size: 182 bytes, params: 2, frame: 22
const getGuildFlags = UserGuildSettingsStore.getGuildFlags;
const binding = env0_0;
let guildId = binding.guildId;
const value3 = Reflect.apply(getGuildFlags, UserGuildSettingsStore, [guildId]);
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
guildId = binding.guildId;
const object2 = {};
const notificationSettingsFlagUtilsModule = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
const withGuildUnreadFlags = notificationSettingsFlagUtilsModule.withGuildUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object2.flags = Reflect.apply(withGuildUnreadFlags, notificationSettingsFlagUtilsModule, [value3,
a0 === ALL_MESSAGES ? GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES : GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildId, object2, NotificationLabel.unreads(a0)]);
}
global.__d(_fun83958, 10958, [31, 4864, 661, 4865, 670, 33, 10947, 10959, 1244, 6613, 10942, 6610,
2]) /* metro module 10958, dependencies: [31, 4864, 661, 4865, 670, 33, 10947, 10959, 1244, 6613, 10942, 6610, 2] */;
@@ -1,82 +1,112 @@
/* Metro module 10956; source: modules/notifications/settings/native/NotificationSettingsMockChannels.tsx; dependencies: [31, 27, 4865, 33, 4501, 697, 1244, 10957, 6691, 4573, 1305, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import StaticChannelIndicator from '../../../channel_list_v2/native/components/StaticChannelIndicator.tsx'; /* Metro dependency 10957 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as TextIconModule from '../../../../design/components/Icon/native/redesign/generated/TextIcon.tsx'; /* Metro dependency 6691 */
function _fun83953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:6, offset: 0x01f3057e, size: 303 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
const env0_7 = Reflect.apply(createStyles, value, [{card: {'backgroundColor': null, 'overflow': 'hidden',
'borderRadius': 10, 'paddingVertical': 8, backgroundColor: BACKGROUND_SURFACE_HIGH},
channel: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'paddingVertical': 4,
'justifyContent': 'space-between', 'paddingRight': 12}, channelName: {'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMockChannels.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMockChannels.tsx');
exports.default = NotificationSettingsMockChannels;
}
function NotificationSettingsMockChannels({unreadSetting}) { // fn#83954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:628, offset: 0x01f306ad, size: 366 bytes, params: 2, frame: 22
const styles = useStyles();
let object = {'badged': true, 'unread': true};
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object.resolvedUnreadSetting = ALL_MESSAGES;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const EjLobP = (require(1244) /* metro dependency 1244: indexNative */).t.EjLobP;
object.name = Reflect.apply(string, intl, [EjLobP]);
const items2 = [object];
object = {'badged': false, 'unread': true};
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object.resolvedUnreadSetting = ONLY_MENTIONS;
string = intl.string;
const Wgpwpp = (require(1244) /* metro dependency 1244: indexNative */).t.Wgpwpp;
object.name = Reflect.apply(string, intl, [Wgpwpp]);
items2[1] = object;
object = {'badged': false, 'unread': false};
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object.resolvedUnreadSetting = ONLY_MENTIONS;
object.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g9VImh);
items2[2] = object;
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
if (unreadSetting === ALL_MESSAGES) {
items2[1].resolvedUnreadSetting = UnreadSetting.ALL_MESSAGES;
}
return (
<View style={styles.card}>
{items2.map(_fun83955)}
</View>
);
function _fun83955(a0) { // fn#83955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:1114, offset: 0x01f3081b, size: 398 bytes, params: 2, frame: 24
const value = environment.__proto__;
const {channel, channelName} = styles;
const value3 = undefined;
const unread = a0.unread;
let resolvedUnreadSetting = a0.resolvedUnreadSetting;
const items2 = [
<StaticChannelIndicator unread={unread} resolvedUnreadSetting={resolvedUnreadSetting} />,
];
const TextIcon = (TextIconModule).TextIcon;
resolvedUnreadSetting = a0.resolvedUnreadSetting;
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[1] = (
<TextIcon
style={{marginLeft: 12}}
size="xs"
color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'}
/>
);
const Text = (TextModule).Text;
resolvedUnreadSetting = a0.resolvedUnreadSetting;
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[2] = (
<Text
style={{marginLeft: 4}}
variant="text-sm/semibold"
color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'}
>
{a0.name}
</Text>
);
const view = (
<View style={channelName}>
{items2}
</View>
);
const Badge = (NativeModule).Badge;
return (
<View style={channel} key={a0.name}>
{view}
<Badge value={a0.badged ? 1 : 0} />
</View>
);
}
function NotificationSettingsMockChannels({unreadSetting}) { // fn#83954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:628, offset: 0x01f306ad, size: 366 bytes, params: 2, frame: 22
const styles = useStyles();
let object2 = {'badged': true, 'unread': true};
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object2.resolvedUnreadSetting = ALL_MESSAGES;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const EjLobP = (require(1244) /* metro dependency 1244: indexNative */).t.EjLobP;
object2.name = Reflect.apply(string, intl, [EjLobP]);
const items2 = [object2];
object2 = {'badged': false, 'unread': true};
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object2.resolvedUnreadSetting = ONLY_MENTIONS;
string = intl.string;
const Wgpwpp = (require(1244) /* metro dependency 1244: indexNative */).t.Wgpwpp;
object2.name = Reflect.apply(string, intl, [Wgpwpp]);
items2[1] = object2;
object2 = {'badged': false, 'unread': false};
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object2.resolvedUnreadSetting = ONLY_MENTIONS;
object2.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g9VImh);
items2[2] = object2;
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
if (unreadSetting === ALL_MESSAGES) {
items2[1].resolvedUnreadSetting = UnreadSetting.ALL_MESSAGES;
}
return (
<View style={styles.card}>
{items2.map(_fun83955)}
</View>
);
}
function _fun83955(a0) { // fn#83955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:1114, offset: 0x01f3081b, size: 398 bytes, params: 2, frame: 24
const value = environment.__proto__;
const {channel, channelName} = styles;
const value3 = undefined;
const StaticChannelIndicator = importDefault(10957) /* metro dependency 10957: StaticChannelIndicator */;
const unread = a0.unread;
let resolvedUnreadSetting = a0.resolvedUnreadSetting;
const items2 = [<StaticChannelIndicator unread={unread} resolvedUnreadSetting={resolvedUnreadSetting} />];
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
resolvedUnreadSetting = a0.resolvedUnreadSetting;
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[1] = <TextIcon style={{marginLeft: 12}} size="xs" color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
resolvedUnreadSetting = a0.resolvedUnreadSetting;
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[2] = <Text style={{marginLeft: 4}} variant="text-sm/semibold" color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'}>{a0.name}</Text>;
const view = <View style={channelName}>{items2}</View>;
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
return (
<View style={channel} key={a0.name}>
{view}
<Badge value={a0.badged ? 1 : 0} />
</View>
);
}
global.__d(_fun83953, 10956, [31, 27, 4865, 33, 4501, 697, 1244, 10957, 6691, 4573, 1305,
2]) /* metro module 10956, dependencies: [31, 27, 4865, 33, 4501, 697, 1244, 10957, 6691, 4573, 1305, 2] */;
@@ -1,93 +1,134 @@
/* Metro module 10950; source: modules/notifications/settings/native/NotificationSettingsMockMessage.tsx; dependencies: [31, 27, 1878, 661, 33, 4501, 697, 566, 3995, 4017, 4504, 4507, 4573, 1244, 1305, 10951, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import Module10951 from '../../../../by-id/module-10951.js'; /* Metro dependency 10951 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun83932(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:6, offset: 0x01f2f092, size: 379 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.card = {'backgroundColor': null, 'overflow': 'hidden', 'borderRadius': 10, 'padding': 16,
object = {};
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
object.card = {'backgroundColor': null, 'overflow': 'hidden', 'borderRadius': 10, 'padding': 16,
backgroundColor: BACKGROUND_SURFACE_HIGH};
object2.cardContent = {'display': 'flex', 'flexDirection': 'row'};
object2.cardMessage = {'marginLeft': 12, 'maxWidth': 240};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.overlay = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0,
object.cardContent = {'display': 'flex', 'flexDirection': 'row'};
object.cardMessage = {'marginLeft': 12, 'maxWidth': 240};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.overlay = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0,
backgroundColor: BACKGROUND_BASE_LOWEST};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
object2 = {code: 'function NotificationSettingsMockMessageTsx1(){const{withTiming,opacity,timingStandard}=this.__closure;return{opacity:withTiming(opacity.get(),timingStandard)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMockMessage.tsx');
const env0_9 = Reflect.apply(createStyles, value, [object]);
object = {code: 'function NotificationSettingsMockMessageTsx1(){const{withTiming,opacity,timingStandard}=this.__closure;return{opacity:withTiming(opacity.get(),timingStandard)};}'};
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMockMessage.tsx');
exports.default = NotificationSettingsMockMessage;
}
function NotificationSettingsMockMessage(a0) { // fn#83933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:821, offset: 0x01f2f20d, size: 996 bytes, params: 2, frame: 29
var r14;
const Text = (TextModule).Text;
var items2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const r17 = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(currentUser) ?? 'Roka';
let notificationSetting = a0.notificationSetting;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
const value4 = notificationSetting === NO_MESSAGES;
const value7 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(value4 ? 0.8 : 0);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const NotificationSettingsMockMessage_2 = NotificationSettingsMockMessage_;
NotificationSettingsMockMessage_2.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming,
opacity: value7, timingStandard: (require(4507) /* metro dependency 4507: timingPresets */).timingStandard};
NotificationSettingsMockMessage_2.__workletHash = 6531430956793;
NotificationSettingsMockMessage_2.__initData = env0_10;
const value8 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [NotificationSettingsMockMessage_2]);
notificationSetting = a0.notificationSetting;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notificationSetting === ALL_MESSAGES) {
r14 = (
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WYyzI5)}
</Text>
);
} else {
items2 = [
<Text variant="text-sm/normal" color="text-link">
{'@'}
{r17}
{' '}
</Text>,
];
items2[1] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WYyzI5);
r14 = (
<View>
<Text variant="text-sm/medium" color="text-default">
{items2}
</Text>
</View>
);
}
ReactModule.useEffect(_fun83936, [value7, value4]);
const Avatar = (NativeModule).Avatar;
const avatarProps = {source: Module10951};
const AvatarSizes = (NativeModule).AvatarSizes;
const LARGE_48 = AvatarSizes.LARGE_48;
avatarProps.size = LARGE_48;
const items3 = [
<View>
<Avatar {...avatarProps} />
</View>,
];
items3[1] = (
<View style={styles.cardMessage}>
<Text variant="text-sm/semibold">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qSq0tD)}
</Text>
{r14}
</View>
);
const view = (
<View style={styles.cardContent}>
{items3}
</View>
);
const View2 = (ReanimatedRexport).View;
return (
<View style={styles.card}>
{view}
<View2 style={[value8, styles.overlay]} />
</View>
);
function NotificationSettingsMockMessage_() { // fn#83935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:1082, owner: NotificationSettingsMockMessage._, offset: 0x01f2f5f1, size: 78 bytes, params: 1, frame: 17
const object = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object.opacity = value.withTiming(env0_1.get(),
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return object;
}
function _fun83936() { // fn#83936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:1683, offset: 0x01f2f63f, size: 40 bytes, params: 1, frame: 12
const binding = env0_1;
binding.set(result ? 0.8 : 0);
}
function NotificationSettingsMockMessage(a0) { // fn#83933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:821, offset: 0x01f2f20d, size: 996 bytes, params: 2, frame: 29
var r14;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const r17 = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(currentUser) ?? 'Roka';
let notificationSetting = a0.notificationSetting;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
const value4 = notificationSetting === NO_MESSAGES;
const value7 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(value4 ? 0.8 : 0);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = NotificationSettingsMockMessage_;
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, opacity: value7,
timingStandard: (require(4507) /* metro dependency 4507: timingPresets */).timingStandard};
closure.__workletHash = 6531430956793;
closure.__initData = env0_10;
const value8 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
notificationSetting = a0.notificationSetting;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
if (notificationSetting === ALL_MESSAGES) {
r14 = <Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WYyzI5)}</Text>;
} else {
items2 = [<Text variant="text-sm/normal" color="text-link">{'@'}{r17}{' '}</Text>];
items2[1] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WYyzI5);
r14 = <View><Text variant="text-sm/medium" color="text-default">{items2}</Text></View>;
}
env0_3.useEffect(_fun83936, [value7, value4]);
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const avatarProps = {source: importDefault(10951) /* metro dependency 10951 */};
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const LARGE_48 = AvatarSizes.LARGE_48;
avatarProps.size = LARGE_48;
const items3 = [<View><Avatar {...avatarProps} /></View>];
items3[1] = <View style={styles.cardMessage}><Text variant="text-sm/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qSq0tD)}</Text>{r14}</View>;
const view = <View style={styles.cardContent}>{items3}</View>;
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
return (
<View style={styles.card}>
{view}
<View2 style={[value8, styles.overlay]} />
</View>
);
}
function NotificationSettingsMockMessage_() { // fn#83935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:1082, owner: NotificationSettingsMockMessage._, offset: 0x01f2f5f1, size: 78 bytes, params: 1, frame: 17
const object2 = {};
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
object2.opacity = value.withTiming(env0_1.get(),
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard);
return object2;
}
function _fun83936() { // fn#83936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11136:1683, offset: 0x01f2f63f, size: 40 bytes, params: 1, frame: 12
const binding = env0_1;
binding.set(result ? 0.8 : 0);
}
global.__d(_fun83932, 10950, [31, 27, 1878, 661, 33, 4501, 697, 566, 3995, 4017, 4504, 4507, 4573, 1244, 1305,
10951,
2]) /* metro module 10950, dependencies: [31, 27, 1878, 661, 33, 4501, 697, 566, 3995, 4017, 4504, 4507, 4573, 1244, 1305, 10951, 2] */;
@@ -1,70 +1,89 @@
/* Metro module 10943; source: modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 4578, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun83902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11129:6, offset: 0x01f2d835, size: 279 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'padding': 16, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
const object2 = {'padding': 16, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
'justifyContent': 'space-between'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg + 8;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg + 8;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object.backgroundColor = BACKGROUND_BRAND;
const env0_5 = Reflect.apply(createStyles, value, [{card: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx');
object2.backgroundColor = BACKGROUND_BRAND;
const env0_5 = Reflect.apply(createStyles, value, [{card: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx');
exports.NotificationSettingsMuteBanner = NotificationSettingsMuteBanner;
exports.getMuteBannerSubtitleFromConfig = getMuteBannerSubtitleFromConfig;
}
function NotificationSettingsMuteBanner(a0) { // fn#83903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11129:495, offset: 0x01f2d94c, size: 317 bytes, params: 2, frame: 23
const styles = useStyles();
const items2 = [a0.style];
items2[1] = styles.card;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let value = <Text variant="text-md/semibold" color="white">{a0.title}</Text>;
value = <View style={{'flex': 1,
'marginRight': 8}}>{value}<Text variant="text-xs/medium" color="white">{a0.subtitle}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const YqAjXy = (require(1244) /* metro dependency 1244: indexNative */).t.YqAjXy;
return (
<View style={items2}>
{value}
<Button
text={Reflect.apply(string, intl, [YqAjXy])}
onPress={a0.onPressUnmute}
variant="primary-overlay"
/>
</View>
);
}
function getMuteBannerSubtitleFromConfig(a0) { // fn#83904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11129:944, offset: 0x01f2da89, size: 241 bytes, params: 2, frame: 20
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var C7m4oh;
var object2;
var date;
if (a0?.end_time == null) {
r0 = intl.string(t['tFqP/P']);
} else {
formatToPlainString = intl.formatToPlainString;
C7m4oh = t.C7m4oh;
object2 = {};
date = new global.Date(a0.end_time);
object2.endTime = date.toLocaleString((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'month': 'numeric', 'day': 'numeric', 'hour': 'numeric', 'minute': '2-digit'});
r0 = Reflect.apply(formatToPlainString, intl, [C7m4oh, object2]);
function NotificationSettingsMuteBanner(a0) { // fn#83903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11129:495, offset: 0x01f2d94c, size: 317 bytes, params: 2, frame: 23
const styles = useStyles();
const items2 = [a0.style];
items2[1] = styles.card;
const Text = (TextModule).Text;
let value = (
<Text variant="text-md/semibold" color="white">
{a0.title}
</Text>
);
value = (
<View style={{'flex': 1, 'marginRight': 8}}>
{value}
<Text variant="text-xs/medium" color="white">
{a0.subtitle}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const YqAjXy = (IndexNativeModule).t.YqAjXy;
return (
<View style={items2}>
{value}
<Button
text={Reflect.apply(string, intl, [YqAjXy])}
onPress={a0.onPressUnmute}
variant="primary-overlay"
/>
</View>
);
}
return r0;
function getMuteBannerSubtitleFromConfig(a0) { // fn#83904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11129:944, offset: 0x01f2da89, size: 241 bytes, params: 2, frame: 20
var r0;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var C7m4oh;
var object;
var date;
if (a0?.end_time == null) {
r0 = intl.string(t['tFqP/P']);
} else {
formatToPlainString = intl.formatToPlainString;
C7m4oh = t.C7m4oh;
object = {};
date = new global.Date(a0.end_time);
object.endTime = date.toLocaleString((require(1244) /* metro dependency 1244: indexNative */).intl.currentLocale,
{'month': 'numeric', 'day': 'numeric', 'hour': 'numeric', 'minute': '2-digit'});
r0 = Reflect.apply(formatToPlainString, intl, [C7m4oh, object]);
}
return r0;
}
}
global.__d(_fun83902, 10943, [31, 27, 33, 4501, 697, 4573, 4578, 1244,
2]) /* metro module 10943, dependencies: [31, 27, 33, 4501, 697, 4573, 4578, 1244, 2] */;
@@ -1,197 +1,229 @@
/* Metro module 10944; source: modules/notifications/settings/native/NotificationSettingsPresets.tsx; dependencies: [31, 27, 33, 1244, 4867, 4073, 10945, 10629, 4501, 697, 8853, 4573, 4578, 9221, 10947, 10941, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CircleCheckIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleCheckIcon.tsx'; /* Metro dependency 4073 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NotificationSettingsPresetUtilsModule from '../utils/notificationSettingsPresetUtils.tsx'; /* Metro dependency 4867 */
import * as SegmentedControlStateNativeModule from '../../../../design/components/SegmentedControl/native/SegmentedControlState.native.tsx'; /* Metro dependency 8853 */
import * as BellSlashIconModule from '../../../../design/components/Icon/native/redesign/generated/BellSlashIcon.tsx'; /* Metro dependency 10629 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as MagicWandIconModule from '../../../../design/components/Icon/native/redesign/generated/MagicWandIcon.tsx'; /* Metro dependency 10945 */
import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */
function _fun83905(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:6, offset: 0x01f2db7a, size: 294 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'padding': 16, 'minHeight': 82, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
const object2 = {'padding': 16, 'minHeight': 82, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
'justifyContent': 'center'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg + 8;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg + 8;
const REDESIGN_INPUT_CONTROL_ACTIVE_BG = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_INPUT_CONTROL_ACTIVE_BG;
object.backgroundColor = REDESIGN_INPUT_CONTROL_ACTIVE_BG;
const env0_6 = Reflect.apply(createStyles, value, [{customContainer: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsPresets.tsx');
object2.backgroundColor = REDESIGN_INPUT_CONTROL_ACTIVE_BG;
const env0_6 = Reflect.apply(createStyles, value, [{customContainer: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsPresets.tsx');
exports.NotificationSettingsGuildPresets = NotificationSettingsGuildPresets;
exports.NotificationSettingsChannelPresets = NotificationSettingsChannelPresets;
}
function NotificationSettingsPresets(a0) { // fn#83906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:391, offset: 0x01f2dca0, size: 1086 bytes, params: 2, frame: 29
var r0;
const Text = (TextModule).Text;
var items2;
var items3;
var Button;
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
let preset = a0.preset;
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
let ALL_MESSAGES = Presets.ALL_MESSAGES;
const value3 = 0;
const r8 = preset === ALL_MESSAGES ? value3 : a0.preset === (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets.MENTIONS ? 1 : a0.preset !== (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets.NOTHING ? value2 : 2;
const useSegmentedControlState = SegmentedControlStateNativeModule.useSegmentedControlState;
const object = {pageWidth: value3, onSetActiveIndex: onSetActiveIndex_83907};
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = Reflect.apply(string, intl, [t.hZrr6k]);
ALL_MESSAGES = Presets.ALL_MESSAGES;
object2.id = ALL_MESSAGES;
const CircleCheckIcon = (CircleCheckIconModule).CircleCheckIcon;
object2.icon = <CircleCheckIcon />;
object2.page = null;
const items4 = [object2];
const object3 = {};
object3.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y59NJm);
const MENTIONS = Presets.MENTIONS;
object3.id = MENTIONS;
const MagicWandIcon = (MagicWandIconModule).MagicWandIcon;
object3.icon = <MagicWandIcon />;
object3.page = null;
items4[1] = object3;
const object4 = {};
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['pGn/bJ']);
const NOTHING = Presets.NOTHING;
object4.id = NOTHING;
const BellSlashIcon = (BellSlashIconModule).BellSlashIcon;
object4.icon = <BellSlashIcon />;
object4.page = null;
items4[2] = object4;
object.items = items4;
object.defaultIndex = r8;
const value6 = Reflect.apply(useSegmentedControlState, SegmentedControlStateNativeModule, [object]);
value6.useEffect(_fun83908, [r8, value6]);
preset = a0.preset;
const CUSTOM = Presets.CUSTOM;
if (preset === CUSTOM) {
var viewBindingProps = {style: styles.customContainer};
string = intl.string;
items2 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [t['32yow9']])}
</Text>,
];
string = intl.string;
items2[1] = (
<Text variant="text-xs/medium">
{Reflect.apply(string, intl, [t.l3doVX])}
</Text>
);
items3 = [
<View style={{'flex': 1, 'marginRight': 8}}>
{items2}
</View>,
];
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items3[1] = (
<Button
variant="secondary"
text={Reflect.apply(string, intl, [t['ztO+l+']])}
onPress={onPress_83909}
/>
);
r0 = (
<View {...viewBindingProps}>
{items3}
</View>
);
} else {
const SegmentedControl = (require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl;
r0 = <SegmentedControl variant="experimental_Large" state={value6} />;
}
return r0;
function NotificationSettingsPresetsOnSetActiveIndex(a0) { // fn#83907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:633, owner: NotificationSettingsPresets.onSetActiveIndex, offset: 0x01f2e0de, size: 372 bytes, params: 2, frame: 14
var r0;
var preset;
const Presets = (NotificationSettingsPresetUtilsModule).Presets;
var binding;
var updatePreset;
let value = a0 === 0;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.ALL_MESSAGES;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.ALL_MESSAGES]);
}
value = a0 === 1;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.MENTIONS;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.MENTIONS]);
}
value = a0 === 2;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.NOTHING;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.NOTHING]);
}
}
function _fun83908() { // fn#83908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:1303, offset: 0x01f2e252, size: 53 bytes, params: 1, frame: 12
if (!(env0_1 == null || env0_1 >= 3)) {
ReactModule.setActiveIndex(env0_1);
}
}
function NotificationSettingsPresetsOnPress() { // fn#83909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:1752, owner: NotificationSettingsPresets.onPress, offset: 0x01f2e287, size: 57 bytes, params: 1, frame: 13
const binding = env0_0;
const updatePreset = binding.updatePreset;
const Presets = (NotificationSettingsPresetUtilsModule).Presets;
const MENTIONS = Presets.MENTIONS;
Reflect.apply(updatePreset, binding, [MENTIONS]);
}
function NotificationSettingsPresets(a0) { // fn#83906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:391, offset: 0x01f2dca0, size: 1086 bytes, params: 2, frame: 29
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
var items3;
var Button;
const env0_0 = a0;
const value2 = undefined;
const styles = useStyles();
let preset = a0.preset;
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
let ALL_MESSAGES = Presets.ALL_MESSAGES;
const value3 = 0;
const r8 = preset === ALL_MESSAGES ? value3 : a0.preset === (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets.MENTIONS ? 1 : a0.preset !== (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets.NOTHING ? value2 : 2;
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
const object5 = {pageWidth: value3, onSetActiveIndex: onSetActiveIndex_83907};
const object6 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object6.label = Reflect.apply(string, intl, [t.hZrr6k]);
ALL_MESSAGES = Presets.ALL_MESSAGES;
object6.id = ALL_MESSAGES;
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
object6.icon = <CircleCheckIcon />;
object6.page = null;
const items4 = [object6];
const object7 = {};
object7.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y59NJm);
const MENTIONS = Presets.MENTIONS;
object7.id = MENTIONS;
const MagicWandIcon = (require(10945) /* metro dependency 10945: MagicWandIcon */).MagicWandIcon;
object7.icon = <MagicWandIcon />;
object7.page = null;
items4[1] = object7;
const object8 = {};
object8.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['pGn/bJ']);
const NOTHING = Presets.NOTHING;
object8.id = NOTHING;
const BellSlashIcon = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon;
object8.icon = <BellSlashIcon />;
object8.page = null;
items4[2] = object8;
object5.items = items4;
object5.defaultIndex = r8;
const value6 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [object5]);
value6.useEffect(_fun83908, [r8, value6]);
preset = a0.preset;
const CUSTOM = Presets.CUSTOM;
if (preset === CUSTOM) {
var viewBindingProps = {style: styles.customContainer};
string = intl.string;
items2 = [<Text variant="text-sm/semibold">{Reflect.apply(string, intl, [t['32yow9']])}</Text>];
string = intl.string;
items2[1] = <Text variant="text-xs/medium">{Reflect.apply(string, intl, [t.l3doVX])}</Text>;
items3 = [<View style={{'flex': 1, 'marginRight': 8}}>{items2}</View>];
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items3[1] = <Button variant="secondary" text={Reflect.apply(string, intl,
[t['ztO+l+']])} onPress={onPress_83909} />;
r0 = <View {...viewBindingProps}>{items3}</View>;
} else {
const SegmentedControl = (require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl;
r0 = <SegmentedControl variant="experimental_Large" state={value6} />;
}
return r0;
}
function NotificationSettingsGuildPresets(a0) { // fn#83910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2011, offset: 0x01f2e2c0, size: 91 bytes, params: 2, frame: 17
const env0_0 = a0;
const value = require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */;
const useGuildPresetSettings = value.useGuildPresetSettings;
return (
<NotificationSettingsPresets
preset={Reflect.apply(useGuildPresetSettings, value, [a0.guildId]).preset}
updatePreset={updatePreset}
/>
);
}
function NotificationSettingsGuildPresets(a0) { // fn#83910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2011, offset: 0x01f2e2c0, size: 91 bytes, params: 2, frame: 17
const env0_0 = a0;
const useGuildPresetSettings = NotificationSettingsGuildFlagUtilsModule.useGuildPresetSettings;
return (
<NotificationSettingsPresets
preset={Reflect.apply(useGuildPresetSettings, NotificationSettingsGuildFlagUtilsModule, [a0.guildId]).preset}
updatePreset={updatePreset}
/>
);
function NotificationSettingsGuildPresetsUpdatePreset(a0) { // fn#83911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2164, owner: NotificationSettingsGuildPresets.updatePreset, offset: 0x01f2e31b, size: 54 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */;
return value.updateGuildPreset(env0_0.guildId, a0);
}
function NotificationSettingsChannelPresets(a0) { // fn#83912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2247, offset: 0x01f2e351, size: 91 bytes, params: 2, frame: 17
const env0_0 = a0;
const value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const useChannelPresetSettings = value.useChannelPresetSettings;
return (
<NotificationSettingsPresets
preset={Reflect.apply(useChannelPresetSettings, value, [a0.channel]).preset}
updatePreset={updatePreset}
/>
);
}
function NotificationSettingsPresetsOnSetActiveIndex(a0) { // fn#83907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:633, owner: NotificationSettingsPresets.onSetActiveIndex, offset: 0x01f2e0de, size: 372 bytes, params: 2, frame: 14
var r0;
var preset;
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
var binding;
var updatePreset;
let value = a0 === 0;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.ALL_MESSAGES;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.ALL_MESSAGES]);
}
value = a0 === 1;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.MENTIONS;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.MENTIONS]);
}
value = a0 === 2;
if (value) {
preset = env0_0.preset;
value = environment.__proto__;
value = preset !== Presets.NOTHING;
r0 = value;
} else {
r0 = value;
}
if (r0) {
binding = env0_0;
updatePreset = binding.updatePreset;
value = environment.__proto__;
Reflect.apply(updatePreset, binding, [Presets.NOTHING]);
function NotificationSettingsChannelPresets(a0) { // fn#83912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2247, offset: 0x01f2e351, size: 91 bytes, params: 2, frame: 17
const env0_0 = a0;
const useChannelPresetSettings = NotficationSettingsChannelFlagUtilsModule.useChannelPresetSettings;
return (
<NotificationSettingsPresets
preset={Reflect.apply(useChannelPresetSettings, NotficationSettingsChannelFlagUtilsModule, [a0.channel]).preset}
updatePreset={updatePreset}
/>
);
function NotificationSettingsChannelPresetsUpdatePreset(a0) { // fn#83913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2404, owner: NotificationSettingsChannelPresets.updatePreset, offset: 0x01f2e3ac, size: 70 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const updateChannelPreset = value.updateChannelPreset;
const binding = env0_0;
return Reflect.apply(updateChannelPreset, value, [binding.channel.guild_id, binding.channel.id, a0]);
}
}
}
function _fun83908() { // fn#83908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:1303, offset: 0x01f2e252, size: 53 bytes, params: 1, frame: 12
if (!(env0_1 == null || env0_1 >= 3)) {
env0_2.setActiveIndex(env0_1);
}
}
function NotificationSettingsPresetsOnPress() { // fn#83909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:1752, owner: NotificationSettingsPresets.onPress, offset: 0x01f2e287, size: 57 bytes, params: 1, frame: 13
const binding = env0_0;
const updatePreset = binding.updatePreset;
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
const MENTIONS = Presets.MENTIONS;
Reflect.apply(updatePreset, binding, [MENTIONS]);
}
function NotificationSettingsGuildPresetsUpdatePreset(a0) { // fn#83911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2164, owner: NotificationSettingsGuildPresets.updatePreset, offset: 0x01f2e31b, size: 54 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = require(10947) /* metro dependency 10947: notificationSettingsGuildFlagUtils */;
return value.updateGuildPreset(env0_0.guildId, a0);
}
function NotificationSettingsChannelPresetsUpdatePreset(a0) { // fn#83913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11130:2404, owner: NotificationSettingsChannelPresets.updatePreset, offset: 0x01f2e3ac, size: 70 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
const updateChannelPreset = value.updateChannelPreset;
const binding = env0_0;
return Reflect.apply(updateChannelPreset, value, [binding.channel.guild_id, binding.channel.id, a0]);
}
global.__d(_fun83905, 10944, [31, 27, 33, 1244, 4867, 4073, 10945, 10629, 4501, 697, 8853, 4573, 4578, 9221, 10947,
10941,
2]) /* metro module 10944, dependencies: [31, 27, 33, 1244, 4867, 4073, 10945, 10629, 4501, 697, 8853, 4573, 4578, 9221, 10947, 10941, 2] */;
@@ -1,205 +1,216 @@
/* Metro module 10941; source: modules/notifications/settings/utils/notficationSettingsChannelFlagUtils.tsx; dependencies: [57, 1379, 4864, 661, 4865, 670, 632, 4867, 10939, 6613, 10942, 6610, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsPresetUtilsModule from './notificationSettingsPresetUtils.tsx'; /* Metro dependency 4867 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotificationUtilsModule from '../../NotificationUtils.tsx'; /* Metro dependency 10939 */
import * as NotificationSettingsFlagUtilsModule from './notificationSettingsFlagUtils.tsx'; /* Metro dependency 10942 */
function _fun83886(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:6, offset: 0x01f2cee2, size: 283 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_7 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_8 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notficationSettingsChannelFlagUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/utils/notficationSettingsChannelFlagUtils.tsx');
exports.useChannelPresetSettings = useChannelPresetSettings;
exports.useChannelPresetInheritance = useChannelPresetInheritance;
exports.updateChannelPreset = updateChannelPreset;
exports.updateChannelToGuildDefault = updateChannelToGuildDefault;
exports.updateChannelUnreadSetting = updateChannelUnreadSetting;
exports.updateChannelNotificationSetting = updateChannelNotificationSetting;
}
function useChannelPresetSettings(a0) { // fn#83887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:366, offset: 0x01f2cffd, size: 142 bytes, params: 2, frame: 19
const env0_0 = a0;
const useStateFromStores = UseStateFromStoresModule.useStateFromStores;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const value = Reflect.apply(useStateFromStores, UseStateFromStoresModule, [[userGuildSettingsStoreBinding],
_fun83888]);
const value2 = UseStateFromStoresModule.useStateFromStores([userGuildSettingsStoreBinding], _fun83889);
object = {unread: value, notification: value2};
object.preset = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).presetFromSettings(value,
value2);
return object;
function _fun83888() { // fn#83888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:441, offset: 0x01f2d08b, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.resolveUnreadSetting(env0_0);
}
function useChannelPresetSettings(a0) { // fn#83887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:366, offset: 0x01f2cffd, size: 142 bytes, params: 2, frame: 19
var object2;
const env0_0 = a0;
const value = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserGuildSettingsStore],
_fun83888);
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserGuildSettingsStore],
_fun83889);
object2 = {unread: value, notification: value2};
object2.preset = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).presetFromSettings(value,
value2);
return object2;
}
function _fun83889() { // fn#83889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:507, offset: 0x01f2d0a6, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.resolvedMessageNotifications(env0_0);
}
function useChannelPresetInheritance(a0) { // fn#83890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:649, offset: 0x01f2d0c1, size: 208 bytes, params: 2, frame: 22
const env0_0 = a0;
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
let useStateFromStoresArray = useStateFromStoresModule.useStateFromStoresArray;
const value2 = Reflect.apply(useStateFromStoresArray, useStateFromStoresModule, [[UserGuildSettingsStore],
_fun83891]);
const moduleValue2 = useStateFromStoresModule;
useStateFromStoresArray = moduleValue2.useStateFromStoresArray;
const value = env0_3(Reflect.apply(useStateFromStoresArray, moduleValue2, [[UserGuildSettingsStore, ChannelStore],
_fun83892, [a0.guild_id, a0.parent_id, value2]]), 2);
return {inherited: !value2.includes(a0.id), inheritedFrom: value[0], inheritedPreset: value[1]};
}
function updateChannelPreset(a0, a1, a2) { // fn#83893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:1373, offset: 0x01f2d2ec, size: 528 bytes, params: 4, frame: 24
var defaultImport;
var updateChannelOverrideSettings;
var object2;
var moduleValue;
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
var defaultImport2;
var moduleValue2;
var defaultImport3;
var moduleValue3;
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
const ALL_MESSAGES = Presets.ALL_MESSAGES;
if (a2 === ALL_MESSAGES) {
defaultImport3 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport3.updateChannelOverrideSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.ALL_MESSAGES;
moduleValue3 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue3.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES);
Reflect.apply(updateChannelOverrideSettings, defaultImport3, [a0, a1, object2, NotificationLabels.PresetAll]);
} else if (a2 === Presets.MENTIONS) {
defaultImport2 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport2.updateChannelOverrideSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.ONLY_MENTIONS;
moduleValue2 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue2.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateChannelOverrideSettings, defaultImport2, [a0, a1, object2,
NotificationLabels.PresetMentions]);
} else if (a2 === Presets.NOTHING) {
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.NO_MESSAGES;
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object2,
NotificationLabels.PresetNothing]);
}
}
function updateChannelToGuildDefault(a0, a1) { // fn#83894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2125, offset: 0x01f2d4fc, size: 143 bytes, params: 3, frame: 23
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object2 = {};
const NULL = UserNotificationSettings.NULL;
object2.message_notifications = NULL;
const notificationSettingsFlagUtilsModule = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
const resetChannelUnreadFlags = notificationSettingsFlagUtilsModule.resetChannelUnreadFlags;
const getChannelIdFlags = UserGuildSettingsStore.getChannelIdFlags;
object2.flags = Reflect.apply(resetChannelUnreadFlags, notificationSettingsFlagUtilsModule,
[Reflect.apply(getChannelIdFlags, UserGuildSettingsStore, [a0, a1])]);
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
const PresetDefault = NotificationLabels.PresetDefault;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object2, PresetDefault]);
}
function useChannelPresetInheritance(a0) { // fn#83890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:649, offset: 0x01f2d0c1, size: 208 bytes, params: 2, frame: 22
const env0_0 = a0;
let useStateFromStoresArray = UseStateFromStoresModule.useStateFromStoresArray;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const value2 = Reflect.apply(useStateFromStoresArray, UseStateFromStoresModule, [[userGuildSettingsStoreBinding],
_fun83891]);
useStateFromStoresArray = UseStateFromStoresModule.useStateFromStoresArray;
const value = Module00057(Reflect.apply(useStateFromStoresArray, UseStateFromStoresModule, [[userGuildSettingsStoreBinding,
ChannelStore], _fun83892, [a0.guild_id, a0.parent_id, value2]]), 2);
return {inherited: !value2.includes(a0.id), inheritedFrom: value[0], inheritedPreset: value[1]};
function _fun83891() { // fn#83891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:732, offset: 0x01f2d191, size: 80 bytes, params: 1, frame: 14
const value = environment.__proto__;
const filterOverrides = NotificationUtilsModule.filterOverrides;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelOverrides = userGuildSettingsStoreBinding.getChannelOverrides;
return Reflect.apply(filterOverrides, NotificationUtilsModule, [Reflect.apply(getChannelOverrides,
userGuildSettingsStoreBinding, [env0_0.guild_id]), {'ignoreMute': true, 'ignoreUnreadSetting': false,
'ignoreNotificationSetting': false}]);
}
function updateChannelUnreadSetting(a0, a1, a2) { // fn#83895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2378, offset: 0x01f2d58b, size: 181 bytes, params: 4, frame: 24
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object2 = {};
const notificationSettingsFlagUtilsModule = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
const withChannelUnreadFlags = notificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object2.flags = Reflect.apply(withChannelUnreadFlags, notificationSettingsFlagUtilsModule, [channelIdFlags,
a2 === ALL_MESSAGES ? ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES : ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object2, NotificationLabel.unreads(a2)]);
}
function _fun83892() { // fn#83892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:906, offset: 0x01f2d1e1, size: 267 bytes, params: 1, frame: 19
var items2;
var binding;
var moduleValue;
var presetName;
var moduleValue2;
var presetFromSettings;
var userGuildSettingsStoreBinding;
var getGuildUnreadSetting;
var guild_id;
var getMessageNotifications;
var moduleValue3;
var moduleValue4;
let value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0.parent_id);
if (channel == null) {
moduleValue = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue.presetName;
moduleValue2 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue2.presetFromSettings;
userGuildSettingsStoreBinding = UserGuildSettingsStore;
getGuildUnreadSetting = userGuildSettingsStoreBinding.getGuildUnreadSetting;
binding = env0_0;
guild_id = binding.guild_id;
value = Reflect.apply(getGuildUnreadSetting, userGuildSettingsStoreBinding, [guild_id]);
getMessageNotifications = userGuildSettingsStoreBinding.getMessageNotifications;
guild_id = binding.guild_id;
value = Reflect.apply(presetName, moduleValue, [Reflect.apply(presetFromSettings, moduleValue2, [value,
Reflect.apply(getMessageNotifications, userGuildSettingsStoreBinding, [guild_id])])]);
items2 = ['guild', value];
} else {
binding = env0_1;
if (binding.includes(channel.id)) {
moduleValue3 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue3.presetName;
moduleValue4 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue4.presetFromSettings;
userGuildSettingsStoreBinding = UserGuildSettingsStore;
value = userGuildSettingsStoreBinding.resolveUnreadSetting(channel);
value = Reflect.apply(presetName, moduleValue3, [Reflect.apply(presetFromSettings, moduleValue4, [value,
userGuildSettingsStoreBinding.resolvedMessageNotifications(channel)])]);
items2 = ['parent', value];
} else {
moduleValue = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue.presetName;
moduleValue2 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue2.presetFromSettings;
userGuildSettingsStoreBinding = UserGuildSettingsStore;
getGuildUnreadSetting = userGuildSettingsStoreBinding.getGuildUnreadSetting;
binding = env0_0;
guild_id = binding.guild_id;
value = Reflect.apply(getGuildUnreadSetting, userGuildSettingsStoreBinding, [guild_id]);
getMessageNotifications = userGuildSettingsStoreBinding.getMessageNotifications;
guild_id = binding.guild_id;
value = Reflect.apply(presetName, moduleValue, [Reflect.apply(presetFromSettings, moduleValue2, [value,
Reflect.apply(getMessageNotifications, userGuildSettingsStoreBinding, [guild_id])])]);
items2 = ['guild', value];
}
}
return items2;
}
function updateChannelNotificationSetting(a0, a1, a2) { // fn#83896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2678, offset: 0x01f2d640, size: 92 bytes, params: 4, frame: 19
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, {message_notifications: a2},
NotificationLabel.notifications(a2)]);
}
}
function _fun83888() { // fn#83888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:441, offset: 0x01f2d08b, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.resolveUnreadSetting(env0_0);
}
function _fun83889() { // fn#83889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:507, offset: 0x01f2d0a6, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.resolvedMessageNotifications(env0_0);
}
function _fun83891() { // fn#83891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:732, offset: 0x01f2d191, size: 80 bytes, params: 1, frame: 14
const value = environment.__proto__;
const notificationUtilsModule = require(10939) /* metro dependency 10939: NotificationUtils */;
const filterOverrides = notificationUtilsModule.filterOverrides;
const getChannelOverrides = UserGuildSettingsStore.getChannelOverrides;
return Reflect.apply(filterOverrides, notificationUtilsModule, [Reflect.apply(getChannelOverrides,
UserGuildSettingsStore, [env0_0.guild_id]), {'ignoreMute': true, 'ignoreUnreadSetting': false,
'ignoreNotificationSetting': false}]);
}
function _fun83892() { // fn#83892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:906, offset: 0x01f2d1e1, size: 267 bytes, params: 1, frame: 19
var items;
var binding;
var moduleValue;
var presetName;
var moduleValue2;
var presetFromSettings;
var getGuildUnreadSetting;
var guild_id;
var getMessageNotifications;
var moduleValue3;
var moduleValue4;
let value = environment.__proto__;
const channel = ChannelStore.getChannel(env0_0.parent_id);
if (channel == null) {
moduleValue = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue.presetName;
moduleValue2 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue2.presetFromSettings;
getGuildUnreadSetting = UserGuildSettingsStore.getGuildUnreadSetting;
binding = env0_0;
guild_id = binding.guild_id;
value = Reflect.apply(getGuildUnreadSetting, UserGuildSettingsStore, [guild_id]);
getMessageNotifications = UserGuildSettingsStore.getMessageNotifications;
guild_id = binding.guild_id;
value = Reflect.apply(presetName, moduleValue, [Reflect.apply(presetFromSettings, moduleValue2, [value,
Reflect.apply(getMessageNotifications, UserGuildSettingsStore, [guild_id])])]);
items = ['guild', value];
} else {
binding = env0_1;
if (binding.includes(channel.id)) {
moduleValue3 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue3.presetName;
moduleValue4 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue4.presetFromSettings;
value = UserGuildSettingsStore.resolveUnreadSetting(channel);
value = Reflect.apply(presetName, moduleValue3, [Reflect.apply(presetFromSettings, moduleValue4, [value,
UserGuildSettingsStore.resolvedMessageNotifications(channel)])]);
items = ['parent', value];
} else {
moduleValue = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetName = moduleValue.presetName;
moduleValue2 = require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */;
presetFromSettings = moduleValue2.presetFromSettings;
getGuildUnreadSetting = UserGuildSettingsStore.getGuildUnreadSetting;
binding = env0_0;
guild_id = binding.guild_id;
value = Reflect.apply(getGuildUnreadSetting, UserGuildSettingsStore, [guild_id]);
getMessageNotifications = UserGuildSettingsStore.getMessageNotifications;
guild_id = binding.guild_id;
value = Reflect.apply(presetName, moduleValue, [Reflect.apply(presetFromSettings, moduleValue2, [value,
Reflect.apply(getMessageNotifications, UserGuildSettingsStore, [guild_id])])]);
items = ['guild', value];
function updateChannelPreset(a0, a1, a2) { // fn#83893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:1373, offset: 0x01f2d2ec, size: 528 bytes, params: 4, frame: 24
var defaultImport;
var updateChannelOverrideSettings;
var object;
var moduleValue;
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
var defaultImport2;
var moduleValue2;
var defaultImport3;
var moduleValue3;
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
const Presets = (NotificationSettingsPresetUtilsModule).Presets;
const ALL_MESSAGES = Presets.ALL_MESSAGES;
if (a2 === ALL_MESSAGES) {
defaultImport3 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport3.updateChannelOverrideSettings;
object = {};
object.message_notifications = UserNotificationSettings.ALL_MESSAGES;
moduleValue3 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue3.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES);
Reflect.apply(updateChannelOverrideSettings, defaultImport3, [a0, a1, object, NotificationLabels.PresetAll]);
} else if (a2 === Presets.MENTIONS) {
defaultImport2 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport2.updateChannelOverrideSettings;
object = {};
object.message_notifications = UserNotificationSettings.ONLY_MENTIONS;
moduleValue2 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue2.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateChannelOverrideSettings, defaultImport2, [a0, a1, object,
NotificationLabels.PresetMentions]);
} else if (a2 === Presets.NOTHING) {
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
object = {};
object.message_notifications = UserNotificationSettings.NO_MESSAGES;
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue.withChannelUnreadFlags(channelIdFlags,
ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object, NotificationLabels.PresetNothing]);
}
}
return items;
function updateChannelToGuildDefault(a0, a1) { // fn#83894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2125, offset: 0x01f2d4fc, size: 143 bytes, params: 3, frame: 23
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object = {};
const NULL = UserNotificationSettings.NULL;
object.message_notifications = NULL;
const resetChannelUnreadFlags = NotificationSettingsFlagUtilsModule.resetChannelUnreadFlags;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelIdFlags = userGuildSettingsStoreBinding.getChannelIdFlags;
object.flags = Reflect.apply(resetChannelUnreadFlags, NotificationSettingsFlagUtilsModule,
[Reflect.apply(getChannelIdFlags, userGuildSettingsStoreBinding, [a0, a1])]);
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
const PresetDefault = NotificationLabels.PresetDefault;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object, PresetDefault]);
}
function updateChannelUnreadSetting(a0, a1, a2) { // fn#83895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2378, offset: 0x01f2d58b, size: 181 bytes, params: 4, frame: 24
const channelIdFlags = UserGuildSettingsStore.getChannelIdFlags(a0, a1);
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object = {};
const withChannelUnreadFlags = NotificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
object.flags = Reflect.apply(withChannelUnreadFlags, NotificationSettingsFlagUtilsModule, [channelIdFlags,
a2 === ALL_MESSAGES ? ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES : ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS]);
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object, NotificationLabel.unreads(a2)]);
}
function updateChannelNotificationSetting(a0, a1, a2) { // fn#83896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11127:2678, offset: 0x01f2d640, size: 92 bytes, params: 4, frame: 19
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, {message_notifications: a2},
NotificationLabel.notifications(a2)]);
}
}
global.__d(_fun83886, 10941, [57, 1379, 4864, 661, 4865, 670, 632, 4867, 10939, 6613, 10942, 6610,
2]) /* metro module 10941, dependencies: [57, 1379, 4864, 661, 4865, 670, 632, 4867, 10939, 6613, 10942, 6610, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 10942; source: modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx; dependencies: [670, 1391, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as FlagUtilsModule from '../../../../external/discord_common/js/shared/utils/FlagUtils.tsx'; /* Metro dependency 1391 */
function _fun83897(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11128:6, offset: 0x01f2d69c, size: 179 bytes, params: 8, frame: 19
const closure = function(a0) {
var moduleValue = importAll(dependencyMap[1]);
@@ -7,29 +11,25 @@ function _fun83897(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userSettingsConstantsModule = require(670) /* metro dependency 670: UserSettingsConstants */;
const env0_2 = userSettingsConstantsModule.GuildNotificationSettingsFlags;
const env0_3 = userSettingsConstantsModule.ChannelNotificationSettingsFlags;
const closure2 = function(a0) {
var moduleValue = importAll(dependencyMap[1]);
var UNREADS_ALL_MESSAGES = ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES;
return moduleValue.removeFlags(a0, UNREADS_ALL_MESSAGES,
ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx');
exports.resetGuildUnreadFlags = closure;
exports.withGuildUnreadFlags = withGuildUnreadFlags;
exports.resetChannelUnreadFlags = closure2;
exports.withChannelUnreadFlags = withChannelUnreadFlags;
function withGuildUnreadFlags(a0, a1) { // fn#83900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11128:563, offset: 0x01f2d7c9, size: 54 bytes, params: 3, frame: 14
return FlagUtilsModule.addFlag(resetGuildUnreadFlags(a0), a1);
}
function withChannelUnreadFlags(a0, a1) { // fn#83901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11128:725, offset: 0x01f2d7ff, size: 54 bytes, params: 3, frame: 14
return FlagUtilsModule.addFlag(resetChannelUnreadFlags(a0), a1);
}
}
function withGuildUnreadFlags(a0, a1) { // fn#83900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11128:563, offset: 0x01f2d7c9, size: 54 bytes, params: 3, frame: 14
const flagUtilsModule = importAll(1391) /* metro dependency 1391: FlagUtils */;
return flagUtilsModule.addFlag(resetGuildUnreadFlags(a0), a1);
}
function withChannelUnreadFlags(a0, a1) { // fn#83901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11128:725, offset: 0x01f2d7ff, size: 54 bytes, params: 3, frame: 14
const flagUtilsModule = importAll(1391) /* metro dependency 1391: FlagUtils */;
return flagUtilsModule.addFlag(resetChannelUnreadFlags(a0), a1);
}
global.__d(_fun83897, 10942, [670, 1391, 2]) /* metro module 10942, dependencies: [670, 1391, 2] */;
@@ -1,78 +1,84 @@
/* Metro module 10947; source: modules/notifications/settings/utils/notificationSettingsGuildFlagUtils.tsx; dependencies: [4864, 661, 670, 4867, 6613, 10942, 6610, 632, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as NotificationSettingsPresetUtilsModule from './notificationSettingsPresetUtils.tsx'; /* Metro dependency 4867 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
function _fun83917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:6, offset: 0x01f2e4c2, size: 175 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_5 = (require(670) /* metro dependency 670: UserSettingsConstants */).GuildNotificationSettingsFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsGuildFlagUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsGuildFlagUtils.tsx');
exports.updateGuildPreset = updateGuildPreset;
exports.useGuildPresetSettings = useGuildPresetSettings;
}
function updateGuildPreset(a0, a1) { // fn#83918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:311, offset: 0x01f2e571, size: 494 bytes, params: 3, frame: 22
var defaultImport;
var updateGuildNotificationSettings;
var object2;
var moduleValue;
const NotificationLabels = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels;
var defaultImport2;
var moduleValue2;
var defaultImport3;
var moduleValue3;
const guildFlags = UserGuildSettingsStore.getGuildFlags(a0);
const Presets = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).Presets;
const ALL_MESSAGES = Presets.ALL_MESSAGES;
if (a1 === ALL_MESSAGES) {
defaultImport3 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport3.updateGuildNotificationSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.ALL_MESSAGES;
moduleValue3 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue3.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES);
Reflect.apply(updateGuildNotificationSettings, defaultImport3, [a0, object2, NotificationLabels.PresetAll]);
} else if (a1 === Presets.MENTIONS) {
defaultImport2 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport2.updateGuildNotificationSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.ONLY_MENTIONS;
moduleValue2 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue2.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateGuildNotificationSettings, defaultImport2, [a0, object2,
NotificationLabels.PresetMentions]);
} else if (a1 === Presets.NOTHING) {
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
object2 = {};
object2.message_notifications = UserNotificationSettings.NO_MESSAGES;
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object2.flags = moduleValue.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateGuildNotificationSettings, defaultImport, [a0, object2, NotificationLabels.PresetNothing]);
function updateGuildPreset(a0, a1) { // fn#83918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:311, offset: 0x01f2e571, size: 494 bytes, params: 3, frame: 22
var defaultImport;
var updateGuildNotificationSettings;
var object;
var moduleValue;
const NotificationLabels = (NotificationSettingsUtilsModule).NotificationLabels;
var defaultImport2;
var moduleValue2;
var defaultImport3;
var moduleValue3;
const guildFlags = UserGuildSettingsStore.getGuildFlags(a0);
const Presets = (NotificationSettingsPresetUtilsModule).Presets;
const ALL_MESSAGES = Presets.ALL_MESSAGES;
if (a1 === ALL_MESSAGES) {
defaultImport3 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport3.updateGuildNotificationSettings;
object = {};
object.message_notifications = UserNotificationSettings.ALL_MESSAGES;
moduleValue3 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue3.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ALL_MESSAGES);
Reflect.apply(updateGuildNotificationSettings, defaultImport3, [a0, object, NotificationLabels.PresetAll]);
} else if (a1 === Presets.MENTIONS) {
defaultImport2 = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport2.updateGuildNotificationSettings;
object = {};
object.message_notifications = UserNotificationSettings.ONLY_MENTIONS;
moduleValue2 = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue2.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateGuildNotificationSettings, defaultImport2, [a0, object, NotificationLabels.PresetMentions]);
} else if (a1 === Presets.NOTHING) {
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
object = {};
object.message_notifications = UserNotificationSettings.NO_MESSAGES;
moduleValue = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
object.flags = moduleValue.withGuildUnreadFlags(guildFlags,
GuildNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
Reflect.apply(updateGuildNotificationSettings, defaultImport, [a0, object, NotificationLabels.PresetNothing]);
}
}
function useGuildPresetSettings(a0) { // fn#83919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1036, offset: 0x01f2e75f, size: 142 bytes, params: 2, frame: 19
const env0_0 = a0;
const useStateFromStores = UseStateFromStoresModule.useStateFromStores;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const guildUnreadSetting = Reflect.apply(useStateFromStores, UseStateFromStoresModule,
[[userGuildSettingsStoreBinding], _fun83920]);
const messageNotifications = UseStateFromStoresModule.useStateFromStores([userGuildSettingsStoreBinding], _fun83921);
object = {unread: guildUnreadSetting, notification: messageNotifications};
object.preset = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).presetFromSettings(guildUnreadSetting,
messageNotifications);
return object;
function _fun83920() { // fn#83920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1109, offset: 0x01f2e7ed, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.getGuildUnreadSetting(env0_0);
}
function _fun83921() { // fn#83921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1176, offset: 0x01f2e808, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.getMessageNotifications(env0_0);
}
}
}
function useGuildPresetSettings(a0) { // fn#83919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1036, offset: 0x01f2e75f, size: 142 bytes, params: 2, frame: 19
var object2;
const env0_0 = a0;
const guildUnreadSetting = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserGuildSettingsStore],
_fun83920);
const messageNotifications = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserGuildSettingsStore],
_fun83921);
object2 = {unread: guildUnreadSetting, notification: messageNotifications};
object2.preset = (require(4867) /* metro dependency 4867: notificationSettingsPresetUtils */).presetFromSettings(guildUnreadSetting,
messageNotifications);
return object2;
}
function _fun83920() { // fn#83920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1109, offset: 0x01f2e7ed, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.getGuildUnreadSetting(env0_0);
}
function _fun83921() { // fn#83921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11133:1176, offset: 0x01f2e808, size: 27 bytes, params: 1, frame: 11
return UserGuildSettingsStore.getMessageNotifications(env0_0);
}
global.__d(_fun83917, 10947, [4864, 661, 670, 4867, 6613, 10942, 6610, 632,
2]) /* metro module 10947, dependencies: [4864, 661, 670, 4867, 6613, 10942, 6610, 632, 2] */;
@@ -1,50 +1,52 @@
/* Metro module 10949; source: modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx; dependencies: [661, 4865, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
function _fun83929(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:6, offset: 0x01f2ee62, size: 152 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_3 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx');
exports.getPushNotificationSelectOptions = getPushNotificationSelectOptions;
exports.getUnreadSelectOptions = getUnreadSelectOptions;
function getPushNotificationSelectOptions() { // fn#83930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:302, offset: 0x01f2eefa, size: 218 bytes, params: 1, frame: 18
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
object = {};
object.label = intl.string(t['tu+ZWJ']);
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
object.value = ONLY_MENTIONS;
items2[1] = object;
string = intl.string;
const X4wWUi = t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items2[2] = {label: Reflect.apply(string, intl, [X4wWUi]), value: NO_MESSAGES};
return items2;
}
function getUnreadSelectOptions(a0) { // fn#83931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:540, offset: 0x01f2efd4, size: 190 bytes, params: 2, frame: 18
const value2 = undefined;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
object = {};
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object.value = ONLY_MENTIONS;
object.label = intl.string(t['tu+ZWJ']);
const notificationSetting = a0 == null ? value2 : a0.notificationSetting;
ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
object.disabled = notificationSetting === ALL_MESSAGES;
items2[1] = object;
return items2;
}
}
function getPushNotificationSelectOptions() { // fn#83930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:302, offset: 0x01f2eefa, size: 218 bytes, params: 1, frame: 18
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
object2 = {};
object2.label = intl.string(t['tu+ZWJ']);
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
object2.value = ONLY_MENTIONS;
items2[1] = object2;
string = intl.string;
const X4wWUi = t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items2[2] = {label: Reflect.apply(string, intl, [X4wWUi]), value: NO_MESSAGES};
return items2;
}
function getUnreadSelectOptions(a0) { // fn#83931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11135:540, offset: 0x01f2efd4, size: 190 bytes, params: 2, frame: 18
var object2;
const value2 = undefined;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
const items2 = [{label: Reflect.apply(string, intl, [t['HVah/3']]), value: ALL_MESSAGES}];
object2 = {};
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
object2.value = ONLY_MENTIONS;
object2.label = intl.string(t['tu+ZWJ']);
const notificationSetting = a0 == null ? value2 : a0.notificationSetting;
ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
object2.disabled = notificationSetting === ALL_MESSAGES;
items2[1] = object2;
return items2;
}
global.__d(_fun83929, 10949, [661, 4865, 1244, 2]) /* metro module 10949, dependencies: [661, 4865, 1244, 2] */;
@@ -1,82 +1,95 @@
/* Metro module 4867; source: modules/notifications/settings/utils/notificationSettingsPresetUtils.tsx; dependencies: [661, 4865, 4242, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as Module04242Module from '../../../../by-id/module-04242.js'; /* Metro dependency 4242 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
function _fun42613(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:6, offset: 0x0113e3a9, size: 217 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_3 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsPresetUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/utils/notificationSettingsPresetUtils.tsx');
exports.Presets = {ALL_MESSAGES: 'all_messages', MENTIONS: 'mentions', NOTHING: 'nothing', CUSTOM: 'custom'};
exports.presetFromSettings = presetFromSettings;
exports.presetName = presetName;
exports.arePresetSettingsUnset = arePresetSettingsUnset;
function presetFromSettings(a0, a1) { // fn#42614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:412, offset: 0x0113e482, size: 287 bytes, params: 3, frame: 16
const value2 = (Module04242Module).match([a1, a0]);
let ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
items2 = [ALL_MESSAGES];
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
items2[1] = ALL_MESSAGES;
let value = value2.with(items2, _fun42615);
let ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
let UNSET = UnreadSetting.UNSET;
value = value.with([ONLY_MENTIONS, UNSET], _fun42616);
ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items2 = [ONLY_MENTIONS];
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[1] = ONLY_MENTIONS;
value = value.with(items2, _fun42617);
let NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
UNSET = UnreadSetting.UNSET;
value = value.with([NO_MESSAGES, UNSET], _fun42618);
NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
value = value.with([NO_MESSAGES, ONLY_MENTIONS], _fun42619);
return value.otherwise(_fun42620);
function _fun42615() { // fn#42615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:511, offset: 0x0113e5a1, size: 15 bytes, params: 1, frame: 1
return env1_4.ALL_MESSAGES;
}
function _fun42616() { // fn#42616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:564, offset: 0x0113e5b0, size: 15 bytes, params: 1, frame: 1
return env1_4.MENTIONS;
}
function _fun42617() { // fn#42617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:621, offset: 0x0113e5b0, size: 15 bytes, params: 1, frame: 1
return env1_4.MENTIONS;
}
function _fun42618() { // fn#42618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:668, offset: 0x0113e5bf, size: 15 bytes, params: 1, frame: 1
return env1_4.NOTHING;
}
function _fun42619() { // fn#42619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:722, offset: 0x0113e5bf, size: 15 bytes, params: 1, frame: 1
return env1_4.NOTHING;
}
function _fun42620() { // fn#42620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:749, offset: 0x0113e5ce, size: 15 bytes, params: 1, frame: 1
return env1_4.CUSTOM;
}
}
function presetName(a0) { // fn#42621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:778, offset: 0x0113e5dd, size: 149 bytes, params: 2, frame: 15
const value2 = (Module04242Module).match(a0);
const binding = env0_4;
const ALL_MESSAGES = binding.ALL_MESSAGES;
let value = value2.with(ALL_MESSAGES, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t.hZrr6k);
});
const MENTIONS = binding.MENTIONS;
value = value.with(MENTIONS, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t.y59NJm);
});
const NOTHING = binding.NOTHING;
value = value.with(NOTHING, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t['pGn/bJ']);
});
const CUSTOM = binding.CUSTOM;
value = value.with(CUSTOM, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t['32yow9']);
});
return value.exhaustive();
}
function arePresetSettingsUnset(a0, a1) { // fn#42626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:1115, offset: 0x0113e76a, size: 67 bytes, params: 3, frame: 5
let r0 = a0 != null && a0 !== UnreadSetting.UNSET;
r0 = !r0 ? a1 != null && a1 !== UserNotificationSettings.NULL : r0;
return !r0;
}
}
function presetFromSettings(a0, a1) { // fn#42614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:412, offset: 0x0113e482, size: 287 bytes, params: 3, frame: 16
const value2 = (require(4242) /* metro dependency 4242 */).match([a1, a0]);
let ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
items2 = [ALL_MESSAGES];
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
items2[1] = ALL_MESSAGES;
let value = value2.with(items2, _fun42615);
let ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
let UNSET = UnreadSetting.UNSET;
value = value.with([ONLY_MENTIONS, UNSET], _fun42616);
ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items2 = [ONLY_MENTIONS];
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
items2[1] = ONLY_MENTIONS;
value = value.with(items2, _fun42617);
let NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
UNSET = UnreadSetting.UNSET;
value = value.with([NO_MESSAGES, UNSET], _fun42618);
NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
value = value.with([NO_MESSAGES, ONLY_MENTIONS], _fun42619);
return value.otherwise(_fun42620);
}
function presetName(a0) { // fn#42621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:778, offset: 0x0113e5dd, size: 149 bytes, params: 2, frame: 15
const value2 = (require(4242) /* metro dependency 4242 */).match(a0);
const binding = env0_4;
const ALL_MESSAGES = binding.ALL_MESSAGES;
let value = value2.with(ALL_MESSAGES, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t.hZrr6k);
});
const MENTIONS = binding.MENTIONS;
value = value.with(MENTIONS, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t.y59NJm);
});
const NOTHING = binding.NOTHING;
value = value.with(NOTHING, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t['pGn/bJ']);
});
const CUSTOM = binding.CUSTOM;
value = value.with(CUSTOM, function() {
return require(dependencyMap[3]).intl.string(require(dependencyMap[3]).t['32yow9']);
});
return value.exhaustive();
}
function arePresetSettingsUnset(a0, a1) { // fn#42626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:1115, offset: 0x0113e76a, size: 67 bytes, params: 3, frame: 5
let r0 = a0 != null && a0 !== UnreadSetting.UNSET;
r0 = !r0 ? a1 != null && a1 !== UserNotificationSettings.NULL : r0;
return !r0;
}
function _fun42615() { // fn#42615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:511, offset: 0x0113e5a1, size: 15 bytes, params: 1, frame: 1
return env1_4.ALL_MESSAGES;
}
function _fun42616() { // fn#42616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:564, offset: 0x0113e5b0, size: 15 bytes, params: 1, frame: 1
return env1_4.MENTIONS;
}
function _fun42618() { // fn#42618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:668, offset: 0x0113e5bf, size: 15 bytes, params: 1, frame: 1
return env1_4.NOTHING;
}
function _fun42620() { // fn#42620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5045:749, offset: 0x0113e5ce, size: 15 bytes, params: 1, frame: 1
return env1_4.CUSTOM;
}
global.__d(_fun42613, 4867, [661, 4865, 4242, 1244,
2]) /* metro module 4867, dependencies: [661, 4865, 4242, 1244, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 11315; source: modules/notifications/settings_unread_notice/UnreadSettingNoticeImpressionTracking.tsx; dependencies: [8742, 480, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun86322(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11501:6, offset: 0x01f90c74, size: 103 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/notifications/settings_unread_notice/UnreadSettingNoticeImpressionTracking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings_unread_notice/UnreadSettingNoticeImpressionTracking.tsx');
exports.default = function(a0) {
var defaultImport = importDefault(dependencyMap[0]);
var object = {};
@@ -14,3 +16,4 @@ function _fun86322(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun86322, 11315, [8742, 480, 2]) /* metro module 11315, dependencies: [8742, 480, 2] */;
@@ -1,65 +1,68 @@
/* Metro module 11311; source: modules/notifications/settings_unread_notice/UnreadSettingNoticeStore2.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 1379, 1867, 1934, 4864, 661, 4865, 670, 672, 21, 1391, 10941, 566, 694, 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 SnowflakeUtils from '../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import UserGuildSettingsStore from '../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
function _fun86285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:6, offset: 0x01f8ef21, size: 919 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_13 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
const env0_14 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_15 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
object2 = {};
object = {};
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const HOUR = Millis.HOUR;
object2.timeSinceJoin = 1 * HOUR;
object2.sends = 1;
object.timeSinceJoin = 1 * HOUR;
object.sends = 1;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
let MINUTE = Millis.MINUTE;
object2.viewTime = 1 * MINUTE;
const items2 = [object2];
object2 = {};
object.viewTime = 1 * MINUTE;
const items2 = [object];
object = {};
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const DAY = Millis.DAY;
object2.timeSinceJoin = 1 * DAY;
object2.sends = 2;
object.timeSinceJoin = 1 * DAY;
object.sends = 2;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
MINUTE = Millis.MINUTE;
object2.viewTime = 2 * MINUTE;
items2[1] = object2;
object2 = {};
object.viewTime = 2 * MINUTE;
items2[1] = object;
object = {};
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
let WEEK = Millis.WEEK;
object2.timeSinceJoin = 1 * WEEK;
object2.sends = 5;
object.timeSinceJoin = 1 * WEEK;
object.sends = 5;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
MINUTE = Millis.MINUTE;
object2.viewTime = 5 * MINUTE;
items2[2] = object2;
object2 = {};
object.viewTime = 5 * MINUTE;
items2[2] = object;
object = {};
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const DAYS_30 = Millis.DAYS_30;
object2.timeSinceJoin = 1 * DAYS_30;
object2.sends = 10;
object.timeSinceJoin = 1 * DAYS_30;
object.sends = 10;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
MINUTE = Millis.MINUTE;
object2.viewTime = 30 * MINUTE;
items2[3] = object2;
object.viewTime = 30 * MINUTE;
items2[3] = object;
const env0_17 = 5 * items2[items2.length - 1].viewTime;
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
WEEK = Millis.WEEK;
object2 = {channels: {}};
object = {channels: {}};
const Set = global.Set;
let set = new Set();
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
set = _fun86295(PersistedStore);
set.displayName = 'UnreadSettingNoticeStore2';
set.persistKey = 'UnreadSettingNoticeStore2';
@@ -70,433 +73,456 @@ function _fun86285(global, require, importDefault, importAll, module, exports, d
env0_22 = Date.now();
return value2;
}, CONNECTION_OPEN: CONNECTION_OPEN_86302, MESSAGE_CREATE: MESSAGE_CREATE_86304});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings_unread_notice/UnreadSettingNoticeStore2.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings_unread_notice/UnreadSettingNoticeStore2.tsx');
exports.default = set;
}
function _isNativeReflectConstruct_86286() { // fn#86286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:303, offset: 0x01f8f2b8, 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_86286() { // fn#86286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:303, offset: 0x01f8f2b8, 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_86286_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_86286_isNativeReflectConstruct = function() {
return !!result;
})();
}
function trackChannel() { // fn#86289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:923, offset: 0x01f8f31a, size: 189 bytes, params: 1, frame: 17
var orCreateChannelState_86292;
var lastActionTime;
var Date;
var viewDuration;
var value4;
if (env0_21 != null) {
if (shouldTrackChannel(env0_21)) {
orCreateChannelState_86292 = getOrCreateChannelState_86292(env0_21);
lastActionTime = orCreateChannelState_86292.lastActionTime;
Date = global.Date;
if (lastActionTime > Date.now() - (importDefault(672) /* metro dependency 672: Durations */).Millis.DAY) {
viewDuration = orCreateChannelState_86292.viewDuration;
if (viewDuration > env0_17) {
return false;
function trackChannel() { // fn#86289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:923, offset: 0x01f8f31a, size: 189 bytes, params: 1, frame: 17
var orCreateChannelState_86292;
var lastActionTime;
var Date;
var viewDuration;
var value4;
if (env0_21 != null) {
if (shouldTrackChannel(env0_21)) {
orCreateChannelState_86292 = getOrCreateChannelState_86292(env0_21);
lastActionTime = orCreateChannelState_86292.lastActionTime;
Date = global.Date;
if (lastActionTime > Date.now() - (importDefault(672) /* metro dependency 672: Durations */).Millis.DAY) {
viewDuration = orCreateChannelState_86292.viewDuration;
if (viewDuration > env0_17) {
return false;
}
value4 = global.Date.now();
orCreateChannelState_86292.lastActionTime = value4;
viewDuration = orCreateChannelState_86292.viewDuration;
orCreateChannelState_86292.viewDuration = viewDuration + (value4 - env0_22);
env0_22 = value4;
return true;
}
value4 = global.Date.now();
Date = global.Date;
value4 = Date.now();
orCreateChannelState_86292.lastActionTime = value4;
viewDuration = orCreateChannelState_86292.viewDuration;
orCreateChannelState_86292.viewDuration = viewDuration + (value4 - env0_22);
env0_22 = value4;
return true;
}
Date = global.Date;
value4 = Date.now();
orCreateChannelState_86292.lastActionTime = value4;
viewDuration = orCreateChannelState_86292.viewDuration;
orCreateChannelState_86292.viewDuration = viewDuration + (value4 - env0_22);
return true;
}
}
return false;
}
function startInterval() { // fn#86290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1183, offset: 0x01f8f3d7, size: 121 bytes, params: 1, frame: 14
if (env0_23 !== 0) {
global.clearInterval(env0_23);
}
if (UserGuildSettingsStore.useNewNotifications) {
env0_23 = global.setInterval(_fun86291,
15 * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND);
}
return false;
}
function getOrCreateChannelState_86292(a0) { // fn#86292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1353, offset: 0x01f8f470, size: 67 bytes, params: 2, frame: 4
if (!(a0 in env0_19.channels)) {
env0_19.channels[a0] = {'lastActionTime': 0, 'viewDuration': 0, 'numSends': 0};
}
return env0_19.channels[a0];
}
function shouldTrackChannel(a0) { // fn#86293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1488, offset: 0x01f8f4b3, size: 254 bytes, params: 2, frame: 15
var binding;
var basicChannel;
var guild_id;
var isGuildOrCategoryOrChannelMuted;
var id;
var hasAnyOverrideBinding;
var unreadSetting;
var getChannelUnreadSetting;
if (UserGuildSettingsStore.useNewNotifications) {
binding = env0_20;
if (binding.has(a0)) {
return false;
}
basicChannel = ChannelStore.getBasicChannel(a0);
if (basicChannel == null) {
return false;
}
guild_id = basicChannel.guild_id;
if (guild_id == null) {
return false;
}
isGuildOrCategoryOrChannelMuted = UserGuildSettingsStore.isGuildOrCategoryOrChannelMuted;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
if (Reflect.apply(isGuildOrCategoryOrChannelMuted, UserGuildSettingsStore, [guild_id, id])) {
return false;
}
hasAnyOverrideBinding = hasAnyOverride;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
if (hasAnyOverrideBinding(guild_id, id)) {
return false;
}
hasAnyOverrideBinding = hasAnyOverride;
guild_id = basicChannel.guild_id;
if (hasAnyOverrideBinding(guild_id, basicChannel.parent_id)) {
return false;
}
unreadSetting = UserGuildSettingsStore.resolveUnreadSetting(basicChannel);
getChannelUnreadSetting = UserGuildSettingsStore.getChannelUnreadSetting;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
return Reflect.apply(getChannelUnreadSetting, UserGuildSettingsStore, [guild_id,
id]) === UnreadSetting.UNSET && unreadSetting !== UnreadSetting.ALL_MESSAGES;
}
return false;
}
function hasAnyOverride(a0, a1) { // fn#86294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1910, offset: 0x01f8f5b1, size: 170 bytes, params: 3, frame: 17
var r1;
var r2;
var r0;
var value5;
var moduleValue;
if (a1 == null) {
return false;
}
const getChannelOverrides = UserGuildSettingsStore.getChannelOverrides;
const property = Reflect.apply(getChannelOverrides, UserGuildSettingsStore, [a0])[a1];
const value2 = property != null;
if (value2) {
r1 = property.message_notifications != null && property.message_notifications !== UserNotificationSettings.NULL;
if (!r1) {
value5 = property.flags == null;
if (value5) {
r2 = value5;
} else {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r2 = !moduleValue.hasAnyFlag(property.flags,
ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES | ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
}
r1 = !r2;
function startInterval() { // fn#86290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1183, offset: 0x01f8f3d7, size: 121 bytes, params: 1, frame: 14
if (env0_23 !== 0) {
global.clearInterval(env0_23);
}
r0 = r1;
} else {
r0 = value2;
if (UserGuildSettingsStore.useNewNotifications) {
env0_23 = global.setInterval(_fun86291,
15 * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND);
}
return false;
function _fun86291() { // fn#86291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1284, offset: 0x01f8f450, size: 32 bytes, params: 1, frame: 10
if (trackChannel()) {
env1_24.emitChange();
}
}
}
return r0;
}
function _fun86295(a0) { // fn#86295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2177, offset: 0x01f8f65b, size: 151 bytes, params: 2, frame: 16
const closure = UnreadSettingNoticeStore2Class;
env0_7(closure, a0);
return env0_4(closure, [{key: 'initialize', value: value_86297}, {key: 'getState', value: value_86298},
{key: 'getLastActionTime', value: value_86299}, {key: 'maybeAutoUpgradeChannel', value: value_86300}]);
}
function getOrCreateChannelState_86292(a0) { // fn#86292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1353, offset: 0x01f8f470, size: 67 bytes, params: 2, frame: 4
if (!(a0 in env0_19.channels)) {
env0_19.channels[a0] = {'lastActionTime': 0, 'viewDuration': 0, 'numSends': 0};
}
return env0_19.channels[a0];
}
function CONNECTION_OPEN_86302() { // fn#86302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3731, offset: 0x01f8f997, size: 131 bytes, params: 1, frame: 15
env0_21 = SelectedChannelStore.getChannelId();
let Date = global.Date;
env0_22 = Date.now();
startInterval();
Date = global.Date;
const env0_0 = Date.now() - WEEK;
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
defaultImport.forEach(env0_19.channels, _fun86303);
}
function shouldTrackChannel(a0) { // fn#86293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1488, offset: 0x01f8f4b3, size: 254 bytes, params: 2, frame: 15
var binding;
var basicChannel;
var guild_id;
var isGuildOrCategoryOrChannelMuted;
var id;
var hasAnyOverrideBinding;
var unreadSetting;
var getChannelUnreadSetting;
let userGuildSettingsStoreBinding = UserGuildSettingsStore;
if (userGuildSettingsStoreBinding.useNewNotifications) {
binding = env0_20;
if (binding.has(a0)) {
return false;
}
basicChannel = ChannelStore.getBasicChannel(a0);
if (basicChannel == null) {
return false;
}
guild_id = basicChannel.guild_id;
if (guild_id == null) {
return false;
}
userGuildSettingsStoreBinding = UserGuildSettingsStore;
isGuildOrCategoryOrChannelMuted = userGuildSettingsStoreBinding.isGuildOrCategoryOrChannelMuted;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
if (Reflect.apply(isGuildOrCategoryOrChannelMuted, userGuildSettingsStoreBinding, [guild_id, id])) {
return false;
}
hasAnyOverrideBinding = hasAnyOverride;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
if (hasAnyOverrideBinding(guild_id, id)) {
return false;
}
hasAnyOverrideBinding = hasAnyOverride;
guild_id = basicChannel.guild_id;
if (hasAnyOverrideBinding(guild_id, basicChannel.parent_id)) {
return false;
}
unreadSetting = UserGuildSettingsStore.resolveUnreadSetting(basicChannel);
userGuildSettingsStoreBinding = UserGuildSettingsStore;
getChannelUnreadSetting = userGuildSettingsStoreBinding.getChannelUnreadSetting;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
return Reflect.apply(getChannelUnreadSetting, userGuildSettingsStoreBinding, [guild_id,
id]) === UnreadSetting.UNSET && unreadSetting !== UnreadSetting.ALL_MESSAGES;
}
return false;
}
function MESSAGE_CREATE_86304(a0) { // fn#86304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3929, offset: 0x01f8fa46, size: 160 bytes, params: 2, frame: 14
var orCreateChannelState_86292;
var numSends;
if (!a0.optimistic) {
if (a0.isPushNotification) {
function hasAnyOverride(a0, a1) { // fn#86294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1910, offset: 0x01f8f5b1, size: 170 bytes, params: 3, frame: 17
var r1;
var r2;
var r0;
var value5;
var moduleValue;
if (a1 == null) {
return false;
}
var author = a0.message.author;
var value = undefined;
var id = author == null ? value : author.id;
var getId = AuthenticationStore.getId;
if (id !== Reflect.apply(getId, AuthenticationStore, [])) {
return false;
}
if (shouldTrackChannel(a0.channelId)) {
orCreateChannelState_86292 = getOrCreateChannelState_86292(a0.channelId);
orCreateChannelState_86292.lastActionTime = global.Date.now();
numSends = orCreateChannelState_86292.numSends;
orCreateChannelState_86292.numSends = typeof numSends === 'bigint' ? numSends + 1n : +numSends + 1;
return value;
}
}
return false;
}
function _fun86291() { // fn#86291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:1284, offset: 0x01f8f450, size: 32 bytes, params: 1, frame: 10
if (trackChannel()) {
env1_24.emitChange();
}
}
function value_86297(a0) { // fn#86297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2557, offset: 0x01f8f6f2, size: 99 bytes, params: 2, frame: 19
var value;
if (a0 != null) {
value = environment.__proto__;
env1_19.channels = a0.channels;
}
this.syncWith([UserGuildSettingsStore], startInterval);
this.waitFor(AuthenticationStore, ChannelStore, GuildStore, SelectedChannelStore, UserGuildSettingsStore);
}
function value_86299(a0) { // fn#86299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2736, offset: 0x01f8f755, size: 51 bytes, params: 2, frame: 4
const value = environment.__proto__;
return env1_19.channels[a0]?.lastActionTime ?? 0;
}
function value_86300(a0) { // fn#86300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2864, offset: 0x01f8f788, size: 473 bytes, params: 2, frame: 25
var r0;
var joinedAt;
var r9;
var r8;
var r4;
var r1;
var basicChannel;
var value4;
var guild_id;
var value5;
var getGuild;
var value6;
var Date;
var prototype;
var value7;
var date;
var value8;
var defaultImport;
var age;
var id;
var value9;
var now;
var value10;
var getTime;
var value11;
var Math;
var min;
var value12;
var channels;
var property;
var value13;
var lastActionTime;
var value14;
var binding;
var length;
var value15;
var property2;
var timeSinceJoin;
var numSends;
var sends;
var value16;
var viewDuration;
var viewTime;
var value17;
var value18;
var add;
var moduleValue;
var updateChannelUnreadSetting;
var ALL_MESSAGES;
let value = environment.__proto__;
if (shouldTrackChannel(a0)) {
basicChannel = ChannelStore.getBasicChannel(a0);
value4 = basicChannel != null;
reducibleJoin4: while (true) {
if (value4) {
guild_id = basicChannel.guild_id;
value5 = guild_id != null;
r0 = value5;
break reducibleJoin4;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelOverrides = userGuildSettingsStoreBinding.getChannelOverrides;
const property = Reflect.apply(getChannelOverrides, userGuildSettingsStoreBinding, [a0])[a1];
const value2 = property != null;
if (value2) {
r1 = property.message_notifications != null && property.message_notifications !== UserNotificationSettings.NULL;
if (!r1) {
value5 = property.flags == null;
if (value5) {
r2 = value5;
} else {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r2 = !moduleValue.hasAnyFlag(property.flags,
ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES | ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS);
}
r1 = !r2;
}
r0 = value4;
break reducibleJoin4;
}
reducibleJoin19: while (true) {
if (r0) {
getGuild = GuildStore.getGuild;
guild_id = basicChannel.guild_id;
value6 = Reflect.apply(getGuild, GuildStore, [guild_id]);
reducibleJoin7: while (true) {
if (value6 == null) {
joinedAt = undefined;
break reducibleJoin7;
}
joinedAt = value6.joinedAt;
break reducibleJoin7;
}
reducibleJoin9: while (true) {
if (joinedAt != null) {
r9 = joinedAt;
break reducibleJoin9;
}
Date = global.Date;
prototype = Date.prototype;
value7 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value8 = date instanceof Object ? date : value7;
r9 = value8;
break reducibleJoin9;
}
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
age = defaultImport.age;
id = basicChannel.id;
value9 = Reflect.apply(age, defaultImport, [id]);
Date = global.Date;
now = Date.now;
value10 = Reflect.apply(now, Date, []);
getTime = r9.getTime;
value11 = value10 - Reflect.apply(getTime, r9, []);
Math = global.Math;
min = Math.min;
value12 = Reflect.apply(min, Math, [value9, value11]);
channels = env1_19.channels;
id = basicChannel.id;
property = channels[id];
value13 = false;
reducibleJoin16: while (true) {
if (property == null) {
r4 = value13;
break reducibleJoin16;
}
lastActionTime = property.lastActionTime;
Date = global.Date;
now = Date.now;
value14 = Reflect.apply(now, Date, []);
if (lastActionTime < value14 - WEEK) {
r4 = value13;
break reducibleJoin16;
}
binding = env1_16;
length = binding.length;
value15 = 0;
if (!(value15 < length)) {
r4 = value13;
break reducibleJoin16;
}
r8 = value15;
reducibleLoop12: while (true) {
property2 = binding[r8];
timeSinceJoin = property2.timeSinceJoin;
if (value12 < timeSinceJoin) {
numSends = property.numSends;
sends = property2.sends;
value16 = true;
reducibleJoin15: while (true) {
reducibleJoin19: while (true) {
if (numSends >= sends) {
r4 = value16;
break reducibleJoin16;
}
viewDuration = property.viewDuration;
viewTime = property2.viewTime;
if (viewDuration >= viewTime) {
r4 = value16;
break reducibleJoin16;
}
break reducibleJoin15;
}
return r0;
}
}
value17 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = binding.length;
if (value17 < length) {
r8 = value17;
continue reducibleLoop12;
}
r4 = value13;
break reducibleJoin16;
}
}
value18 = !!r4;
reducibleJoin18: while (true) {
if (r4) {
channels = env1_19.channels;
delete channels[a0];
binding = env1_20;
add = binding.add;
Reflect.apply(add, binding, [a0]);
moduleValue = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
updateChannelUnreadSetting = moduleValue.updateChannelUnreadSetting;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
Reflect.apply(updateChannelUnreadSetting, moduleValue, [guild_id, id, ALL_MESSAGES]);
value = true;
r1 = value;
break reducibleJoin18;
}
r1 = value18;
break reducibleJoin18;
}
r0 = r1;
break reducibleJoin19;
}
break reducibleJoin19;
r0 = r1;
} else {
r0 = value2;
}
return r0;
}
return false;
}
function _fun86303({lastActionTime}, a1) { // fn#86303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3859, offset: 0x01f8fa1a, size: 44 bytes, params: 3, frame: 2
if (lastActionTime < env0_0) {
value = environment.__proto__;
delete env1_19.channels[a1];
function _fun86295(a0) { // fn#86295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2177, offset: 0x01f8f65b, size: 151 bytes, params: 2, frame: 16
const UnreadSettingNoticeStore2Class2 = UnreadSettingNoticeStore2Class;
Inherits(UnreadSettingNoticeStore2Class2, a0);
return CreateClass(UnreadSettingNoticeStore2Class2, [{key: 'initialize', value: value_86297}, {key: 'getState',
value: value_86298}, {key: 'getLastActionTime', value: value_86299}, {key: 'maybeAutoUpgradeChannel',
value: value_86300}]);
function UnreadSettingNoticeStore2Class() { // fn#86296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2189, offset: 0x010e68f0, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, UnreadSettingNoticeStore2Class);
const value3 = env1_6(UnreadSettingNoticeStore2Class);
return env1_5(this, _isNativeReflectConstruct_86286() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_86297(a0) { // fn#86297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2557, offset: 0x01f8f6f2, size: 99 bytes, params: 2, frame: 19
var value;
if (a0 != null) {
value = environment.__proto__;
env1_19.channels = a0.channels;
}
this.syncWith([UserGuildSettingsStore], startInterval);
this.waitFor(AuthenticationStore, ChannelStore, GuildStore, SelectedChannelStore, UserGuildSettingsStore);
}
function value_86298() { // fn#86298, offset: 0x00d406a2, size: 9 bytes, params: 1, frame: 1
return env1_19;
}
function value_86299(a0) { // fn#86299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2736, offset: 0x01f8f755, size: 51 bytes, params: 2, frame: 4
const value = environment.__proto__;
return env1_19.channels[a0]?.lastActionTime ?? 0;
}
function value_86300(a0) { // fn#86300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:2864, offset: 0x01f8f788, size: 473 bytes, params: 2, frame: 25
var r0;
var joinedAt;
var r9;
var r8;
var r4;
var r1;
var basicChannel;
var value4;
var guild_id;
var value5;
var guildStoreBinding;
var getGuild;
var value6;
var Date;
var prototype;
var value7;
var date;
var value8;
var defaultImport;
var age;
var id;
var value9;
var now;
var value10;
var getTime;
var value11;
var Math;
var min;
var value12;
var channels;
var property;
var value13;
var lastActionTime;
var value14;
var binding;
var length;
var value15;
var property2;
var timeSinceJoin;
var numSends;
var sends;
var value16;
var viewDuration;
var viewTime;
var value17;
var value18;
var add;
var moduleValue;
var updateChannelUnreadSetting;
var ALL_MESSAGES;
let value = environment.__proto__;
if (shouldTrackChannel(a0)) {
basicChannel = ChannelStore.getBasicChannel(a0);
value4 = basicChannel != null;
reducibleJoin4: while (true) {
if (value4) {
guild_id = basicChannel.guild_id;
value5 = guild_id != null;
r0 = value5;
break reducibleJoin4;
}
r0 = value4;
break reducibleJoin4;
}
reducibleJoin19: while (true) {
if (r0) {
guildStoreBinding = GuildStore;
getGuild = guildStoreBinding.getGuild;
guild_id = basicChannel.guild_id;
value6 = Reflect.apply(getGuild, guildStoreBinding, [guild_id]);
reducibleJoin7: while (true) {
if (value6 == null) {
joinedAt = undefined;
break reducibleJoin7;
}
joinedAt = value6.joinedAt;
break reducibleJoin7;
}
reducibleJoin9: while (true) {
if (joinedAt != null) {
r9 = joinedAt;
break reducibleJoin9;
}
Date = global.Date;
prototype = Date.prototype;
value7 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value8 = date instanceof Object ? date : value7;
r9 = value8;
break reducibleJoin9;
}
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
age = defaultImport.age;
id = basicChannel.id;
value9 = Reflect.apply(age, defaultImport, [id]);
Date = global.Date;
now = Date.now;
value10 = Reflect.apply(now, Date, []);
getTime = r9.getTime;
value11 = value10 - Reflect.apply(getTime, r9, []);
Math = global.Math;
min = Math.min;
value12 = Reflect.apply(min, Math, [value9, value11]);
channels = env1_19.channels;
id = basicChannel.id;
property = channels[id];
value13 = false;
reducibleJoin16: while (true) {
if (property == null) {
r4 = value13;
break reducibleJoin16;
}
lastActionTime = property.lastActionTime;
Date = global.Date;
now = Date.now;
value14 = Reflect.apply(now, Date, []);
if (lastActionTime < value14 - WEEK) {
r4 = value13;
break reducibleJoin16;
}
binding = env1_16;
length = binding.length;
value15 = 0;
if (!(value15 < length)) {
r4 = value13;
break reducibleJoin16;
}
r8 = value15;
reducibleLoop12: while (true) {
property2 = binding[r8];
timeSinceJoin = property2.timeSinceJoin;
if (value12 < timeSinceJoin) {
numSends = property.numSends;
sends = property2.sends;
value16 = true;
reducibleJoin15: while (true) {
reducibleJoin19: while (true) {
if (numSends >= sends) {
r4 = value16;
break reducibleJoin16;
}
viewDuration = property.viewDuration;
viewTime = property2.viewTime;
if (viewDuration >= viewTime) {
r4 = value16;
break reducibleJoin16;
}
break reducibleJoin15;
}
return r0;
}
}
value17 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = binding.length;
if (value17 < length) {
r8 = value17;
continue reducibleLoop12;
}
r4 = value13;
break reducibleJoin16;
}
}
value18 = !!r4;
reducibleJoin18: while (true) {
if (r4) {
channels = env1_19.channels;
delete channels[a0];
binding = env1_20;
add = binding.add;
Reflect.apply(add, binding, [a0]);
moduleValue = require(10941) /* metro dependency 10941: notficationSettingsChannelFlagUtils */;
updateChannelUnreadSetting = moduleValue.updateChannelUnreadSetting;
guild_id = basicChannel.guild_id;
id = basicChannel.id;
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
Reflect.apply(updateChannelUnreadSetting, moduleValue, [guild_id, id, ALL_MESSAGES]);
value = true;
r1 = value;
break reducibleJoin18;
}
r1 = value18;
break reducibleJoin18;
}
r0 = r1;
break reducibleJoin19;
}
break reducibleJoin19;
}
return r0;
}
return false;
}
}
function CONNECTION_OPEN_86302() { // fn#86302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3731, offset: 0x01f8f997, size: 131 bytes, params: 1, frame: 15
env0_21 = SelectedChannelStore.getChannelId();
let Date = global.Date;
env0_22 = Date.now();
startInterval();
Date = global.Date;
const env0_0 = Date.now() - WEEK;
const defaultImport = SnowflakeUtils;
defaultImport.forEach(env0_19.channels, _fun86303);
function _fun86303({lastActionTime}, a1) { // fn#86303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3859, offset: 0x01f8fa1a, size: 44 bytes, params: 3, frame: 2
if (lastActionTime < env0_0) {
value = environment.__proto__;
delete env1_19.channels[a1];
}
}
}
function MESSAGE_CREATE_86304(a0) { // fn#86304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11497:3929, offset: 0x01f8fa46, size: 160 bytes, params: 2, frame: 14
var orCreateChannelState_86292;
var numSends;
if (!a0.optimistic) {
if (a0.isPushNotification) {
return false;
}
var author = a0.message.author;
var value = undefined;
var id = author == null ? value : author.id;
var authenticationStoreBinding = AuthenticationStore;
var getId = authenticationStoreBinding.getId;
if (id !== Reflect.apply(getId, authenticationStoreBinding, [])) {
return false;
}
if (shouldTrackChannel(a0.channelId)) {
orCreateChannelState_86292 = getOrCreateChannelState_86292(a0.channelId);
orCreateChannelState_86292.lastActionTime = global.Date.now();
numSends = orCreateChannelState_86292.numSends;
orCreateChannelState_86292.numSends = typeof numSends === 'bigint' ? numSends + 1n : +numSends + 1;
return value;
}
}
return false;
}
}
global.__d(_fun86285, 11311, [6, 7, 15, 17, 18, 1226, 1379, 1867, 1934, 4864, 661, 4865, 670, 672, 21, 1391, 10941,
566, 694,
2]) /* metro module 11311, dependencies: [6, 7, 15, 17, 18, 1226, 1379, 1867, 1934, 4864, 661, 4865, 670, 672, 21, 1391, 10941, 566, 694, 2] */;
@@ -1,65 +1,91 @@
/* Metro module 11314; source: modules/notifications/settings_unread_notice/native/UnreadSettingNotice.tsx; dependencies: [31, 27, 670, 33, 4501, 697, 11315, 4573, 1244, 5278, 11316, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UnreadSettingNoticeImpressionTracking from '../UnreadSettingNoticeImpressionTracking.tsx'; /* Metro dependency 11315 */
import UpdateChannelUnreadSettings from '../utils/updateChannelUnreadSettings.tsx'; /* Metro dependency 11316 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
function _fun86319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11500:6, offset: 0x01f908fb, size: 416 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'display': 'flex', 'flexDirection': 'row', 'paddingVertical': null, 'paddingHorizontal': null,
const object2 = {'display': 'flex', 'flexDirection': 'row', 'paddingVertical': null, 'paddingHorizontal': null,
'borderBottomWidth': 1};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.paddingVertical = PX_12;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.paddingHorizontal = PX_16;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object.borderBottomColor = BORDER_SUBTLE;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.backgroundColor = BACKGROUND_BASE_LOW;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object, SHADOW_LOW, undefined);
const env0_7 = Reflect.apply(createStyles, value, [{content: object, informations: {flex: 1},
const PX_12 = (Native).space.PX_12;
object2.paddingVertical = PX_12;
const PX_16 = (Native).space.PX_16;
object2.paddingHorizontal = PX_16;
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
object2.borderBottomColor = BORDER_SUBTLE;
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object2.backgroundColor = BACKGROUND_BASE_LOW;
const SHADOW_LOW = (Native).shadows.SHADOW_LOW;
copyDataProperties(object2, SHADOW_LOW, undefined);
const env0_7 = Reflect.apply(createStyles, value, [{content: object2, informations: {flex: 1},
actions: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'marginLeft': 16},
inlineTextWithIcon: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings_unread_notice/native/UnreadSettingNotice.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings_unread_notice/native/UnreadSettingNotice.tsx');
exports.default = UnreadSettingNoticeConnected;
function UnreadSettingNoticeConnected(a0) { // fn#86320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11500:779, offset: 0x01f90a9b, size: 392 bytes, params: 2, frame: 27
const env0_0 = a0;
const styles = useStyles();
const items2 = [
((Component) => <Component id={a0.channel.id} />)(UnreadSettingNoticeImpressionTracking),
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = (
<View style={styles.informations}>
<Text variant="text-md/semibold">
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.i4xQ5o])}
</Text>
</View>
);
const PressableOpacity = (PressablesModule).PressableOpacity;
const pressableOpacityProps = {accessibilityRole: 'button', style: styles.inlineTextWithIcon,
onPress: onPress_86321};
string = intl.string;
const KyUKhT = (require(1244) /* metro dependency 1244: indexNative */).t.KyUKhT;
items2[2] = (
<View style={styles.actions}>
<PressableOpacity {...pressableOpacityProps}>
<Text variant="text-xs/medium" color="text-link">
{Reflect.apply(string, intl, [KyUKhT])}
</Text>
</PressableOpacity>
</View>
);
return (
<View style={styles.content}>
{items2}
</View>
);
function UnreadSettingNoticeConnectedOnPress() { // fn#86321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11500:1146, owner: UnreadSettingNoticeConnected.onPress, offset: 0x01f90c23, size: 81 bytes, params: 1, frame: 16
const defaultImport = UpdateChannelUnreadSettings;
const binding = env0_0;
const guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const UNREADS_ONLY_MENTIONS = ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS;
defaultImport(guild_id, id, UNREADS_ONLY_MENTIONS);
binding.clearUnreadsNotice();
}
}
}
function UnreadSettingNoticeConnected(a0) { // fn#86320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11500:779, offset: 0x01f90a9b, size: 392 bytes, params: 2, frame: 27
const env0_0 = a0;
const styles = useStyles();
const items2 = [((Component) => <Component id={a0.channel.id} />)(importDefault(11315) /* metro dependency 11315: UnreadSettingNoticeImpressionTracking */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <View style={styles.informations}><Text variant="text-md/semibold">{Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.i4xQ5o])}</Text></View>;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const pressableOpacityProps = {accessibilityRole: 'button', style: styles.inlineTextWithIcon,
onPress: onPress_86321};
string = intl.string;
const KyUKhT = (require(1244) /* metro dependency 1244: indexNative */).t.KyUKhT;
items2[2] = <View style={styles.actions}><PressableOpacity {...pressableOpacityProps}><Text variant="text-xs/medium" color="text-link">{Reflect.apply(string,
intl, [KyUKhT])}</Text></PressableOpacity></View>;
return (
<View style={styles.content}>
{items2}
</View>
);
}
function UnreadSettingNoticeConnectedOnPress() { // fn#86321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11500:1146, owner: UnreadSettingNoticeConnected.onPress, offset: 0x01f90c23, size: 81 bytes, params: 1, frame: 16
const defaultImport = importDefault(11316) /* metro dependency 11316: updateChannelUnreadSettings */;
const binding = env0_0;
const guild_id = binding.channel.guild_id;
const id = binding.channel.id;
const UNREADS_ONLY_MENTIONS = ChannelNotificationSettingsFlags.UNREADS_ONLY_MENTIONS;
defaultImport(guild_id, id, UNREADS_ONLY_MENTIONS);
binding.clearUnreadsNotice();
}
global.__d(_fun86319, 11314, [31, 27, 670, 33, 4501, 697, 11315, 4573, 1244, 5278, 11316,
2]) /* metro module 11314, dependencies: [31, 27, 670, 33, 4501, 697, 11315, 4573, 1244, 5278, 11316, 2] */;
@@ -1,32 +1,39 @@
/* Metro module 11316; source: modules/notifications/settings_unread_notice/utils/updateChannelUnreadSettings.tsx; dependencies: [4864, 661, 4865, 670, 6613, 10942, 6610, 2] */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../../../user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NotificationSettingsFlagUtilsModule from '../../settings/utils/notificationSettingsFlagUtils.tsx'; /* Metro dependency 10942 */
function _fun86324(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11502:6, offset: 0x01f90d49, size: 184 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticsObjects;
const env0_5 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings_unread_notice/utils/updateChannelUnreadSettings.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings_unread_notice/utils/updateChannelUnreadSettings.tsx');
exports.default = updateChannelUnreadSettings;
function updateChannelUnreadSettings(a0, a1, a2) { // fn#86325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11502:326, offset: 0x01f90e01, size: 193 bytes, params: 4, frame: 26
const defaultImport = NotificationSettingsModalActionCreators;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object = {};
const withChannelUnreadFlags = NotificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const getChannelIdFlags = userGuildSettingsStoreBinding.getChannelIdFlags;
object.flags = Reflect.apply(withChannelUnreadFlags, NotificationSettingsFlagUtilsModule,
[Reflect.apply(getChannelIdFlags, userGuildSettingsStoreBinding, [a0, a1]), a2]);
const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
const unreads = NotificationLabel.unreads;
const UNREADS_ALL_MESSAGES = ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES;
const value2 = Reflect.apply(unreads, NotificationLabel,
[a2 === UNREADS_ALL_MESSAGES ? UnreadSetting.ALL_MESSAGES : UnreadSetting.ONLY_MENTIONS]);
const NOTIFICATION_SETTING_UNREAD_NOTICE = AnalyticsObjects.NOTIFICATION_SETTING_UNREAD_NOTICE;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object, value2,
{object: NOTIFICATION_SETTING_UNREAD_NOTICE}]);
}
}
function updateChannelUnreadSettings(a0, a1, a2) { // fn#86325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11502:326, offset: 0x01f90e01, size: 193 bytes, params: 4, frame: 26
const defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
const updateChannelOverrideSettings = defaultImport.updateChannelOverrideSettings;
const object2 = {};
const notificationSettingsFlagUtilsModule = require(10942) /* metro dependency 10942: notificationSettingsFlagUtils */;
const withChannelUnreadFlags = notificationSettingsFlagUtilsModule.withChannelUnreadFlags;
const getChannelIdFlags = UserGuildSettingsStore.getChannelIdFlags;
object2.flags = Reflect.apply(withChannelUnreadFlags, notificationSettingsFlagUtilsModule,
[Reflect.apply(getChannelIdFlags, UserGuildSettingsStore, [a0, a1]), a2]);
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
const unreads = NotificationLabel.unreads;
const UNREADS_ALL_MESSAGES = ChannelNotificationSettingsFlags.UNREADS_ALL_MESSAGES;
const value2 = Reflect.apply(unreads, NotificationLabel,
[a2 === UNREADS_ALL_MESSAGES ? UnreadSetting.ALL_MESSAGES : UnreadSetting.ONLY_MENTIONS]);
const NOTIFICATION_SETTING_UNREAD_NOTICE = AnalyticsObjects.NOTIFICATION_SETTING_UNREAD_NOTICE;
Reflect.apply(updateChannelOverrideSettings, defaultImport, [a0, a1, object2, value2,
{object: NOTIFICATION_SETTING_UNREAD_NOTICE}]);
}
global.__d(_fun86324, 11316, [4864, 661, 4865, 670, 6613, 10942, 6610,
2]) /* metro module 11316, dependencies: [4864, 661, 4865, 670, 6613, 10942, 6610, 2] */;
@@ -1,50 +1,56 @@
/* Metro module 11310; source: modules/notifications/settings_unread_notice/utils/useUnreadSettingNotice.tsx; dependencies: [57, 31, 1383, 10939, 566, 11311, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UnreadSettingNoticeStore2 from '../UnreadSettingNoticeStore2.tsx'; /* Metro dependency 11311 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ChannelRecordModule from '../../../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
import * as NotificationUtilsModule from '../../NotificationUtils.tsx'; /* Metro dependency 10939 */
function _fun86279(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:6, offset: 0x01f8ec91, size: 159 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(1383) /* metro dependency 1383: ChannelRecord */).CHANNEL_ELIGIBLE_FOR_UNREAD_SETTING;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings_unread_notice/utils/useUnreadSettingNotice.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings_unread_notice/utils/useUnreadSettingNotice.tsx');
exports.default = useUnreadSettingNotice;
}
function useUnreadSettingNotice(a0) { // fn#86280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:283, offset: 0x01f8ed30, size: 275 bytes, params: 2, frame: 21
const env0_0 = a0;
const value2 = (NotificationUtilsModule).useShouldUseNewNotificationSystem('useShouldRenderBanner');
const [property, env0_3] = env0_3Binding(ReactModule.useState(''), 2);
ReactModule.useEffect(_fun86281, [a0.id]);
ReactModule.useEffect(_fun86283, [property, value2,
(FluxModule).useStateFromStores([UnreadSettingNoticeStore2],
_fun86282), a0]);
return {showUnreadsNotice: property === a0.id, clearUnreadsNotice: ReactModule.useCallback(_fun86284, [])};
function _fun86281() { // fn#86281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:444, offset: 0x01f8ee43, size: 20 bytes, params: 1, frame: 11
env0_3('');
}
function useUnreadSettingNotice(a0) { // fn#86280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:283, offset: 0x01f8ed30, size: 275 bytes, params: 2, frame: 21
const env0_0 = a0;
const value2 = (require(10939) /* metro dependency 10939: NotificationUtils */).useShouldUseNewNotificationSystem('useShouldRenderBanner');
const binding = env0_4;
const [property, env0_3] = env0_3Binding(binding.useState(''), 2);
binding.useEffect(_fun86281, [a0.id]);
binding.useEffect(_fun86283, [property, value2,
(require(566) /* metro dependency 566: flux */).useStateFromStores([importDefault(11311) /* metro dependency 11311: UnreadSettingNoticeStore2 */],
_fun86282), a0]);
return {showUnreadsNotice: property === a0.id, clearUnreadsNotice: binding.useCallback(_fun86284, [])};
}
function _fun86282() { // fn#86282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:509, offset: 0x01f8ee57, size: 52 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (UnreadSettingNoticeStore2).getLastActionTime(env0_0.id);
}
function _fun86281() { // fn#86281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:444, offset: 0x01f8ee43, size: 20 bytes, params: 1, frame: 11
env0_3('');
}
function _fun86283() { // fn#86283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:560, offset: 0x01f8ee8b, size: 130 bytes, params: 1, frame: 13
let value = environment.__proto__;
let r1 = CHANNEL_ELIGIBLE_FOR_UNREAD_SETTING.has(env0_0.type) && env0_2 !== env0_0.id && env0_1;
if (r1) {
value = importDefault(11311) /* metro dependency 11311: UnreadSettingNoticeStore2 */;
value = value.maybeAutoUpgradeChannel(env0_0.id);
r1 = value;
}
if (r1) {
env0_3(env0_0.id);
}
}
function _fun86282() { // fn#86282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:509, offset: 0x01f8ee57, size: 52 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(11311) /* metro dependency 11311: UnreadSettingNoticeStore2 */).getLastActionTime(env0_0.id);
}
function _fun86284() { // fn#86284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:674, offset: 0x01f8ef0d, size: 20 bytes, params: 1, frame: 11
return env0_3('');
}
function _fun86283() { // fn#86283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:560, offset: 0x01f8ee8b, size: 130 bytes, params: 1, frame: 13
let value = environment.__proto__;
let r1 = CHANNEL_ELIGIBLE_FOR_UNREAD_SETTING.has(env0_0.type) && env0_2 !== env0_0.id && env0_1;
if (r1) {
value = importDefault(11311) /* metro dependency 11311: UnreadSettingNoticeStore2 */;
value = value.maybeAutoUpgradeChannel(env0_0.id);
r1 = value;
}
if (r1) {
env0_3(env0_0.id);
}
}
function _fun86284() { // fn#86284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11496:674, offset: 0x01f8ef0d, size: 20 bytes, params: 1, frame: 11
return env0_3('');
}
global.__d(_fun86279, 11310, [57, 31, 1383, 10939, 566, 11311,
2]) /* metro module 11310, dependencies: [57, 31, 1383, 10939, 566, 11311, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13912; source: modules/notifications/summary_reminder/SummaryReminderNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14109:6, offset: 0x022be331, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/summary_reminder/SummaryReminderNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/summary_reminder/SummaryReminderNotificationUtils.tsx');
exports.onSummaryReminderNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableSummaryReminderNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105621(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105621, 13912, [3796, 661, 3829, 683,
2]) /* metro module 13912, dependencies: [3796, 661, 3829, 683, 2] */;
@@ -1,14 +1,28 @@
/* Metro module 13909; source: modules/notifications/upcoming_server_event/UpcomingServerEventExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun105612(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14106:6, offset: 0x022be003, size: 203 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2026-04-upcoming-server-event',
defaultConfig: {showSettingsToggle: false}, variations: {[1]: {showSettingsToggle: true},
[2]: {showSettingsToggle: true}, [3]: {showSettingsToggle: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/upcoming_server_event/UpcomingServerEventExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/upcoming_server_event/UpcomingServerEventExperiment.tsx');
exports.default = value;
exports.useUpcomingServerEventExperiment = useUpcomingServerEventExperiment;
exports.isEligibleForUpcomingServerEventNotifications = isEligibleForUpcomingServerEventNotifications;
function useUpcomingServerEventExperiment(a0) { // fn#105613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14106:474, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function isEligibleForUpcomingServerEventNotifications(a0) { // fn#105614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14106:601, offset: 0x022bd4b8, size: 35 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).showSettingsToggle;
}
}
global.__d(_fun105612, 13909, [1854, 2]) /* metro module 13909, dependencies: [1854, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13910; source: modules/notifications/upcoming_server_event/UpcomingServerEventNotificationUtils.tsx; dependencies: [3796, 661, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105615(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14107:6, offset: 0x022be0ce, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/upcoming_server_event/UpcomingServerEventNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/upcoming_server_event/UpcomingServerEventNotificationUtils.tsx');
exports.onUpcomingServerEventNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableUpcomingServerEventNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105615(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105615, 13910, [3796, 661, 3829, 683,
2]) /* metro module 13910, dependencies: [3796, 661, 3829, 683, 2] */;