import {
  ProcessedParticipantModel,
  ProcessedRunnerModel,
  ProcessedTeamRunnerModel,
} from "../../../../../components/VirtualTicket/shared/EntityTypes.ts"

export const baseParticipantFixture: ProcessedParticipantModel = {
  id: "legId",
  bib_number: "100-1",
  is_nc: false,
  eligibility: null,
  sicard: "123456789",
  sex: "F",
  class: null,
  club: {
    id: "ClubId",
    short_name: "Club",
  },
  full_name: "Leg Full Name",
  stage: {
    id: "legStageId",
    result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
    start_time: "2025-10-26T09:00:00.000+00:00",
    finish_time: "2025-10-26T09:01:00.000+00:00",
    upload_type: "res_finish",
    time_seconds: 60,
    position: 0,
    status_code: "0",
    time_behind: 0,
    time_neutralization: 0,
    time_adjusted: 0,
    time_penalty: 0,
    time_bonus: 0,
    points_final: 0,
    points_behind: 0,
    points_adjusted: 0,
    points_penalty: 0,
    points_bonus: 0,
    leg_number: 1,
    splits: [],
    online_splits: [],
  },
  overalls: null,
}

export const baseLegFixture: ProcessedTeamRunnerModel = {
  ...baseParticipantFixture,
  leg_number: 1,
}

export const baseRelayRunnerFixture: ProcessedRunnerModel = {
  id: "07ec30e6-3953-4676-a5b7-6410851a8f64",
  bib_number: "100",
  is_nc: false,
  eligibility: null,
  runners: [],
  class: {
    id: "classId",
    short_name: "ClassShort",
    long_name: "ClassLong",
  },
  club: {
    id: "clubId",
    short_name: "ClubName",
  },
  full_name: "Team name",
  stage: {
    id: "stageID",
    result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
    start_time: null,
    finish_time: null,
    upload_type: "res_finish",
    time_seconds: 0,
    position: 0,
    status_code: "0",
    time_behind: 2117,
    time_neutralization: 0,
    time_adjusted: 0,
    time_penalty: 0,
    time_bonus: 0,
    points_final: 0,
    points_behind: 0,
    points_adjusted: 0,
    points_penalty: 0,
    points_bonus: 0,
    leg_number: 4,
    splits: [],
    online_splits: [],
  },
  overalls: null,
}
