// Shared mock data for the customer mobile app.
// Tenant matches a unit in the operator cockpit dataset.

window.M_DATA = {
  tenant: {
    name: "Mei Chen",
    initials: "MC",
    email: "mei.chen@hey.example",
    phone: "+64 21 555 0118",
    member_since: "Mar 2024",
    photo_bg: "linear-gradient(140deg,#a78bfa,#4338ca)",
  },

  facility: {
    name: "VaultOS · Auckland Central",
    address: "12 Beach Rd, Auckland CBD",
    hours: "24/7 access",
    next_close: "Gates lock at 22:00 to non-members",
    distance_m: 320,
    eta_min: 4,
  },

  // Primary unit
  unit: {
    id: "B-115",
    zone: "B",
    type: "Climate-controlled",
    size: "2.4 × 3.0 m",
    sqm: 7.2,
    floor: "Ground",
    rate_nzd: 185,
    next_bill: "May 14",
    lease_start: "Mar 11, 2024",
    pin: "4 7 2 9",
    locker: { id: "BLE-2F-115", battery: 84, signal: -52, online: true, fw: "2.4.1" },
  },

  // Secondary (small locker)
  locker: {
    id: "E-411",
    zone: "E",
    type: "Locker",
    size: "1.0 × 1.5 m",
    sqm: 1.5,
    floor: "Ground",
    rate_nzd: 65,
    next_bill: "May 14",
  },

  recent_access: [
    { t: "Today · 07:42",   gate: "Gate 2", method: "App unlock",   unit: "B-115" },
    { t: "Yesterday · 18:11", gate: "Gate 1", method: "PIN",           unit: "B-115" },
    { t: "May 02 · 14:30",  gate: "Gate 2", method: "App unlock",   unit: "B-115" },
    { t: "Apr 29 · 09:08",  gate: "Gate 1", method: "App unlock",   unit: "E-411" },
    { t: "Apr 24 · 12:40",  gate: "Gate 2", method: "PIN",           unit: "B-115" },
  ],

  ledger: [
    { date: "May 14", desc: "Monthly rent · B-115", amount: 185.00, status: "scheduled" },
    { date: "May 14", desc: "Monthly rent · E-411", amount:  65.00, status: "scheduled" },
    { date: "Apr 14", desc: "Monthly rent · B-115", amount: 185.00, status: "paid" },
    { date: "Apr 14", desc: "Monthly rent · E-411", amount:  65.00, status: "paid" },
    { date: "Mar 14", desc: "Monthly rent · B-115", amount: 185.00, status: "paid" },
    { date: "Mar 11", desc: "Initial deposit",      amount: 185.00, status: "paid" },
  ],

  cards: [
    { brand: "Visa",       last4: "4218", exp: "08/27", primary: true },
    { brand: "Mastercard", last4: "9930", exp: "11/26", primary: false },
  ],

  notifications: [
    { kind: "lock", title: "Don't forget to lock up", body: "B-115 has been open for 32 minutes.", t: "2m" },
    { kind: "promo", title: "Refer a mate, get $25", body: "Both you and they get one month at half rate.", t: "1d" },
    { kind: "bill", title: "Auto-pay scheduled", body: "$250 on May 14 · Visa •• 4218", t: "3d" },
  ],
};
