"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromUnitBundle = void 0;
const bundleClass_1 = require("./bundleClass");
const fromId_1 = require("./fromId");
function fromUnitBundle(bundle, specs, classes) {
    const { unit, specs: _specs } = bundle;
    const { id } = unit;
    const Class = (0, fromId_1.fromId)(id, Object.assign(Object.assign({}, _specs), specs), classes, {});
    const Bundle = (0, bundleClass_1.bundleClass)(Class, bundle);
    return Bundle;
}
exports.fromUnitBundle = fromUnitBundle;
//# sourceMappingURL=fromUnitBundle.js.map