Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,151 @@
|
||||
/* Metro module 8150; source: records/InviteRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 3738, 2] */
|
||||
function _fun65348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:6, offset: 0x01bccb38, size: 202 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun65352(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/InviteRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_65349() { // fn#65349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:148, offset: 0x01bccc02, 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_65349_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun65352(a0) { // fn#65352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:347, offset: 0x01bccc60, size: 142 bytes, params: 2, frame: 17
|
||||
const closure = InviteRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'isExpired', value: value_65354}, {key: 'getExpiresAt', value: value_65355},
|
||||
{key: 'toString', value: function() {
|
||||
return this.code;
|
||||
}}], [{key: 'createFromServer', value: value_65357}]);
|
||||
}
|
||||
|
||||
function InviteRecord({code, temporary, revoked, uses, maxUses, maxAge, createdAt, channel, guild, inviter, targetType, targetUser, targetApplication, type, flags, roles}) { // fn#65353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:359, offset: 0x01bcccee, size: 398 bytes, params: 2, frame: 20
|
||||
var r2;
|
||||
var date;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, InviteRecord);
|
||||
const value3 = env1_5(InviteRecord);
|
||||
value = env1_4(this, _isNativeReflectConstruct_65349() ? global.Reflect.construct(value3, [],
|
||||
env1_5(this).constructor) : value3.apply(this, undefined));
|
||||
code = !code ? '' : code;
|
||||
value.code = code;
|
||||
temporary = !!temporary && temporary;
|
||||
value.temporary = temporary;
|
||||
revoked = !!revoked && revoked;
|
||||
value.revoked = revoked;
|
||||
uses = !uses ? 0 : uses;
|
||||
value.uses = uses;
|
||||
maxUses = !maxUses ? 0 : maxUses;
|
||||
value.maxUses = maxUses;
|
||||
maxAge = !maxAge ? 0 : maxAge;
|
||||
value.maxAge = maxAge;
|
||||
if (createdAt) {
|
||||
r2 = createdAt;
|
||||
} else {
|
||||
date = new global.Date();
|
||||
}
|
||||
value.createdAt = r2;
|
||||
value.channel = channel;
|
||||
value.guild = guild;
|
||||
inviter = !inviter ? null : inviter;
|
||||
value.inviter = inviter;
|
||||
targetType = !targetType ? null : targetType;
|
||||
value.targetType = targetType;
|
||||
targetUser = !targetUser ? null : targetUser;
|
||||
value.targetUser = targetUser;
|
||||
targetApplication = !targetApplication ? null : targetApplication;
|
||||
value.targetApplication = targetApplication;
|
||||
type = !type ? null : type;
|
||||
value.type = type;
|
||||
flags = !flags ? 0 : flags;
|
||||
value.flags = flags;
|
||||
value.roles = roles || [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_65354() { // fn#65354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1033, offset: 0x01bcce7c, size: 105 bytes, params: 1, frame: 14
|
||||
var value;
|
||||
var isBefore;
|
||||
var Date;
|
||||
const maxAge = this.maxAge;
|
||||
if (maxAge > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3738) /* metro dependency 3738 */;
|
||||
value = value(this.createdAt);
|
||||
value = value.add(maxAge, 'seconds');
|
||||
isBefore = value.isBefore;
|
||||
Date = global.Date;
|
||||
if (Reflect.apply(isBefore, value, [Date.now()])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_65355() { // fn#65355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1178, offset: 0x01bccee5, size: 97 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
const maxAge = this.maxAge;
|
||||
let value = Infinity;
|
||||
if (maxAge > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3738) /* metro dependency 3738 */;
|
||||
value = value(this.createdAt);
|
||||
value = value.add(this.maxAge, 'seconds');
|
||||
value = value.toDate();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_65357(a0) { // fn#65357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1360, offset: 0x01bccf46, size: 181 bytes, params: 2, frame: 17
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['maxUses'] = a0.max_uses;
|
||||
object2['maxAge'] = a0.max_age;
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
value = (importDefault(3738) /* metro dependency 3738 */)(a0.created_at ?? value);
|
||||
object2['createdAt'] = value;
|
||||
object2['targetType'] = a0.target_type;
|
||||
object2['targetUser'] = a0.target_user;
|
||||
object2['targetApplication'] = a0.target_application;
|
||||
value = Object.create(InviteRecord.prototype, {constructor: {value: InviteRecord}});
|
||||
const inviteRecord = new InviteRecord(object2);
|
||||
return inviteRecord instanceof Object ? inviteRecord : value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user