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-keolis-web/./src/components/common/links-group-side/link/other-link.tsx","webpack://portail-tourisme-keolis-web/./src/components/common/links-group-side/link/other-link.module.scss","webpack://portail-tourisme-keolis-web/./src/components/common/links-group-side/links-group-side.tsx","webpack://portail-tourisme-keolis-web/./src/components/common/links-group-side/links-group-side.module.scss","webpack://portail-tourisme-keolis-web/./src/components/common/page-cover/page-cover.tsx","webpack://portail-tourisme-keolis-web/./src/components/common/page-cover/page-cover.module.scss","webpack://portail-tourisme-keolis-web/./src/assets/images/logoforheader.png","webpack://portail-tourisme-keolis-web/./src/templates/devis-car-location/devis-car-location.tsx","webpack://portail-tourisme-keolis-web/./src/templates/devis-car-location/devis-car-location.module.scss"],"sourcesContent":["import React from \"react\";\nimport * as styles from \"./other-link.module.scss\";\nimport {useHover} from \"../../../../hooks/useHover\";\nimport {displayImage} from \"../../../../global/functions/functions\";\n\ntype ReactProps = {\n data: any\n}\n\nconst OtherLink: React.FC = ({data}) => {\n\n const [hoverRef, isHovered] = useHover();\n\n return (\n \n \n
\n {displayImage(isHovered ? data.backgroundIconHover : data.backgroundIcon, styles.bgLogo)}\n
\n
\n {displayImage(isHovered ? data.iconHover : data.icon, styles.icon)}\n
\n {data.title}

\n
\n \n )\n\n}\n\nexport default OtherLink;","// extracted by mini-css-extract-plugin\nexport var linkBox = \"other-link-module--linkBox--L01MJ\";\nexport var linkTitle = \"other-link-module--linkTitle--DYWde\";\nexport var link = \"other-link-module--link--p6HLm\";\nexport var linkBackgroundLogo = \"other-link-module--linkBackgroundLogo--8+YVL\";\nexport var linkIcon = \"other-link-module--linkIcon--38YvF\";\nexport var bgLogo = \"other-link-module--bgLogo--K5+Sf\";\nexport var icon = \"other-link-module--icon--HIFgT\";","import React from \"react\";\nimport * as styles from \"./links-group-side.module.scss\";\nimport OtherLink from \"./link/other-link\";\n\ntype RenderProps = {\n data: any\n}\n\nconst LinksGroupSide:React.FC = ({data}) => {\n\n return (\n
    \n {data && data.map(item => {\n return \n })}\n
