Files
discord-decomp/sources/modules/user_application_identity/UserApplicationIdentityManager.tsx
T
2026-07-27 16:20:00 +03:00

83 lines
3.8 KiB
TypeScript

/* Metro module 16214; source: modules/user_application_identity/UserApplicationIdentityManager.tsx; dependencies: [7, 6, 15, 17, 18, 10369, 4860, 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});
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun125299(value);
value = new value();
(require(2) /* metro dependency 2 */).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 closure = UserApplicationIdentityManager;
env0_6(closure, a0);
return env0_2(closure);
}
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 items = [];
arraySpread(items, value, 0, items);
value = env1_5(UserApplicationIdentityManager);
binding = env1_4;
if (_isNativeReflectConstruct_125295()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_5(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
const handleUserApplicationIdentityGatewayEventBinding = handleUserApplicationIdentityGatewayEvent;
value.actions = {USER_APPLICATION_IDENTITY_UPDATE: handleUserApplicationIdentityGatewayEventBinding,
USER_APPLICATION_IDENTITY_REMOVE: handleUserApplicationIdentityGatewayEventBinding};
return value;
}