Files
discord-decomp/_bundle/Module5510.js
T
2026-11-01 12:12:55 +02:00

29 lines
674 B
JavaScript

// Metro module 5510 (f5511).
import { Image as Image2 } from "react-native";
export function parsePossibleSources(a0) {
let r0;
L16: {
const uri = a0.uri;
if (typeof a0 === "string") {
r0 = {
sourceName: a0
};
} else {
if (typeof a0 === "object" && !uri) {
r0 = {
sourceJson: JSON.stringify(a0)
};
break L16;
}
r0 = typeof a0 === "object" && uri ? uri.includes(".lottie") ? {
sourceDotLottieURI: uri
} : {
sourceURL: uri
} : typeof a0 === "number" ? {
sourceDotLottieURI: Image2.resolveAssetSource(a0).uri
} : void 0;
}
}
return r0;
}