(()=>{function e(r,e){var n,t=this;function c(e){t.servers=e}_.assign(t,{model:{},create:function(e){return t.pending=!0,t.wizardCtrl.dismiss(),r.create(_.assign(e,{selectedNode:n}))},$onInit:function(){r.listServers().then(c)},onSelected:function(e){n=e,t.pending=!1},serverChanged:function(){t.pending=!0},getPlaceholder:function(){if(!t.servers)return e("Loading");if(t.servers&&0===t.servers.length)return e("No servers available");return e("Select or search")}})}e.$inject=["c8yOPCUADeviceV2","gettext"],angular.module("c8y.opcua-v2").component("c8yOpcuaV2CreateStep",{require:{wizardCtrl:"^c8yWizardStep"},templateUrl:":::PLUGIN_PATH:::/opcua-v2-create-step.html",controller:e,controllerAs:"vm"})})();