88 lines
4.6 KiB
TypeScript
88 lines
4.6 KiB
TypeScript
/* Metro module 16214; source: modules/user_application_identity/UserApplicationIdentityManager.tsx; dependencies: [7, 6, 15, 17, 18, 10369, 4860, 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 AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun125294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:6, offset: 0x025d3f03, size: 237 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const handleUserApplicationIdentityGatewayEvent = function(a0) {
|
|
var useUserApplicationIdentities = require(dependencyMap[5]).useUserApplicationIdentities;
|
|
useUserApplicationIdentities.refetch(a0.user_id);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun125299(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_application_identity/UserApplicationIdentityManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_125295() { // fn#125295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:148, offset: 0x025d3ff0, 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_125295_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun125299(a0) { // fn#125299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:461, offset: 0x025d4087, size: 42 bytes, params: 2, frame: 14
|
|
const UserApplicationIdentityManager2 = UserApplicationIdentityManager;
|
|
Inherits(UserApplicationIdentityManager2, a0);
|
|
return CreateClass(UserApplicationIdentityManager2);
|
|
function UserApplicationIdentityManager(a0) { // fn#125300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16422:473, offset: 0x025d40b1, size: 150 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_3;
|
|
binding(this, UserApplicationIdentityManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(UserApplicationIdentityManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_125295()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
const handleUserApplicationIdentityGatewayEventBinding = handleUserApplicationIdentityGatewayEvent;
|
|
value.actions = {USER_APPLICATION_IDENTITY_UPDATE: handleUserApplicationIdentityGatewayEventBinding,
|
|
USER_APPLICATION_IDENTITY_REMOVE: handleUserApplicationIdentityGatewayEventBinding};
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun125294, 16214, [7, 6, 15, 17, 18, 10369, 4860,
|
|
2]) /* metro module 16214, dependencies: [7, 6, 15, 17, 18, 10369, 4860, 2] */;
|