"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const fromId_1 = require("../../../../spec/fromId");
const _ids_1 = require("../../../_ids");
class IdToClass extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['id'],
            o: ['class'],
        }, {}, system, _ids_1.ID_ID_TO_CLASS);
    }
    f({ id }, done) {
        const Class = (0, fromId_1.bundleFromId)(id, this.__system.specs, this.__system.classes);
        done({ class: Class });
    }
}
exports.default = IdToClass;
//# sourceMappingURL=index.js.map