"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class PreventDefault extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['event', 'opt'],
            o: [],
        }, {
            input: {
                event: {
                    ref: true,
                },
            },
            output: {},
        }, system, _ids_1.ID_PREVENT_DEFAULT);
    }
    async f({ event, opt }, done) {
        event.preventDefault();
        done();
    }
}
exports.default = PreventDefault;
//# sourceMappingURL=index.js.map