PageSourceSearch

https://www.trabajando.cl/_nuxt/BpRfevfJ.js

js trabajando.cl collected 2026-09-25 15:18:33 UTC 2,294 bytes, 1 lines download raw bytes

1import{_ as D,f as S,i as $,B as A,A as H,o as n,c as r,a as o,b as M,k as c,F as B,D as F,C as m,y as u}from"./DFp-2ogX.js";import{u as j}from"./BY8jzNnG.js";import"./CkKvUDht.js";const E={class:"modal-dialog modal-lg"},N={class:"modal-content"},q={class:"d-flex justify-content-between px-3 pt-4 text-primary"},I={class:"modal-body"},L={class:"d-flex justify-content-between"},V={class:"col"},G={class:"fw-bold mb-0 pt-3"},Y={key:1,class:"border border-primary rounded text-center pt-3"},z={__name:"HistorialPagosPremium",props:{idSuscripcion:{type:String,default:""}},emits:["modalCerrado","modalAbierto"],setup(g,{expose:_,emit:v}){const y=g,p=v,f=u(null),i=u(null),{$bootstrap:x}=S(),{getPagosHistoricos:h}=j(),{numMiles:w}=$(),l=u([]);A(()=>{i.value=new x.Modal(f.value)});const P=async()=>{await C(),p("modalAbierto"),i.value.show()},k=()=>{i.value.hide(),p("modalCerrado")},C=async()=>{var e;const{data:s}=await h(y.idSuscripcion);(e=s.value)!=null&&e.length&&(l.value=s.value.sort((a,t)=>new Date(t.fechaCreacion)-new Date(a.fechaCreacion)))},b=s=>{const e=new Date(s),a=e.toLocaleString("es-ES",{month:"long"}),t=e.getDate(),d=e.getFullYear();return`${t} de ${a} de ${d}`};return _({abrirModal:P}),(s,e)=>{const a=H("font-awesome-icon");return n(),r("div",{ref_key:"modalPagosPremium",ref:f,class:"modal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false"},[o("div",E,[o("div",N,[o("div",q,[e[1]||(e[1]=o("h2",{class:"modal-title fw-bold"},"Historial de pagos Premium",-1)),M(a,{icon:"fa-solid fa-xmark",class:"fs-3",style:{cursor:"pointer"},onClick:e[0]||(e[0]=t=>k())})]),o("div",I,[c(l).length?(n(!0),r(B,{key:0},F(c(l),(t,d)=>(n(),r("div",{key:d,class:"div-verde rounded mb-3"},[o("div",L,[o("div",V,[o("p",G,m(b(t.fechaCreacion))+" al "+m(b(t.fechaProximoPago)),1),o("p",null,"$"+m(c(w)(t.subtotalIva)),1)]),e[2]||(e[2]=o("div",{class:"col text-end d-flex align-items-center justify-content-end pe-2 pe-md-4"},[o("button",{class:"btn btn-primary-green text-white",type:"button"}," Pagado ")],-1))])]))),128)):(n(),r("div",Y,[...e[3]||(e[3]=[o("p",{class:"fw-bold fs-5"},"Aún no hay nada que contar acá",-1),o("p",null,"Espera que se procese tu pago y regresa más tarde.",-1)])]))])])])],512)}}},Q=D(z,[["__scopeId","data-v-b7cb3a4e"]]);export{Q as default};

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.