Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,87 @@
|
||||
/* Metro module 1858; source: modules/collectibles/utils/mappers.tsx; dependencies: [2] */
|
||||
function _fun20028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1985:6, offset: 0x00ebcd67, size: 109 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = function(a0) {
|
||||
return typeof a0.skuId === 'string' || typeof a0.skuId === 'number' ? global.String(a0.skuId) : typeof a0.sku_id === 'string' ? global.String(a0.sku_id) : typeof a0.sku_id !== 'number' ? null : global.String(a0.sku_id);
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/utils/mappers.tsx');
|
||||
exports.parseSkuIdFromServerData = closure;
|
||||
exports.parseServerUserCollectibles = parseServerUserCollectibles;
|
||||
}
|
||||
|
||||
function parseServerUserNameplate(a0) { // fn#20029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1985:266, offset: 0x00ebcdd4, size: 273 bytes, params: 2, frame: 14
|
||||
var r3;
|
||||
var palette;
|
||||
var object2;
|
||||
if (typeof a0 === 'object') {
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
var value;
|
||||
value = parseSkuIdFromServerData(a0);
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
if ('label' in a0) {
|
||||
if (typeof a0.label !== 'string') {
|
||||
return null;
|
||||
}
|
||||
if ('palette' in a0) {
|
||||
palette = a0.palette;
|
||||
if (typeof palette !== 'string') {
|
||||
return null;
|
||||
}
|
||||
object2 = {skuId: value};
|
||||
object2.label = a0.label;
|
||||
palette = a0.palette;
|
||||
object2.palette = palette;
|
||||
value = 'asset' in a0;
|
||||
r3 = value && typeof a0.asset === 'string';
|
||||
if (r3) {
|
||||
object2.asset = a0.asset;
|
||||
}
|
||||
value = 'expiresAt' in a0;
|
||||
r3 = value && typeof a0.expiresAt === 'number';
|
||||
if (r3) {
|
||||
object2.expiresAt = a0.expiresAt;
|
||||
}
|
||||
value = 'expires_at' in a0;
|
||||
r3 = value && typeof a0.expires_at === 'number';
|
||||
if (r3) {
|
||||
object2.expiresAt = a0.expires_at;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function parseServerUserCollectibles(a0) { // fn#20031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1985:935, offset: 0x00ebcf51, size: 90 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
var r0;
|
||||
var object2;
|
||||
const value = null;
|
||||
if (typeof a0 !== 'object') {
|
||||
r0 = value;
|
||||
} else if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
if ('nameplate' in a0) {
|
||||
if (typeof a0.nameplate !== 'object') {
|
||||
r1 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.nameplate = parseServerUserNameplate(a0.nameplate);
|
||||
r1 = object2;
|
||||
}
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user