text: "use strict";!function(){function e(t,e,o,r,a,n,c,s,i){var l=e.reportId;function d(){o.path("/")}function u(e){r.isReport(e)&&(t.dashboardName=r.dashboardName(e),t.reportName=e.name)}r.detail(l).then(s.getResData).then(u),t.removeReport=function(){return n({title:a("Delete report"),body:i.getString('You are about to delete report "{{name}}". Do you want to proceed?',{name:t.reportName}),labels:{ok:a("Delete")},status:"danger"}).then(angular.bind(r,r.remove,{id:l})).then(d).then(_.partial(c.success,a("Report deleted.")))},t.editReport=function(){return r.editUI(l).then(r.save).then(s.getResData).then(u)}}e.$inject=["$scope","$routeParams","$location","c8yReports","gettext","c8yModal","c8yAlert","c8yBase","gettextCatalog"],angular.module("c8y.cockpit.reports").controller("ReportsCtrl",e)}();