import r from"lodash/get";function n(r){return"admin"===r.role}var e={is_admin:n,is_corva_admin:function(e){return n(e)&&"corva"===r(e,["company","provider"],null)}};function o(r,n){if(n in e)return e[n](r);throw new Error("There is no rule ".concat(n,", please check the spelling"))}function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.reduce((function(n,e){return n&&o(r,e)}),!0)}export{t as default};
