/* Metro module 15846; source: stores/NotificationSettingsModalStore.tsx; dependencies: [6, 7, 15, 17, 18, 1383, 5098, 1935, 4111, 1867, 4864, 661, 5099, 566, 694, 2] */ import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import GuildStore from './GuildStore.tsx'; /* Metro dependency 1867 */ import GuildChannelStore from './GuildChannelStore.tsx'; /* Metro dependency 1935 */ import GuildMemberCountStore from './GuildMemberCountStore.tsx'; /* Metro dependency 4111 */ import UserGuildSettingsStore from './UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */ import GuildCategoryStore from './GuildCategoryStore.tsx'; /* Metro dependency 5098 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */ import * as ChannelRecordModule from '../records/ChannelRecord.tsx'; /* Metro dependency 1383 */ function _fun121858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:6, offset: 0x02552e7a, size: 429 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ConstantsModule; const FormStates = value.FormStates; const env0_14 = value.ChannelTypes; let env0_16 = FormStates.CLOSED; const Store = (Flux).Store; _fun121862(Store).displayName = 'NotificationSettingsModalStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {NOTIFICATION_SETTINGS_MODAL_OPEN: function({guildId}) { env0_16 = FormStates.OPEN; env0_15 = guildId; }, NOTIFICATION_SETTINGS_MODAL_CLOSE: function() { env0_16 = FormStates.CLOSED; env0_15 = null; }}); (FileImportTrackerModule).fileFinishedImporting('stores/NotificationSettingsModalStore.tsx'); exports.default = value; function _isNativeReflectConstruct_121859() { // fn#121859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:281, offset: 0x02553027, 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_121859_isNativeReflectConstruct = function() { return !!result; })(); } function _fun121862(a0) { // fn#121862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:497, offset: 0x02553089, size: 122 bytes, params: 2, frame: 16 const NotificationSettingsModalStore2 = NotificationSettingsModalStore; Inherits(NotificationSettingsModalStore2, a0); return CreateClass(NotificationSettingsModalStore2, [{key: 'initialize', value: function() { var env0_0 = this; var guildCategoryStoreBinding = GuildCategoryStore; var guildChannelStoreBinding = GuildChannelStore; var guildMemberCountStoreBinding = GuildMemberCountStore; var guildStoreBinding = GuildStore; var userGuildSettingsStoreBinding = UserGuildSettingsStore; this.waitFor(guildCategoryStoreBinding, guildChannelStoreBinding, guildMemberCountStoreBinding, guildStoreBinding, userGuildSettingsStoreBinding); this.syncWith([userGuildSettingsStoreBinding, guildChannelStoreBinding, guildStoreBinding], _fun121865); }}, {key: 'isOpen', value: function() { return CLOSED !== FormStates.CLOSED; }}, {key: 'getProps', value: value_121867}]); function NotificationSettingsModalStore() { // fn#121863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:509, offset: 0x010992b7, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_2(this, NotificationSettingsModalStore); const value3 = env1_5(NotificationSettingsModalStore); return env1_4(this, _isNativeReflectConstruct_121859() ? global.Reflect.construct(value3, arguments, env1_5(this).constructor) : value3.apply(this, arguments)); } function value_121864() { // fn#121864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:877, offset: 0x02553103, size: 93 bytes, params: 1, frame: 20 const waitFor = this.waitFor; const guildCategoryStoreBinding = GuildCategoryStore; const guildChannelStoreBinding = GuildChannelStore; const guildMemberCountStoreBinding = GuildMemberCountStore; const guildStoreBinding = GuildStore; const userGuildSettingsStoreBinding = UserGuildSettingsStore; Reflect.apply(waitFor, this, [guildCategoryStoreBinding, guildChannelStoreBinding, guildMemberCountStoreBinding, guildStoreBinding, userGuildSettingsStoreBinding]); this.syncWith([userGuildSettingsStoreBinding, guildChannelStoreBinding, guildStoreBinding], _fun121865); function _fun121865() { // fn#121865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:935, offset: 0x02553160, size: 19 bytes, params: 1, frame: 9 return env0_0.isOpen(); } } function value_121867() { // fn#121867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:1032, offset: 0x0255318a, size: 279 bytes, params: 1, frame: 16 var environment; const value = environment.__proto__; const categories = GuildCategoryStore.getCategories(env1_15); const object = {guildId: env1_15, categories: categories}; object.guild = GuildStore.getGuild(env1_15); object.memberCount = GuildMemberCountStore.getMemberCount(env1_15); const userGuildSettingsStoreBinding = UserGuildSettingsStore; object.suppressEveryone = userGuildSettingsStoreBinding.isSuppressEveryoneEnabled(env1_15); object.suppressRoles = userGuildSettingsStoreBinding.isSuppressRolesEnabled(env1_15); object.mobilePush = userGuildSettingsStoreBinding.isMobilePushEnabled(env1_15); object.muted = userGuildSettingsStoreBinding.isMuted(env1_15); object.muteConfig = userGuildSettingsStoreBinding.getMuteConfig(env1_15); object.messageNotifications = userGuildSettingsStoreBinding.getMessageNotifications(env1_15); object.channelOverrides = userGuildSettingsStoreBinding.getChannelOverrides(env1_15); object.channels = (importDefault(5099) /* metro dependency 5099: getFlattedChannelList */)(categories._categories, categories, _fun121868); return object; function _fun121868({channel}) { // fn#121868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16054:1452, offset: 0x025532a1, size: 46 bytes, params: 2, frame: 12 const type = channel.type; const value = environment.__proto__.__proto__; return isGuildSelectableChannelType(type) || type === ChannelTypes.GUILD_CATEGORY; } } } } global.__d(_fun121858, 15846, [6, 7, 15, 17, 18, 1383, 5098, 1935, 4111, 1867, 4864, 661, 5099, 566, 694, 2]) /* metro module 15846, dependencies: [6, 7, 15, 17, 18, 1383, 5098, 1935, 4111, 1867, 4864, 661, 5099, 566, 694, 2] */;