PageSourceSearch

https://siceap.com/chunk-RPLER3NU.js

js siceap.com collected 2026-10-02 16:14:29 UTC 9,453 bytes, 1 lines download raw bytes

1import{F as Z,H as ee,c as H,e as h,h as J,i as K,n as Q,o as W,s as X,v as Y}from"./chunk-YDURXNVU.js";import{a as z}from"./chunk-5M24YEMQ.js";import{a as f}from"./chunk-U7NZPWXB.js";import{Ia as U}from"./chunk-RVE44WNI.js";import"./chunk-6DZ3ECRX.js";import"./chunk-5TU3MRMR.js";import{n as q,p as B,q as R}from"./chunk-DCFNX3BH.js";import{A as L,C as V,m as G,n as O,x as k}from"./chunk-XHNBZ4A7.js";import{Ac as A,Fa as C,Ga as D,Hb as d,Kc as M,Mb as l,Nb as P,Uc as b,Wc as N,Yb as e,Yc as _,Zb as t,Zc as $,_b as m,cc as F,ic as T,ka as I,kc as x,pb as a,qa as v,qb as g,ua as w,wc as j,xc as o,yc as c,zc as u}from"./chunk-E4J2JIEQ.js";import{i as E}from"./chunk-66YHNWRR.js";var y=(()=>{class n{_data=v(z);_service=v(U);constructor(){}checkAvailability(i){let r=`${f.urlApi}${f.api.credits.name}/${i}/${f.api.credits.service.disbursementInfo}`;return this._service.promise(this._data.metodoGet(r))}store(i,r){let p=`${f.urlApi}${f.api.credits.name}/${i}/${f.api.credits.service.desembolsar}`;return this._service.promise(this._data.metodoPost(p,r))}static \u0275fac=function(r){return new(r||n)};static \u0275prov=I({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function ne(n,s){if(n&1&&(e(0,"li"),o(1),t()),n&2){let i=s.$implicit;a(),c(i)}}function re(n,s){if(n&1&&(e(0,"div",47)(1,"h6",48),m(2,"i",49),o(3," Operaci\xF3n Bloqueada"),t(),e(4,"ul",50),d(5,ne,2,1,"li",45),t()()),n&2){let i=x(2);a(5),l("ngForOf",i.info.operativo.bloqueos)}}function oe(n,s){n&1&&(e(0,"div",51),o(1," El monto no puede superar el saldo disponible. "),t())}function ae(n,s){n&1&&m(0,"span",52)}function se(n,s){if(n&1&&(e(0,"li"),o(1),t()),n&2){let i=s.$implicit;a(),c(i)}}function le(n,s){if(n&1&&(e(0,"div",53)(1,"h6",48),m(2,"i",54),o(3," Advertencias"),t(),e(4,"ul",50),d(5,se,2,1,"li",45),t()()),n&2){let i=x(2);a(5),l("ngForOf",i.info.operativo.alertas)}}function de(n,s){if(n&1&&(e(0,"tr")(1,"td"),o(2),b(3,"date"),t(),e(4,"td",55),o(5),t(),e(6,"td")(7,"span",56),o(8),t()(),e(9,"td",57),o(10),b(11,"currency"),t(),e(12,"td")(13,"span",58),o(14),t()()()),n&2){let i=s.$implicit;a(2),c(N(3,5,i.fecha_giro_efectivo,"dd/MM/yyyy")),a(3),c(i.periodo_academico),a(3),c(i.tipo_desembolso),a(2),c(_(11,8,i.valor_girado,"USD","symbol","1.0-0")),a(4),u(" ",i.estado_giro," ")}}function me(n,s){n&1&&(e(0,"tr")(1,"td",59),o(2," A\xFAn no se han realizado desembolsos para este cr\xE9dito. "),t()())}function ce(n,s){if(n&1){let i=F();e(0,"div",2)(1,"div",3),m(2,"i",4),t(),e(3,"div",5)(4,"div")(5,"h2",6),o(6,"Gesti\xF3n de Desembolsos"),t(),e(7,"p",7),o(8),t()(),e(9,"div")(10,"span",8),o(11),t()()(),e(12,"div",9)(13,"div",10)(14,"div",11)(15,"div",12)(16,"small",13),o(17,"Cupo Disponible para Girar"),t(),e(18,"h3",14),o(19),b(20,"currency"),t(),e(21,"div",15)(22,"div",16)(23,"span"),o(24),b(25,"currency"),t(),e(26,"span"),o(27),b(28,"currency"),t()(),e(29,"div",17),m(30,"div",18),t()()()(),d(31,re,6,1,"div",19),e(32,"div",20)(33,"div",21)(34,"h5",22),o(35,"Nuevo Desembolso"),t()(),e(36,"div",23)(37,"form",24),T("ngSubmit",function(){C(i);let p=x();return D(p.onSubmit())}),e(38,"div",25)(39,"label",26),o(40,"Periodo Acad\xE9mico"),t(),m(41,"input",27),e(42,"small",28),o(43,"Corresponde al semestre que se va a pagar."),t()(),e(44,"div",29)(45,"label",26),o(46,"Monto a Girar"),t(),e(47,"div",30)(48,"span",31),o(49,"$"),t(),m(50,"input",32),t(),d(51,oe,2,0,"div",33),t(),e(52,"div",34)(53,"button",35),d(54,ae,1,0,"span",36),o(55),t()()()()()(),e(56,"div",37),d(57,le,6,1,"div",38),e(58,"div",20)(59,"div",39)(60,"h5",6),o(61,"Historial de Giros"),t(),e(62,"span",40),o(63),t()(),e(64,"div",41)(65,"table",42)(66,"thead",43)(67,"tr")(68,"th"),o(69,"Fecha"),t(),e(70,"th"),o(71,"Periodo"),t(),e(72,"th"),o(73,"Tipo"),t(),e(74,"th",44),o(75,"Monto Girado"),t(),e(76,"th"),o(77,"Estado"),t()()(),e(78,"tbody"),d(79,de,15,13,"tr",45)(80,me,3,0,"tr",46),t()()()()()()()}if(n&2){let i,r=x();a(8),A("Cr\xE9dito #",r.info.credito_resumen.numero_credito," - ",r.info.credito_resumen.cliente,""),a(3),c(r.info.credito_resumen.plan),a(8),c(_(20,18,r.info.financiero.saldo_disponible,"USD","symbol","1.0-0")),a(5),u("Girado: ",_(25,23,r.info.financiero.total_girado,"USD","symbol","1.0-0"),""),a(3),u("Total Aprobado: ",_(28,28,r.info.financiero.valor_aprobado,"USD","symbol","1.0-0"),""),a(3),P("width",r.progressPercent,"%"),a(),l("ngIf",r.info.operativo.bloqueos.length>0),a(6),l("formGroup",r.form),a(14),l("ngIf",(i=r.form.get("monto"))==null?null:i.hasError("max")),a(2),l("disabled",r.form.invali
1d||r.isProcessing||!r.info.operativo.puede_desembolsar),a(),l("ngIf",r.isProcessing),a(),u(" ",r.isProcessing?"Procesando...":"Realizar Desembolso"," "),a(2),l("ngIf",r.info.operativo.alertas.length>0),a(6),u("",r.info.historial.length," realizados"),a(16),l("ngForOf",r.info.historial),a(),l("ngIf",r.info.historial.length===0)}}function pe(n,s){n&1&&(e(0,"div",60),m(1,"div",61),e(2,"span",62),o(3,"Cargando informaci\xF3n del cr\xE9dito..."),t()())}var Ce=(()=>{class n{route;router;disbursementService;fb;_disbursement=v(y);info=null;form;isLoading=!0;isProcessing=!1;creditId=0;constructor(i,r,p,S){this.route=i,this.router=r,this.disbursementService=p,this.fb=S,this.form=this.fb.group({monto:[0,[h.required,h.min(1e4)]],periodo_academico:["",[h.required]]})}ngOnInit(){this.creditId=Number(this.route.snapshot.paramMap.get("id")),this.loadData()}loadData(){return E(this,null,function*(){this.isLoading=!0;try{let i=yield this.disbursementService.checkAvailability(this.creditId);i&&(this.info=i,i.operativo.puede_desembolsar?(this.form.patchValue({monto:i.financiero.monto_sugerido,periodo_academico:i.operativo.periodo_sugerido}),this.form.get("monto")?.addValidators(h.max(i.financiero.saldo_disponible))):this.form.disable())}catch{alert("Error cargando informaci\xF3n del cr\xE9dito"),this.router.navigate(["/admin/credits"])}this.isLoading=!1})}onSubmit(){return E(this,null,function*(){if(this.isLoading=!0,!this.form.valid){alert("Formulario inv\xE1lido"),this.isLoading=!1;return}try{(yield this._disbursement.store(this.creditId,this.form.value))?(alert("\xA1Desembolso realizado con \xE9xito!"),this.loadData(),this.isLoading=!1,this.form.reset()):alert("Error procesando el desembolso")}catch{alert("Error procesando el desembolso"),this.isLoading=!1;return}})}get progressPercent(){return this.info?this.info.financiero.total_girado/this.info.financiero.valor_aprobado*100:0}static \u0275fac=function(r){return new(r||n)(g(q),g(B),g(y),g(Z))};static \u0275cmp=w({type:n,selectors:[["app-disbursement-process"]],standalone:!0,features:[M],decls:3,vars:2,consts:[["loadingTpl",""],["class","container py-4",4,"ngIf","ngIfElse"],[1,"container","py-4"],["routerLink","/dashboard/credit-admin",1,"card-icon"],[1,"fa-solid","fa-arrow-left"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],[1,"mb-0"],[1,"text-muted","mb-0"],[1,"badge","bg-light","text-dark","border","fs-6"],[1,"row","g-4"],[1,"col-lg-5"],[1,"card","shadow-sm","mb-4","border-0","bg-primary","text-white"],[1,"card-body","p-4"],[1,"text-white-50","text-uppercase","fw-bold"],[1,"display-6","fw-bold","mb-0"],[1,"mt-4"],[1,"d-flex","justify-content-between","text-white-50","small","mb-1"],[1,"progress","bg-white","bg-opacity-25",2,"height","8px"],["role","progressbar",1,"progress-bar","bg-white"],["class","alert alert-danger shadow-sm",4,"ngIf"],[1,"card","shadow-sm","border-0"],[1,"card-header","bg-white","py-3"],[1,"mb-0","text-primary"],[1,"card-body"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"form-label","fw-bold"],["type","text","formControlName","periodo_academico","placeholder","Ej: 2025-1",1,"form-control","form-control-lg"],[1,"text-muted"],[1,"mb-4"],[1,"input-group","input-group-lg"],[1,"input-group-text"],["type","number","formControlName","monto",1,"form-control"],["class","text-danger small mt-1",4,"ngIf"],[1,"d-grid"],["type","submit",1,"btn","btn-primary","btn-lg",3,"disabled"],["class","spinner-border spinner-border-sm me-2",4,"ngIf"],[1,"col-lg-7"],["class","alert alert-warning shadow-sm mb-4",4,"ngIf"],[1,"card-header","bg-white","py-3","d-flex","justify-content-between","align-items-center"],[1,"badge","bg-secondary"],[1,"table-responsive"],[1,"table","table-hover","align-middle","mb-0"],[1,"bg-light"],[1,"text-end"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"alert","alert-danger","shadow-sm"],[1,"alert-heading","fw-bold"],[1,"bi","bi-x-circle-fill"],[1,"mb-0","ps-3"],[1,"text-danger","small","mt-1"],[1,"spinner-border","spinner-border-sm","me-2"],[1,"alert","alert-warning","shadow-sm","mb-4"],[1,"bi","bi-exclamation-triangle-fill"],[1,"fw-bold"],[1,"badge","bg-light","text-dark","border"],[1,"text-end","fw-bold","text-dark"],[1,"badge","bg-success","bg-opacity-10","text-success"],["colspan","5",1,"text-center","py-4","text-muted"],[1,"d-flex","justify-content-center","align-items-center","vh-50","mt-5"],["role","status",1,"spinner-border","text-primary"],[1,"ms-3","text-muted"]],template:function(r,p){if(r&1&&d(0,ce,81,33,"div",1)(1,pe,4,0,"ng-template",null,0,$),r&2){let S=j(2);l("ngIf",p.info)("ngIfElse",S)}},dependencies:[V,G,O,L,k,ee,Q,H,W,J,K,X,Y,R],styles:[".card-icon[_ngcontent-%COMP%]{width:48px;height:48px;background:var(--siceap-primary-a50);border-radius:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;cursor:pointer}.card-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#fff}"]})}return n})();export{Ce as DisbursementProcessComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.