Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,173 @@
|
||||
/* Metro module 6613; source: actions/NotificationSettingsModalActionCreators.tsx; dependencies: [5, 4864, 661, 3796, 670, 694, 6610, 6612, 21, 4002, 1244, 1391, 507, 2] */
|
||||
function _fun52243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:6, offset: 0x01323731, size: 287 bytes, params: 8, frame: 19
|
||||
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 userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
const env0_6 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
|
||||
const env0_7 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
|
||||
object2 = {open: open_52244, close: close_52245, updateGuildNotificationSettings: updateGuildNotificationSettings,
|
||||
updateGuildAndChannelNotificationSettings: updateGuildAndChannelNotificationSettings,
|
||||
updateChannelOverrideSettings: updateChannelOverrideSettings,
|
||||
updateChannelOverrideSettingsBulk: updateChannelOverrideSettingsBulk,
|
||||
updateAppDMOverrideSettings: updateAppDMOverrideSettings, setForumThreadsCreated: setForumThreadsCreated,
|
||||
setAccountFlag: setAccountFlag};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/NotificationSettingsModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_52244(a0) { // fn#52244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:223, offset: 0x01323850, size: 54 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_OPEN',
|
||||
guildId: a0});
|
||||
}
|
||||
|
||||
function close_52245() { // fn#52245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:302, offset: 0x01323886, size: 47 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'});
|
||||
}
|
||||
|
||||
function updateGuildNotificationSettings(a0, a1, a2, a3) { // fn#52246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:372, offset: 0x013238b5, size: 147 bytes, params: 5, frame: 23
|
||||
const currentGuildSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentGuildSettings(a0);
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, a1);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_UPDATE',
|
||||
guildId: a0, settings: a1});
|
||||
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackGuildNotificationSettingsUpdate(a0, a1,
|
||||
currentGuildSettings, a2, a3);
|
||||
}
|
||||
|
||||
function updateGuildAndChannelNotificationSettings(a0, a1, a2, a3) { // fn#52247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:627, offset: 0x01323948, size: 264 bytes, params: 5, frame: 28
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
const value2 = defaultImport.keys(a1.channel_overrides);
|
||||
let value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
value = value.getCurrentGuildSettings(a0);
|
||||
const env0_4 = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getManyCurrentChannelSettings(a0,
|
||||
value2);
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, a1);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_AND_CHANNELS_UPDATE',
|
||||
guildId: a0, settings: a1});
|
||||
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackGuildNotificationSettingsUpdate(a0, a1,
|
||||
value, a2, a3);
|
||||
value = Reflect.apply(defaultImport.keys, value, [a1.channel_overrides]);
|
||||
value.forEach(_fun52248);
|
||||
}
|
||||
|
||||
function updateChannelOverrideSettings(a0, a1, a2, a3, a4) { // fn#52249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1183, offset: 0x01323ac0, size: 265 bytes, params: 6, frame: 23
|
||||
const currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0,
|
||||
a1);
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0,
|
||||
{channel_overrides: {[a1]: a2}});
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE',
|
||||
guildId: a0, channelId: a1, settings: a2});
|
||||
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const MlIsJ8 = (require(1244) /* metro dependency 1244: indexNative */).t.MlIsJ8;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]);
|
||||
const value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
value.trackChannelNotificationSettingsUpdate({guildId: a0, channelId: a1, change: a2,
|
||||
previous: currentChannelSettings, label: a3, location: a4});
|
||||
}
|
||||
|
||||
function updateChannelOverrideSettingsBulk(a0, a1, a2, a3) { // fn#52250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1618, offset: 0x01323bc9, size: 205 bytes, params: 5, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getManyCurrentChannelSettings(a0,
|
||||
(importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(a1));
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0,
|
||||
{channel_overrides: a1});
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE_BULK',
|
||||
guildId: a0, overrides: a1});
|
||||
let value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.keys(a1);
|
||||
value.forEach(_fun52251);
|
||||
}
|
||||
|
||||
function updateAppDMOverrideSettings(a0, a1, a2, a3, a4) { // fn#52252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2024, offset: 0x01323d00, size: 280 bytes, params: 6, frame: 24
|
||||
const currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0,
|
||||
a1);
|
||||
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0,
|
||||
{channel_overrides: {[a1]: a3}});
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE',
|
||||
guildId: a0, channelId: a1, settings: a3});
|
||||
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const MlIsJ8 = (require(1244) /* metro dependency 1244: indexNative */).t.MlIsJ8;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]);
|
||||
const notificationSettingsUtilsModule = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
const trackChannelNotificationSettingsUpdate = notificationSettingsUtilsModule.trackChannelNotificationSettingsUpdate;
|
||||
const AUTHORIZED_APP_DM = NotificationSettingsUpdateType.AUTHORIZED_APP_DM;
|
||||
Reflect.apply(trackChannelNotificationSettingsUpdate, notificationSettingsUtilsModule,
|
||||
[{updateType: AUTHORIZED_APP_DM, guildId: a0, channelId: a1, applicationId: a2, change: a3,
|
||||
previous: currentChannelSettings, label: a4}]);
|
||||
}
|
||||
|
||||
function setForumThreadsCreated(a0, a1) { // fn#52253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2493, offset: 0x01323e18, size: 158 bytes, params: 3, frame: 21
|
||||
const r7 = a1 ? ChannelNotificationSettingsFlags.NEW_FORUM_THREADS_ON : ChannelNotificationSettingsFlags.NEW_FORUM_THREADS_OFF;
|
||||
const r1 = a1 ? ChannelNotificationSettingsFlags.NEW_FORUM_THREADS_OFF : ChannelNotificationSettingsFlags.NEW_FORUM_THREADS_ON;
|
||||
const channelFlags = UserGuildSettingsStore.getChannelFlags(a0);
|
||||
const updateChannelOverrideSettings = this.updateChannelOverrideSettings;
|
||||
const guild_id = a0.guild_id;
|
||||
const id = a0.id;
|
||||
const object2 = {flags: channelFlags & ~r1 | r7};
|
||||
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel;
|
||||
Reflect.apply(updateChannelOverrideSettings, this, [guild_id, id, object2,
|
||||
NotificationLabel.forumThreadsCreated(a1)]);
|
||||
}
|
||||
|
||||
function setAccountFlag(a0, a1) { // fn#52254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2782, offset: 0x01323eb6, size: 41 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env0_3(_fun52256)();
|
||||
}
|
||||
|
||||
function _fun52248(a0) { // fn#52248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1028, offset: 0x01323a50, size: 112 bytes, params: 2, frame: 16
|
||||
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackChannelNotificationSettingsUpdate({guildId: env0_0,
|
||||
channelId: a0, change: require.channel_overrides[a0], previous: env0_4.get(a0), label: importDefault,
|
||||
location: importAll});
|
||||
}
|
||||
|
||||
function _fun52251(a0) { // fn#52251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1897, offset: 0x01323c96, size: 106 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
|
||||
const trackChannelNotificationSettingsUpdate = value.trackChannelNotificationSettingsUpdate;
|
||||
const object2 = {};
|
||||
object2.guildId = env0_0;
|
||||
object2.channelId = a0;
|
||||
object2.change = require[a0];
|
||||
object2.previous = env0_4.get(a0);
|
||||
object2.label = importDefault;
|
||||
object2.location = importAll;
|
||||
return Reflect.apply(trackChannelNotificationSettingsUpdate, value, [object2]);
|
||||
}
|
||||
|
||||
function* _fun52256() { // fn#52256, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2792, offset: 0x01323ee8, size: 219 bytes, params: 1, frame: 20
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var flags = env2_4.accountNotificationSettings.flags;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var value5 = binding(binding2[11]).setFlag(flags, require, importDefault);
|
||||
var HTTP = binding(binding2[12]).HTTP;
|
||||
var patch = HTTP.patch;
|
||||
var ACCOUNT_NOTIFICATION_SETTINGS = env2_5.ACCOUNT_NOTIFICATION_SETTINGS;
|
||||
yield Reflect.apply(patch, HTTP, [{url: ACCOUNT_NOTIFICATION_SETTINGS, body: {flags: value5},
|
||||
rejectWithError: false}]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = env2_1(env2_2[5]);
|
||||
yield value.dispatch({type: 'NOTIFICATION_SETTINGS_UPDATE', settings: {flags: value5}});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user