decord/source/modules/profile_customization/ProfilePendingImageUtils.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

31 lines
1.3 KiB
TypeScript

// Module ID: 14646
// Function ID: 14647
// Name: ProfilePendingImageUtils
// Dependencies: [7062, 1369, 2]
// Exports: createPendingImage
// Module 14646 (ProfilePendingImageUtils)
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 7062 */;
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(7062).AssetOriginTypes.EDITED_ARCHIVED_ASSET === NEW_ASSET) {
const obj2 = { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset, originalMd5 };
return obj2;
} else if (tmp3(7062).AssetOriginTypes.ARCHIVED_ASSET === NEW_ASSET) {
const obj3 = { assetOrigin: NEW_ASSET, imageUri, description: "Array", originalAsset };
return obj3;
} else {
tmp3(1369).assertNever(NEW_ASSET);
}
};