(()=>{function n(s){var a,t,i=this,e=new s([{min:0,max:10,icon:"signal-strength-0",class:"statusNok"},{min:10,max:30,icon:"signal-strength-1",class:"statusAlert"},{min:30,max:60,icon:"signal-strength-2",class:"statusOk"},{min:60,max:90,icon:"signal-strength-3",class:"statusOk"},{min:90,max:100,icon:"signal-strength-4",class:"statusOk"}]);function l(){var n=a&&(t||e).find(a);i.$icon=n&&n.icon||"signal-strength-0",i.$class=n&&n.class||"statusNok"}_.assign(i,{$onInit:function(){a=i.value||0,l()},$onChanges:function(n){n.value&&(a=n.value.currentValue);n.ranges&&(n=n.ranges.currentValue,t=_.isArray(n)?new s(n):n);l()}})}n.$inject=["RangeSet"],angular.module("c8y.ui").component("c8ySignalStrength",{templateUrl:":::PLUGIN_PATH:::/ui/components/signalStrength/signal.html",bindings:{value:"<",ranges:"<?"},controller:n})})();