PageSourceSearch

https://habitdrop.ai/assets/ProfileSummaryV4-BiMloxqf.js

js habitdrop.ai collected 2026-10-05 13:35:22 UTC 3,530 bytes, 1 lines download raw bytes

1import{j as e,m as s}from"./vendor-motion-DCqB58sd.js";import{r as c}from"./vendor-react-L2bgUL0h.js";function f(i){let t=0;i.frequency==="daily"?t+=25:i.frequency==="several-times-week"?t+=18:i.frequency==="weekly"&&(t+=12),i.duration==="5-plus-years"?t+=25:i.duration==="2-5-years"?t+=18:i.duration==="1-2-years"&&(t+=10),i.financial_impact==="severe"?t+=25:i.financial_impact==="significant"&&(t+=18),i.control_level==="none"?t+=25:i.control_level==="little"&&(t+=18);const a=Math.min(t,100);return a>=75?{percentage:a,level:"Critical",emoji:"😰"}:a>=50?{percentage:a,level:"Challenging",emoji:"😟"}:a>=25?{percentage:a,level:"Developing",emoji:"🤔"}:{percentage:a,level:"Early Stage",emoji:"💭"}}function y({quizData:i}){const[t,a]=c.useState(0),{percentage:n,level:o,emoji:d}=f(i);c.useEffect(()=>{const l=setTimeout(()=>a(n),800);return()=>clearTimeout(l)},[n]);const m=["Gambling has become a significant part of your routine","Financial stress is affecting your daily life","You're ready for change - that's powerful","Recovery support can accelerate your progress"];return e.jsxs("div",{className:"h-full bg-slate-950 px-6 py-10 flex flex-col",children:[e.jsx(s.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.6},className:"text-center mb-8",children:e.jsx("h1",{className:"text-2xl font-bold text-white",children:"Your Profile"})}),e.jsx(s.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{type:"spring",delay:.3},className:"text-center mb-6",children:e.jsx("span",{className:"text-8xl",children:d})}),e.jsxs(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-2",children:o}),e.jsx("p",{className:"text-slate-400",children:"Your current situation"})]}),e.jsxs(s.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},className:"mb-8",children:[e.jsxs("div",{className:"relative h-3 bg-slate-800 rounded-full overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-30",style:{background:"linear-gradient(to right, #10b981, #eab308, #f97316, #ef4444)"}}),e.jsx(s.div,{className:"absolute inset-y-0 left-0 rounded-full",style:{background:"linear-gradient(to right, #06b6d4, #3b82f6, #8b5cf6)"},initial:{width:0},animate:{width:`${t}%`},transition:{duration:1.5,ease:"easeOut",delay:1}})]}),e.jsx(s.div,{className:"relative",initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:2.3},children:e.jsx(s.div,{className:"absolute -top-1",initial:{left:"0%"},animate:{left:`${t}%`},transition:{duration:1.5,ease:"easeOut",delay:1},style:{transform:"translateX(-50%)"},children:e.jsx("div",{className:"w-4 h-4 bg-white rounded-full shadow-lg shadow-cyan-500/50"})})}),e.jsxs("div",{className:"flex justify-between mt-4 text-xs text-slate-500",children:[e.jsx("span",{children:"Low"}),e.jsx("span",{children:"Severe"})]})]}),e.jsx("div",{className:"flex-1 space-y-3",children:m.map((l,r)=>e.jsxs(s.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:1.5+r*.2},className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-cyan-500 mt-1.5 flex-shrink-0"}),e.jsx("p",{className:"text-slate-300 text-sm",children:l})]},r))}),e.jsx(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:2.5},className:"text-center pt-4",children:e.jsx("p",{className:"text-cyan-400 font-medium",children:"Let's create your recovery path →"})})]})}export{y 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.