89 lines
4.8 KiB
TypeScript
89 lines
4.8 KiB
TypeScript
/* Metro module 7237; source: records/LinkRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 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 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
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});
|
|
let value = Record;
|
|
value = _fun58099(value);
|
|
(FileImportTrackerModule).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 LinkRecord2 = LinkRecord;
|
|
Inherits(LinkRecord2, a0);
|
|
return CreateClass(LinkRecord2, 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 object = {};
|
|
object.id = 'invite:' + a0;
|
|
let value = environment.__proto__;
|
|
object.path = Routes.INVITE(a0);
|
|
object.inviteCode = a0;
|
|
value = Object.create(LinkRecord.prototype, {constructor: {value: LinkRecord}});
|
|
const linkRecord = new LinkRecord(object);
|
|
return linkRecord instanceof Object ? linkRecord : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun58095, 7237, [6, 7, 15, 17, 18, 1886, 661,
|
|
2]) /* metro module 7237, dependencies: [6, 7, 15, 17, 18, 1886, 661, 2] */;
|