(()=>{function e(t,i){return{restrict:"A",link:function(r,e){e.bind("click",function(){t.open({templateUrl:":::PLUGIN_PATH:::/ui/csvExporter/csvExporter.html",size:"sm",ariaLabelledBy:"modal-title",ariaDescribedBy:"modal-body",controller:"csvExporterCtrl",scope:r})}),r.headers=function(){var e=_.cloneDeep(r.virginHeaders());return _.map(e,function(e,r){r=0===r&&"ID"===e?"id":e;return i.getString(r)})}},scope:{fileName:"@c8yFilename",data:"&c8yData",virginHeaders:"&c8yHeaders",ngClick:"&"}}}e.$inject=["$uibModal","gettextCatalog"],angular.module("c8y.ui").directive("c8yCsvExporter",e)})();