import{t as e}from"./building-2-DUJdgm_o.js";import{Eu as t,Fl as n,Xa as r,Zn as i,qt as a}from"./index-Q5R6-AeA.js";var o=t();function s({data:t}){let s=i(r,t);if(!s||s.__typename!==`LtdFinancialEntity`)return(0,o.jsx)(`div`,{});let{isActive:c,adminInfo:l,clientInfo:u}=s,d=!!l?.id,f=!!u?.id;return(0,o.jsx)(`header`,{className:`sticky top-0 z-50 w-full border-b border-border bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/60`,children:(0,o.jsx)(`div`,{className:`container mx-auto px-4 md:px-6 lg:px-8 max-w-7xl`,children:(0,o.jsxs)(`div`,{className:`flex h-16 items-center justify-between gap-4`,children:[(0,o.jsxs)(`div`,{className:`flex items-center gap-3 min-w-0 flex-1`,children:[(0,o.jsx)(`div`,{className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-accent`,children:(0,o.jsx)(e,{className:`h-5 w-5 text-accent-foreground`})}),(0,o.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,o.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,o.jsx)(`h1`,{className:`text-lg font-semibold text-foreground`,children:s.name}),c?(0,o.jsx)(a,{variant:`secondary`,children:`Active`}):(0,o.jsx)(a,{variant:`destructive`,children:`Inactive`}),d&&(0,o.jsx)(a,{variant:`outline`,children:`Admin`}),f&&(0,o.jsx)(a,{variant:`outline`,children:`Client`})]}),(0,o.jsxs)(`p`,{className:`text-sm text-muted-foreground truncate`,children:[`Business ID: `,s.id]})]})]}),(0,o.jsxs)(`div`,{className:`hidden md:flex items-center gap-6 text-sm`,children:[s.governmentId&&(0,o.jsxs)(`div`,{className:`text-right`,children:[(0,o.jsx)(`p`,{className:`text-muted-foreground`,children:`Tax ID`}),(0,o.jsx)(`p`,{className:`font-medium text-foreground`,children:s.governmentId})]}),(0,o.jsxs)(`div`,{className:`text-right`,children:[(0,o.jsx)(`p`,{className:`text-muted-foreground`,children:`Since`}),(0,o.jsx)(`p`,{className:`font-medium text-foreground`,children:n(s.createdAt,`MMM yyyy`)})]})]})]})})})}export{s as t};