59 lines
2.3 KiB
React
59 lines
2.3 KiB
React
/* Metro module 6764; source: unknown; dependencies: [27] */
|
|
function _fun53293(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6942:6, offset: 0x013447d0, size: 79 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = (require(27) /* metro dependency 27 */).Image;
|
|
exports.parsePossibleSources = parsePossibleSources;
|
|
}
|
|
|
|
function parsePossibleSources(a0) { // fn#53294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6942:135, offset: 0x0134481f, size: 172 bytes, params: 2, frame: 15
|
|
var r1;
|
|
var r0;
|
|
var object2;
|
|
const uri = a0.uri;
|
|
let value = typeof a0;
|
|
if (value === 'string') {
|
|
r0 = {sourceName: a0};
|
|
} else if (value !== 'object') {
|
|
if (value !== 'object') {
|
|
r1 = value !== 'number' ? undefined : {sourceDotLottieURI: Image.resolveAssetSource(a0).uri};
|
|
} else if (uri) {
|
|
value = uri.includes('.lottie');
|
|
object2 = {};
|
|
if (value) {
|
|
object2.sourceDotLottieURI = uri;
|
|
r1 = object2;
|
|
} else {
|
|
object2.sourceURL = uri;
|
|
r1 = object2;
|
|
}
|
|
} else {
|
|
r1 = value !== 'number' ? undefined : {sourceDotLottieURI: Image.resolveAssetSource(a0).uri};
|
|
}
|
|
r0 = r1;
|
|
} else if (uri) {
|
|
if (value !== 'object') {
|
|
r1 = value !== 'number' ? undefined : {sourceDotLottieURI: Image.resolveAssetSource(a0).uri};
|
|
} else if (uri) {
|
|
value = uri.includes('.lottie');
|
|
object2 = {};
|
|
if (value) {
|
|
object2.sourceDotLottieURI = uri;
|
|
r1 = object2;
|
|
} else {
|
|
object2.sourceURL = uri;
|
|
r1 = object2;
|
|
}
|
|
} else {
|
|
r1 = value !== 'number' ? undefined : {sourceDotLottieURI: Image.resolveAssetSource(a0).uri};
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
object2 = {};
|
|
object2.sourceJson = global.JSON.stringify(a0);
|
|
r0 = object2;
|
|
}
|
|
return r0;
|
|
}
|
|
|