export type PublicSitePageSections = {
  home: {
    hero: boolean
    offers: boolean
    vehicles: boolean
    pricing: boolean
  }
  about: {
    hero: boolean
    highlights: boolean
    details: boolean
  }
  offers: {
    header: boolean
    grid: boolean
  }
  pricing: {
    hero: boolean
    plans: boolean
    payments: boolean
    faq: boolean
  }
  vehicles: {
    header: boolean
    filters: boolean
    grid: boolean
  }
  vehicleDetail: {
    gallery: boolean
    summary: boolean
  }
  blog: {
    hero: boolean
    posts: boolean
  }
  contact: {
    content: boolean
  }
  booking: {
    content: boolean
  }
  bookingConfirmation: {
    hero: boolean
    summary: boolean
    actions: boolean
  }
}

export const defaultPublicSitePageSections: PublicSitePageSections = {
  home: {
    hero: true,
    offers: true,
    vehicles: true,
    pricing: true,
  },
  about: {
    hero: true,
    highlights: true,
    details: true,
  },
  offers: {
    header: true,
    grid: true,
  },
  pricing: {
    hero: true,
    plans: true,
    payments: true,
    faq: true,
  },
  vehicles: {
    header: true,
    filters: true,
    grid: true,
  },
  vehicleDetail: {
    gallery: true,
    summary: true,
  },
  blog: {
    hero: true,
    posts: true,
  },
  contact: {
    content: true,
  },
  booking: {
    content: true,
  },
  bookingConfirmation: {
    hero: true,
    summary: true,
    actions: true,
  },
}

export function clonePublicSitePageSections(): PublicSitePageSections {
  return JSON.parse(JSON.stringify(defaultPublicSitePageSections)) as PublicSitePageSections
}
