/* global React */
// Mock data for the Mutual Pay OTC prototype

const MUTUAL_DATA = {
  user: { name: "Leandro Mutual", initials: "LM", email: "leandro@mutual.com.br", role: "Administrador", roleEmail: "admin@paas.com" },
  account: "Conta Transacional Pix",

  // Live-ish pricing (approx market values)
  rates: {
    BRL_USDT: 0.1918,
    USDT_BRL: 5.2150,
    BTC_BRL: 173999.50,
    ETH_BRL: 16142.10,
    USDC_BRL: 5.2080,
    USDT_USDC: 0.9986,
  },
  market24h: {
    BRL_USDT: { bid: 5.2132, ask: 5.2171, high: 5.2196, low: 5.1615, volume: "1.63M USDT", spread: "0.075%", change: 0.45 },
  },

  holdings: [
    { coin: "BRL", name: "Real Brasileiro", qty: "85.420,15", brl: "85.420,15", change: 0, color: "brl", symbol: "R$" },
    { coin: "BTC", name: "Bitcoin", qty: "0,3521", brl: "61.230,10", change: 3.45, color: "btc", symbol: "₿" },
    { coin: "ETH", name: "Ethereum", qty: "2,8430", brl: "45.890,35", change: -1.23, color: "eth", symbol: "Ξ" },
    { coin: "USDT", name: "Tether", qty: "18.310,10", brl: "95.487,07", change: 0.12, color: "usdt", symbol: "₮" },
    { coin: "USDC", name: "USD Coin", qty: "3.210,50", brl: "16.720,20", change: 0.05, color: "usdc", symbol: "$" },
  ],

  networks: {
    BTC: [{ id: "BTC", label: "Bitcoin", fee: "0,0005 BTC", confirmations: "2 confirmações" }],
    ETH: [
      { id: "ERC20", label: "Ethereum (ERC-20)", fee: "0,0024 ETH", confirmations: "12 confirmações" },
      { id: "ARBITRUM", label: "Arbitrum One", fee: "0,0001 ETH", confirmations: "1 confirmação" },
    ],
    USDT: [
      { id: "TRC20", label: "Tron (TRC-20)", fee: "1,00 USDT", confirmations: "20 confirmações" },
      { id: "ERC20", label: "Ethereum (ERC-20)", fee: "8,00 USDT", confirmations: "12 confirmações" },
      { id: "BSC", label: "BNB Smart Chain (BEP-20)", fee: "0,80 USDT", confirmations: "15 confirmações" },
    ],
    USDC: [
      { id: "ERC20", label: "Ethereum (ERC-20)", fee: "8,00 USDC", confirmations: "12 confirmações" },
      { id: "POLYGON", label: "Polygon", fee: "0,10 USDC", confirmations: "20 confirmações" },
    ],
  },

  addresses: {
    BTC: "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
    ETH: "0x742d35Cc6634C0532925a3b844Bc9e7595f8B47b",
    USDT: "TXYZoPHKPkKHx5xZpzQjKL8xQbJ4Kvqn7Q",
    USDC: "0x4f3edF983Ac636A65a842cE7c78D9aA706d3B113",
  },

  conversions: [
    { date: "13/01/2026", time: "16:42", type: "Compra", coin: "BTC", qty: "0,0521", brl: "9.050,00", fee: "45,25", status: "Concluída" },
    { date: "12/01/2026", time: "11:08", type: "Venda", coin: "ETH", qty: "0,8430", brl: "13.620,00", fee: "68,10", status: "Concluída" },
    { date: "11/01/2026", time: "14:55", type: "Compra", coin: "USDT", qty: "5.000,00", brl: "5.000,00", fee: "15,00", status: "Concluída" },
    { date: "10/01/2026", time: "09:33", type: "Compra", coin: "USDC", qty: "1.200,00", brl: "6.249,60", fee: "18,75", status: "Concluída" },
    { date: "08/01/2026", time: "20:14", type: "Venda", coin: "USDT", qty: "2.500,00", brl: "13.030,00", fee: "39,09", status: "Concluída" },
    { date: "07/01/2026", time: "10:22", type: "Compra", coin: "BTC", qty: "0,0125", brl: "2.175,00", fee: "10,87", status: "Concluída" },
    { date: "05/01/2026", time: "17:50", type: "Venda", coin: "ETH", qty: "1,2400", brl: "20.016,20", fee: "100,08", status: "Concluída" },
    { date: "03/01/2026", time: "13:12", type: "Compra", coin: "USDT", qty: "10.000,00", brl: "52.150,00", fee: "156,45", status: "Concluída" },
  ],

  deposits: [
    { date: "13/01/2026", time: "08:14", coin: "BTC", qty: "0,1500", from: "bc1qxy2k...jhx0wlh", txid: "a3c8e2f1...", status: "Concluída" },
    { date: "11/01/2026", time: "23:01", coin: "USDT", qty: "5.000,00", from: "Carteira Externa Binance", txid: "0x3f8a...", status: "Concluída" },
    { date: "09/01/2026", time: "10:44", coin: "ETH", qty: "1,2000", from: "0x742d35...f8B47b", txid: "0x91c2...", status: "Concluída" },
    { date: "06/01/2026", time: "19:28", coin: "USDC", qty: "2.000,00", from: "Coinbase", txid: "0xae53...", status: "Confirmando" },
  ],

  withdrawals: [
    { date: "12/01/2026", time: "15:30", coin: "USDT", qty: "1.500,00", to: "TXYZoP...vqn7Q", network: "TRC-20", fee: "1,00", status: "Concluída" },
    { date: "10/01/2026", time: "11:55", coin: "BTC", qty: "0,0250", to: "bc1qar0s...wf5mdq", network: "Bitcoin", fee: "0,0005", status: "Concluída" },
    { date: "07/01/2026", time: "08:42", coin: "ETH", qty: "0,5000", to: "0x852f1c...a9d4b3", network: "Arbitrum", fee: "0,0001", status: "Concluída" },
  ],
};

Object.assign(window, { MUTUAL_DATA });
