Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
36 lines
912 B
JavaScript
36 lines
912 B
JavaScript
// Module ID: 5614
|
|
// Function ID: 5615
|
|
// Dependencies: [17]
|
|
// Exports: parsePossibleSources
|
|
|
|
// Module 5614
|
|
import _mod17 from "module_17" /* 17 */;
|
|
|
|
const Image = _mod17.Image;
|
|
|
|
export const parsePossibleSources = function parsePossibleSources(source) {
|
|
const uri = source.uri;
|
|
if (typeof source === "string") {
|
|
const obj2 = { sourceName: source };
|
|
let obj = obj2;
|
|
} else {
|
|
if (typeof source === "object") {
|
|
if (!uri) {
|
|
obj = { sourceJson: null };
|
|
const _JSON = JSON;
|
|
obj.sourceJson = JSON.stringify(source);
|
|
}
|
|
}
|
|
if (typeof source !== "object") {
|
|
if (typeof source === "number") {
|
|
const obj3 = { sourceDotLottieURI: Image.resolveAssetSource(source).uri };
|
|
}
|
|
}
|
|
if (uri.includes(".lottie")) {
|
|
const obj4 = { sourceDotLottieURI: uri };
|
|
} else {
|
|
const obj5 = { sourceURL: uri };
|
|
}
|
|
}
|
|
return obj;
|
|
};
|