PageSourceSearch

https://www.vuc.gob.do/assets/Payment.60a916a8.js

js vuc.gob.do collected 2026-10-04 11:17:10 UTC 23,851 bytes, 1 lines download raw bytes

1var Re=Object.defineProperty,qe=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var _e=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable;var ve=(o,s,n)=>s in o?Re(o,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[s]=n,W=(o,s)=>{for(var n in s||(s={}))Ne.call(s,n)&&ve(o,n,s[n]);if(_e)for(var n of _e(s))Te.call(s,n)&&ve(o,n,s[n]);return o},fe=(o,s)=>qe(o,je(s));import{a as Me,_ as Le}from"./StatusComponent.80b32502.js";import{o as l,a as p,b as e,_ as Y,r as Be,q as b,m as _,t as he,v as Fe,x as ee,h as $,s as ze,X as te,u as R,F as J,V as A,a1 as Ve,L as ye,G as Oe,c as L,w as T,d as E,W as Ie,e as C,M as Ae,H as Ee,I as Ze,J as Qe,K as H,Q as He,C as Ue}from"./vendor.01ac1beb.js";import{u as K,a as Ge}from"./state.0e04cc70.js";import{_ as Je}from"./ExclamationCircle.725f8e60.js";import{u as Ke,b as We,_ as xe}from"./index.39c165c0.js";import{B as X}from"./ButtonPrimary.567ea460.js";import{_ as Xe,a as Ye}from"./TabItem.a4dae143.js";import{B as et}from"./BlueArrowIcon.2361e0f6.js";import{_ as tt}from"./TimesCircle.becb91f1.js";const ot=["width","height"],st=["fill"],be={props:{color:{type:String,default:"#E0E0E0"},size:{type:String,default:"36"}},setup(o){return(s,n)=>(l(),p("svg",{width:o.size,height:o.size,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M33 18C33 26.2843 26.2843 33 18 33C9.71571 33 3 26.2843 3 18C3 9.71571 9.71571 3 18 3C26.2843 3 33 9.71571 33 18ZM16.265 25.9424L27.394 14.8133C27.7719 14.4354 27.7719 13.8227 27.394 13.4448L26.0254 12.0762C25.6475 11.6982 25.0348 11.6982 24.6568 12.0762L15.5806 21.1523L11.3432 16.9149C10.9653 16.537 10.3525 16.537 9.97458 16.9149L8.60601 18.2834C8.2281 18.6613 8.2281 19.2741 8.60601 19.652L14.8963 25.9423C15.2743 26.3203 15.887 26.3203 16.265 25.9424Z",fill:o.color},null,8,st)],8,ot))}},at={},lt={width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nt=e("path",{d:"M28.5964 19.8397L30.1708 23.9002H22.1745C22.1745 23.9637 22.1952 24.0483 22.1952 24.1117C22.1952 26.3958 20.3929 28.2357 18.1556 28.2357C15.9183 28.2357 14.116 26.3958 14.116 24.1117C14.116 24.0483 14.116 23.9637 14.1367 23.9002H6.14044L9.64141 14.8064H15.4211C15.0275 14.0027 14.7375 13.1568 14.5511 12.2686H7.81842L3.24023 23.6888V33.84H32.6567V23.4561L30.6679 18.6766C30.0257 19.1418 29.3421 19.5225 28.5964 19.8397Z",fill:"#27AE60"},null,-1),rt=e("path",{d:"M24.6807 18.2956C29.1346 18.2956 32.7599 14.5947 32.7599 10.0477C32.7599 5.50079 29.1346 1.7998 24.6807 1.7998C20.2268 1.7998 16.6016 5.50079 16.6016 10.0477C16.6016 14.5947 20.2268 18.2956 24.6807 18.2956ZM20.434 9.22293L22.9199 11.7608L29.1346 5.4162L30.4604 6.76971L22.9199 14.4678L19.1082 10.5764L20.434 9.22293Z",fill:"#27AE60"},null,-1),ct=[nt,rt];function ut(o,s){return l(),p("svg",lt,ct)}var dt=Y(at,[["render",ut]]);const it={};function pt(o,s){return l(),p("button",{onClick:s[0]||(s[0]=n=>o.$emit("on-click"))},[Be(o.$slots,"default")])}var mt=Y(it,[["render",pt]]);const _t={props:{row:{type:Object,required:!0},compProps:{type:Object}},setup(o){return(s,n)=>(l(),p("button",{onClick:n[0]||(n[0]=v=>s.$router.push({name:"ProcessDetail",params:{view:"resume"}})),class:"flex text-red-600 font-semibold justify-start w-full pl-[30px]"},b(s.$props.compProps.tab==="payment"?"Editar":"Detalle"),1))}},vt={class:"w-full shadow-md rounded-md flex justify-between items-center overflow-auto px-5"},ft={props:{tab:{type:String}},setup(o){const s=o,n=K(),v=_([]),{tab:f}=he(s),P=_([{label:"ID de tr\xE1mite",type:"string",accessor:"process_id"},{label:"Nro de caso",type:"string",accessor:"case_number"},{label:"Tipo Tr\xE1mite",type:"string",accessor:"process_type"},{label:"Precio",type:"string",accessor:"price"},{label:"Estado",type:"component",component:Me},{label:"",type:"component",component:_t,compProps:{tab:f.value}}]);return Fe(()=>{var u;const d=n.storedProcedure();d&&(v.value=[{process_id:d.id,case_number:d.bizagi_procedure_id,process_type:(u=d.type)==null?void 0:u.label,price:`RD ${d.amount}`,status:d.status,procedureObject:d}])}),ee(()=>n.currentProcedure,d=>{var F;const u=n.storedProcedure();u&&(v.value=[{process_id:u.id,case_number:u.bizagi_procedure_id,process_type:(F=u.type)==null?void 0:F.label,price:`RD$ ${u.amount}`,status:u.status,procedureObject:u}])}),(d,u)=>(l(),p("div",vt,[$(Le,{renderHeader:"",headers:P.value,data:v.value},null,8,["headers","data"])]))}},ht=e("h2",{class:"text-vuc font-bold text-2xl mt-[48px]"},"Resumen",-1),yt={class:"mt-[36px]"},xt={class:"flex items-center ml-[24px] mt-[36px]"},bt=e("span",{class:"ml-[20px]"}
1," Su comprobante de pago ha sido enviado con \xE9xito ",-1),gt={class:"flex mt-[36px] ml-[24px] mb-[20px]"},wt=e("h2",{class:"text-vuc font-bold text-xl"},"Monto pagado:",-1),Ct={class:"text-vuc-input font-bold text-xl ml-[70px]"},Pt={setup(o){const s=K(),n=ze("router");return te(()=>{s.currentProcedure||(s.removeCurrentProcedure(),n.push({name:"Dashboard"}))}),(v,f)=>{var P;return l(),p(J,null,[ht,e("div",yt,[$(ft,{tab:"resume"})]),e("div",null,[e("div",xt,[$(be,{color:"#0A7EFF"}),bt]),e("div",gt,[wt,e("span",Ct,"RD$ "+b((P=R(s).currentProcedure)==null?void 0:P.amount),1)])])],64)}}},$t=["width","height"],kt=["fill"],Dt={props:{size:{type:String,default:"48"},color:{type:String,default:"#F0453F"}},setup(o){return(s,n)=>(l(),p("svg",{width:o.size,height:o.size,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M24.2 35.65q.8 0 1.35-.55t.55-1.35q0-.8-.55-1.35t-1.35-.55q-.8 0-1.35.55t-.55 1.35q0 .8.55 1.35t1.35.55Zm-1.75-7.3h2.95q0-1.3.325-2.375T27.75 23.5q1.55-1.3 2.2-2.55.65-1.25.65-2.75 0-2.65-1.725-4.25t-4.575-1.6q-2.45 0-4.325 1.225T17.25 16.95l2.65 1q.55-1.4 1.65-2.175 1.1-.775 2.6-.775 1.7 0 2.75.925t1.05 2.375q0 1.1-.65 2.075-.65.975-1.9 2.025-1.5 1.3-2.225 2.575-.725 1.275-.725 3.375ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z",fill:o.color},null,8,kt)],8,$t))}};const B=o=>(Ze("data-v-dedbc3d6"),o=o(),Qe(),o),St={class:"w-full h-full md:w-[100%] md:h-[100%] overflow-hidden flex flex-col justify-between md:justify-start items-center md:mt-[48px] mx-5 lg:mx-[106px] py-10"},Rt={class:"hidden flex flex-col gap-4 w-full mt-9"},qt={class:"flex flex-col justify-center gap-6 home"},jt={key:0,class:"flex flex-col"},Nt={class:"md:mt-[14px] text-center text-vuc-gray"},Tt=B(()=>e("span",{class:"font-bold"}," Nombre: ",-1)),Mt={class:"md:mt-[14px] text-center text-vuc-gray"},Lt=B(()=>e("span",{class:"font-bold"}," Tipo de Documento: ",-1)),Bt={class:"md:mt-[14px] text-center text-vuc-gray"},Ft=B(()=>e("span",{class:"font-bold"}," Numero de Documento: ",-1)),zt={class:"md:mt-[14px] text-center text-vuc-gray"},Vt=B(()=>e("span",{class:"font-bold"}," Documento: ",-1)),Ot={class:"md:mt-[14px] text-center text-vuc-gray"},It=B(()=>e("span",{class:"font-bold"}," Monto (PAB): ",-1)),At={class:"md:mt-[28px] w-full flex flex-wrap justify-center md:justify-between"},Et=H("No "),Zt=["action"],Qt=["value"],Ht=["value"],Ut=["value"],Gt=["value"],Jt=["value"],Kt=["value"],Wt=["value"],Xt=["value"],Yt=["value"],eo=["value"],to=["value"],oo=H("Si"),so=H("Confirmar"),ao=B(()=>e("h2",{class:"text-vuc font-bold text-2xl mt-5"},"Listado de pagos",-1)),lo={class:"text-gray-500 shadow-md my-0 py-5 px-5 w-full flex flex-col justify-center md:justify-between items-start flex-row gap-3"},no={class:"flex flex-row items-start"},ro={class:"w-full flex flex-col ml-[20px]"},co={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"},uo={class:"font-semibold text-[18px] items-center"},io={key:0,class:"w-[10rem] ml-[1rem]"},po={key:0,class:"text-[14px] text-vuc items-center"},mo=B(()=>e("span",null,"Archivo cargado",-1)),_o=[mo],vo={key:1},fo={key:1,class:"flex items-center gap-2 text-sm w-full md:w-auto"},ho=B(()=>e("span",{class:"font-bold"}," Monto (PAB): ",-1)),yo={key:2,class:"flex flex-col justify-center gap-2 text-sm w-full md:w-auto"},xo={key:0},bo=B(()=>e("p",null,"Pagado v\xEDa tarjeta de cr\xE9dito",-1)),go=["disabled","onClick"],wo={key:0,class:"text-[18px] font-semibold"},Co={props:{payments:{type:Array,default:()=>[]}},emits:["paymentsToCheck"],setup(o,{emit:s}){const n=o;let{payments:v}=he(n);const f=A({name:null,typeDocument:null,numberDocument:null,documentName:null}),P=A({telephone:null,email:null,identityType:null,identity:null,completeName:null,documentName:null}),d=A(W({},f)),u=[[{id:"telephone",label:"Tel\xE9fono",placeholder:"(###)###-#####",name:"telephone",type:"text",rules:[{type:"required",message:"Campo requerido"}]}],[{id:"email",label:"Correo electr\xF3nico",placeholder:"[email protected]",name:"email",type:"text",rules:[{type:"email",message:"Formato de correo electr\xF3nico inv\xE1lido"},{type:"required",message:"Campo requerido"}]}],[{id:"identityType",label:"Tipo de Documento",placeholder:"Tipo de Documento",name:"identityType",type:"select",options:[{label:"Cedula",value:"CC"},{label:"Pasaporte",value:"PP"},{label:"RNC",value:"RNC"}],rules:[{type:"required",message:"Campo requerido"}]}],[{id:"identity",label:"Numero de Documento",placeholder:"Numero de Documento",name:"identity",type:"text",rules:[{type:"required",message:"Campo requerido"}]}],[{id:"completeName",label:"Nombre completo",placeholder:"Escribir",name:"completeName",type:"text",rules:[{type:"required",message:"Campo requerido"}]}]],F=[[{id:"name",label:"Nombre",placeholder:"Nombre",name:"name",type:"text",rules:[{type:"required",message:"Campo requerido"}]}],[{id:"typeDocument",label:"Tipo de Documento",placeholder:"Tipo de Documento",name:"typeDocument",type:"select",options:[{label:"Cedula",value:"C"},{label:"Pasaporte",value:"P"}],rules:[{type:"required",message:"Campo requerido"}]}],[{id:"numberDocument",label:"Numero de Documento",placeholder:"Numero de Documento",name:"numberDocument",type:"text",rules:[{type:"required",message:"Campo requerido"}]}]],O=_([]),I=K(),k=Ke(),U=_([]),q=_([]),j=_([]),Z=_([]),G="https://ecommerce.cardnet.com.do/sirite/pasarela-pago/transaccion",r=_(!1),c=_(null),g=_(),x=_(!1),z=_(),D=_(!1),i=_(),V=_(!1),w=Ve(()=>{var m,a;
1return(a=(m=I.storedProcedure())==null?void 0:m.type)==null?void 0:a.bizagi_id}),ge=m=>m?["application/pdf"].includes(m.type):!1;ee(()=>j.value,m=>{const a=m.find(y=>Object.keys(y).find(t=>y[t]!==null)),h=m.findIndex(y=>Object.keys(y).find(t=>y[t]!==null));a&&(q.value=[...q.value.slice(0,h),!0,...q.value.slice(h+1)])},{deep:!0});const we=({name:m,loaded:a})=>{if(!ge(a)){k.pushSnack({open:!0,severity:"error",message:"Solo se permiten archivos PDF"});return}const h=m.split("-")[1],y=new FormData;y.append("name",h),y.append("file",a);const t=I.storedProcedure();I.uploadPaymentVoucher(t.id,y).then(S=>{const N=v.value.find(M=>M.id===h),Q=v.value.findIndex(M=>M.id===h);if(N){const M=[...v.value.slice(0,Q),A(fe(W({},N),{uploaded:!0,upload:!1})),...v.value.slice(Q+1)];Z.value=M,s("paymentsToCheck",M)}k.pushSnack({open:!0,severity:"success",message:"Se carg\xF3 el archivo correctamente"})}).catch(S=>{k.pushSnack({open:!0,severity:"error",message:"Error al cargar el archivo"})})};te(async()=>{w.value=="8202"||w.value=="3212"?(Object.assign(d,P),O.value=u):(Object.assign(d,f),O.value=F);for(let m in v.value){const a=v.value[m];if(w.value!=="3212"){U.value.push([{id:a.id.toString(),name:`payment_doc-${a.id}`,placeholder:a.value?"Reemplazar comprobante":"Subir comprobante",placeholderClasses:"text-vuc",showPlaceholderIcon:!0,accept:"application/pdf",payment_tc:a.payment_tc,type:"file",rules:[...a.rules,{type:"mimeType",mime:"application/pdf",message:"Solo se permiten archivos PDF"}]}]);let h={};h[`payment_doc-${a.id}`]=null;const y=A(h);j.value.push(y),q.value.push(!1)}Z.value.push(a)}});const Ce=m=>{c.value=m,r.value=!0},Pe=()=>{c.value=null,r.value=!1},$e=()=>{D.value=!0,k.changeLoaderVisibility(!0),d.documentName=c.value.id;const m=w.value=="8202"||w.value=="3212";Ge.getProcedurePaymentsSession(c.value.procedure_id,d,m).then(a=>{var h;m?a&&a.success&&a.url?window.location.href=a.url:(k.pushSnack({open:!0,severity:"error",message:(h=a.message)!=null?h:"No se pudo obtener la URL de pago."}),k.changeLoaderVisibility(!1)):(i.value=a,x.value=!0,k.changeLoaderVisibility(!1))}).catch(a=>{k.changeLoaderVisibility(!1)})},ke=()=>{g.value.click()},De=()=>{z.value.click(),V.value=!0,k.changeLoaderVisibility(!0)};ye(()=>{I.removeCurrentProcedurePayments()});const Se=({valid:m,i:a,id:h})=>{if(q.value=[...q.value.slice(0,a),!1,...q.value.slice(a+1)],!m){let y={};y[`payment_doc-${h}`]=null;const t=A(y);j.value=[...j.value.slice(0,a),t,...j.value.slice(a+1)]}};return(m,a)=>{var y;const h=Oe("FormMaker");return l(),p(J,null,[$(We),r.value?(l(),L(xe,{key:0,visible:r.value},{content:T(()=>{var t,S,N,Q,M,oe,se,ae,le,ne,re,ce,ue,de,ie,pe;return[e("div",St,[$(Dt),e("span",{class:E(["md:mt-[16px] text-center text-3xl font-bold text-vuc",x.value?"":"hidden"])}," \xBFDesea Confirmar su pago?",2),e("div",{class:E([x.value?"hidden":"","w-full"])},[(l(),L(h,{key:"form_user_data_payment",onSubmit:$e,"row-class":"grid grid-cols-1 my-[10px]","column-class":"w-full","label-container-class":"relative flex justify-between","label-class":"font-bold text-lg text-gray-500","input-class":"rounded w-full my-2 border bg-vuc-gray-input h-8 p-2 h-[36px]","input-error-class":"custom-input-error","error-class":"text-red-600 text-sm",modelValue:R(d),"onUpdate:modelValue":a[0]||(a[0]=me=>Ie(d)?d.value=me:d=me),fields:O.value},{"submit-button":T(()=>[e("div",Rt,[e("div",qt,[e("button",{ref_key:"submitCreateConfirmButton",ref:g,type:"submit",class:"button-blue"},null,512)])])]),_:1},8,["modelValue","fields"]))],2),x.value?(l(),p("div",jt,[e("span",Nt,[Tt,e("span",null,b((t=i.value)==null?void 0:t.nombre),1)]),e("span",Mt,[Lt,e("span",null,b((S=i.value)==null?void 0:S.tipoDocumentoLabel),1)]),e("span",Bt,[Ft,e("span",null,b((N=i.value)==null?void 0:N.numeroDocumento),1)])])):C("",!0),e("span",zt,[Vt,e("span",null,b((Q=c.value)==null?void 0:Q.label),1)]),e("span",Ot,[It,e("span",null,b((M=c.value)==null?void 0:M.amount),1)]),e("div",At,[$(mt,{onOnClick:Pe,class:"w-full md:w-[194px] h-[39px] font-bold bg-white text-error text-center text-red-600"},{default:T(()=>[Et]),_:1}),e("form",{action:R(G),method:"post",class:"hidden"},[e("input",{name:"codigoCentroRecaudacion",value:(oe=i.value)==null?void 0:oe.codigoCentroRecaudacion,type:"hidden"},null,8,Qt),e("input",{name:"codigoServicio",value:(se=i.value)==null?void 0:se.codigoServicio,type:"hidden"},null,8,Ht),e("input",{name:"montoServicio",value:(ae=i.value)==null?void 0:ae.montoServicio,type:"hidden"},null,8,Ut),e("input",{name:"cantidadServicios",value:(le=i.value)==null?void 0:le.cantidadServicios,type:"hidden"},null,8,Gt),e("input",{name:"nombre",value:(ne=i.value)==null?void 0:ne.nombre,type:"hidden"},null,8,Jt),e("input",{name:"numeroDocumento",value:(re=i.value)==null?void 0:re.numeroDocumento,type:"hidden"},null,8,Kt),e("input",{name:"tipoDocumento",value:(ce=i.value)==null?void 0:ce.tipoDocumento,type:"hidden"},null,8,Wt),e("input",{name:"idAutorizacionPortal",value:(ue=i.value)==null?void 0:ue.idAutorizacionPortal,type:"hidden"},null,8,Xt),e("input",{name:"medioPago",value:(de=i.value)==null?void 0:de.medioPago,type:"hidden"},null,8,Yt),e("input",{name:"numeroAutorizacion",value:(ie=i.value)==null?void 0:ie.numeroAutorizacion,type:"hidden"},null,8,eo),e("input",{name:"urlRetorno",value:(pe=i.value)==null?void 0:pe.urlRetorno,type:"hidden"},null,8,to),e("input",{ref_key:"paymentButton",ref:z,class:"btn btn-info",type:"submit"},null,512)],8,Zt),$(X,{disabled:D.value,onOnClick:ke,class:E([D.value?"pointer-events-none bg-gray-300 hidden":"","w-full md:w-[194px] h-[39px] font-bold bg-vuc text-center text-white"])},{default:T(()=>[oo]),_:1},8,["disabled","class"]),x.value?(l(),L(X,{key:0,disabled:V.value,onOnClick:De,class:E([V.value?"pointer-events-none bg-gray-300":"","w-full md:w-[194px] h-[39px] font-bold bg-vuc text-center text-white"])},{default:T(()=>[so]),_:1},8,["disabled","class"])):C("",!0)])])]}),_:1},8,["visible"])):C("",!0),ao,e("div",lo,[(l(!0),p(J,null,Ae(Z.value,(t,S)=>(l(),p("div",{class:"w-full text-vuc-gray gap-6 py-5 border-b",key:S},[e("div",no,[e("div",null,[t.uploaded||t.value||(t.payment_tc||R(w)=="8202")&&t.payment_passed?(l(),L(dt,{
1key:0})):(l(),L(Je,{key:1}))]),e("div",ro,[e("div",co,[e("span",uo,b(t.label),1),R(w)!="8202"?(l(),p("div",io,[!t.upload&&(t.uploaded||t.value)?(l(),p("div",po,_o)):(l(),p("div",vo,[(l(),L(h,{key:`form_document_payment_${t.id}`,"label-class":"text-sm font-bold text-lg text-gray-500","input-class":"text-sm","input-error-class":"custom-input-error","error-class":"text-red-600 text-sm",fields:U.value[S],modelValue:j.value[S],"onUpdate:modelValue":N=>j.value[S]=N,onFileSelected:we,validate:q.value[S],onIsValid:N=>Se({valid:N,i:S,id:t.id}),hasActions:!1},null,8,["fields","modelValue","onUpdate:modelValue","validate","onIsValid"]))]))])):C("",!0),t.amount?(l(),p("div",fo,[ho,e("span",null,b(t.amount),1)])):C("",!0),t.payment_tc||R(w)=="8202"?(l(),p("div",yo,[(t.payment_tc||R(w)=="8202")&&t.payment_passed?(l(),p("div",xo,[bo,e("p",null,"Referencia: "+b(t.approval_number),1),e("p",null," Fecha de Pago: "+b(m.$luxon.DateTime.fromISO(t.payment_date).toLocal().toFormat("dd/MM/yyyy hh:mm a")),1)])):C("",!0),e("button",{disabled:!t.upload&&((t.payment_tc||R(w)=="8202")&&(t.payment_passed===!0||t.value!==null||t.uploaded)||!t.payment_tc&&t.value!==null),onClick:Ee(N=>Ce(t),["prevent"]),class:E([!t.upload&&((t.payment_tc||R(w)=="8202")&&(t.payment_passed===!0||t.value!==null||t.uploaded)||!t.payment_tc&&t.value!==null)?"pointer-events-none bg-gray-300":"","bg-vuc text-white border border-black font-bold w-full md:w-auto md:px-5 py-2 rounded hover:text-black hover:bg-white text-xl'"])}," Pagar con Tarjeta de Cr\xE9dito ",10,go)])):C("",!0)])])])]))),128)),((y=R(v))==null?void 0:y.length)?C("",!0):(l(),p("span",wo,"El tr\xE1mite no posee pagos en este momento"))])],64)}}};var Po=Y(Co,[["__scopeId","data-v-dedbc3d6"]]),$o=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",PaymentResume:Pt,PaymentDetail:Po});const ko={class:"w-full md:w-[630px] h-full my-5 overflow-hidden flex flex-col justify-between md:justify-start items-center md:mt-[48px] mx-5 lg:mx-[106px] py-10"},Do={key:2},So=e("div",{class:"md:mt-[20px] text-center text-2xl font-bold text-vuc"}," Ocurri\xF3 un error en la pasarela de pagos, por favor contacte al administrador del sistema ",-1),Ro=[So],qo={key:3,class:"w-full flex flex-col justify-between md:justify-start items-center"},jo=e("span",{class:"md:mt-[16px] text-center text-3xl font-bold text-vuc"},"Resultado de la transacci\xF3n de Pago de Documento",-1),No={class:"md:mt-[14px] text-center text-vuc-gray"},To=e("span",{class:"font-bold"}," Respuesta: ",-1),Mo={class:"md:mt-[14px] text-center text-vuc-gray"},Lo=e("span",{class:"font-bold"}," Numero de Referencia: ",-1),Bo={key:0,class:"md:mt-[14px] text-center text-vuc-gray"},Fo=e("span",{class:"font-bold"}," Fecha del Pago: ",-1),zo={class:"md:mt-[14px] text-center text-vuc-gray"},Vo=e("span",{class:"font-bold"}," Codigo de Autorizaci\xF3n: ",-1),Oo=e("span",{class:"md:mt-[16px] text-center text-xl font-bold text-vuc"},"Recuerde que debe Reportar todos los Pagos al finalizar",-1),Io={class:"md:mt-[28px] w-full flex flex-wrap justify-center"},Ao=H("Continuar"),Eo={class:"h-full w-full flex-col justify-start mb-14"},Zo=e("h2",{class:"text-vuc font-bold text-3xl my-5 text-center lg:text-left"}," Pago de tr\xE1mite ",-1),Qo={class:"process w-full flex flex-col px-2 md:px-5 lg:px-0 h-full lg:min-h-[70vh] max-h-full"},Ho={class:"w-full h-full flex flex-wrap justify-center lg:justify-end gap-3 lg:items-end justify-end py-5 mt-10"},Uo=H(" Atr\xE1s "),Go=["onClick","disabled"],Jo={props:{tabsScope:{type:Object,default:()=>({})},noRoute:{type:Boolean,default:!1}},setup(o){var G;const s=o,n=He(),v=Ue();_(!1),_(!1);const f=K(),P=_([]),d=_(!0),u=_({openModal:!1,result:null,code:null,codeName:null,passed:null,paymentDate:null,authorizationCode:null,retrivalReferenceNumber:null}),F=_((G=n.params)==null?void 0:G.step),O=async(r,c)=>{c?(await f.getProcedureById(c),await f.getProcedurePayments(c)):v.push({name:"ProcessDetail",params:{view:"resume"}})};te(async()=>{if(n.query.id){let{id:r,payment:c,result:g,code:x,codeName:z,passed:D,paymentDate:i,authorizationCode:V,retrivalReferenceNumber:w}=n.query;return u.value={openModal:!0,result:g,code:x,codeName:z,passed:D,paymentDate:i,authorizationCode:V,retrivalReferenceNumber:w},await O(c,r)}if(f.currentProcedure){let{id:r,payment:c}=f.currentProcedure;O(c,r)}else v.push({name:"Dashboard"})});const I=f.$onAction(({name:r,store:c,args:g,after:x,onError:z})=>{x(D=>{r==="getProcedurePayments"&&(d.value=D.payments.find(i=>!i.value&&!i.payment_passed),P.value=D.payments,j(P.value))})});ye(()=>{I()}),ee(()=>n.params,r=>{r.step&&(F.value=r.step)});const k=r=>{f.storedProcedure()&&f.currentProcedure&&!s.noRoute&&v.replace({params:{step:r}})},U=r=>{if(f.currentProcedure){const{id:c}=f.currentProcedure;f.reportPayment(c).then(g=>{v.push({name:"ProcessDetail",params:{view:"resume"}})})}},q=()=>{u.value={openModal:!1,result:null,code:null,codeName:null,passed:null,paymentDate:null,authorizationCode:null,retrivalReferenceNumber:null};const{id:r,payment:c}=f.currentProcedure;O(c,r)},j=r=>{d.value=r.find(c=>!(c.value||c.uploaded)&&!c.payment_passed),P.value=r},Z=()=>{var r,c;s.noRoute?(c=(r=s.tabsScope)==null?void 0:r.back)==null||c.call(r):v.push({name:"Dashboard"})};return(r,c)=>(l(),p(J,null,[$(xe,{visible:u.value.openModal},{content:T(()=>{var g,x,z,D,i,V;return[e("div",ko,[((g=u.value)==null?void 0:g.passed)==="0"||u.value.result==="ERROR"?(l(),L(tt,{key:0,color:"#F0453F"})):C("",!0),((x=u.value)==null?void 0:x.passed)==="1"?(l(),L(be,{key:1,color:"#27AE60"})):C("",!0),u.value.result==="ERROR"?(l(),p("div",Do,Ro)):(l(),p("div",qo,[jo,e("span",No,[To,e("span",null,b((z=u.value)==null?void 0:z.code),1)]),e("span",Mo,[Lo,e("span",null,b((D=u.value)==null?void 0:D.retrivalReferenceNumber),1)]),u.value.passed==="1"?(l(),p("span",Bo,[Fo,e("span",null,b((i=u.value)==null?void 0:i.paymentDate),1)])):C("",!0),e("span",zo,[Vo,e("span",null,b((V=u.value)==null?void 0:V.authorizationCode),1)]),Oo])),e("div",Io,[$(X,{onOnClick:q,class:"w-full md:w-[194px] h-[39px] font-bold bg-white text-error text-center text-red-600"},{default:T(()=>[Ao]),_:1})])])]}),_:1},8,["visible"]),e("div",Eo,[Zo,e("div",Qo,[$(Xe,{"disable-tabs":"","show-step-numbers":"","steps-classes":"lg:mb-5",tab:F.value,onTabChange:k},{content:T(g=>[$(Ye,{title:g.title({key:"payment",title:"Pago"}),tab:g.tab},{default:T(()=>{var x;return[((x=P.value)==null?void 0:x.length)?(l(),L(R($o).PaymentDetail,{key:0,payments:P.value,onPaymentsToCheck:j},null,8,["payments"])):C("",!0)]}),_:2}
1,1032,["title","tab"])]),controls:T(({scope:g})=>[e("div",Ho,[F.value!=="resume"?(l(),p("button",{key:0,onClick:Z,class:"text-vuc-secondary text-xl font-bold flex items-center mb-[20px] mr-[36px]"},[$(et,{class:"fill-vuc-secondary rotate-180"}),Uo])):C("",!0),e("button",{onClick:()=>U(),disabled:d.value,class:E([d.value?"bg-gray-200 text-gray-400":"bg-vuc hover:text-black hover:bg-white text-white","my-4 border border-black font-bold w-full md:w-auto md:px-44 py-2 rounded text-xl"])}," Enviar pagos ",10,Go)])]),_:1},8,["tab"])])])],64))}};var ns=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Jo});export{mt as B,dt as F,ns as P,be as _,Jo as a};

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.