(()=>{function o(n,a,o){var t=this;function e(o,e){e&&!o?(t.shouldClose="disabled",a(function(){t.shouldClose="outsideClick"})):t.shouldClose="outsideClick"}_.assign(t,{downloadLogs:function(){var o=n.formatDateChosenByUser(t.dateFrom),e=n.formatDateChosenByUser(t.dateTo);return n.downloadAndSaveAs(t.appId,t.instanceName,o,e)}}),o.$watch("vm.datePickerToOpen",e),o.$watch("vm.datePickerFromOpen",e)}o.$inject=["c8yApplicationLogs","$timeout","$scope"],angular.module("c8y.appLogs").component("c8yDownloadLogs",{bindings:{appId:"<",instanceName:"<"},templateUrl:":::PLUGIN_PATH:::/app-logs/download-logs.html",controller:o,controllerAs:"vm"})})();