import { setDirectAnswerPreset } from "../../../autofill";
import { randInt } from "../../../util";
import { TBeautyAnswerPresetSet } from "../util/types";

export const BOILERPLATE_ANSWER_PRESETS: TBeautyAnswerPresetSet = {
  0: setDirectAnswerPreset(
    undefined,
    "Additional Task Status",
    "radio",
    () => "I completed my Additional Task for this category scheduled this week today.",
  ),
  3: setDirectAnswerPreset(
    undefined,
    "Did you have remaining service time after all assigned service objectives were complete to zone or stock other NOT-assigned categories",
    "radio",
    () => "No",
  ),
  4: setDirectAnswerPreset(
    undefined,
    "Did the store correct any inaccurate counts for items that were NOT out of stock - just incorrect",
    "text",
    () => 0,
  ),
  5: setDirectAnswerPreset(
    undefined,
    "What is the name and title of the Team Lead you reviewed your service with",
    "text",
    (storePreset) => storePreset.contact_name,
  ),
  6: setDirectAnswerPreset(
    undefined,
    /Did you help a guest get a locked Skin Care case.*open today/i,
    "radio",
    () =>
      "Yes, I was able to get a key or a Team Member with a key to unlock cases for Guests during this service",
  ),
  7: setDirectAnswerPreset(
    undefined,
    "If yes, how many Guests did you assist with opening locked cases today",
    "text",
    () => randInt(3, 5),
  ),
  8: setDirectAnswerPreset(
    undefined,
    "Did you help a guest with any of the L’Oreal brands today",
    "radio",
    () => "Yes",
  ),
  9: setDirectAnswerPreset(undefined, "If yes, how many guests did you assist today", "text", () =>
    randInt(2, 4),
  ),
  10: setDirectAnswerPreset(
    undefined,
    "Have you worked the full",
    "radio",
    () => "Yes I have some time left to service",
  ),
};
