import { directive } from 'lit/directive.js';
import { ValueConverterDirective } from './Abstracts/ValueConverterDirective';
class BooleanToVisibilityConverterDirective extends ValueConverterDirective {
    convert(value) {
        return value ? 'visible' : 'hidden';
    }
    convertBack(value) {
        return value === 'visible';
    }
    applyValue(part, value) {
        part.element.style.visibility = value;
    }
}
/**
 * @public
 */
export const booleanToVisibility = directive(BooleanToVisibilityConverterDirective);
//# sourceMappingURL=BooleanToVisibilityConverterDirective.js.map