(()=>{function n(i){function e(n){return!0===n.__active}i.differentUnits=!1,i.$watchCollection(function(){var n,t=_.filter(i.config.datapoints,e);return!t.length||(n=_.head(t).unit,_.every(t,{unit:n}))},function(n){i.differentUnits=!n})}n.$inject=["$scope"],angular.module("c8y.parts.kpi").controller("pieChartConfigCtrl",n)})();