"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.areErrorsEqual = void 0;
var ramda_1 = require("ramda");
var clearError = (0, ramda_1.omit)(['deactivated', 'path']);
var areErrorsEqual = function (errors1, errors2) {
    if (errors1 === void 0) { errors1 = []; }
    if (errors2 === void 0) { errors2 = []; }
    return errors1.length === errors2.length && (0, ramda_1.equals)(errors1.map(clearError), errors2.map(clearError));
};
exports.areErrorsEqual = areErrorsEqual;
