"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.idFromUnitValue = exports.evaluateBundleStr = void 0;
const evaluate_1 = require("./evaluate");
function evaluateBundleStr(value, specs, classes) {
    let objectStr = value.substring(1);
    const bundle = (0, evaluate_1.evaluate)(objectStr, specs, classes);
    return bundle;
}
exports.evaluateBundleStr = evaluateBundleStr;
function idFromUnitValue(value, specs, classes) {
    const bundle = evaluateBundleStr(value, specs, classes);
    const { unit } = bundle;
    const { id } = unit;
    return id;
}
exports.idFromUnitValue = idFromUnitValue;
//# sourceMappingURL=idFromUnitValue.js.map