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,IAC7BnK,EAAAA,cAAA,OAAKiH,UAAU,kDACbjH,EAAAA,cAACqH,EAAAA,GAAI,CAACC,GAAI4C,EAAK1K,KAAK+F,MAMlBvF,EAAAA,cAAC+H,EAAAA,EAAW,CAACd,UAAU,yBACrBrH,OAAOoI,EAAAA,EAAAA,GAASkC,EAAK1K,KAAKgH,cAAgB0D,EAAK1K,KAAKgH,cAAchH,KAAO,qFACzE4H,IAAK,mBAETpH,EAAAA,cAAA,OAAKiH,UAAU,8DACZiD,EAAK1K,KAAK4K,eAAeC,MAAM,GAC9BrK,EAAAA,cAAA,OAAKiH,UAAU,uCAAuCiD,EAAK1K,KAAK4K,eAAeC,MAAM,GAAGC,KAAOJ,EAAK1K,KAAK4K,eAAeC,MAAM,GAAGC,KAAO,MACtI,KACJtK,EAAAA,cAACqH,EAAAA,GAAI,CAACC,GAAI4C,EAAK1K,KAAK+F,MAClBvF,EAAAA,cAAA,OAAKiH,UAAU,+BACZiD,EAAK1K,KAAK2G,eAwBzB,MAEC,C","sources":["webpack://gatsby-hybrid-boilerplate/./src/components/Global/NewsArticleSchema.js","webpack://gatsby-hybrid-boilerplate/./src/templates/newsDetailPage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Helmet } from 'react-helmet';\n\nconst NewsArticleSchema = ({ headline, mainEntityId, imageUrl, datePublished, dateModified, schemaDescription, langUrl }) => {\n// console.log(imageUrl.node.mediaDetails.sizes,\"imageUrl\");\n// const sizesArray = imageUrl.node.mediaDetails.sizes.map(size => ({\n// name: size.name,\n// width: size.width,\n// height: size.height,\n// sourceUrl: size.sourceUrl\n// }));\n const schemaData = {\n \"@context\": \"https://schema.org\",\n \"@type\": \"NewsArticle\",\n \"mainEntityOfPage\": {\n \"@type\": \"WebPage\",\n \"@id\": mainEntityId\n },\n \"headline\": headline,\n \"description\": schemaDescription, \n \"image\": imageUrl.node.mediaDetails.sizes.map(image => ({\n \"@type\": \"ImageObject\",\n \"url\": image.sourceUrl,\n })),\n \"author\": {\n \"@type\": \"Organization\",\n \"name\": \"\"\n }, \n \"publisher\": {\n \"@type\": \"Organization\",\n \"name\": langUrl,\n \"logo\": {\n \"@type\": \"ImageObject\",\n \"url\": \"https://jameelmotors.com/static/jameelMotorsLogoBlue-c1230052e1ca5d2b85509960d85d4471.svg\"\n }\n },\n \"datePublished\": datePublished\n };\n\n console.log(mainEntityId,\"mainEntityId\");\n return (\n \n \n \n );\n};\n\nNewsArticleSchema.propTypes = {\n headline: PropTypes.string.isRequired,\n mainEntityId: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n datePublished: PropTypes.string.isRequired,\n dateModified: PropTypes.string,\n};\n\nNewsArticleSchema.defaultProps = {\n dateModified: '',\n};\n\nexport default NewsArticleSchema;\n","import React, { useState, useEffect, useRef } from \"react\";\nimport { Link, graphql } from \"gatsby\";\nimport Layout from \"../components/Global/layout\";\n// import SpotlightDetail from \"../components/Global/spotlightDetail\";\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\";\nimport SocialShare from \"../components/Global/socialShare\";\nimport ActionsButtons from \"../components/Global/actionsButtons\";\nimport NewsArticleSchema from \"../components/Global/NewsArticleSchema\";\nimport BreadcrumbSchema from \"../components/BreadcrumbSchema\";\n\n\n// import newsDetailsSpotlightBanner from \"../common/images/NewsInsightsList/newsDetailsSpotlightBanner.png\";\n// import newsListSpotlightClip from \"../common/images/NewsInsightsList/newsListSpotlightClip.png\";\nimport rightArrow from \"../common/images/Homepage/newsAndInsights/rightArrow.svg\";\nimport backArrowIcon from \"../common/images/NewsInsightsList/backArrowIcon.svg\";\nimport newsListSpotlightBanner from \"../common/images/NewsInsightsList/newsListSpotlightBanner.png\";\n// import newsListBrandMatrix from \"../common/images/NewsInsightsList/newsListBrandMatrix.svg\";\n// import searchBoxBrandMatrix from \"../common/images/NewsInsightsList/searchBoxBrandMatrix.svg\";\nimport clockBlack from \"../common/images/NewsInsightsList/clockBlack.svg\";\nimport locationBlack from \"../common/images/NewsInsightsList/locationBlack.svg\";\nimport newsNavRightArrow from \"../common/images/NewsInsightsList/newsNavRightArrow.svg\";\nimport newsNavLeftArrow from \"../common/images/NewsInsightsList/newsNavLeftArrow.svg\";\nimport nextArrowBlack from \"../common/images/NewsInsightsList/nextArrowBlack.svg\";\nimport previousArrowBlack from \"../common/images/NewsInsightsList/previousArrowBlack.svg\";\nimport { transDate } from '../components/services/generic';\nimport SiteTrans from \"../components/LangConfig/siteTrans.json\";\nimport { format } from 'date-fns';\nimport { Helmet } from \"react-helmet-async\";\n\nconst Page = (props) => {\n let wpNews;\n let allNews;\n if (process.env.GATSBY_PREVIEW_MODE === \"true\") {\n wpNews = props.data.wpNews;\n allNews = props.data.allWpNews.edges\n } else {\n // allNews = props.data.allWpNews.edges.filter(news => news.node.publishStatus.status !== 'private')\n // if (props.data.wpNews.publishStatus.status !== 'private') {\n // wpNews = props.data.wpNews;\n // }\n\n wpNews = props.data.wpNews;\n allNews = props.data.allWpNews.edges.filter(news => news.node.publishStatus.status !== 'private')\n\n }\n // const wpNews = props.data.wpNews;\n // const allNews = props.data.allWpNews.edges.filter(news => news.node.publishStatus.status !== 'private');\n const limitedRelatedNews = allNews.filter(news => news.node.id !== wpNews.id).slice(0, 2);\n let content = wpNews.content ? wpNews.content : \"\";\n const wordsPerMinute = 200;\n const wordCount = content.split(/\\s+/).length;\n const readingTimeMinutes = Math.ceil(wordCount / wordsPerMinute);\n\n const [fragment, setFragment] = useState(\"\");\n const [isFootnotesOpen, setIsFootnotesOpen] = useState(false)\n const footNotesDescriptionRef = useRef(null);\n\n\n\n \n useEffect(() => {\n setTimeout(() => {\n window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"smooth\",\n });\n }, 30)\n }, [])\n useEffect(() => {\n if (window.location.hash.substr(1)) {\n setFragment(window.location.hash.substr(1));\n }\n });\n\n \n const translateDate = (enmonth,lang) => {\n var trans = transDate(enmonth,lang);\n return trans;\n} \n useEffect(() => {\n if (fragment !== '') {\n scrollToElement(fragment);\n }\n }, [fragment]);\n\n const scrollToElement = (id) => {\n const offset = document.querySelector(\".header\").offsetHeight;\n const element = document.getElementById(id);\n\n if (element) {\n const offsetPosition = element.offsetTop - offset;\n toggleFootnotes(false)\n window.scrollTo({\n top: offsetPosition,\n behavior: \"smooth\",\n });\n }\n };\n // const clickHandler = (e) => { };\n\n // const [isAboveRefPoint, setIsAboveRefPoint] = useState(true);\n // const headerListenToScroll = () => {\n // const newsInsightsSectionPosition = document.getElementById(\n // \"spotlight-detail-title-ref\"\n // )?.offsetTop;\n // const scrollPosition = window.scrollY;\n\n // if (scrollPosition < newsInsightsSectionPosition) {\n // setIsAboveRefPoint(true);\n // } else {\n // setIsAboveRefPoint(false);\n // }\n // };\n\n // useEffect(() => {\n // window.addEventListener(\"scroll\", headerListenToScroll);\n // return () => {\n // window.removeEventListener(\"scroll\", headerListenToScroll);\n // };\n // }, []);\n\n const getFormatDate = (date) => {\n const rawpubDate = date;\n const formattedpubDate = `${rawpubDate.slice(0, 4)}-${rawpubDate.slice(4, 6)}-${rawpubDate.slice(6, 8)}`;\n const datepubObject = new Date(formattedpubDate);\n return datepubObject;\n }\n\n const mainDateObject = getFormatDate(wpNews.press_release_acf.publishedDate);\n const mainDisplayDate = format(mainDateObject, 'MMMM d, yyyy');\n const schemaDate = format(mainDateObject, 'yyyy-MM-d');\n var date = mainDisplayDate;\n var arr1 = date.split(' ');\n var arr2 = arr1[1].split(',');\n var arr3 = arr1[2];\n var month = arr1[0];\n\n console.log(arr2,\"arr2\");\n console.log(arr3,\"arr3\");\n console.log(arr1[0],\"arr1\");\n \n // var mainnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id] +arr3;\n\n if(wpNews.locale.id==\"ar\"){\n var mainnewsandinsightsdate = arr2[0]+' '+translateDate(month,wpNews.locale.id)+SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }else{\n var mainnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }\n\n const toggleFootnotes = (event) => {\n setIsFootnotesOpen(!event);\n event && footNotesDescriptionRef ? footNotesDescriptionRef.current.style.maxHeight = null : footNotesDescriptionRef.current.style.maxHeight = `${footNotesDescriptionRef.current.scrollHeight}px`;\n }\n const languageCode = wpNews.locale.id == 'en_US' ? 'en' : wpNews.locale.id === 'ar' ? 'ar' : 'zh-hans'\n const viewAllLinkNews = `/${languageCode}/news`;\n\n const publishedTranslatedLinks = wpNews.translated.filter(translation =>\n translation.locale.id === 'en_US' &&\n translation.localizedWpmlUrl && \n translation.publishStatus.status !== 'private'\n );\n\n const link = wpNews.link // Original link\n const translatedLink = publishedTranslatedLinks.length && publishedTranslatedLinks[0].localizedWpmlUrl ? publishedTranslatedLinks[0].localizedWpmlUrl : wpNews.localizedWpmlUrl\n const segments = link.split('/'); // Split the link by slashes\n\n let modifiedLink;\n let translatedmodifiedLink;\n let translatedsegments;\n if(translatedLink == null){\n modifiedLink = segments.filter(segment => segment !== 'home').join('/');\n }else{\n translatedsegments = translatedLink.split('/'); \n modifiedLink = segments.filter(segment => segment !== 'home').join('/'); // Remove \"home\" and join the segments\n translatedmodifiedLink = translatedsegments.filter(segment => segment !== 'home').join('/');\n }\n \n const contactpagelink = wpNews.locale.id === 'en_US' ? 'en' : wpNews.locale.id === 'ar' ? 'ar' : 'zh-hans'\n\n console.log(wpNews,\"translatedLinktranslatedLinktranslatedLink\");\n return (\n \n \n\n \n \n
\n {/* */}\n\n
\n
\n
\n
\n
\n
\n \n
{SiteTrans.back_to_news_txt[wpNews.locale.id]}
\n
\n
\n \n
\n
\n
\n
\n
\n
\n {allNews.map((data, key) => {\n\n if (data.node.id === wpNews.id) {\n const previousData = key - 1;\n\n if (previousData >= 0) {\n\n let content = allNews[previousData].node.content;\n const wordsPerMinute = 200;\n const wordCount = content.split(/\\s+/).length;\n const readingTimeMinutes = Math.ceil(\n wordCount / wordsPerMinute\n );\n\n const prevDateObject = getFormatDate(allNews[previousData].node.press_release_acf.publishedDate);\n const prevDisplayDate = format(prevDateObject, 'MMMM d, yyyy');\n\n var date = prevDisplayDate;\n var arr1 = date.split(' ');\n var arr2 = arr1[1].split(',');\n var arr3 = arr1[2];\n var month = arr1[0];\n\n console.log(arr2,\"arr2\");\n console.log(arr3,\"arr3\");\n console.log(arr1[0],\"arr1\");\n \n // var prevnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id] +arr3;\n\n if(wpNews.locale.id==\"ar\"){\n var prevnewsandinsightsdate = arr2[0]+' '+translateDate(month,wpNews.locale.id)+SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }else{\n var prevnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }\n\n return (\n \n
\n
\n {/* */}\n\n \n\n
\n
\n \n
\n {SiteTrans.read_txt[wpNews.locale.id]}\n
\n {SiteTrans.previous_txt[wpNews.locale.id]}\n
\n
\n
\n\n
\n {\n allNews[previousData].node.press_release_acf\n .shortTitle\n }\n
\n\n
\n \n \n {\n allNews[previousData].node.press_release_acf\n .location\n }\n \n
\n \n {\n prevnewsandinsightsdate\n }\n \n
\n \n \n {readingTimeMinutes} {SiteTrans.minute_read_txt[wpNews.locale.id]}\n \n
\n
\n \n );\n } else {\n\n }\n }\n })}\n
\n {/* \n */}\n
\n
\n

