Initial commit

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

No files matched your search

@@ -0,0 +1,73 @@
/* Metro module 12589; source: modules/user_settings/notifications/EmailSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
function _fun96453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12779:6, offset: 0x0215ea5c, size: 322 bytes, params: 8, frame: 19
const closure = function() {
env0_5 = {};
env0_6 = null;
};
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 */;
let env0_5 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun96458(Store);
value.displayName = 'EmailSettingsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure,
LOGOUT: closure, EMAIL_SETTINGS_FETCH_SUCCESS: function({settings}) {
env0_5 = settings.categories;
env0_6 = settings.initialized;
}, EMAIL_SETTINGS_UPDATE_SUCCESS: function(a0) {
env0_5 = a0.settings.categories;
}, EMAIL_SETTINGS_UPDATE: EMAIL_SETTINGS_UPDATE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/EmailSettingsStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_96454() { // fn#96454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12779:148, offset: 0x0215eb9e, 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_96454_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun96458(a0) { // fn#96458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12779:392, offset: 0x0215ec13, size: 74 bytes, params: 2, frame: 15
const closure = EmailSettingsStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getEmailSettings', value: value_96460}]);
}
function EMAIL_SETTINGS_UPDATE({updates}) { // fn#96463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12779:1089, offset: 0x0215ecb4, size: 43 bytes, params: 2, frame: 13
const object2 = {};
copyDataProperties(object2, updates, copyDataProperties(object2, env0_5, undefined));
}
function value_96460() { // fn#96460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12779:718, offset: 0x0215ec5d, size: 25 bytes, params: 1, frame: 3
return {categories: env1_5, initialized: env1_6};
}
@@ -0,0 +1,110 @@
/* Metro module 13875; source: modules/user_settings/notifications/native/NotificationPermissionSettingsHeader.tsx; dependencies: [31, 27, 661, 11873, 33, 4501, 697, 11874, 683, 6239, 10629, 4573, 1244, 4578, 2] */
function _fun105498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14072:6, offset: 0x022babbc, size: 482 bytes, params: 8, frame: 23
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;
let value = require(661) /* metro dependency 661: Constants */;
const env0_5 = value.AnalyticEvents;
const env0_6 = value.NOOP;
value = require(11873) /* metro dependency 11873: NotificationPermissionConstants */;
const env0_7 = value.EventActionLocation;
const env0_8 = value.EventActionType;
const env0_9 = value.NotificationNudgeAnalyticsAction;
const env0_10 = value.NotificationNudgeSurface;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {paddingTop: PX_16};
object2.cardContent = {alignItems: 'center'};
const object3 = {'width': 48, 'height': 48, 'borderRadius': null, 'backgroundColor': null, 'alignItems': 'center',
'justifyContent': 'center'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object3.backgroundColor = BACKGROUND_MOD_MUTED;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.marginBottom = PX_8;
object2.iconCircle = object3;
const object6 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.marginBottom = PX_12;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.marginTop = PX_8;
object6.textAlign = 'center';
object2.body = object6;
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/NotificationPermissionSettingsHeader.tsx');
exports.default = NotificationPermissionSettingsHeader;
}
function NotificationPermissionSettingsHeader() { // fn#105499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14072:818, offset: 0x022bad9e, size: 622 bytes, params: 1, frame: 30
var r0;
var Card;
var items2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var Button;
var view;
const styles = useStyles();
const value2 = (require(11874) /* metro dependency 11874: NotificationPermissionUtil */).useCanSeePushNotificationNudge();
const binding = env0_3;
binding.useEffect(_fun105500, [value2]);
if (value2) {
var viewBindingProps = {style: styles.container};
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
var viewBindingProps2 = {style: styles.cardContent};
view = <View style={styles.iconCircle}>{((BellSlashIcon) => <BellSlashIcon size="md" color={(importDefault(697) /* metro dependency 697: native */).colors.ICON_STRONG} />)((require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon)}</View>;
items2 = [view];
string = intl.string;
items2[1] = <Text variant="heading-lg/bold" color="text-default">{Reflect.apply(string, intl,
[t.MUwOvc])}</Text>;
string = intl.string;
items2[2] = <Text variant="text-sm/medium" style={styles.body} color="text-muted">{Reflect.apply(string, intl,
[t.G4uKoe])}</Text>;
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items2[3] = <View style={{alignSelf: 'stretch'}}><Button variant="primary" text={Reflect.apply(string, intl,
[t['5xWOXv']])} onPress={binding.useCallback(_fun105501, [])} /></View>;
view = <View {...viewBindingProps}><Card border="none" shadow="none"><View {...viewBindingProps2}>{items2}</View></Card></View>;
r0 = view;
} else {
r0 = null;
}
return r0;
}
function _fun105500() { // fn#105500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14072:932, offset: 0x022bb00c, size: 91 bytes, params: 1, frame: 15
var defaultImport;
if (env0_0) {
value = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.CONTEXTUAL_REMINDER_ACTION,
{action: NotificationNudgeAnalyticsAction.IMPRESSION,
prompt_type: NotificationNudgeSurface.NOTIFICATION_SETTINGS_PERMISSION_HEADER});
}
}
function _fun105501() { // fn#105501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14072:1088, offset: 0x022bb067, size: 132 bytes, params: 1, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const CONTEXTUAL_REMINDER_ACTION = AnalyticEvents.CONTEXTUAL_REMINDER_ACTION;
const ACCEPT = NotificationNudgeAnalyticsAction.ACCEPT;
const NOTIFICATION_SETTINGS_PERMISSION_HEADER = NotificationNudgeSurface.NOTIFICATION_SETTINGS_PERMISSION_HEADER;
Reflect.apply(track, defaultImport, [CONTEXTUAL_REMINDER_ACTION, {action: ACCEPT,
prompt_type: NOTIFICATION_SETTINGS_PERMISSION_HEADER}]);
const notificationPermissionUtilModule = require(11874) /* metro dependency 11874: NotificationPermissionUtil */;
const requestPushNotificationPermission = notificationPermissionUtilModule.requestPushNotificationPermission;
const ALLOW_TO_REQUEST = EventActionType.ALLOW_TO_REQUEST;
const NOTIFICATION_SETTING = EventActionLocation.NOTIFICATION_SETTING;
Reflect.apply(requestPushNotificationPermission, notificationPermissionUtilModule, [ALLOW_TO_REQUEST,
NOTIFICATION_SETTING, NOOP]);
}
@@ -0,0 +1,165 @@
/* Metro module 13871; source: modules/user_settings/notifications/native/SettingsNotificationScreen.tsx; dependencies: [31, 27, 13872, 8224, 33, 4501, 697, 11874, 13873, 13874, 4573, 1244, 6239, 7684, 10928, 5188, 9692, 13875, 13876, 13170, 2] */
function _fun105465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:6, offset: 0x022b9b23, size: 387 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(13872) /* metro dependency 13872: AndroidNotificationSettingsStore */).initializeAndroidNotificationSettingsStore;
const env0_6 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
const value2 = require(33) /* metro dependency 33 */;
const env0_7 = value2.jsx;
const env0_8 = value2.jsxs;
const env0_9 = value2.Fragment;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'marginBottom': 8, 'borderColor': null, 'borderWidth': 1};
const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
object.borderColor = YELLOW_300;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_10 = Reflect.apply(createStyles, createStylesModule, [{card: object,
cardContent: {'flexDirection': 'row', 'alignItems': 'center', 'gap': 8}, text: {flex: 1}}]);
value = value.memo(_fun105468);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/SettingsNotificationScreen.tsx');
exports.default = value;
}
function SystemNotificationsSubLabel() { // fn#105466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:452, offset: 0x022b9ca6, size: 570 bytes, params: 1, frame: 36
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var Card;
var items2;
const styles = useStyles();
const value2 = (require(11874) /* metro dependency 11874: NotificationPermissionUtil */).useShowReactivationPrompt();
const defaultImport = importDefault(13873) /* metro dependency 13873: NotificationSettingsPermissionHeaderExperiment */;
const useConfig = defaultImport.useConfig;
const enabled = Reflect.apply(useConfig, defaultImport, [{location: 'SystemNotificationsSubLabel'}]).enabled;
const hasAndroidNotificationChannels2 = (require(13874) /* metro dependency 13874: SettingsNotificationUtils */).hasAndroidNotificationChannels();
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
const r7 = hasAndroidNotificationChannels2 && <Text variant="text-sm/medium" color="text-muted">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/TZX1J'])}</Text>;
let r5 = value2 && !enabled;
if (r5) {
var viewBindingProps = {style: styles.card};
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
var viewBinding2Props = {style: styles.cardContent};
items2 = [((CircleErrorIcon) => <CircleErrorIcon color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300} />)((require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon)];
items2[1] = <View style={styles.text}><Text color="text-default" variant="text-sm/medium">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TAuasM)}</Text></View>;
r5 = <View {...viewBindingProps}><Card border="none" shadow="none"><View {...viewBinding2Props}>{items2}</View></Card></View>;
}
return (
<>
{r7}
{r5}
</>
);
}
function getNotificationSettings(a0) { // fn#105467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:1140, offset: 0x022b9ee0, size: 1139 bytes, params: 2, frame: 21
let object2 = {};
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.clE4PU]);
const IN_APP_NOTIFICATIONS = MobileSetting.IN_APP_NOTIFICATIONS;
const IN_APP_MESSAGE_SOUNDS = MobileSetting.IN_APP_MESSAGE_SOUNDS;
object2.settings = [IN_APP_NOTIFICATIONS, IN_APP_MESSAGE_SOUNDS];
const items2 = [object2];
object2 = {};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['jcHF+3']);
const SYSTEM_NOTIFICATIONS = MobileSetting.SYSTEM_NOTIFICATIONS;
object2.settings = [SYSTEM_NOTIFICATIONS];
object2.subLabel = <SystemNotificationsSubLabel />;
items2[1] = object2;
const ANDROID_MESSAGE_NOTIFICATIONS = MobileSetting.ANDROID_MESSAGE_NOTIFICATIONS;
items2[2] = {settings: [ANDROID_MESSAGE_NOTIFICATIONS]};
const IOS_NATIVE_PHONE_INTEGRATION = MobileSetting.IOS_NATIVE_PHONE_INTEGRATION;
items2[3] = {settings: [IOS_NATIVE_PHONE_INTEGRATION]};
object2 = {};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.a2O7oY);
const ANDROID_NOTIFICATION_LIGHTS = MobileSetting.ANDROID_NOTIFICATION_LIGHTS;
const ANDROID_NOTIFICATION_VIBRATIONS = MobileSetting.ANDROID_NOTIFICATION_VIBRATIONS;
const ANDROID_NOTIFICATION_SOUNDS = MobileSetting.ANDROID_NOTIFICATION_SOUNDS;
object2.settings = [ANDROID_NOTIFICATION_LIGHTS, ANDROID_NOTIFICATION_VIBRATIONS, ANDROID_NOTIFICATION_SOUNDS];
items2[4] = object2;
object2 = {};
const value2 = null;
object2.label = a0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Rq0NFs) : value2;
const REACTION_NOTIFICATIONS = MobileSetting.REACTION_NOTIFICATIONS;
const REACTION_NOTIFICATIONS_AUTHOR = MobileSetting.REACTION_NOTIFICATIONS_AUTHOR;
const GDM_ALL_REACTION_NOTIFICATIONS = MobileSetting.GDM_ALL_REACTION_NOTIFICATIONS;
object2.settings = [REACTION_NOTIFICATIONS, REACTION_NOTIFICATIONS_AUTHOR, GDM_ALL_REACTION_NOTIFICATIONS];
object2.subLabel = a0 ? value2 : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oWF6eQ);
items2[5] = object2;
string = intl.string;
const EZorjX = (require(1244) /* metro dependency 1244: indexNative */).t.EZorjX;
const COMMUNITY_ACTIVITY_ALERTS = MobileSetting.COMMUNITY_ACTIVITY_ALERTS;
items2[6] = {label: Reflect.apply(string, intl, [EZorjX]), settings: [COMMUNITY_ACTIVITY_ALERTS]};
const HIGHLIGHT_NOTIFICATIONS = MobileSetting.HIGHLIGHT_NOTIFICATIONS;
items2[7] = {settings: [HIGHLIGHT_NOTIFICATIONS]};
const FRIEND_STREAM_NOTIFICATIONS = MobileSetting.FRIEND_STREAM_NOTIFICATIONS;
items2[8] = {settings: [FRIEND_STREAM_NOTIFICATIONS]};
const FRIEND_ANNIVERSARY_NOTIFICATIONS = MobileSetting.FRIEND_ANNIVERSARY_NOTIFICATIONS;
items2[9] = {settings: [FRIEND_ANNIVERSARY_NOTIFICATIONS]};
const VOICE_ACTIVITY_NOTIFICATIONS = MobileSetting.VOICE_ACTIVITY_NOTIFICATIONS;
items2[10] = {settings: [VOICE_ACTIVITY_NOTIFICATIONS]};
const FRIEND_ONLINE_NOTIFICATIONS = MobileSetting.FRIEND_ONLINE_NOTIFICATIONS;
items2[11] = {settings: [FRIEND_ONLINE_NOTIFICATIONS]};
const CUSTOM_STATUS_NOTIFICATIONS = MobileSetting.CUSTOM_STATUS_NOTIFICATIONS;
items2[12] = {settings: [CUSTOM_STATUS_NOTIFICATIONS]};
const FRIEND_GAMING_ACTIVITY_NOTIFICATIONS = MobileSetting.FRIEND_GAMING_ACTIVITY_NOTIFICATIONS;
items2[13] = {settings: [FRIEND_GAMING_ACTIVITY_NOTIFICATIONS]};
const PROFILE_UPDATES_NOTIFICATIONS = MobileSetting.PROFILE_UPDATES_NOTIFICATIONS;
items2[14] = {settings: [PROFILE_UPDATES_NOTIFICATIONS]};
const SERVER_TRENDING_NOTIFICATIONS = MobileSetting.SERVER_TRENDING_NOTIFICATIONS;
items2[15] = {settings: [SERVER_TRENDING_NOTIFICATIONS]};
const UPCOMING_SERVER_EVENT_NOTIFICATIONS = MobileSetting.UPCOMING_SERVER_EVENT_NOTIFICATIONS;
items2[16] = {settings: [UPCOMING_SERVER_EVENT_NOTIFICATIONS]};
const SUMMARY_REMINDER_NOTIFICATIONS = MobileSetting.SUMMARY_REMINDER_NOTIFICATIONS;
items2[17] = {settings: [SUMMARY_REMINDER_NOTIFICATIONS]};
object2 = {};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0YtG+k']);
const SCREEN_DOWNTIME_SCHEDULE_NOTIFICATIONS = MobileSetting.SCREEN_DOWNTIME_SCHEDULE_NOTIFICATIONS;
const SCREEN_DOWNTIME_REMINDER_NOTIFICATIONS = MobileSetting.SCREEN_DOWNTIME_REMINDER_NOTIFICATIONS;
object2.settings = [SCREEN_DOWNTIME_SCHEDULE_NOTIFICATIONS, SCREEN_DOWNTIME_REMINDER_NOTIFICATIONS];
items2[18] = object2;
object2 = {};
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6DXkz6']);
const ENABLE_DM_REPLY_NUDGE_REMINDERS = MobileSetting.ENABLE_DM_REPLY_NUDGE_REMINDERS;
object2.settings = [ENABLE_DM_REPLY_NUDGE_REMINDERS];
items2[19] = object2;
return items2;
}
function _fun105468() { // fn#105468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:2712, offset: 0x022ba353, size: 248 bytes, params: 1, frame: 20
const gdmAllReactionNotificationsExperimentModule = require(10928) /* metro dependency 10928: GdmAllReactionNotificationsExperiment */;
const useGdmAllReactionNotificationExperiment = gdmAllReactionNotificationsExperimentModule.useGdmAllReactionNotificationExperiment;
const showSettingsToggle = Reflect.apply(useGdmAllReactionNotificationExperiment,
gdmAllReactionNotificationsExperimentModule, ['settingsNotificationsScreen']).showSettingsToggle;
const value2 = (require(5188) /* metro dependency 5188: FamilyCenterV3Experiment */).useIsFamilyCenterV3Enabled({location: 'SettingsNotificationsScreen'});
const defaultImport = importDefault(13873) /* metro dependency 13873: NotificationSettingsPermissionHeaderExperiment */;
const useConfig = defaultImport.useConfig;
const enabled = Reflect.apply(useConfig, defaultImport, [{location: 'SettingsNotificationsScreen'}]).enabled;
const binding = env0_3;
const value3 = binding.useMemo(_fun105469, [showSettingsToggle, enabled]);
binding.useEffect(function() {
initializeAndroidNotificationSettingsStore();
}, []);
binding.useEffect(_fun105471, [value2]);
return ((Component) => <Component node={value3} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
}
function _fun105469() { // fn#105469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:2991, offset: 0x022ba44b, size: 95 bytes, params: 1, frame: 16
const value = environment.__proto__;
const value2 = undefined;
const settingBuildersModule = require(9692) /* metro dependency 9692: SettingBuilders */;
const createList = settingBuildersModule.createList;
const object2 = {};
object2.sections = getNotificationSettings(showSettingsToggle);
object2.ListHeaderComponent = enabled ? importDefault(13875) /* metro dependency 13875: NotificationPermissionSettingsHeader */ : value2;
return Reflect.apply(createList, settingBuildersModule, [object2]);
}
function _fun105471() { // fn#105471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14068:3148, offset: 0x022ba4aa, size: 45 bytes, params: 1, frame: 12
const value = environment.__proto__;
(require(13876) /* metro dependency 13876: FamilyCenterAgeGroupPrefetch */).prefetchFamilyCenterAgeGroupWhen(env0_1);
}
@@ -0,0 +1,27 @@
/* Metro module 13874; source: modules/user_settings/notifications/native/SettingsNotificationUtils.tsx; dependencies: [477, 4092, 2] */
function _fun105496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14071:6, offset: 0x022baaff, size: 96 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/user_settings/notifications/native/SettingsNotificationUtils.tsx');
exports.hasAndroidNotificationChannels = hasAndroidNotificationChannels;
}
function hasAndroidNotificationChannels() { // fn#105497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14071:231, offset: 0x022bab5f, size: 93 bytes, params: 1, frame: 15
var r0;
var parseInt;
var value;
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
if (isAndroid2) {
parseInt = global.parseInt;
value = require(4092) /* metro dependency 4092: DeviceUtils */;
value = value.getSystemVersion();
value = parseInt(value, 10);
value = value >= 26;
r0 = value;
} else {
r0 = isAndroid2;
}
return r0;
}
@@ -0,0 +1,92 @@
/* Metro module 13917; source: modules/user_settings/notifications/native/UserSettingsCommunityNotifications.tsx; dependencies: [31, 10906, 33, 4501, 566, 21, 7972, 4572, 6231, 6808, 1244, 1362, 2] */
function _fun105654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14114:6, offset: 0x022beffc, size: 204 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const guildIncidentsStore = importDefault(10906) /* metro dependency 10906: GuildIncidentsStore */;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {paddingHorizontal: 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/UserSettingsCommunityNotifications.tsx');
exports.default = UserSettingsCommunityNotifications;
}
function UserSettingsCommunityNotifications() { // fn#105655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14114:326, offset: 0x022bf0c8, size: 216 bytes, params: 1, frame: 20
const styles = useStyles();
const value2 = (importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys((require(566) /* metro dependency 566: flux */).useStateFromStores([GuildIncidentsStore],
function() {
return GuildIncidentsStore.getGuildAlertSettings();
}));
if (value2.length === 0) {
return null;
} else {
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
return (
<Form>
<Stack spacing={24} style={styles.container}>
{value2.map(_fun105657)}
</Stack>
</Form>
);
}
}
function _fun105657(a0) { // fn#105657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14114:578, offset: 0x022bf1b3, size: 313 bytes, params: 2, frame: 27
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const guildAlertSettingsBinding = guildAlertSettings;
const guildName = guildAlertSettingsBinding[a0].guildName;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
value = <TableSwitchRow label={Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.u6dc5B])} value={!guildAlertSettingsBinding[a0].disableRaidAlertNag} onValueChange={onValueChange_105658} />;
string = intl.string;
const P8MG6q = (require(1244) /* metro dependency 1244: indexNative */).t.P8MG6q;
return (
<TableRowGroup
title={guildName}
hasIcons={false}
key={a0}
>
{value}
<TableSwitchRow
label={Reflect.apply(string, intl, [P8MG6q])}
value={!guildAlertSettingsBinding[a0].disableRaidAlertPush}
onValueChange={onValueChange_105660}
/>
</TableRowGroup>
);
}
function onValueChange_105658() { // fn#105658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14114:767, offset: 0x022bf2ec, size: 77 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__.__proto__;
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
const updateUserGuildSettings = value.updateUserGuildSettings;
const binding = env0_0;
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateUserGuildSettings, value, [binding, function(a0) {
a0.disableRaidAlertNag = !a0.disableRaidAlertNag;
}, INFREQUENT_USER_ACTION]);
}
function onValueChange_105660() { // fn#105660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14114:1032, offset: 0x022bf34f, size: 77 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__.__proto__;
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
const updateUserGuildSettings = value.updateUserGuildSettings;
const binding = env0_0;
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateUserGuildSettings, value, [binding, function(a0) {
a0.disableRaidAlertPush = !a0.disableRaidAlertPush;
}, INFREQUENT_USER_ACTION]);
}
@@ -0,0 +1,90 @@
/* Metro module 13919; source: modules/user_settings/notifications/native/UserSettingsHighlightNotifications.tsx; dependencies: [31, 1867, 4896, 4864, 661, 33, 6613, 6610, 566, 6819, 6808, 7972, 2] */
function _fun105668(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14116:6, offset: 0x022bf57e, size: 223 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).HighlightSettings;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/UserSettingsHighlightNotifications.tsx');
exports.default = UserSettingsHighlightNotifications;
}
function Row_105669({guildId, isStart, isEnd}) { // fn#105669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14116:178, offset: 0x022bf65d, size: 293 bytes, params: 2, frame: 23
const value2 = env0_3.useCallback(function(a0) {
var defaultImport = importDefault(dependencyMap[6]);
var updateGuildNotificationSettings = defaultImport.updateGuildNotificationSettings;
var guildIdBinding = guildId;
var object = {};
object.notify_highlights = a0 ? HighlightSettings.ENABLED : HighlightSettings.DISABLED;
var NotificationLabel = require(dependencyMap[7]).NotificationLabel;
Reflect.apply(updateGuildNotificationSettings, defaultImport, [guildIdBinding, object,
NotificationLabel.highlights(!a0)]);
}, [guildId]);
const {guild, muted,
notifyHighlights} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserGuildSettingsStore,
GuildStore], function() {
var object = {};
var guildIdBinding = guildId;
object.guild = GuildStore.getGuild(guildIdBinding);
object.muted = UserGuildSettingsStore.isMuted(guildIdBinding);
object.notifyHighlights = UserGuildSettingsStore.getNotifyHighlights(guildIdBinding);
return object;
}, [guildId]);
let name = guild?.name;
if (name == null) {
return null;
}
name = guild.name;
const r2 = muted || notifyHighlights === HighlightSettings.DISABLED;
const value6 = ((Component) => <Component guild={guild} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */);
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
return (
<TableSwitchRow
label={name}
icon={value6}
value={!r2}
onValueChange={value2}
start={isStart}
end={isEnd}
/>
);
}
function UserSettingsHighlightNotifications() { // fn#105672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14116:878, offset: 0x022bf841, size: 149 bytes, params: 1, frame: 17
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([SortedGuildStore],
function() {
return SortedGuildStore.getFlattenedGuildIds();
});
const binding = env0_3;
const useMemo = binding.useMemo;
if (value2.length === 0) {
return null;
} else {
const Form = (require(7972) /* metro dependency 7972: native */).Form;
return (
<Form>
{Reflect.apply(useMemo, binding, [_fun105674, [value2]])}
</Form>
);
}
}
function _fun105674() { // fn#105674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14116:1011, offset: 0x022bf8d6, size: 28 bytes, params: 1, frame: 11
return env0_0.map(_fun105675);
}
function _fun105675(a0, a1) { // fn#105675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14116:1022, offset: 0x022bf8f2, size: 73 bytes, params: 3, frame: 17
return (
<Row_105669
guildId={a0}
isStart={a1 === 0}
isEnd={a1 === env1_0.length - 1}
key={a0}
/>
);
}
@@ -0,0 +1,235 @@
/* Metro module 13963; source: modules/user_settings/notifications/native/UserSettingsPushNotificationLogs.tsx; dependencies: [5, 57, 31, 27, 661, 33, 4501, 697, 6993, 587, 11219, 1585, 6984, 5278, 1244, 9212, 11220, 9798, 8416, 4573, 2] */
function _fun105972(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:6, offset: 0x022c948c, size: 554 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.wrap = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.list = {paddingHorizontal: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.searchWrap = {'padding': null, 'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object3 = {};
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
object3.backgroundColor = INPUT_BACKGROUND_DEFAULT;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.marginLeft = PX_8;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const InputHeights = (require(6993) /* metro dependency 6993: InputTypesNative */).InputHeights;
let MD = InputHeights.MD;
object3.height = MD;
MD = InputHeights.MD;
object3.width = MD;
object3.justifyContent = 'center';
object3.alignItems = 'center';
object2.shareButton = object3;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.log = {paddingBottom: PX_16};
const CODE_BOLD = Fonts.CODE_BOLD;
object2.code = {fontFamily: CODE_BOLD};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/UserSettingsPushNotificationLogs.tsx');
exports.default = UserSettingsPushNotificationLogs;
}
function UserSettingsPushNotificationLogs() { // fn#105973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:833, offset: 0x022c96b6, size: 597 bytes, params: 1, frame: 29
const binding = env0_5;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [_fun105974]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const property2 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property3 = value4[0];
const env0_2 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property4 = value5[0];
const env0_3 = value5[1];
binding.useEffect(function() {
var env0_0 = _fun105976;
_fun105979();
}, []);
binding.useEffect(_fun105980, [property3, property]);
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
const searchField = <SearchField size="md" placeholder="Filter (regex)" onChange={property2} defaultValue={property} />;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const pressableOpacityProps = {style: styles.shareButton};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
pressableOpacityProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.leICvh);
pressableOpacityProps.onPress = env0_3(_fun105985);
const ShareIcon = (require(9798) /* metro dependency 9798: ShareIcon */).ShareIcon;
const view = <View style={styles.searchWrap}>{searchField}<PressableOpacity {...pressableOpacityProps}><ShareIcon /></PressableOpacity></View>;
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
const object = {};
copyDataProperties(object, styles.list, intl);
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object['paddingBottom'] = bottom + PX_16;
return (
<View style={styles.wrap}>
{view}
<FlashList
contentContainerStyle={object}
data={property4}
renderItem={renderItem_105986}
estimatedItemSize={54}
/>
</View>
);
}
function _fun105974() { // fn#105974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:895, offset: 0x022c990b, size: 66 bytes, params: 1, frame: 13
let value = environment.__proto__;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
value = '';
return Storage.get('push-notification-logs-query', value) ?? value;
}
function _fun105975() { // fn#105975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1102, offset: 0x022c994d, size: 31 bytes, params: 1, frame: 9
(function() {
return _load.apply(this, arguments);
})();
}
function _fun105980() { // fn#105980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1280, offset: 0x022c99ef, size: 126 bytes, params: 1, frame: 15
if (env0_0 !== '') {
var env0_0 = global.setTimeout(_fun105981, 300);
return _fun105983;
}
env0_3(env0_1);
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('push-notification-logs-query', env0_0);
}
function* _fun105985() { // fn#105985, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1948, offset: 0x022c9b5f, size: 123 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
yield binding(env2_2[10])();
var value3 = undefined;
if (false) {
return value3;
}
binding = env2_0;
var binding2 = env2_2;
var value5 = binding(binding2[15]);
var showShareActionSheet = value5.showShareActionSheet;
var object2 = {};
object2.message = env2_1(binding2[16])(value3, false);
Reflect.apply(showShareActionSheet, value5, [object2, 'push-notification-logs']);
}
}
function UserSettingsPushNotificationLogsRenderItem({item, index}) { // fn#105986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:2216, owner: UserSettingsPushNotificationLogs.renderItem, offset: 0x022c9bda, size: 366 bytes, params: 2, frame: 27
const r12 = item.silent ? '~silent~ ' : '';
value = environment.__proto__;
const stylesBinding = styles;
const log = stylesBinding.log;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const code = stylesBinding.code;
const Date = global.Date;
let date = new Date(item.receivedTimestamp);
date = <Text style={code} variant="text-xs/normal">{date.toISOString()}</Text>;
const textProps = {style: stylesBinding.code, variant: 'text-sm/normal'};
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={log} key={index}>
{date}
<Text {...textProps}>
<Text2
style={stylesBinding.code}
variant="text-sm/normal"
color="text-brand"
>
{r12}
{'['}
{item.type}
{']'}
{' '}
</Text2>
{item.title}
{' - '}
{item.content}
</Text>
</View>
);
}
function _load() { // fn#105976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1107, offset: 0x022c996c, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return env2_3(_fun105978).apply(this, arguments);
}
function _fun105981() { // fn#105981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1314, offset: 0x022c9a6d, size: 134 bytes, params: 1, frame: 15
var environment;
var RegExp;
var value;
var binding;
var prototype;
var value2;
var regExp;
var value3;
var binding2;
var binding3;
var closure;
var property;
var Storage;
var error;
try {
RegExp = global.RegExp;
value = environment.__proto__;
binding = env1_0;
prototype = RegExp.prototype;
value2 = Object.create(prototype, {constructor: {value: RegExp}});
regExp = new RegExp(binding, 'i');
value3 = regExp instanceof Object ? regExp : value2;
var env0_0 = value3;
binding2 = env1_3;
binding3 = env1_1;
closure = _fun105982;
value = binding3.filter(closure);
binding2(value);
value = environment.__proto__.__proto__;
property = dependencyMap[9];
value = require(property);
Storage = value.Storage;
Storage.set('push-notification-logs-query', binding);
} catch (error) {
}
}
function* _fun105978() { // fn#105978, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1140, offset: 0x022c99ac, size: 67 bytes, params: 1, frame: 12
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
yield env4_1(env4_2[10])();
value = undefined;
if (false) {
return value;
}
dependencyMap(value);
}
}
function _fun105982(a0) { // fn#105982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14160:1359, offset: 0x022c9af3, size: 97 bytes, params: 2, frame: 15
let r0 = a0.type.match(env0_0) != null || a0.title.match(env0_0) != null;
r0 = !r0 ? a0.content?.match(env0_0) != null : r0;
return r0;
}
@@ -0,0 +1,68 @@
/* Metro module 13881; source: modules/user_settings/notifications/native/UserSettingsReactionNotifcations.tsx; dependencies: [31, 27, 33, 4501, 697, 13879, 3829, 3795, 7988, 7987, 4573, 1244, 2] */
function _fun105525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14078:6, offset: 0x022bbb09, size: 291 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_4 = value2.jsx;
const env0_5 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginTop = PX_24;
object3.container = object4;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.description = {marginTop: PX_8};
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]);
value = value.memo(UserSettingsReactionNotifcations);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/UserSettingsReactionNotifcations.tsx');
exports.default = value;
}
function UserSettingsReactionNotifcations() { // fn#105526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14078:311, offset: 0x022bbc2c, size: 314 bytes, params: 1, frame: 23
const styles = useStyles();
const value2 = (require(13879) /* metro dependency 13879: ReactionNotificationsSettings */).useOptions();
const ReactionNotifications = (require(3829) /* metro dependency 3829: UserSettings */).ReactionNotifications;
const value3 = ReactionNotifications.useSetting();
const value4 = env0_2.useCallback(_fun105527, [value3]);
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const tableRadioGroup = <TableRadioGroup value={value3} onChange={value4} hasIcons={false}>{value2.map(_fun105528)}</TableRadioGroup>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.container}>
{tableRadioGroup}
<Text
variant="text-xs/normal"
color="text-muted"
style={styles.description}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oWF6eQ)}
</Text>
</View>
);
}
function _fun105527(a0) { // fn#105527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14078:450, offset: 0x022bbd66, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
(require(3795) /* metro dependency 3795: ReactionUtils */).updateReactionNotificationsSetting(a0, env0_0);
}
function _fun105528({label, value}) { // fn#105528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14078:623, offset: 0x022bbd97, size: 67 bytes, params: 2, frame: 17
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
return (
<TableRadioRow
value={value}
label={label}
key={value}
/>
);
}
@@ -0,0 +1,369 @@
/* Metro module 13872; source: modules/user_settings/notifications/native/stores/AndroidNotificationSettingsStore.tsx; dependencies: [5, 685, 477, 10741, 690, 3769, 2] */
function _fun105472(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:6, offset: 0x022ba4d7, size: 267 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(685) /* metro dependency 685 */).createWithEqualityFn(function() {
return {isLightsEnabled: undefined, isVibrationsEnabled: undefined, isSoundsEnabled: undefined,
isNotifyEveryTime: undefined};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/notifications/native/stores/AndroidNotificationSettingsStore.tsx');
exports.initializeAndroidNotificationSettingsStore = function() {
return _initializeAndroidNotificationSettingsStore.apply(this, arguments);
};
exports.useAndroidNotificationLightsEnabled = useAndroidNotificationLightsEnabled;
exports.setAndroidNotificationLightsEnabled = setAndroidNotificationLightsEnabled;
exports.useAndroidNotificationVibrationsEnabled = useAndroidNotificationVibrationsEnabled;
exports.setAndroidNotificationVibrationsEnabled = setAndroidNotificationVibrationsEnabled;
exports.useAndroidNotificationSoundsEnabled = useAndroidNotificationSoundsEnabled;
exports.setAndroidNotificationSoundsEnabled = setAndroidNotificationSoundsEnabled;
exports.useAndroidMessageNotificationsEnabled = useAndroidMessageNotificationsEnabled;
exports.setAndroidMessageNotificationsEnabled = setAndroidMessageNotificationsEnabled;
}
function _initializeAndroidNotificationSettingsStore() { // fn#105473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:246, offset: 0x022ba5e2, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun105475).apply(this, arguments);
}
function useAndroidNotificationLightsEnabled() { // fn#105479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1044, offset: 0x022ba7a6, size: 52 bytes, params: 1, frame: 13
return env0_4(function(a0) {
return a0.isLightsEnabled;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
function setAndroidNotificationLightsEnabled(a0) { // fn#105481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1183, offset: 0x022ba7e5, size: 81 bytes, params: 2, frame: 15
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun105482);
(importDefault(10741) /* metro dependency 10741: PushNotification */).setLightsEnabled(a0);
}
function useAndroidNotificationVibrationsEnabled() { // fn#105483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1362, offset: 0x022ba858, size: 52 bytes, params: 1, frame: 13
return env0_4(function(a0) {
return a0.isVibrationsEnabled;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
function setAndroidNotificationVibrationsEnabled(a0) { // fn#105485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1513, offset: 0x022ba897, size: 81 bytes, params: 2, frame: 15
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun105486);
(importDefault(10741) /* metro dependency 10741: PushNotification */).setVibrationsEnabled(a0);
}
function useAndroidNotificationSoundsEnabled() { // fn#105487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1700, offset: 0x022ba90a, size: 52 bytes, params: 1, frame: 13
return env0_4(function(a0) {
return a0.isSoundsEnabled;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
function setAndroidNotificationSoundsEnabled(a0) { // fn#105489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1839, offset: 0x022ba949, size: 81 bytes, params: 2, frame: 15
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun105490);
(importDefault(10741) /* metro dependency 10741: PushNotification */).setSoundsEnabled(a0);
}
function useAndroidMessageNotificationsEnabled() { // fn#105491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:2016, offset: 0x022ba9bc, size: 52 bytes, params: 1, frame: 13
return env0_4(function(a0) {
return a0.isNotifyEveryTime;
}, (require(3769) /* metro dependency 3769 */).shallow);
}
function setAndroidMessageNotificationsEnabled(a0) { // fn#105493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:2161, offset: 0x022ba9fb, size: 81 bytes, params: 2, frame: 15
const env0_0 = a0;
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun105494);
(importDefault(10741) /* metro dependency 10741: PushNotification */).setAndroidNotifyEveryTime(a0);
}
function* _fun105475() { // fn#105475, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:355, offset: 0x022ba61f, size: 302 bytes, params: 1, frame: 18
var environment;
var binding;
var value3;
var isAndroid;
var binding2;
var property;
var value4;
var getLightsEnabled;
var value5;
var value6;
var value7;
var binding3;
var value8;
var getVibrationsEnabled;
var value9;
var value10;
var value11;
var binding4;
var value12;
var getSoundsEnabled;
var value13;
var value14;
var value15;
var binding5;
var value16;
var shouldAndroidNotifyEveryTime;
var shouldAndroidNotifyEveryTime2;
var value17;
var value18;
var binding6;
var batchUpdates;
var closure;
var error;
let value = undefined;
if (false) {
return value;
}
reduciblePort56: while (true) {
exceptionLanding55: while (true) {
var env0_0 = undefined;
var env0_1 = undefined;
var env0_2 = undefined;
var env0_3 = undefined;
value = environment.__proto__.__proto__;
binding = env2_0;
value3 = binding(env2_2[2]);
isAndroid = value3.isAndroid;
if (Reflect.apply(isAndroid, value3, [])) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding55;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding55;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding55;
}
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding55;
}
try {
getLightsEnabled = value4.getLightsEnabled;
} catch (error) {
break exceptionLanding55;
}
try {
value5 = Reflect.apply(getLightsEnabled, value4, []);
} catch (error) {
break exceptionLanding55;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding55;
}
if (value7) {
return value6;
}
try {
env0_0 = value6;
} catch (error) {
break exceptionLanding55;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding55;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding55;
}
try {
property = binding3[3];
} catch (error) {
break exceptionLanding55;
}
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding55;
}
try {
getVibrationsEnabled = value8.getVibrationsEnabled;
} catch (error) {
break exceptionLanding55;
}
try {
value9 = Reflect.apply(getVibrationsEnabled, value8, []);
} catch (error) {
break exceptionLanding55;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding55;
}
if (value11) {
return value10;
}
try {
env0_1 = value10;
} catch (error) {
break exceptionLanding55;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding55;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding55;
}
try {
property = binding4[3];
} catch (error) {
break exceptionLanding55;
}
try {
value12 = binding(property);
} catch (error) {
break exceptionLanding55;
}
try {
getSoundsEnabled = value12.getSoundsEnabled;
} catch (error) {
break exceptionLanding55;
}
try {
value13 = Reflect.apply(getSoundsEnabled, value12, []);
} catch (error) {
break exceptionLanding55;
}
yield value13;
try {
value14 = undefined;
value15 = false;
} catch (error) {
break exceptionLanding55;
}
if (value15) {
return value14;
}
try {
env0_2 = value14;
} catch (error) {
break exceptionLanding55;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding55;
}
try {
binding5 = env2_2;
} catch (error) {
break exceptionLanding55;
}
try {
property = binding5[3];
} catch (error) {
break exceptionLanding55;
}
try {
value16 = binding(property);
} catch (error) {
break exceptionLanding55;
}
try {
shouldAndroidNotifyEveryTime = value16.shouldAndroidNotifyEveryTime;
} catch (error) {
break exceptionLanding55;
}
try {
shouldAndroidNotifyEveryTime2 = Reflect.apply(shouldAndroidNotifyEveryTime, value16, []);
} catch (error) {
break exceptionLanding55;
}
yield shouldAndroidNotifyEveryTime2;
try {
value17 = undefined;
value18 = false;
} catch (error) {
break exceptionLanding55;
}
if (value18) {
return value17;
}
try {
env0_3 = value17;
} catch (error) {
break exceptionLanding55;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding55;
}
try {
binding6 = env2_2;
} catch (error) {
break exceptionLanding55;
}
try {
property = binding6[4];
} catch (error) {
break exceptionLanding55;
}
try {
value = binding(property);
} catch (error) {
break exceptionLanding55;
}
try {
batchUpdates = value.batchUpdates;
} catch (error) {
break exceptionLanding55;
}
try {
closure = _fun105476;
} catch (error) {
break exceptionLanding55;
}
try {
Reflect.apply(batchUpdates, value, [closure]);
} catch (error) {
break exceptionLanding55;
}
break reduciblePort56;
}
break reduciblePort56;
}
break reduciblePort56;
}
}
function _fun105482() { // fn#105482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1253, offset: 0x022ba836, size: 34 bytes, params: 1, frame: 12
return env1_4.setState({isLightsEnabled: env0_0});
}
function _fun105486() { // fn#105486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1587, offset: 0x022ba8e8, size: 34 bytes, params: 1, frame: 12
return env1_4.setState({isVibrationsEnabled: env0_0});
}
function _fun105490() { // fn#105490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:1909, offset: 0x022ba99a, size: 34 bytes, params: 1, frame: 12
return env1_4.setState({isSoundsEnabled: env0_0});
}
function _fun105494() { // fn#105494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:2233, offset: 0x022baa4c, size: 34 bytes, params: 1, frame: 12
return env1_4.setState({isNotifyEveryTime: env0_0});
}
function _fun105476() { // fn#105476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14069:576, offset: 0x022ba74d, size: 63 bytes, params: 1, frame: 13
env3_4.setState({isLightsEnabled: env0_0, isVibrationsEnabled: env0_1, isSoundsEnabled: env0_2,
isNotifyEveryTime: env0_3});
}