diff --git a/pitch-deck/components/slides/TheAskSlide.tsx b/pitch-deck/components/slides/TheAskSlide.tsx index d8d84bf..f0f7b46 100644 --- a/pitch-deck/components/slides/TheAskSlide.tsx +++ b/pitch-deck/components/slides/TheAskSlide.tsx @@ -3,14 +3,12 @@ import { motion } from 'framer-motion' import { Language, PitchFunding } from '@/lib/types' import { t } from '@/lib/i18n' -import { useFpKPIs } from '@/lib/hooks/useFpKPIs' import ProjectionFooter from '../ui/ProjectionFooter' import GradientText from '../ui/GradientText' import FadeInView from '../ui/FadeInView' import AnimatedCounter from '../ui/AnimatedCounter' import GlassCard from '../ui/GlassCard' import { Landmark, Banknote, ArrowRightLeft, TrendingUp, ShieldCheck, Target, Calendar, FileText } from 'lucide-react' -import { PieChart, Pie, Cell, ResponsiveContainer, Tooltip } from 'recharts' interface TheAskSlideProps { lang: Language @@ -18,8 +16,6 @@ interface TheAskSlideProps { isWandeldarlehen?: boolean } -const COLORS = ['#6366f1', '#a78bfa', '#60a5fa', '#34d399', '#fbbf24'] - function formatFundingAmount(amount: number): { target: number; suffix: string } { if (amount >= 1_000_000) { return { target: Math.round(amount / 100_000) / 10, suffix: ' Mio.' } @@ -47,17 +43,6 @@ export default function TheAskSlide({ lang, funding, isWandeldarlehen }: TheAskS const isWD = isWandeldarlehen || (funding?.instrument || '').toLowerCase() === 'wandeldarlehen' const amount = Number(funding?.amount_eur) || 0 const { target, suffix } = formatFundingAmount(amount) - const totalBudget = isWD ? amount * 2 : amount - - // Use of Funds from fp_* data (computed, not manual) - const { useOfFunds: fpUseOfFunds } = useFpKPIs(isWD) - const rawFunds = fpUseOfFunds.length > 0 ? fpUseOfFunds : (funding?.use_of_funds || []) - const useOfFunds = Array.isArray(rawFunds) ? rawFunds : (typeof rawFunds === 'string' ? JSON.parse(rawFunds) : []) - - const pieData = useOfFunds.map((item: Record) => ({ - name: (de ? item.label_de : item.label_en) as string || 'N/A', - value: Number(item.percentage) || 0, - })) return (
@@ -214,61 +199,6 @@ export default function TheAskSlide({ lang, funding, isWandeldarlehen }: TheAskS )} - {/* Use of Funds */} - - -

{i.theAsk.useOfFunds}

-
- {/* Pie Chart */} -
- - - - {pieData.map((_, idx) => ( - - ))} - - `${value}%`} - /> - - -
- - {/* Legend */} -
- {useOfFunds.map((item, idx) => ( -
-
- - {lang === 'de' ? item.label_de : item.label_en} - - {item.percentage}% - - {((totalBudget * item.percentage) / 100).toLocaleString('de-DE')} EUR - -
- ))} -
-
- - - {/* INVEST Program Hint */}
diff --git a/pitch-deck/lib/i18n.ts b/pitch-deck/lib/i18n.ts index 3cf1e9e..a04b6ed 100644 --- a/pitch-deck/lib/i18n.ts +++ b/pitch-deck/lib/i18n.ts @@ -27,15 +27,14 @@ const translations = { 'Investition & Cap Table', 'Kundenersparnis', 'KI Q&A', - 'Anhang: Annahmen', 'Anhang: Architektur', - 'Anhang: Go-to-Market', 'Anhang: Regulatorik', 'Anhang: Engineering', 'Anhang: KI-Pipeline', 'Anhang: SDK Demo', 'Anhang: Strategie', 'Anhang: Finanzplan', + 'Anhang: Annahmen', 'Glossar', 'Risiken & Mitigation', 'Rechtlicher Hinweis', @@ -325,15 +324,14 @@ const translations = { 'Investment & Cap Table', 'Customer Savings', 'AI Q&A', - 'Appendix: Assumptions', 'Appendix: Architecture', - 'Appendix: Go-to-Market', 'Appendix: Regulatory', 'Appendix: Engineering', 'Appendix: AI Pipeline', 'Appendix: SDK Demo', 'Appendix: Strategy', 'Appendix: Financial Plan', + 'Appendix: Assumptions', 'Glossary', 'Risks & Mitigation', 'Legal Notice', diff --git a/pitch-deck/lib/slide-order.ts b/pitch-deck/lib/slide-order.ts index 91ef1b7..b288208 100644 --- a/pitch-deck/lib/slide-order.ts +++ b/pitch-deck/lib/slide-order.ts @@ -20,15 +20,14 @@ export const SLIDE_ORDER: SlideId[] = [ 'cap-table', 'customer-savings', 'ai-qa', - 'annex-assumptions', 'annex-architecture', - 'annex-gtm', 'annex-regulatory', 'annex-engineering', 'annex-aipipeline', 'annex-sdk-demo', 'annex-strategy', 'annex-finanzplan', + 'annex-assumptions', 'annex-glossary', 'risks', 'legal-disclaimer',