decord/alpha/source/modules/profile_customization/ProfilePendingImageUtils.tsx
github-actions f95a0071ef chore: update source for alpha 349.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-29 09:27:02 +00:00

31 lines
1.3 KiB
TypeScript

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