#import "../System.graphql"

#import "../PageLink/AccountPageLink.graphql"
#import "../PageLink/ContentPageLink.graphql"
#import "../PageLink/LoyaltyPageLink.graphql"
#import "../PageLink/HotelPageLink.graphql"

fragment TeaserCardBlock on TeaserCard {
  heading
  body_text
  image
  title
  has_primary_button
  has_secondary_button
  has_sidepeek_button
  primary_button {
    is_contentstack_link
    cta_text
    open_in_new_tab
    external_link {
      title
      href
    }
    linkConnection {
      edges {
        node {
          __typename
          ...LoyaltyPageLink
          ...ContentPageLink
          ...AccountPageLink
          ...HotelPageLink
        }
      }
    }
  }
  secondary_button {
    is_contentstack_link
    cta_text
    open_in_new_tab
    external_link {
      title
      href
    }
    linkConnection {
      edges {
        node {
          __typename
          ...LoyaltyPageLink
          ...ContentPageLink
          ...AccountPageLink
          ...HotelPageLink
        }
      }
    }
  }
  sidepeek_button {
    call_to_action_text
  }
  sidepeek_content {
    heading
    content {
      embedded_itemsConnection {
        edges {
          node {
            __typename
            ...AccountPageLink
            ...ContentPageLink
            ...HotelPageLink
            ...LoyaltyPageLink
          }
        }
      }
      json
    }
    has_primary_button
    primary_button {
      is_contentstack_link
      cta_text
      open_in_new_tab
      external_link {
        title
        href
      }
      linkConnection {
        edges {
          node {
            __typename
            ...LoyaltyPageLink
            ...ContentPageLink
            ...HotelPageLink
          }
        }
      }
    }
    has_secondary_button
    secondary_button {
      is_contentstack_link
      cta_text
      open_in_new_tab
      external_link {
        title
        href
      }
      linkConnection {
        edges {
          node {
            __typename
            ...LoyaltyPageLink
            ...ContentPageLink
            ...HotelPageLink
          }
        }
      }
    }
  }
  system {
    ...System
  }
}
