/* Metro module 8047; source: modules/app_launcher/AppLauncherStore.tsx; dependencies: [6, 7, 15, 17, 18, 8048, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as AppLauncherTypesModule from './AppLauncherTypes.tsx'; /* Metro dependency 8048 */ function _fun63795(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:6, offset: 0x01b904bf, size: 426 bytes, params: 8, frame: 22 const env0_0 = require; const APP_LAUNCHER_DISMISS2 = APP_LAUNCHER_DISMISS; const closure2 = function() { var object = {}; object.closeReason = require(dependencyMap[5]).AppLauncherCloseReason.DISMISSED; APP_LAUNCHER_DISMISS(object); }; const closure3 = function() { var object = {}; object.closeReason = require(dependencyMap[5]).AppLauncherCloseReason.COMMAND; APP_LAUNCHER_DISMISS(object); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {'show': false, 'entrypoint': null, 'lastShownEntrypoint': null, 'activeViewType': null, 'activeChannelId': null}; const AppLauncherEntrypoint = (AppLauncherTypesModule).AppLauncherEntrypoint; let NONE = AppLauncherEntrypoint.NONE; object.entrypoint = NONE; NONE = AppLauncherEntrypoint.NONE; object.lastShownEntrypoint = NONE; const AppLauncherCloseReason = (AppLauncherTypesModule).AppLauncherCloseReason; const DISMISSED = AppLauncherCloseReason.DISMISSED; object.closeReason = DISMISSED; object.initialState = undefined; const Store = (Flux).Store; let value = _fun63802(Store); value.displayName = 'AppLauncherStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {APP_LAUNCHER_SHOW: APP_LAUNCHER_SHOW, APP_LAUNCHER_DISMISS: APP_LAUNCHER_DISMISS2, CONNECTION_OPEN: closure2, LOGOUT: closure2, CHANNEL_SELECT: closure2, APPLICATION_COMMAND_SET_ACTIVE_COMMAND: closure3, APP_LAUNCHER_SET_ACTIVE_COMMAND: closure3}); (FileImportTrackerModule).fileFinishedImporting('modules/app_launcher/AppLauncherStore.tsx'); exports.default = value; function _isNativeReflectConstruct_63796() { // fn#63796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:148, offset: 0x01b90669, size: 94 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_63796_isNativeReflectConstruct = function() { return !!result; })(); } function APP_LAUNCHER_DISMISS({closeReason}) { // fn#63799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:572, offset: 0x01b906c7, size: 143 bytes, params: 2, frame: 15 const r3 = closeReason !== undefined ? closeReason : (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherCloseReason.DISMISSED; env0_7.show = false; const binding = env0_7; const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint; const NONE = AppLauncherEntrypoint.NONE; binding.entrypoint = NONE; env0_7.closeReason = r3; env0_7.initialState = undefined; env0_7.activeChannelId = null; return true; } function _fun63802(a0) { // fn#63802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:788, offset: 0x01b907c4, size: 256 bytes, params: 2, frame: 16 const AppLauncherStore2 = AppLauncherStore; Inherits(AppLauncherStore2, a0); return CreateClass(AppLauncherStore2, [{key: 'initialize', value: function() { }}, {key: 'shouldShowPopup', value: value_63805}, {key: 'shouldShowModal', value: value_63806}, {key: 'entrypoint', value: value_63807}, {key: 'lastShownEntrypoint', value: value_63808}, {key: 'activeViewType', value: value_63809}, {key: 'activeChannelId', value: value_63810}, {key: 'closeReason', value: value_63811}, {key: 'initialState', value: value_63812}]); function AppLauncherStore() { // fn#63803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:800, offset: 0x00c6223c, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_2(this, AppLauncherStore); const value3 = env1_5(AppLauncherStore); return env1_4(this, _isNativeReflectConstruct_63796() ? global.Reflect.construct(value3, arguments, env1_5(this).constructor) : value3.apply(this, arguments)); } function value_63805() { // fn#63805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1141, offset: 0x01b908c4, size: 66 bytes, params: 1, frame: 13 const value = environment.__proto__; return env1_7.show && env1_7.entrypoint === (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.TEXT; } function value_63806() { // fn#63806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1248, offset: 0x01b90906, size: 66 bytes, params: 1, frame: 13 const value = environment.__proto__; return env1_7.show && env1_7.entrypoint === (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint.VOICE; } function value_63807() { // fn#63807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1351, offset: 0x01b90948, size: 15 bytes, params: 1, frame: 1 return env1_7.entrypoint; } function value_63808() { // fn#63808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1417, offset: 0x01b90957, size: 15 bytes, params: 1, frame: 1 return env1_7.lastShownEntrypoint; } function value_63809() { // fn#63809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1487, offset: 0x01b90966, size: 15 bytes, params: 1, frame: 1 return env1_7.activeViewType; } function value_63810() { // fn#63810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1553, offset: 0x01b90975, size: 27 bytes, params: 1, frame: 3 let value = environment.__proto__; const activeChannelId = env1_7.activeChannelId; value = null; return value != activeChannelId ? activeChannelId : value; } function value_63811() { // fn#63811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1639, offset: 0x01b90990, size: 15 bytes, params: 1, frame: 1 return env1_7.closeReason; } function value_63812() { // fn#63812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:1699, offset: 0x01b9099f, size: 15 bytes, params: 1, frame: 1 return env1_7.initialState; } } function APP_LAUNCHER_SHOW({entrypoint, activeViewType, initialState, activeChannelId}) { // fn#63813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8225:2034, offset: 0x01b909ae, size: 138 bytes, params: 2, frame: 17 env0_7.show = true; env0_7.entrypoint = entrypoint; env0_7.lastShownEntrypoint = entrypoint; const binding = env0_7; const AppLauncherCloseReason = (AppLauncherTypesModule).AppLauncherCloseReason; const DISMISSED = AppLauncherCloseReason.DISMISSED; binding.closeReason = DISMISSED; env0_7.activeViewType = activeViewType; env0_7.activeChannelId = activeChannelId; env0_7.initialState = initialState; return true; } } global.__d(_fun63795, 8047, [6, 7, 15, 17, 18, 8048, 566, 694, 2]) /* metro module 8047, dependencies: [6, 7, 15, 17, 18, 8048, 566, 694, 2] */;