/**
 * @module package/ecoyn/core/bin/backend/controls/Setup/Steps/Licence
 * @author www.pcsg.de (Henning Leutz)
 */
define('package/ecoyn/core/bin/backend/controls/Setup/Steps/Licence', [

    'qui/QUI',
    'qui/controls/Control'

], function (QUI, QUIControl) {
    "use strict";

    return new Class({

        Extends: QUIControl,
        Type   : 'package/ecoyn/core/bin/backend/controls/Setup/Steps/Licence',

        Binds: [
            '$onInject'
        ],

        initialize: function (options) {
            this.parent(options);

            this.addEvents({
                onInject: this.$onInject
            });
        },

        $onInject: function () {
        },

        next: function () {
            /*
            const Checkbox = this.getElm().getElement('[name="licence"]');

            if (!Checkbox.checked && "reportValidity" in Checkbox) {
                Checkbox.reportValidity();
                return false;
            }

            return Checkbox.checked;
            */
        }
    });
});
