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AGTc,WAAY,CACdC,SAAUlC,EAAYmC,IAAIC,eACtBpC,EAAYmC,IAAIC,gBAChBC,EAAAA,EAAAA,QAAOrC,EAAYsC,OAAOC,QAAQ,gBAAiB,IACvDC,eAAgBxC,EAAYmC,IAAIM,qBAC5BzC,EAAYmC,IAAIM,qBAChB,GACJC,aAAc1D,EACd2D,gBAAgBN,EAAAA,EAAAA,QAAOrC,EAAYsC,OAAOC,QACxC,gBACA,IAEFK,qBAAsB,GACtBC,eAAgB7C,EAAY8C,aAAaC,YAAYC,YAK/DrB,EAAAA,cAACsB,EAAAA,EAAgB,CACGC,UAAWlD,EAAYsC,MACvBa,gBAAgB,eAChBC,QAAS,2BAA2BpD,EAAYO,KAChD8C,QAAS,4BAA4B7B,EAAgB,kBA6BzDG,EAAAA,cAAA,OAAK2B,UAAU,6BACf3B,EAAAA,cAAA,OACQ4B,QAASlD,EAAcmD,UAAWnD,EAAcoD,KAAK,eACrDC,wBAAyB,CACrBC,OAAQ3D,EAAY4D,YA8D/BzD,EAAc0D,OAAS,EACtBlC,EAAAA,cAAA,WAAS2B,UAAU,0DACf3B,EAAAA,cAAA,OAAK2B,UAAU,aACX3B,EAAAA,cAAA,OAAK2B,UAAU,OACX3B,EAAAA,cAAA,OAAK2B,UAAU,aACX3B,EAAAA,cAAA,OAAK2B,UAAU,QACX3B,EAAAA,cAAA,UAAKmC,EAAAA,GAAoC9D,EAAYyB,OAAOC,MAEhEC,EAAAA,cAACoC,EAAAA,EAAqB,CAClBjC,KAAM9B,EAAYyB,OAAOC,GACzBsC,YAAahE,EAAY0B,GACzBvB,cAAeA,QAKlC,MAIM,C","sources":["webpack://jameel-health-prj/./src/templates/partnerDetails.js"],"sourcesContent":["import React, {useEffect, useState} from \"react\";\nimport Layout from '../components/layouts/index';\n// import MainMenu from '../components/Mainmenu';\n// import CustomPost from '../components/customPostItems';\n// import SolutionListing from '../components/Home/solutionlisting';\nimport {graphql} from \"gatsby\";\n// import styled from 'styled-components';\n// import SEO from \"../components/seo\";\nimport Function from \"../lib/functions\";\nimport $ from 'jquery';\n// import {GatsbySeo} from 'gatsby-plugin-next-seo';\nimport {decode} from 'html-entities';\nimport SolutionsListingAbout from '../components/Home/solutionsListingAbout';\nimport SiteTrans from \"../components/LangConfig/siteTrans.json\";\nimport BreadcrumbSchema from \"../components/BreadcrumbSchema\";\n\nconst PartnerDetailsPage = (props) => {\n const [shareUrl,\n setShareUrl] = useState('')\n useEffect(() => handleComponentMounted(), []);\n useEffect(() => handleComponentUpdated());\n useEffect(() => onPreRouteUpdate(), []);\n\n const onPreRouteUpdate = () => {\n Function.LoadingAllSliderScript()\n }\n const handleComponentMounted = () => {\n setTimeout(() => {\n const getUrl = window.location.href\n setShareUrl(getUrl)\n if (window.location.href.indexOf('press-release') !== -1 || window.location.href.indexOf('perspective') !== -1) {\n $('h4.wow').removeClass('wow');\n }\n }, 3000);\n }\n\n const handleComponentUpdated = () => {\n $('h4.wow').removeClass('wow');\n }\n\n // const siteMetadata = props.data.site.siteMetadata\n const currentPage = props.data.wpPartner;\n const allWpSolution = props.data.allWpSolution.edges\n const clickHandler = (e) => {}\n\n const link = currentPage.link // Original link\n // const translatedLink = currentPage.translated.length && currentPage.translated[0].localizedWpmlUrl ? currentPage.translated[0].localizedWpmlUrl : null\n const validTranslated = currentPage.translated.find(item => item.publishStatus.status !== 'private');\n console.log(validTranslated,\"validTranslated\");\n const translatedLink = validTranslated ? validTranslated.localizedWpmlUrl : null;\n const segments = link.split('/'); // Split the link by slashes\n const translatedsegments = translatedLink.split('/'); \n const modifiedLink = segments.filter(segment => segment !== 'home').join('/'); // Remove \"home\" and join the segments\n const translatedmodifiedLink = translatedsegments.filter(segment => segment !== 'home').join('/'); \n\n const contactpagelink = currentPage.locale.id === 'en_US' ? 'en' : currentPage.locale.id === 'ar' ? 'ar' : 'tr'\n return (\n \n ]+)>)/gi, \"\")}\n \n seosection={{\n seotitle: currentPage.seo.opengraphTitle\n ? currentPage.seo.opengraphTitle\n : decode(currentPage.title).replace(/(<([^>]+)>)/gi, \"\"),\n seodescription: currentPage.seo.opengraphDescription\n ? currentPage.seo.opengraphDescription\n : \"\",\n openGraphURL: shareUrl,\n openGraphtitle: decode(currentPage.title).replace(\n /(<([^>]+)>)/gi,\n \"\"\n ),\n openGraphdescription: \"\",\n openGraphImage: currentPage.PartnersData.partnerIcon.sourceUrl,\n }}\n\n >\n\n\n {/* ]+)>)/gi, \"\"),\n\n }}\n /> */}\n\n {/*
\n
\n
\n {currentPage.PartnersData.heroImageGradent === true ?
: null}\n \"hero-transparent\"\n
\n
\n

