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AAK+C,YAAuBJ,EAASC,GAASK,GAAAA,CAAQjD,EAAK1F,MAAO,CAAC4I,OAAQ,sBAAsBC,cAExF,OAAlBT,IACFI,EAAY,IAAoC,OAA9BJ,EAAcK,YAAuBJ,EAASC,GAASK,GAAAA,CAAQP,EAAcpI,MAAO,CAAC4I,OAAQ,sBAAsBC,gBAOlI,CAAE/C,MAHiB,OAAX4B,EAAmBa,EAAUC,EAG5BzC,MAFU,OAAX2B,EAAmBa,EAAUC","sources":["webpack://terega-solutions/./src/components/cards/pageCard.js","webpack://terega-solutions/./src/components/hero/hero.js","webpack://terega-solutions/./src/components/layouts/page.js","webpack://terega-solutions/./src/components/pushContent.js","webpack://terega-solutions/./src/components/seo.js","webpack://terega-solutions/./src/templates/page.js","webpack://terega-solutions/./src/utils/pageAlternatesUrls.js"],"sourcesContent":["import React from 'react'\nimport { useSelector } from 'react-redux'\nimport { Link } from 'gatsby'\n\nimport LinkIcon from '../linkIcon'\nimport Image from '../image'\n\nimport trads from '../../intl/trads.json'\n\nimport transformLink from '../../utils/transformLink'\n\nconst PageCard = ({ctaLabel, url, title, mainImage, chapo, isSmall = false, directAccess = false, type = 'reg', mainTag = null }) => {\n const lang = useSelector(state => state.lang)\n\n return (\n
\n \n { mainImage ?\n \n :
\n \"Terega\n
\n }\n
\n
\n { mainTag && mainTag !== 'Default' && mainTag !== 'Institutionnel' &&\n

{mainTag}

\n }\n

{title}

\n

{ chapo }

