80 lines
3.7 KiB
TypeScript
80 lines
3.7 KiB
TypeScript
/* Metro module 4626; source: records/InteractionRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1885, 2] */
|
|
function _fun39793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#39793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:6, offset: 0x010eafd1, size: 210 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
|
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
|
value = _fun39797(value);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/InteractionRecord.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_39794() { // fn#39794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:168, offset: 0x010eb0a3, 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_39794_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun39797(a0) { // fn#39797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:367, offset: 0x010eb101, size: 71 bytes, params: 2, frame: 16
|
|
const closure = InteractionRecord;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, null, [{key: 'createFromServer', value: value_39799}]);
|
|
}
|
|
|
|
function InteractionRecord(a0) { // fn#39798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:379, offset: 0x010eb148, size: 178 bytes, params: 2, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_0(this, InteractionRecord);
|
|
const value3 = env1_3(InteractionRecord);
|
|
value = env1_2(this, _isNativeReflectConstruct_39794() ? global.Reflect.construct(value3, [],
|
|
env1_3(this).constructor) : value3.apply(this, undefined));
|
|
value.id = a0.id;
|
|
value.name = a0.name;
|
|
value.type = a0.type;
|
|
const user = a0.user;
|
|
value.user = user;
|
|
value.displayName = a0.name_localized ?? a0.name;
|
|
return value;
|
|
}
|
|
|
|
function value_39799(a0) { // fn#39799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:798, offset: 0x010eb1fa, size: 88 bytes, params: 2, frame: 14
|
|
const object2 = {};
|
|
copyDataProperties(object2, a0, undefined);
|
|
const value = environment.__proto__;
|
|
const user = a0.user;
|
|
let userRecord = new UserRecord(user);
|
|
object2['user'] = userRecord;
|
|
userRecord = Object.create(InteractionRecord.prototype, {constructor: {value: InteractionRecord}});
|
|
const interactionRecord = new InteractionRecord(object2);
|
|
return interactionRecord instanceof Object ? interactionRecord : userRecord;
|
|
}
|
|
|