/* Metro module 10960; source: modules/notifications/settings/native/NotificationSettingsMessageUnreadChannelActionSheet.tsx; dependencies: [31, 4864, 661, 4865, 670, 33, 10941, 10959, 1244, 6613, 10942, 6610, 2] */ 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'); 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} = (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 ( ); } 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)]); }