'use strict';

const UI = require('../UI.cjs');

/**
 * Returns the default class names for the UI elements.
 *
 * This function generates a mapping of default class names for various UI
 * elements, day flags, selection states, and animations.
 *
 * @returns An object containing the default class names.
 * @group Utilities
 */
function getDefaultClassNames() {
    const classNames = {};
    for (const key in UI.UI) {
        classNames[UI.UI[key]] =
            `rdp-${UI.UI[key]}`;
    }
    for (const key in UI.DayFlag) {
        classNames[UI.DayFlag[key]] =
            `rdp-${UI.DayFlag[key]}`;
    }
    for (const key in UI.SelectionState) {
        classNames[UI.SelectionState[key]] =
            `rdp-${UI.SelectionState[key]}`;
    }
    for (const key in UI.Animation) {
        classNames[UI.Animation[key]] =
            `rdp-${UI.Animation[key]}`;
    }
    return classNames;
}

exports.getDefaultClassNames = getDefaultClassNames;
