(()=>{function e(e,n,t){var i=this;_.assign(i,{$onInit:function(){t.all({isTopTenant:e.isTopTenant(),isEnterpriseEditionTenant:e.isEnterpriseEditionTenant()}).then(function(e){var n=e.isTopTenant;i.canDisableEdit=n||e.isEnterpriseEditionTenant}),_.set(i,"rule.editable",_.get(i,"rule.editable",!1))},$onChanges:function(){_.get(i.rule,"isNew")&&(delete i.rule.isNew,i.isOpen=!0)},dataTypes:n.DATA_TYPES})}e.$inject=["c8yTenantPolicies","c8yRetentions","$q"],angular.module("c8y.tenantPolicies").component("c8yRetentionRuleRow",{templateUrl:":::PLUGIN_PATH:::/retentionRule/retentionRuleRow.html",controller:e,controllerAs:"vm",bindings:{rule:"<",onRemove:"&"}})})();