text: "use strict";angular.module("form.Fields",[]).controller("fields",["main_server","user_data","$location",function(s,o,t){var e=this;e.userData=o,e.loading=!1,e.portfoliosInfo={},e.administradoras=[],e.selectedAdminFics=[],e.serverAddress=s.serverAddress,e.loadFics=function(s){e.selectedAdminFics=e.portfoliosInfo[s],e.userData.data.nombre_fondo.text=""},s.getPortfolios().then(function(s){e.portfoliosInfo=s.data,e.administradoras=Object.keys(e.portfoliosInfo)}),e.delRegistros=function(){1==confirm("¿Esta seguro que desea eliminar todos los registros?")&&s.delRegistros()},e.submit=function(){e.loading=!0,o.results=null,o.results_ready=!1;var r=e.userData.data;s.sendPersonalInfo(r).then(function(s){e.loading=!1,200==s.status&&(o.results=s.data,t.path("/results"))},function(s){e.loading=!1,o.results=s.data})}}]);