import { TVitalFarmsQuestion } from "./types";

// Keys are arbitrary identifiers (not survey question IDs) used to look up each store's answer
// in `STORE_ANSWERS`. `questionLabel` is matched against the on-page question text by slug
// substring (see `Survey.getAnswer`/`Survey.answer`), so it only needs to be a unique-enough
// prefix/fragment of the real question text.
export const VITAL_FARMS_QUESTIONS: Record<string, TVitalFarmsQuestion> = {
  read_fifo_training: {
    questionType: "radio",
    questionLabel: "Did you read the FIFO Merch Guide and Vital Farms FIFO Training documents",
  },
  service_day: {
    questionType: "radio",
    questionLabel: "What DAY OF THE WEEK are you currently servicing the Vital Farms Egg POG",
  },
  service_time: {
    questionType: "radio",
    questionLabel: "What TIME OF DAY are you currently servicing the Vital Farms Egg POG",
  },
  delivery_days_per_week: {
    questionType: "text",
    questionLabel: "HOW MANY DAYS PER WEEK does the store receive DELIEVERIES for Eggs",
  },
  delivery_days_of_week: {
    questionType: "checkbox",
    questionLabel: "What DAYS OF THE WEEK does the store receive deliveries of eggs",
  },
  order_method: {
    questionType: "radio",
    questionLabel: "Does a Target Team Member MANUALLY ORDER their egg deliveries",
  },
  delivered_today: {
    questionType: "radio",
    questionLabel: "Was a delivery of eggs delivered to the store TODAY",
  },
  count_update_frequency: {
    questionType: "radio",
    questionLabel: "HOW OFTEN does a Target Team Member update counts for egg DPCIs",
  },
  backstock_location: {
    questionType: "radio",
    questionLabel: "WHERE in the backroom is Egg backstock kept",
  },
  backstock_method: {
    questionType: "radio",
    questionLabel: "HOW are Eggs backstocked in your store",
  },
  arrival_fifo_order: {
    questionType: "radio",
    questionLabel: "Upon ARRIVAL, were the Vital Farms products stocked in CORRECT FIFO ORDER",
  },
  completion_fifo_order: {
    questionType: "radio",
    questionLabel: "Upon COMPLETION, are the Vital Farms products stocked in CORRECT FIFO ORDER",
  },
  completion_shelf_labels: {
    questionType: "radio",
    questionLabel: "Upon COMPLETION, do all Vital Farms DPCIs have shelf labels installed",
  },
  completion_expired_found: {
    questionType: "radio",
    questionLabel: "Upon COMPLETION, did you find any Vital Farms DPCIs that are EXPIRED",
  },
  completion_units_damaged: {
    questionType: "radio",
    questionLabel: "Upon COMPLETION, did you find any Vital Farms units showing visible damage",
  },
};
