"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.appendOptOutLanguage = void 0;
const lodash_1 = require("lodash");
const DEFAULT_OPT_OUT_LANGUAGE = {
    en: 'Reply STOP to unsubscribe.',
    fr: 'Répondez STOP pour vous désabonner.',
    nl: 'Antwoord STOP om geen communicate meer te ontvangen.',
};
const appendOptOutLanguage = (message, optOutLanguage, language) => {
    const lang = language !== null && language !== void 0 ? language : 'en';
    if ((0, lodash_1.isEmpty)(optOutLanguage) || optOutLanguage === undefined) {
        return `${message}\n\n${DEFAULT_OPT_OUT_LANGUAGE[lang]}`;
    }
    return `${message}\n\n${optOutLanguage}`;
};
exports.appendOptOutLanguage = appendOptOutLanguage;
//# sourceMappingURL=appendOptOutLanguage.js.map