import { UMB_MEDIA_ENTITY_TYPE } from '../../entity.js';
import { UmbControllerBase } from '../../../../../libs/class-api/index.js';
export class UmbMediaReferenceResponseManagementApiDataMapping extends UmbControllerBase {
    async map(data) {
        return {
            entityType: UMB_MEDIA_ENTITY_TYPE,
            id: data.id,
            mediaType: {
                alias: data.mediaType.alias,
                icon: data.mediaType.icon,
                name: data.mediaType.name,
                unique: data.mediaType.id,
            },
            name: data.name,
            // TODO: this is a hardcoded array until the server can return the correct variants array
            variants: [
                {
                    culture: null,
                    name: data.name ?? '',
                },
            ],
            unique: data.id,
        };
    }
}
export { UmbMediaReferenceResponseManagementApiDataMapping as api };
