"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.remapUnitBundle = exports.remapUnitSpec = void 0;
const remapBundle_1 = require("./remapBundle");
const remapUnitSpec = (unit, specIdMap) => {
    var _a;
    unit.id = (_a = specIdMap[unit.id]) !== null && _a !== void 0 ? _a : unit.id;
};
exports.remapUnitSpec = remapUnitSpec;
const remapUnitBundle = (bundle, specIdMap) => {
    (0, exports.remapUnitSpec)(bundle.unit, specIdMap);
    (0, remapBundle_1.remapSpecs)(bundle, specIdMap);
};
exports.remapUnitBundle = remapUnitBundle;
//# sourceMappingURL=remapUnitBundle.js.map