import { r as registerInstance, h } from './core-095fd691.js';

const BceElementInput = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
    }
    render() {
        if (!this.template)
            return null;
        const type = this.template.multiline ? 'textarea' : 'text';
        return [
            h("p", null, this.template.question),
            h("bce-input", { validation: this.template.required ? 'required' : '', type: type })
        ];
    }
    static get style() { return "bce-element-input p{font-weight:500;text-align:center}\@media screen and (min-width:1024px){bce-element-input p{text-align:left}}"; }
};

export { BceElementInput as bce_element_input };
