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

#import "../../Fragments/Blocks/Accordion.graphql"

query GetHotelPage($locale: String!, $uid: String!) {
  hotel_page(locale: $locale, uid: $uid) {
    hotel_page_id
    title
    url
    faq {
      __typename
      title
      global_faqConnection {
        __typename
        edges {
          node {
            ...AccordionBlock
          }
        }
      }
      specific_faq {
        __typename
        questions {
          question
          answer {
            json
            embedded_itemsConnection {
              edges {
                node {
                  __typename
                  ...AccountPageLink
                  ...ContentPageLink
                  ...HotelPageLink
                  ...LoyaltyPageLink
                }
              }
            }
          }
        }
      }
    }
    content {
      __typename
      ... on HotelPageContentUpcomingActivitiesCard {
        upcoming_activities_card {
          background_image
          cta_text
          heading
          body_text
          open_in_new_tab
          scripted_title
          hotel_page_activities_content_pageConnection {
            edges {
              node {
                __typename
                ...ContentPageLink
              }
            }
          }
        }
      }
    }
    system {
      ...System
      created_at
      updated_at
    }
  }
}

query GetHotelPageRefs($locale: String!, $uid: String!) {
  hotel_page(locale: $locale, uid: $uid) {
    faq {
      global_faqConnection {
        edges {
          node {
            ...AccordionBlockRefs
          }
        }
      }
      specific_faq {
        questions {
          answer {
            embedded_itemsConnection {
              edges {
                node {
                  __typename
                  ...AccountPageRef
                  ...ContentPageRef
                  ...HotelPageRef
                  ...LoyaltyPageRef
                }
              }
            }
          }
        }
      }
    }
    content {
      __typename
      ... on HotelPageContentUpcomingActivitiesCard {
        upcoming_activities_card {
          hotel_page_activities_content_pageConnection {
            edges {
              node {
                __typename
                ...ContentPageRef
              }
            }
          }
        }
      }
    }
    system {
      ...System
    }
  }
}

query GetDaDeEnUrlsHotelPage($uid: String!) {
  de: hotel_page(locale: "de", uid: $uid) {
    url
  }
  en: hotel_page(locale: "en", uid: $uid) {
    url
  }
  da: hotel_page(locale: "da", uid: $uid) {
    url
  }
}

query GetFiNoSvUrlsHotelPage($uid: String!) {
  fi: hotel_page(locale: "fi", uid: $uid) {
    url
  }
  no: hotel_page(locale: "no", uid: $uid) {
    url
  }
  sv: hotel_page(locale: "sv", uid: $uid) {
    url
  }
}
