HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/indoadvisory_new/webapp/src/index.js
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "hono/jsx/jsx-runtime";
import { Hono } from 'hono';
import { cors } from 'hono/cors';
import { renderer } from './renderer';
import admin from './routes/admin';
import articles from './routes/articles';
import inquiries from './routes/inquiries';
import settings from './routes/settings';
import team from './routes/team';
import clients from './routes/clients';
import { initializeDatabase, formatDate } from './utils/database';
const app = new Hono();
// Enable CORS for API routes
app.use('/api/*', cors());
// Initialize database on startup
app.use('*', async (c, next) => {
    if (c.env.DB) {
        await initializeDatabase(c.env.DB);
    }
    return next();
});
// Mount admin routes
app.route('/admin', admin);
app.route('/admin/articles', articles);
app.route('/admin/inquiries', inquiries);
app.route('/admin/settings', settings);
app.route('/admin/team', team);
app.route('/admin/clients', clients);
// Use renderer for HTML pages
app.use(renderer);
app.get('/', async (c) => {
    // Get current language
    const lang = c.req.query('lang') === 'en' ? 'en' : 'id';
    const otherLang = lang === 'en' ? 'id' : 'en';
    const langSwitchUrl = `/?lang=${otherLang}`;
    // Fetch active clients for showcase
    let clients = [];
    let portfolioEnabled = true;
    let statisticsEnabled = true;
    try {
        const clientsResult = await c.env.DB.prepare('SELECT * FROM clients WHERE is_active = 1 ORDER BY sort_order ASC, created_at DESC').all();
        clients = clientsResult.results;
        // Fetch portfolio section settings
        const portfolioSetting = await c.env.DB.prepare('SELECT setting_value FROM site_settings WHERE setting_key = "portfolio_section_enabled"').first();
        const statisticsSetting = await c.env.DB.prepare('SELECT setting_value FROM site_settings WHERE setting_key = "portfolio_statistics_enabled"').first();
        portfolioEnabled = portfolioSetting?.setting_value === '1';
        statisticsEnabled = statisticsSetting?.setting_value === '1';
    }
    catch (error) {
        console.error('Error fetching data:', error);
    }
    return c.render(_jsxs("div", { class: "min-h-screen", children: [_jsxs("nav", { class: "fixed w-full z-50 bg-white/95 backdrop-blur-sm border-b border-gray-200 shadow-sm", children: [_jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: _jsxs("div", { class: "flex justify-between items-center h-16", children: [_jsx("div", { class: "flex items-center", children: _jsx("div", { class: "flex-shrink-0", children: _jsxs("h1", { class: "text-2xl font-bold text-primary-700", children: [_jsx("i", { class: "fas fa-chart-line mr-2" }), "IndoAdvisory"] }) }) }), _jsx("div", { class: "hidden md:block", children: _jsxs("div", { class: "ml-10 flex items-baseline space-x-4", children: [_jsx("a", { href: `#beranda${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: lang === 'en' ? 'Home' : 'Beranda' }), _jsx("a", { href: `#tentang${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: lang === 'en' ? 'About Us' : 'Tentang Kami' }), _jsx("a", { href: `#layanan${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: lang === 'en' ? 'Services' : 'Layanan' }), _jsx("a", { href: `#portfolio${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: "Portfolio" }), _jsx("a", { href: `/artikel${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: lang === 'en' ? 'Articles' : 'Artikel' }), _jsx("a", { href: `#tim${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 px-3 py-2 rounded-md text-sm font-medium transition-colors", children: lang === 'en' ? 'Team' : 'Tim' }), _jsx("a", { href: `#kontak${lang === 'en' ? '?lang=en' : ''}`, class: "bg-primary-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-primary-700 transition-colors", children: lang === 'en' ? 'Contact' : 'Kontak' }), _jsxs("a", { href: langSwitchUrl, class: "bg-gray-200 text-gray-700 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-300 transition-colors border-l border-gray-300 ml-2", children: [_jsx("i", { class: "fas fa-globe mr-1" }), lang === 'en' ? 'ID' : 'EN'] })] }) }), _jsx("div", { class: "md:hidden", children: _jsx("button", { onclick: "toggleMenu()", class: "text-secondary-700 hover:text-primary-600 p-2", children: _jsx("i", { class: "fas fa-bars text-xl" }) }) })] }) }), _jsx("div", { id: "mobile-menu", class: "hidden md:hidden bg-white border-t border-gray-200", children: _jsxs("div", { class: "px-2 pt-2 pb-3 space-y-1 sm:px-3", children: [_jsx("a", { href: `#beranda${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: lang === 'en' ? 'Home' : 'Beranda' }), _jsx("a", { href: `#tentang${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: lang === 'en' ? 'About Us' : 'Tentang Kami' }), _jsx("a", { href: `#layanan${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: lang === 'en' ? 'Services' : 'Layanan' }), _jsx("a", { href: `#portfolio${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: "Portfolio" }), _jsx("a", { href: `/artikel${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: lang === 'en' ? 'Articles' : 'Artikel' }), _jsx("a", { href: `#tim${lang === 'en' ? '?lang=en' : ''}`, class: "text-secondary-700 hover:text-primary-600 block px-3 py-2 rounded-md text-base font-medium", children: lang === 'en' ? 'Team' : 'Tim' }), _jsx("a", { href: `#kontak${lang === 'en' ? '?lang=en' : ''}`, class: "bg-primary-600 text-white block px-3 py-2 rounded-md text-base font-medium hover:bg-primary-700", children: lang === 'en' ? 'Contact' : 'Kontak' }), _jsx("div", { class: "border-t border-gray-200 mt-2 pt-2", children: _jsxs("a", { href: langSwitchUrl, class: "bg-gray-100 text-gray-700 block px-3 py-2 rounded-md text-base font-medium hover:bg-gray-200", children: [_jsx("i", { class: "fas fa-globe mr-2" }), lang === 'en' ? 'Switch to Indonesian' : 'Switch to English'] }) })] }) })] }), _jsx("section", { id: "beranda", class: "pt-16 gradient-bg text-white", children: _jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24", children: _jsxs("div", { class: "grid grid-cols-1 lg:grid-cols-2 gap-12 items-center", children: [_jsxs("div", { children: [_jsx("h2", { class: "text-5xl font-bold mb-6 leading-tight", children: lang === 'en' ? (_jsxs(_Fragment, { children: ["Trusted ", _jsx("span", { class: "text-yellow-300", children: "Private Equity" }), " Advisory in Indonesia"] })) : (_jsxs(_Fragment, { children: ["Penasihat ", _jsx("span", { class: "text-yellow-300", children: "Private Equity" }), " Terpercaya di Indonesia"] })) }), _jsx("p", { class: "text-xl mb-8 text-gray-100 leading-relaxed", children: lang === 'en'
                                            ? 'We help companies achieve sustainable growth through strategic investments, accurate company valuations, and comprehensive IPO preparation.'
                                            : 'Kami membantu perusahaan mencapai pertumbuhan berkelanjutan melalui strategi investasi yang tepat, valuasi perusahaan yang akurat, dan persiapan IPO yang komprehensif.' }), _jsxs("div", { class: "flex flex-col sm:flex-row gap-4", children: [_jsx("a", { href: `#kontak${lang === 'en' ? '?lang=en' : ''}`, class: "bg-yellow-400 text-gray-900 px-8 py-4 rounded-lg font-semibold hover:bg-yellow-300 transition-colors text-center", children: lang === 'en' ? 'Free Consultation' : 'Konsultasi Gratis' }), _jsx("a", { href: `#layanan${lang === 'en' ? '?lang=en' : ''}`, class: "border-2 border-white text-white px-8 py-4 rounded-lg font-semibold hover:bg-white hover:text-gray-900 transition-colors text-center", children: lang === 'en' ? 'View Services' : 'Lihat Layanan' })] })] }), _jsx("div", { class: "hidden lg:block", children: _jsx("div", { class: "bg-white/10 backdrop-blur-sm rounded-2xl p-8", children: _jsxs("div", { class: "grid grid-cols-2 gap-6 text-center", children: [_jsxs("div", { children: [_jsx("div", { class: "text-3xl font-bold text-yellow-300", children: "150+" }), _jsx("div", { class: "text-sm text-gray-200", children: "Klien Terlayani" })] }), _jsxs("div", { children: [_jsx("div", { class: "text-3xl font-bold text-yellow-300", children: "Rp 2.5T" }), _jsx("div", { class: "text-sm text-gray-200", children: "Total Valuasi" })] }), _jsxs("div", { children: [_jsx("div", { class: "text-3xl font-bold text-yellow-300", children: "25" }), _jsx("div", { class: "text-sm text-gray-200", children: "IPO Sukses" })] }), _jsxs("div", { children: [_jsx("div", { class: "text-3xl font-bold text-yellow-300", children: "98%" }), _jsx("div", { class: "text-sm text-gray-200", children: "Tingkat Kepuasan" })] })] }) }) })] }) }) }), _jsx("section", { id: "tentang", class: "py-20 bg-gray-50", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-16", children: [_jsx("h2", { class: "text-4xl font-bold text-secondary-800 mb-4", children: lang === 'en' ? 'About IndoAdvisory' : 'Tentang IndoAdvisory' }), _jsx("p", { class: "text-xl text-secondary-600 max-w-3xl mx-auto", children: lang === 'en'
                                        ? 'As a leading private equity consulting firm in Indonesia, we have helped hundreds of companies in their business growth and transformation journey for over 15 years.'
                                        : 'Sebagai firma konsultan private equity terkemuka di Indonesia, kami telah membantu ratusan perusahaan dalam perjalanan pertumbuhan dan transformasi bisnis mereka selama lebih dari 15 tahun.' })] }), _jsxs("div", { class: "grid grid-cols-1 lg:grid-cols-2 gap-12 items-center", children: [_jsxs("div", { children: [_jsx("h3", { class: "text-2xl font-bold text-secondary-800 mb-6", children: "Misi Kami" }), _jsx("p", { class: "text-secondary-600 mb-6 leading-relaxed", children: "Menjadi mitra strategis terpercaya dalam mengoptimalkan nilai perusahaan melalui solusi keuangan yang inovatif dan berkelanjutan. Kami berkomitmen memberikan layanan berkualitas tinggi dengan pendekatan yang personal dan solusi yang disesuaikan dengan kebutuhan spesifik setiap klien." }), _jsxs("div", { class: "space-y-4", children: [_jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-100 p-2 rounded-full mr-4", children: _jsx("i", { class: "fas fa-check text-primary-600" }) }), _jsx("span", { class: "text-secondary-700", children: "Tim ahli berpengalaman internasional" })] }), _jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-100 p-2 rounded-full mr-4", children: _jsx("i", { class: "fas fa-check text-primary-600" }) }), _jsx("span", { class: "text-secondary-700", children: "Metodologi valuasi yang terbukti akurat" })] }), _jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-100 p-2 rounded-full mr-4", children: _jsx("i", { class: "fas fa-check text-primary-600" }) }), _jsx("span", { class: "text-secondary-700", children: "Jaringan investor strategis yang luas" })] })] })] }), _jsxs("div", { class: "grid grid-cols-2 gap-6", children: [_jsxs("div", { class: "bg-white p-6 rounded-xl shadow-lg card-hover", children: [_jsx("div", { class: "bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto", children: _jsx("i", { class: "fas fa-award text-primary-600 text-2xl" }) }), _jsx("h4", { class: "text-lg font-semibold text-secondary-800 text-center mb-2", children: "Berpengalaman" }), _jsx("p", { class: "text-secondary-600 text-sm text-center", children: "15+ tahun melayani klien corporate dan UKM" })] }), _jsxs("div", { class: "bg-white p-6 rounded-xl shadow-lg card-hover", children: [_jsx("div", { class: "bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto", children: _jsx("i", { class: "fas fa-shield-alt text-primary-600 text-2xl" }) }), _jsx("h4", { class: "text-lg font-semibold text-secondary-800 text-center mb-2", children: "Terpercaya" }), _jsx("p", { class: "text-secondary-600 text-sm text-center", children: "Sertifikasi resmi dan reputasi yang terjaga" })] }), _jsxs("div", { class: "bg-white p-6 rounded-xl shadow-lg card-hover", children: [_jsx("div", { class: "bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto", children: _jsx("i", { class: "fas fa-lightbulb text-primary-600 text-2xl" }) }), _jsx("h4", { class: "text-lg font-semibold text-secondary-800 text-center mb-2", children: "Inovatif" }), _jsx("p", { class: "text-secondary-600 text-sm text-center", children: "Solusi kreatif untuk tantangan bisnis modern" })] }), _jsxs("div", { class: "bg-white p-6 rounded-xl shadow-lg card-hover", children: [_jsx("div", { class: "bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4 mx-auto", children: _jsx("i", { class: "fas fa-handshake text-primary-600 text-2xl" }) }), _jsx("h4", { class: "text-lg font-semibold text-secondary-800 text-center mb-2", children: "Kolaboratif" }), _jsx("p", { class: "text-secondary-600 text-sm text-center", children: "Pendekatan partnership jangka panjang" })] })] })] })] }) }), _jsx("section", { id: "layanan", class: "py-20 bg-white", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-16", children: [_jsx("h2", { class: "text-4xl font-bold text-secondary-800 mb-4", children: "Layanan Kami" }), _jsx("p", { class: "text-xl text-secondary-600 max-w-3xl mx-auto", children: "Layanan komprehensif untuk mendukung pertumbuhan dan transformasi bisnis Anda" })] }), _jsxs("div", { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: [_jsxs("div", { class: "bg-gradient-to-br from-blue-50 to-indigo-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-primary-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-calculator text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "Valuasi Perusahaan" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Penilaian yang akurat dan komprehensif untuk mendukung keputusan investasi, akuisisi, atau divestasi." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-primary-600 mr-2" }), "Metode DCF, Market Multiple, Asset-based"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-primary-600 mr-2" }), "Analisis industri mendalam"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-primary-600 mr-2" }), "Laporan valuasi profesional"] })] })] }), _jsxs("div", { class: "bg-gradient-to-br from-green-50 to-emerald-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-green-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-chart-line text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "Persiapan IPO" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Pendampingan lengkap dari tahap persiapan hingga pelaksanaan penawaran umum perdana." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-green-600 mr-2" }), "Corporate restructuring"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-green-600 mr-2" }), "Regulatory compliance"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-green-600 mr-2" }), "Investor relations strategy"] })] })] }), _jsxs("div", { class: "bg-gradient-to-br from-purple-50 to-violet-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-purple-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-handshake text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "M&A Advisory" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Konsultasi strategis untuk merger, akuisisi, dan divestasi yang mengoptimalkan nilai transaksi." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-purple-600 mr-2" }), "Target identification & screening"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-purple-600 mr-2" }), "Due diligence coordination"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-purple-600 mr-2" }), "Deal structuring & negotiation"] })] })] }), _jsxs("div", { class: "bg-gradient-to-br from-orange-50 to-amber-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-orange-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-rocket text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "Fundraising" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Strategi penggalangan dana yang efektif untuk mendukung ekspansi dan pertumbuhan bisnis." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-orange-600 mr-2" }), "Investor matching & outreach"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-orange-600 mr-2" }), "Pitch deck development"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-orange-600 mr-2" }), "Term sheet negotiation"] })] })] }), _jsxs("div", { class: "bg-gradient-to-br from-red-50 to-pink-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-red-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-cogs text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "Restructuring" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Restrukturisasi korporat dan keuangan untuk optimalisasi struktur dan performa perusahaan." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-red-600 mr-2" }), "Financial restructuring"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-red-600 mr-2" }), "Operational improvement"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-red-600 mr-2" }), "Strategic planning"] })] })] }), _jsxs("div", { class: "bg-gradient-to-br from-teal-50 to-cyan-100 p-8 rounded-2xl card-hover", children: [_jsx("div", { class: "bg-teal-600 w-16 h-16 rounded-full flex items-center justify-center mb-6", children: _jsx("i", { class: "fas fa-search-dollar text-white text-2xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-4", children: "Due Diligence" }), _jsx("p", { class: "text-secondary-600 mb-6", children: "Analisis mendalam untuk mengidentifikasi risiko dan peluang dalam transaksi investasi." }), _jsxs("ul", { class: "space-y-2 text-sm text-secondary-600", children: [_jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-teal-600 mr-2" }), "Financial due diligence"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-teal-600 mr-2" }), "Commercial due diligence"] }), _jsxs("li", { class: "flex items-center", children: [_jsx("i", { class: "fas fa-check text-teal-600 mr-2" }), "Risk assessment"] })] })] })] })] }) }), portfolioEnabled && (_jsx("section", { id: "portfolio", class: "py-20 bg-gray-50", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-16", children: [_jsx("h2", { class: "text-4xl font-bold text-secondary-800 mb-4", children: "Portfolio & Prestasi" }), _jsx("p", { class: "text-xl text-secondary-600 max-w-3xl mx-auto", children: "Rekam jejak kesuksesan dalam membantu klien mencapai tujuan bisnis mereka" })] }), _jsxs("div", { class: "mb-16", children: [_jsxs("div", { class: "text-center mb-12", children: [_jsx("h3", { class: "text-3xl font-bold mckinsey-heading mb-4", children: lang === 'en' ? 'Our Recent Clients' : 'Klien Terkini' }), _jsx("p", { class: "text-lg mckinsey-text max-w-3xl mx-auto", children: lang === 'en'
                                                ? 'Trusted by leading companies across various industries for their strategic financial advisory needs'
                                                : 'Dipercaya oleh perusahaan-perusahaan terkemuka di berbagai industri untuk kebutuhan konsultasi keuangan strategis mereka' })] }), _jsx("div", { class: "relative overflow-hidden", id: "client-showcase-section", children: _jsxs("div", { id: "client-carousel", class: "flex space-x-6 transition-transform duration-1000 ease-in-out", style: "transform: translateX(0px)", children: [clients.map((client, index) => {
                                                const description = lang === 'en' ? client.description_en : client.description_id;
                                                const projectTypeMap = {
                                                    'valuation': lang === 'en' ? 'Valuation' : 'Valuasi',
                                                    'ipo': 'IPO',
                                                    'ma': 'M&A',
                                                    'fundraising': 'Fundraising',
                                                    'restructuring': lang === 'en' ? 'Restructuring' : 'Restrukturisasi',
                                                    'dd': lang === 'en' ? 'Due Diligence' : 'Due Diligence'
                                                };
                                                const projectTypeLabel = projectTypeMap[client.project_type] || client.project_type;
                                                return (_jsxs("div", { class: "flex-none w-96 mckinsey-card rounded-xl p-6 bg-white", children: [_jsxs("div", { class: "flex items-start justify-between mb-4", children: [_jsx("div", { class: "flex-1", children: _jsxs("div", { class: "flex items-center mb-2", children: [_jsx("div", { class: "w-12 h-12 bg-mckinsey-blue rounded-lg flex items-center justify-center mr-3", children: _jsx("i", { class: "fas fa-building text-white text-lg" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-bold mckinsey-heading text-lg", children: client.company_name }), _jsx("span", { class: "text-sm text-gray-500", children: client.industry })] })] }) }), _jsx("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-3 py-1 rounded-full text-xs font-medium", children: projectTypeLabel })] }), _jsx("p", { class: "mckinsey-text text-sm leading-relaxed mb-4", children: description }), _jsxs("div", { class: "flex items-center justify-between", children: [client.project_value && (_jsx("span", { class: "font-semibold text-mckinsey-darkblue text-sm", children: client.project_value })), client.completion_date && (_jsx("span", { class: "text-xs text-gray-400", children: formatDate(client.completion_date) }))] })] }));
                                            }), clients.map((client, index) => {
                                                const description = lang === 'en' ? client.description_en : client.description_id;
                                                const projectTypeMap = {
                                                    'valuation': lang === 'en' ? 'Valuation' : 'Valuasi',
                                                    'ipo': 'IPO',
                                                    'ma': 'M&A',
                                                    'fundraising': 'Fundraising',
                                                    'restructuring': lang === 'en' ? 'Restructuring' : 'Restrukturisasi',
                                                    'dd': lang === 'en' ? 'Due Diligence' : 'Due Diligence'
                                                };
                                                const projectTypeLabel = projectTypeMap[client.project_type] || client.project_type;
                                                return (_jsxs("div", { class: "flex-none w-96 mckinsey-card rounded-xl p-6 bg-white", children: [_jsxs("div", { class: "flex items-start justify-between mb-4", children: [_jsx("div", { class: "flex-1", children: _jsxs("div", { class: "flex items-center mb-2", children: [_jsx("div", { class: "w-12 h-12 bg-mckinsey-blue rounded-lg flex items-center justify-center mr-3", children: _jsx("i", { class: "fas fa-building text-white text-lg" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-bold mckinsey-heading text-lg", children: client.company_name }), _jsx("span", { class: "text-sm text-gray-500", children: client.industry })] })] }) }), _jsx("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-3 py-1 rounded-full text-xs font-medium", children: projectTypeLabel })] }), _jsx("p", { class: "mckinsey-text text-sm leading-relaxed mb-4", children: description }), _jsxs("div", { class: "flex items-center justify-between", children: [client.project_value && (_jsx("span", { class: "font-semibold text-mckinsey-darkblue text-sm", children: client.project_value })), client.completion_date && (_jsx("span", { class: "text-xs text-gray-400", children: formatDate(client.completion_date) }))] })] }));
                                            })] }) }), _jsx("div", { class: "flex justify-center mt-8", children: _jsx("div", { class: "bg-white/20 backdrop-blur-sm rounded-lg px-6 py-3", children: _jsxs("span", { class: "text-gray-600 text-sm flex items-center", children: [_jsx("i", { class: "fas fa-mouse mr-2 text-mckinsey-blue" }), lang === 'en'
                                                    ? 'Hover to pause • Auto-scrolling every 3 seconds'
                                                    : 'Arahkan kursor untuk jeda • Auto-scroll setiap 3 detik'] }) }) })] }), statisticsEnabled && (_jsx("div", { class: "grid grid-cols-1 lg:grid-cols-1 gap-12 mb-16", children: _jsxs("div", { class: "bg-white p-8 rounded-2xl shadow-lg mckinsey-card", children: [_jsxs("h3", { class: "text-2xl font-bold text-secondary-800 mb-8 flex items-center", children: [_jsx("i", { class: "fas fa-chart-bar text-mckinsey-blue mr-3" }), "Statistik Kinerja"] }), _jsxs("div", { class: "grid grid-cols-2 gap-6 mb-8", children: [_jsx("div", { class: "text-center p-4 bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl border border-blue-200", children: _jsxs("div", { class: "relative", children: [_jsx("div", { class: "w-16 h-16 mx-auto mb-3 bg-mckinsey-blue rounded-full flex items-center justify-center", children: _jsx("i", { class: "fas fa-briefcase text-white text-lg" }) }), _jsx("div", { class: "text-3xl font-bold text-mckinsey-blue mb-2 animate-counter", "data-target": "150", children: "150+" }), _jsx("div", { class: "text-sm font-medium text-gray-700", children: "Proyek Selesai" }), _jsx("div", { class: "mt-2 bg-mckinsey-blue/20 rounded-full h-2", children: _jsx("div", { class: "bg-mckinsey-blue h-2 rounded-full", style: "width: 95%" }) })] }) }), _jsx("div", { class: "text-center p-4 bg-gradient-to-br from-green-50 to-green-100 rounded-xl border border-green-200", children: _jsxs("div", { class: "relative", children: [_jsx("div", { class: "w-16 h-16 mx-auto mb-3 bg-green-600 rounded-full flex items-center justify-center", children: _jsx("i", { class: "fas fa-coins text-white text-lg" }) }), _jsx("div", { class: "text-3xl font-bold text-green-600 mb-2", children: "Rp 2.5T" }), _jsx("div", { class: "text-sm font-medium text-gray-700", children: "Total Valuasi" }), _jsx("div", { class: "mt-2 bg-green-600/20 rounded-full h-2", children: _jsx("div", { class: "bg-green-600 h-2 rounded-full", style: "width: 88%" }) })] }) }), _jsx("div", { class: "text-center p-4 bg-gradient-to-br from-purple-50 to-purple-100 rounded-xl border border-purple-200", children: _jsxs("div", { class: "relative", children: [_jsx("div", { class: "w-16 h-16 mx-auto mb-3 bg-purple-600 rounded-full flex items-center justify-center", children: _jsx("i", { class: "fas fa-chart-line text-white text-lg" }) }), _jsx("div", { class: "text-3xl font-bold text-purple-600 mb-2", children: "25" }), _jsx("div", { class: "text-sm font-medium text-gray-700", children: "IPO Sukses" }), _jsx("div", { class: "mt-2 bg-purple-600/20 rounded-full h-2", children: _jsx("div", { class: "bg-purple-600 h-2 rounded-full", style: "width: 92%" }) })] }) }), _jsx("div", { class: "text-center p-4 bg-gradient-to-br from-orange-50 to-orange-100 rounded-xl border border-orange-200", children: _jsxs("div", { class: "relative", children: [_jsx("div", { class: "w-16 h-16 mx-auto mb-3 bg-orange-600 rounded-full flex items-center justify-center", children: _jsx("i", { class: "fas fa-heart text-white text-lg" }) }), _jsx("div", { class: "text-3xl font-bold text-orange-600 mb-2", children: "98%" }), _jsx("div", { class: "text-sm font-medium text-gray-700", children: "Client Satisfaction" }), _jsx("div", { class: "mt-2 bg-orange-600/20 rounded-full h-2", children: _jsx("div", { class: "bg-orange-600 h-2 rounded-full", style: "width: 98%" }) })] }) })] }), _jsxs("div", { class: "bg-gray-50 rounded-xl p-6", children: [_jsxs("h4", { class: "font-bold text-secondary-800 mb-6 flex items-center", children: [_jsx("i", { class: "fas fa-industry text-mckinsey-blue mr-2" }), "Distribusi Sektor Industri"] }), _jsxs("div", { class: "space-y-4", children: [_jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-mckinsey-blue text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-laptop-code mr-1" }), "Teknologi"] }), _jsx("span", { class: "text-sm text-gray-600", children: "28%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-mckinsey-blue h-2 rounded-full", style: "width: 28%" }) })] }), _jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-green-600 text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-cogs mr-1" }), "Manufaktur"] }), _jsx("span", { class: "text-sm text-gray-600", children: "22%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-green-600 h-2 rounded-full", style: "width: 22%" }) })] }), _jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-purple-600 text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-utensils mr-1" }), "F&B"] }), _jsx("span", { class: "text-sm text-gray-600", children: "18%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-purple-600 h-2 rounded-full", style: "width: 18%" }) })] }), _jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-orange-600 text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-store mr-1" }), "Ritel"] }), _jsx("span", { class: "text-sm text-gray-600", children: "15%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-orange-600 h-2 rounded-full", style: "width: 15%" }) })] }), _jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-teal-600 text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-heartbeat mr-1" }), "Healthcare"] }), _jsx("span", { class: "text-sm text-gray-600", children: "10%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-teal-600 h-2 rounded-full", style: "width: 10%" }) })] }), _jsxs("div", { class: "flex items-center justify-between", children: [_jsxs("div", { class: "flex items-center", children: [_jsxs("span", { class: "bg-red-600 text-white px-3 py-1 rounded-full text-sm font-medium mr-3", children: [_jsx("i", { class: "fas fa-building mr-1" }), "Property"] }), _jsx("span", { class: "text-sm text-gray-600", children: "7%" })] }), _jsx("div", { class: "flex-1 mx-3 bg-gray-200 rounded-full h-2", children: _jsx("div", { class: "bg-red-600 h-2 rounded-full", style: "width: 7%" }) })] })] })] })] }) }))] }) })), _jsx("section", { id: "tim", class: "py-20 bg-white", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-16", children: [_jsx("h2", { class: "text-4xl font-bold text-secondary-800 mb-4", children: "Tim Ahli Kami" }), _jsx("p", { class: "text-xl text-secondary-600 max-w-3xl mx-auto", children: "Tim profesional berpengalaman dengan keahlian di berbagai bidang keuangan dan investasi" })] }), _jsxs("div", { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: [_jsxs("div", { class: "bg-gray-50 p-8 rounded-2xl text-center card-hover", children: [_jsx("div", { class: "w-32 h-32 bg-gradient-to-br from-primary-400 to-primary-600 rounded-full mx-auto mb-6 flex items-center justify-center", children: _jsx("i", { class: "fas fa-user text-white text-4xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-2", children: "Dr. Budi Santoso" }), _jsx("p", { class: "text-primary-600 font-medium mb-4", children: "Managing Partner" }), _jsx("p", { class: "text-secondary-600 text-sm mb-4", children: "20+ tahun pengalaman di investment banking dan private equity. Alumni Wharton School dan mantan VP di Goldman Sachs." }), _jsxs("div", { class: "flex justify-center space-x-4", children: [_jsx("a", { href: "#", class: "text-primary-600 hover:text-primary-700", children: _jsx("i", { class: "fab fa-linkedin text-xl" }) }), _jsx("a", { href: "#", class: "text-primary-600 hover:text-primary-700", children: _jsx("i", { class: "fas fa-envelope text-xl" }) })] })] }), _jsxs("div", { class: "bg-gray-50 p-8 rounded-2xl text-center card-hover", children: [_jsx("div", { class: "w-32 h-32 bg-gradient-to-br from-green-400 to-green-600 rounded-full mx-auto mb-6 flex items-center justify-center", children: _jsx("i", { class: "fas fa-user text-white text-4xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-2", children: "Sarah Wijaya, CFA" }), _jsx("p", { class: "text-green-600 font-medium mb-4", children: "Senior Director" }), _jsx("p", { class: "text-secondary-600 text-sm mb-4", children: "Spesialis valuasi dengan pengalaman 15+ tahun. Alumni UI dan bersertifikat CFA dengan track record di berbagai sektor industri." }), _jsxs("div", { class: "flex justify-center space-x-4", children: [_jsx("a", { href: "#", class: "text-green-600 hover:text-green-700", children: _jsx("i", { class: "fab fa-linkedin text-xl" }) }), _jsx("a", { href: "#", class: "text-green-600 hover:text-green-700", children: _jsx("i", { class: "fas fa-envelope text-xl" }) })] })] }), _jsxs("div", { class: "bg-gray-50 p-8 rounded-2xl text-center card-hover", children: [_jsx("div", { class: "w-32 h-32 bg-gradient-to-br from-purple-400 to-purple-600 rounded-full mx-auto mb-6 flex items-center justify-center", children: _jsx("i", { class: "fas fa-user text-white text-4xl" }) }), _jsx("h3", { class: "text-xl font-bold text-secondary-800 mb-2", children: "Ahmad Rahman, MBA" }), _jsx("p", { class: "text-purple-600 font-medium mb-4", children: "M&A Director" }), _jsx("p", { class: "text-secondary-600 text-sm mb-4", children: "Ahli M&A dengan pengalaman menangani transaksi senilai $2B+. Alumni INSEAD dan mantan consultant di McKinsey & Company." }), _jsxs("div", { class: "flex justify-center space-x-4", children: [_jsx("a", { href: "#", class: "text-purple-600 hover:text-purple-700", children: _jsx("i", { class: "fab fa-linkedin text-xl" }) }), _jsx("a", { href: "#", class: "text-purple-600 hover:text-purple-700", children: _jsx("i", { class: "fas fa-envelope text-xl" }) })] })] })] })] }) }), _jsx("section", { id: "kontak", class: "py-20 bg-gray-900 text-white", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-16", children: [_jsx("h2", { class: "text-4xl font-bold mb-4", children: "Hubungi Kami" }), _jsx("p", { class: "text-xl text-gray-300 max-w-3xl mx-auto", children: "Siap membantu pertumbuhan bisnis Anda. Mari diskusikan kebutuhan dan tantangan perusahaan Anda." })] }), _jsxs("div", { class: "grid grid-cols-1 lg:grid-cols-2 gap-12", children: [_jsxs("div", { children: [_jsx("h3", { class: "text-2xl font-bold mb-6", children: "Informasi Kontak" }), _jsxs("div", { class: "space-y-6", children: [_jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center mr-4", children: _jsx("i", { class: "fas fa-map-marker-alt text-white" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-semibold", children: "Alamat" }), _jsxs("p", { class: "text-gray-300", children: ["Menara Sudirman Lt. 25", _jsx("br", {}), "Jl. Jend. Sudirman Kav. 60", _jsx("br", {}), "Jakarta Selatan 12190"] })] })] }), _jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center mr-4", children: _jsx("i", { class: "fas fa-phone text-white" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-semibold", children: "Telepon" }), _jsx("p", { class: "text-gray-300", children: "+62 21 5794 3210" })] })] }), _jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center mr-4", children: _jsx("i", { class: "fas fa-envelope text-white" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-semibold", children: "Email" }), _jsx("p", { class: "text-gray-300", children: "info@indoprivate.co.id" })] })] }), _jsxs("div", { class: "flex items-center", children: [_jsx("div", { class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center mr-4", children: _jsx("i", { class: "fas fa-clock text-white" }) }), _jsxs("div", { children: [_jsx("h4", { class: "font-semibold", children: "Jam Operasional" }), _jsxs("p", { class: "text-gray-300", children: ["Senin - Jumat: 09:00 - 18:00", _jsx("br", {}), "Sabtu: 09:00 - 15:00"] })] })] })] }), _jsxs("div", { class: "mt-8", children: [_jsx("h4", { class: "text-lg font-semibold mb-4", children: "Ikuti Kami" }), _jsxs("div", { class: "flex space-x-4", children: [_jsx("a", { href: "#", class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center hover:bg-primary-700 transition-colors", children: _jsx("i", { class: "fab fa-linkedin text-white" }) }), _jsx("a", { href: "#", class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center hover:bg-primary-700 transition-colors", children: _jsx("i", { class: "fab fa-twitter text-white" }) }), _jsx("a", { href: "#", class: "bg-primary-600 w-12 h-12 rounded-full flex items-center justify-center hover:bg-primary-700 transition-colors", children: _jsx("i", { class: "fab fa-instagram text-white" }) })] })] })] }), _jsxs("div", { class: "bg-gray-800 p-8 rounded-2xl", children: [_jsx("h3", { class: "text-2xl font-bold mb-6", children: "Kirim Pesan" }), _jsxs("div", { id: "contact-success", class: "hidden bg-green-600 text-white p-4 rounded-lg mb-6", children: [_jsx("i", { class: "fas fa-check-circle mr-2" }), "Terima kasih! Pesan Anda telah terkirim. Kami akan segera menghubungi Anda."] }), _jsxs("form", { onsubmit: "submitContact(event)", class: "space-y-6", children: [_jsxs("div", { children: [_jsx("label", { class: "block text-sm font-medium mb-2", children: "Nama Lengkap" }), _jsx("input", { type: "text", name: "name", required: true, class: "w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent text-white", placeholder: "Masukkan nama lengkap" })] }), _jsxs("div", { children: [_jsx("label", { class: "block text-sm font-medium mb-2", children: "Email" }), _jsx("input", { type: "email", name: "email", required: true, class: "w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent text-white", placeholder: "nama@perusahaan.com" })] }), _jsxs("div", { children: [_jsx("label", { class: "block text-sm font-medium mb-2", children: "Perusahaan" }), _jsx("input", { type: "text", name: "company", class: "w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent text-white", placeholder: "Nama perusahaan" })] }), _jsxs("div", { children: [_jsx("label", { class: "block text-sm font-medium mb-2", children: "Layanan yang Diminati" }), _jsxs("select", { name: "service", class: "w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent text-white", children: [_jsx("option", { value: "", children: "Pilih layanan" }), _jsx("option", { value: "valuasi", children: "Valuasi Perusahaan" }), _jsx("option", { value: "ipo", children: "Persiapan IPO" }), _jsx("option", { value: "ma", children: "M&A Advisory" }), _jsx("option", { value: "fundraising", children: "Fundraising" }), _jsx("option", { value: "restructuring", children: "Restructuring" }), _jsx("option", { value: "dd", children: "Due Diligence" }), _jsx("option", { value: "konsultasi", children: "Konsultasi Umum" })] })] }), _jsxs("div", { children: [_jsx("label", { class: "block text-sm font-medium mb-2", children: "Pesan" }), _jsx("textarea", { name: "message", rows: "4", required: true, class: "w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent text-white", placeholder: "Jelaskan kebutuhan atau pertanyaan Anda..." })] }), _jsx("button", { type: "submit", class: "w-full bg-primary-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-primary-700 transition-colors", children: "Kirim Pesan" })] })] })] })] }) }), _jsx("footer", { class: "bg-gray-900 border-t border-gray-800 py-12 text-gray-400", children: _jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: _jsxs("div", { class: "grid grid-cols-1 md:grid-cols-3 gap-8", children: [_jsxs("div", { children: [_jsxs("h3", { class: "text-2xl font-bold text-white mb-4", children: [_jsx("i", { class: "fas fa-chart-line mr-2 text-primary-600" }), "IndoAdvisory"] }), _jsx("p", { class: "text-gray-400 mb-4", children: "Mitra terpercaya dalam perjalanan pertumbuhan dan transformasi bisnis Anda." }), _jsx("p", { class: "text-sm text-gray-500", children: "\u00A9 2024 IndoAdvisory Equity Advisory. Hak cipta dilindungi undang-undang." })] }), _jsxs("div", { children: [_jsx("h4", { class: "text-white font-semibold mb-4", children: "Layanan" }), _jsxs("ul", { class: "space-y-2 text-sm", children: [_jsx("li", { children: _jsx("a", { href: "#", class: "hover:text-white transition-colors", children: "Valuasi Perusahaan" }) }), _jsx("li", { children: _jsx("a", { href: "#", class: "hover:text-white transition-colors", children: "Persiapan IPO" }) }), _jsx("li", { children: _jsx("a", { href: "#", class: "hover:text-white transition-colors", children: "M&A Advisory" }) }), _jsx("li", { children: _jsx("a", { href: "#", class: "hover:text-white transition-colors", children: "Fundraising" }) })] })] }), _jsxs("div", { children: [_jsx("h4", { class: "text-white font-semibold mb-4", children: "Perusahaan" }), _jsxs("ul", { class: "space-y-2 text-sm", children: [_jsx("li", { children: _jsx("a", { href: "#tentang", class: "hover:text-white transition-colors", children: "Tentang Kami" }) }), _jsx("li", { children: _jsx("a", { href: "#tim", class: "hover:text-white transition-colors", children: "Tim" }) }), _jsx("li", { children: _jsx("a", { href: "#portfolio", class: "hover:text-white transition-colors", children: "Portfolio" }) }), _jsx("li", { children: _jsx("a", { href: "#kontak", class: "hover:text-white transition-colors", children: "Kontak" }) })] })] })] }) }) })] }));
});
// API route for contact form submission
app.post('/api/contact', async (c) => {
    const { name, email, company, service, message } = await c.req.json();
    try {
        // Save contact inquiry to database
        await c.env.DB.prepare('INSERT INTO contact_inquiries (name, email, company, service, message, created_at) VALUES (?, ?, ?, ?, ?, ?)').bind(name, email, company || null, service || null, message, new Date().toISOString()).run();
        return c.json({
            success: true,
            message: 'Pesan berhasil terkirim. Tim kami akan menghubungi Anda segera.'
        });
    }
    catch (error) {
        console.error('Contact form error:', error);
        return c.json({
            success: false,
            message: 'Terjadi kesalahan. Silakan coba lagi.'
        }, 500);
    }
});
// Articles listing page
app.get('/artikel', async (c) => {
    try {
        const publishedArticles = await c.env.DB.prepare('SELECT * FROM articles WHERE status = "published" ORDER BY published_at DESC LIMIT 20').all();
        return c.render(_jsxs("div", { class: "min-h-screen mckinsey-section pt-16", children: [_jsx("div", { class: "mckinsey-gradient text-white", children: _jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16", children: _jsxs("div", { class: "text-center", children: [_jsx("h1", { class: "text-5xl font-bold mb-6 mckinsey-heading text-white", children: "Artikel & Insights" }), _jsx("p", { class: "text-xl text-white/90 max-w-3xl mx-auto leading-relaxed", children: "Dapatkan insights mendalam tentang private equity, valuasi perusahaan, dan strategi investasi dari para ahli IndoAdvisory" }), _jsx("div", { class: "mt-8 flex justify-center", children: _jsx("div", { class: "bg-white/20 backdrop-blur-sm rounded-lg px-6 py-3", children: _jsxs("span", { class: "text-white/90 text-sm", children: [_jsx("i", { class: "fas fa-chart-line mr-2" }), "Dipercaya oleh 150+ perusahaan terkemuka"] }) }) })] }) }) }), _jsx("nav", { class: "bg-white border-b border-gray-200", children: _jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: _jsxs("div", { class: "flex items-center space-x-8 py-4", children: [_jsxs("a", { href: "/", class: "flex items-center text-mckinsey-blue hover:text-mckinsey-darkblue font-medium", children: [_jsx("i", { class: "fas fa-home mr-2" }), "Beranda"] }), _jsx("span", { class: "text-gray-300", children: "\u2022" }), _jsx("span", { class: "mckinsey-accent font-semibold", children: "Artikel" })] }) }) }), _jsx("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12", children: publishedArticles.results.length > 0 ? (_jsx("div", { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: publishedArticles.results.map(article => (_jsx("article", { class: "mckinsey-card rounded-xl overflow-hidden", children: _jsxs("div", { class: "p-8", children: [_jsxs("div", { class: "flex items-center justify-between mb-6", children: [_jsx("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-4 py-2 rounded-full text-sm font-semibold uppercase tracking-wide", children: article.category }), _jsx("time", { class: "text-gray-500 text-sm font-medium", children: formatDate(article.published_at || article.created_at) })] }), _jsx("h2", { class: "text-2xl font-bold mckinsey-heading mb-4 leading-tight", children: article.title }), _jsx("p", { class: "mckinsey-text mb-6 leading-relaxed", children: article.excerpt }), _jsxs("div", { class: "flex items-center justify-between pt-4 border-t border-gray-100", children: [_jsxs("a", { href: `/artikel/${article.slug}`, class: "mckinsey-btn px-6 py-3 rounded-lg text-sm font-semibold inline-flex items-center", children: ["Baca Artikel", _jsx("i", { class: "fas fa-arrow-right ml-2" })] }), _jsxs("div", { class: "text-sm text-gray-400", children: [_jsx("i", { class: "fas fa-clock mr-1" }), "5 min read"] })] })] }) }))) })) : (_jsxs("div", { class: "text-center py-20", children: [_jsx("div", { class: "bg-mckinsey-blue/10 w-24 h-24 rounded-full flex items-center justify-center mx-auto mb-6", children: _jsx("i", { class: "fas fa-newspaper text-mckinsey-blue text-3xl" }) }), _jsx("h3", { class: "text-2xl font-bold mckinsey-heading mb-4", children: "Artikel Segera Hadir" }), _jsx("p", { class: "mckinsey-text text-lg", children: "Tim editorial kami sedang menyiapkan insights terbaru untuk Anda" })] })) }), _jsx("div", { class: "mckinsey-gradient text-white py-20", children: _jsx("div", { class: "max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center", children: _jsxs("div", { class: "bg-white/10 backdrop-blur-sm rounded-xl p-8", children: [_jsx("h2", { class: "text-4xl font-bold mb-6 text-white", children: "Insights Eksklusif" }), _jsx("p", { class: "text-xl text-white/90 mb-8 leading-relaxed", children: "Dapatkan analisis mendalam dan tren terbaru private equity langsung dari para ahli kami" }), _jsxs("div", { class: "flex flex-col sm:flex-row gap-4 justify-center max-w-lg mx-auto", children: [_jsx("input", { type: "email", placeholder: "Masukkan alamat email Anda", class: "flex-1 px-6 py-4 rounded-lg text-gray-900 focus:ring-2 focus:ring-white/50 border-0 font-medium" }), _jsxs("button", { class: "bg-white text-mckinsey-blue px-8 py-4 rounded-lg font-bold hover:bg-gray-100 transition-colors", children: [_jsx("i", { class: "fas fa-envelope mr-2" }), "Berlangganan"] })] }), _jsxs("p", { class: "text-white/70 text-sm mt-4", children: [_jsx("i", { class: "fas fa-shield-alt mr-1" }), "Data Anda aman dan tidak akan dibagikan kepada pihak ketiga"] })] }) }) })] }), {
            title: 'Artikel & Insights - IndoAdvisory'
        });
    }
    catch (error) {
        console.error('Articles page error:', error);
        return c.render(_jsx("div", { children: "Error loading articles" }));
    }
});
// Individual article page
app.get('/artikel/:slug', async (c) => {
    try {
        const slug = c.req.param('slug');
        const article = await c.env.DB.prepare('SELECT * FROM articles WHERE slug = ? AND status = "published"').bind(slug).first();
        if (!article) {
            return c.notFound();
        }
        // Get related articles
        const relatedArticles = await c.env.DB.prepare('SELECT * FROM articles WHERE category = ? AND slug != ? AND status = "published" ORDER BY published_at DESC LIMIT 3').bind(article.category, slug).all();
        return c.render(_jsxs("div", { class: "min-h-screen bg-white pt-16", children: [_jsx("nav", { class: "bg-white border-b border-gray-200", children: _jsx("div", { class: "max-w-4xl mx-auto px-4 sm:px-6 lg:px-8", children: _jsxs("div", { class: "flex items-center space-x-4 py-6 text-sm", children: [_jsxs("a", { href: "/", class: "text-mckinsey-blue hover:text-mckinsey-darkblue font-medium", children: [_jsx("i", { class: "fas fa-home mr-2" }), "Beranda"] }), _jsx("span", { class: "text-gray-300", children: "\u2022" }), _jsx("a", { href: "/artikel", class: "text-mckinsey-blue hover:text-mckinsey-darkblue font-medium", children: "Artikel" }), _jsx("span", { class: "text-gray-300", children: "\u2022" }), _jsx("span", { class: "mckinsey-text font-semibold truncate max-w-md", children: article.title })] }) }) }), _jsxs("article", { class: "max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16", children: [_jsxs("header", { class: "mb-12", children: [_jsxs("div", { class: "flex items-center justify-between mb-8", children: [_jsx("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-6 py-3 rounded-full text-sm font-bold uppercase tracking-wide", children: article.category }), _jsxs("div", { class: "text-right", children: [_jsx("time", { class: "text-gray-500 font-medium", children: formatDate(article.published_at || article.created_at) }), _jsxs("div", { class: "text-sm text-gray-400 mt-1", children: [_jsx("i", { class: "fas fa-clock mr-1" }), "5 min read"] })] })] }), _jsx("h1", { class: "text-5xl font-bold mckinsey-heading mb-8 leading-tight", children: article.title }), article.excerpt && (_jsx("div", { class: "bg-mckinsey-lightgray p-8 rounded-xl border-l-4 border-mckinsey-blue", children: _jsx("p", { class: "text-xl mckinsey-text leading-relaxed font-medium", children: article.excerpt }) })), _jsxs("div", { class: "flex items-center justify-between mt-8 pt-8 border-t border-gray-200", children: [_jsxs("div", { class: "flex items-center space-x-4", children: [_jsx("div", { class: "w-12 h-12 bg-mckinsey-blue rounded-full flex items-center justify-center", children: _jsx("i", { class: "fas fa-user text-white" }) }), _jsxs("div", { children: [_jsx("div", { class: "font-semibold mckinsey-heading", children: "IndoAdvisory Team" }), _jsx("div", { class: "text-sm text-gray-500", children: "Investment Advisory Experts" })] })] }), _jsxs("div", { class: "flex items-center space-x-4 text-sm text-gray-500", children: [_jsxs("div", { children: [_jsx("i", { class: "fas fa-eye mr-1" }), "Professional Insights"] }), _jsxs("div", { children: [_jsx("i", { class: "fas fa-bookmark mr-1" }), "Expert Analysis"] })] })] })] }), _jsx("div", { class: "prose prose-xl max-w-none mckinsey-article-content", dangerouslySetInnerHTML: { __html: article.content } }), article.tags && (_jsxs("div", { class: "mt-12 pt-8 border-t border-gray-200", children: [_jsx("h3", { class: "font-semibold mckinsey-heading mb-4", children: "Topik Terkait:" }), _jsx("div", { class: "flex flex-wrap gap-3", children: article.tags.split(',').map(tag => (_jsxs("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-4 py-2 rounded-full text-sm font-medium hover:bg-mckinsey-blue hover:text-white transition-colors cursor-pointer", children: [_jsx("i", { class: "fas fa-tag mr-1" }), tag.trim()] }))) })] })), _jsx("div", { class: "mt-12 pt-8 border-t border-gray-200", children: _jsxs("div", { class: "bg-mckinsey-lightgray rounded-xl p-8", children: [_jsx("h3", { class: "text-xl font-bold mckinsey-heading mb-6", children: "Bagikan Insights Ini" }), _jsxs("div", { class: "flex flex-wrap gap-4", children: [_jsxs("a", { href: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(c.req.url)}`, target: "_blank", class: "bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors font-semibold flex items-center", children: [_jsx("i", { class: "fab fa-linkedin mr-3 text-lg" }), "Share on LinkedIn"] }), _jsxs("a", { href: `https://twitter.com/intent/tweet?text=${encodeURIComponent(article.title)}&url=${encodeURIComponent(c.req.url)}`, target: "_blank", class: "bg-blue-400 text-white px-6 py-3 rounded-lg hover:bg-blue-500 transition-colors font-semibold flex items-center", children: [_jsx("i", { class: "fab fa-twitter mr-3 text-lg" }), "Share on Twitter"] }), _jsxs("button", { onclick: `navigator.clipboard.writeText('${c.req.url}'); alert('Link copied to clipboard!')`, class: "mckinsey-btn-outline px-6 py-3 rounded-lg font-semibold flex items-center", children: [_jsx("i", { class: "fas fa-copy mr-3" }), "Copy Link"] })] }), _jsx("div", { class: "mt-6 pt-6 border-t border-gray-300", children: _jsxs("p", { class: "text-sm mckinsey-text", children: [_jsx("i", { class: "fas fa-info-circle mr-2 text-mckinsey-blue" }), "Bagikan insights ini dengan kolega dan rekan bisnis Anda untuk diskusi yang lebih mendalam"] }) })] }) })] }), relatedArticles.results.length > 0 && (_jsx("section", { class: "mckinsey-section py-20", children: _jsxs("div", { class: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [_jsxs("div", { class: "text-center mb-12", children: [_jsx("h2", { class: "text-3xl font-bold mckinsey-heading mb-4", children: "Insights Terkait" }), _jsx("p", { class: "text-lg mckinsey-text", children: "Pelajari lebih lanjut topik serupa dari para ahli kami" })] }), _jsx("div", { class: "grid grid-cols-1 md:grid-cols-3 gap-8", children: relatedArticles.results.map(related => (_jsx("article", { class: "mckinsey-card rounded-xl overflow-hidden", children: _jsxs("div", { class: "p-8", children: [_jsx("span", { class: "bg-mckinsey-blue/10 text-mckinsey-blue px-4 py-2 rounded-full text-xs font-bold uppercase tracking-wide", children: related.category }), _jsx("h3", { class: "text-xl font-bold mckinsey-heading mt-6 mb-4 leading-tight", children: related.title }), _jsx("p", { class: "mckinsey-text mb-6 leading-relaxed", children: related.excerpt }), _jsxs("div", { class: "flex items-center justify-between pt-4 border-t border-gray-100", children: [_jsxs("a", { href: `/artikel/${related.slug}`, class: "mckinsey-btn px-4 py-2 rounded-lg text-sm font-semibold inline-flex items-center", children: ["Baca Artikel", _jsx("i", { class: "fas fa-arrow-right ml-2" })] }), _jsxs("div", { class: "text-xs text-gray-400", children: [_jsx("i", { class: "fas fa-clock mr-1" }), "5 min"] })] })] }) }))) })] }) }))] }), {
            title: `${article.title} - IndoAdvisory`
        });
    }
    catch (error) {
        console.error('Article page error:', error);
        return c.notFound();
    }
});
export default app;