import { createColumnHelper } from "@tanstack/react-table";
import React from "react";
import { Tag } from "../../tag";

// Helper function to get random integer between min and max (inclusive)
const getRandomInt = (min: number, max: number) =>
  Math.floor(Math.random() * (max - min + 1)) + min;

// Helper function to get random item from array
const getRandomItem = <T,>(arr: T[]): T =>
  arr[Math.floor(Math.random() * arr.length)];

// Helper function to get random items from array (1-5 items)
const getRandomItems = <T,>(arr: T[], min = 1, max = 5): T[] => {
  const count = getRandomInt(min, max);
  const shuffled = [...arr].sort(() => 0.5 - Math.random());
  return shuffled.slice(0, count);
};

export interface PersonInfo {
  // id: number;
  name: string;
  nationalId: string;
  dayJob: string;
  supervisor: string;
  dateReceived: string;
  message: string;
  age: number;
  forceSensitive: boolean;
  homeSystem: string;
  skills: string[];
}

const columnHelper = createColumnHelper<PersonInfo>();

export const columns = [
  {
    header: "Id",
    accessorKey: "id",
  },
  {
    header: "Name",
    accessorKey: "name",
  },
  {
    header: "National id",
    accessorKey: "nationalId",
  },
  {
    header: "Day job",
    accessorKey: "dayJob",
  },
  {
    header: "Supervisor",
    accessorKey: "supervisor",
  },
  {
    header: "Date received",
    accessorKey: "dateReceived",
  },
  {
    header: "Message",
    accessorKey: "message",
  },
  {
    header: "Age",
    accessorKey: "age",
    footer: ({ table }) => {
      const ages: number[] = [];
      table.getFilteredRowModel().rows.forEach((row) => {
        const value = row.getValue("age");
        value && ages.push(value);
      });
      return `Avg: ${(ages.reduce((a, b) => a + b, 0) / ages.length).toFixed(2)}`;
    },
  },

  columnHelper.accessor("forceSensitive", {
    cell: (info) => {
      const value = info.getValue();
      return (
        <Tag
          size="small"
          variant="moderate"
          data-color={value ? "accent" : "warning"}
        >{`${value ? "Yes" : "No"}`}</Tag>
      );
    },
    footer: ({ table }) => {
      const totals = new Map();
      totals.set("Yes", 0);
      totals.set("No", 0);
      table.getFilteredRowModel().rows.forEach((row) => {
        const value = row.getValue("forceSensitive");
        totals.set(
          value ? "Yes" : "No",
          (totals.get(value ? "Yes" : "No") ?? 0) + 1,
        );
      });
      return `Yes: ${totals.get("Yes")}, No: ${totals.get("No")}`;
    },
  }),
  {
    header: "Home system",
    accessorKey: "homeSystem",
  },
  {
    header: "Skills",
    accessorKey: "skills",
  },
];

export const homeSystemOptions = [
  "Tatooine",
  "Coruscant",
  "Naboo",
  "Alderaan",
  "Hoth",
  "Dagobah",
  "Endor",
  "Yavin 4",
  "Bespin",
  "Mustafar",
  "Kamino",
  "Geonosis",
  "Kashyyyk",
  "Utapau",
  "Mandalore",
  "Jakku",
  "Ahch-To",
  "Crait",
  "Exegol",
  "Kef Bir",
  "Pasaana",
  "Kijimi",
  "Batuu",
  "Lothal",
  "Scarif",
  "Jedha",
  "Eadu",
  "Dantooine",
  "Ryloth",
  "Mon Cala",
  "Dathomir",
  "Mortis",
  "Moraband",
  "Nal Hutta",
  "Ord Mantell",
  "Corellia",
  "Hosnian Prime",
  "Takodana",
  "DQar",
  "Cantonica",
  "Atollon",
  "Malachor",
  "Raada",
  "Pillio",
  "Vardos",
  "Bracca",
  "Zeffo",
  "Bogano",
  "Nur",
  "Teth",
];

export const skillOptions = [
  "Lightsaber Combat",
  "Force Push",
  "Force Pull",
  "Mind Trick",
  "Force Lightning",
  "Piloting",
  "Marksmanship",
  "Hand-to-Hand Combat",
  "Stealth",
  "Mechanics",
  "Slicing",
  "Engineering",
  "Diplomacy",
  "Negotiation",
  "Leadership",
  "Tactics",
  "Strategy",
  "Medicine",
  "Healing",
  "Force Healing",
  "Telekinesis",
  "Force Speed",
  "Force Jump",
  "Precognition",
  "Battle Meditation",
  "Astrogation",
  "Demolitions",
  "Survival",
  "Tracking",
  "Investigation",
  "Persuasion",
  "Intimidation",
  "Deception",
  "Insight",
  "Perception",
  "Acrobatics",
  "Athletics",
  "Climbing",
  "Swimming",
  "Endurance",
  "Droid Programming",
  "Ship Repair",
  "Weapon Maintenance",
  "Armor Crafting",
  "Cooking",
  "Xenology",
  "History",
  "Lore",
  "Languages",
  "Cryptography",
];

