1import{j as e,a as i,c as a}from"./app-C9nm_a_f.js";import{N as n,M as o}from"./MobileTabs-X_WFKycW.js";import{B as x}from"./Button-D7lFmnIy.js";import{F as d}from"./Footer-BPA7SEXD.js";import"./LoginController-B83tSgMb.js";import"./ClientProfileController-CqmbE1T5.js";import"./paypal-js-c7UYulfR.js";import"./app-Bz1QbZCQ.js";import"./Icons-e_poaYtE.js";import"./NavbarItems-BzRuGEQb.js";import"./SideMenuItem-B-pcrs_U.js";const m=r=>{const t=r.replace(/\D/g,"");return t.length!==10?r:t.replace(/(\d{2})(\d{4})(\d{4})/,"$1-$2-$3")},c=r=>{const t=Number(r);return Number.isFinite(t)?new Intl.NumberFormat("es-MX",{style:"currency",currency:"MXN"}).format(t):"$0.00"};function p({data:r,wallet:t}){return e.jsx("div",{className:"w-full px-4 pt-10 md:pt-16",children:e.jsxs("div",{className:"mx-auto flex max-w-[980px] flex-col items-center gap-8 lg:flex-row lg:items-center lg:gap-20",children:[e.jsx("div",{className:"shrink-0",children:e.jsx("img",{src:"/img/icons/Usuario.png",alt:"Usuario",className:"h-[120px] w-[120px] object-contain md:h-[150px] md:w-[150px]"})}),e.jsx("div",{className:"w-full rounded-[28px] bg-gradient-to-b from-[#DE4561] to-[#E97483] px-6 py-8 text-white md:px-8 md:py-10 lg:w-[680px]",children:e.jsxs("div",{className:"grid grid-cols-1 gap-y-10 md:grid-cols-2 md:gap-x-16 md:gap-y-14",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-[20px] font-light text-white/90 md:text-[20px]",children:"Nombre"}),e.jsx("h2",{className:"text-[18px] font-bold leading-tight md:text-[18px]",children:r.name})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-[20px] font-light text-white/90 md:text-[20px]",children:"Correo electrónico"}),e.jsx("h2",{className:"break-words text-[18px] font-bold leading-tight md:text-[18px]",children:r.email})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-[20px] font-light text-white/90 md:text-[20px]",children:"Teléfono"}),e.jsx("h2",{className:"text-[18px] font-bold leading-tight md:text-[18px]",children:m(r.phone)})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"mb-2 flex items-center gap-3 text-[20px] font-light text-white/90",children:["Saldo disponible",e.jsx(x,{type:"button",variant:"border",onClick:()=>i.visit("/self-service/wallet"),className:"rounded-full border-2 border-white px-3 py-1 text-xs font-semibold text-white no-underline hover:bg-white hover:text-primary hover:no-underline",children:"Ver"})]}),e.jsx("h2",{className:"text-[18px] font-bold leading-tight",children:c(t?.availableBalance)})]})]})})]})})}function B({sidebar:r=!0}){const{user:t,wallet:s}=a().props,l={name:t?.name||"-",email:t?.email||"-",phone:t?.phone||"-",role:t?.role||"-"};return e.jsxs("div",{className:"flex min-h-dvh flex-col bg-background",children:[e.jsx(n,{}),e.jsx("div",{className:"flex flex-1 flex-col overflow-hidden bg-background",children:e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[r&&e.jsx(o,{}),e.jsx("main",{className:"flex-1 overflow-y-auto",children:e.jsx("div",{className:"container mx-auto p-4 md:pt-2",children:e.jsx(p,{data:l,wallet:s})})})]})}),e.jsx(d,{})]})}export{B 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.