1import{j as e,B as c,a4 as f,a5 as m,ab as p,T as t,e as h,d as b}from"./mui-DyMPnixy.js";import{r,f as g}from"./vendor-BTAVga7P.js";import{u as S}from"./index-CNkoOo8d.js";import"./firebase-BB0x3W83.js";function v(){const{refreshProfile:a,isSubscribed:s}=S(),[l,u]=r.useState(!0),x=g(),i=r.useRef(s);return r.useEffect(()=>{i.current=s},[s]),r.useEffect(()=>{let n=0;const d=20,o=setInterval(async()=>{await a(),n+=1,(i.current||n>=d)&&(clearInterval(o),u(!1))},1500);return()=>clearInterval(o)},[a]),e.jsx(c,{sx:{maxWidth:500,mx:"auto",p:{xs:2,md:4},pt:10,textAlign:"center"},children:e.jsx(f,{sx:{borderRadius:3,boxShadow:"0 6px 30px rgba(0,0,0,0.08)",p:3},children:e.jsxs(m,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx(p,{sx:{color:"success.main",fontSize:60,mb:3}}),e.jsx(t,{variant:"h4",sx:{fontFamily:"Georgia, serif",fontWeight:400,mb:2},children:"SUBSCRIBED SUCCESSFULLY!"}),e.jsx(t,{variant:"body1",sx:{color:"#555",mb:4,lineHeight:1.6},children:"Thank you for your digital subscription! Your premium member access has been successfully unlocked."}),l?e.jsxs(c,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,mb:2},children:[e.jsx(h,{size:24,color:"inherit"}),e.jsx(t,{variant:"caption",sx:{color:"#888",letterSpacing:.5},children:"VERIFYING YOUR SUBSCRIPTION STATUS..."})]}):e.jsx(b,{variant:"contained",onClick:()=>x("/articles"),sx:{backgroundColor:"#151719",color:"white",fontWeight:600,px:4,py:1.5,width:"100%",borderRadius:1,"&:hover":{backgroundColor:"#333"}},children:"START READING"})]})})})}export{v 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.