"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMainReplyKeyboard = getMainReplyKeyboard;
exports.getPortfolioMenu = getPortfolioMenu;
exports.getServiceCategoriesMenu = getServiceCategoriesMenu;
exports.getServicePackagesMenu = getServicePackagesMenu;
exports.getConsultationCategoryMenu = getConsultationCategoryMenu;
exports.getFaqNavKeyboard = getFaqNavKeyboard;
exports.getPortfolioNavKeyboard = getPortfolioNavKeyboard;
exports.getTestimonialNavKeyboard = getTestimonialNavKeyboard;
exports.getCancelMenu = getCancelMenu;
const grammy_1 = require("grammy");
// ─── Reply Keyboard (muncul di bawah kolom chat) ─────────────────────────────
function getMainReplyKeyboard() {
    return new grammy_1.Keyboard()
        .text("ℹ️ Tentang Kami").row()
        .text("🛠 Layanan").text("🗂 Portfolio").row()
        .text("💰 Harga").text("🤖 Konsultasi AI").row()
        .text("👨‍💼 Hubungi Admin").text("📢 Channel").row()
        .resized()
        .persistent();
}
// ─── Inline Keyboards (muncul di dalam pesan) ─────────────────────────────────
function getPortfolioMenu() {
    return new grammy_1.InlineKeyboard()
        .text("🌐 Website", "portfolio_web_0")
        .text("🤖 Bot Telegram", "portfolio_bot_0").row()
        .text("📱 Mobile App", "portfolio_mobile_0").row()
        .text("🏠 Menu Utama", "main_menu");
}
/** Menu kategori layanan (🌐 Web | 📱 APK | 🤖 Bot) */
function getServiceCategoriesMenu(categories) {
    const kb = new grammy_1.InlineKeyboard();
    categories.forEach((c, i) => {
        kb.text(`${c.icon} ${c.name}`, `svc_cat_${c.slug}`);
        if (i % 2 === 1)
            kb.row();
    });
    if (categories.length % 2 === 1)
        kb.row();
    return kb.text("🏠 Menu Utama", "main_menu");
}
/** Menu paket dalam satu kategori */
function getServicePackagesMenu(packages, categorySlug) {
    const kb = new grammy_1.InlineKeyboard();
    packages.forEach((s, i) => {
        kb.text(`${s.icon} ${s.name}`, `svc_pkg_${s.id}`);
        if (i % 2 === 1)
            kb.row();
    });
    if (packages.length % 2 === 1)
        kb.row();
    return kb.text("🔙 Kembali", `svc_back_${categorySlug}`);
}
/** Menu kategori untuk pilih konsultasi */
function getConsultationCategoryMenu(categories) {
    const kb = new grammy_1.InlineKeyboard();
    categories.forEach((c, i) => {
        kb.text(`${c.icon} ${c.name}`, `consult_cat_${c.slug}`);
        if (i % 2 === 1)
            kb.row();
    });
    if (categories.length % 2 === 1)
        kb.row();
    return kb.text("❌ Batal", "cancel_consult");
}
function getFaqNavKeyboard(page, total) {
    const kb = new grammy_1.InlineKeyboard();
    if (page > 0)
        kb.text("◀️", `faq_${page - 1}`);
    kb.text(`${page + 1}/${total}`, "noop");
    if (page < total - 1)
        kb.text("▶️", `faq_${page + 1}`);
    return kb;
}
function getPortfolioNavKeyboard(category, index, total) {
    const kb = new grammy_1.InlineKeyboard();
    if (index > 0)
        kb.text("◀️", `portfolio_${category}_${index - 1}`);
    kb.text(`${index + 1}/${total}`, "noop");
    if (index < total - 1)
        kb.text("▶️", `portfolio_${category}_${index + 1}`);
    kb.row().text("🔙 Kategori Lain", "portfolio_menu");
    return kb;
}
function getTestimonialNavKeyboard(index, total) {
    const kb = new grammy_1.InlineKeyboard();
    if (index > 0)
        kb.text("◀️", `testimonial_${index - 1}`);
    kb.text(`${index + 1}/${total}`, "noop");
    if (index < total - 1)
        kb.text("▶️", `testimonial_${index + 1}`);
    return kb;
}
function getCancelMenu() {
    return new grammy_1.InlineKeyboard()
        .text("⬅️ Kembali", "back_consult")
        .text("❌ Batal", "cancel_consult");
}
