1import{E as ze,r as x,j as e,V as Te,aA as Be,G as ae,ag as le,e as _,H as S,J as M,B as re,T,K as Fe,Z as fe,h as oe,A as ne,a6 as ie,w as D,f as de,C as ce,a as xe,L as G}from"./index-D-ZsJRgs.js";import{G as Ie}from"./GameShell-Dz-02e1o.js";import{s as Ee}from"./gameUtils-DNdqJwxn.js";import{u as _e,a as Me,I as Ge,C as Oe}from"./InvestorPerformanceReport-DRaqszBt.js";import{T as O}from"./trophy-CxKx0Zlz.js";import{C as B}from"./circle-x-Ce-bOZYn.js";import{P as Ve}from"./percent-Bf2jnABm.js";import"./mic-Bk3nuRO3.js";import"./chart-column-Dd4RZPoW.js";const t={type:"Single Family Rental",location:"Chicago, IL",purchasePrice:155e3,repairs:25e3,arv:22e4,rent:1850,taxes:275,insurance:125,mortgage:1050,other:200},K=t.arv*.08,Le=t.mortgage+t.taxes+t.insurance+t.other,V=t.rent-Le,F=(t.rent-t.taxes-t.insurance-t.other)*12,ge=t.mortgage*12,L=F/t.purchasePrice,me=F/ge,q=t.arv-t.purchasePrice-t.repairs,Y=t.arv-t.purchasePrice-t.repairs-K;function he(r){return r==="brrrr"||r==="buy"?50:r==="flip"?15:r==="wholesale"?10:0}function pe(r){return r>=130?{letter:"A+",color:"text-yellow-300",bg:"bg-yellow-400/15 border-yellow-400/40"}:r>=100?{letter:"A",color:"text-emerald-400",bg:"bg-emerald-500/15 border-emerald-500/40"}:r>=75?{letter:"B",color:"text-blue-400",bg:"bg-blue-500/15 border-blue-500/40"}:r>=50?{letter:"C",color:"text-amber-400",bg:"bg-amber-500/15 border-amber-500/40"}:{letter:"â¡ Practice",color:"text-rose-400",bg:"bg-rose-500/15 border-rose-500/40"}}const m={buy:{headline:"Excellent â Buy & Hold!",detail:"This is the optimal strategy. With $200/mo positive cash flow, a 9.3% cap rate, and $40K in built-in equity, this deal performs well as a long-term rental. Chicago rents typically appreciate 2â4% per year, compounding your returns.",optimal:!0},brrrr:{headline:"Outstanding â BRRRR Strategy!",detail:"BRRRR is the power move here. After $25K in repairs you're still $40K below ARV. A 75% LTV refinance at ARV ($165K) recovers most of your capital. The new loan keeps cash flow modest but you get your down payment back to repeat.",optimal:!0},flip:{headline:"Possible, But Not Optimal",detail:`Flipping generates only ~${new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(Y)} after 8% selling costs. Most experienced Chicago flippers target $40K+ minimum profit. Given the strong cash flow, holding creates far more total wealth over time.`,optimal:!1},wholesale:{headline:"You'd Leave Money On The Table",detail:"Wholesaling would give you a $5Kâ$15K assignment fee while another investor keeps the $40K equity and $200/mo cash flow. When a deal has strong fundamentals, you want to be the one holding it â not selling it to someone else.",optimal:!1},pass:{headline:"This Was a Good Deal!",detail:"Passing here misses a real opportunity. Positive cash flow, a 9.3% cap rate, and $40K in built-in equity make this a strong beginner rental. Many experienced investors would move quickly on numbers like these in a major city.",optimal:!1}},a=r=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(r),ue=r=>(r*100).toFixed(1)+"%",be=r=>r.toFixed(2)+"x";function qe({to:r,format:o=i=>String(i)}){const[i,b]=x.useState(0);return x.useEffect(()=>{let y;const f=performance.now(),v=800,c=p=>{const j=Math.min((p-f)/v,1),k=1-Math.pow(1-j,3);b(Math.round(r*k)),j<1&&(y=requestAnimationFrame(c))};return y=requestAnimationFrame(c),()=>cancelAnimationFrame(y)},[r]),e.jsx(e.Fragment,{children:o(i)})}function Ke(){const r=Array.from({length:40},(o,i)=>({id:i,color:["#d4af37","#f6c90e","#10b981","#3b82f6","#ef4444","#fff"][i%6],left:`${Math.random()*100}%`,delay:`${Math.random()*1.5}s`,dur:`${1.5+Math.random()}s`,size:`${6+Math.floor(Math.random()*8)}px`}));return e.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden z-50",children:r.map(o=>e.jsx("div",{style:{position:"absolute",top:"-10px",left:o.left,width:o.size,height:o.size,backgroundColor:o.color,borderRadius:"2px",animation:`confettiFall ${o.dur} ${o.delay} ease-in forwards`}},o.id))})}function Ye({items:r,onDismiss:o}){return e.jsx("div",{className:"fixed top-4 right-4 z-50 flex flex-col gap-2 w-72 pointer-events-none",children:r.map(i=>{const b=i.type==="gold"?"bg-yellow-950/90 border-yellow-400/50 text-yellow-300":i.type==="green"?"bg-emerald-950/90 border-emerald-500/50 text-emerald-300":i.type==="red"?"bg-rose-950/90 border-rose-500/50 text-rose-300":"bg-blue-950/90 border-blue-500/50 text-blue-300";return e.jsxs("div",{className:`flex items-center gap-2.5 px-4 py-3 rounded-xl border backdrop-blur-sm pointer-events-auto text-xs font-semibold ${b}`,style:{animation:"slideInToast 0.3s ease-out"},children:[e.jsx(fe,{size:13,className:"flex-shrink-0"}),e.jsx("span",{className:"flex-1",children:i.text}),e.jsx("button",{onClick:()=>o(i.id),className:"opacity-60 hover:opacity-100 flex-shrink-0",children:e.jsx(B,{size:13})})]},i.id)})})}function $({strategy:r,label:o,sub:i,icon:b,accent:y,chosen:f,onChoose:v}){const c=f===r,p=f!==null&&!c;return e.jsxs("button",{onClick:()=>v(r),disabled:f!==null,className:`group relative flex flex-col items-center gap-2.5 p-5 rounded-2xl border text-center transition-all duration-200 ${c?"border-yellow-400/60 bg-yellow-400/10 shadow-[0_0_24px_rgba(212,175,55,0.3)]":p?"border-white/6 bg-white/2 opacity-40":"border-white/12 bg-white/4 hover:border-white/25 hover:bg-white/8 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] active:scale-95"}`,children:[e.jsx("div",{className:`w-11 h-11 rounded-xl flex items-center justify-center transition-transform duration-200 ${y} ${!p&&!c?"group-hover:scale-110":""}`,children:e.jsx(b,{size:20,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white text-sm font-bold",children:o}),e.jsx("p",{className:"text-dark-500 text-[10px] mt-0.5",children:i})]}),c&&e.jsx("div",{className:"absolute -top-2 -right-2 w-6 h-6 rounded-full bg-yellow-400 flex items-center justify-center shadow-gold",children:e.jsx(D,{size:13,className:"text-dark-950"})})]})}
1function d({label:r,value:o,color:i="text-white"}){return e.jsxs("div",{className:"flex items-center justify-between py-1.5 border-b border-white/6 last:border-0",children:[e.jsx("span",{className:"text-dark-400 text-xs",children:r}),e.jsx("span",{className:`font-mono text-xs font-bold ${i}`,children:o})]})}function P({pts:r,max:o,label:i}){const b=r>0;return e.jsxs("div",{className:`flex flex-col items-center gap-1.5 p-3 rounded-xl border text-center ${b?"bg-yellow-400/10 border-yellow-400/25":"bg-white/4 border-white/8"}`,children:[e.jsx("p",{className:"text-[9px] text-dark-500 font-bold uppercase tracking-wide",children:i}),e.jsx("p",{className:`font-display text-xl font-bold ${b?"text-yellow-300":"text-dark-600"}`,children:r}),e.jsxs("p",{className:"text-[9px] text-dark-600",children:["/ ",o]})]})}function st(){const{user:r}=ze(),o=_e(),{showTip:i,dismissTip:b,activeTip:y}=Me(),[f,v]=x.useState(!0),c=x.useCallback(s=>{f&&s()},[f]),[p,j]=x.useState("intro"),[k,I]=x.useState(3),[l,W]=x.useState(null),[ye,E]=x.useState(!1),[je,U]=x.useState(!1),[X,H]=x.useState(!1),[we,J]=x.useState(!1),[Ne,A]=x.useState([]),ve=x.useRef(0),z=l!==null?he(l):0,Q=25,Z=25,ee=25,te=l==="brrrr"?25:0,h=l!==null?z+Q+Z+ee+te:0,w=pe(h),R=150,ke=l!==null?Math.round(z/50*100):0,Re=100,Ce=l==="pass"?20:l==="wholesale"?60:l==="flip"?65:95,Se=l==="brrrr"?98:l==="buy"?90:l==="flip"?70:l==="wholesale"?55:30;function u(s,n){const g=++ve.current;A(N=>[...N.slice(-4),{id:g,text:s,type:n}]),setTimeout(()=>A(N=>N.filter(Ae=>Ae.id!==g)),4e3)}function $e(){c(o.playGameStart),u("Game starting â get ready!","blue"),j("reveal"),I(3)}x.useEffect(()=>{if(p!=="reveal")return;if(k===0){c(o.playSelect),u("Deal revealed! Analyze it.","gold"),j("playing");return}const s=setTimeout(()=>I(n=>n-1),900);return()=>clearTimeout(s)},[p,k]);const Pe={buy:"buy-rental",wholesale:"wholesale",flip:"buy-flip",brrrr:"buy-brrrr",pass:"pass-deal"};function C(s){W(s),i(Pe[s]),m[s].optimal?(c(o.playCorrect),s==="brrrr"?(u("BRRRR Strategy! Bonus points unlocked!","gold"),setTimeout(()=>u("+25 Bonus pts â BRRRR Master!","gold"),600)):u("Excellent choice! Cash flow positive.","green"),setTimeout(()=>u(`You earned ${z} strategy points!`,"gold"),400)):(c(o.playWrong),U(!0),setTimeout(()=>U(!1),600),u("There was a better strategy here.","red")),u("+25 pts â Positive cash flow recognized!","gold"),u("+25 pts â DSCR above 1.0 detected!","gold")}const De=x.useCallback(async()=>{if(l===null)return;const s=he(l)>=40;if(c(()=>o.playResults(h,R)),s&&(E(!0),setTimeout(()=>E(!1),3500)),u(`Challenge complete! Grade: ${w.letter}`,"gold"),u("Level progress updated.","blue"),H(!0),r)try{await Ee(r.id,"daily-deal-challenge",h,R,{strategy:l}),J(!0)}catch{}H(!1),j("result"),window.scrollTo({top:0,behavior:"smooth"})},[l,h,w.letter,r,c,o]);function se(){c(o.playReset),j("intro"),W(null),I(3),J(!1),E(!1),A([])}return e.jsxs(Ie,{title:"Daily Deal Challenge",metaTitle:"Daily Deal Challenge â Real Estate Deal Analysis Game | REI Vault Pro",metaDescription:"Play the REI Vault Pro Daily Deal Challenge and learn how to analyze real estate deals, calculate cash flow, cap rate, DSCR, equity, and profit potential.",slug:"daily-deal-challenge",metaKeywords:"daily deal challenge game, real estate deal analysis game, cash flow calculator game, cap rate practice, DSCR game, deal analyzer game",metaJsonLd:{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Daily Deal Challenge",applicationCategory:"Game",operatingSystem:"Web",description:"Analyze real estate deals daily â calculate cash flow, cap rate, DSCR, equity, and profit potential.",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},url:"https://www.REIVaultPro.com/investor-games/daily-deal-challenge"},coachAccent:"#d4af37",coach:{objective:"You'll look at a single real estate deal and decide the best investor strategy. Do you Buy it as a rental? Flip it? Wholesale the contract? BRRRR it? Or Pass entirely? You have one shot to read the numbers and make the call a professional investor would make.",rules:["Study the deal card â you have unlimited time to review the numbers before deciding.","A 3-second countdown marks the transition into your decision moment.","Choose your strategy: Buy, Wholesale, Flip, BRRRR, or Pass.","After you choose, you'll see a full breakdown of the deal math.","Your score is based on strategy quality plus recognizing key metrics."],scoring:["Strategy Choice: up to 50 points â Buy and BRRRR score highe
1st on this deal.","Cash Flow Recognition: 25 points â do you spot the monthly income?","DSCR Awareness: 25 points â does the rent cover the mortgage?","BRRRR Bonus: 25 points â extra credit if you choose BRRRR strategy.","Completion: 25 points just for finishing. Max Score: 150 points."],profitGoal:"This Chicago SFH generates $200/month cash flow, has a 9.3% cap rate, $40,000 in equity, and a flip profit potential of $22,000. Understanding why one strategy beats the others is the entire lesson here. The more deals you analyze, the faster you'll spot winners in real life.",tips:["Cap rate above 8% on a rental is strong â this deal qualifies.","BRRRR works when you can pull most or all of your cash out via refinance.","Wholesale if the numbers are thin and you'd rather earn fast than hold long.","Pass is always valid â protecting capital is a skill, not a weakness."]},children:[e.jsx("style",{children:` 2 @keyframes confettiFall { 3 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 4 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } 5 } 6 @keyframes slideInToast { 7 from { opacity: 0; transform: translateX(20px); } 8 to { opacity: 1; transform: translateX(0); } 9 } 10 @keyframes shakeDeal { 11 0%,100% { transform: translateX(0); } 12 20% { transform: translateX(-8px); } 13 40% { transform: translateX(8px); } 14 60% { transform: translateX(-5px); } 15 80% { transform: translateX(5px); } 16 } 17 @keyframes glowPulse { 18 0%,100% { box-shadow: 0 0 20px rgba(212,175,55,0.25); } 19 50% { box-shadow: 0 0 40px rgba(212,175,55,0.55); } 20 } 21 .deal-shake { animation: shakeDeal 0.5s ease-in-out; } 22 .glow-pulse { animation: glowPulse 2s ease-in-out infinite; } 23 `}),ye&&e.jsx(Ke,{}),e.jsx(Ye,{items:Ne,onDismiss:s=>A(n=>n.filter(g=>g.id!==s))}),p!=="intro"&&e.jsx("div",{className:"flex justify-end mb-4",children:e.jsxs("button",{onClick:()=>v(s=>!s),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-white/10 text-dark-400 hover:text-white text-[11px] transition-colors",children:[f?e.jsx(Te,{size:13}):e.jsx(Be,{size:13}),f?"Sound On":"Sound Off"]})}),p==="intro"&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-yellow-400/10 border border-yellow-400/25 text-yellow-400 text-[10px] font-bold uppercase tracking-widest",children:[e.jsx(ae,{size:11})," Paid Members · 150 pts"]}),e.jsxs("h1",{className:"font-display text-4xl sm:text-5xl font-bold text-white",children:["Daily Deal",e.jsx("br",{}),e.jsx("span",{className:"gold-text",children:"Challenge"})]}),e.jsx("p",{className:"text-dark-400 text-sm max-w-lg mx-auto leading-relaxed",children:"Analyze the deal. Choose the strategy. Earn investor points."})]}),e.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{icon:le,label:"Single Question",sub:"5 strategy choices"},{icon:O,label:"150 pts Max",sub:"earn your grade"},{icon:_,label:"Report Card",sub:"A+ through Practice"}].map((s,n)=>e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-4 text-center shadow-sm",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-yellow-400/10 border border-yellow-400/20 flex items-center justify-center mx-auto mb-2",children:e.jsx(s.icon,{size:16,className:"text-yellow-400"})}),e.jsx("p",{className:"text-dark-900 text-xs font-bold",children:s.label}),e.jsx("p",{className:"text-dark-600 text-[10px] mt-0.5",children:s.sub})]},n))}),e.jsxs("div",{className:"bg-gradient-to-br from-white/6 to-white/2 border border-white/12 rounded-3xl overflow-hidden glow-pulse",children:[e.jsxs("div",{className:"bg-gradient-to-r from-yellow-700 to-yellow-950 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(S,{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-yellow-200 text-xs",children:[t.type," · ",t.location]})]}),e.jsx("span",{className:"ml-auto text-[10px] font-bold bg-white/20 text-yellow-100 px-2.5 py-1 rounded-full",children:"Live Challenge"})]}),e.jsx("div",{className:"p-6 grid grid-cols-2 sm:grid-cols-4 gap-4",children:[{label:"Purchase Price",value:a(t.purchasePrice),icon:M,color:"text-dark-900"},{label:"Repair Costs",value:a(t.repairs),icon:re,color:"text-amber-600"},{label:"ARV",value:a(t.arv),icon:T,color:"text-emerald-600"},{label:"Monthly Rent",value:a(t.rent)+"/mo",icon:S,color:"text-blue-600"}].map((s,n)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1.5",children:[e.jsx(s.icon,{size:11,className:"text-dark-600"}),e.jsx("p",{className:"text-[9px] text-dark-600 font-bold uppercase tracking-wide",children:s.label})]}),e.jsx("p",{className:`text-xl font-bold font-mono ${s.color}`,children:s.value})]},n))}),e.jsx("div",{className:"px-6 pb-6 grid grid-cols-2 sm:grid-cols-4 gap-3",children:[{l:"Mortgage",v:a(t.mortgage)+"/mo"},{l:"Taxes",v:a(t.taxes)+"/mo"},{l:"Insurance",v:a(t.insurance)+"/mo"},{l:"Other",v:a(t.other)+"/mo"}].map((s,n)=>e.jsxs("div",{className:"bg-white border border-dark-200 rounded-xl px-3 py-2.5 shadow-sm",children:[e.jsx("p",{className:"text-[9px] text-dark-600 font-semibold mb-0.5",children:s.l}),e.jsx("p",{className:"text-xs font-bold text-dark-700 font-mono",children:s.v})]},n))})]}),e.jsxs("div",{className:"text-center space-y-3",children:[e.jsxs("button",{onClick:$e,className:"inline-flex items-center gap-2.5 px-12 py-4 rounded-2xl text-base font-bold text-dark-950 shadow-[0_8px_32px_rgba(212,175,55,0.45)] transition-all hover:brightness-110 active:scale-95 glow-pulse",style:{background:"linear-gradient(135deg,#d4af37,#f6c90e,#ffe880,#d4af37)"}
23,children:[e.jsx(Fe,{size:18,fill:"currentColor"}),"Analyze Deal"]}),e.jsx("p",{className:"text-dark-600 text-xs",children:"Sound On recommended for the full experience"})]})]}),p==="reveal"&&e.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center gap-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-yellow-400/10 border border-yellow-400/25 text-yellow-400 text-xs font-bold uppercase tracking-widest animate-pulse",children:[e.jsx(fe,{size:12}),"Deal Incoming"]}),e.jsx("div",{className:"w-32 h-32 rounded-3xl metallic-gold flex items-center justify-center shadow-[0_0_60px_rgba(212,175,55,0.5)]",style:{animation:"glowPulse 0.6s ease-in-out infinite"},children:e.jsx("span",{className:"font-display text-6xl font-bold text-dark-950",children:k})}),e.jsx("p",{className:"text-dark-400 text-sm font-semibold",children:"Get ready to analyze..."})]}),p==="playing"&&e.jsxs("div",{className:"space-y-7",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"font-display text-2xl sm:text-3xl font-bold text-white",children:"Daily Deal Challenge"}),e.jsxs("p",{className:"text-dark-400 text-xs mt-1",children:[t.type," · ",t.location]})]}),e.jsxs("div",{className:`bg-gradient-to-br from-white/6 to-white/2 border border-yellow-400/20 rounded-3xl overflow-hidden transition-all ${je?"deal-shake":""}`,children:[e.jsxs("div",{className:"bg-gradient-to-r from-yellow-800 to-yellow-950 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(S,{size:17,className:"text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-bold text-sm",children:t.type}),e.jsx("p",{className:"text-yellow-200 text-xs",children:t.location})]}),e.jsx("div",{className:"ml-auto flex items-center gap-2",children:e.jsx("span",{className:"text-[10px] font-bold bg-white/15 text-yellow-100 px-2 py-1 rounded-full",children:"Daily Deal"})})]}),e.jsx("div",{className:"p-5 sm:p-6 grid grid-cols-2 sm:grid-cols-4 gap-4",children:[{label:"Purchase Price",value:a(t.purchasePrice),icon:M,color:"text-white"},{label:"Repair Costs",value:a(t.repairs),icon:re,color:"text-amber-400"},{label:"ARV",value:a(t.arv),icon:T,color:"text-emerald-400"},{label:"Monthly Rent",value:a(t.rent)+"/mo",icon:S,color:"text-info-400"}].map((s,n)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[e.jsx(s.icon,{size:11,className:"text-dark-500"}),e.jsx("p",{className:"text-[9px] text-dark-500 font-bold uppercase tracking-wide",children:s.label})]}),e.jsx("p",{className:`text-xl font-bold font-mono ${s.color}`,children:s.value})]},n))}),e.jsx("div",{className:"px-5 sm:px-6 pb-5 grid grid-cols-2 sm:grid-cols-4 gap-3",children:[{l:"Mortgage",v:a(t.mortgage)+"/mo"},{l:"Taxes",v:a(t.taxes)+"/mo"},{l:"Insurance",v:a(t.insurance)+"/mo"},{l:"Other",v:a(t.other)+"/mo"}].map((s,n)=>e.jsxs("div",{className:"bg-white/4 border border-white/8 rounded-xl px-3 py-2.5",children:[e.jsx("p",{className:"text-[9px] text-dark-500 font-semibold mb-0.5",children:s.l}),e.jsx("p",{className:"text-xs font-bold text-dark-300 font-mono",children:s.v})]},n))}),e.jsx("div",{className:"px-5 sm:px-6 pb-5",children:e.jsxs("p",{className:"text-[10px] text-dark-500 border-t border-white/6 pt-3",children:["Selling Costs: 8% of ARV = ",e.jsx("span",{className:"text-amber-400 font-mono font-bold",children:a(K)}),"  | Equity after repairs: ",e.jsx("span",{className:"text-emerald-400 font-mono font-bold",children:a(q)})]})})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl p-6 shadow-sm",children:[e.jsxs("div",{className:"mb-5",children:[e.jsxs("p",{className:"text-[10px] font-bold text-yellow-600 uppercase tracking-widest mb-2 flex items-center gap-1.5",children:[e.jsx(oe,{size:11}),"Investor Decision"]}),e.jsxs("h2",{className:"font-display text-xl sm:text-2xl font-bold text-dark-900 leading-snug",children:["Would you ",e.jsx("span",{className:"gold-text",children:"Buy, Wholesale, Flip, BRRRR,"})," or ",e.jsx("span",{className:"gold-text",children:"Pass?"})]}),e.jsx("p",{className:"text-dark-600 text-xs mt-2",children:"Choose the strategy that best fits this property's numbers and market."})]}
23),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-3",children:[e.jsx($,{strategy:"buy",label:"Buy",sub:"Buy & Hold",icon:S,accent:"bg-emerald-600",chosen:l,onChoose:C}),e.jsx($,{strategy:"wholesale",label:"Wholesale",sub:"Assign deal",icon:ne,accent:"bg-blue-600",chosen:l,onChoose:C}),e.jsx($,{strategy:"flip",label:"Flip",sub:"Fix & sell",icon:T,accent:"bg-orange-600",chosen:l,onChoose:C}),e.jsx($,{strategy:"brrrr",label:"BRRRR",sub:"Refi & repeat",icon:ie,accent:"bg-yellow-600",chosen:l,onChoose:C}),e.jsx($,{strategy:"pass",label:"Pass",sub:"Skip this one",icon:B,accent:"bg-rose-700",chosen:l,onChoose:C})]})]}),l&&e.jsx("div",{className:`rounded-2xl border p-5 transition-all duration-300 ${m[l].optimal?"bg-emerald-500/8 border-emerald-500/30":"bg-rose-500/8 border-rose-500/30"}`,children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:`w-9 h-9 rounded-xl flex items-center justify-center flex-shrink-0 ${m[l].optimal?"bg-emerald-500/20":"bg-rose-500/20"}`,children:m[l].optimal?e.jsx(D,{size:18,className:"text-emerald-400"}):e.jsx(B,{size:18,className:"text-rose-400"})}),e.jsxs("div",{children:[e.jsx("p",{className:`font-bold text-sm ${m[l].optimal?"text-emerald-300":"text-rose-300"}`,children:m[l].headline}),e.jsx("p",{className:"text-dark-400 text-xs mt-1 leading-relaxed",children:m[l].detail})]})]})}),l&&e.jsxs("div",{className:"text-center space-y-2 pt-2",children:[e.jsxs("button",{onClick:De,disabled: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.4)] transition-all hover:brightness-110 active:scale-95 disabled:opacity-60",style:{background:"linear-gradient(135deg,#d4af37,#f6c90e,#ffe880,#d4af37)"},children:[e.jsx(O,{size:16}),X?"Savingâ¦":"See My Investor Report Card"]}),e.jsx("p",{className:"text-dark-600 text-[10px]",children:"Your score will be saved automatically"})]})]}),p==="result"&&l&&e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"bg-gradient-to-br from-dark-950 to-[#0c0c14] border border-yellow-400/25 rounded-3xl overflow-hidden",children:e.jsxs("div",{className:"p-8 sm:p-10 text-center",children:[e.jsx("div",{className:"w-20 h-20 rounded-3xl metallic-gold flex items-center justify-center mx-auto mb-5 shadow-[0_0_40px_rgba(212,175,55,0.4)]",children:e.jsx(O,{size:36,className:"text-dark-950"})}),e.jsx("p",{className:"text-dark-500 text-[10px] font-bold uppercase tracking-widest mb-1",children:"Investor Report Card"}),e.jsxs("p",{className:"text-dark-400 text-xs mb-4",children:["Daily Deal Challenge · ",t.type]}),e.jsxs("div",{className:`inline-flex items-center gap-2 px-5 py-2.5 rounded-2xl border mb-5 ${w.bg}`,children:[e.jsx(_,{size:16,className:w.color}),e.jsxs("span",{className:`font-display text-2xl font-bold ${w.color}`,children:["Grade: ",w.letter]})]}),e.jsx("div",{className:"flex items-center justify-center gap-4 mb-6",children:e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"font-display text-6xl sm:text-7xl font-bold text-white",children:e.jsx(qe,{to:h})}),e.jsxs("p",{className:"text-dark-500 text-xs mt-1",children:["out of ",R," pts"]})]})}),e.jsx("div",{className:"h-3 bg-white/8 rounded-full overflow-hidden max-w-sm mx-auto mb-6",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-1000 delay-300",style:{width:`${h/R*100}%`,background:"linear-gradient(90deg,#d4af37,#f6c90e,#d4af37)"}})}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2.5 max-w-xl mx-auto",children:[e.jsx(P,{pts:z,max:50,label:"Strategy"}),e.jsx(P,{pts:Q,max:25,label:"Cash Flow+"}),e.jsx(P,{pts:Z,max:25,label:"DSCR > 1x"}),e.jsx(P,{pts:ee,max:25,label:"Completed"}),e.jsx(P,{pts:te,max:25,label:"BRRRR Bonus"})]})]})}),e.jsx("div",{className:`rounded-3xl border p-6 sm:p-8 ${m[l].optimal?"bg-emerald-500/8 border-emerald-500/25":"bg-white/4 border-white/10"}`,children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:`w-11 h-11 rounded-xl flex items-center justify-center flex-shrink-0 ${m[l].optimal?"bg-emerald-500/20 border border-emerald-500/40":"bg-rose-500/15 border border-rose-500/30"}`,children:m[l].optimal?e.jsx(D,{size:22,className:"text-emerald-400"}):e.jsx(B,{size:22,className:"text-rose-400"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-xs text-dark-500 font-bold uppercase tracking-wide mb-1",children:["Your Choice: ",e.jsx("span",{className:"text-white capitalize",children:l.replace("-"," & ")})]}),e.jsx("p",{className:`font-bold text-base mb-2 ${m[l].optimal?"text-emerald-300":"text-white"}`,children:m[l].headline}),e.jsx("p",{className:"text-dark-400 text-sm leading-relaxed",children:m[l].detail}),!m[l].optimal&&e.jsx("p",{className:"text-yellow-400 text-xs mt-3 font-semibold",children:"Best strategies: Buy & Hold or BRRRR â both earned 50/50 pts."})]})]})}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl p-6 shadow-sm",children:[e.jsxs("p",{className:"text-dark-900 font-bold text-sm mb-5 flex items-center gap-2",children:[e.jsx(de,{size:15,className:"text-yellow-600"}),"Investor Report Card Breakdown"]}),e.jsx("div",{className:"space-y-4",children:[{label:"Strategy Score",score:ke,color:"#d4af37"},{label:"Cash Flow Score",score:Re,color:"#10b981"},{label:"Risk Score",score:Ce,color:"#3b82f6"},{label:"Profit Potential",score:Se,color:"#f59e0b"}].map((s,n)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("p",{className:"text-dark-700 text-xs font-semibold",children:s.label}),e.jsxs("p",{className:"text-dark-900 font-mono text-xs font-bold",children:[s.score,"/100"]})]}),e.jsx("div",{className:"h-2 bg-white/8 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${s.score}%`,backgroundColor:s.color,transitionDelay:`${n*150}ms`}})})]},n))})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl overflow-hidden shadow-sm",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-yellow-100 border border-yellow-300 flex items-center justify-center",children:e.jsx(ce,{size:15,className:"text-yellow-600"})}),e.jsx("p",{className:"text-dark-900 font-bold text-sm",children:"Complete Deal Analysis"})]}),e.jsxs("div",{className:"p-5 sm:p-6 grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(M,{size:13,className:"text-emerald-600"}),e.jsx("p",{className:"text-[10px] font-bold text-dark-600 uppercase tracking-widest",children:"Monthly Cash Flow"})]}),e.jsxs("p",{className:"font-mono text-2xl font-bold text-emerald-600 mb-3",children:[a(V),"/mo"]}),e.jsx(d,{label:"Monthly Rent",value:a(t.rent)}),e.jsx(d,{label:"Mortgage",value:`â${a(t.mortgage)}`,color:"text-rose-600"}),e.jsx(d,{label:"Taxes",value:`â${a(t.taxes)}`,color:"text-rose-600"}),e.jsx(d,{label:"Insurance",value:`â${a(t.insurance)}`,color:"text-rose-600"}),e.jsx(d,{label:"Other",value:`â${a(t.other)}`,color:"text-rose-600"}),e.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-dark-900 text-xs font-bold",children:"Net Cash Flow"}),e.jsx("span",{className:"font-mono text-sm font-bold text-emerald-600",children:a(V)})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(Ve,{size:13,className:"text-yellow-600"}),e.jsx("p",{className:"text-[10px] font-bold text-dark-600 uppercase tracking-widest",children:"Cap Rate"})]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-yellow-600 mb-3",children:ue(L)}),e.jsx(d,{label:"Annual NOI",value:a(F)}),e.jsx(d,{label:"Purchase Price",value:a(t.purchasePrice)}),e.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-dark-900 text-xs font-bold",children:"Cap Rate"}),e.jsx("span",{className:"font-mono text-sm font-bold text-yellow-600",children:ue(L)})]}),e.jsxs("p",{className:"text-[9px] text-dark-600 mt-2",children:[">"," 6% is considered solid for Chicago SFR"]})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(de,{size:13,className:"text-blue-600"}),e.jsx("p",{className:"text-[10px] font-bold text-dark-600 uppercase tracking-widest",children:"DSCR"})]}),e.jsx("p",{className:"font-mono text-2xl font-bold mb-3 text-yellow-600",children:be(me)}),e.jsx(d,{label:"Annual NOI",value:a(F)}),e.jsx(d,{label:"Annual Debt",value:a(ge)}),e.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-dark-900 text-xs font-bold",children:"DSCR"}),e.jsx("span",{className:"font-mono text-sm font-bold text-yellow-600",children:be(me)})]}),e.jsx("p",{className:"text-[9px] text-dark-600 mt-2",children:"DSCR lenders require ⥠1.20 to qualify"})]})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(T,{size:13,className:"text-blue-600"}),e.jsx("p",{className:"text-[10px] font-bold text-dark-600 uppercase tracking-widest",children:"Built-In Equity"})]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-blue-600 mb-3",children:a(q)}),e.jsx(d,{label:"ARV",value:a(t.arv)}),e.jsx(d,{label:"Purchase Price",value:`â${a(t.purchasePrice)}`,color:"text-rose-600"}),e.jsx(d,{label:"Repair Costs",value:`â${a(t.repairs)}`,color:"text-rose-600"}),e.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-dark-900 text-xs font-bold",children:"Instant Equity"}),e.jsx("span",{className:"font-mono text-sm font-bold text-blue-600",children:a(q)})]}),e.jsx("p",{className:"text-[9px] text-dark-600 mt-2",children:"Buying $40K below market â BRRRR cushion"})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(le,{size:13,className:"text-amber-600"}),e.jsx("p",{className:"text-[10px] font-bold text-dark-600 uppercase tracking-widest",children:"Estimated Flip Profit"})]}),e.jsx("p",{className:"font-mono text-2xl font-bold text-amber-600 mb-3",children:a(Y)}),e.jsx(d,{label:"ARV",value:a(t.arv)}),e.jsx(d,{label:"Purchase Price",value:`â${a(t.purchasePrice)}`,color:"text-rose-600"}),e.jsx(d,{label:"Repairs",value:`â${a(t.repairs)}`,color:"text-rose-600"}),e.jsx(d,{label:"Selling Costs",value:`â${a(K)}`,color:"text-rose-600"}),e.jsxs("div",{className:"pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-dark-900 text-xs font-bold",children:"Net Flip Profit"}),e.jsx("span",{className:"font-mono text-sm font-bold text-amber-600",children:a(Y)})]}),e.jsx("p",{className:"text-[9px] text-dark-600 mt-2",children:"Thin margin â most flippers target $40K+"})]})]}),e.jsx("div",{className:"px-5 sm:px-6 pb-6",children:e.jsxs("div",{className:"bg-emerald-500/8 border border-emerald-500/20 rounded-2xl p-5",children:[e.jsxs("p",{className:"text-emerald-400 font-bold text-sm mb-2 flex items-center gap-2",children:[e.jsx(D,{size:15}),"Investor Explanation"]}),e.jsx("p",{className:"text-dark-300 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, and Chicago rents typically appreciate 2â4% annually. The BRRRR strategy could also work â a 75% LTV refinance at ARV would return ~$165K, recouping most of your capital to repeat. For a first or second rental, this deal checks the important boxes: positive cash flow, strong cap rate, built-in equity, and DSCR well above 1.0."})]})})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-3xl p-6 shadow-sm",children:[e.jsxs("p",{className:"text-dark-900 font-bold text-sm mb-4 flex items-center gap-2",children:[e.jsx(_,{size:15,className:"text-yellow-600"}),"Investor Grade Scale"]}
23),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2",children:[{range:"130â150",grade:"A+",color:"text-yellow-300",bg:"bg-yellow-400/10 border-yellow-400/25"},{range:"100â129",grade:"A",color:"text-emerald-400",bg:"bg-emerald-500/10 border-emerald-500/25"},{range:"75â99",grade:"B",color:"text-blue-400",bg:"bg-blue-500/10 border-blue-500/25"},{range:"50â74",grade:"C",color:"text-amber-400",bg:"bg-amber-500/10 border-amber-500/25"},{range:"0â49",grade:"â¡",color:"text-rose-400",bg:"bg-rose-500/10 border-rose-500/25"}].map((s,n)=>{const g=pe(h).letter===s.grade||s.grade==="â¡"&&h<50;return e.jsxs("div",{className:`rounded-xl p-3 border text-center ${g?s.bg+" ring-1 ring-white/20":"bg-white/3 border-white/8"}`,children:[e.jsx("p",{className:`font-display text-xl font-bold ${g?s.color:"text-dark-600"}`,children:s.grade}),e.jsxs("p",{className:`text-[9px] mt-0.5 ${g?"text-dark-300":"text-dark-600"}`,children:[s.range," pts"]}),g&&e.jsx("p",{className:"text-[8px] font-bold text-yellow-400 mt-1",children:"YOUR GRADE"})]},n)})})]}),e.jsx(Ge,{data:{slug:"daily-deal-challenge",gameName:"Daily Deal Challenge",score:h,maxScore:R,cashFlow:V,roi:L,accentColor:"#d4af37"},onPlayAgain:se}),e.jsxs("div",{className:"bg-dark-950 border border-yellow-400/20 rounded-3xl p-8 text-center",children:[e.jsx(xe,{size:24,className:"text-yellow-400 mx-auto mb-3"}),e.jsx("h2",{className:"font-display text-2xl font-bold text-white mb-2",children:"What's Next?"}),e.jsx("p",{className:"text-dark-400 text-sm mb-7 max-w-md mx-auto leading-relaxed",children:"Put your skills to work on real deals. Run your next investment in under 60 seconds with REI Vault Pro calculators."}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 max-w-md mx-auto",children:[e.jsxs("button",{onClick:se,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(ie,{size:14}),"Play Again"]}),e.jsxs(G,{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(ae,{size:14}),"Back to Investor Games"]}),e.jsxs(G,{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,#f6c90e,#d4af37)"},children:[e.jsx(ce,{size:14}),"Use Deal Calculators"]}),e.jsxs(G,{to:"/join",className:"flex items-center justify-center gap-2 py-3.5 px-6 rounded-xl bg-red-600 hover:bg-red-500 text-white text-sm font-bold transition-colors sm:col-span-2",children:[e.jsx(oe,{size:14}),"Upgrade Membership ",e.jsx(ne,{size:13})]})]}),r&&we&&e.jsxs("p",{className:"text-dark-600 text-[10px] mt-4",children:[e.jsx(D,{size:10,className:"inline mr-1 text-emerald-600"}),"Score of ",h," pts saved to your account."]})]}),e.jsxs("div",{className:"bg-white border border-dark-200 rounded-2xl p-5 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("p",{className:"text-dark-900 font-bold text-xs flex items-center gap-2",children:[e.jsx(xe,{size:13,className:"text-yellow-600"}),"Investor Level Progress"]}),e.jsxs("span",{className:"text-[10px] text-dark-600 font-mono",children:[h," pts earned this session"]})]}),e.jsx("div",{className:"flex items-center gap-3 mb-3",children:["Rookie","Analyzer","CF Investor","Builder","Legend"].map((s,n)=>{const N=h>=[0,100,250,500,1e3][n];return e.jsxs("div",{className:"flex-1 text-center",children:[e.jsx("div",{className:`w-6 h-6 rounded-full mx-auto mb-1 flex items-center justify-center text-[8px] font-bold ${N?"bg-yellow-400 text-dark-950":"bg-dark-200 text-dark-600"}`,children:n+1}),e.jsx("p",{className:`text-[8px] font-semibold leading-tight ${N?"text-yellow-600":"text-dark-600"}`,children:s})]},n)})}),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-700",style:{width:`${Math.min(100,h/150*100)}%`,background:"linear-gradient(90deg,#d4af37,#f6c90e)"}})})]})]}),e.jsx(Oe,{active:y,onDismiss:b})]})}
23export{st 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.