// Mock data + taxonomies for Prima Data Curator
const TAXONOMY = {
  designations: [
    { value: "analyst", label: "Analyst" },
    { value: "consultant", label: "Consultant" },
    { value: "sr. consultant", label: "Sr. Consultant" },
    { value: "software engineer", label: "Software Engineer" },
    { value: "manager", label: "Manager" },
    { value: "avp", label: "AVP" },
    { value: "senior software engineer", label: "Senior Software Engineer" },
    { value: "vp", label: "VP" },
    { value: "ed", label: "ED" },
    { value: "md/ceo", label: "MD/CEO" },
    { value: "system manager", label: "System Manager" },
    { value: "sr. system manager", label: "Sr. System Manager" }
  ],
  domains: ["Strategy", "Public Policy", "IT/Digital", "Finance", "Operations", "ESG"],
  skills: ["DAX", "Python", "Financial Modeling", "Market Research", "Policy Drafting", "SQL", "Stakeholder Mgmt", "Forecasting", "Survey Design"],
  tools: ["Power BI", "Tableau", "LangGraph", "SAP", "SQL", "Excel (Advanced)", "Figma", "Jira", "Notion"],
  methodologies: ["Agile", "Waterfall", "Lean Six Sigma", "Design Thinking", "OKRs", "PRINCE2"],
  industries: ["Govt & Public Sector", "BFSI", "Healthcare", "Energy", "Logistics", "Education", "Manufacturing", "Telecom"],
  regions: ["PAN India", "MENA", "APAC", "EU", "North America", "Africa"],
  languages: ["English", "Hindi", "Tamil", "Bengali", "Marathi", "French", "Arabic", "Mandarin"],
  clientTypes: ["Ministry", "PSU", "Private Company", "NGO", "Multilateral Agency"],
  verticals: ["Industrial Development", "Smart Cities", "Rural Growth", "Digital Government", "Climate & Energy", "Health Systems", "Financial Inclusion"],
  engagements: ["Advisory", "Implementation", "Monitoring (PMC)", "Strategy"],
  budgets: ["< 10L", "10–50L", "50L – 1Cr", "1Cr+"],
  fileTypes: ["PDF", "DOCX", "PPTX", "XLSX", "MP4", "Image"],
  docTypes: ["Report", "Presentation", "Financial Model", "Policy Note", "Contract", "Dataset", "Brief"],
  confidentiality: [
    { id: "public", label: "Public", desc: "Anyone with link" },
    { id: "internal", label: "Internal", desc: "All consultants" },
    { id: "restricted", label: "Restricted", desc: "Vertical only" },
    { id: "confidential", label: "Client Confidential", desc: "Project team only" }
  ],
  researchCats: ["Academic", "Market Scan", "Competitor Benchmarking", "Regulatory"],
  publishers: ["Gartner", "NITI Aayog", "World Bank", "Statista", "McKinsey Global", "Custom"],
  contentTypes: ["LinkedIn Article", "Blog", "Whitepaper", "Media Op-Ed", "Podcast"]
};

const FOLDERS = [
  { id: "01", name: "01_Proposal_BD", tip: "Upload RFPs, Bids, and Final Proposals here.", count: 7 },
  { id: "02", name: "02_Delivery_Working", tip: "Raw data, cleaned datasets, and WIP analysis files.", count: 23 },
  { id: "03", name: "03_Research_Specific", tip: "Secondary research and benchmarking specific to this client.", count: 12 },
  { id: "04", name: "04_Final_Deliverables", tip: "Client-approved reports, presentations, and dashboards.", count: 9 },
  { id: "05", name: "05_Project_Admin", tip: "Closure reports, feedback, and team rosters.", count: 4 },
  { id: "06", name: "06_Financial_Docs", tip: "Invoices, Purchase Orders, and Budget Trackers.", count: 6, adminOnly: true }
];

