import{_}from"./AppLayout.vue_vue_type_script_setup_true_lang-BwuDxc8O.js";import{d as b,o as r,a as d,b as i,e as o,h as v,w as u,f as e,t as n,l as c,i as l,F as m,n as f,j as y}from"./app-bWy6VYs1.js";import{u as p}from"./index-B6UBqE7P.js";import"./index-C32fBP6Q.js";import"./index-CMWG4mbA.js";import"./useForwardExpose-Cx2E44RD.js";import"./VisuallyHidden-0BfmsMPn.js";import"./RovingFocusGroup-D20OvR_w.js";import"./useArrowNavigation-C6Y-ieo6.js";import"./_plugin-vue_export-helper-DmjF0He4.js";const g={class:"space-y-6 p-4"},h={class:"flex items-center justify-between"},k={class:"text-xl font-semibold"},w={class:"flex items-center gap-2"},C={class:"rounded border p-4"},N={class:"space-y-2"},B={key:0,class:"rounded border p-4"},V={class:"flex flex-wrap gap-2"},E={key:1,class:"rounded border p-4"},U={class:"flex flex-wrap gap-2"},j={key:2,class:"rounded border p-4"},A={class:"text-sm text-gray-500"},J=b({__name:"Show",props:{user:{}},setup(x){const s=x;return(F,t)=>(r(),d(m,null,[i(o(v),{title:`User • ${s.user.name}`},null,8,["title"]),i(_,{breadcrumbs:[{title:"Users",href:o(p).index().url},{title:s.user.name,href:"#"}]},{default:u(()=>[e("div",g,[e("div",h,[e("h1",k,n(s.user.name),1),e("div",w,[i(o(c),{href:o(p).edit(s.user.id).url,class:"rounded border px-3 py-1"},{default:u(()=>[...t[0]||(t[0]=[l("Edit",-1)])]),_:1},8,["href"]),i(o(c),{href:o(p).index().url,class:"rounded border px-3 py-1"},{default:u(()=>[...t[1]||(t[1]=[l("Back",-1)])]),_:1},8,["href"])])]),e("div",C,[e("div",N,[e("div",null,[t[2]||(t[2]=e("span",{class:"font-medium"},"Name:",-1)),l(" "+n(s.user.name),1)]),e("div",null,[t[3]||(t[3]=e("span",{class:"font-medium"},"Email:",-1)),l(" "+n(s.user.email),1)])])]),s.user.groups&&s.user.groups.length>0?(r(),d("div",B,[t[4]||(t[4]=e("div",{class:"mb-2 font-medium"},"Groups",-1)),e("div",V,[(r(!0),d(m,null,f(s.user.groups,a=>(r(),d("span",{key:a.id,class:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800"},n(a.name),1))),128))])])):y("",!0),s.user.companies&&s.user.companies.length>0?(r(),d("div",E,[t[5]||(t[5]=e("div",{class:"mb-2 font-medium"},"Company Access",-1)),e("div",U,[(r(!0),d(m,null,f(s.user.companies,a=>(r(),d("span",{key:a.id,class:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800"},n(a.name),1))),128))])])):(r(),d("div",j,[...t[6]||(t[6]=[e("div",{class:"mb-2 font-medium"},"Company Access",-1),e("p",{class:"text-sm text-gray-600"},"This user has access to all companies.",-1)])])),e("div",A,[e("div",null,"Created: "+n(s.user.created_at),1),e("div",null,"Updated: "+n(s.user.updated_at),1)])])]),_:1},8,["breadcrumbs"])],64))}});export{J as default};
