PageSourceSearch

https://hhbeing1.com/assets/start-hhb1-Cz_Dkifo.js

js hhbeing1.com collected 2026-10-09 22:05:02 UTC 11,480 bytes, 1 lines download raw bytes

1import{i as P,h as R,x as w,r as O,j as e,a9 as D,l as d,m,b7 as I,A,a5 as _,F as B,Z as $,R as F}from"./index-BKEVV9PV.js";import{C as H}from"./chart-no-axes-column-CCwzhIGF.js";const U={REGISTERED:"Registered",PROFILE_INCOMPLETE:"Profile Incomplete",ASSESSMENT_READY:"Assessment Ready",ASSESSMENT_IN_PROGRESS:"Assessment In Progress",ASSESSMENT_COMPLETE:"Assessment Complete",ACTIVE_MEMBER:"Active Member",RENEWAL_DUE:"Renewal Due",LAPSED:"Lapsed"},G={REGISTERED:{text:"text-slate-400",bg:"bg-slate-800",dot:"bg-slate-500"},PROFILE_INCOMPLETE:{text:"text-amber-400",bg:"bg-amber-900/30",dot:"bg-amber-500"},ASSESSMENT_READY:{text:"text-cyan-400",bg:"bg-cyan-900/30",dot:"bg-cyan-500"},ASSESSMENT_IN_PROGRESS:{text:"text-violet-400",bg:"bg-violet-900/30",dot:"bg-violet-500"},ASSESSMENT_COMPLETE:{text:"text-emerald-400",bg:"bg-emerald-900/30",dot:"bg-emerald-500"},ACTIVE_MEMBER:{text:"text-emerald-400",bg:"bg-emerald-900/30",dot:"bg-emerald-500"},RENEWAL_DUE:{text:"text-amber-400",bg:"bg-amber-900/30",dot:"bg-amber-500"},LAPSED:{text:"text-red-400",bg:"bg-red-900/30",dot:"bg-red-500"}},V={PAYMENT:"💳",LOGIN:"🔐",PROFILE_UPDATED:"👤",ASSESSMENT_STARTED:"📋",ASSESSMENT_COMPLETE:"✅",REPORT_GENERATED:"📊",SUBSCRIPTION_ACTIVATED:"🎉",SUBSCRIPTION_CANCELED:"❌",SUBSCRIPTION_RENEWED:"🔄",EMAIL_SENT:"📧",CONSOLE_ACCESS:"🖥️",ENTITLEMENT_GRANTED:"🔓",ENTITLEMENT_REVOKED:"🔒"};function z({domain:t}){const n=t.percent===100?"bg-emerald-500":t.percent>=60?"bg-cyan-500":t.percent>0?"bg-amber-500":"bg-slate-700",r=t.percent===100?"text-emerald-400":t.percent>=60?"text-cyan-400":t.percent>0?"text-amber-400":"text-slate-600";return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-xs text-slate-400 w-28 shrink-0",children:t.label}),e.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-slate-800",children:e.jsx("div",{className:`h-1.5 rounded-full transition-all duration-700 ${n}`,style:{width:`${t.percent}%`}})}),e.jsxs("span",{className:`text-xs font-bold w-8 text-right ${r}`,children:[t.percent,"%"]})]})}const T=[$,_,H,F,I],C={cyan:{border:"hover:border-cyan-500/50",icon:"text-cyan-400 bg-cyan-500/10",arrow:"group-hover:text-cyan-400"},violet:{border:"hover:border-violet-500/50",icon:"text-violet-400 bg-violet-500/10",arrow:"group-hover:text-violet-400"},emerald:{border:"hover:border-emerald-500/50",icon:"text-emerald-400 bg-emerald-500/10",arrow:"group-hover:text-emerald-400"},amber:{border:"hover:border-amber-500/50",icon:"text-amber-400 bg-amber-500/10",arrow:"group-hover:text-amber-400"},slate:{border:"hover:border-slate-500/50",icon:"text-slate-400 bg-slate-700",arrow:"group-hover:text-slate-400"},red:{border:"hover:border-red-500/50",icon:"text-red-400 bg-red-500/10",arrow:"group-hover:text-red-400"}};function Y({action:t,index:n}){const[,r]=R(),s=C[t.color]??C.slate,c=T[n%T.length];return e.jsx(d,{onClick:()=>r(t.href),className:`bg-slate-900 border-slate-700 cursor-pointer transition-all duration-150 group ${s.border}`,children:e.jsxs(m,{className:"p-4 flex items-center gap-3",children:[e.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 ${s.icon}`,children:e.jsx(c,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-bold text-white mb-0.5",children:t.label}),e.jsx("p",{className:"text-xs text-slate-500 leading-snug",children:t.description})]}),e.jsx("span",{className:`text-xs font-bold text-slate-600 transition-colors whitespace-nowrap ${s.arrow}`,children:t.cta})]})})}function K(){var f,v,S,y;const{user:t,loading:n}=P(),[,r]=R(),{data:s,isLoading:c}=w({queryKey:["/api/member/lifecycle"],queryFn:async()=>{const a=localStorage.getItem("authToken"),l=await fetch("/api/member/lifecycle",{headers:{Authorization:`Bearer ${a}`}});return l.ok?l.json():null},enabled:!!t,staleTime:3e4}),{data:b}=w({queryKey:["/api/member/timeline"],queryFn:async()=>{const a=localStorage.getItem("authToken"),l=await fetch("/api/member/timeline?limit=5",{headers:{Authorization:`Bearer ${a}`}});return l.ok?l.json():[]},enabled:!!t,staleTime:6e4});if(O.useEffect(()=>{!n&&!t&&r("/login")},[n,t]),n||!t)return null;const L=(s==null?void 0:s.memberNumber)??`HHB1-${String(t.id).padStart(9,"0")}
1`,p=(s==null?void 0:s.lifecycleState)??"REGISTERED",h=G[p],k=U[p],i=s==null?void 0:s.profileCompletion,N=(s==null?void 0:s.nextActions)??[],o=((f=s==null?void 0:s.subscription)==null?void 0:f.consoleType)??"individual",M=((y=(S=(v=s==null?void 0:s.subscription)==null?void 0:v.planType)==null?void 0:S.replace(/_/g," "))==null?void 0:y.replace(/\b\w/g,a=>a.toUpperCase()))??"Member",g=o==="clinician"?"/onboarding/clinician":o==="family"?"/onboarding/family":o==="organization"?"/onboarding/organization":"/onboarding/individual",u=o==="clinician"?"/clinic/patients":o==="family"?"/family/dashboard":o==="organization"?"/org/dashboard":"/app/dashboard",x=(i==null?void 0:i.overall)??0,j=x<60,E=a=>{if(j){r(g);return}r(a)};return e.jsx("div",{className:"min-h-screen bg-slate-950 text-white",children:e.jsxs("div",{className:"max-w-xl mx-auto px-4 py-10",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 mb-3",children:[e.jsx(D,{className:"w-4 h-4 text-cyan-400"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-widest text-cyan-500",children:"HHB1 Membership"})]}),e.jsxs("h1",{className:"text-5xl font-black tracking-tight mb-4",children:["HHB",e.jsx("span",{className:"text-amber-400",children:"1"})]}),e.jsxs("div",{className:"inline-block bg-slate-900 border border-slate-700 rounded-2xl px-8 py-5 shadow-xl mb-4",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest text-slate-500 mb-1",children:"Member Number"}),e.jsx("p",{className:"font-mono text-emerald-400 text-2xl font-black tracking-[0.15em]",children:L}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:M})]}),e.jsxs("div",{className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-bold ${h.bg} ${h.text}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${h.dot}`}),k]})]}),e.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 mb-5",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-sm font-bold text-white",children:"Profile Completion"}),e.jsx("span",{className:`text-lg font-black ${x>=80?"text-emerald-400":x>=50?"text-cyan-400":"text-amber-400"}`,children:c?"—":`${x}%`})]}),i?e.jsx("div",{className:"space-y-2.5",children:i.domains.map(a=>e.jsx(z,{domain:a},a.key))}):e.jsx("div",{className:"space-y-2.5",children:[1,2,3,4,5].map(a=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-28 h-3 bg-slate-800 rounded animate-pulse"}),e.jsx("div",{className:"flex-1 h-1.5 bg-slate-800 rounded animate-pulse"}),e.jsx("div",{className:"w-8 h-3 bg-slate-800 rounded animate-pulse"})]},a))}),j&&!c&&e.jsx("button",{onClick:()=>r(g),className:"mt-4 w-full text-center text-xs font-bold text-amber-400 hover:text-amber-300 transition-colors py-2",children:"Complete Profile →"})]}),N.length>0&&e.jsxs("div",{className:"mb-5",children:[e.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-3",children:"What's Next"}),e.jsx("div",{className:"space-y-2",children:N.slice(0,3).map((a,l)=>e.jsx(Y,{action:a,index:l},a.href))})]}),e.jsxs("div",{className:"mb-5",children:[e.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-3",children:"Assessment Options"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(d,{onClick:()=>E("/app/assessments"),className:"bg-slate-900 border-slate-700 cursor-pointer transition-all hover:border-cyan-500/40 group",children:e.jsxs(m,{className:"p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-cyan-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(I,{className:"w-4 h-4 text-cyan-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-bold text-white",children:"Start Full HHB1 Assessment"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Up to 135 items · Recommended"})]}),e.jsx(A,{className:"w-4 h-4 text-slate-700 group-hover:text-cyan-400 transition-colors"})]})}),e.jsx(d,{onClick:()=>E(u),className:"bg-slate-900 border-slate-700 cursor-pointer transition-all hover:border-violet-500/40 group",children:e.jsxs(m,{className:"p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-violet-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(_,{className:"w-4 h-4 text-violet-400"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-bold text-white",children:"Use AI Assessment"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Conversational guided interview · Faster"})]}),e.jsx(A,{className:"w-4 h-4 text-slate-700 group-hover:text-violet-400 transition-colors"})]})}),e.jsx(d,{className:"bg-slate-900/50 border-slate-800 cursor-not-allowed opacity-60",children:e.jsxs(m,{className:"p-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-slate-800 flex items-center justify-center flex-shrink-0",children:e.jsx(B,{className:"w-4 h-4 text-slate-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-bold text-slate-500",children:"Import Medical History"}),e.jsx("p",{className:"text-xs text-slate-600",children:"Upload records from your provider"})]}),e.jsx("span",{className:"text-[9px] font-black uppercase text-slate-600 border border-slate-700 rounded px-1.5 py-0.5",children:"Soon"})]})})]})]}),b&&b.length>0&&e.jsxs("div",{className:"mb-5",children:[e.jsx("h2",{className:"text-xs font-bold uppercase tracking-wider text-slate-500 mb-3",children:"Recent Activity"}),e.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-4 space-y-3",children:b.map((a,l)=>e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"text-base leading-none mt-0.5",children:V[a.event_type]??"ðŸ“
1Œ"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-semibold text-slate-300",children:a.title}),a.description&&e.jsx("p",{className:"text-xs text-slate-600 truncate",children:a.description})]}),e.jsx("p",{className:"text-[10px] text-slate-600 shrink-0",children:a.created_at?new Date(a.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric"}):""})]},l))})]}),e.jsxs("div",{className:"flex items-center justify-center gap-4 flex-wrap mt-4",children:[e.jsx("button",{onClick:()=>r(u),className:"text-xs text-slate-600 hover:text-slate-400 transition-colors",children:"Go to dashboard"}),e.jsx("span",{className:"text-slate-800",children:"·"}),e.jsx("button",{onClick:()=>r("/app/subscription"),className:"text-xs text-slate-600 hover:text-slate-400 transition-colors",children:"Manage subscription"}),e.jsx("span",{className:"text-slate-800",children:"·"}),e.jsx("button",{onClick:()=>r("/pricing"),className:"text-xs text-slate-600 hover:text-slate-400 transition-colors",children:"View plans"}),e.jsx("span",{className:"text-slate-800",children:"·"}),e.jsx("a",{href:"mailto:[email protected]",className:"text-xs text-slate-600 hover:text-slate-400 transition-colors",children:"Support"})]})]})})}export{K 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.