\n\n
\n \n \n {wpNews.press_release_acf.location}\n \n
\n \n {mainnewsandinsightsdate}\n \n
\n \n \n {readingTimeMinutes} {SiteTrans.minute_read_txt[wpNews.locale.id]}\n \n
\n \"Jameel\n

\n
\n\n
\n \n \n
\n {allNews.map((data, key) => {\n if (data.node.id === wpNews.id) {\n const previousData = key - 1;\n const nextData = key + 1;\n const totalItems = allNews.length;\n\n \n return (\n
\n {previousData >= 0 && \n \n
{SiteTrans.previous_txt[wpNews.locale.id]}
\n \n }\n {nextData <= totalItems - 1 && \n \n
{SiteTrans.next_txt[wpNews.locale.id]}
\n \n }\n
\n );\n \n }\n })}\n {/*
\n
\n \n
PREVIOUS
\n \n
\n
\n \n
NEXT
\n \n
\n
*/}\n {/*
*/}\n
\n\n {allNews.map((data, key) => {\n\n if (data.node.id === wpNews.id) {\n const previousData = key + 1;\n\n const totalItems = allNews.length;\n\n if (previousData <= totalItems - 1) {\n\n let content = allNews[previousData].node.content;\n const wordsPerMinute = 200;\n const wordCount = content.split(/\\s+/).length;\n const readingTimeMinutes = Math.ceil(\n wordCount / wordsPerMinute\n );\n const nextDateObject = getFormatDate(allNews[previousData].node.press_release_acf.publishedDate);\n const nextDisplayDate = format(nextDateObject, 'MMMM d, yyyy');\n\n var date = nextDisplayDate;\n var arr1 = date.split(' ');\n var arr2 = arr1[1].split(',');\n var arr3 = arr1[2];\n var month = arr1[0];\n\n console.log(arr2,\"arr2\");\n console.log(arr3,\"arr3\");\n console.log(arr1[0],\"arr1\");\n \n // var nextnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id] +arr3;\n if(wpNews.locale.id==\"ar\"){\n var nextnewsandinsightsdate = arr2[0]+' '+translateDate(month,wpNews.locale.id)+SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }else{\n var nextnewsandinsightsdate = translateDate(month,wpNews.locale.id)+' '+arr2[0]+ SiteTrans.comma_article_txt[wpNews.locale.id]+arr3;\n }\n return (\n \n
\n
\n {/* */}\n \n
\n
\n \n
\n {SiteTrans.read_txt[wpNews.locale.id]}\n
\n {SiteTrans.next_txt[wpNews.locale.id]}\n
\n
\n
\n
\n {\n allNews[previousData].node.press_release_acf\n .shortTitle\n }\n
\n\n
\n \n \n {\n allNews[previousData].node.press_release_acf\n .location\n }\n \n
\n \n {\n nextnewsandinsightsdate\n }\n \n
\n \n \n {readingTimeMinutes} {SiteTrans.minute_read_txt[wpNews.locale.id]}\n \n
\n
\n \n );\n } else {\n\n }\n }\n })}\n
\n
\n {wpNews.press_release_acf.footnotes ?\n
\n
\n
toggleFootnotes(isFootnotesOpen)}>{SiteTrans.footnote_lable[wpNews.locale.id]}
\n
\n {/* {wpNews.press_release_acf.footnotes} */}\n
\n
\n
\n
\n : null}\n\n {limitedRelatedNews.length ?\n
\n
\n
\n

{SiteTrans.related_articles_txt[wpNews.locale.id]}

\n \n \n \n
\n
\n {limitedRelatedNews.map((item, i) => (\n
\n \n {/* */}\n \n \n
\n {item.node.newscategories.nodes[0] ?\n
{item.node.newscategories.nodes[0].name ? item.node.newscategories.nodes[0].name : null}
\n : null}\n \n
\n {item.node.title}\n
\n \n
\n
\n ))}\n\n {/*
\n \n
\n
SERIES
\n
\n Abdul Latif Jameel Motors And Saudi Automobile And Motorcycle\n Federation Launch Gazoo Racing School\n
\n
\n
*/}\n
\n
\n
\n : null}\n
\n \n );\n};\n\nexport default Page;\nexport const painPage = graphql`\nquery painPage($id: String!, $lang: ID!) {\n wpNews(id: {eq: $id}) {\n content\n link\n id\n title\n slug\n localizedWpmlUrl\n publishStatus {\n status\n }\n featuredImage {\n node {\n sourceUrl\n gatsbyImage(width: 1320, placeholder: BLURRED)\n altText\n description\n caption\n mediaDetails {\n sizes {\n width\n height\n sourceUrl\n name\n }\n }\n }\n }\n locale {\n id\n locale\n }\n seo {\n opengraphTitle\n opengraphDescription\n }\n press_release_acf {\n footnotes\n publishedDate\n location\n featured\n shortTitle\n summary\n }\n newscategories {\n nodes {\n id\n name\n }\n }\n translated {\n id\n uri\n localizedWpmlUrl\n locale {\n id\n locale\n }\n publishStatus {\n status\n }\n slug\n title\n link\n }\n }\n allWpNews(filter: {locale: {id: {eq: $lang}}}, sort: {date: DESC}) {\n edges {\n node {\n id\n title\n link\n content\n publishStatus {\n status\n }\n featuredImage {\n node {\n sourceUrl\n gatsbyImage(width: 1320, placeholder: BLURRED)\n altText\n description\n caption\n }\n }\n newscategories {\n nodes {\n id\n name\n }\n }\n press_release_acf {\n publishedDate\n location\n featured\n shortTitle\n summary\n }\n }\n }\n }\n}\n`;\n"],"names":["NewsArticleSchema","_ref","headline","mainEntityId","imageUrl","datePublished","dateModified","schemaDescription","langUrl","schemaData","node","mediaDetails","sizes","map","image","sourceUrl","console","log","React","Helmet","type","JSON","stringify","defaultProps","props","wpNews","allNews","process","GATSBY_PREVIEW_MODE","data","allWpNews","edges","filter","news","publishStatus","status","limitedRelatedNews","id","slice","wordCount","content","split","length","readingTimeMinutes","Math","ceil","fragment","setFragment","useState","isFootnotesOpen","setIsFootnotesOpen","footNotesDescriptionRef","useRef","useEffect","setTimeout","window","scrollTo","top","left","behavior","location","hash","substr","translateDate","enmonth","lang","transDate","scrollToElement","offset","document","querySelector","offsetHeight","element","getElementById","offsetPosition","offsetTop","toggleFootnotes","getFormatDate","date","rawpubDate","formattedpubDate","Date","mainDateObject","press_release_acf","publishedDate","mainDisplayDate","format","schemaDate","arr1","arr2","arr3","month","locale","mainnewsandinsightsdate","SiteTrans","event","current","style","maxHeight","scrollHeight","viewAllLinkNews","publishedTranslatedLinks","translated","translation","localizedWpmlUrl","link","translatedLink","segments","modifiedLink","translatedmodifiedLink","translatedsegments","segment","join","contactpagelink","Layout","isAboveRefPoint","translations","title","seo","opengraphTitle","description","opengraphDescription","featuredImage","translateURL","langURL","currentPage","pageUrl","pageId","BreadcrumbSchema","PageTitle","defaultPageName","className","src","backArrowIcon","alt","Link","to","SocialShare","ShareMail","ShareCopy","key","previousData","wordsPerMinute","prevDateObject","prevnewsandinsightsdate","GatsbyImage","getImage","newsNavLeftArrow","shortTitle","locationBlack","clockBlack","dangerouslySetInnerHTML","__html","caption","_allNews$previousData","_allNews$previousData2","_allNews$previousData3","_allNews$nextData","_allNews$nextData$nod","_allNews$nextData2","nextData","totalItems","previousArrowBlack","nextArrowBlack","nextDateObject","nextnewsandinsightsdate","newsNavRightArrow","footnotes","onClick","ref","ActionsButtons","isDark","label","isLarge","isWatchNow","fontColor","bgColor","borderColor","actionButtonIcon","rightArrow","item","i","newscategories","nodes","name"],"sourceRoot":""}