angular.module("c8y.assets").controller("addIconMapCtrl",["$scope","$uibModalInstance","iconList","iconsMap","c8yComparisons",function(o,n,c,s,e){var i={value:"",comparison:"",icon:"",color:"#000000"},a={name:"",map:[_.cloneDeep(i)]};function p(n){o.comparisons=n}function l(){var n=_.cloneDeep(a);n.id=moment().valueOf(),o.iconsMap.push(n)}o.icons=c,o.iconsMap=[],o.dismiss=n.dismiss,o.close=function(){n.close(o.iconsMap)},o.addMap=function(n){n.push(_.cloneDeep(i))},o.addIconMap=l,o.onDelete=function(n,o){n.splice(o,1)},e.list().then(p),s.length?o.iconsMap=s:l()}]);