function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(()=>{function t(n,e,o,t){var r="c8y_TenantPolicy",i={category:"password",key:"strength.validity"};return{list:function(){var t={type:r};return o.list(t)},detail:o.detail,remove:o.remove,save:function(t){t.id||(t.type=r);return o.save(t)},isTopTenant:t.isCurrentUserTopTenant,isEnterpriseEditionTenant:t.isEnterpriseEditionTenant,doesEnforceStrongPassword:function(t){return("object"===_typeof(t)?n.resolve(t):o.detail(t).then(e.getResData,function(){return{options:[]}})).then(function(t){return"true"===_.find(t.options,i).value.toLowerCase()}).catch(function(){return!1})}}}t.$inject=["$q","c8yBase","c8yInventory","c8yTenant"],angular.module("c8y.tenantPolicies").factory("c8yTenantPolicies",t)})();