import { UmbMediaAuditLog } from '../utils/index.js';
// Return label, color, look, desc
/**
 * @description Helper function to get look and color for uui-tag and localization keys for the label and description.
 * @param type AuditTypeModel
 * @deprecated Scheduled for removal in Umbraco 19. Use the audit log repository's getTagStyleAndText() method instead.
 */
export function getMediaHistoryTagStyleAndText(type) {
    switch (type) {
        case UmbMediaAuditLog.SAVE:
            return {
                style: { look: 'primary', color: 'default' },
                text: { label: 'auditTrails_smallSave', desc: 'auditTrails_save' },
            };
        case UmbMediaAuditLog.COPY:
            return {
                style: { look: 'secondary', color: 'default' },
                text: { label: 'auditTrails_smallCopy', desc: 'auditTrails_copy' },
            };
        case UmbMediaAuditLog.MOVE:
            return {
                style: { look: 'secondary', color: 'default' },
                text: { label: 'auditTrails_smallMove', desc: 'auditTrails_move' },
            };
        case UmbMediaAuditLog.DELETE:
            return {
                style: { look: 'secondary', color: 'danger' },
                text: { label: 'auditTrails_smallDelete', desc: 'auditTrails_delete' },
            };
        case UmbMediaAuditLog.SORT:
            return {
                style: { look: 'secondary', color: 'default' },
                text: { label: 'auditTrails_smallSort', desc: 'auditTrails_sort' },
            };
        case UmbMediaAuditLog.CUSTOM:
            return {
                style: { look: 'placeholder', color: 'default' },
                text: { label: 'auditTrails_smallCustom', desc: 'auditTrails_custom' },
            };
        default:
            return {
                style: { look: 'placeholder', color: 'danger' },
                text: { label: type, desc: 'TODO' },
            };
    }
}
export const TimeOptions = {
    year: 'numeric',
    month: 'long',
    day: 'numeric',
    hour: 'numeric',
    minute: 'numeric',
    second: 'numeric',
};
