(()=>{function t(t){var i=this;function a(t){i.existingApps=t}_.assign(i,{$onInit:function(){t.listByVisibleLinks().then(a)},choose:function(t){i.wizardCtrl.data.appClone=i.wizardCtrl.data.appClone||{},i.wizardCtrl.data.appClone.srcApp=t,i.wizardCtrl.data.appClone.destApp=(t=>{for(var a,n=0;n++,a={name:[t.name,n].join("-"),key:[t.key,n].join("-"),contextPath:[t.contextPath,n].join("-")},_.find(i.existingApps,a););return a})(t),i.wizardCtrl.goTo("clone2")}})}t.$inject=["c8yApplication"],angular.module("c8y.parts.applications").component("appWizardClone1Step",{require:{wizardCtrl:"^c8yWizardStep"},templateUrl:":::PLUGIN_PATH:::/appWizard/appWizardClone1Step.html",controller:t,controllerAs:"vm"})})();