// Mock data for the prototype
const TODAY = new Date(2026, 3, 17); // Apr 17, 2026

const DEADLINES = [
  { id: "vat-q1", title_cn: "增值税月度申报 · 4月", title_en: "Monthly VAT return · Apr", date: new Date(2026, 4, 28), daysLeft: 11, type: "vat", amount: 142850, priority: "high" },
  { id: "wht-apr", title_cn: "预提税申报 · 4月", title_en: "WHT return · Apr", date: new Date(2026, 4, 10), daysLeft: 23, type: "wht", amount: 8400, priority: "med" },
  { id: "einv-batch", title_cn: "B2B 发票批量清算", title_en: "B2B invoice batch clearance", date: new Date(2026, 3, 19), daysLeft: 2, type: "einvoice", amount: 0, priority: "urgent" },
  { id: "zakat", title_cn: "天课年度申报", title_en: "Annual Zakat return", date: new Date(2026, 9, 30), daysLeft: 196, type: "zakat", amount: 186400, priority: "low" },
  { id: "cit", title_cn: "企业所得税 · 非沙特股东", title_en: "Corporate income tax · non-Saudi", date: new Date(2026, 5, 30), daysLeft: 44, type: "cit", amount: 47200, priority: "med" },
  { id: "excise", title_cn: "消费税月度申报", title_en: "Excise tax monthly", date: new Date(2026, 4, 15), daysLeft: 28, type: "excise", amount: 3200, priority: "med" },
];

const INVOICES = [
  { no: "INV-2026-0418", customer_cn: "阿尔·拉吉银行", customer_en: "Al Rajhi Bank", customer_ar: "مصرف الراجحي", vat_no: "310122334400003", date: "2026-04-17", amount: 48230.00, vat: 7234.50, status: "cleared", type: "B2B", uuid: "7f8a2c1e-9d4b-4a3e-b2c8-1f2e3d4a5b6c" },
  { no: "INV-2026-0417", customer_cn: "沙特电力公司", customer_en: "Saudi Electricity Co.", customer_ar: "الشركة السعودية للكهرباء", vat_no: "300555667700003", date: "2026-04-17", amount: 12800.00, vat: 1920.00, status: "cleared", type: "B2B", uuid: "2a1b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d" },
  { no: "INV-2026-0416", customer_cn: "散客 · 零售", customer_en: "Walk-in · Retail", customer_ar: "عميل تجزئة", vat_no: "—", date: "2026-04-16", amount: 342.00, vat: 51.30, status: "cleared", type: "B2C", uuid: "b2c-simplified-001" },
  { no: "INV-2026-0415", customer_cn: "阿美石油服务", customer_en: "Aramco Services", customer_ar: "أرامكو", vat_no: "310888999000003", date: "2026-04-16", amount: 186000.00, vat: 27900.00, status: "clearing", type: "B2B", uuid: "3f4e5d6c-7b8a-9c0d-1e2f-3a4b5c6d7e8f" },
  { no: "INV-2026-0414", customer_cn: "STC 电信", customer_en: "STC Telecom", customer_ar: "الاتصالات السعودية", vat_no: "300111222300003", date: "2026-04-15", amount: 9450.00, vat: 1417.50, status: "cleared", type: "B2B", uuid: "8a9b0c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d" },
  { no: "INV-2026-0413", customer_cn: "Jarir 书店", customer_en: "Jarir Bookstore", customer_ar: "مكتبة جرير", vat_no: "310333444500003", date: "2026-04-15", amount: 4820.00, vat: 723.00, status: "failed", type: "B2B", uuid: "5c6d7e8f-9a0b-1c2d-3e4f-5a6b7c8d9e0f", error: "Buyer VAT number validation failed" },
  { no: "INV-2026-0412", customer_cn: "Almarai 食品", customer_en: "Almarai Foods", customer_ar: "المراعي", vat_no: "310666777800003", date: "2026-04-14", amount: 28400.00, vat: 4260.00, status: "cleared", type: "B2B", uuid: "9e0f1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b" },
  { no: "INV-2026-0411", customer_cn: "SABIC 化工", customer_en: "SABIC Chemicals", customer_ar: "سابك", vat_no: "310000111200003", date: "2026-04-14", amount: 92300.00, vat: 13845.00, status: "cleared", type: "B2B", uuid: "4b5c6d7e-8f9a-0b1c-2d3e-4f5a6b7c8d9e" },
];

