import{B as g,C as m,_ as c}from"./AppLayout.vue_vue_type_script_setup_true_lang-BwuDxc8O.js";import{d as h,o as a,a as p,b as d,e as r,h as f,w as i,f as e,g as n,l as u,t as o,j as l,F as b}from"./app-bWy6VYs1.js";import{U as x}from"./user-plus-CBmZBYkU.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 v={class:"space-y-6 p-4"},_={class:"grid gap-4 md:grid-cols-2 xl:grid-cols-3"},y={class:"flex items-center gap-3"},w={class:"rounded-lg bg-blue-50 p-2 text-blue-700"},U={class:"mt-4 text-3xl font-semibold tabular-nums text-gray-900"},k={key:0,class:"mt-1 text-sm text-gray-600"},q={class:"flex items-center gap-3"},B={class:"rounded-lg bg-amber-50 p-2 text-amber-700"},R={class:"mt-4 text-3xl font-semibold tabular-nums text-gray-900"},C={class:"flex items-center gap-3"},N={class:"rounded-lg bg-violet-50 p-2 text-violet-700"},V={class:"text-sm text-gray-500"},z={class:"mt-4 text-3xl font-semibold tabular-nums text-gray-900"},H=h({__name:"Index",props:{showRegisteredUsers:{type:Boolean},showUpdateRequests:{type:Boolean},counts:{}},setup(A){return(s,t)=>(a(),p(b,null,[d(r(f),{title:"Client zone — registered users"}),d(c,{breadcrumbs:[{title:"Registered Users",href:"/registered-users"}]},{default:i(()=>[e("div",v,[t[3]||(t[3]=e("div",null,[e("h1",{class:"text-2xl font-semibold text-gray-900"},"Client zone administration"),e("p",{class:"mt-1 text-sm text-gray-600"}," Review approved client logins, pending registrations, and customer information update requests (based on your group permissions). ")],-1)),e("div",_,[s.showRegisteredUsers?(a(),n(r(u),{key:0,href:"/registered-users/registered",class:"group flex flex-col rounded-lg border border-gray-200 bg-white p-5 shadow-sm transition hover:border-blue-300 hover:shadow"},{default:i(()=>[e("div",y,[e("span",w,[d(r(g),{class:"h-5 w-5"})]),t[0]||(t[0]=e("div",null,[e("h2",{class:"font-medium text-gray-900 group-hover:text-blue-700"},"Registered users"),e("p",{class:"text-sm text-gray-500"},"Active and deactivated client accounts")],-1))]),e("p",U,o(s.counts.registered),1),s.counts.deactivated>0?(a(),p("p",k,o(s.counts.deactivated)+" deactivated ",1)):l("",!0)]),_:1})):l("",!0),s.showRegisteredUsers?(a(),n(r(u),{key:1,href:"/registered-users/pending",class:"group flex flex-col rounded-lg border border-gray-200 bg-white p-5 shadow-sm transition hover:border-amber-300 hover:shadow"},{default:i(()=>[e("div",q,[e("span",B,[d(r(x),{class:"h-5 w-5"})]),t[1]||(t[1]=e("div",null,[e("h2",{class:"font-medium text-gray-900 group-hover:text-amber-800"},"Awaiting approval"),e("p",{class:"text-sm text-gray-500"},"New registrations to review")],-1))]),e("p",R,o(s.counts.pending),1)]),_:1})):l("",!0),s.showUpdateRequests?(a(),n(r(u),{key:2,href:"/registered-users/update-requests",class:"group flex flex-col rounded-lg border border-gray-200 bg-white p-5 shadow-sm transition hover:border-violet-300 hover:shadow"},{default:i(()=>[e("div",C,[e("span",N,[d(r(m),{class:"h-5 w-5"})]),e("div",null,[t[2]||(t[2]=e("h2",{class:"font-medium text-gray-900 group-hover:text-violet-800"},"Update requests",-1)),e("p",V,o(s.counts.pending_update_requests)+" pending of "+o(s.counts.update_requests)+" total ",1)])]),e("p",z,o(s.counts.update_requests),1)]),_:1})):l("",!0)])])]),_:1})],64))}});export{H as default};
