(()=>{function e(e,i,t){var a=this,n=[{id:"APPLICATION_UPLOAD",label:e("Upload web application"),icon:"upload",nextStep:"upload",supportedFileTypes:["archive"],expectedType:"HOSTED",expectedExtension:"ZIP",invalidFileTypeMessage:e("Wrong file format. Expected a *.zip file with a valid web application.")},{id:"MICROSERVICE_UPLOAD",label:e("Upload microservice"),icon:"microchip",nextStep:"upload",supportedFileTypes:["archive"],expectedType:"MICROSERVICE",expectedExtension:"ZIP",invalidFileTypeMessage:e("Wrong file format. Expected a *.zip file with a valid manifest."),showIf:["c8yApplication",function(e){return e.isAvailable({name:"feature-microservice-hosting"})}]},{id:"EXTERNAL_APP_ADD",label:e("External application"),icon:"cloud-link",nextStep:"external"},{id:"CLONE_APP",label:e("Duplicate existing application"),icon:"copy",nextStep:"clone1"}];_.assign(a,{$onInit:function(){i.all(_.map(n,function(e){return t.configureVisibility(e,"show")})).then(function(e){a.methods=e})},chooseMethod:function(e){a.wizardCtrl.data.chosenMethod=e,a.wizardCtrl.goTo(e.nextStep)}})}e.$inject=["gettext","$q","c8yUiUtil"],angular.module("c8y.parts.applications").component("appWizardMenuStep",{require:{wizardCtrl:"^c8yWizardStep"},templateUrl:":::PLUGIN_PATH:::/appWizard/appWizardMenuStep.html",controller:e,controllerAs:"vm"})})();