(()=>{function e(c,e){c.config.switches=c.config.switches||[],c.switchesTemp=_.cloneDeep(c.config.switches),c.saveSwitch=function(e){var t=c.switchesTemp[e];t.newSwitch?(delete t.newSwitch,c.config.switches.push(t)):c.config.switches[e]=_.clone(t)},c.deleteSwitch=function(e){c.config.switches.splice(e,1),c.switchesTemp.splice(e,1)},c.addSwitch=function(){c.switchesTemp.push({newSwitch:!0,name:"".concat(e.getString("Switch")," ").concat(c.config.switches.length),property:"",activeValue:"",inactiValue:"",activeLabel:e.getString("Active`switch`"),inactiveLabel:e.getString("Inactive`switch`")})}}e.$inject=["$scope","gettextCatalog"],angular.module("c8y.switchDisplay").controller("switchDisplayConfig",["$scope","gettextCatalog",e])})();