import { organizationSignupExtras } from "./organizationSignupRules";
import { DEFAULT_DIAL_CODE } from "@/data/defaultCountry";

/**
 * The organization sign-up form's Formik values.
 *
 * Lifted out of `useEntitiesRegistration` so the field components can be typed
 * against it instead of taking `values: any`.
 */
export const entitiesRegistrationInitialValues = {
  ...organizationSignupExtras,
  first_name: "",
  organizer_type: "",
  email: "",
  password: "",
  phone_number: "",
  /* Kuwait by default, declared here rather than seeded by
     `CountryCodeSelect` from a mount effect. See `DEFAULT_DIAL_CODE`. */
  country_code: DEFAULT_DIAL_CODE,
  documents: [] as File[],
  license_number: "",
  nickname: "",
  latitude: "",
  longitude: "",
  termsAccepted: false,
};

export type EntitiesRegistrationValues =
  typeof entitiesRegistrationInitialValues;