// Prettier-ignore
const baseData = [
  {
    id: 1,
    name: "John Doe",
    nationalId: "12345 678901",
    dayJob: "Jedi Knight",
    supervisor: "Luke Skywalker",
    dateReceived: "15.01.2024",
    message:
      "The Force will be with you always on your journey ahead through the stars and beyond the rim of the galaxy where light meets darkness and hope prevails.",
  },
  {
    id: 2,
    name: "Jane Smith",
    nationalId: "23456 789012",
    dayJob: "Bounty Hunter",
    supervisor: "Leia Organa",
    dateReceived: "20.02.2024",
    message: "May the Force be with you in all endeavors",
  },
  {
    id: 3,
    name: "Bob Johnson",
    nationalId: "34567 890123",
    dayJob: "Sith Lord",
    supervisor: "Han Solo",
    dateReceived: "10.03.2024",
    message:
      "I have a bad feeling about this mission today as we prepare to infiltrate the Death Star and recover the stolen plans that could save the rebellion from certain doom.",
  },
  {
    id: 4,
    name: "Alice Williams",
    nationalId: "45678 901234",
    dayJob: "Smuggler",
    supervisor: "Darth Vader",
    dateReceived: "05.04.2024",
    message: "These are not the droids you are looking for here",
  },
  {
    id: 5,
    name: "Charlie Brown",
    nationalId: "56789 012345",
    dayJob: "Imperial Officer",
    supervisor: "Obi-Wan Kenobi",
    dateReceived: "01.05.2024",
    message:
      "Do or do not there is no try when you face the trials of the Jedi Temple and seek to master the ancient ways of the Force that have been passed down through generations.",
  },
  {
    id: 6,
    name: "Diana Prince",
    nationalId: "67890 123456",
    dayJob: "Rebel Pilot",
    supervisor: "Yoda",
    dateReceived: "15.06.2024",
    message: "Help me Obi-Wan you are my only hope now",
  },
  {
    id: 7,
    name: "Eve Davis",
    nationalId: "78901 234567",
    dayJob: "Moisture Farmer",
    supervisor: "Anakin Skywalker",
    dateReceived: "20.07.2024",
    message:
      "I find your lack of faith quite disturbing as we stand on the precipice of our greatest victory yet the Empire grows stronger with each passing day across the galaxy.",
  },
  {
    id: 8,
    name: "Frank Miller",
    nationalId: "89012 345678",
    dayJob: "Podracer",
    supervisor: "Padmé Amidala",
    dateReceived: "30.08.2024",
    message: "The Force is strong with this one truly",
  },
  {
    id: 9,
    name: "Grace Lee",
    nationalId: "90123 456789",
    dayJob: "Clone Trooper",
    supervisor: "Mace Windu",
    dateReceived: "12.09.2024",
    message:
      "Fear leads to anger and anger leads to hate and hate leads to suffering which is the path to the dark side of the Force that we must avoid at all costs.",
  },
  {
    id: 10,
    name: "Henry Wilson",
    nationalId: "01234 567890",
    dayJob: "Droid Mechanic",
    supervisor: "Qui-Gon Jinn",
    dateReceived: "08.10.2024",
    message: "In my experience there is no such thing as luck",
  },
  {
    id: 11,
    name: "Iris Chen",
    nationalId: "11111 222222",
    dayJob: "Jedi Knight",
    supervisor: "Count Dooku",
    dateReceived: "15.11.2024",
    message:
      "Never tell me the odds of success when we embark on this dangerous mission to destroy the second Death Star and bring peace back to the galaxy once and for all my friends.",
  },
  {
    id: 12,
    name: "Jack Thompson",
    nationalId: "22222 333333",
    dayJob: "Bounty Hunter",
    supervisor: "Palpatine Sidious",
    dateReceived: "22.12.2024",
    message: "It is a trap be very careful always",
  },
  {
    id: 13,
    name: "Kate Anderson",
    nationalId: "33333 444444",
    dayJob: "Sith Lord",
    supervisor: "Boba Fett",
    dateReceived: "18.01.2024",
    message:
      "Strike me down and I shall become more powerful than you can possibly imagine as I transcend this mortal form and join with the cosmic Force that flows through all living things eternally.",
  },
  {
    id: 14,
    name: "Leo Martinez",
    nationalId: "44444 555555",
    dayJob: "Smuggler",
    supervisor: "Jango Fett",
    dateReceived: "14.02.2024",
    message: "The ability to destroy a planet is insignificant",
  },
  {
    id: 15,
    name: "Maya Patel",
    nationalId: "55555 666666",
    dayJob: "Imperial Officer",
    supervisor: "Lando Calrissian",
    dateReceived: "07.03.2024",
    message:
      "Great kid but do not get too cocky out there because the Imperial forces are relentless and they will stop at nothing to crush the rebellion and maintain their iron grip on the galaxy.",
  },
  {
    id: 16,
    name: "Nathan Garcia",
    nationalId: "66666 777777",
    dayJob: "Rebel Pilot",
    supervisor: "Chewbacca Wookiee",
    dateReceived: "29.04.2024",
    message: "Rebellions are built on hope and courage today",
  },
  {
    id: 17,
    name: "Olivia Brown",
    nationalId: "77777 888888",
    dayJob: "Moisture Farmer",
    supervisor: "Rey Skywalker",
    dateReceived: "10.05.2024",
    message:
      "The Force surrounds us and penetrates us and binds the galaxy together in ways we are only beginning to understand as we learn more about the ancient Jedi teachings and their profound wisdom.",
  },
  {
    id: 18,
    name: "Peter Kim",
    nationalId: "88888 999999",
    dayJob: "Podracer",
    supervisor: "Kylo Ren",
    dateReceived: "03.06.2024",
    message: "Your focus determines your reality always remember",
  },
  {
    id: 19,
    name: "Quinn Foster",
    nationalId: "99999 000000",
    dayJob: "Clone Trooper",
    supervisor: "Finn Storm",
    dateReceived: "16.07.2024",
    message:
      "Only a Sith deals in absolutes which is why we must remain vigilant and flexible in our approach to defeating the dark side and restoring balance to the Force throughout the known universe.",
  },
  {
    id: 20,
    name: "Rachel Green",
    nationalId: "10101 010101",
    dayJob: "Droid Mechanic",
    supervisor: "Poe Dameron",
    dateReceived: "21.08.2024",
    message: "This is where the fun begins now",
  },
  {
    id: 21,
    name: "Sam Taylor",
    nationalId: "20202 020202",
    dayJob: "Jedi Knight",
    supervisor: "Ahsoka Tano",
    dateReceived: "11.09.2024",
    message:
      "The Force will be with you always as you navigate the treacherous waters of this conflict and remember that the light side is stronger than any darkness when we stand together in unity and purpose.",
  },
  {
    id: 22,
    name: "Tina Rodriguez",
    nationalId: "30303 030303",
    dayJob: "Bounty Hunter",
    supervisor: "Asajj Ventress",
    dateReceived: "28.10.2024",
    message: "May the Force be with you today",
  },
  {
    id: 23,
    name: "Uma Singh",
    nationalId: "40404 040404",
    dayJob: "Sith Lord",
    supervisor: "Grievous Cyborg",
    dateReceived: "19.11.2024",
    message:
      "I have a bad feeling about this entire operation because the Emperor has sensed a great disturbance in the Force and his assassins are searching for us throughout every corner of the galaxy without rest.",
  },
  {
    id: 24,
    name: "Victor Chang",
    nationalId: "50505 050505",
    dayJob: "Smuggler",
    supervisor: "Cad Bane",
    dateReceived: "05.12.2024",
    message: "These are not the droids you seek",
  },
  {
    id: 25,
    name: "Wendy Liu",
    nationalId: "60606 060606",
    dayJob: "Imperial Officer",
    supervisor: "Bo-Katan Kryze",
    dateReceived: "14.01.2024",
    message:
      "Do or do not there is no try when you commit yourself fully to the path of becoming a Jedi Master and embracing the responsibilities that come with wielding such immense power over life and death itself.",
  },
  {
    id: 26,
    name: "Xavier Moore",
    nationalId: "70707 070707",
    dayJob: "Rebel Pilot",
    supervisor: "Din Djarin",
    dateReceived: "03.02.2024",
    message: "Help me Obi-Wan you are my hope",
  },
  {
    id: 27,
    name: "Yuki Tanaka",
    nationalId: "80808 080808",
    dayJob: "Moisture Farmer",
    supervisor: "Grogu Yoda",
    dateReceived: "18.03.2024",
    message:
      "I find your lack of faith disturbing especially when we are so close to achieving our ultimate goal of bringing order and stability to a chaotic galaxy that desperately needs the strong leadership only the Empire can provide.",
  },
  {
    id: 28,
    name: "Zoe Walker",
    nationalId: "90909 090909",
    dayJob: "Podracer",
    supervisor: "Cassian Andor",
    dateReceived: "25.04.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 29,
    name: "Aaron Hall",
    nationalId: "12121 212121",
    dayJob: "Clone Trooper",
    supervisor: "Jyn Erso",
    dateReceived: "08.05.2024",
    message:
      "Fear leads to anger and anger leads to hate and hate leads to suffering on the path to the dark side which corrupts all who walk it leaving only destruction and despair in their wake across countless worlds.",
  },
  {
    id: 30,
    name: "Bella Cooper",
    nationalId: "23232 323232",
    dayJob: "Droid Mechanic",
    supervisor: "Saw Gerrera",
    dateReceived: "30.06.2024",
    message: "In my experience there is no luck",
  },
  {
    id: 31,
    name: "Carlos Rivera",
    nationalId: "34343 434343",
    dayJob: "Jedi Knight",
    supervisor: "Mon Mothma",
    dateReceived: "12.07.2024",
    message:
      "Never tell me the odds when facing impossible situations because we have overcome greater challenges before and with the Force as our ally there is nothing we cannot accomplish together in this fight for freedom.",
  },
  {
    id: 32,
    name: "Daisy Hughes",
    nationalId: "45454 545454",
    dayJob: "Bounty Hunter",
    supervisor: "Admiral Ackbar",
    dateReceived: "14.08.2024",
    message: "It is a trap be careful",
  },
  {
    id: 33,
    name: "Ethan Brooks",
    nationalId: "56565 656565",
    dayJob: "Sith Lord",
    supervisor: "Grand Moff Tarkin",
    dateReceived: "07.09.2024",
    message:
      "Strike me down and I shall become more powerful than you could ever imagine transcending the physical realm to join with the eternal cosmic Force that binds all living things across space and time forever.",
  },
  {
    id: 34,
    name: "Fiona Scott",
    nationalId: "67676 767676",
    dayJob: "Smuggler",
    supervisor: "Thrawn Mitth",
    dateReceived: "19.10.2024",
    message: "The ability to destroy planets is nothing",
  },
  {
    id: 35,
    name: "George White",
    nationalId: "78787 878787",
    dayJob: "Imperial Officer",
    supervisor: "Kanan Jarrus",
    dateReceived: "21.11.2024",
    message:
      "Great kid but do not get cocky out there among the stars because overconfidence has been the downfall of many great pilots who thought they were invincible until they met their match in battle against superior foes.",
  },
  {
    id: 36,
    name: "Hannah Adams",
    nationalId: "89898 989898",
    dayJob: "Rebel Pilot",
    supervisor: "Ezra Bridger",
    dateReceived: "28.12.2024",
    message: "Rebellions are built on hope always",
  },
  {
    id: 37,
    name: "Ivan Nelson",
    nationalId: "90000 111111",
    dayJob: "Moisture Farmer",
    supervisor: "Sabine Wren",
    dateReceived: "09.01.2024",
    message:
      "The Force surrounds us and penetrates us binding the entire galaxy together in an invisible web of energy that connects every living being to one another in ways both mysterious and profound beyond our understanding.",
  },
  {
    id: 38,
    name: "Julia Mitchell",
    nationalId: "01111 222222",
    dayJob: "Podracer",
    supervisor: "Hera Syndulla",
    dateReceived: "16.02.2024",
    message: "Your focus determines your reality now",
  },
  {
    id: 39,
    name: "Kevin Parker",
    nationalId: "11222 333333",
    dayJob: "Clone Trooper",
    supervisor: "Zeb Orrelios",
    dateReceived: "04.03.2024",
    message:
      "Only a Sith deals in absolutes which is precisely why the Jedi Order has always taught us to seek balance and understanding rather than rushing to judgment based on incomplete information or clouded by emotion and prejudice.",
  },
  {
    id: 40,
    name: "Laura Evans",
    nationalId: "22333 444444",
    dayJob: "Droid Mechanic",
    supervisor: "Cal Kestis",
    dateReceived: "11.04.2024",
    message: "This is where fun begins today",
  },
  {
    id: 41,
    name: "Marcus Turner",
    nationalId: "33444 555555",
    dayJob: "Jedi Knight",
    supervisor: "Trilla Suduri",
    dateReceived: "14.05.2024",
    message:
      "The Force will be with you always as you face the trials ahead and remember that even in the darkest moments when all hope seems lost the light of the Force can guide you safely through any storm.",
  },
  {
    id: 42,
    name: "Nora Collins",
    nationalId: "44555 666666",
    dayJob: "Bounty Hunter",
    supervisor: "Maul Darth",
    dateReceived: "26.06.2024",
    message: "May the Force be with you",
  },
  {
    id: 43,
    name: "Oscar Murphy",
    nationalId: "55666 777777",
    dayJob: "Sith Lord",
    supervisor: "Savage Opress",
    dateReceived: "17.07.2024",
    message:
      "I have a very bad feeling about this entire mission because the intel suggests that Imperial forces have set up an ambush waiting for us at the rendezvous point and we may be walking into certain doom.",
  },
  {
    id: 44,
    name: "Paula Bell",
    nationalId: "66777 888888",
    dayJob: "Smuggler",
    supervisor: "Ventress Asajj",
    dateReceived: "22.08.2024",
    message: "These are not the droids",
  },
  {
    id: 45,
    name: "Quincy Reed",
    nationalId: "77888 999999",
    dayJob: "Imperial Officer",
    supervisor: "Omega Clone",
    dateReceived: "13.09.2024",
    message:
      "Do or do not there is no try in the teachings of Master Yoda who has guided countless Jedi through the ages with his wisdom and patience helping them understand the true nature of the Force and their place within it.",
  },
  {
    id: 46,
    name: "Rita Bailey",
    nationalId: "88999 000000",
    dayJob: "Rebel Pilot",
    supervisor: "Wrecker Clone",
    dateReceived: "05.10.2024",
    message: "Help me you are my hope",
  },
  {
    id: 47,
    name: "Scott Morris",
    nationalId: "99000 111112",
    dayJob: "Moisture Farmer",
    supervisor: "Tech Clone",
    dateReceived: "02.11.2024",
    message:
      "I find your lack of faith quite disturbing indeed when we stand at the threshold of achieving our greatest victory against the rebel alliance and crushing their pathetic resistance once and for all throughout the galaxy.",
  },
  {
    id: 48,
    name: "Tara Rogers",
    nationalId: "00111 222223",
    dayJob: "Podracer",
    supervisor: "Hunter Clone",
    dateReceived: "28.12.2024",
    message: "The Force is strong here",
  },
  {
    id: 49,
    name: "Ulysses Cook",
    nationalId: "11222 333334",
    dayJob: "Clone Trooper",
    supervisor: "Echo Clone",
    dateReceived: "19.01.2024",
    message:
      "Fear leads to anger and anger leads to hate and hate leads to suffering which is the inevitable path to the dark side that consumes all who allow their emotions to control their actions and cloud their judgment.",
  },
  {
    id: 50,
    name: "Vera Ward",
    nationalId: "22333 444445",
    dayJob: "Droid Mechanic",
    supervisor: "Crosshair Clone",
    dateReceived: "26.02.2024",
    message: "In my experience no luck exists",
  },
  {
    id: 51,
    name: "Walter Cox",
    nationalId: "33444 555556",
    dayJob: "Jedi Knight",
    supervisor: "Luke Skywalker",
    dateReceived: "11.03.2024",
    message:
      "Never tell me the odds of survival when we are fighting for the future of the entire galaxy and the freedom of billions of beings who are counting on us to succeed where so many others have failed before.",
  },
  {
    id: 52,
    name: "Xena Howard",
    nationalId: "44555 666667",
    dayJob: "Bounty Hunter",
    supervisor: "Leia Organa",
    dateReceived: "08.04.2024",
    message: "It is a trap now",
  },
  {
    id: 53,
    name: "Yasmin Wood",
    nationalId: "55666 777778",
    dayJob: "Sith Lord",
    supervisor: "Han Solo",
    dateReceived: "17.05.2024",
    message:
      "Strike me down and I shall become more powerful than you can possibly imagine as my spirit joins with the Force and guides future generations of Jedi in their eternal struggle against the darkness that threatens our galaxy.",
  },
  {
    id: 54,
    name: "Zachary James",
    nationalId: "66777 888889",
    dayJob: "Smuggler",
    supervisor: "Darth Vader",
    dateReceived: "02.06.2024",
    message: "Destroying planets is insignificant truly",
  },
  {
    id: 55,
    name: "Amber Russell",
    nationalId: "77888 999990",
    dayJob: "Imperial Officer",
    supervisor: "Obi-Wan Kenobi",
    dateReceived: "24.07.2024",
    message:
      "Great kid but do not get too cocky because pride comes before the fall and many skilled pilots have met their demise by underestimating their opponents in the heat of battle among the stars and asteroids.",
  },
  {
    id: 56,
    name: "Brian Griffin",
    nationalId: "88999 000001",
    dayJob: "Rebel Pilot",
    supervisor: "Yoda",
    dateReceived: "19.08.2024",
    message: "Rebellions built on hope and courage",
  },
  {
    id: 57,
    name: "Carla Hayes",
    nationalId: "99000 111113",
    dayJob: "Moisture Farmer",
    supervisor: "Anakin Skywalker",
    dateReceived: "07.09.2024",
    message:
      "The Force surrounds us all and binds us together in an eternal dance of light and darkness that has shaped the destiny of our galaxy since the dawn of time when the first Jedi discovered its power.",
  },
  {
    id: 58,
    name: "Derek Price",
    nationalId: "00111 222224",
    dayJob: "Podracer",
    supervisor: "Padmé Amidala",
    dateReceived: "14.10.2024",
    message: "Your focus determines reality always",
  },
  {
    id: 59,
    name: "Elena Butler",
    nationalId: "11222 333335",
    dayJob: "Clone Trooper",
    supervisor: "Mace Windu",
    dateReceived: "23.11.2024",
    message:
      "Only a Sith deals in absolutes and that is why we Jedi must always seek the middle path of wisdom and compassion even when faced with enemies who show us no mercy or understanding in their quest for power.",
  },
  {
    id: 60,
    name: "Felix Perry",
    nationalId: "22333 444446",
    dayJob: "Droid Mechanic",
    supervisor: "Qui-Gon Jinn",
    dateReceived: "06.12.2024",
    message: "This is where fun begins",
  },
  {
    id: 61,
    name: "Gina Powell",
    nationalId: "33444 555557",
    dayJob: "Jedi Knight",
    supervisor: "Count Dooku",
    dateReceived: "21.01.2024",
    message:
      "The Force will be with you always on your journey through the stars as you seek to bring peace and justice to a troubled galaxy that has known too much war and suffering for far too long.",
  },
  {
    id: 62,
    name: "Hector Long",
    nationalId: "44555 666668",
    dayJob: "Bounty Hunter",
    supervisor: "Palpatine Sidious",
    dateReceived: "29.02.2024",
    message: "May the Force be with you",
  },
  {
    id: 63,
    name: "Isabel Patterson",
    nationalId: "55666 777779",
    dayJob: "Sith Lord",
    supervisor: "Boba Fett",
    dateReceived: "15.03.2024",
    message:
      "I have a bad feeling about this situation because my instincts tell me that we are walking directly into an Imperial trap and the consequences of failure will be catastrophic for our entire rebel cell and everyone who depends on us.",
  },
  {
    id: 64,
    name: "Jake Hughes",
    nationalId: "66777 888880",
    dayJob: "Smuggler",
    supervisor: "Jango Fett",
    dateReceived: "03.04.2024",
    message: "These are not the droids you want",
  },
  {
    id: 65,
    name: "Kara Fisher",
    nationalId: "77888 999991",
    dayJob: "Imperial Officer",
    supervisor: "Lando Calrissian",
    dateReceived: "09.05.2024",
    message:
      "Do or do not there is no try when it comes to mastering the Force and fulfilling your destiny as a Jedi because half measures and hesitation will only lead to failure and disappointment in your training and beyond.",
  },
  {
    id: 66,
    name: "Liam Porter",
    nationalId: "88999 000002",
    dayJob: "Rebel Pilot",
    supervisor: "Chewbacca Wookiee",
    dateReceived: "18.06.2024",
    message: "Help me Obi-Wan my only hope",
  },
  {
    id: 67,
    name: "Monica Ross",
    nationalId: "99000 111114",
    dayJob: "Moisture Farmer",
    supervisor: "Rey Skywalker",
    dateReceived: "05.07.2024",
    message:
      "I find your lack of faith extremely disturbing when we are on the verge of our greatest triumph over the rebel scum and you dare to question the power of the dark side and the might of the Galactic Empire.",
  },
  {
    id: 68,
    name: "Noah Sanders",
    nationalId: "00111 222225",
    dayJob: "Podracer",
    supervisor: "Kylo Ren",
    dateReceived: "27.08.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 69,
    name: "Opal Jenkins",
    nationalId: "11222 333336",
    dayJob: "Clone Trooper",
    supervisor: "Finn Storm",
    dateReceived: "14.09.2024",
    message:
      "Fear leads to anger and anger leads to hate and hate leads to suffering which is why the Jedi Council has always warned against forming attachments and giving in to our baser emotions that can corrupt us from within.",
  },
  {
    id: 70,
    name: "Paul Foster",
    nationalId: "22333 444447",
    dayJob: "Droid Mechanic",
    supervisor: "Poe Dameron",
    dateReceived: "08.10.2024",
    message: "In my experience there is no luck",
  },
  {
    id: 71,
    name: "Queenie Gray",
    nationalId: "33444 555558",
    dayJob: "Jedi Knight",
    supervisor: "Ahsoka Tano",
    dateReceived: "15.11.2024",
    message:
      "Never tell me the odds when we are embarking on what may be the most dangerous mission of our lives because knowing the probability of failure will only serve to undermine our confidence and resolve when we need it most.",
  },
  {
    id: 72,
    name: "Ryan Kelly",
    nationalId: "44555 666669",
    dayJob: "Bounty Hunter",
    supervisor: "Asajj Ventress",
    dateReceived: "23.12.2024",
    message: "It is a trap be careful",
  },
  {
    id: 73,
    name: "Sophia Barnes",
    nationalId: "55666 777770",
    dayJob: "Sith Lord",
    supervisor: "Grievous Cyborg",
    dateReceived: "12.01.2024",
    message:
      "Strike me down with all your hatred and your journey toward the dark side will be complete as you embrace the power that flows through anger and fear becoming stronger than you ever dreamed possible in your wildest imagination.",
  },
  {
    id: 74,
    name: "Thomas Ross",
    nationalId: "66777 888881",
    dayJob: "Smuggler",
    supervisor: "Cad Bane",
    dateReceived: "04.02.2024",
    message: "The ability to destroy a planet",
  },
  {
    id: 75,
    name: "Ursula Bennett",
    nationalId: "77888 999992",
    dayJob: "Imperial Officer",
    supervisor: "Bo-Katan Kryze",
    dateReceived: "19.03.2024",
    message:
      "Great kid but do not get cocky now because we still have a long way to go before this battle is won and the Empire will not go down without a fierce fight that will test us all.",
  },
  {
    id: 76,
    name: "Vincent Wood",
    nationalId: "88999 000003",
    dayJob: "Rebel Pilot",
    supervisor: "Din Djarin",
    dateReceived: "07.04.2024",
    message: "Rebellions are built on hope",
  },
  {
    id: 77,
    name: "Willow James",
    nationalId: "99000 111115",
    dayJob: "Moisture Farmer",
    supervisor: "Grogu Yoda",
    dateReceived: "28.05.2024",
    message: "The Force surrounds us and binds us",
  },
  {
    id: 78,
    name: "Xander Hill",
    nationalId: "00111 222226",
    dayJob: "Podracer",
    supervisor: "Cassian Andor",
    dateReceived: "16.06.2024",
    message: "Your focus determines your reality",
  },
  {
    id: 79,
    name: "Yvonne Green",
    nationalId: "11222 333337",
    dayJob: "Clone Trooper",
    supervisor: "Jyn Erso",
    dateReceived: "03.07.2024",
    message: "Only a Sith deals in absolutes",
  },
  {
    id: 80,
    name: "Zack Adams",
    nationalId: "22333 444448",
    dayJob: "Droid Mechanic",
    supervisor: "Saw Gerrera",
    dateReceived: "21.08.2024",
    message: "This is where the fun begins",
  },
  {
    id: 81,
    name: "Amy Coleman",
    nationalId: "33444 555559",
    dayJob: "Jedi Knight",
    supervisor: "Mon Mothma",
    dateReceived: "09.09.2024",
    message: "The Force will be with you always",
  },
  {
    id: 82,
    name: "Brandon Reed",
    nationalId: "44555 666660",
    dayJob: "Bounty Hunter",
    supervisor: "Admiral Ackbar",
    dateReceived: "14.10.2024",
    message: "May the Force be with you",
  },
  {
    id: 83,
    name: "Chloe Watson",
    nationalId: "55666 777771",
    dayJob: "Sith Lord",
    supervisor: "Grand Moff Tarkin",
    dateReceived: "22.11.2024",
    message: "I have a bad feeling about this",
  },
  {
    id: 84,
    name: "Daniel Brooks",
    nationalId: "66777 888882",
    dayJob: "Smuggler",
    supervisor: "Thrawn Mitth",
    dateReceived: "05.12.2024",
    message: "These are not the droids you want",
  },
  {
    id: 85,
    name: "Emily Sanders",
    nationalId: "77888 999993",
    dayJob: "Imperial Officer",
    supervisor: "Kanan Jarrus",
    dateReceived: "28.01.2024",
    message: "Do or do not there is no try",
  },
  {
    id: 86,
    name: "Fred Myers",
    nationalId: "88999 000004",
    dayJob: "Rebel Pilot",
    supervisor: "Ezra Bridger",
    dateReceived: "12.02.2024",
    message: "Help me Obi-Wan you are my hope",
  },
  {
    id: 87,
    name: "Gloria Perry",
    nationalId: "99000 111116",
    dayJob: "Moisture Farmer",
    supervisor: "Sabine Wren",
    dateReceived: "27.03.2024",
    message: "I find your lack of faith disturbing",
  },
  {
    id: 88,
    name: "Harold Long",
    nationalId: "00111 222227",
    dayJob: "Podracer",
    supervisor: "Hera Syndulla",
    dateReceived: "15.04.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 89,
    name: "Irene Hughes",
    nationalId: "11222 333338",
    dayJob: "Clone Trooper",
    supervisor: "Zeb Orrelios",
    dateReceived: "05.05.2024",
    message: "Fear leads to anger anger leads to hate",
  },
  {
    id: 90,
    name: "Jason Foster",
    nationalId: "22333 444449",
    dayJob: "Droid Mechanic",
    supervisor: "Cal Kestis",
    dateReceived: "18.06.2024",
    message: "In my experience there is no luck",
  },
  {
    id: 91,
    name: "Kelly Price",
    nationalId: "33444 555560",
    dayJob: "Jedi Knight",
    supervisor: "Trilla Suduri",
    dateReceived: "31.07.2024",
    message: "Never tell me the odds",
  },
  {
    id: 92,
    name: "Lance Butler",
    nationalId: "44555 666661",
    dayJob: "Bounty Hunter",
    supervisor: "Maul Darth",
    dateReceived: "08.08.2024",
    message: "It is a trap be careful",
  },
  {
    id: 93,
    name: "Melissa Ward",
    nationalId: "55666 777772",
    dayJob: "Sith Lord",
    supervisor: "Savage Opress",
    dateReceived: "24.09.2024",
    message: "Strike me down and I become powerful",
  },
  {
    id: 94,
    name: "Neil Cox",
    nationalId: "66777 888883",
    dayJob: "Smuggler",
    supervisor: "Ventress Asajj",
    dateReceived: "11.10.2024",
    message: "The ability to destroy is insignificant",
  },
  {
    id: 95,
    name: "Olivia Russell",
    nationalId: "77888 999994",
    dayJob: "Imperial Officer",
    supervisor: "Omega Clone",
    dateReceived: "29.11.2024",
    message: "Great kid do not get cocky",
  },
  {
    id: 96,
    name: "Patrick Griffin",
    nationalId: "88999 000005",
    dayJob: "Rebel Pilot",
    supervisor: "Wrecker Clone",
    dateReceived: "14.12.2024",
    message: "Rebellions are built on hope",
  },
  {
    id: 97,
    name: "Quinn Hayes",
    nationalId: "99000 111117",
    dayJob: "Moisture Farmer",
    supervisor: "Tech Clone",
    dateReceived: "07.01.2024",
    message: "The Force surrounds and binds us",
  },
  {
    id: 98,
    name: "Rebecca Porter",
    nationalId: "00111 222228",
    dayJob: "Podracer",
    supervisor: "Hunter Clone",
    dateReceived: "19.02.2024",
    message: "Your focus determines your reality",
  },
  {
    id: 99,
    name: "Steven Ross",
    nationalId: "11222 333339",
    dayJob: "Clone Trooper",
    supervisor: "Echo Clone",
    dateReceived: "06.03.2024",
    message: "Only a Sith deals in absolutes",
  },
  {
    id: 100,
    name: "Teresa Jenkins",
    nationalId: "22333 444440",
    dayJob: "Droid Mechanic",
    supervisor: "Crosshair Clone",
    dateReceived: "17.04.2024",
    message: "This is where the fun begins",
  },
  {
    id: 101,
    name: "Ulysses Gray",
    nationalId: "33444 555561",
    dayJob: "Jedi Knight",
    supervisor: "Luke Skywalker",
    dateReceived: "11.05.2024",
    message: "The Force will be with you always",
  },
  {
    id: 102,
    name: "Valerie Kelly",
    nationalId: "44555 666662",
    dayJob: "Bounty Hunter",
    supervisor: "Leia Organa",
    dateReceived: "22.06.2024",
    message: "May the Force be with you",
  },
  {
    id: 103,
    name: "William Barnes",
    nationalId: "55666 777773",
    dayJob: "Sith Lord",
    supervisor: "Han Solo",
    dateReceived: "15.07.2024",
    message: "I have a bad feeling about this",
  },
  {
    id: 104,
    name: "Xenia Bennett",
    nationalId: "66777 888884",
    dayJob: "Smuggler",
    supervisor: "Darth Vader",
    dateReceived: "28.08.2024",
    message: "These are not the droids you seek",
  },
  {
    id: 105,
    name: "Yolanda Hill",
    nationalId: "77888 999995",
    dayJob: "Imperial Officer",
    supervisor: "Obi-Wan Kenobi",
    dateReceived: "09.09.2024",
    message: "Do or do not there is no try",
  },
  {
    id: 106,
    name: "Zachary Coleman",
    nationalId: "88999 000006",
    dayJob: "Rebel Pilot",
    supervisor: "Yoda",
    dateReceived: "22.10.2024",
    message: "Help me Obi-Wan you are my hope",
  },
  {
    id: 107,
    name: "Andrea Watson",
    nationalId: "99000 111118",
    dayJob: "Moisture Farmer",
    supervisor: "Anakin Skywalker",
    dateReceived: "04.11.2024",
    message: "I find your lack of faith disturbing",
  },
  {
    id: 108,
    name: "Bruce Myers",
    nationalId: "00111 222229",
    dayJob: "Podracer",
    supervisor: "Padmé Amidala",
    dateReceived: "17.12.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 109,
    name: "Cassandra Long",
    nationalId: "11222 333330",
    dayJob: "Clone Trooper",
    supervisor: "Mace Windu",
    dateReceived: "29.01.2024",
    message: "Fear leads to anger and hatred",
  },
  {
    id: 110,
    name: "David Hughes",
    nationalId: "22333 444441",
    dayJob: "Droid Mechanic",
    supervisor: "Qui-Gon Jinn",
    dateReceived: "13.02.2024",
    message: "In my experience there is no luck",
  },
  {
    id: 111,
    name: "Elizabeth Foster",
    nationalId: "33444 555562",
    dayJob: "Jedi Knight",
    supervisor: "Count Dooku",
    dateReceived: "01.03.2024",
    message: "Never tell me the odds",
  },
  {
    id: 112,
    name: "Frank Price",
    nationalId: "44555 666663",
    dayJob: "Bounty Hunter",
    supervisor: "Palpatine Sidious",
    dateReceived: "24.04.2024",
    message: "It is a trap be careful",
  },
  {
    id: 113,
    name: "Georgia Butler",
    nationalId: "55666 777774",
    dayJob: "Sith Lord",
    supervisor: "Boba Fett",
    dateReceived: "07.05.2024",
    message: "Strike me down I become more powerful",
  },
  {
    id: 114,
    name: "Howard Ward",
    nationalId: "66777 888885",
    dayJob: "Smuggler",
    supervisor: "Jango Fett",
    dateReceived: "19.06.2024",
    message: "The ability to destroy planets is nothing",
  },
  {
    id: 115,
    name: "Ingrid Cox",
    nationalId: "77888 999996",
    dayJob: "Imperial Officer",
    supervisor: "Lando Calrissian",
    dateReceived: "11.07.2024",
    message: "Great kid do not get cocky",
  },
  {
    id: 116,
    name: "Jeffrey Russell",
    nationalId: "88999 000007",
    dayJob: "Rebel Pilot",
    supervisor: "Chewbacca Wookiee",
    dateReceived: "23.08.2024",
    message: "Rebellions are built on hope and courage",
  },
  {
    id: 117,
    name: "Katherine Griffin",
    nationalId: "99000 111119",
    dayJob: "Moisture Farmer",
    supervisor: "Rey Skywalker",
    dateReceived: "08.09.2024",
    message: "The Force surrounds us and binds us",
  },
  {
    id: 118,
    name: "Leonard Hayes",
    nationalId: "00111 222220",
    dayJob: "Podracer",
    supervisor: "Kylo Ren",
    dateReceived: "16.10.2024",
    message: "Your focus determines your reality always",
  },
  {
    id: 119,
    name: "Margaret Porter",
    nationalId: "11222 333331",
    dayJob: "Clone Trooper",
    supervisor: "Finn Storm",
    dateReceived: "28.11.2024",
    message: "Only a Sith deals in absolutes",
  },
  {
    id: 120,
    name: "Nicholas Ross",
    nationalId: "22333 444442",
    dayJob: "Droid Mechanic",
    supervisor: "Poe Dameron",
    dateReceived: "14.12.2024",
    message: "This is where the fun begins",
  },
  {
    id: 121,
    name: "Ophelia Jenkins",
    nationalId: "33444 555563",
    dayJob: "Jedi Knight",
    supervisor: "Ahsoka Tano",
    dateReceived: "26.01.2024",
    message: "The Force will be with you",
  },
  {
    id: 122,
    name: "Preston Gray",
    nationalId: "44555 666664",
    dayJob: "Bounty Hunter",
    supervisor: "Asajj Ventress",
    dateReceived: "19.02.2024",
    message: "May the Force be with you",
  },
  {
    id: 123,
    name: "Quintessa Kelly",
    nationalId: "55666 777775",
    dayJob: "Sith Lord",
    supervisor: "Grievous Cyborg",
    dateReceived: "03.03.2024",
    message: "I have a bad feeling about this",
  },
  {
    id: 124,
    name: "Raymond Barnes",
    nationalId: "66777 888886",
    dayJob: "Smuggler",
    supervisor: "Cad Bane",
    dateReceived: "21.04.2024",
    message: "These are not the droids",
  },
  {
    id: 125,
    name: "Samantha Bennett",
    nationalId: "77888 999997",
    dayJob: "Imperial Officer",
    supervisor: "Bo-Katan Kryze",
    dateReceived: "13.05.2024",
    message: "Do or do not there is no try",
  },
  {
    id: 126,
    name: "Theodore Hill",
    nationalId: "88999 000009",
    dayJob: "Rebel Pilot",
    supervisor: "Din Djarin",
    dateReceived: "05.06.2024",
    message: "Help me you are my only hope",
  },
  {
    id: 127,
    name: "Ursula Coleman",
    nationalId: "99000 111120",
    dayJob: "Moisture Farmer",
    supervisor: "Grogu Yoda",
    dateReceived: "28.07.2024",
    message: "I find your lack of faith quite disturbing",
  },
  {
    id: 128,
    name: "Vernon Watson",
    nationalId: "00111 222211",
    dayJob: "Podracer",
    supervisor: "Cassian Andor",
    dateReceived: "10.08.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 129,
    name: "Whitney Myers",
    nationalId: "11222 333322",
    dayJob: "Clone Trooper",
    supervisor: "Jyn Erso",
    dateReceived: "22.09.2024",
    message: "Fear leads to anger anger to hate",
  },
  {
    id: 130,
    name: "Xavier Long",
    nationalId: "22333 444443",
    dayJob: "Droid Mechanic",
    supervisor: "Saw Gerrera",
    dateReceived: "04.10.2024",
    message: "In my experience there is no luck",
  },
  {
    id: 131,
    name: "Yasmine Hughes",
    nationalId: "33444 555564",
    dayJob: "Jedi Knight",
    supervisor: "Mon Mothma",
    dateReceived: "16.11.2024",
    message: "Never tell me the odds",
  },
  {
    id: 132,
    name: "Zachary Foster",
    nationalId: "44555 666665",
    dayJob: "Bounty Hunter",
    supervisor: "Admiral Ackbar",
    dateReceived: "29.12.2024",
    message: "It is a trap be very careful",
  },
  {
    id: 133,
    name: "Abigail Price",
    nationalId: "55666 777776",
    dayJob: "Sith Lord",
    supervisor: "Grand Moff Tarkin",
    dateReceived: "11.01.2024",
    message: "Strike me down I become more powerful",
  },
  {
    id: 134,
    name: "Benjamin Butler",
    nationalId: "66777 888887",
    dayJob: "Smuggler",
    supervisor: "Thrawn Mitth",
    dateReceived: "23.02.2024",
    message: "The ability to destroy planets insignificant",
  },
  {
    id: 135,
    name: "Charlotte Ward",
    nationalId: "77888 999998",
    dayJob: "Imperial Officer",
    supervisor: "Kanan Jarrus",
    dateReceived: "06.03.2024",
    message: "Great kid do not get too cocky",
  },
  {
    id: 136,
    name: "Dominic Cox",
    nationalId: "88999 000010",
    dayJob: "Rebel Pilot",
    supervisor: "Ezra Bridger",
    dateReceived: "18.04.2024",
    message: "Rebellions are built on hope",
  },
  {
    id: 137,
    name: "Eleanor Russell",
    nationalId: "99000 111121",
    dayJob: "Moisture Farmer",
    supervisor: "Sabine Wren",
    dateReceived: "01.05.2024",
    message: "The Force surrounds us and binds us",
  },
  {
    id: 138,
    name: "Franklin Griffin",
    nationalId: "00111 222212",
    dayJob: "Podracer",
    supervisor: "Hera Syndulla",
    dateReceived: "16.06.2024",
    message: "Your focus determines your reality",
  },
  {
    id: 139,
    name: "Gwendolyn Hayes",
    nationalId: "11222 333323",
    dayJob: "Clone Trooper",
    supervisor: "Zeb Orrelios",
    dateReceived: "02.07.2024",
    message: "Only a Sith deals in absolutes",
  },
  {
    id: 140,
    name: "Harrison Porter",
    nationalId: "22333 444434",
    dayJob: "Droid Mechanic",
    supervisor: "Cal Kestis",
    dateReceived: "24.08.2024",
    message: "This is where the fun begins",
  },
  {
    id: 141,
    name: "Isabella Ross",
    nationalId: "33444 555545",
    dayJob: "Jedi Knight",
    supervisor: "Trilla Suduri",
    dateReceived: "07.09.2024",
    message: "The Force will be with you always",
  },
  {
    id: 142,
    name: "Jacob Jenkins",
    nationalId: "44555 666656",
    dayJob: "Bounty Hunter",
    supervisor: "Maul Darth",
    dateReceived: "19.10.2024",
    message: "May the Force be with you",
  },
  {
    id: 143,
    name: "Kimberly Gray",
    nationalId: "55666 777767",
    dayJob: "Sith Lord",
    supervisor: "Savage Opress",
    dateReceived: "31.11.2024",
    message: "I have a bad feeling about this",
  },
  {
    id: 144,
    name: "Lawrence Kelly",
    nationalId: "66777 888878",
    dayJob: "Smuggler",
    supervisor: "Ventress Asajj",
    dateReceived: "13.12.2024",
    message: "These are not the droids you seek",
  },
  {
    id: 145,
    name: "Miranda Barnes",
    nationalId: "77888 999989",
    dayJob: "Imperial Officer",
    supervisor: "Omega Clone",
    dateReceived: "25.01.2024",
    message: "Do or do not there is no try",
  },
  {
    id: 146,
    name: "Nathan Bennett",
    nationalId: "88999 000090",
    dayJob: "Rebel Pilot",
    supervisor: "Wrecker Clone",
    dateReceived: "08.02.2024",
    message: "Help me Obi-Wan you are my hope",
  },
  {
    id: 147,
    name: "Octavia Hill",
    nationalId: "99000 111101",
    dayJob: "Moisture Farmer",
    supervisor: "Tech Clone",
    dateReceived: "21.03.2024",
    message: "I find your lack of faith disturbing",
  },
  {
    id: 148,
    name: "Philip Coleman",
    nationalId: "00111 222202",
    dayJob: "Podracer",
    supervisor: "Hunter Clone",
    dateReceived: "04.04.2024",
    message: "The Force is strong with this one",
  },
  {
    id: 149,
    name: "Rhonda Watson",
    nationalId: "11222 333303",
    dayJob: "Clone Trooper",
    supervisor: "Echo Clone",
    dateReceived: "16.05.2024",
    message: "Fear leads to anger and hate",
  },
  {
    id: 150,
    name: "Sebastian Myers",
    nationalId: "22333 444404",
    dayJob: "Droid Mechanic",
    supervisor: "Crosshair Clone",
    dateReceived: "29.06.2024",
    message: "In my experience there is no luck",
  },
];

// Generate sample data with new fields
export const sampleData: PersonInfo[] = baseData.map((item) => ({
  ...item,
  age: getRandomInt(20, 60),
  forceSensitive: Math.random() > 0.5,
  homeSystem: getRandomItem(homeSystemOptions),
  skills: getRandomItems(skillOptions),
}));
