148 lines
8.0 KiB
TypeScript
148 lines
8.0 KiB
TypeScript
/* Metro module 8047; source: modules/app_launcher/AppLauncherStore.tsx; dependencies: [6, 7, 15, 17, 18, 8048, 566, 694, 2] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const closure = 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});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
object2 = {'show': false, 'entrypoint': null, 'lastShownEntrypoint': null, 'activeViewType': null,
|
|
'activeChannelId': null};
|
|
const AppLauncherEntrypoint = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherEntrypoint;
|
|
let NONE = AppLauncherEntrypoint.NONE;
|
|
object2.entrypoint = NONE;
|
|
NONE = AppLauncherEntrypoint.NONE;
|
|
object2.lastShownEntrypoint = NONE;
|
|
const AppLauncherCloseReason = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherCloseReason;
|
|
const DISMISSED = AppLauncherCloseReason.DISMISSED;
|
|
object2.closeReason = DISMISSED;
|
|
object2.initialState = undefined;
|
|
const Store = (importDefault(566) /* metro dependency 566: 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: closure, CONNECTION_OPEN: closure2, LOGOUT: closure2, CHANNEL_SELECT: closure2,
|
|
APPLICATION_COMMAND_SET_ACTIVE_COMMAND: closure3, APP_LAUNCHER_SET_ACTIVE_COMMAND: closure3});
|
|
(require(2) /* metro dependency 2 */).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 closure = AppLauncherStore;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{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 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 = (require(8048) /* metro dependency 8048: AppLauncherTypes */).AppLauncherCloseReason;
|
|
const DISMISSED = AppLauncherCloseReason.DISMISSED;
|
|
binding.closeReason = DISMISSED;
|
|
env0_7.activeViewType = activeViewType;
|
|
env0_7.activeChannelId = activeChannelId;
|
|
env0_7.initialState = initialState;
|
|
return true;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|