1import{u,ab as w,ag as g,j as e,P as j,y as a,L as r}from"./index-FR1rPNJ-.js";const b=()=>{var m,x;const{t:n}=u(),{customer:s,isAuthenticated:l,isLoading:i,logout:d,refreshCustomer:o}=w(),h=g(),t=n.accountPage,c=n.seo.account,p=()=>{d(),h("/")};return e.jsxs("div",{className:"bg-warm-50 min-h-screen",children:[e.jsx(j,{title:c.title,description:c.description}),e.jsxs("section",{className:"max-w-4xl mx-auto px-6 md:px-10 pt-24 md:pt-28 pb-12",children:[e.jsxs("header",{className:"mb-10",children:[e.jsx("h1",{className:"font-display text-5xl md:text-6xl text-warm-900 mb-4",children:t.title}),e.jsx("p",{className:"text-warm-600",children:t.subtitle})]}),a?null:e.jsx("div",{className:"border border-warm-200 bg-white p-8 text-warm-700 rounded-xl",children:t.notConfigured}),a&&i?e.jsx("p",{className:"text-warm-700",children:t.loading}):null,a&&!i&&!l?e.jsxs("div",{className:"border border-warm-200 bg-white p-8 text-warm-700 rounded-xl",children:[e.jsx("p",{className:"mb-5",children:t.notLoggedIn}),e.jsxs("div",{className:"flex flex-wrap gap-4",children:[e.jsx(r,{to:"/login",className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.login}),e.jsx(r,{to:"/register",className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.register})]})]}):null,a&&!i&&l&&s?e.jsxs("div",{className:"border border-warm-200 bg-white p-6 md:p-8 rounded-2xl",children:[e.jsxs("dl",{className:"space-y-4 text-warm-800",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm uppercase tracking-wide text-warm-600",children:t.email}),e.jsx("dd",{className:"text-lg text-warm-900",children:s.email})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm uppercase tracking-wide text-warm-600",children:t.firstName}),e.jsx("dd",{className:"text-lg text-warm-900",children:((m=s.first_name)==null?void 0:m.trim())||t.missing})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm uppercase tracking-wide text-warm-600",children:t.lastName}),e.jsx("dd",{className:"text-lg text-warm-900",children:((x=s.last_name)==null?void 0:x.trim())||t.missing})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-4 mt-8",children:[e.jsx("button",{type:"button",onClick:()=>void o(),className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.refresh}),e.jsx("button",{type:"button",onClick:p,className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.logout}),e.jsx(r,{to:"/orders",className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.orders}),e.jsx(r,{to:"/shop",className:"inline-flex items-center text-sm tracking-wide uppercase text-warm-700 hover:text-warm-900 transition-colors",children:t.shop})]})]}):null]})]})};export{b 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.