1import{E as ee,r as x,j as e,G as D,ag as B,a7 as se,H as G,J as M,B as te,T as S,K as ae,w as j,C as O,f as le,a6 as re,L as k,h as ne,A as ie,Z as oe}from"./index-D-ZsJRgs.js";import{G as de}from"./GameShell-Dz-02e1o.js";import{s as ce}from"./gameUtils-DNdqJwxn.js";import{u as xe,a as me,I as he,C as pe}from"./InvestorPerformanceReport-DRaqszBt.js";import{T as E}from"./trophy-CxKx0Zlz.js";import{I as be}from"./info-C9z_Lum9.js";import{C as ue}from"./circle-alert-DQgE_1Vd.js";import{C as fe}from"./circle-x-Ce-bOZYn.js";import"./mic-Bk3nuRO3.js";import"./chart-column-Dd4RZPoW.js";const t={type:"Single Family Rental",location:"Chicago, IL",purchasePrice:155e3,estimatedRepairs:25e3,arv:22e4,monthlyRent:1850,taxes:275,insurance:125,mortgage:1050,otherExpenses:200},ge=t.mortgage+t.taxes+t.insurance+t.otherExpenses,R=t.monthlyRent-ge,U=(t.monthlyRent-t.taxes-t.insurance-t.otherExpenses)*12,C=U/t.purchasePrice,L=t.arv-t.purchasePrice-t.estimatedRepairs,H=t.arv*.08,q=t.arv-t.purchasePrice-t.estimatedRepairs-H,je="buy-hold",_="yes",K="100-300",ye="yes";function Y(r){return r==="buy-hold"?50:r==="brrrr"?40:r==="fix-flip"?20:r==="wholesale"?10:0}function V(r){return{"buy-hold":{label:"Excellent Choice!",detail:"Buy & Hold is the strongest strategy here. With $200/mo positive cash flow and a 9.3% cap rate, this is a solid long-term rental. Chicago rents continue to appreciate and you're building equity every month."},brrrr:{label:"Strong Answer!",detail:"BRRRR works well here too! After $25K in repairs you're still $40K below ARV, so a refinance could recapture most of your capital. Cash flow after a new loan would likely be tighter, but the strategy is viable."},"fix-flip":{label:"Possible, But Not Optimal",detail:"Flipping could generate ~$22,400 profit, but only after 8% selling costs. Given strong rent-to-price ratios in Chicago, holding long-term likely generates more total return. Flip margins here are too thin for most investors."},wholesale:{label:"You Would Leave Money On The Table",detail:"Wholesaling means assigning your contract for a fee â typically $5Kâ$15K. With $40K in equity and positive cash flow, you would be selling a great deal to another investor instead of building your own wealth."},pass:{label:"This Was A Good Deal!",detail:"Passing here misses a real opportunity. Positive cash flow, 9.3% cap rate, and $40K in built-in equity make this a strong beginner rental. Many investors would jump at these numbers in Chicago."}}[r]}function ve(r){return r>=100?{title:"Deal Analyzer",color:"text-gold-400",icon:E}:r>=60?{title:"Cash Flow Investor",color:"text-emerald-400",icon:S}:{title:"Rookie Investor",color:"text-info-400",icon:oe}}function l(r){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(r)}function W(r){return(r*100).toFixed(1)+"%"}function g({selected:r,correct:n,revealed:d,onClick:y,children:v}){let o="w-full text-left px-5 py-3.5 rounded-xl border text-sm font-medium transition-all duration-200 flex items-center gap-3";return d?n?o+=" bg-white border-emerald-500 text-dark-900":r?o+=" bg-white border-error-500 text-dark-900":o+=" bg-white border-dark-200 text-dark-700":r?o+=" bg-white border-gold-400 text-dark-900":o+=" bg-white border-dark-200 text-dark-900 hover:border-dark-300 hover:bg-dark-50 cursor-pointer",e.jsxs("button",{className:o,onClick:y,disabled:d,children:[e.jsxs("span",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center flex-shrink-0 ${d&&n?"border-emerald-500 bg-emerald-100":d&&r?"border-error-500 bg-error-100":r?"border-gold-400 bg-gold-100":"border-dark-200"}`,children:[d&&n&&e.jsx(j,{size:11,className:"text-emerald-600"}),d&&r&&!n&&e.jsx(fe,{size:11,className:"text-error-600"}),!d&&r&&e.jsx("span",{className:"w-2 h-2 rounded-full bg-gold-400"})]}),v]})}function A({pts:r,earned:n}){return e.jsxs("span",{className:`inline-flex items-center gap-1 text-[10px] font-bold px-2 py-0.5 rounded-full border ${n?"bg-gold-400/15 border-gold-400/30 text-gold-400":"bg-white/5 border-white/10 text-dark-500"}`,children:["+",r," pts"]})}function Fe(){const{user:r}
1=ee(),n=xe(),{showTip:d,dismissTip:y,activeTip:v}=me(),[o,N]=x.useState("intro"),[a,m]=x.useState({strategy:null,cashFlow:null,cfEstimate:null,beginner:null}),[p,b]=x.useState(1),[P,z]=x.useState(!1),[Q,F]=x.useState(!1),h=a.strategy!=null?Y(a.strategy):0,u=a.cashFlow===_?25:0,f=a.cfEstimate===K?25:0,T=25,c=h+u+f+T,$=a.strategy&&a.cashFlow&&a.cfEstimate&&a.beginner,J=()=>{n.playGameStart(),N("playing")},X=x.useCallback(async()=>{if(z(!0),n.playResults(c,125),r)try{await ce(r.id,"deal-analyzer-challenge",c,125,a),F(!0)}catch{}N("result"),z(!1),window.scrollTo({top:0,behavior:"smooth"})},[r,c,a,n]),I=()=>{n.playReset(),N("intro"),m({strategy:null,cashFlow:null,cfEstimate:null,beginner:null}),b(1),F(!1),window.scrollTo({top:0,behavior:"smooth"})},w=ve(c),Z=w.icon;return e.jsxs(de,{title:"Deal Analyzer Challenge",metaTitle:"Deal Analyzer Challenge â Free Real Estate Analysis Game | REI Vault Pro",metaDescription:"Play the Deal Analyzer Challenge and learn how real estate investors calculate cash flow, cap rate, equity, flip profit, and deal strategy.",slug:"deal-analyzer-challenge",metaKeywords:"deal analyzer challenge, free real estate game, cash flow calculator game, cap rate game, flip profit simulator, real estate analysis practice",metaJsonLd:{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Deal Analyzer Challenge",applicationCategory:"Game",operatingSystem:"Web",description:"Learn real estate deal analysis â cash flow, cap rate, equity, flip profit, and investment strategy.",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},url:"https://www.REIVaultPro.com/investor-games/deal-analyzer-challenge"},coachAccent:"#10b981",coach:{objective:"You'll analyze a real investment property in Chicago. Your goal is to decide whether to Buy, Flip, Wholesale, BRRRR, or Pass based on the deal numbers. Think like an investor â look at cash flow, equity, and profit potential.",rules:["You'll answer 5 questions about the same property deal.","Read the deal details carefully before choosing your strategy.","Each question tests a different part of your investor knowledge.","You cannot go back once you answer â choose wisely!","Your final strategy choice is the most important question."],scoring:["Strategy Choice: up to 50 points â choosing Buy or BRRRR scores highest.","Cash Flow Recognition: 25 points â spot the monthly cash flow correctly.","DSCR Knowledge: 25 points â identify if the loan covers itself.","Deal Completion: 25 points â finishing all 5 questions.","Maximum Score: 125 points per game session."],levels:["Rookie Investor â 0 to 249 total points earned.","Deal Analyzer â 250 to 499 points.","Cash Flow Expert â 500 to 999 points.","Portfolio Builder â 1,000 to 1,999 points.","Market Pro â 2,000 to 4,999 points.","Deal Room Legend â 5,000+ points."],profitGoal:"This is a knowledge game. The more accurately you analyze deals, the more points you earn. Your real goal is to train your eye to spot profitable real estate deals faster than other investors â a skill worth thousands in real life.",tips:["A good deal usually has positive monthly cash flow after all expenses.","Cap rate above 7% is generally solid for a rental property.","DSCR above 1.25 means the rent comfortably covers the mortgage.","BRRRR works best when you can refinance 70â75% of ARV and recover your cash."]},children:[o==="intro"&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-gold-400/10 border border-gold-400/20 text-gold-400 text-[10px] font-bold uppercase tracking-widest mb-5",children:[e.jsx(D,{size:11})," All Members · Free to Play"]}),e.jsxs("h1",{className:"font-display text-3xl sm:text-4xl lg:text-5xl font-bold text-white mb-4",children:["Deal Analyzer",e.jsx("br",{}),e.jsx("span",{className:"gold-text",children:"Challenge"})]}),e.jsx("p",{className:"text-dark-400 text-sm max-w-xl mx-auto leading-relaxed",children:"Analyze a real investment deal. Calculate cash flow, cap rate, and equity â then make your call. Do you have the eye of a seasoned investor?"})]}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{icon:B,label:"5 Questions",sub:"4 decision points"},{icon:E,label:"125 Pts Max",sub:"earn your rank"},{icon:se,label:"3â5 Min",sub:"quick challenge"}].map((s,i)=>e.jsxs("div",{className:"bg-white/4 border border-white/8 rounded-2xl p-4 text-center",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-gold-400/10 border border-gold-400/20 flex items-center justify-center mx-auto mb-2",children:e.jsx(s.icon,{size:16,className:"text-gold-400"})}),e.jsx("p",{className:"text-white text-sm font-bold",children:s.label}),e.jsx("p",{className:"text-dark-500 text-[10px] mt-0.5",children:s.sub})]},i))}),e.jsxs("div",{className:"bg-gradient-to-br from-white/6 to-white/2 border border-white/10 rounded-3xl overflow-hidden",children:[e.jsxs("div",{className:"bg-gradient-to-r from-emerald-700 to-emerald-900 px-6 py-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-white/15 flex items-center justify-center",children:e.jsx(G,{size:17,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-bold text-sm",children:"Today's Deal"}),e.jsxs("p",{className:"text-emerald-200 text-xs",children:[t.type," · ",t.location]})]}),e.jsx("span",{className:"ml-auto text-[10px] font-bold bg-white/15 text-emerald-100 px-2.5 py-1 rounded-full",children:"Sample Deal"})]}),e.jsx("div",{className:"p-6 grid grid-cols-2 sm:grid-cols-4 gap-4",children:[{label:"Purchase Price",value:l(t.purchasePrice),icon:M,color:"text-white"},{label:"Estimated Repairs",value:l(t.estimatedRepairs),icon:te,color:"text-amber-400"},{label:"After Repair Value",value:l(t.arv),icon:S,color:"text-emerald-400"},{label:"Monthly Rent",value:l(t.monthlyRent)+"/mo",icon:G,color:"text-info-400"}].map((s,i)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[e.jsx(s.icon,{size:12,className:"text-dark-400"}),e.jsx("p",{className:"text-[10px] text-dark-400 font-semibold uppercase tracking-wide",children:s.label})]}),e.jsx("p",{className:`text-lg font-bold font-mono ${s.color}`,children:s.value})]},i))}),e.jsx("div",{className:"px-6 pb-5 grid grid-cols-2 sm:grid-cols-4 gap-3",children:[{label:"Monthly Mortgage",value:l(t.mortgage)+"/mo"},{label:"Taxes",value:l(t.taxes)+"/mo"},{label:"Insurance",value:l(t.insurance)+"/mo"},{label:"Other Expenses",value:l(t.otherExpenses)+"/mo"}].map((s,i)=>e.jsxs("div",{className:"bg-white/3 border border-white/8 rounded-xl px-3 py-2.5",children:[e.jsx("p",{className:"text-[10px] text-dark-500 font-semibold mb-0.5",children:s.label}),e.jsx("p",{className:"text-xs font-bold text-dark-300 font-mono",children:s.value})]},i))})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("button",{onClick:J,className:"inline-flex items-center gap-2.5 px-10 py-4.5 rounded-2xl text-base font-bold text-dark-950 shadow-[0_8px_32px_rgba(212,175,55,0.4)] transition-all hover:brightness-110 active:scale-95",style:{background:"linear-gradient(135deg, #d4af37 0%, #f6c90e 30%, #ffe880 50%, #d4af37 70%, #b8960c 100%)"}
1,children:[e.jsx(ae,{size:18,fill:"currentColor"})," Start Challenge"]}),e.jsx("p",{className:"text-dark-500 text-xs mt-3",children:"Available to all members · Free through Lifetime"})]})]}),o==="playing"&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"font-display text-2xl font-bold text-white",children:"Deal Analyzer Challenge"}),e.jsxs("p",{className:"text-dark-500 text-xs mt-0.5",children:[t.type," · ",t.location]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-[10px] text-dark-500 font-semibold uppercase tracking-widest",children:"Progress"}),e.jsxs("p",{className:"text-white text-sm font-bold",children:[[a.strategy,a.cashFlow,a.cfEstimate,a.beginner].filter(Boolean).length," / 4"]})]})]}),e.jsx("div",{className:"h-1.5 bg-white/8 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${[a.strategy,a.cashFlow,a.cfEstimate,a.beginner].filter(Boolean).length/4*100}%`,background:"linear-gradient(90deg, #d4af37, #f6c90e)"}})}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-4",children:[e.jsxs("p",{className:"text-[10px] font-bold text-dark-900 uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[e.jsx(be,{size:11})," Deal Summary"]}),e.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-8 gap-3",children:[{l:"Price",v:"$155K"},{l:"Repairs",v:"$25K"},{l:"ARV",v:"$220K"},{l:"Rent",v:"$1,850"},{l:"Mortgage",v:"$1,050"},{l:"Taxes",v:"$275"},{l:"Insurance",v:"$125"},{l:"Other",v:"$200"}].map((s,i)=>e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-[9px] text-dark-700 font-semibold uppercase",children:s.l}),e.jsx("p",{className:"text-xs font-bold text-dark-900 font-mono",children:s.v})]},i))})]}),e.jsxs("div",{className:`bg-white border rounded-3xl p-6 transition-all duration-200 ${p===1?"border-gold-400":"border-dark-200"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 mb-5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-gold-400/15 border border-gold-400/30 flex items-center justify-center flex-shrink-0 text-gold-400 text-xs font-bold",children:"1"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-dark-900 font-bold text-base leading-tight",children:"What would you do with this deal?"}),e.jsx("p",{className:"text-dark-700 text-xs mt-1",children:"Choose the best strategy for this property and market."})]}),a.strategy&&e.jsx(A,{pts:Y(a.strategy),earned:!0})]}),e.jsx("div",{className:"space-y-2.5",children:[{val:"buy-hold",label:"Buy and Hold",sub:"Rent it long-term for cash flow",tip:"buy-rental"},{val:"fix-flip",label:"Fix and Flip",sub:"Renovate and sell for profit",tip:"buy-flip"},{val:"wholesale",label:"Wholesale",sub:"Assign the contract to another investor",tip:"wholesale"},{val:"brrrr",label:"BRRRR",sub:"Buy, Rehab, Rent, Refinance, Repeat",tip:"buy-brrrr"},{val:"pass",label:"Pass",sub:"This deal doesn't pencil for me",tip:"pass-deal"}].map(s=>e.jsx(g,{selected:a.strategy===s.val,correct:s.val===je,revealed:!1,onClick:()=>{n.playSelect(),m(i=>({...i,strategy:s.val})),b(2),n.playNextQuestion(),d(s.tip)},children:e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-dark-900",children:s.label}),e.jsxs("span",{className:"text-xs text-dark-700 ml-2",children:["â ",s.sub]})]})},s.val))})]}),e.jsxs("div",{className:`bg-white border rounded-3xl p-6 transition-all duration-200 ${p===2?"border-gold-400":"border-dark-200"} ${a.strategy?"":"opacity-50 pointer-events-none"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 mb-5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-gold-400/15 border border-gold-400/30 flex items-center justify-center flex-shrink-0 text-gold-400 text-xs font-bold",children:"2"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-dark-900 font-bold text-base leading-tight",children:"Is this deal positive cash flow?"}),e.jsx("p",{className:"text-dark-700 text-xs mt-1",children:"Monthly Rent â Mortgage â Taxes â Insurance â Other Expenses"})]}),a.cashFlow&&e.jsx(A,{pts:u,earned:u>0})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{val:"yes",label:"Yes â Positive Cash Flow"},{val:"no",label:"No â Negative Cash Flow"}].map(s=>e.jsx(g,{selected:a.cashFlow===s.val,correct:s.val===_,revealed:!1,onClick:()=>{n.playSelect(),m(i=>({...i,cashFlow:s.val})),b(3),n.playNextQuestion()},children:s.label},s.val))})]}),e.jsxs("div",{className:`bg-white border rounded-3xl p-6 transition-all duration-200 ${p===3?"border-gold-400":"border-dark-200"} ${a.cashFlow?"":"opacity-50 pointer-events-none"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 mb-5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-gold-400/15 border border-gold-400/30 flex items-center justify-center flex-shrink-0 text-gold-400 text-xs font-bold",children:"3"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-dark-900 font-bold text-base leading-tight",children:"What is the estimated monthly cash flow?"}),e.jsx("p",{className:"text-dark-700 text-xs mt-1",children:"Calculate: Rent â all monthly expenses"})]}),a.cfEstimate&&e.jsx(A,{pts:f,earned:f>0})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{val:"less-100",label:"Less than $100/mo"},{val:"100-300",label:"$100 â $300/mo"},{val:"300-500",label:"$300 â $500/mo"},{val:"over-500",label:"Over $500/mo"}].map(s=>e.jsx(g,{selected:a.cfEstimate===s.val,correct:s.val===K,revealed:!1,onClick:()=>{n.playSelect(),m(i=>({...i,cfEstimate:s.val})),b(4),n.playNextQuestion()},children:s.label},s.val))})]}),e.jsxs("div",{className:`bg-white border rounded-3xl p-6 transition-all duration-200 ${p===4?"border-gold-400":"border-dark-200"} ${a.cfEstimate?"":"opacity-50 pointer-events-none"}`,children:[e.jsxs("div",{className:"flex items-start gap-3 mb-5",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-gold-400/15 border border-gold-400/30 flex items-center justify-center flex-shrink-0 text-gold-400 text-xs font-bold",children:"4"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-dark-900 font-bold text-base leading-tight",children:"Is this a
1strong beginner investor deal?"}),e.jsx("p",{className:"text-dark-700 text-xs mt-1",children:"Consider the cash flow, equity, cap rate, and overall risk level."})]})]}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{val:"yes",label:"Yes"},{val:"no",label:"No"},{val:"need-more",label:"Need More Info"}].map(s=>e.jsx(g,{selected:a.beginner===s.val,correct:s.val===ye,revealed:!1,onClick:()=>{n.playSelect(),m(i=>({...i,beginner:s.val}))},children:s.label},s.val))})]}),e.jsxs("div",{className:"text-center pt-2",children:[e.jsx("button",{disabled:!$||P,onClick:X,className:"inline-flex items-center gap-2.5 px-10 py-4 rounded-2xl text-sm font-bold text-dark-950 shadow-[0_8px_32px_rgba(212,175,55,0.35)] transition-all hover:brightness-110 active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed",style:{background:"linear-gradient(135deg, #d4af37 0%, #f6c90e 30%, #ffe880 50%, #d4af37 70%, #b8960c 100%)"},children:P?"Calculating...":e.jsxs(e.Fragment,{children:[e.jsx(E,{size:16})," See My Results"]})}),!$&&e.jsx("p",{className:"text-dark-500 text-xs mt-2",children:"Answer all 4 questions to see your score."})]})]}),o==="result"&&e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"bg-dark-950 border border-gold-400/20 rounded-3xl overflow-hidden",children:e.jsxs("div",{className:"p-8 sm:p-10 text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl metallic-gold flex items-center justify-center mx-auto mb-5 shadow-gold",children:e.jsx(Z,{size:28,className:"text-dark-950"})}),e.jsx("p",{className:"text-dark-400 text-xs font-bold uppercase tracking-widest mb-2",children:"Your Investor Rank"}),e.jsx("p",{className:`font-display text-2xl font-bold mb-1 ${w.color}`,children:w.title}),e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-5",children:[e.jsx("span",{className:"font-display text-5xl sm:text-6xl font-bold text-white",children:c}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"text-dark-400 text-xs",children:"out of"}),e.jsx("p",{className:"text-white font-bold",children:"125 pts"})]})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 max-w-lg mx-auto mb-6",children:[{label:"Strategy",pts:h,max:50},{label:"Cash Flow?",pts:u,max:25},{label:"CF Range",pts:f,max:25},{label:"Completed",pts:T,max:25}].map((s,i)=>e.jsxs("div",{className:"bg-white border border-dark-200 rounded-xl p-3 text-center",children:[e.jsx("p",{className:"text-[9px] text-dark-700 font-semibold uppercase tracking-wide mb-1",children:s.label}),e.jsx("p",{className:`text-lg font-bold font-mono ${s.pts>0?"text-gold-500":"text-dark-700"}`,children:s.pts}),e.jsxs("p",{className:"text-[9px] text-dark-600",children:["/ ",s.max]})]},i))}),e.jsx("div",{className:"h-2 bg-white/8 rounded-full overflow-hidden max-w-sm mx-auto",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-1000",style:{width:`${c/125*100}%`,background:"linear-gradient(90deg, #d4af37, #f6c90e, #d4af37)"}})})]})}),a.strategy&&e.jsx("div",{className:"bg-white border border-dark-200 rounded-3xl p-6 sm:p-8",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 ${h>=40?"bg-emerald-100 border border-emerald-300":h>=20?"bg-amber-100 border border-amber-300":"bg-error-100 border border-error-300"}`,children:h>=40?e.jsx(j,{size:20,className:"text-emerald-600"}):e.jsx(ue,{size:20,className:"text-amber-600"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-dark-900 font-bold text-base mb-1",children:V(a.strategy).label}),e.jsx("p",{className:"text-dark-700 text-sm leading-relaxed",children:V(a.strategy).detail})]})]})}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl overflow-hidden",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-dark-200 flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-100 border border-emerald-300 flex items-center justify-center",children:e.jsx(O,{size:15,className:"text-emerald-600"})}),e.jsx("p",{className:"text-dark-900 font-bold",children:"Deal Analysis â Correct Answers"})]}),e.jsxs("div",{className:"p-6 grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-[10px] font-bold text-dark-900 uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[e.jsx(M,{size:11})," Monthly Cash Flow"]}),e.jsxs("p",{className:"font-mono text-2xl font-bold text-emerald-600 mb-3",children:[l(R),"/mo"]}),e.jsxs("div",{className:"space-y-1.5 text-xs font-mono text-dark-700",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Monthly Rent"}),e.jsx("span",{className:"text-dark-900",children:l(t.monthlyRent)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Mortgage"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.mortgage)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Taxes"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.taxes)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Insurance"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.insurance)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Other"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.otherExpenses)]})]}),e.jsxs("div",{className:"flex justify-between pt-2 border-t border-dark-200 font-bold",children:[e.jsx("span",{className:"text-dark-900",children:"Net Cash Flow"}),e.jsx("span",{className:"text-emerald-600",children:l(R)})]})]})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-[10px] font-bold text-dark-900 uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[e.jsx(le,{size:11})," Cap Rate"]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-amber-600 mb-3",children:W(C)}),e.jsxs("div",{className:"space-y-1.5 text-xs font-mono text-dark-700",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Annual Rent"}),e.jsx("span",{className:"text-dark-900",children:l(t.monthlyRent*12)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Annual Expenses (no mortgage)"}),e.jsxs("span",{className:"text-error-600",children:["â",l((t.taxes+t.insurance+t.otherExpenses)*12)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Annual NOI"}),e.jsx("span",{className:"text-dark-900",children:l(U)})]}),e.jsxs("div",{className:"flex justify-between pt-2 border-t border-dark-200 font-bold",children:[e.jsx("span",{className:"text-dark-900",children:"Cap Rate"}),e.jsx("span",{className:"text-amber-600",children:W(C)})]})]}),e.jsx("p",{className:"text-[10px] text-dark-700 mt-3",children:"Anything above 6% is generally considered a solid cap rate for Chicago SFR."})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-[10px] font-bold text-dark-900 uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[e.jsx(S,{size:11})," Built-In Equity"]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-info-600 mb-3",children:l(L)}),e.jsxs("div",{className:"space-y-1.5 text-xs font-mono text-dark-700",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"After Repair Value (ARV)"}),e.jsx("span",{className:"text-dark-900",children:l(t.arv)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Purchase Price"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.purchasePrice)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Repair Costs"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.estimatedRepairs)]})]}),e.jsxs("div",{className:"flex justify-between pt-2 border-t border-dark-200 font-bold",children:[e.jsx("span",{className:"text-dark-900",children:"Instant Equity"}),e.jsx("span",{className:"text-info-600",children:l(L)})]})]}),e.jsx("p",{className:"text-[10px] text-dark-700 mt-3",children:"You're buying $40K below market after repairs. This is your BRRRR or appreciation cushion."})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-[10px] font-bold text-dark-900 uppercase tracking-widest mb-3 flex items-center gap-1.5",children:[e.jsx(B,{size:11})," Estimated Flip Profit"]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-amber-600 mb-3",children:l(q)}),e.jsxs("div",{className:"space-y-1.5 text-xs font-mono text-dark-700",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"ARV (Sale Price)"}),e.jsx("span",{className:"text-dark-900",children:l(t.arv)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Purchase Price"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.purchasePrice)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Repair Costs"}),e.jsxs("span",{className:"text-error-600",children:["â",l(t.estimatedRepairs)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Selling Costs (8% ARV)"}),e.jsxs("span",{className:"text-error-600",children:["â",l(H)]})]}),e.jsxs("div",{className:"flex justify-between pt-2 border-t border-dark-200 font-bold",children:[e.jsx("span",{className:"text-dark-900",children:"Net Flip Profit"}),e.jsx("span",{className:"text-amber-600",children:l(q)})]})]}),e.jsx("p",{className:"text-[10px] text-dark-700 mt-3",children:"Thin margin after costs. Most experienced flippers target $40K+ minimum on Chicago deals."})]})]}),e.jsx("div",{className:"px-6 pb-6",children:e.jsxs("div",{className:"bg-emerald-100 border border-emerald-300 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-emerald-700 font-bold text-sm mb-2 flex items-center gap-2",children:[e.jsx(j,{size:15})," Investor Explanation"]}),e.jsx("p",{className:"text-dark-800 text-sm leading-relaxed",children:"This is a solid beginner rental in Chicago. The $200/month cash flow may seem modest, but the 9.3% cap rate is well above market, you're buying $40K below ARV (built-in equity), and Chicago rents typically appreciate 2â4% per year. The BRRRR strategy could also work here â after repairs, a 75% LTV refinance at ARV would return approximately $165K, recouping most of your purchase price. For a first or second rental, this checks the important boxes: positive cash flow, strong cap rate, and built-in equity."})]})})]}),e.jsx(he,{data:{slug:"deal-analyzer-challenge",gameName:"Deal Analyzer Challenge",score:c,maxScore:125,cashFlow:R,roi:C,accentColor:"#10b981"},onPlayAgain:I}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl p-8 sm:p-10 text-center",children:[e.jsx("h2",{className:"font-display text-2xl font-bold text-dark-900 mb-2",children:"What's Next?"}),e.jsx("p",{className:"text-dark-700 text-sm mb-8 max-w-md mx-auto",children:"Put your skills to work on real deals. Use REI Vault Pro's calculators and analyzers to run your next investment in under 60 seconds."}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 max-w-md mx-auto",children:[e.jsxs("button",{onClick:I,className:"flex items-center justify-center gap-2 py-3 px-6 rounded-xl border border-white/15 text-white text-sm font-semibold hover:bg-white/5 transition-colors",children:[e.jsx(re,{size:14})," Play Again"]}),e.jsxs(k,{to:"/investor-games",className:"flex items-center justify-center gap-2 py-3 px-6 rounded-xl border border-white/15 text-white text-sm font-semibold hover:bg-white/5 transition-colors",children:[e.jsx(D,{size:14})," More Games"]}),e.jsxs(k,{to:"/join",className:"flex items-center justify-center gap-2 py-3.5 px-6 rounded-xl bg-primary-700 hover:bg-primary-600 text-white text-sm font-bold transition-colors sm:col-span-2",children:[e.jsx(ne,{size:14})," Upgrade for Advanced Games ",e.jsx(ie,{size:13})]}),e.jsxs(k,{to:"/calculators",className:"flex items-center justify-center gap-2 py-3.5 px-6 rounded-xl text-dark-950 text-sm font-bold transition-all hover:brightness-110 sm:col-span-2",style:{background:"linear-gradient(135deg, #d4af37 0%, #f6c90e 30%, #ffe880 50%, #d4af37 70%, #b8960c 100%)"},children:[e.jsx(O,{size:14})," Use Real Deal Calculators"]})]}),r&&Q&&e.jsxs("p",{className:"text-dark-500 text-[10px] mt-4",children:[e.jsx(j,{size:10,
1className:"inline mr-1 text-emerald-500"}),"Your score of ",c," pts has been saved to your account."]})]})]}),e.jsx(pe,{active:v,onDismiss:y})]})}export{Fe 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.