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