/* 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}); 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 ( ); 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)]); } } } 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] */;