(()=>{function o(e,t,l,r){var c=this;function i(){c.wizardCtrl.setFlowFromStepIds(),c.wizardCtrl.goTo(_.first(c.flow))}_.assign(c,{CONFIG:r.VIEW_CONFIG,$onInit:function(){_.assign(c,c.wizardCtrl),c.flows=[]},select:function(o){var t=r.getService(o);c.flow=t.flow(),c.wizardCtrl.data.selectedProtocol=o,e(i,100)},finishProcess:function(o){c.modalInstance.close(),o?t.path(o):l.reload()}})}o.$inject=["$timeout","$location","$route","c8yDeviceProtocolUi"],angular.module("c8y.deviceProtocols").component("c8yAddDeviceProtocolWizard",{templateUrl:":::PLUGIN_PATH:::/deviceProtocolWizard.html",controllerAs:"vm",controller:o,bindings:{modalInstance:"<",resolve:"<"}})})();