decord/beta/source/modules/profile_customization/ProfilePendingImageUtils.tsx
2026-10-07 22:43:51 +00:00

35 lines
1.5 KiB
TypeScript

// Module ID: 14419
// Function ID: 14420
// Name: ProfilePendingImageUtils
// Dependencies: [6486, 1375, 2]
// Exports: createPendingImage
// Module 14419 (ProfilePendingImageUtils)
import GlobalUtils from "GlobalUtils" /* 1375 */;
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 6486 */;
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);
}
};