"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, /**
 * Try to substitute variable inside phrase propositions.
 *
 * @param {Array} phrasePropositions List of phrases propositions.
 * @param {object} zippedVariablesAndValues Object containing variables and corresponding values.
 *
 * @returns {string} Phrases with substituted variables if it's possible, list of unchanged phrase propositions otherwise.
 */ "default", {
    enumerable: true,
    get: function() {
        return substituteVariables;
    }
});
const _string = require("./../../helpers/string");
function substituteVariables(phrasePropositions, zippedVariablesAndValues) {
    if (Array.isArray(phrasePropositions)) {
        return phrasePropositions.map((phraseProposition)=>substituteVariables(phraseProposition, zippedVariablesAndValues));
    }
    return (0, _string.substitute)(phrasePropositions, zippedVariablesAndValues);
}
