PageSourceSearch

https://rockochitlan.com/build/assets/Show-BV0EVmcc.js

js rockochitlan.com collected 2026-10-04 23:31:22 UTC 4,950 bytes, 1 lines download raw bytes

1import{j as e,L as i,$ as a}from"./app-C-97Z-Yz.js";import{L as l}from"./DefaultLayout-DPro-YVe.js";import{R as x,r as t,e as m,z as n,a as d,U as c}from"./index-DHtGP0-q.js";import"./sweetalert2.esm.all-B0Dix5B2.js";import"./SunIcon-DBg6x8-A.js";import"./floating-ui.react-dom-aoSgedeH.js";import"./index-Co5otJ4c.js";import"./iconBase-BioTjfel.js";function N({user:r}){return e.jsxs(l,{children:[e.jsx(i,{title:`Usuario - ${r.name}`}),e.jsx("div",{className:"mx-auto max-w-7xl py-6 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"overflow-hidden bg-white dark:bg-gray-800 shadow-xl sm:rounded-lg border border-gray-200 dark:border-gray-700",children:[e.jsx("div",{className:"border-b border-gray-200 dark:border-gray-700 px-4 py-5 sm:px-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsxs(a,{href:route("users.index"),className:"mr-4 inline-flex items-center text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:[e.jsx(x,{className:"mr-2 h-4 w-4"}),"Volver"]}),e.jsxs("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white flex items-center",children:[e.jsx(t,{className:"mr-3 h-8 w-8 text-blue-600 dark:text-blue-400"}),"Detalles del Usuario"]})]}),e.jsxs(a,{href:route("users.edit",r),className:"inline-flex items-center rounded-md bg-blue-600 hover:bg-blue-700 dark:bg-blue-700 dark:hover:bg-blue-800 px-4 py-2 text-sm font-medium text-white transition-colors duration-200 shadow-md hover:shadow-lg",children:[e.jsx(m,{className:"mr-2 h-4 w-4"}),"Editar"]})]})}),e.jsx("div",{className:"px-4 py-6 sm:px-6",children:e.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-3",children:[e.jsx("div",{className:"lg:col-span-2",children:e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-6 border border-gray-200 dark:border-gray-700",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Información Personal"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(t,{className:"h-5 w-5 text-gray-400 mr-3"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Nombre"}),e.jsx("p",{className:"text-sm text-gray-900 dark:text-white",children:r.name})]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(n,{className:"h-5 w-5 text-gray-400 mr-3"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Correo Electrónico"}),e.jsx("p",{className:"text-sm text-gray-900 dark:text-white",children:r.email})]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(d,{className:"h-5 w-5 text-gray-400 mr-3"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Fecha de Registro"}),e.jsx("p",{className:"text-sm text-gray-900 dark:text-white",children:new Date(r.created_at).toLocaleDateString("es-SV",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(d,{className:"h-5 w-5 text-gray-400 mr-3"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Última Actualización"}),e.jsx("p",{className:"text-sm text-gray-900 dark:text-white",children:r.updated_at&&new Date(r.updated_at).toLocaleDateString("es-SV",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]})]})]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-6 border border-gray-200 dark:border-gray-700",children:[e.jsxs("h4",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4 flex items-center",children:[e.jsx(c,{className:"mr-2 h-5 w-5"}),"Roles Asignados"]}),e.jsx("div",{className:"space-y-2",children:r.roles.length>0?r.roles.map(s=>e.jsx("div",{className:"inline-flex items-center px-3 py-2 rounded-full text-sm font-medium bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 w-full justify-center",children:s.name},s.id)):e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:"Sin roles asignados"})})]}),e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900/50 rounded-lg p-6 border border-gray-200 dark:border-gray-700",children:[e.jsx("h4",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:"Estado del Usuario"}),e.jsx("div",{className:"text-center",children:e.jsx("span",{className:`inline-flex items-center px-3 py-2 rounded-full text-sm font-medium ${r.active?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300":"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"}`,children:r.active?"Activo":"Inactivo"})})]})]})]})})]})})]})}export{N 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.