(()=>{function t(t,i,n,c){var a=this;function e(){i.detailRealtime(a.config.device.id,t).then(function(t){var i;a.device=t,t=a.device,i=a.config.mapping,t&&i&&n.attach(t,_.values(i))})}function o(){var e=a.device,t=a.config.mapping,i={};return i=e&&t?_.transform(t,function(t,i,n){t[n]=Boolean(c.getRawValueForMapping(e,i))},{}):i}_.assign(a,{$onInit:function(){_.assign(a,{updateStateValues:o}),t.$watch("vm.config",e,!0)}})}t.$inject=["$scope","c8yInventory","c8yComputedProperties","ScadaWidgetUtilSvc"],angular.module("c8y.trafficLightWidget").component("trafficLightWidget",{templateUrl:":::PLUGIN_PATH:::/traffic-light.html",bindings:{config:"<"},controller:t,controllerAs:"vm"})})();