decord/source/__polyfill/05xxx/module_5614.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

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;
};