(()=>{function n(n,t){var e=this;_.assign(e,{emailAddresses:t("Email addresses"),tooltip:t("Download list of emails for users subscribed for newsletter on current tenant and its subtenants."),loading:!1,download:function(){e.loading||(e.loading=!0,n.download().finally(function(){e.loading=!1}))},getIcon:function(){return e.loading?"spinner":"download"}})}n.$inject=["NewsletterService","gettext"],angular.module("c8y.newsletter").component("c8yDownloadEmailsList",{controller:n,controllerAs:"vm",template:'<a href="" class="btn btn-link pull-right" ng-click="vm.download()" uib-tooltip="{{vm.tooltip | translate}}"><i c8y-icon="{{vm.getIcon()}}"></i> {{vm.emailAddresses | translate}}</a>'})})();