(()=>{function t(t){var n=this;function e(){return t({templateUrl:":::PLUGIN_PATH:::/add/simulatorAddorEdit.modal.html",controller:i,size:"sm",keyboard:!1,controllerAs:"vm"}).then(o)}function o(t){t&&n.onAdded({simulator:t})}n.add=e}function i(t,n,e,o){var i=this;function l(){i.newSimulator=_.cloneDeep(i.preset.data);var t=i.newSimulator;t.name=o.getString(t.name)}_.assign(i,{ok:function(){t.close(i.newSimulator)},cancel:t.dismiss,icons:n.icons,presets:e.PRESETS,preset:_.first(e.PRESETS),onPresetSelected:l,$onInit:l})}i.$inject=["$uibModalInstance","c8ySimulatorsUi","c8ySimulators","gettextCatalog"],t.$inject=["c8yModal"],angular.module("c8y.simulators").component("c8ySimulatorAdd",{bindings:{onAdded:"&"},templateUrl:":::PLUGIN_PATH:::/add/simulatorAdd.button.html",controller:t,controllerAs:"vm"})})();