(()=>{function t(t,a,r,i){var e=this,i={required:i.getString("This field is required."),maxlength:i.getString("Up to 120 characters allowed."),url:i.getString("Valid URL required.")},n={type:"HOSTED"};_.assign(e,{host:t.host(),invalid:a.invalidFormOrField,validationHints:_.partialRight(a.validationHints,i),create:function(){var t=_.defaults(e.wizardCtrl.data.smartApp,n);return t.key=[t.path,"appkey",String(Math.random()).substr(2)].join("-"),t.manifest={imports:["core/c8yBranding"]},t.manifest.uiCreated=!0,r.save(t).then(a.getResData).then(function(t){e.wizardCtrl.data.createdApp=t,e.wizardCtrl.goTo("success")})}})}t.$inject=["$location","c8yBase","c8yApplication","gettextCatalog"],angular.module("c8y.parts.applications").component("appWizardSmartAppStep",{require:{wizardCtrl:"^c8yWizardStep"},templateUrl:":::PLUGIN_PATH:::/appWizard/appWizardSmartAppStep.html",controller:t,controllerAs:"vm"})})();