Files
discord-decomp/sources/records/ConnectedAccountRecord.tsx
2026-07-28 01:06:53 +03:00

90 lines
4.7 KiB
TypeScript

/* Metro module 5041; source: records/ConnectedAccountRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 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 Record from '../lib/Record.tsx'; /* Metro dependency 1886 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun43637(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:6, offset: 0x01157b78, size: 194 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Record;
value = _fun43641(value);
(FileImportTrackerModule).fileFinishedImporting('records/ConnectedAccountRecord.tsx');
exports.default = value;
function _isNativeReflectConstruct_43638() { // fn#43638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:148, offset: 0x01157c3a, 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_43638_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun43641(a0) { // fn#43641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:347, offset: 0x01157c98, size: 68 bytes, params: 2, frame: 15
const ConnectedAccountRecord2 = ConnectedAccountRecord;
Inherits(ConnectedAccountRecord2, a0);
return CreateClass(ConnectedAccountRecord2, [{key: 'toString', value: function() {
return this.name;
}}]);
function ConnectedAccountRecord({id, type, name, revoked, integrations, visibility, friend_sync, show_activity, verified, access_token, two_way_link, metadata, metadata_visibility}) { // fn#43642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:359, offset: 0x01157cdc, size: 318 bytes, params: 2, frame: 20
let value = environment.__proto__;
env1_0(this, ConnectedAccountRecord);
const value3 = env1_3(ConnectedAccountRecord);
value = env1_2(this, _isNativeReflectConstruct_43638() ? global.Reflect.construct(value3, [],
env1_3(this).constructor) : value3.apply(this, undefined));
value.id = id;
value.type = type;
value.name = name;
revoked = !!revoked && revoked;
value.revoked = revoked;
value.integrations = integrations || [];
visibility = !visibility ? 0 : visibility;
value.visibility = visibility;
friend_sync = !!friend_sync && friend_sync;
value.friendSync = friend_sync;
show_activity = !!show_activity && show_activity;
value.showActivity = show_activity;
verified = !!verified && verified;
value.verified = verified;
access_token = !access_token ? null : access_token;
value.accessToken = access_token;
two_way_link = !!two_way_link && two_way_link;
value.twoWayLink = two_way_link;
metadata = !metadata ? null : metadata;
value.metadata = metadata;
metadata_visibility = !metadata_visibility ? 0 : metadata_visibility;
value.metadataVisibility = metadata_visibility;
return value;
}
}
}
global.__d(_fun43637, 5041, [6, 7, 15, 17, 18, 1886,
2]) /* metro module 5041, dependencies: [6, 7, 15, 17, 18, 1886, 2] */;