86 lines
4.6 KiB
TypeScript
86 lines
4.6 KiB
TypeScript
/* Metro module 4626; source: records/InteractionRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1885, 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 UserRecord from './UserRecord.tsx'; /* Metro dependency 1885 */
|
|
import Record from '../lib/Record.tsx'; /* Metro dependency 1886 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
|
|
let value = Record;
|
|
value = _fun39797(value);
|
|
(FileImportTrackerModule).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 InteractionRecord2 = InteractionRecord;
|
|
Inherits(InteractionRecord2, a0);
|
|
return CreateClass(InteractionRecord2, 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 object = {};
|
|
copyDataProperties(object, a0, undefined);
|
|
const value = environment.__proto__;
|
|
const userRecordBinding = UserRecord;
|
|
const user = a0.user;
|
|
let userRecord2 = new userRecordBinding(user);
|
|
object['user'] = userRecord2;
|
|
userRecord2 = Object.create(InteractionRecord.prototype, {constructor: {value: InteractionRecord}});
|
|
const interactionRecord = new InteractionRecord(object);
|
|
return interactionRecord instanceof Object ? interactionRecord : userRecord2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun39793, 4626, [6, 7, 15, 17, 18, 1886, 1885,
|
|
2]) /* metro module 4626, dependencies: [6, 7, 15, 17, 18, 1886, 1885, 2] */;
|