const PROJECTS = [
  {
    id: "p-alpha", code: "PRJ-0341",
    name: "Project Alpha",
    client: "Client A",
    clientType: "Ministry",
    vertical: "Smart Cities",
    engagement: "Advisory",
    months: 14,
    status: "active",
    files: 61,
    lead: "M. Aravind",
    members: ["YS", "RK", "MA", "NP"],
    updated: "2 hr ago",
    desc: "Urban mobility diagnostic and 5-year capex plan for a Tier-2 metro authority."
  },
  {
    id: "p-beta", code: "PRJ-0298",
    name: "Project Beta",
    client: "Client B",
    clientType: "PSU",
    vertical: "Digital Government",
    engagement: "Implementation",
    months: 9,
    status: "active",
    files: 44,
    lead: "S. Kapoor",
    members: ["YS", "SK", "DV"],
    updated: "Yesterday",
    desc: "Citizen-services portal redesign with single sign-on and analytics layer."
  },
  {
    id: "p-gamma", code: "PRJ-0287",
    name: "Project Gamma",
    client: "Client C",
    clientType: "Private Company",
    vertical: "Climate & Energy",
    engagement: "Strategy",
    months: 6,
    status: "review",
    files: 28,
    lead: "Y. Sahay",
    members: ["YS", "PG"],
    updated: "3 d ago",
    desc: "Decarbonisation roadmap and offset portfolio review for a chemicals major."
  },
  {
    id: "p-delta", code: "PRJ-0271",
    name: "Project Delta",
    client: "Client D",
    clientType: "Multilateral Agency",
    vertical: "Health Systems",
    engagement: "Monitoring (PMC)",
    months: 24,
    status: "active",
    files: 87,
    lead: "N. Pillai",
    members: ["YS", "NP", "AT", "RK", "+2"],
    updated: "5 d ago",
    desc: "Outcome monitoring for a maternal-and-child health programme across 6 states."
  },
  {
    id: "p-epsilon", code: "PRJ-0259",
    name: "Project Epsilon",
    client: "Client E",
    clientType: "NGO",
    vertical: "Rural Growth",
    engagement: "Advisory",
    months: 4,
    status: "closed",
    files: 19,
    lead: "R. Krishnan",
    members: ["RK", "DV"],
    updated: "Last month",
    desc: "Livelihoods strategy for a watershed-restoration coalition in 4 districts."
  },
  {
    id: "p-zeta", code: "PRJ-0233",
    name: "Project Zeta",
    client: "Client F",
    clientType: "Private Company",
    vertical: "Financial Inclusion",
    engagement: "Strategy",
    months: 8,
    status: "active",
    files: 35,
    lead: "D. Vora",
    members: ["DV", "MA"],
    updated: "1 w ago",
    desc: "MSME credit-scoring partnership go-to-market with a small-finance bank."
  }
];