\n )\n\n}\n\nexport default LinksGroupSide;","// extracted by mini-css-extract-plugin\nexport var sideColumn = \"links-group-side-module--sideColumn--oqZC8\";","import React from \"react\";\nimport * as styles from \"./page-cover.module.scss\";\nimport keolis from \"../../../assets/images/keolis.png\";\nimport {displayImage} from \"../../../global/functions/functions\";\nimport keolisLogo from '../../../assets/images/logoforheader.png';\n\n\ntype RenderProps = {\n title: any,\n image: any\n}\n\nconst PageCover:React.FC = ({title, image}) => {\n\n return (\n
\n
\n {displayImage(image, styles.coverImage, \"cover\")}\n
\n \n \"\"/\n \n
\n

\n {title}\n

\n
\n {/*
\n \"\"/\n
\n

\n {title}\n

\n
\n
*/}\n
\n )\n\n}\n\nexport default PageCover;","// extracted by mini-css-extract-plugin\nexport var container = \"page-cover-module--container--2490L\";\nexport var imageContainer = \"page-cover-module--imageContainer--zT2wR\";\nexport var coverImage = \"page-cover-module--coverImage--vkyGq\";\nexport var logoContent = \"page-cover-module--logoContent--y15UO\";\nexport var titleContainer = \"page-cover-module--titleContainer--rG32h\";\nexport var backgroundImage = \"page-cover-module--backgroundImage--m7qwR\";\nexport var titleContent = \"page-cover-module--titleContent--eTGJz\";\nexport var title = \"page-cover-module--title--vnpXs\";\nexport var subtitle = \"page-cover-module--subtitle--UVUs5\";\nexport var coverTextContainer = \"page-cover-module--coverTextContainer--sc0QH\";","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAABoCAYAAAA9zwLBAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABP9SURBVHgB7d3rmRRJdsbxt/XMd4EDIll9F7AygGQcgFkHKGSAaGTA0u2AoOUAhRwAZIDIcUCADBCJDFhYC9g4ZORQ03RDXU5ERmT+f88TdMOwbFdVXt48cTsSFuHz589t+HIvtGtHR0e/CAAAAMgthNKboT0O7ePn32sFAABQqJ9CWHkmH6ehMtcLkwqf55Xw5b6Gaml7yV+z/9apYPF1NKHdjF/t93+v5fkQv74N7ZN9Def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GfAd/dqMObRXa689fUWECAADA9OzpMg4DAAAAAAAAALCNvwGoM55MY6Gl0AAAAABJRU5ErkJggg==\"","import React, {useRef, useState, useEffect} from \"react\";\nimport * as styles from \"./devis-car-location.module.scss\";\nimport Layout from \"../../components/layout/layout\";\nimport {graphql} from \"gatsby\";\nimport {DevisLocationCarQuery} from \"../../../graphql-types\";\nimport PageCover from \"../../components/common/page-cover/page-cover\";\nimport LinksGroupSide from \"../../components/common/links-group-side/links-group-side\";\nimport useWindowWidth from \"../../hooks/use-window-width\";\n\ntype ReactProps = {\n data: DevisLocationCarQuery\n}\n\nconst DevisLocationCarPage:React.FC = ({data}) => {\n const isMobile = useWindowWidth() <= 400;\n const isTablet = useWindowWidth() > 400 && useWindowWidth() < 1200\n const [displayLinks, setDisplayLinks] = useState(true);\n\n useEffect(() => {\n const recevoirMessage = (event) => {\n // Vérifie que le message vient bien de ton iframe Flutter\n if (event.data === \"supprimer_fenetres\") {\n setDisplayLinks(false);\n } else if (event.data == 'afficher_fenetres') {\n setDisplayLinks(true);\n }\n };\n \n // Ajoute un écouteur d'événements pour recevoir les messages\n window.addEventListener(\"message\", recevoirMessage);\n \n // Nettoie l'écouteur quand le composant est démonté\n return () => window.removeEventListener(\"message\", recevoirMessage);\n }, []);\n\n // change flutter source from devis location in preprod (qualif)\n const flutterEmbed = (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') ?\n \"https://pksakoccazewstatwebv2.z6.web.core.windows.net/\" :\n \"https://pksakoccazewstatwebv2.z6.web.core.windows.net/\";\n const iframe = useRef(null);\n\n return (\n \n \n
\n
\n {/* {!isMobile && displayLinks && } */}\n
\n \n
\n {isMobile && }\n
\n
\n
\n )\n\n}\n\nexport const fragment = graphql`\n fragment DevisGratuitWebFields on DatoCmsWebDevisGratuit {\n seo {\n description\n title\n }\n cover {\n title\n backgroundImageDevis {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n mobileImage {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n }\n linksGroup {\n id\n title\n titleAttribute\n slug\n mainColor {\n hex\n } \n icon {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n iconHover {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n backgroundIcon {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n backgroundIconHover {\n alt\n title\n format\n url\n gatsbyImageData(layout: FIXED)\n }\n }\n }\n`\n\nexport const pageQuery = graphql`\n query DevisLocationCar($locale: String!) { \n datoCmsFooter(locale: { eq: $locale }) {\n ...FooterFields\n } \n datoCmsWebStickyButton(locale: { eq: $locale }) {\n ...StickyButtonsFields\n }\n datoCmsChatbot(locale: { eq: $locale }) {\n ...ChatbotFields\n }\n datoCmsWebDevisGratuit(locale: { eq: $locale }) {\n ...DevisGratuitWebFields\n }\n }\n`\n\nexport default DevisLocationCarPage;","// extracted by mini-css-extract-plugin\nexport var pageContainer = \"devis-car-location-module--pageContainer--pC4wH\";\nexport var pageContent = \"devis-car-location-module--pageContent--RDm4Y\";\nexport var pageContentResult = \"devis-car-location-module--pageContentResult--rLrbb\";\nexport var content = \"devis-car-location-module--content--7FcQe\";\nexport var iframe = \"devis-car-location-module--iframe--yiRMy\";"],"names":["data","useHover","hoverRef","isHovered","ref","className","style","backgroundColor","mainColor","hex","title","titleAttribute","href","slug","displayImage","backgroundIconHover","backgroundIcon","iconHover","icon","color","map","item","key","id","image","src","alt","isMobile","useWindowWidth","isTablet","useState","displayLinks","setDisplayLinks","useEffect","recevoirMessage","event","window","addEventListener","removeEventListener","iframe","useRef","datoCmsFooter","stickyButtonsData","datoCmsWebStickyButton","chatbotData","datoCmsChatbot","seo","datoCmsWebDevisGratuit","pageTemplate","cover","backgroundImageDevis","mobileImage","scrolling","frameBorder","allowFullScreen","sandbox","linksGroup"],"sourceRoot":""}