#import "../AccountPage/Ref.graphql"
#import "../ContentPage/Ref.graphql"
#import "../LoyaltyPage/Ref.graphql"

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

fragment ContactFields on ContactFields {
  display_text
  contact_field
  footnote
}

fragment JoinLoyaltyContactSidebar_ContentPage on ContentPageSidebarJoinLoyaltyContact {
  join_loyalty_contact {
    preamble
    title
    button {
      cta_text
      open_in_new_tab
      external_link {
        href
        title
      }
      linkConnection {
        edges {
          node {
            __typename
            ...AccountPageLink
            ...ContentPageLink
            ...LoyaltyPageLink
          }
        }
      }
    }
    contact {
      __typename
      ... on ContentPageSidebarJoinLoyaltyContactBlockContactContact {
        contact {
          ...ContactFields
        }
      }
    }
  }
}

fragment JoinLoyaltyContactSidebar_ContentPageRefs on ContentPageSidebarJoinLoyaltyContact {
  join_loyalty_contact {
    button {
      linkConnection {
        edges {
          node {
            __typename
            ...AccountPageRef
            ...ContentPageRef
            ...LoyaltyPageRef
          }
        }
      }
    }
  }
}

fragment JoinLoyaltyContactSidebar_LoyaltyPage on LoyaltyPageSidebarJoinLoyaltyContact {
  join_loyalty_contact {
    preamble
    title
    button {
      cta_text
      open_in_new_tab
      external_link {
        href
        title
      }
      linkConnection {
        edges {
          node {
            __typename
            ...AccountPageLink
            ...ContentPageLink
            ...LoyaltyPageLink
          }
        }
      }
    }
    contact {
      __typename
      ... on LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact {
        contact {
          ...ContactFields
        }
      }
    }
  }
}

fragment JoinLoyaltyContactSidebar_LoyaltyPageRefs on LoyaltyPageSidebarJoinLoyaltyContact {
  join_loyalty_contact {
    button {
      linkConnection {
        edges {
          node {
            __typename
            ...AccountPageRef
            ...ContentPageRef
            ...LoyaltyPageRef
          }
        }
      }
    }
  }
}
