(()=>{function t(t,n){var r=this,e="wizardCtrl.data.updloadResult";function a(){return _.get(r,e)}function l(){return _.get(a(),"new")}function i(){return _.get(a(),"error")}function o(){return _.get(a(),"updated")}_.assign(r,{created:l,errors:i,finish:function(){var t,e=_.union(l(),o());i()&&i().length||1!==e.length||(t=n.detailPath(e[0]));r.wizardCtrl.close({path:t})},gotoDetail:function(t){t=n.detailPath(t);r.wizardCtrl.close({path:t})},name:function(t){return n.getName(t)},updated:o})}t.$inject=["$q","c8yLwm2m"],angular.module("c8y.lwm2m").component("c8yLwm2mFinalStep",{templateUrl:":::PLUGIN_PATH:::/lwm2mFinalStep.html",controllerAs:"vm",controller:t,require:{wizardCtrl:"^c8yWizardStep"}})})();