import { Directive, directive } from "lit/directive.js";
import { classMap } from "lit/directives/class-map.js";
const tw = (rec)=>rec;
class MultiClassMapDirective extends Directive {
    render(classInfo) {
        const processedClassMap = {};
        for (const [key, value] of Object.entries(classInfo))if (value) key.split(/\s+/).forEach((cls)=>{
            if (!cls) return;
            processedClassMap[cls] = true;
        });
        return classMap(processedClassMap);
    }
}
function multiClassMap(record) {
    return directive(MultiClassMapDirective)(record);
}
export { multiClassMap, tw };
