'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const core = require('./core-906e2cc9.js');

const SmoothlyCheckbox = class {
    constructor(hostRef) {
        core.registerInstance(this, hostRef);
        this.smoothlyChecked = core.createEvent(this, "smoothlyChecked", 7);
    }
    async onInput(e) {
        if (e.target && e.target.value && (this.checked = e.target.checked))
            this.smoothlyChecked.emit({ name: this.name, value: this.value });
        return true;
    }
    render() {
        return [
            core.h("input", { type: "checkbox", name: this.name, value: this.value, title: this.label, checked: this.checked, onChange: e => this.onInput(e) }),
        ];
    }
    static get style() { return ".sc-smoothly-checkbox-h{display:block;position:relative}[hidden].sc-smoothly-checkbox-h{display:none}"; }
};

exports.smoothly_checkbox = SmoothlyCheckbox;
