1import{be as m,bZ as u,c5 as y,bE as h,bK as s,b_ as p,by as e,bG as x,J as f,af as g,aI as b,U as F,c as w,b4 as _}from"./index-BOgKjTHI.js";import{C as v}from"./circle-plus-BNG10dHi.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const j=m("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);function D(){const[,l]=u(),i=y(),r=(()=>{try{return sessionStorage.getItem("pw_start_without_doc")==="1"}catch{return!1}})();h.useEffect(()=>{if(s("empty_vault_onboarding_started",{source:r?"start_without_document":"standard_checkout"}),r)try{sessionStorage.removeItem("pw_start_without_doc")}catch{}},[]);const n=p({mutationFn:()=>_("/api/user/welcome-complete","POST",{}),onSuccess:()=>{i.invalidateQueries({queryKey:["/api/user/welcome-state"]})}});function o(t,a){a&&s(a,{source:"vault_welcome"}),n.mutate(),l(t)}const c={backgroundColor:"#FFFFFF",border:"1px solid #E6E2DB",borderRadius:"10px",padding:"20px 24px",cursor:"pointer",transition:"border-color 0.15s",textAlign:"left",width:"100%"},d=[{icon:v,label:"Add family members",detail:"Track health for your whole household",path:"/family",event:"first_family_member_added",primary:!0},{icon:f,label:"Upload first medical record",detail:"Lab result, discharge note, scan, or prescription",path:"/labs",event:"first_document_uploaded_after_start",primary:!0},{icon:g,label:"Add medications",detail:"Current and past medications with dosage",path:"/today",event:"medications_added_from_welcome",primary:!1},{icon:b,label:"Add allergies",detail:"Drug, food, and environmental allergies",path:"/today",event:"allergies_added_from_welcome",primary:!1},{icon:F,label:"Prepare first doctor-ready summary",detail:"Available once you have records uploaded",path:"/doctor-summary",event:"summary_started_from_welcome",primary:!1},{icon:j,label:"Go to your Vault",detail:"View your dashboard and complete setup",path:"/today",event:void 0,primary:!1}];return e.jsx("div",{style:{minHeight:"100vh",backgroundColor:"#FAF9F7"},className:"flex flex-col items-center justify-center px-5 py-16",children:e.jsxs("div",{className:"w-full max-w-[520px]",children:[e.jsxs("div",{className:"flex flex-col items-center mb-10",children:[e.jsx("img",{src:x,alt:"",style:{height:"44px",mixBlendMode:"multiply"},className:"object-contain"}),e.jsx("span",{style:{fontFamily:'Georgia, "Times New Roman", Times, serif',fontSize:"16px",fontWeight:500,color:"#0E1A2B",letterSpacing:"2px",marginTop:"6px"},children:"PRIVAWELL"}),e.jsx("span",{style:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:400,color:"#C2A86D",letterSpacing:"2.5px",marginTop:"2px"},children:"Family Health. Protected."})]}),e.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase mb-4",style:{color:"#C2A86D"},children:"Welcome"}),e.jsx("h1",{className:"text-3xl mb-4 leading-snug",style:{fontFamily:'Georgia, "Times New Roman", Times, serif',color:"#0E1A2B"},children:"Your Family Vault is ready."}),e.jsx("p",{className:"text-base mb-3",style:{color:"#6E7278",lineHeight:"1.75"},children:"Start building your family health record. Add your first document, medication, allergy, or important health note."}),r&&e.jsx("p",{className:"text-sm mb-6 italic",style:{color:"#C2A86D",fontFamily:'Georgia, "Times New Roman", Times, serif'},children:"You do not need to wait for the next appointment to get organised. Start now, add records over time."}),!r&&e.jsx("div",{className:"mb-8"}),e.jsx("div",{className:"flex flex-col gap-3 mb-10",children:d.map(t=>e.jsx("button",{style:{...c,borderColor:t.primary?"#C2A86D":"#E6E2DB",backgroundColor:t.primary?"#FFFDF9":"#FFFFFF"},onClick:()=>o(t.path,t.event),onMouseEnter:a=>a.currentTarget.style.borderColor="#C2A86D",onMouseLeave:a=>a.currentTarget.style.borderColor=t.primary?"#C2A86D":"#E6E2DB",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:t.primary?"#F5EDD9":"#FBF7F0"},children:e.jsx(t.icon,{size:20,style:{color:"#C2A86D"}})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-sm",style:{color:"#2A2E34"},children:t.label}),e.jsx("p",{className:"text-xs mt-0.5",style:{color:"#9A9DA2"},children:t.detail})]}),e.jsx(w,{size:16,className:"ml-auto shrink-0",style:{color:"#C2A86D"}})]})},t.label))}),e.jsxs("p",{className:"text-xs text-center",style:{color:"#9A9DA2"},children:["You can set a permanent password any time from"," ",e.jsx("button",{onClick:()=>o("/settings"),className:"underline",style:{color:"#C2A86D"},children:"account settings"}),"."]})]})})}export{D 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.