// Watchlist demo data — illustrative sanctions-screening examples.
//
// The entities below are FICTIONAL. The legal citations (Executive Orders, UN Security
// Council resolutions, EU regulations) are real, stable program authorities used purely
// to make the sample data feel like an actual sanctions hit — no claim is made about any
// real, named person or company. This is here to show how match scoring, list citations,
// and ownership-based ("50% Rule") matches would surface once live screening is wired up.

const WATCHLIST_ENTITIES = [
  {
    id: "wl_001",
    name: "Anatoly Fedorovich Volkov",
    type: "individual",
    aliases: ["Anatoli Volkov", "A. F. Volkov"],
    score: 98,
    status: "escalated",
    riskCategory: "Sanctioned · PEP",
    nationality: "Russia",
    dob: "1968-03-14",
    idNumbers: [{ type: "Passport", value: "RU •••• •• 2418" }],
    lists: [
      { authority: "OFAC SDN List", program: "RUSSIA-EO14024", legalBasis: "Executive Order 14024, Sec. 1(a)(i)", dateListed: "2022-04-15" },
      { authority: "EU Consolidated List", program: "Ukraine territorial integrity", legalBasis: "Council Regulation (EU) No 269/2014, Art. 2", dateListed: "2022-04-21" },
    ],
    matchFactors: { name: 96, identity: 100, nationality: 100, address: 62 },
    ownership: [
      { name: "Meridian Bulk Traders LLC", pct: 82, relationship: "Beneficial owner" },
      { name: "Nordvik Shipping Group", pct: 55, relationship: "Beneficial owner" },
    ],
    notes: "Designated for association with Russian state defense-sector procurement. High-confidence name and DOB match; address match is weak (last known address predates relocation).",
  },
  {
    id: "wl_002",
    name: "Choe Song-Il",
    type: "individual",
    aliases: ["Choe Song Il", "C. S. Il"],
    score: 100,
    status: "escalated",
    riskCategory: "Sanctioned · WMD proliferation",
    nationality: "North Korea (DPRK)",
    dob: "circa 1958",
    idNumbers: [{ type: "Diplomatic passport", value: "KP •••• •• 7710" }],
    lists: [
      { authority: "OFAC SDN List", program: "DPRK2 / NPWMD", legalBasis: "Executive Order 13687, as amended", dateListed: "2017-09-26" },
      { authority: "UN Security Council Consolidated List", program: "1718 Sanctions Committee (DPRK)", legalBasis: "UNSCR 1718 (2006), as modified by UNSCR 2270 (2016)", dateListed: "2017-09-11" },
    ],
    matchFactors: { name: 100, identity: 100, nationality: 100, address: 40 },
    ownership: [
      { name: "Baekdu Sun-il Trading Corp", pct: 100, relationship: "Senior representative / control" },
    ],
    notes: "Exact name and nationality match against a state-linked proliferation network designation. No verified residential address on file.",
  },
  {
    id: "wl_003",
    name: "Reza Ahmadi-Pour",
    type: "individual",
    aliases: ["R. Ahmadipour"],
    score: 91,
    status: "under_review",
    riskCategory: "Sanctioned · Procurement network",
    nationality: "Iran",
    dob: "1975-11-02",
    idNumbers: [{ type: "National ID", value: "IR •••••• 3390" }],
    lists: [
      { authority: "OFAC SDN List", program: "IRGC procurement network", legalBasis: "Executive Order 13224, as amended by E.O. 13886", dateListed: "2020-01-10" },
    ],
    matchFactors: { name: 88, identity: 74, nationality: 100, address: 55 },
    ownership: [
      { name: "Pardis Petrochemical Supply Co.", pct: 40, relationship: "Minority owner / director" },
    ],
    notes: "Common regional name pattern lowers identity-field confidence — DOB is a partial match (year + month only, day differs by 6). Recommend secondary document verification before escalation.",
  },
  {
    id: "wl_004",
    name: "Marisol Duarte-Reyes",
    type: "individual",
    aliases: ["M. Duarte Reyes", "Marisol Reyes"],
    score: 87,
    status: "under_review",
    riskCategory: "Sanctioned · Regime-linked PEP",
    nationality: "Venezuela",
    dob: "1971-06-30",
    idNumbers: [{ type: "Passport", value: "VE •••• •• 5502" }],
    lists: [
      { authority: "OFAC SDN List", program: "VENEZUELA-EO13850", legalBasis: "Executive Order 13850, Sec. 1(a)(ii)", dateListed: "2021-02-18" },
    ],
    matchFactors: { name: 92, identity: 81, nationality: 100, address: 47 },
    ownership: [
      { name: "Caracas Nacional Holdings C.A.", pct: 28, relationship: "Board member" },
    ],
    notes: "Politically exposed person with a state-owned enterprise board seat. Address on file is outdated (>5 years).",
  },
  {
    id: "wl_005",
    name: "Héctor \"El Ceniza\" Bravo-Núñez",
    type: "individual",
    aliases: ["Hector Bravo Nunez", "El Ceniza"],
    score: 95,
    status: "escalated",
    riskCategory: "Sanctioned · Narcotics trafficking",
    nationality: "Mexico",
    dob: "1980-01-22",
    idNumbers: [{ type: "National ID (CURP)", value: "MX •••••••• 19" }],
    lists: [
      { authority: "OFAC SDN List", program: "SDNTK — Kingpin Act", legalBasis: "21 U.S.C. §§ 1901–1908 (Foreign Narcotics Kingpin Designation Act)", dateListed: "2019-07-03" },
    ],
    matchFactors: { name: 90, identity: 98, nationality: 100, address: 71 },
    ownership: [],
    notes: "Known alias match plus strong identity-document confirmation. No linked corporate structures identified to date.",
  },
  {
    id: "wl_006",
    name: "Aung Min Thura",
    type: "individual",
    aliases: ["A. M. Thura"],
    score: 78,
    status: "cleared",
    riskCategory: "Sanctioned · Military-linked business",
    nationality: "Myanmar",
    dob: "1965-09-09",
    idNumbers: [{ type: "National Registration Card", value: "MM •••••• 0087" }],
    lists: [
      { authority: "OFAC SDN List", program: "MYANMAR-EO14014", legalBasis: "Executive Order 14014", dateListed: "2021-03-25" },
    ],
    matchFactors: { name: 74, identity: 35, nationality: 100, address: 20 },
    ownership: [],
    notes: "Cleared as a false positive after manual review — common given name shared with the sanctioned individual; DOB and ID number do not match.",
  },
  {
    id: "wl_007",
    name: "Dmitri Olegovich Zhirov",
    type: "individual",
    aliases: ["Dmitriy Zhirov", "D. O. Zhirov"],
    score: 99,
    status: "escalated",
    riskCategory: "Sanctioned · Defense-sector facilitator",
    nationality: "Russia",
    dob: "1974-12-05",
    idNumbers: [{ type: "Passport", value: "RU •••• •• 9081" }],
    lists: [
      { authority: "OFAC SDN List", program: "RUSSIA-EO14024", legalBasis: "Executive Order 14024, Sec. 1(a)(ii)", dateListed: "2023-02-24" },
      { authority: "UK OFSI Sanctions List", program: "Russia (Sanctions) (EU Exit) Regulations 2019", legalBasis: "Reg. 5, Russia Regulations 2019", dateListed: "2023-03-02" },
    ],
    matchFactors: { name: 97, identity: 100, nationality: 100, address: 88 },
    ownership: [
      { name: "Silverline Maritime Chartering Ltd", pct: 61, relationship: "Beneficial owner" },
    ],
    notes: "High-confidence match across all identity fields including current registered address.",
  },
  {
    id: "wl_008",
    name: "Yusuf al-Amrani",
    type: "individual",
    aliases: ["Youssef Al-Amrani", "Abu Yusuf"],
    score: 89,
    status: "under_review",
    riskCategory: "Sanctioned · Terrorism financing",
    nationality: "Stateless / multiple",
    dob: "1982-04-17",
    idNumbers: [{ type: "Travel document", value: "•••••• 4471" }],
    lists: [
      { authority: "OFAC SDN List", program: "SDGT — Global Terrorism", legalBasis: "Executive Order 13224, as amended", dateListed: "2018-11-08" },
      { authority: "UN Security Council Consolidated List", program: "1267/1989/2253 ISIL (Da'esh) & Al-Qaida Committee", legalBasis: "UNSCR 1267 (1999) and successor resolutions", dateListed: "2018-10-30" },
    ],
    matchFactors: { name: 85, identity: 66, nationality: 30, address: 15 },
    ownership: [
      { name: "Crescent Star Import-Export FZE", pct: 100, relationship: "Founder / sole signatory" },
    ],
    notes: "Alias-based match with moderate identity confidence — nationality field is ambiguous in source records. Recommend enhanced due diligence.",
  },

  // Businesses — several linked to the individuals above via ownership ("50% Rule").
  {
    id: "wl_101",
    name: "Meridian Bulk Traders LLC",
    type: "business",
    aliases: ["Meridian Bulk Trading LLC"],
    score: 100,
    status: "escalated",
    riskCategory: "Sanctioned · Ownership match (50% Rule)",
    jurisdiction: "Cyprus",
    incorporated: "2011-08-19",
    idNumbers: [{ type: "Registration No.", value: "CY •••••• 4471" }],
    lists: [
      { authority: "OFAC SDN List", program: "RUSSIA-EO14024", legalBasis: "OFAC 50% Rule — blocked by aggregate ownership of a designated person", dateListed: "2022-05-02" },
    ],
    matchFactors: { name: 100, identity: 100, nationality: 100, address: 80 },
    controllingParties: [
      { name: "Anatoly Fedorovich Volkov", pct: 82, relationship: "Beneficial owner", designated: true },
    ],
    notes: "Not separately designated by name — blocked because a sanctioned individual holds an aggregate ownership stake ≥50%, per OFAC's 50% Rule.",
  },
  {
    id: "wl_102",
    name: "Nordvik Shipping Group",
    type: "business",
    aliases: ["Nordvik Shipping Group Ltd"],
    score: 100,
    status: "escalated",
    riskCategory: "Sanctioned · Ownership match (50% Rule)",
    jurisdiction: "Malta",
    incorporated: "2015-02-11",
    idNumbers: [{ type: "Registration No.", value: "MT •••••• 2287" }],
    lists: [
      { authority: "OFAC SDN List", program: "RUSSIA-EO14024", legalBasis: "OFAC 50% Rule — blocked by aggregate ownership of a designated person", dateListed: "2022-06-14" },
    ],
    matchFactors: { name: 100, identity: 100, nationality: 100, address: 74 },
    controllingParties: [
      { name: "Anatoly Fedorovich Volkov", pct: 55, relationship: "Beneficial owner", designated: true },
    ],
    notes: "Malta-flagged shipping operator; blocked solely on ownership aggregation, not a direct name listing.",
  },
  {
    id: "wl_103",
    name: "Baekdu Sun-il Trading Corp",
    type: "business",
    aliases: ["Baekdu Sunil Trading Corporation"],
    score: 100,
    status: "escalated",
    riskCategory: "Sanctioned · State trading entity",
    jurisdiction: "North Korea (DPRK)",
    incorporated: "unknown",
    idNumbers: [],
    lists: [
      { authority: "OFAC SDN List", program: "DPRK2 / NPWMD", legalBasis: "Executive Order 13687, as amended", dateListed: "2017-09-26" },
      { authority: "UN Security Council Consolidated List", program: "1718 Sanctions Committee (DPRK)", legalBasis: "UNSCR 2270 (2016)", dateListed: "2017-09-11" },
    ],
    matchFactors: { name: 100, identity: 90, nationality: 100, address: 30 },
    controllingParties: [
      { name: "Choe Song-Il", pct: 100, relationship: "Senior representative / control", designated: true },
    ],
    notes: "Directly designated state trading company; entity itself appears by name on the SDN and UN 1718 lists.",
  },
  {
    id: "wl_104",
    name: "Pardis Petrochemical Supply Co.",
    type: "business",
    aliases: ["Pardis Petrochemical Supply Company"],
    score: 94,
    status: "under_review",
    riskCategory: "Sanctioned · Front company",
    jurisdiction: "Iran",
    incorporated: "2009-05-30",
    idNumbers: [{ type: "Registration No.", value: "IR •••••• 8814" }],
    lists: [
      { authority: "OFAC SDN List", program: "IRGC procurement network", legalBasis: "Executive Order 13224, as amended by E.O. 13886", dateListed: "2020-01-10" },
    ],
    matchFactors: { name: 91, identity: 70, nationality: 100, address: 58 },
    controllingParties: [
      { name: "Reza Ahmadi-Pour", pct: 40, relationship: "Minority owner / director", designated: true },
    ],
    notes: "Minority (40%) ownership by a designated individual — below the 50% Rule threshold, so this is a discretionary risk flag rather than an automatic block. Recommend analyst review of control indicators beyond equity stake.",
  },
  {
    id: "wl_105",
    name: "Caracas Nacional Holdings C.A.",
    type: "business",
    aliases: [],
    score: 90,
    status: "under_review",
    riskCategory: "Sanctioned · State-linked conglomerate",
    jurisdiction: "Venezuela",
    incorporated: "1998-10-04",
    idNumbers: [{ type: "RIF", value: "VE •••••• 0031" }],
    lists: [
      { authority: "OFAC SDN List", program: "VENEZUELA-EO13850", legalBasis: "Executive Order 13850, Sec. 1(a)(ii)", dateListed: "2021-02-18" },
    ],
    matchFactors: { name: 87, identity: 65, nationality: 100, address: 40 },
    controllingParties: [
      { name: "Marisol Duarte-Reyes", pct: 28, relationship: "Board member", designated: true },
    ],
    notes: "State-linked conglomerate with a designated PEP on its board. Ownership stake alone is below the 50% Rule — flagged for governance-based risk, not automatic blocking.",
  },
  {
    id: "wl_106",
    name: "Golden Delta Agro-Export",
    type: "business",
    aliases: ["Golden Delta Agro Export Co."],
    score: 65,
    status: "cleared",
    riskCategory: "Sanctioned · Military economic interest",
    jurisdiction: "Myanmar",
    incorporated: "2005-03-21",
    idNumbers: [{ type: "Registration No.", value: "MM •••••• 6620" }],
    lists: [
      { authority: "OFAC SDN List", program: "MYANMAR-EO14014", legalBasis: "Executive Order 14014", dateListed: "2021-03-25" },
    ],
    matchFactors: { name: 61, identity: 20, nationality: 100, address: 10 },
    controllingParties: [],
    notes: "Cleared — generic trading-company name produced a weak fuzzy match with no corroborating identity or ownership evidence.",
  },
  {
    id: "wl_107",
    name: "Silverline Maritime Chartering Ltd",
    type: "business",
    aliases: ["Silverline Maritime Ltd"],
    score: 96,
    status: "escalated",
    riskCategory: "Sanctioned · Ownership match (50% Rule)",
    jurisdiction: "Marshall Islands",
    incorporated: "2019-07-08",
    idNumbers: [{ type: "IMO Registration", value: "•••• 7729" }],
    lists: [
      { authority: "OFAC SDN List", program: "RUSSIA-EO14024", legalBasis: "OFAC 50% Rule — blocked by aggregate ownership of a designated person", dateListed: "2023-03-10" },
    ],
    matchFactors: { name: 93, identity: 88, nationality: 100, address: 66 },
    controllingParties: [
      { name: "Dmitri Olegovich Zhirov", pct: 61, relationship: "Beneficial owner", designated: true },
    ],
    notes: "Shell chartering company associated with 'shadow fleet' vessel activity used to evade tanker price-cap measures.",
  },
  {
    id: "wl_108",
    name: "Crescent Star Import-Export FZE",
    type: "business",
    aliases: ["Crescent Star Import Export"],
    score: 88,
    status: "under_review",
    riskCategory: "Sanctioned · Ownership match (50% Rule)",
    jurisdiction: "United Arab Emirates",
    incorporated: "2016-11-27",
    idNumbers: [{ type: "Trade License", value: "AE •••••• 3305" }],
    lists: [
      { authority: "OFAC SDN List", program: "SDGT — Global Terrorism", legalBasis: "OFAC 50% Rule — blocked by aggregate ownership of a designated person", dateListed: "2018-11-08" },
    ],
    matchFactors: { name: 84, identity: 60, nationality: 20, address: 45 },
    controllingParties: [
      { name: "Yusuf al-Amrani", pct: 100, relationship: "Founder / sole signatory", designated: true },
    ],
    notes: "Free-zone trading entity wholly owned by a designated individual — automatic block under the 50% Rule pending confirmation of current ownership.",
  },
];

Object.assign(window, { WATCHLIST_ENTITIES });