const FILES_BY_FOLDER = {
  "01": [
    { name: "RFP_Response_Final.pdf", ext: "pdf", size: "2.4 MB", type: "Proposal", conf: "internal", owner: "M. Aravind", added: "Mar 12", governance: ["Reusable", "Best-in-Class"] },
    { name: "Pricing_Model_v3.xlsx", ext: "xlsx", size: "812 KB", type: "Financial Model", conf: "restricted", owner: "Y. Sahay", added: "Mar 10", governance: ["Manager Approved"] },
    { name: "Capability_Deck.pptx", ext: "pptx", size: "9.1 MB", type: "Presentation", conf: "public", owner: "S. Kapoor", added: "Mar 09", governance: ["Reusable"] },
    { name: "Bid_Coversheet.docx", ext: "docx", size: "126 KB", type: "Contract", conf: "internal", owner: "M. Aravind", added: "Mar 08", governance: [] }
  ],
  "02": [
    { name: "Mobility_Survey_Raw.xlsx", ext: "xlsx", size: "14.3 MB", type: "Dataset", conf: "confidential", owner: "Y. Sahay", added: "Apr 02", governance: [] },
    { name: "Cleaned_OD_Matrix.xlsx", ext: "xlsx", size: "3.2 MB", type: "Dataset", conf: "internal", owner: "Y. Sahay", added: "Apr 04", governance: ["Best-in-Class"] },
    { name: "Stakeholder_Interview_Notes.docx", ext: "docx", size: "248 KB", type: "Brief", conf: "restricted", owner: "M. Aravind", added: "Apr 01", governance: [] },
    { name: "Site_Visit_Photos.zip", ext: "image", size: "82 MB", type: "Image", conf: "internal", owner: "M. Aravind", added: "Mar 28", governance: [] },
    { name: "Workshop_Recording.mp4", ext: "mp4", size: "1.2 GB", type: "Brief", conf: "restricted", owner: "S. Kapoor", added: "Mar 26", governance: [] }
  ],
  "03": [
    { name: "Tier2_Mobility_Benchmarks.pdf", ext: "pdf", size: "5.8 MB", type: "Report", conf: "public", owner: "Y. Sahay", added: "Mar 22", governance: ["Reusable"] },
    { name: "WB_Smart_Cities_Note.pdf", ext: "pdf", size: "1.4 MB", type: "Policy Note", conf: "public", owner: "R. Krishnan", added: "Mar 18", governance: ["Reusable"] }
  ],
  "04": [
    { name: "Final_Diagnostic_Report.pdf", ext: "pdf", size: "12.6 MB", type: "Report", conf: "client confidential", owner: "M. Aravind", added: "Apr 18", governance: ["Manager Approved", "Best-in-Class"] },
    { name: "Steering_Committee_Deck.pptx", ext: "pptx", size: "22 MB", type: "Presentation", conf: "client confidential", owner: "Y. Sahay", added: "Apr 16", governance: ["Manager Approved"] },
    { name: "Capex_Tracker.xlsx", ext: "xlsx", size: "1.1 MB", type: "Financial Model", conf: "restricted", owner: "Y. Sahay", added: "Apr 17", governance: ["Manager Approved", "Best-in-Class"] }
  ],
  "05": [
    { name: "Closure_Report_Draft.docx", ext: "docx", size: "412 KB", type: "Report", conf: "internal", owner: "M. Aravind", added: "Apr 20", governance: [] },
    { name: "Team_Roster.xlsx", ext: "xlsx", size: "78 KB", type: "Brief", conf: "internal", owner: "M. Aravind", added: "Apr 19", governance: [] }
  ],
  "06": [
    { name: "Invoice_03_Apr.pdf", ext: "pdf", size: "180 KB", type: "Contract", conf: "restricted", owner: "Finance Ops", added: "Apr 03", governance: [] },
    { name: "PO_Master.xlsx", ext: "xlsx", size: "640 KB", type: "Financial Model", conf: "restricted", owner: "Finance Ops", added: "Mar 30", governance: [] }
  ]
};

const RESEARCH = [
  { title: "State of Urban Mobility 2026", source: "World Bank", category: "Market Scan", scope: ["Global", "PAN India"], industries: ["Govt & Public Sector"], date: "Apr 2026", conf: "public" },
  { title: "Generative AI in Public Service Delivery", source: "Gartner", category: "Academic", scope: ["Global"], industries: ["Govt & Public Sector", "BFSI"], date: "Mar 2026", conf: "internal" },
  { title: "Comparative Health Outcomes — South Asia", source: "NITI Aayog", category: "Regulatory", scope: ["PAN India", "APAC"], industries: ["Healthcare"], date: "Feb 2026", conf: "public" },
  { title: "MSME Credit Landscape FY26", source: "Statista", category: "Competitor Benchmarking", scope: ["PAN India"], industries: ["BFSI"], date: "Jan 2026", conf: "internal" },
  { title: "Decarbonisation Cost Curves — Chemicals", source: "McKinsey Global", category: "Market Scan", scope: ["Global"], industries: ["Energy", "Manufacturing"], date: "Dec 2025", conf: "internal" }
];

