decord/source/5457_parsePossibleSources.js

41 lines
919 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5457
2026-07-27 11:26:19 +00:00
// Function ID: 46653
2026-07-20 16:05:17 +00:00
// Name: parsePossibleSources
2026-07-23 10:11:24 +00:00
// Dependencies: [27]
2026-07-20 16:05:17 +00:00
// Exports: parsePossibleSources
2026-07-23 10:11:24 +00:00
// Module 5457 (parsePossibleSources)
import { Image } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
export const parsePossibleSources = function parsePossibleSources(uri) {
uri = uri.uri;
if ("string" === typeof uri) {
let obj = { sourceName: uri };
} else {
if ("object" === tmp) {
if (!uri) {
obj = {};
const _JSON = JSON;
obj.sourceJson = JSON.stringify(uri);
}
}
if ("object" !== tmp) {
let tmp3;
if ("number" === tmp) {
obj = { sourceDotLottieURI: Image.resolveAssetSource(uri).uri };
tmp3 = obj;
}
}
const obj1 = {};
if (uri.includes(".lottie")) {
obj1.sourceDotLottieURI = uri;
let tmp5 = obj1;
} else {
obj1.sourceURL = uri;
tmp5 = obj1;
}
}
return obj;
};