import{q as N,j as s,$ as T}from"./app-CffHYkHW.js";import{A as w}from"./app-layout-D-VS7nVU.js";import{b as l,f as o,d as r,h as e,c as v,e as n}from"./table-DVZTgtP_.js";import{C as t,a as d,b as m,c,d as x}from"./card-X_CDEGIm.js";import{B as p}from"./badge-soq0-NVD.js";import{T as C,a as g,b as h,c as j}from"./tabs-CqSoUkEb.js";import"./utils-C8zp8JNC.js";import"./button-qhe8lrPU.js";import"./sheet-Bisw0FSz.js";import"./index-C0loMkA3.js";import"./index-Cy5bElus.js";import"./index-DPkgfxsD.js";import"./x-BfabuQJD.js";import"./createLucideIcon-DAR-hy5d.js";import"./index-C9NeyPdJ.js";import"./index-CjqRk3xD.js";import"./truck-DnoS8QCL.js";import"./package-BHw0cifz.js";import"./shopping-bag-AryJS2XX.js";import"./app-logo-icon-D3Jzt_fn.js";import"./bluetooth-context-CLrE8g1i.js";import"./index-Dw4sHwMN.js";import"./sonner-CPUj7IiR.js";import"./select-ClrGyhQo.js";import"./chevron-down-C5A3yn87.js";import"./input-Bw4IOOzt.js";const P=[{title:"Users",href:route("apps.users.index")},{title:"Detail User",href:"#"}];function Z(){const{user:a}=N().props;return s.jsxs(w,{breadcrumbs:P,children:[s.jsx(T,{title:"Detail User"}),s.jsx("div",{className:"p-4",children:s.jsx("div",{className:"border border-border bg-card text-card-foreground shadow-sm rounded-xl p-4",children:s.jsxs(C,{defaultValue:"information",children:[s.jsxs(g,{children:[s.jsx(h,{value:"information",children:"Personal Information"}),s.jsx(h,{value:"access",children:"Roles & Permissions"})]}),s.jsx(j,{value:"information",children:s.jsxs(t,{children:[s.jsxs(d,{children:[s.jsx(m,{children:"Personal Information"}),s.jsx(c,{children:"This form for showing personal information"})]}),s.jsx(x,{className:"p-0",children:s.jsx(l,{children:s.jsxs(o,{children:[s.jsxs(r,{children:[s.jsx(e,{className:"px-6 w-10 font-bold dark:text-white",children:"Name"}),s.jsx(e,{className:"px-6",children:a.name})]}),s.jsxs(r,{children:[s.jsx(e,{className:"px-6 font-bold dark:text-white",children:"Username"}),s.jsx(e,{className:"px-6",children:a.username})]}),s.jsxs(r,{children:[s.jsx(e,{className:"px-6 font-bold dark:text-white",children:"Email"}),s.jsx(e,{className:"px-6",children:a.email})]})]})})})]})}),s.jsx(j,{value:"access",className:"w-full",children:s.jsxs(t,{children:[s.jsxs(d,{children:[s.jsx(m,{children:"Roles & Permissions"}),s.jsx(c,{children:"This form for showing roles & permissions user"})]}),s.jsx(x,{className:"p-0 overflow-x-auto",children:s.jsxs(l,{children:[s.jsx(v,{children:s.jsxs(r,{children:[s.jsx(n,{className:"px-6 font-bold dark:text-white",children:"Role"}),s.jsx(n,{className:"px-6 font-bold dark:text-white",children:"Permissions"})]})}),s.jsx(o,{children:a.roles.map((i,f)=>s.jsxs(r,{children:[s.jsx(e,{className:"px-6",children:i.name}),s.jsx(e,{className:"px-6",children:s.jsx("div",{className:"flex flex-wrap gap-2",children:i.name==="super-admin"?s.jsx(p,{variant:"default",children:"All Permissions"}):i.permissions.map((b,u)=>s.jsx(p,{variant:"default",children:b.name},u))})})]},f))})]})})]})})]})})})]})}export{Z as default};
