"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cl = cl;
function toVal(mix) {
    let result = "";
    if (typeof mix === "string" || typeof mix === "number") {
        result += mix;
    }
    else if (typeof mix === "object") {
        if (Array.isArray(mix)) {
            for (let i = 0; i < mix.length; i++) {
                if (mix[i]) {
                    const parsedValue = toVal(mix[i]);
                    if (parsedValue) {
                        result && (result += " ");
                        result += parsedValue;
                    }
                }
            }
        }
        else {
            for (const key in mix) {
                if (mix[key]) {
                    result && (result += " ");
                    result += key;
                }
            }
        }
    }
    return result;
}
function cl(...inputs) {
    let parsedValue;
    let currentValue;
    let result = "";
    for (let i = 0; i < inputs.length; i++) {
        if ((currentValue = inputs[i])) {
            if ((parsedValue = toVal(currentValue))) {
                result && (result += " ");
                result += parsedValue;
            }
        }
    }
    return result;
}
//# sourceMappingURL=className.js.map