83 lines
4.0 KiB
TypeScript
83 lines
4.0 KiB
TypeScript
/* Metro module 7237; source: records/LinkRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 2] */
|
|
function _fun58095(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:6, offset: 0x016bf872, size: 224 bytes, params: 8, frame: 19
|
|
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 env0_5 = (require(661) /* metro dependency 661: Constants */).Routes;
|
|
value = _fun58099(value);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/LinkRecord.tsx');
|
|
exports.default = value;
|
|
exports.LinkRecord = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_58096() { // fn#58096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:175, offset: 0x016bf952, 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_58096_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun58099(a0) { // fn#58099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:374, offset: 0x016bf9b0, size: 98 bytes, params: 2, frame: 17
|
|
const closure = LinkRecord;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, null, [{key: 'fromPath', value: value_58101}, {key: 'fromInviteCode', value: value_58102}]);
|
|
}
|
|
|
|
function LinkRecord({id, path, inviteCode}) { // fn#58100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:386, offset: 0x016bfa12, size: 146 bytes, params: 2, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_0(this, LinkRecord);
|
|
const value3 = env1_3(LinkRecord);
|
|
value = env1_2(this, _isNativeReflectConstruct_58096() ? global.Reflect.construct(value3, [],
|
|
env1_3(this).constructor) : value3.apply(this, undefined));
|
|
value.id = id;
|
|
value.path = path;
|
|
value.inviteCode = inviteCode;
|
|
return value;
|
|
}
|
|
|
|
function value_58101(a0) { // fn#58101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:708, offset: 0x016bfaa4, size: 46 bytes, params: 2, frame: 12
|
|
const value = Object.create(LinkRecord.prototype, {constructor: {value: LinkRecord}});
|
|
const linkRecord = new LinkRecord({id: a0, path: a0});
|
|
return linkRecord instanceof Object ? linkRecord : value;
|
|
}
|
|
|
|
function value_58102(a0) { // fn#58102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:787, offset: 0x016bfad2, size: 93 bytes, params: 2, frame: 13
|
|
const object2 = {};
|
|
object2.id = 'invite:' + a0;
|
|
let value = environment.__proto__;
|
|
object2.path = Routes.INVITE(a0);
|
|
object2.inviteCode = a0;
|
|
value = Object.create(LinkRecord.prototype, {constructor: {value: LinkRecord}});
|
|
const linkRecord = new LinkRecord(object2);
|
|
return linkRecord instanceof Object ? linkRecord : value;
|
|
}
|
|
|