const POVS = [
  { title: "Why citizen-experience must lead digital-government roadmaps", type: "LinkedIn Article", domain: "IT/Digital", themes: ["Generative AI", "Citizen Services"], authors: ["S. Kapoor", "Y. Sahay"], date: "Apr 24, 2026", conf: "public" },
  { title: "The quiet revolution in PMC: outcomes over outputs", type: "Whitepaper", domain: "Public Policy", themes: ["Programme Mgmt", "Health"], authors: ["N. Pillai"], date: "Mar 15, 2026", conf: "internal" },
  { title: "Reading the room: ESG disclosure in Indian listed firms", type: "Blog", domain: "ESG", themes: ["Disclosure", "Climate"], authors: ["P. Ghosh"], date: "Feb 28, 2026", conf: "public" },
  { title: "Why we are bullish on agentic finance back-offices", type: "Media Op-Ed", domain: "Finance", themes: ["Agentic AI", "Banking"], authors: ["D. Vora", "Y. Sahay"], date: "Feb 02, 2026", conf: "public" }
];

const LEADERBOARD = [
  { rank: 1, name: "M. Aravind", role: "Manager", uploads: 142, score: 982, you: false },
  { rank: 2, name: "Y. Sahay", role: "Manager", uploads: 128, score: 911, you: true },
  { rank: 3, name: "S. Kapoor", role: "Sr. Consultant", uploads: 116, score: 854, you: false },
  { rank: 4, name: "N. Pillai", role: "Director", uploads: 94, score: 781, you: false },
  { rank: 5, name: "R. Krishnan", role: "Manager", uploads: 88, score: 704, you: false },
  { rank: 6, name: "D. Vora", role: "Sr. Consultant", uploads: 71, score: 643, you: false },
  { rank: 7, name: "P. Ghosh", role: "Consultant", uploads: 64, score: 588, you: false },
  { rank: 8, name: "A. Tiwari", role: "Consultant", uploads: 52, score: 491, you: false }
];

const CURRENT_USER = {
  name: "Y. Sahay",
  email: "y.sahay@primuspartners.example",
  empCode: "PP-04129",
  designation: "Manager",
  yoe: 9,
  primary: "Strategy",
  secondary: "IT/Digital",
  skills: ["Financial Modeling", "Market Research", "Stakeholder Mgmt", "SQL"],
  tools: ["Power BI", "Excel (Advanced)", "SQL"],
  methodologies: ["Agile", "Design Thinking"],
  industries: ["Govt & Public Sector", "BFSI"],
  regions: ["PAN India", "APAC"],
  languages: ["English", "Hindi"]
};

const TIER_MAP = {
  "Analyst": "execution", "Consultant": "execution", "Sr. Consultant": "execution", "Software Engineer": "execution",
  "Manager": "management", "AVP": "management", "Senior Software Engineer": "management",
  "VP": "leadership", "ED": "leadership", "MD/CEO": "leadership", "System Manager": "leadership", "Sr. System Manager": "leadership"
};

const RBAC_MATRIX = [
  { action: "Create new project", exec: "no", lead: "yes (Mgmt & Leadership)" },
  { action: "View project metadata", exec: "assigned only", lead: "yes (global)" },
  { action: "Upload to project", exec: "member only", lead: "yes (global)" },
  { action: "Access 06_Financial_Docs", exec: "owner only", lead: "yes" },
  { action: "Edit/delete project", exec: "no", lead: "yes" },
  { action: "Approve new members", exec: "owner only", lead: "any project" },
  { action: "Tag Best-in-Class", exec: "Manager+", lead: "yes" },
  { action: "Delete artifact", exec: "own · 24h window", lead: "yes (any time)" }
];

Object.assign(window, { TAXONOMY, FOLDERS, PROJECTS, FILES_BY_FOLDER, RESEARCH, POVS, LEADERBOARD, CURRENT_USER, TIER_MAP, RBAC_MATRIX });
