text: "use strict";angular.module("c8y.deviceShell").controller("deviceStatusCtrl",["$scope","$routeParams","c8yBase","c8yDevices","c8yDeviceStatus","gettext",function(t,e,c,i,n,r){function s(){return t.refreshing=!0,i.detail(e.deviceId).then(c.getResData).then(a).finally(function(){t.refreshing=!1})}function a(e){t.device=e}t.refresh=s,t.getStatus=function(){return n.canReceiveCommands(t.device)?r("Device is ready to receive commands"):r("Device is offline")},s()}]);