Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,516 @@
|
||||
/* Metro module 6820; source: modules/emojis/records/ExpressionSourceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 5, 1886, 661, 507, 1423, 1421, 1418, 2] */
|
||||
function _fun53606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:6, offset: 0x01351645, size: 340 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.Endpoints;
|
||||
const env0_10 = constantsModule.GuildFeatures;
|
||||
const value3 = _fun53611();
|
||||
const value4 = _fun53615(value);
|
||||
value = _fun53630(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/records/ExpressionSourceRecord.tsx');
|
||||
exports.EmojiSourceDataTypes = {GUILD: 'GUILD', APPLICATION: 'APPLICATION'};
|
||||
exports.getEmojiSourceData = value3;
|
||||
exports.ExpressionSourceGuildRecord = value4;
|
||||
exports.ExpressionSourceApplicationRecord = value;
|
||||
}
|
||||
|
||||
function _callSuper_53607(a0, a1, a2) { // fn#53607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:210, offset: 0x01351799, size: 94 bytes, params: 4, frame: 20
|
||||
const value2 = env0_6(a1);
|
||||
return env0_5(a0, _isNativeReflectConstruct_53608() ? global.Reflect.construct(value2, [],
|
||||
env0_6(a0).constructor) : value2.apply(a0, undefined));
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_53608() { // fn#53608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:341, offset: 0x013517f7, 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_53608_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun53611() { // fn#53611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:612, offset: 0x01351855, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_8(_fun53613);
|
||||
return _fun53614;
|
||||
}
|
||||
|
||||
function _fun53615(a0) { // fn#53615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1040, offset: 0x01351990, size: 304 bytes, params: 2, frame: 18
|
||||
const closure = ExpressionSourceGuildRecord;
|
||||
env0_7(closure, a0);
|
||||
const binding = env0_4;
|
||||
const items2 = [{key: 'getIconURL', value: value_53617}];
|
||||
items2[1] = {key: 'getIconSource', value: value_53618};
|
||||
items2[2] = {key: 'hasFeature', value: function(a0) {
|
||||
return this.features.has(a0);
|
||||
}};
|
||||
items2[3] = {key: 'isDiscoverable', value: function() {
|
||||
return this.hasFeature(GuildFeatures.DISCOVERABLE);
|
||||
}};
|
||||
const env0_0 = env0_8(_fun53623);
|
||||
return binding(closure, items2, [{key: 'getGuildFromEmojiId', value: value_53624}, {key: '_mapCommon',
|
||||
value: value_53625}, {key: 'createFromGuildRecord', value: value_53626}, {key: 'createFromDiscoverableGuild',
|
||||
value: value_53627}, {key: 'createFromServer', value: value_53628}, {key: 'createFromGuildType',
|
||||
value: value_53629}]);
|
||||
}
|
||||
|
||||
function _fun53630(a0) { // fn#53630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3396, offset: 0x01351eed, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = ExpressionSourceApplicationRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, null, [{key: 'createFromServer', value: value_53632}]);
|
||||
}
|
||||
|
||||
function* _fun53613(a0) { // fn#53613, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:632, offset: 0x0135187e, size: 274 bytes, params: 2, frame: 20
|
||||
var type;
|
||||
var r1;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object2;
|
||||
var EMOJI_SOURCE_DATA;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var body;
|
||||
var value10;
|
||||
var GUILD;
|
||||
var value11;
|
||||
var value12;
|
||||
var APPLICATION;
|
||||
var createFromServer;
|
||||
var application;
|
||||
var guild;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
const value3 = null;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort58: while (true) {
|
||||
exceptionLanding57: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value3;
|
||||
break reduciblePort58;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
HTTP = value5.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'timeout': 5000, 'rejectWithError': true};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
EMOJI_SOURCE_DATA = binding.EMOJI_SOURCE_DATA;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(EMOJI_SOURCE_DATA, binding, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.url = value6;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
yield value7;
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
if (value9) {
|
||||
return value8;
|
||||
}
|
||||
try {
|
||||
body = value8.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value10 = value3 == body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin25: while (true) {
|
||||
if (value10) {
|
||||
type = value;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
binding = env2_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
GUILD = binding.GUILD;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value11 = type === GUILD;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
if (value11) {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_13;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
createFromServer = binding.createFromServer;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
guild = body.guild;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(createFromServer, binding, [guild]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.guild = value;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.type = type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
r1 = object2;
|
||||
} else {
|
||||
try {
|
||||
value12 = value3 == body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin33: while (true) {
|
||||
if (value12) {
|
||||
type = value;
|
||||
break reducibleJoin33;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin33;
|
||||
}
|
||||
try {
|
||||
binding = env2_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
APPLICATION = binding.APPLICATION;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = type !== APPLICATION;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin55: while (true) {
|
||||
if (value) {
|
||||
r1 = value3;
|
||||
break reducibleJoin55;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_14;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
createFromServer = binding.createFromServer;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
application = body.application;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(createFromServer, binding, [application]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.application = value;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.type = type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
r1 = object2;
|
||||
break reducibleJoin55;
|
||||
}
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function ExpressionSourceGuildRecord({id, name, icon, description, features, premiumTier, premiumSubscriberCount, presenceCount, memberCount, emojis}) { // fn#53616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1052, offset: 0x01351ac0, size: 156 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, ExpressionSourceGuildRecord);
|
||||
value = _callSuper_53607(this, ExpressionSourceGuildRecord);
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
value.icon = icon;
|
||||
value.description = description;
|
||||
value.features = features;
|
||||
value.premiumTier = premiumTier;
|
||||
value.premiumSubscriberCount = premiumSubscriberCount;
|
||||
value.presenceCount = presenceCount;
|
||||
value.memberCount = memberCount;
|
||||
value.emojis = emojis;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_53617(a0) { // fn#53617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1529, offset: 0x01351b5c, size: 82 bytes, params: 2, frame: 14
|
||||
let value = a1;
|
||||
const r3 = value !== undefined ? value : false;
|
||||
value = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: this.id, size: a0,
|
||||
icon: this.icon, canAnimate: r3});
|
||||
}
|
||||
|
||||
function value_53618(a0) { // fn#53618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1655, offset: 0x01351bae, size: 69 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
let value = a1;
|
||||
const env0_1 = a0;
|
||||
const r3 = value !== undefined ? value : false;
|
||||
value = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(r3, _fun53619);
|
||||
}
|
||||
|
||||
function* _fun53623(a0) { // fn#53623, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1992, offset: 0x01351c6a, size: 89 bytes, params: 2, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = undefined;
|
||||
yield env2_12(a0);
|
||||
const value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
const value6 = null;
|
||||
return value6 != value4 ? (value6 == value4 ? value3 : value4.type) !== env2_11.GUILD ? value6 : value4.guild : value6;
|
||||
}
|
||||
|
||||
function value_53625({id, name, icon, description, features}) { // fn#53625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2177, offset: 0x01351cc3, size: 90 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
object2.icon = icon;
|
||||
object2.description = description;
|
||||
const value = environment.__proto__;
|
||||
object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_53626(a0) { // fn#53626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2335, offset: 0x01351d1d, size: 114 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = a0.premiumTier;
|
||||
object2['premiumSubscriberCount'] = a0.premiumSubscriberCount;
|
||||
object2['presenceCount'] = null;
|
||||
object2['memberCount'] = null;
|
||||
object2['emojis'] = null;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53627(a0) { // fn#53627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2599, offset: 0x01351d8f, size: 126 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = null;
|
||||
object2['premiumSubscriberCount'] = a0.premiumSubscriptionCount;
|
||||
object2['presenceCount'] = a0.presenceCount;
|
||||
object2['memberCount'] = a0.memberCount;
|
||||
object2['emojis'] = a0.emojis;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53628(a0) { // fn#53628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2869, offset: 0x01351e0d, size: 130 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = a0.premium_tier;
|
||||
object2['premiumSubscriberCount'] = a0.premium_subscription_count;
|
||||
object2['presenceCount'] = a0.approximate_presence_count;
|
||||
object2['memberCount'] = a0.approximate_member_count;
|
||||
object2['emojis'] = a0.emojis;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53629(a0) { // fn#53629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3180, offset: 0x01351e8f, size: 94 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
let value = a0;
|
||||
if (value instanceof ExpressionSourceGuildRecord) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
if ((require(1418) /* metro dependency 1418: GuildRecordUtils */).isGuildRecord(value)) {
|
||||
value = ExpressionSourceGuildRecord.createFromGuildRecord(value);
|
||||
r1 = value;
|
||||
} else {
|
||||
value = ExpressionSourceGuildRecord.createFromDiscoverableGuild(value);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ExpressionSourceApplicationRecord({id, name}) { // fn#53631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3408, offset: 0x01351f34, size: 62 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, ExpressionSourceApplicationRecord);
|
||||
value = _callSuper_53607(this, ExpressionSourceApplicationRecord);
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_53632({id, name}) { // fn#53632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3706, offset: 0x01351f72, size: 55 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
const value = Object.create(ExpressionSourceApplicationRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceApplicationRecord}});
|
||||
const expressionSourceApplicationRecord = new ExpressionSourceApplicationRecord(object2);
|
||||
return expressionSourceApplicationRecord instanceof Object ? expressionSourceApplicationRecord : value;
|
||||
}
|
||||
|
||||
function _fun53619(a0) { // fn#53619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1722, offset: 0x01351bf3, size: 81 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getGuildIconSource = value.getGuildIconSource;
|
||||
const binding = env0_0;
|
||||
return Reflect.apply(getGuildIconSource, value, [{id: binding.id, size: env0_1, icon: binding.icon,
|
||||
canAnimate: a0}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user