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ACjBrB,EAAAA,cAAA,OAAKqB,UAAU,aACbrB,EAAAA,cAAA,OAAKqB,UAAU,mFACbrB,EAAAA,cAAA,MAAIqB,UAAU,kCAAkCzC,EAAAA,IAA+B1E,EAAOwE,OAAO1D,KAC7FgF,EAAAA,cAACyB,EAAAA,GAAI,CAACC,GAAIxC,GACRc,EAAAA,cAAC2D,EAAAA,EAAc,CACbC,QAAQ,EACRC,MAAOjF,EAAAA,IAA+B1E,EAAOwE,OAAO1D,IACpD8I,SAAS,EACTC,YAAY,EACZC,UAAU,OACVC,QAAQ,cACRC,YAAY,OACZC,iBAAkBC,EAAAA,MAIxBpE,EAAAA,cAAA,OAAKqB,UAAU,qBACZtG,EAAmB+G,KAAI,CAACuC,EAAMC,IAE7BtE,EAAAA,cAAA,OAAKqB,UAAU,kDACbrB,EAAAA,cAACyB,EAAAA,GAAI,CAACC,GAAI2C,EAAKzJ,KAAK2E,MAOlBS,EAAAA,cAACmC,EAAAA,EAAW,CAACd,UAAU,yBACrBZ,OAAO2B,EAAAA,EAAAA,GAASiC,EAAKzJ,KAAK8F,cAAgB2D,EAAKzJ,KAAK8F,cAAc9F,KAAO,qFACzE4G,IAAK,mBAETxB,EAAAA,cAAA,OAAKqB,UAAU,8DACZgD,EAAKzJ,KAAK2J,qBAAqBC,MAAM,GACpCxE,EAAAA,cAAA,OAAKqB,UAAU,uCAAuCgD,EAAKzJ,KAAK2J,qBAAqBC,MAAM,GAAGC,MAC5F,KACJzE,EAAAA,cAACyB,EAAAA,GAAI,CAACC,GAAI2C,EAAKzJ,KAAK2E,MAClBS,EAAAA,cAAA,OAAKqB,UAAU,+BACZgD,EAAKzJ,KAAKwF,eAwBzB,MAEG,C","sources":["webpack://gatsby-hybrid-boilerplate/./src/templates/quickReadDetails.js"],"sourcesContent":["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 BreadcrumbSchema from \"../components/BreadcrumbSchema\";\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';\n\nconst Page = (props) => {\n let wpNews;\n let allNews;\n \n if(process.env.GATSBY_PREVIEW_MODE === \"true\"){ \n wpNews = props.data.wpQuickreads;\n allNews = props.data.allWpQuickreads.edges\n }else{\n // allNews = props.data.allWpQuickreads.edges.filter(news => news.node.publishStatus.status !== 'private')\n // if(props.data.wpQuickreads.publishStatus.status !== 'private'){\n // wpNews = props.data.wpQuickreads;\n // }\n wpNews = props.data.wpQuickreads;\n allNews = props.data.allWpQuickreads.edges.filter(news => news.node.publishStatus.status !== 'private')\n }\n // const wpNews = props.data.wpQuickreads;\n // const allNews = props.data.allWpQuickreads.edges.filter(news => news.node.publishStatus.status !== 'private');\n\n\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 useEffect(() => {\n if (window.location.hash.substr(1)) {\n setFragment(window.location.hash.substr(1));\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 (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\n const translateDate = (enmonth,lang) => {\n var trans = transDate(enmonth,lang);\n return trans;\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 dateObject = getFormatDate(wpNews.press_release_acf.publishedDate);\n const displayDate = format(dateObject, 'MMMM d, yyyy');\n var date = displayDate;\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\n const languageCode = wpNews.locale.id == 'en_US' ? 'en' : wpNews.locale.id === 'ar' ? 'ar' : 'zh-hans'\n const viewAllLinkQuickReads = `/${languageCode}/quick-reads`;\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 const contactpagelink = wpNews.locale.id === 'en_US' ? 'en' : wpNews.locale.id === 'ar' ? 'ar' : 'zh-hans'\n return (\n \n\n\n
\n {/* */}\n\n\n\n
\n
\n
\n
\n
\n
\n \n
{SiteTrans.back_to_quick_reads[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 const dateObject = getFormatDate(allNews[previousData].node.press_release_acf.publishedDate);\n const displayDate = format(dateObject, 'MMMM d, yyyy');\n\n\n var date = displayDate;\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 {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 }\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 \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 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 dateObject = getFormatDate(allNews[previousData].node.press_release_acf.publishedDate);\n const displayDate = format(dateObject, 'MMMM d, yyyy');\n\n var date = displayDate;\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\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\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 {/*
*/}\n
\n {/* {wpNews.press_release_acf.footnotes} */}\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 \n
\n {item.node.quickreadscategories.nodes[0] ?\n
{item.node.quickreadscategories.nodes[0].name}
\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 wpQuickreads(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 caption\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 quickreadscategories {\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 allWpQuickreads(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 }\n }\n quickreadscategories {\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":["props","wpNews","allNews","process","GATSBY_PREVIEW_MODE","data","wpQuickreads","allWpQuickreads","edges","filter","news","node","publishStatus","status","limitedRelatedNews","id","slice","wordCount","content","split","length","readingTimeMinutes","Math","ceil","fragment","setFragment","useState","isFootnotesOpen","setIsFootnotesOpen","footNotesDescriptionRef","useRef","useEffect","window","location","hash","substr","setTimeout","scrollTo","top","left","behavior","scrollToElement","offset","document","querySelector","offsetHeight","element","getElementById","offsetPosition","offsetTop","toggleFootnotes","translateDate","enmonth","lang","transDate","headerListenToScroll","addEventListener","removeEventListener","getFormatDate","date","rawpubDate","formattedpubDate","Date","dateObject","press_release_acf","publishedDate","arr1","format","arr2","arr3","month","console","log","locale","mainnewsandinsightsdate","SiteTrans","event","current","style","maxHeight","scrollHeight","viewAllLinkQuickReads","publishedTranslatedLinks","translated","translation","localizedWpmlUrl","link","translatedLink","segments","modifiedLink","translatedmodifiedLink","translatedsegments","segment","join","contactpagelink","React","Layout","isAboveRefPoint","translations","title","seo","opengraphTitle","description","opengraphDescription","image","featuredImage","sourceUrl","translateURL","langURL","currentPage","pageUrl","pageId","BreadcrumbSchema","PageTitle","defaultPageName","langUrl","className","src","backArrowIcon","alt","Link","to","SocialShare","ShareMail","ShareCopy","map","key","previousData","wordsPerMinute","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","nextnewsandinsightsdate","newsNavRightArrow","footnotes","onClick","ref","ActionsButtons","isDark","label","isLarge","isWatchNow","fontColor","bgColor","borderColor","actionButtonIcon","rightArrow","item","i","quickreadscategories","nodes","name"],"sourceRoot":""}