94 lines
4.8 KiB
TypeScript
94 lines
4.8 KiB
TypeScript
/* Metro module 1368; source: modules/dismissible_content/DCFEventStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 */
|
|
|
|
function _fun15728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:6, offset: 0x00e3d988, size: 353 bytes, params: 8, frame: 20
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {DC_SHOWN: 0};
|
|
object[0] = 'DC_SHOWN';
|
|
object.DC_SHOW_REQUEST = 1;
|
|
object[1] = 'DC_SHOW_REQUEST';
|
|
object.DC_DISMISSED = 2;
|
|
object[2] = 'DC_DISMISSED';
|
|
let env0_6 = [];
|
|
const Store = (Flux).Store;
|
|
let value = _fun15732(Store);
|
|
value.displayName = 'DCFEventStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
|
env0_6 = [];
|
|
}, DCF_EVENT_LOGGED: function(a0) {
|
|
a0.eventType;
|
|
a0.dismissibleContent;
|
|
}, DCF_HANDLE_DC_DISMISSED: DCF_HANDLE_DC_DISMISSED, DCF_HANDLE_DC_SHOWN: DCF_HANDLE_DC_SHOWN});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/DCFEventStore.tsx');
|
|
exports.default = value;
|
|
exports.DCFEventTypes = object;
|
|
function _isNativeReflectConstruct_15729() { // fn#15729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:148, offset: 0x00e3dae9, 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_15729_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun15732(a0) { // fn#15732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:483, offset: 0x00e3db47, size: 70 bytes, params: 2, frame: 15
|
|
const DCFEventStore2 = DCFEventStore;
|
|
Inherits(DCFEventStore2, a0);
|
|
return CreateClass(DCFEventStore2, [{key: 'getDCFEvents', value: value_15734}]);
|
|
function DCFEventStore() { // fn#15733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:495, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, DCFEventStore);
|
|
const value3 = env1_3(DCFEventStore);
|
|
return env1_2(this, _isNativeReflectConstruct_15729() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_15734() { // fn#15734, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
|
|
return env1_6;
|
|
}
|
|
|
|
}
|
|
|
|
function DCF_HANDLE_DC_DISMISSED(a0) { // fn#15737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:971, offset: 0x00e3dc20, size: 26 bytes, params: 2, frame: 1
|
|
a0.dismissibleContent;
|
|
env0_5.DC_DISMISSED;
|
|
}
|
|
|
|
function DCF_HANDLE_DC_SHOWN(a0) { // fn#15738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:1034, offset: 0x00e3dc3a, size: 26 bytes, params: 2, frame: 1
|
|
a0.dismissibleContent;
|
|
env0_5.DC_SHOWN;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun15728, 1368, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 1368, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|