1import{c as N,g as v,ab as y,j as e,U as h,C as a,s as l,ac as w,a6 as k,n as A,ad as C,S as P,F as U,ae as p,L as r,B as t}from"./index-DhwrhnZy.js";import{C as z}from"./clock-J-VTec2g.js";import{C as n}from"./credit-card-CbcRMTxa.js";import{K as j}from"./key-BX-e7lT6.js";function L(){var c,m,o,x;const{user:s}=N(),{billingPlan:d,organization:i}=v(),{brand:f,setBrand:g}=y();if(!s)return e.jsx(h,{title:"Profile",children:e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("p",{className:"text-muted-foreground",children:"Please log in to view your profile."})})});const u=s.createdAt?new Date(s.createdAt).toLocaleDateString():"N/A";return e.jsx(h,{title:"My Profile",subtitle:"View and manage your account details",children:e.jsxs("div",{className:"max-w-5xl mx-auto space-y-6 lg:space-y-8",children:[e.jsxs(a,{className:"relative overflow-hidden border-border/60 bg-gradient-to-br from-primary/[0.06] via-brand-500/[0.04] to-blue-500/[0.05] p-6 sm:p-8",children:[e.jsx("div",{className:"absolute inset-0 bg-grid opacity-30 pointer-events-none"}),e.jsxs("div",{className:"relative flex flex-col sm:flex-row sm:items-center gap-5",children:[e.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-2xl bg-primary text-primary-foreground flex items-center justify-center text-2xl sm:text-3xl font-semibold shadow-sm shrink-0",children:((m=(c=s.name)==null?void 0:c.charAt(0))==null?void 0:m.toUpperCase())||((x=(o=s.email)==null?void 0:o.charAt(0))==null?void 0:x.toUpperCase())||"U"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-semibold tracking-tight text-foreground",children:s.name||"User"}),e.jsx("p",{className:"text-muted-foreground mt-1 truncate",children:s.email}),e.jsxs("div",{className:"flex flex-wrap gap-2 mt-3",children:[e.jsx(l,{variant:"secondary",className:"capitalize",children:s.role}),e.jsxs(l,{className:"bg-primary/10 text-primary border-primary/20 hover:bg-primary/15 capitalize",children:[d||"Free"," Plan"]})]})]})]})]}),e.jsxs(a,{className:"overflow-hidden",children:[e.jsxs("div",{className:"px-5 py-4 border-b border-border/60 flex items-center gap-2 bg-muted/30",children:[e.jsx(w,{className:"w-5 h-5 text-primary"}),e.jsx("h3",{className:"text-base font-semibold text-foreground tracking-tight",children:"Appearance"})]}),e.jsxs("div",{className:"p-5 flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-sm",children:"Teal theme"}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:"Use the teal brand accent across the app. Turn off for the classic purple look. Saved to this browser."})]}),e.jsx(k,{checked:f==="teal",onCheckedChange:b=>g(b?"teal":"purple"),"aria-label":"Toggle teal theme"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8",children:[e.jsxs(a,{className:"overflow-hidden",children:[e.jsxs("div",{className:"px-5 py-4 border-b border-border/60 flex items-center gap-2 bg-muted/30",children:[e.jsx(A,{className:"w-5 h-5 text-primary"}),e.jsx("h3",{className:"text-base font-semibold text-foreground tracking-tight",children:"Account Details"})]}),e.jsxs("div",{className:"p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(C,{className:"w-4 h-4"})," Email"]}),e.jsx("span",{className:"font-medium text-sm truncate",children:s.email})]}),e.jsx("div",{className:"border-t border-border/60"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(P,{className:"w-4 h-4"})," Role"]}),e.jsx("span",{className:"font-medium text-sm capitalize",children:s.role})]}),e.jsx("div",{className:"border-t border-border/60"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(U,{className:"w-4 h-4"})," Member Since"]}),e.jsx("span",{className:"font-medium text-sm",children:u})]}),e.jsx("div",{className:"border-t border-border/60"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(z,{className:"w-4 h-4"})," User ID"]}),e.jsx("span",{className:"font-mono text-xs text-muted-foreground truncate",children:s.id})]})]})]}),e.jsxs(a,{className:"overflow-hidden",children:[e.jsxs("div",{className:"px-5 py-4 border-b border-border/60 flex items-center gap-2 bg-muted/30",children:[e.jsx(p,{className:"w-5 h-5 text-primary"}),e.jsx("h3",{className:"text-base font-semibold text-foreground tracking-tight",children:"Organization"})]}),e.jsxs("div",{className:"p-5 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Name"}),e.jsx("span",{className:"font-medium text-sm truncate",children:(i==null?void 0:i.name)||"Your Organization"})]}),e.jsx("div",{className:"border-t border-border/60"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(n,{className:"w-4 h-4"})," Plan"]}),e.jsx(l,{className:"bg-primary/10 text-primary border-primary/20 hover:bg-primary/15 capitalize",children:d||"Free"})]}),e.jsx("div",{className:"border-t border-border/60"}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Organization ID"}),e.jsx("span",{className:"font-mono text-xs text-muted-foreground truncate",children:s.organizationId||"N/A"})]})]})]})]}),e.jsxs(a,{className:"overflow-hidden",children:[e.jsxs("div",{className:"px-5 py-4 border-b border-border/60 flex items-center gap-2 bg-muted/30",children:[e.jsx(j,{className:"w-5 h-5 text-primary"}),e.jsx("h3",{className:"text-base font-semibold text-foreground tracking-tight",children:"Qu
1ick Actions"})]}),e.jsx("div",{className:"p-5",children:e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(r,{href:"/workspace",children:e.jsxs(t,{variant:"outline",children:[e.jsx(p,{className:"w-4 h-4 mr-2"}),"Workspace Settings"]})}),e.jsx(r,{href:"/pricing",children:e.jsxs(t,{variant:"outline",children:[e.jsx(n,{className:"w-4 h-4 mr-2"}),"Upgrade Plan"]})}),e.jsx(r,{href:"/account/billing",children:e.jsxs(t,{variant:"outline",children:[e.jsx(n,{className:"w-4 h-4 mr-2"}),"Gary Packages"]})}),e.jsx(r,{href:"/api-dashboard",children:e.jsxs(t,{variant:"outline",children:[e.jsx(j,{className:"w-4 h-4 mr-2"}),"API Keys"]})})]})})]})]})})}export{L 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.