#import "../System.graphql"

#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/CollectionPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/DestinationCityPageLink.graphql"
#import "../PageLink/DestinationCountryPageLink.graphql"
#import "../PageLink/DestinationOverviewPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/StartPageLink.graphql"

fragment CardBlock on Card {
  background_image
  body_text
  has_primary_button
  has_secondary_button
  heading
  scripted_top_title
  title
  primary_button {
    cta_text
    is_contentstack_link
    open_in_new_tab
    external_link {
      href
      title
    }
    linkConnection {
      edges {
        node {
          __typename
          ...AccountPageLink
          ...CollectionPageLink
          ...ContentPageLink
          ...DestinationCityPageLink
          ...DestinationCountryPageLink
          ...DestinationOverviewPageLink
          ...HotelPageLink
          ...LoyaltyPageLink
          ...StartPageLink
        }
      }
    }
  }
  secondary_button {
    cta_text
    is_contentstack_link
    open_in_new_tab
    external_link {
      href
      title
    }
    linkConnection {
      edges {
        node {
          __typename
          ...AccountPageLink
          ...CollectionPageLink
          ...ContentPageLink
          ...DestinationCityPageLink
          ...DestinationCountryPageLink
          ...DestinationOverviewPageLink
          ...HotelPageLink
          ...LoyaltyPageLink
          ...StartPageLink
        }
      }
    }
  }
  system {
    ...System
  }
}
