import { gql } from "graphql-tag" import { AccountPageRef } from "../../Fragments/AccountPage/Ref.graphql" import { Accordion_DestinationCountryPage, Accordion_DestinationCountryPageRefs, } from "../../Fragments/Blocks/Accordion.graphql" import { Content_DestinationCountryPage, Content_DestinationCountryPageRefs, } from "../../Fragments/Blocks/Content.graphql" import { CampaignOverviewPageRef } from "../../Fragments/CampaignOverviewPage/Ref.graphql" import { CampaignPageRef } from "../../Fragments/CampaignPage/Ref.graphql" import { CollectionPageRef } from "../../Fragments/CollectionPage/Ref.graphql" import { ContentPageRef } from "../../Fragments/ContentPage/Ref.graphql" import { DestinationCityPageRef } from "../../Fragments/DestinationCityPage/Ref.graphql" import { DestinationCountryPageRef } from "../../Fragments/DestinationCountryPage/Ref.graphql" import { DestinationFilter, DestinationFilterRef, } from "../../Fragments/DestinationFilter.graphql" import { DestinationOverviewPageRef } from "../../Fragments/DestinationOverviewPage/Ref.graphql" import { HotelPageRef } from "../../Fragments/HotelPage/Ref.graphql" import { LoyaltyPageRef } from "../../Fragments/LoyaltyPage/Ref.graphql" import { AccountPageLink } from "../../Fragments/PageLink/AccountPageLink.graphql" import { CampaignOverviewPageLink } from "../../Fragments/PageLink/CampaignOverviewPageLink.graphql" import { CampaignPageLink } from "../../Fragments/PageLink/CampaignPageLink.graphql" import { CollectionPageLink } from "../../Fragments/PageLink/CollectionPageLink.graphql" import { ContentPageLink } from "../../Fragments/PageLink/ContentPageLink.graphql" import { DestinationCityPageLink } from "../../Fragments/PageLink/DestinationCityPageLink.graphql" import { DestinationCountryPageLink } from "../../Fragments/PageLink/DestinationCountryPageLink.graphql" import { DestinationOverviewPageLink } from "../../Fragments/PageLink/DestinationOverviewPageLink.graphql" import { HotelPageLink } from "../../Fragments/PageLink/HotelPageLink.graphql" import { LoyaltyPageLink } from "../../Fragments/PageLink/LoyaltyPageLink.graphql" import { PromoCampaignPageLink } from "../../Fragments/PageLink/PromoCampaignPageLink.graphql" import { StartPageLink } from "../../Fragments/PageLink/StartPageLink.graphql" import { PromoCampaignPageRef } from "../../Fragments/PromoCampaignPage/Ref.graphql" import { StartPageRef } from "../../Fragments/StartPage/Ref.graphql" import { System } from "../../Fragments/System.graphql" export const GetDestinationCountryPage = gql` query GetDestinationCountryPage($locale: String!, $uid: String!) { destination_country_page(uid: $uid, locale: $locale) { title destination_settings { country location { longitude latitude default_zoom } } heading preamble experiences { destination_experiences } images { image } has_sidepeek sidepeek_button_text sidepeek_content { heading content { embedded_itemsConnection { edges { node { __typename ...AccountPageLink ...CampaignOverviewPageLink ...CampaignPageLink ...CollectionPageLink ...ContentPageLink ...DestinationCityPageLink ...DestinationCountryPageLink ...DestinationOverviewPageLink ...HotelPageLink ...LoyaltyPageLink ...StartPageLink ...PromoCampaignPageLink } } } json } } blocks { __typename ...Accordion_DestinationCountryPage ...Content_DestinationCountryPage } seo_filters { ...DestinationFilter } system { ...System created_at updated_at } } trackingProps: destination_country_page(locale: "en", uid: $uid) { url } } ${System} ${DestinationFilter} ${AccountPageLink} ${CampaignOverviewPageLink} ${CampaignPageLink} ${CollectionPageLink} ${ContentPageLink} ${DestinationCityPageLink} ${DestinationCountryPageLink} ${DestinationOverviewPageLink} ${HotelPageLink} ${LoyaltyPageLink} ${StartPageLink} ${PromoCampaignPageLink} ${Accordion_DestinationCountryPage} ${Content_DestinationCountryPage} ` export const GetDestinationCountryPageRefs = gql` query GetDestinationCountryPageRefs($locale: String!, $uid: String!) { destination_country_page(locale: $locale, uid: $uid) { sidepeek_content { content { embedded_itemsConnection { edges { node { __typename ...AccountPageRef ...CampaignOverviewPageRef ...CampaignPageRef ...CollectionPageRef ...ContentPageRef ...DestinationCityPageRef ...DestinationCountryPageRef ...DestinationOverviewPageRef ...HotelPageRef ...LoyaltyPageRef ...StartPageRef ...PromoCampaignPageRef } } } } } blocks { __typename ...Accordion_DestinationCountryPageRefs ...Content_DestinationCountryPageRefs } seo_filters { ...DestinationFilterRef } system { ...System } } } ${System} ${AccountPageRef} ${CampaignOverviewPageRef} ${CampaignPageRef} ${CollectionPageRef} ${ContentPageRef} ${DestinationCityPageRef} ${DestinationCountryPageRef} ${DestinationOverviewPageRef} ${HotelPageRef} ${LoyaltyPageRef} ${StartPageRef} ${PromoCampaignPageRef} ${Accordion_DestinationCountryPageRefs} ${Content_DestinationCountryPageRefs} ${DestinationFilterRef} ` export const GetDaDeEnUrlsDestinationCountryPage = gql` query GetDaDeEnUrlsDestinationCountryPage($uid: String!) { de: destination_country_page(locale: "de", uid: $uid) { url } en: destination_country_page(locale: "en", uid: $uid) { url } da: destination_country_page(locale: "da", uid: $uid) { url } } ` export const GetFiNoSvUrlsDestinationCountryPage = gql` query GetFiNoSvUrlsDestinationCountryPage($uid: String!) { fi: destination_country_page(locale: "fi", uid: $uid) { url } no: destination_country_page(locale: "no", uid: $uid) { url } sv: destination_country_page(locale: "sv", uid: $uid) { url } } `