decord/source/modules/profile_customization/ProfilePendingImageUtils.tsx
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

31 lines
1.3 KiB
TypeScript

// Module ID: 14680
// Function ID: 14681
// Name: ProfilePendingImageUtils
// Dependencies: [7092, 1369, 2]
// Exports: createPendingImage
// Module 14680 (ProfilePendingImageUtils)
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 7092 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/profile_customization/ProfilePendingImageUtils.tsx");
export const createPendingImage = function createPendingImage(assetOrigin) {
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) {
const obj = { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset: "Array", originalMd5 };
return obj;
} else if (tmp3(7092).AssetOriginTypes.EDITED_ARCHIVED_ASSET === NEW_ASSET) {
const obj2 = { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset, originalMd5 };
return obj2;
} else if (tmp3(7092).AssetOriginTypes.ARCHIVED_ASSET === NEW_ASSET) {
const obj3 = { assetOrigin: NEW_ASSET, imageUri, description: "Array", originalAsset };
return obj3;
} else {
tmp3(1369).assertNever(NEW_ASSET);
}
};