1import{a as h,f,r as c,l as i,j as e,m as n}from"./index-OIRguTWT.js";import{AnalyticsEvents as l}from"./analytics-events-BTze8yZF.js";import{r as b,w}from"./onboardingPrelogin-B39J-wHh.js";import{v as y}from"./vedality-logo-DMUX6JRV.js";import{A as v}from"./arrow-left-N1OhPhMJ.js";import{A as j}from"./arrow-right-Dl8EdTFT.js";const N=["obsess","social","confidence","sleep","stable","moveOn","anxiety","motivation"],d=[.22,1,.36,1];function k({label:t,selected:a,onClick:s}){return e.jsx("button",{type:"button",onClick:s,"aria-pressed":a,className:"press tap-highlight-none rounded-full border px-4 py-2.5 text-sm font-medium backdrop-blur-md transition-all "+(a?"border-transparent bg-gradient-hero text-primary-foreground shadow-glow":"border-border/60 bg-card/40 text-foreground/80 hover:bg-card/70"),children:t})}function _(){const t=h(),a=f(),[s,m]=c.useState(()=>b().goals??[]);c.useEffect(()=>{i(l.OnboardingGoalsView)},[]);const u=o=>m(r=>r.includes(o)?r.filter(g=>g!==o):[...r,o]),p=()=>{s.length>0?(w({goals:s}),i(l.OnboardingGoalsSet,{count:s.length})):i(l.OnboardingGoalsSkipped),a({to:"/auth/signup"})},x=()=>{i(l.OnboardingGoalsSkipped),a({to:"/auth/signup"})};return e.jsxs("div",{className:"relative min-h-screen w-full overflow-hidden bg-background px-5 py-14",children:[e.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-aurora opacity-40"}),e.jsx("div",{className:"absolute -top-[10%] -left-[20%] h-[60%] w-[80%] rounded-full bg-lavender/30 blur-[120px]"}),e.jsx("div",{className:"absolute -bottom-[10%] -right-[20%] h-[60%] w-[80%] rounded-full bg-bloom/25 blur-[120px]"})]}),e.jsxs("div",{className:"relative z-10 mx-auto flex w-full max-w-md flex-col items-center",children:[e.jsxs("div",{className:"mb-6 flex w-full items-center justify-between",children:[e.jsx("button",{onClick:()=>a({to:"/welcome/gender"}),className:"glass flex h-9 w-9 items-center justify-center rounded-full border border-border/60 shadow-soft backdrop-blur-md","aria-label":"Retour",children:e.jsx(v,{className:"h-4 w-4 text-foreground",strokeWidth:2})}),e.jsx(n.img,{initial:{opacity:0,scale:.9},animate:{opacity:.9,scale:1},transition:{duration:.7,ease:d},src:y,alt:"Vedality",width:40,height:40,className:"h-10 w-10 object-contain drop-shadow-[0_4px_16px_color-mix(in_oklch,var(--violet-glow)_45%,transparent)]"}),e.jsx("div",{className:"h-9 w-9"})]}),e.jsxs(n.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.05,duration:.7,ease:d},className:"mb-8 space-y-3 text-center",children:[e.jsx("p",{className:"text-[10px] font-medium uppercase tracking-[0.22em] text-primary/70",children:t("welcome2.goals.eyebrow")}),e.jsx("h1",{className:"font-display text-[28px] font-semibold leading-tight tracking-tight text-foreground text-balance",children:t("welcome2.goals.title")}),e.jsx("p",{className:"mx-auto max-w-[92%] text-[15px] leading-relaxed text-muted-foreground",children:t("welcome2.goals.sub")})]}),e.jsx(n.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.15,duration:.7,ease:d},className:"mb-8 flex w-full flex-wrap gap-2",children:N.map(o=>e.jsx(k,{label:t(`welcome2.goals.opts.${o}`),selected:s.includes(o),onClick:()=>u(o)},o))}),e.jsxs("div",{className:"flex w-full flex-col gap-3",children:[e.jsxs("button",{type:"button",onClick:p,className:"press tap-highlight-none group relative flex w-full items-center justify-center gap-2 rounded-2xl bg-gradient-hero py-5 px-8 text-lg font-bold text-primary-foreground shadow-glow transition-all active:scale-[0.98]",children:[e.jsx("span",{children:t("welcome2.goals.continue")}),e.jsx(j,{className:"h-5 w-5 transition-transform group-hover:translate-x-0.5",strokeWidth:2.2})]}),e.jsx("button",{type:"button",onClick:x,className:"tap-highlight-none rounded-full py-3 text-sm font-medium text-muted-foreground transition-colors hover:text-primary",children:t("welcome2.goals.skip")})]})]})]})}export{_ as component};
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.