import { Link } from 'react-router-dom' import { Carousel, Card } from '@/components/ui/apple-cards-carousel' import type { CardData } from '@/components/ui/apple-cards-carousel' import { reports } from '@/data/reports' import type { Report } from '@/data/reports' /* ─── Per-report images (industrial, steel-relevant) ─ */ const reportImage: Record = { 'iran-steel-global-trade-scenarios-1404': '/news/photo-1578662996442-48f60103fc96.jpg', 'steel-energy-consumption-efficiency-1403': '/news/photo-1473341304170-971dccb5ac1e.jpg', 'global-steel-market-q3-1403': '/news/photo-1504328345606-18bbc8c9d7d1.jpg', 'iran-steel-export-sanctions-impact-1403': '/news/photo-1494412519320-aa613dfb7738.jpg', 'flash-iron-ore-price-surge-1403': '/news/photo-1611974789855-9c2a0a7236a3.jpg', 'domestic-production-dri-outlook-1403': '/news/photo-1567789884554-0b844b597180.jpg', 'esg-carbon-emissions-steel-iran-1403': '/news/photo-1466611653911-95081537e5b7.jpg', 'policy-steel-pricing-reform-1403': '/news/photo-1551288049-bebda4e38f71.jpg', 'flash-china-steel-overcapacity-1403': '/news/photo-1570168007204-dfb528c6958f.jpg', } const fallbackImage = '/news/photo-1558618666-fcd25c85cd64.jpg' const typeLabel: Record = { quarterly: 'گزارش فصلی', flash: 'گزارش فوری', risk: 'گزارش ریسک', free: 'رایگان', special: 'گزارش ویژه', } const typeColor: Record = { flash: 'var(--red)', risk: '#92400e', free: '#166534', quarterly: 'var(--ink-4)', special: 'var(--ink)', } /* ─── Key findings per category (mock but plausible) ─ */ const keyFindings: Record = { 'بازار جهانی': [ 'کاهش ۱۲٪ تقاضای چین در نیمه دوم ۲۰۲۴ فشار قیمتی جهانی ایجاد کرده', 'هند با رشد ۱۸٪ ظرفیت تولید، رقیب اصلی ایران در بازارهای منطقه شده', 'پیش‌بینی بازگشت تقاضا در Q2 2025 با ریکاوری بخش ساختمان آمریکا', ], 'انرژی و ESG': [ 'شکاف مصرف انرژی واحدهای ایرانی ۲۵٪ بیشتر از میانگین جهانی است', 'اجرای CBAM از ۲۰۲۶ می‌تواند ۱۵٪ رقابت‌پذیری صادرات را کاهش دهد', 'مسیر هیدروژن سبز برای ایران تا ۱۴۱۰ اقتصادی نخواهد بود', ], 'صادرات': [ 'عراق، افغانستان و پاکستان ۶۵٪ صادرات فولاد ایران را تشکیل می‌دهند', 'مسیرهای جایگزین آفریقای شرقی پتانسیل ۲ میلیون تن اضافی دارد', 'تحریم‌های جدید ۳ مسیر اصلی پرداخت را مسدود کرده است', ], 'تولید داخلی': [ 'ایران با ۳۰ میلیون تن DRI رتبه اول جهانی را حفظ کرده است', 'کمبود گاز زمستانی می‌تواند تا ۲۰٪ ظرفیت تولید را کاهش دهد', '۸ پروژه در دست احداث تا ۱۴۰۵ به ظرفیت می‌رسند', ], 'سیاست‌گذاری': [ 'قیمت‌گذاری دستوری هزینه ۱.۲ میلیارد دلار در سال به صنعت تحمیل می‌کند', 'تجربه ترکیه نشان می‌دهد آزادسازی تدریجی قیمت بهترین مسیر است', 'اصلاح تعرفه‌های سنگ‌آهن می‌تواند ۸٪ به حاشیه سود اضافه کند', ], 'ریسک و بحران': [ 'احتمال تشدید تحریم‌ها در ۶ ماه آینده ۶۵٪ برآورد می‌شود', 'ریسک کمبود ارز برای واردات مواد اولیه در سطح بالا قرار دارد', 'شکست مذاکرات هسته‌ای می‌تواند ۳۰٪ صادرات را تحت تأثیر قرار دهد', ], } /* ─── Report contents (TOC-style) ───────────────────── */ const reportContents: Record = { quarterly: ['مروری بر بازار فصل', 'تحلیل قیمت‌ها و حجم معاملات', 'رویدادهای کلیدی', 'پیش‌بینی فصل آینده', 'داده‌های خام ضمیمه'], flash: ['خلاصه اجرایی', 'رویداد و محرک', 'تأثیر بر بازار داخلی', 'توصیه‌های فوری'], risk: ['ارزیابی ریسک', 'تحلیل سناریو', 'احتمال‌سنجی', 'راهکارهای پوشش ریسک', 'پیوست داده'], free: ['خلاصه یافته‌ها', 'روش‌شناسی', 'مقایسه بین‌المللی', 'توصیه‌های سیاستی'], special: ['تحلیل جامع', 'سناریوسازی کمی', 'مقایسه تطبیقی', 'توصیه‌های راهبردی', 'مدل Excel پیوست'], } /* ─── Expanded card body ─────────────────────────────── */ function ReportCardContent({ report }: { report: Report }) { const findings = keyFindings[report.category] ?? [] const contents = reportContents[report.type] ?? [] return (
{/* Tags */}
{report.tags.map(tag => ( {tag} ))}
{/* Summary */}

{report.summary}

{/* Key findings */} {findings.length > 0 && (
یافته‌های کلیدی
{findings.map((f, i) => (
{f}
))}
)} {/* Report contents */} {contents.length > 0 && (
محتوای این گزارش
{contents.map((item, i) => (
{(i + 1).toLocaleString('fa-IR')} {item}
))}
)} {/* Meta grid */}
{[ { label: 'نویسنده', value: report.author }, { label: 'صفحات', value: `${report.pages} صفحه` }, { label: 'تاریخ انتشار', value: report.publishDate }, ].map(item => (
{item.label}
{item.value}
))}
{/* Author */}
{report.authorInitial}
{report.author}
{report.authorRole}
{/* CTA */}
{report.isFree ? ( دانلود رایگان ) : ( <> مشاهده جزئیات ← )}
) } /* ─── Section ────────────────────────────────────────── */ export default function ReportsCarouselSection() { const carouselReports = reports.filter(r => !r.featured) const cards: CardData[] = carouselReports.map(report => ({ src: reportImage[report.id] ?? fallbackImage, title: report.title, category: typeLabel[report.type] ?? report.type, summary: report.summary, author: report.author, date: report.publishDate, pages: report.pages, content: , })) const cardElements = cards.map((card, index) => ( )) return (
{/* ── Editorial header ── */}
آرشیو پژوهش · ۱۴۰۳

تحلیل‌های اخیر

مجموعه‌ای از گزارش‌های راهبردی، تحلیل‌های فصلی و توصیه‌های سیاستی منتشرشده در ماه‌های اخیر.

همه گزارش‌ها ←
{/* Legend row */}
{Object.entries(typeLabel).map(([key, label]) => (
{label}
))}
) }