decord/beta/source/modules/profile_customization/ProfilePendingImageUtils.tsx
2026-10-12 16:32:48 +00:00

35 lines
1.5 KiB
TypeScript

// Module ID: 14843
// Function ID: 14844
// Name: ProfilePendingImageUtils
// Dependencies: [6679, 1388, 2]
// Exports: createPendingImage
// Module 14843 (ProfilePendingImageUtils)
import GlobalUtils from "GlobalUtils" /* 1388 */;
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 6679 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/profile_customization/ProfilePendingImageUtils.tsx");
export const createPendingImage = function createPendingImage(assetOrigin) {
let description;
let imageUri;
let originalAsset;
let originalMd5;
let staticImageUri;
let NEW_ASSET = assetOrigin.assetOrigin;
if (NEW_ASSET === undefined) {
NEW_ASSET = ProfilePendingImageTypes.AssetOriginTypes.NEW_ASSET;
}
({ imageUri, staticImageUri, description, originalAsset, originalMd5 } = assetOrigin);
if (ProfilePendingImageTypes.AssetOriginTypes.NEW_ASSET === NEW_ASSET) {
return { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset: "Array", originalMd5 };
} else if (ProfilePendingImageTypes.AssetOriginTypes.EDITED_ARCHIVED_ASSET === NEW_ASSET) {
return { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset, originalMd5 };
} else if (ProfilePendingImageTypes.AssetOriginTypes.ARCHIVED_ASSET === NEW_ASSET) {
return { assetOrigin: NEW_ASSET, imageUri, description: "Array", originalAsset };
} else {
const tmp3Result = GlobalUtils;
tmp3Result.assertNever(NEW_ASSET);
}
};