/* global React */
// Coast Referral Collective — 14 members
// Industry roles diversified to match the brief.
window.CoastGroup = {
  name: "Coast Referral Collective",
  location: "Gold Coast, QLD",
  focus: "Professional services for small business owners",
  founded: "Aug 2024",
  cadence: "Fortnightly · Tuesdays 7:30am",
  meetingPlace: "The Pantry, Robina",
  memberCount: 14,
  members: [
    { id: 1,  initials: "MC", name: "Marcus Chen",     role: "Commercial solicitor",  firm: "Chen Legal",            self: true,  conn: 14 },
    { id: 2,  initials: "PA", name: "Priya Anand",     role: "Mortgage broker",       firm: "Stride Finance",        conn: 11 },
    { id: 3,  initials: "JW", name: "James Whitford",  role: "Accountant",            firm: "Coast Ledger",          conn: 9 },
    { id: 4,  initials: "DP", name: "Devon Park",      role: "Commercial agent",      firm: "Ray White Commercial",  conn: 8 },
    { id: 5,  initials: "EH", name: "Eliza Hart",      role: "Marketing consultant",  firm: "Salt & Sail",           conn: 7 },
    { id: 6,  initials: "RB", name: "Rohan Bose",      role: "IT support",            firm: "Northshore IT",         conn: 6 },
    { id: 7,  initials: "TM", name: "Tess Marlowe",    role: "Bookkeeper",            firm: "Marlowe Books",         conn: 6 },
    { id: 8,  initials: "HL", name: "Hugo Lambert",    role: "Business coach",        firm: "Lambert Advisory",      conn: 5 },
    { id: 9,  initials: "SK", name: "Sienna Kovač",    role: "Financial planner",     firm: "Kovač Wealth",          conn: 5 },
    { id: 10, initials: "NV", name: "Nadia Verlaine",  role: "Conveyancer",           firm: "Verlaine Conveyancing", conn: 4 },
    { id: 11, initials: "FA", name: "Felix Aoki",      role: "Copywriter",            firm: "Aoki & Co.",            conn: 3 },
    { id: 12, initials: "GO", name: "Greta O'Donnell", role: "Brand designer",        firm: "Studio O'Donnell",      conn: 3 },
    { id: 13, initials: "VS", name: "Vivian Soo",      role: "Virtual assistant",     firm: "Calm VA",               conn: 2 },
    { id: 14, initials: "WK", name: "Will Karlsen",    role: "Web developer",         firm: "Karlsen Digital",       conn: 2 },
  ],
  // industry breakdown for public page
  industryBreakdown: [
    { industry: "Legal & conveyancing",   count: 2 },
    { industry: "Finance & accounting",   count: 4 },
    { industry: "Property",               count: 1 },
    { industry: "Marketing & creative",   count: 4 },
    { industry: "Technology",             count: 2 },
    { industry: "Coaching & advisory",    count: 1 },
  ],
  // Active edges = recent intros made BY → FOR
  edges: [
    [1, 3], [1, 4], [1, 8], [1, 2], [1, 11],
    [2, 1], [2, 3], [2, 4], [2, 5], [2, 9],
    [3, 1], [3, 2], [3, 7], [3, 8],
    [4, 1], [4, 10], [4, 2],
    [5, 11], [5, 12], [5, 14],
    [6, 14], [6, 7],
    [7, 3], [7, 8],
    [8, 1], [8, 9], [8, 11],
    [9, 2], [9, 7],
    [10, 4],
    [11, 5], [11, 12], [11, 8],
    [12, 5], [12, 14],
    [13, 7],
    [14, 6], [14, 5],
  ],
  // dormant edges (older, kept for visual texture)
  dormantEdges: [
    [3, 6], [9, 13], [10, 7], [12, 11], [4, 6],
  ],
  // health metrics
  metrics: {
    total1to1s:    { value: 312, delta: "+24 this q", series: [180, 210, 240, 268, 290, 312] },
    groupReach:    { value: 184, delta: "outside group", series: [80, 110, 130, 150, 170, 184] },
    breadth:       { value: 11,  delta: "of 14 industries", series: [6, 8, 9, 10, 10, 11] },
    ratio:         { value: 0.71, delta: "external : internal", label: "184 ext / 76 int", series: [0.4, 0.5, 0.58, 0.63, 0.68, 0.71] },
    crossPoll:     { value: 0.84, delta: "vs network avg 0.51", series: [0.5, 0.6, 0.68, 0.74, 0.79, 0.84] },
  },
  applications: [
    { name: "Tomás Rivera",  role: "Tax advisor",          firm: "Rivera Tax",          intro: "Referred by James Whitford", date: "2 days ago" },
    { name: "Aria Pemberton",role: "HR consultant",        firm: "Pemberton People",    intro: "Referred by Hugo Lambert",   date: "5 days ago" },
    { name: "Lior Ben-Ami",  role: "Insurance broker",     firm: "Ben-Ami Insurance",   intro: "Cold application",            date: "1 week ago" },
  ],
  activity: [
    { who: "Priya Anand → Marcus Chen",   what: "made an intro to Coast Ledger",                  when: "Yesterday" },
    { who: "James Whitford",              what: "submitted a debrief from his 1to1 with Sienna",  when: "2 days ago" },
    { who: "Eliza Hart → Felix Aoki",     what: "attributed a $14k retainer",                     when: "3 days ago" },
    { who: "Group",                       what: "fortnightly meeting · 12 of 14 attended",        when: "Last Tuesday" },
    { who: "Devon Park",                  what: "joined the Property Power Team",                 when: "Last week" },
  ],
  powerTeams: [
    { name: "Property Power Team",  members: ["MC","PA","DP","JW","NV"], focus: "Buying first commercial premises", deals: 7 },
    { name: "Brand & Launch",        members: ["EH","FA","GO","WK"],      focus: "Founders launching new ventures",   deals: 4 },
  ],
};
