decord/source/__polyfill/05xxx/module_5585.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

36 lines
912 B
JavaScript

// Module ID: 5585
// Function ID: 5586
// Dependencies: [17]
// Exports: parsePossibleSources
// Module 5585
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;
};