{SiteTrans.our_partners_label[currentPage.locale.id]}

\n
\n {currentPage.PartnersData.partnerIcon.sourceUrl ?\n \"img\"\n : null}\n
\n
\n
\n
\n
\n
*/}\n
\n \n
\n {/* \n
\n
\n
\n\n\n
\n \n
\n \n
\n \n
*/}\n {/*

{currentPage.PartnersData.partnerMainLeftText !== null ? currentPage.PartnersData.partnerMainLeftText : ''}

*/}\n {/* {console.log(\"currentPage\",currentPage)} */}\n {/*
\n\n
*/}\n \n{/* \n
*/}\n \n {/*

{currentPage.PartnersData.partnerMainLeftText !== null ? currentPage.PartnersData.partnerMainLeftText : ''}

*/}\n {/*
\n \n
\n \n
*/}\n {/*
\n \n \n
\n
*/}\n {/*
\n
\n
*/}\n\n {/*
\n
\n
\n
\n
\n
\n
\n
\n
*/}\n {/***********************Solution Listing Section**********************/}\n {allWpSolution.length > 1 ?\n
\n
\n
\n
\n
\n

{SiteTrans.solutions_section_heading[currentPage.locale.id]}

\n
\n \n
\n
\n
\n
\n :null\n }\n {/***********************End Solution Listing Section**********************/}\n
\n
\n )\n}\n\nexport default PartnerDetailsPage\n\nexport const PartnerDetailsPageQuery = graphql `\n query PartnerDetailsPageQuery($id: String!, $langCode: ID!) {\n wpPartner(id: { eq: $id }) {\n title\n content\n slug\n id \n seo {\n opengraphTitle\n opengraphDescription\n }\n locale {\n id\n locale\n }\n link\n \n translated {\n id\n localizedWpmlUrl\n locale {\n id\n locale\n }\n link\n publishStatus{\n status\n }\n slug\n title\n }\n PartnersData {\n \n partnerThumbnail {\n gatsbyImage(width: 500, placeholder: BLURRED)\n }\n partnerIcon {\n sourceUrl\n }\n }\n } \n site {\n id\n siteMetadata {\n title\n subtitle\n }\n }\n allWpSolution(sort: {menuOrder: ASC} filter: {locale: {id: {eq: $langCode} },publishStatus: {status: {eq: \"publish\"}} }) {\n edges {\n node {\n id\n content\n title\n link\n localizedWpmlUrl\n publishStatus{\n status\n }\n our_solution_custom_fields {\n icon {\n altText\n sourceUrl\n }\n shortDescription\n }\n }\n }\n }\n }\n`\n// heroImageGradent\n// partnerMainLeftText\n// partnerMainRightText"],"names":["props","shareUrl","setShareUrl","useState","useEffect","handleComponentMounted","handleComponentUpdated","onPreRouteUpdate","Function","setTimeout","getUrl","window","location","href","indexOf","$","removeClass","currentPage","data","wpPartner","allWpSolution","edges","clickHandler","e","link","validTranslated","translated","find","item","publishStatus","status","translatedLink","localizedWpmlUrl","segments","split","translatedsegments","modifiedLink","filter","segment","join","translatedmodifiedLink","contactpagelink","locale","id","React","Layout","translations","lang","translateURL","langURL","seosection","seotitle","seo","opengraphTitle","decode","title","replace","seodescription","opengraphDescription","openGraphURL","openGraphtitle","openGraphdescription","openGraphImage","PartnersData","partnerIcon","sourceUrl","BreadcrumbSchema","PageTitle","defaultPageName","pageUrl","langUrl","className","onClick","onKeyDown","role","dangerouslySetInnerHTML","__html","content","length","SiteTrans","SolutionsListingAbout","solution_id"],"sourceRoot":""}