const TRANSACTIONS = [
  { id: "tx-001", date: "2026-04-17", desc_cn: "阿尔·拉吉银行 · 转账", desc_en: "Al Rajhi Bank transfer", amount: 55464.50, account: "业务流水", category: "销售收入", vat_cat: "标准税率 15%", confidence: 0.98, source: "bank", ai: false },
  { id: "tx-002", date: "2026-04-17", desc_cn: "AWS 订阅 · 月费", desc_en: "AWS subscription", amount: -1840.00, account: "信用卡", category: "软件订阅", vat_cat: "零税率 (进口服务)", confidence: 0.94, source: "card", ai: true },
  { id: "tx-003", date: "2026-04-16", desc_cn: "STC Pay · 杂项", desc_en: "STC Pay · misc", amount: -480.00, account: "STC Pay", category: "?", vat_cat: "?", confidence: 0.42, source: "stcpay", ai: true, needsReview: true },
  { id: "tx-004", date: "2026-04-16", desc_cn: "Aramex 运费", desc_en: "Aramex shipping", amount: -2340.00, account: "业务流水", category: "物流", vat_cat: "标准税率 15%", confidence: 0.96, source: "bank", ai: true },
  { id: "tx-005", date: "2026-04-15", desc_cn: "Jarir · 办公用品", desc_en: "Jarir office supplies", amount: -890.00, account: "信用卡", category: "办公费用", vat_cat: "标准税率 15%", confidence: 0.99, source: "card", ai: true },
  { id: "tx-006", date: "2026-04-15", desc_cn: "员工薪资 · 4月", desc_en: "Payroll · Apr", amount: -128000.00, account: "业务流水", category: "薪资", vat_cat: "免税", confidence: 1.0, source: "manual", ai: false },
  { id: "tx-007", date: "2026-04-14", desc_cn: "SABIC 采购退款", desc_en: "SABIC refund", amount: 1200.00, account: "业务流水", category: "退款", vat_cat: "标准税率 15% (逆转)", confidence: 0.88, source: "bank", ai: true },
  { id: "tx-008", date: "2026-04-14", desc_cn: "阿联酋航空 · 出差", desc_en: "Emirates · travel", amount: -4200.00, account: "信用卡", category: "差旅", vat_cat: "零税率 (国际)", confidence: 0.91, source: "card", ai: true },
];

const AUDIT_EVENTS = [
  { time: "2026-04-17 14:32:18", title_cn: "VAT 申报草稿保存", title_en: "VAT return draft saved", desc_cn: "林雨晴保存了 2026 年 4 月申报草稿", desc_en: "Lin Yuqing saved the April 2026 draft", type: "info" },
  { time: "2026-04-17 11:04:02", title_cn: "发票 INV-2026-0418 清算成功", title_en: "Invoice cleared by ZATCA", desc_cn: "XML hash: f8a2...7e3d · 签名有效", desc_en: "XML hash: f8a2...7e3d · signature valid", type: "ok" },
  { time: "2026-04-17 09:15:44", title_cn: "AI 自动分类 12 笔交易", title_en: "AI auto-categorized 12 transactions", desc_cn: "置信度 ≥ 0.9 · 2 笔待复核", desc_en: "Confidence ≥ 0.9 · 2 items need review", type: "info" },
  { time: "2026-04-16 17:28:10", title_cn: "发票 INV-2026-0415 清算失败", title_en: "Invoice clearance failed", desc_cn: "买方 VAT 号码校验失败 · 已重试 1/3", desc_en: "Buyer VAT validation failed · retry 1/3", type: "danger" },
  { time: "2026-04-16 10:02:33", title_cn: "月度对账完成", title_en: "Monthly reconciliation complete", desc_cn: "1,248 笔交易匹配 · 3 笔异常", desc_en: "1,248 matched · 3 exceptions", type: "gold" },
  { time: "2026-04-15 14:50:19", title_cn: "WHT 申报已提交", title_en: "WHT return submitted", desc_cn: "金额 SAR 8,400 · 收据编号 ZTC-9928-441", desc_en: "SAR 8,400 · receipt ZTC-9928-441", type: "ok" },
];

const VAT_BREAKDOWN = {
  outputSales: { standard: 486200, zero: 42800, exempt: 18300 },
  outputVat: { standard: 72930, zero: 0, exempt: 0 },
  inputPurchases: { standard: 268400, zero: 12400, blocked: 8200 },
  inputVat: { standard: 40260, zero: 0, blocked: 0 },
};

window.MOCK = { TODAY, DEADLINES, INVOICES, TRANSACTIONS, AUDIT_EVENTS, VAT_BREAKDOWN };