\n
\n \n
\n \n { directAccess &&\n
\n

{trads[lang].directAccess}

\n\n
    \n { directAccess.map((link, i) => {\n const url = transformLink(link, false, false).url\n let title = (link.fields) ? link.fields.title : link.title\n\n return (\n
  • \n \n
  • \n )\n })}\n
\n
\n }\n
\n )\n}\n\nexport default PageCard","import React from 'react'\nimport { useSelector } from 'react-redux'\nimport { useInView } from 'react-intersection-observer'\n\nimport Breadcrumb from '../breadcrumb'\nimport Wysiwyg from '../wysiwyg'\nimport Image from '../image'\nimport ButtonArrow from '../buttonArrow'\n\nimport trads from '../../intl/trads.json'\n\nimport roundShape from '../../icons/round-shape.svg'\nimport semiroundShape from '../../icons/semiround-shape.svg'\nimport quadShape from '../../icons/quad-shape.svg'\n\nconst Hero = ({data, currentUrl, type = null, subType = null, customType = null, isNewsroom = false, blogHubTitle= false, fromSimulator = false }) => {\n const { ref, inView} = useInView({ threshold: 0.3, triggerOnce: true})\n const lang = useSelector(state => state.lang)\n let chapo = (data.chapo) ? data.chapo : null\n const breadcrumbLabel = (data.breadcrumbCurrentLabel) ? data.breadcrumbCurrentLabel : data.title\n \n let quadColor = 'gradient-blue'\n let roundColor = 'turquoise'\n\n let date = ''\n const dateOptions = { year: 'numeric', month: 'long', day: 'numeric' }\n\n if (type === 'news') {\n date = new Date(data.publicationDate).toLocaleDateString(lang, dateOptions)\n }\n\n let pdf, annexes\n\n if (data.pressRelease) {\n data.pressRelease = (data.pressRelease.fields) ? data.pressRelease.fields : data.pressRelease\n pdf = (data.pressRelease.pdf.fields) ? data.pressRelease.pdf.fields : data.pressRelease.pdf\n \n if (data.pressRelease.annexes) {\n annexes = (data.pressRelease.annexes.fields) ? data.pressRelease.annexes.fields : data.pressRelease.annexes\n }\n }\n\n if(data.document) {\n data.document = (data.document.fields) ? data.document.fields : data.document\n }\n\n if (type === 'contact') {\n quadColor = 'sienne'\n roundColor = 'orange'\n }\n\n if (fromSimulator) {\n roundColor = 'purple'\n quadColor = 'gradient-green'\n }\n\n return (\n
\n \n
\n
\n
\n \n \n \n\n
\n { type === 'news' &&\n

{ lang === 'fr' ? 'Le' : 'The'} { date }

\n }\n

{data.title}

\n
\n \n
\n { chapo &&\n
\n
\n \n
\n
\n }\n\n {data.pressRelease &&\n
\n \n\n { annexes &&\n
\n \n
\n }\n
\n }\n\n { data.document && !data.pressRelease &&\n
\n \n
\n }\n
\n
\n
\n
\n
\n { data.mainImage &&\n \n }\n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nexport default Hero\n","import React from 'react'\n\nimport Hero from '../hero/hero'\nimport SlicesWrapper from '../slices/slicesWrapper'\nimport PushContent from '../pushContent'\n\nconst PageLayout = ({data, currentUrl, furtherContent, blogHubTitle}) => {\n const isBlog = data.customType === 'Blog'\n\n return (\n <>\n \n\n
\n \n
\n\n { ((furtherContent.nodes !== undefined && furtherContent.nodes.length > 0) || data.pushPages !== null) &&\n \n }\n \n )\n}\n\nexport default PageLayout;","import React from 'react'\nimport { useInView } from 'react-intersection-observer'\nimport { useSelector } from 'react-redux'\n\nimport trads from '../intl/trads.json'\n\nimport transformLink from '../utils/transformLink'\nimport PageCard from './cards/pageCard'\nimport NewsCard from './cards/newsCard'\n\nimport semiroundShape from '../icons/semiround-shape.svg'\n\nconst PushContent = ({data, type, autoItems}) => {\n const { ref, inView} = useInView({ threshold: 0.3, triggerOnce: true})\n // redux lang\n const lang = useSelector(state => state.lang)\n\n let pushs = data\n\n if(data === null || data === undefined) {\n pushs = (autoItems.nodes) ? autoItems.nodes : autoItems\n }\n\n return (\n <>\n { pushs.length > 0 && pushs.filter(push => push !== undefined).length > 0 &&\n
\n \n \n \n
\n

\n { trads[lang].readAlso }\n { trads[lang].readAlso2 }\n

\n
\n\n
\n
\n {pushs.map((item, i) => {\n let datas, page, url, title\n let chapo = null\n let ctaLabel = null\n let mainImage = null\n let mainTag = ''\n \n if(data !== null && data !== undefined) {\n datas = (item.fields) ? item.fields : item\n page = (item.fields) ? datas.page.fields : datas.page\n\n let cta = transformLink(datas.page, false, false)\n url = cta.url\n\n if (datas.chapo) {\n chapo = (datas.chapo.chapo) ? datas.chapo.chapo : datas.chapo\n }\n title = page.title\n\n mainTag = page.mainTag ? page.mainTag.title : ''\n\n if (page.mainImage || (page.fields && page.fields.mainImage)) {\n mainImage = (page.fields) ? page.fields.mainImage : page.mainImage\n }\n\n ctaLabel = datas.ctaLabel ? datas.ctaLabel : trads[lang].learnMore\n } else {\n title = (item.fields) ? item.fields.title : item.title\n let cta = transformLink(item, false, false)\n url = cta.url\n \n item = item.field ? item.fields : item\n\n if (item.mainImage || (item.fields && item.fields.mainImage)) {\n mainImage = item.fields ? item.fields.mainImage : item.mainImage\n }\n\n ctaLabel = trads[lang].learnMore\n mainTag = item.mainTag ? item.mainTag.title : ''\n }\n\n return (\n
\n { type === 'news'\n ? \n : \n }\n
\n ) \n })}\n
\n
\n
\n }\n \n )\n}\n\nexport default PushContent\n","/**\n * SEO component that queries for data with\n * Gatsby's useStaticQuery React hook\n *\n * See: https://www.gatsbyjs.org/docs/use-static-query/\n */\n\nimport React from 'react'\nimport Helmet from 'react-helmet'\nimport { useStaticQuery, graphql } from 'gatsby'\nimport { useSelector } from 'react-redux'\n\n\nfunction SEO({ frUrl, enUrl, page, noIndex = false, newsroomPage = 0 }) {\n const lang = useSelector(state => state.lang)\n\n const data = useStaticQuery(\n graphql`\n query {\n site {\n siteMetadata {\n title\n description\n descriptionEN\n baseUrl\n image\n }\n }\n }\n `\n )\n\n const defaults = data.site.siteMetadata\n const defaultsDescription = (lang === 'fr') ? defaults.description : defaults.descriptionEN\n const defaultsUrl = (lang === 'fr') ? defaults.baseUrl : `${defaults.baseUrl}en`\n\n const title = (page.title) ? page.title : defaults.title;\n const description = (page.description) ? page.description : defaultsDescription;\n const url = (page.path) ? `${defaults.baseUrl.slice(0,-1)}${page.path}` : defaultsUrl;\n const image = (page.image) ? page.image : defaults.image;\n\n return (\n \n {title}\n 1 ? `/page/${newsroomPage}` : ''}`} />\n \n {image && }\n\n {noIndex && }\n\n \n\n { enUrl && 1 ? `/page/${newsroomPage}` : ''}`} /> } \n { enUrl && 1 ? `/page/${newsroomPage}` : ''}`} /> }\n \n \n \n \n \n {image && }\n\n \n \n \n \n {image && }\n\n \n \n )\n}\n\nexport default SEO\n","import React from 'react'\nimport { graphql } from 'gatsby'\nimport { documentToPlainTextString } from '@contentful/rich-text-plain-text-renderer'\n\nimport Seo from '../components/seo'\nimport Layout from '../components/layout'\nimport PageLayout from '../components/layouts/page'\n\nimport pageAlternatesUrls from '../utils/pageAlternatesUrls'\nimport GetNewsroomUrls from '../utils/getNewsroomUrls'\n\nfunction Page({data, pageContext}) {\n const mainContent = data.mainContent\n const newsroomUrls = GetNewsroomUrls()\n let urls = null\n\n if(mainContent.customType === 'Blog') {\n urls = pageAlternatesUrls(mainContent, data.alternateContent, 'title', `/${newsroomUrls['Blog']['fr']}/`, `/${newsroomUrls['Blog']['en']}/`, pageContext.locale)\n } else if (mainContent.customType === 'Médiathèque') {\n urls = pageAlternatesUrls(mainContent, data.alternateContent, 'title', `/${newsroomUrls['Médiathèque']['fr']}/`, `/${newsroomUrls['Médiathèque']['en']}/`, pageContext.locale)\n } else {\n urls = pageAlternatesUrls(mainContent, data.alternateContent, 'slug', null, null, pageContext.locale)\n }\n\n return (\n \n \n\n \n \n );\n}\n\nexport const pageQuery = graphql`\n query SinglePage($contentful_id: String!, $locale: String!, $mainTag: String!, $customType: String!) {\n mainContent: contentfulPage(contentful_id: { eq: $contentful_id }, node_locale: { eq: $locale }) {\n customType\n internal {\n type\n }\n seoTitle\n seoDescription {\n seoDescription\n }\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n mainTag {\n title\n }\n profile: profileBis {\n title\n }\n breadcrumb {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n \n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n label\n customLink\n assetLink {\n file {\n url\n }\n }\n }\n breadcrumbCurrentLabel\n title\n slug\n chapo {\n raw\n references {\n __typename\n ... on ContentfulStyledText {\n contentful_id\n text\n type\n }\n ... on ContentfulNewsroomList {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNews {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulEvent {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n contentful_id\n internal {\n type\n }\n }\n ... on ContentfulPage {\n contentful_id\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulAsset {\n contentful_id\n file {\n url\n }\n }\n }\n }\n node_locale\n slices {\n ... on Node {\n ... on ContentfulFullText {\n internal {\n type\n }\n displayTitle\n title\n switchDecoPlacement\n cta {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n label\n customLink\n assetLink {\n file {\n url\n }\n }\n }\n content {\n raw\n references {\n __typename\n ... on ContentfulStyledText {\n contentful_id\n text\n type\n }\n ... on ContentfulTestimony {\n contentful_id\n image {\n altImage\n file {\n url\n }\n }\n themeSolutions\n imageShape\n content {\n content\n }\n author\n job\n theme\n }\n ... on ContentfulVideo {\n contentful_id\n title\n suptitle\n youtubeId\n youtubePlaylistId\n cover {\n file {\n url\n }\n }\n }\n ... on ContentfulFrontImg {\n contentful_id\n file {\n url\n }\n altImage\n legend {\n legend\n }\n }\n ... on ContentfulNewsroomList {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNews {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulEvent {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n contentful_id\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n contentful_id\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulAsset {\n contentful_id\n file {\n url\n }\n }\n }\n }\n node_locale\n }\n ... on ContentfulSliceImage {\n internal {\n type\n }\n node_locale\n titleContent\n link\n image {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulSlicePdf {\n internal {\n type\n }\n node_locale\n iframe\n }\n ... on ContentfulImageTexteSection {\n internal {\n type\n }\n themeSolutions\n imageShape\n node_locale\n title\n content {\n raw\n references {\n __typename\n ... on ContentfulStyledText {\n contentful_id\n text\n type\n }\n ... on ContentfulNewsroomList {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNews {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulEvent {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n contentful_id\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n contentful_id\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n contentful_id\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulAsset {\n contentful_id\n file {\n url\n }\n }\n }\n }\n proportions\n cta {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n customLink\n label\n assetLink {\n file {\n url\n }\n }\n }\n image {\n altImage\n file {\n file {\n url\n }\n }\n }\n reversed\n theme\n }\n ... on ContentfulTabsaccordion {\n internal {\n type\n }\n type\n titleContent\n cta {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n label\n customLink\n assetLink {\n file {\n url\n }\n }\n }\n items {\n title\n subtitle1\n subtitle2\n content {\n raw\n references {\n __typename\n ... on ContentfulStyledText {\n contentful_id\n text\n type\n }\n ... on ContentfulFrontImg {\n contentful_id\n file {\n url\n }\n altImage\n legend {\n legend\n }\n }\n ... on ContentfulNewsroomList {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNews {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulEvent {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n contentful_id\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulAsset {\n contentful_id\n file {\n url\n }\n }\n }\n }\n cta {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n label\n customLink\n assetLink {\n file {\n url\n }\n }\n }\n contactItems {\n title\n icon\n link {\n pageLink {\n ... on Node {\n ... on ContentfulEvent {\n title\n node_locale\n internal {\n type\n }\n } \n ... on ContentfulNews {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNewsroomList {\n title\n slug\n node_locale\n internal {\n type\n }\n }\n }\n }\n customLink\n label\n assetLink {\n file {\n url\n }\n }\n }\n content {\n raw\n }\n }\n }\n }\n ... on ContentfulVideo {\n internal {\n type\n }\n title\n suptitle\n youtubeId\n youtubePlaylistId\n cover {\n file {\n url\n }\n }\n }\n ... on ContentfulTestimony {\n internal {\n type\n }\n themeSolutions\n imageShape\n author\n job\n theme\n content {\n content\n }\n image {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulSliderPartnersClients {\n internal {\n type\n }\n title\n items {\n logo {\n altImage\n file {\n file {\n url\n }\n }\n }\n link\n noFollow\n }\n }\n ... on ContentfulSlider {\n internal {\n type\n }\n title\n type\n chapo {\n chapo\n }\n items {\n ... on Node {\n ... on ContentfulFrontImg {\n altImage\n file {\n file {\n url\n }\n }\n legend:childContentfulFrontImgLegendTextNode {\n legend\n }\n }\n ... on ContentfulShortItem {\n title\n text {\n text\n }\n }\n }\n }\n }\n }\n }\n pushPages {\n chapo {\n chapo\n }\n ctaLabel\n page {\n ... on Node {\n ... on ContentfulOffer {\n internal {\n type\n }\n mainTag {\n title\n }\n solution {\n title\n }\n title\n node_locale\n }\n ... on ContentfulLanding {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n node_locale\n }\n ... on ContentfulSolution {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n node_locale\n }\n ... on ContentfulSimulator{\n internal {\n type\n }\n mainTag {\n title\n }\n title\n node_locale\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulNewsroomList {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n node_locale\n }\n ... on ContentfulEvent {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n node_locale\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulNews {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n publicationDate\n node_locale\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulPage {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n customType\n node_locale\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulContact {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n node_locale\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulSimulator {\n title\n slug\n node_locale\n internal {\n type\n }\n mainTag {\n title\n }\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n }\n ... on ContentfulHub {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n node_locale\n }\n ... on ContentfulNewsroomList {\n internal {\n type\n }\n mainTag {\n title\n }\n title\n slug\n node_locale\n }\n }\n }\n }\n }\n\n alternateContent: contentfulPage(contentful_id: { eq: $contentful_id }, node_locale: { ne: $locale }, title: {ne: null}) {\n title\n slug\n node_locale\n }\n\n blogHub: contentfulNewsroomList(node_locale: { eq: $locale }, title: {ne: null}, type: { eq: \"Blog\"} ) {\n title\n }\n\n furtherContent: allContentfulPage(filter: {distributionChannel: {elemMatch: {title: {eq: \"Terega solutions\"}}}, customType: {eq: $customType}, contentful_id: { ne: $contentful_id }, node_locale: {eq: $locale}, title: {ne: null}, mainTag: {title: {eq: $mainTag}}}, limit: 3, sort: {fields: createdAt, order: DESC}) {\n nodes {\n title\n slug\n internal {\n type\n }\n mainTag {\n title\n }\n mainImage {\n altImage\n file {\n file {\n url\n }\n }\n }\n chapo {\n raw\n references {\n __typename\n ... on ContentfulStyledText {\n contentful_id\n text\n type\n }\n ... on ContentfulNewsroomList {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulNews {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSolution {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulLanding {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulOffer {\n solution {\n title\n }\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulEvent {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulContact {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulSimulator {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHub {\n contentful_id\n title\n slug\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulHomepageSolutions {\n contentful_id\n title\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulPage {\n contentful_id\n title\n slug\n customType\n node_locale\n internal {\n type\n }\n }\n ... on ContentfulAsset {\n contentful_id\n file {\n url\n }\n }\n }\n }\n node_locale\n }\n }\n }\n`;\n\nexport default Page;","import slugify from 'slugify'\n\nconst pageAlternatesUrls = (page, alternatePage, type, frPath, enPath, locale) => {\n let pageURL\n let alternateURL = null\n \n if (type === 'slug') {\n pageURL = `${page.node_locale === 'fr' ? '/' : '/en/'}${page.slug}`\n \n if (alternatePage !== null) {\n alternateURL = `${alternatePage.node_locale === 'fr' ? '/' : '/en/'}${alternatePage.slug}`\n }\n } else {\n pageURL = `${page.node_locale === 'fr' ? frPath : enPath}${slugify(page.title, {remove: /[*+~.,()'\"!?:@,]/g}).toLowerCase()}`\n \n if (alternatePage !== null) {\n alternateURL = `${alternatePage.node_locale === 'fr' ? frPath : enPath}${slugify(alternatePage.title, {remove: /[*+~.,()'\"!?:@,]/g}).toLowerCase()}`\n }\n }\n\n const frUrl = (locale === 'fr') ? pageURL : alternateURL\n const enUrl = (locale === 'en') ? pageURL : alternateURL\n\n return { frUrl, enUrl }\n}\n\nexport default pageAlternatesUrls"],"names":["ctaLabel","url","title","mainImage","chapo","isSmall","directAccess","type","mainTag","lang","useSelector","state","className","Link","to","image","width","height","sizes","classes","src","alt","iconColor","text","trads","map","link","i","transformLink","fields","key","color","small","pdf","annexes","data","currentUrl","subType","customType","isNewsroom","blogHubTitle","fromSimulator","useInView","threshold","triggerOnce","ref","inView","breadcrumbLabel","breadcrumbCurrentLabel","quadColor","roundColor","date","Date","publicationDate","toLocaleDateString","year","month","day","pressRelease","document","links","breadcrumb","current","isAbsolute","hasEllipsis","xlinkHref","semiroundShape","newsroom","newsPressRelease","file","external","newsAnnexes","icon","newsDocument","isTop","quadShape","roundShape","furtherContent","isBlog","slices","undefined","nodes","length","pushPages","autoItems","pushs","filter","push","readAlso","readAlso2","item","datas","page","learnMore","field","news","frUrl","enUrl","noIndex","newsroomPage","defaults","useStaticQuery","site","siteMetadata","defaultsDescription","description","descriptionEN","defaultsUrl","baseUrl","path","slice","rel","href","name","content","hreflang","property","pageContext","mainContent","newsroomUrls","GetNewsroomUrls","urls","pageAlternatesUrls","alternateContent","locale","initLocale","headerType","seoTitle","seoDescription","documentToPlainTextString","JSON","parse","raw","blogHub","alternatePage","frPath","enPath","pageURL","alternateURL","node_locale","slug","slugify","remove","toLowerCase"],"sourceRoot":""}