"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Semifunctional_1 = require("../../../../../Class/Semifunctional");
const _ids_1 = require("../../../../_ids");
class ScrollIntoView extends Semifunctional_1.Semifunctional {
    constructor(system) {
        super({
            fi: ['component', 'opt'],
            fo: [],
            i: [],
            o: ['done'],
        }, {
            input: {
                component: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_SCROLL_INTO_VIEW);
    }
    async f({ component, opt }, done) {
        component.emit('call', {
            method: 'scrollIntoView',
            data: [opt],
        });
        done();
    }
    b() {
        this._output.done.push(true);
    }
}
exports.default = ScrollIntoView;
//# sourceMappingURL=index.js.map