import{C as m}from"./CoachLayout-DmiDPFPr.js";import{a as d,b as a,d as u,h as g,e as r,f as e,t as l,o as p,q as s,p as b,F as x}from"./app-DtilF0jd.js";import"./MobileNavigationDrawer-BV2kxNFx.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./DarkModeToggle-wIsj_tj1.js";import"./ImpersonationBanner-BXRKEhdr.js";import"./DropdownLink-Bsw03pEy.js";const f={class:"py-12"},v={class:"mx-auto max-w-2xl sm:px-6 lg:px-8"},y={class:"bg-white rounded-lg shadow overflow-hidden"},w={class:"p-6 border-b"},h={class:"space-y-2 text-sm"},C={class:"flex justify-between"},P={class:"font-mono"},T={class:"flex justify-between"},k={class:"flex justify-between"},D={class:"flex justify-between"},S={class:"flex justify-between font-bold text-lg pt-2 border-t"},j={class:"text-blue-600"},B={class:"p-6 bg-blue-50"},I={key:0,class:"bg-white p-4 rounded-lg border border-blue-200"},N={class:"text-sm whitespace-pre-wrap"},F={key:1,class:"bg-white p-4 rounded-lg border border-blue-200 text-sm"},V={class:"mt-4 p-4 bg-yellow-100 rounded-lg"},E={class:"text-sm text-yellow-800"},L={class:"p-6 flex gap-3"},G={__name:"PaymentPending",props:{invoice:Object,bankDetails:String},setup(o){const i=n=>new Intl.NumberFormat("es-ES",{style:"currency",currency:"USD"}).format(n),c=n=>{navigator.clipboard.writeText(n),alert("Copiado al portapapeles")};return(n,t)=>(p(),d(x,null,[a(u(g),{title:"Pago Pendiente"}),a(m,null,{header:r(()=>[...t[1]||(t[1]=[e("h2",{class:"text-xl font-semibold leading-tight text-gray-800"}," Pago Pendiente ",-1)])]),default:r(()=>[e("div",f,[e("div",v,[e("div",y,[t[15]||(t[15]=e("div",{class:"p-6 bg-yellow-50 border-b border-yellow-100"},[e("div",{class:"flex items-center"},[e("span",{class:"text-4xl mr-4"},"⏳"),e("div",null,[e("h3",{class:"text-lg font-semibold text-yellow-800"},"Esperando Confirmación de Pago"),e("p",{class:"text-yellow-700"},"Tu suscripción se activará una vez confirmemos el pago.")])])],-1)),e("div",w,[t[7]||(t[7]=e("h4",{class:"font-semibold mb-4"},"Detalles de la Factura",-1)),e("div",h,[e("div",C,[t[2]||(t[2]=e("span",{class:"text-gray-500"},"Número:",-1)),e("span",P,l(o.invoice.invoice_number),1)]),e("div",T,[t[3]||(t[3]=e("span",{class:"text-gray-500"},"Plan:",-1)),e("span",null,l(o.invoice.subscription?.plan?.name),1)]),e("div",k,[t[4]||(t[4]=e("span",{class:"text-gray-500"},"Subtotal:",-1)),e("span",null,l(i(o.invoice.subtotal)),1)]),e("div",D,[t[5]||(t[5]=e("span",{class:"text-gray-500"},"ITBIS (18%):",-1)),e("span",null,l(i(o.invoice.tax)),1)]),e("div",S,[t[6]||(t[6]=e("span",null,"Total a Pagar:",-1)),e("span",j,l(i(o.invoice.total)),1)])])]),e("div",B,[t[12]||(t[12]=e("h4",{class:"font-semibold mb-4 text-blue-800"},"Datos para Transferencia",-1)),o.bankDetails?(p(),d("div",I,[e("pre",N,l(o.bankDetails),1)])):(p(),d("div",F,[...t[8]||(t[8]=[e("p",null,[e("strong",null,"Banco:"),s(" Banco Popular Dominicano")],-1),e("p",null,[e("strong",null,"Cuenta:"),s(" 123-456789-0")],-1),e("p",null,[e("strong",null,"Tipo:"),s(" Corriente")],-1),e("p",null,[e("strong",null,"Titular:"),s(" CoachPro SRL")],-1),e("p",null,[e("strong",null,"RNC:"),s(" 123-456789-1")],-1)])])),e("div",V,[e("p",E,[t[9]||(t[9]=e("strong",null,"Importante:",-1)),t[10]||(t[10]=s(" Incluye el número de factura ",-1)),e("button",{onClick:t[0]||(t[0]=z=>c(o.invoice.invoice_number)),class:"font-mono bg-yellow-200 px-2 py-0.5 rounded cursor-pointer hover:bg-yellow-300"},l(o.invoice.invoice_number),1),t[11]||(t[11]=s(" en el concepto de la transferencia. ",-1))])])]),e("div",L,[a(u(b),{href:n.route("coach.subscription.index"),class:"flex-1 py-2 text-center border rounded-lg hover:bg-gray-50"},{default:r(()=>[...t[13]||(t[13]=[s(" Volver a Suscripción ",-1)])]),_:1},8,["href"]),a(u(b),{href:n.route("dashboard"),class:"flex-1 py-2 text-center bg-blue-600 text-white rounded-lg hover:bg-blue-700"},{default:r(()=>[...t[14]||(t[14]=[s(" Ir al Dashboard ",-1)])]),_:1},8,["href"])])]),t[16]||(t[16]=e("div",{class:"mt-6 text-center text-sm text-gray-500"},[e("p",null,"¿Ya realizaste el pago? La confirmación puede tardar hasta 24 horas."),e("p",null,[s("¿Tienes dudas? Contáctanos en "),e("a",{href:"mailto:soporte@coachpro.com",class:"text-blue-600 hover:underline"},"soporte@coachpro.com")])],-1))])])]),_:1})],64))}};export{G as default};
