(()=>{function n(i,n,l){function e(n){i.files&&!i.refreshLoading||(i.files=[]),_.forEach(n,function(n){n.icon=l.icon(n),i.files.push(n)}),i.paging=n.paging}i.files=[],i.result={file:null},i.select=function(){n.close(i.result)},i.cancel=n.dismiss,i.loadNext=function(){i.paging.loading=!0,i.paging.next().then(e).finally(function(){i.paging.loading=!1})},i.refreshLoading=!0,l.list().then(e).finally(function(){i.refreshLoading=!1})}n.$inject=["$scope","$uibModalInstance","c8yBinary"],angular.module("c8y.ui").controller("binaryInputModalCtrl",n)})();