{"version":3,"sources":["webpack:///./src/components/grid.js","webpack:///./src/templates/projects.js"],"names":["Grid","props","state","more","loadMore","bind","event","this","setState","preventDefault","render","Articles","Today","Date","data","articles","node","withoutlimits","length","article","push","type","title","image","OG_image","slug","author","authors","date","createdAt","TileBackgroundColor","TileBordercolor","TileTextColor","projects","Project_name","Project_image","Header_image","Author","sub_message","Sub_message","MainColour","textColor","podcasts","id","services","service_name","service_image","service_intro","secondColor","events","Event_name","event_image","location","contacts","videos","cover_image","wisita_id","Player_colour","LatestArticles","ArticlesArchieve","Homepage","chunk","_","orderBy","slice","Pathname","pathname","split","remove","n","Slug","encodeURIComponent","includes","filter","shuffle","className","map","document","index","key","onClick","to","Component","withLocation","connect","pods","micrositeID","getArticle","getPodcasts","ProjectsTemplate","layoutContents","React","createRef","layoutWrapper","returnImage","reverse","theme","metaName","strapiProjects","metaDescription","Project_location","metaImage","childImageSharp","fixed","src","ref","style","isSticky","wasSticky","backgroundColor","allStrapiMicrosites","edges","MainColor","sections","Content","textColour","hightlightColor","handleShow","Tag","fluid","itemScope","itemType","itemProp","content","HomeImage","borderLeft","source","Project_content","linkTarget","download","allStrapiSections","query"],"mappings":"0jCAaMA,E,YACJ,WAAYC,GAAQ,IAAD,SACjB,cAAMA,IAAN,MACKC,MAAQ,CACXC,MAAK,GAGA,EAAKC,SAAW,EAAKA,SAASC,KAAd,gBANN,E,4CASnBD,SAAA,SAASE,GACJC,KAAKL,MAAMC,KACZI,KAAKC,SAAS,CAACL,MAAK,IAGxBI,KAAKC,SAAS,CAACL,MAAK,IAGlBG,EAAMG,kB,EAGNC,OAAA,WAIM,IAJI,IAIJ,EAJG,OAEHC,EAAW,GACLC,EAAQ,IAAIC,KAClB,IAAqBN,KAAKN,MAAMa,QAAhC,aAAqC,CAAC,IAA7BC,EAA4B,QAEnC,GAAGA,EAASC,KAAKC,cAAcC,OAAS,EACpC,IAAI,IAAJ,MAAmBH,EAASC,KAAKC,iBAAjC,aAA+C,CAAC,IAAxCE,E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,MAAM,GAAG/F,KAAKyB,gB,GAtG1OyC,aAiHjCiD,EAAK","file":"component---src-templates-projects-js-39dd5ce327c02008d157.js","sourcesContent":["import React, { Component } from 'react'\nimport CardGrid from \"./cardgrid.js\"\nimport StrapiImage from \"./StrapiImage.js\"\nimport BackgroundImage from 'gatsby-background-image'\nimport { connect } from 'react-redux';\nimport { getArticle, getPodcasts } from '../actions';\nimport _ from 'lodash';\nimport withLocation from \"./withLocation\"\nimport { Link } from 'gatsby'\n\n\n\n\nclass Grid extends Component {\n constructor(props) {\n super(props)\n this.state = {\n more:false\n }\n\n this.loadMore = this.loadMore.bind(this); //bind function once\n }\n\n loadMore(event) {\n if(this.state.more){\n this.setState({more:false})\n\n }else{\n this.setState({more:true})\n }\n\n event.preventDefault();\n }\n\n render() {\n\n let Articles = []\n let Today = new Date()\n for (let articles of this.props.data){\n\n if(articles.node.withoutlimits.length > 0){\n for(let article of articles.node.withoutlimits){\n Articles.push({type:\"WL\" ,title:article.title , image:article.OG_image,slug:article.slug,author:article.authors,date:article.createdAt,TileBackgroundColor:articles.node.TileBackgroundColor,TileBordercolor:articles.node.TileBordercolor, TileTextColor:articles.node.TileTextColor})\n }\n }\n if(articles.node.projects.length > 0){\n for(let article of articles.node.projects){\n Articles.push({type:\"Project\" ,title:article.Project_name , image:article.Project_image,slug:article.slug,author:\"\",date:article.createdAt,TileBackgroundColor:articles.node.TileBackgroundColor,TileBordercolor:articles.node.TileBordercolor, TileTextColor:articles.node.TileTextColor})\n }\n }\n if(articles.node.articles.length > 0){\n\n for(let article of articles.node.articles){\n if(article.type === \"article\"){\n Articles.push({type:article.type ,title:article.title , image:article.Header_image,slug:article.slug,author:article.Author,sub_message:article.Sub_message,date:article.createdAt,TileBackgroundColor:articles.node.TileBackgroundColor,TileBordercolor:articles.node.TileBordercolor, TileTextColor:articles.node.TileTextColor})\n }else\n Articles.push({type:article.type ,title:article.title , image:article.Header_image,slug:article.slug,author:article.Author,sub_message:article.Sub_message,date:article.createdAt,TileBackgroundColor:this.props.MainColour,TileBordercolor:this.props.MainColour, TileTextColor:this.props.textColor})\n }\n }\n if(articles.node.podcasts.length > 0){\n for(let article of articles.node.podcasts){\n Articles.push({type:\"Podcast\" ,title:article.title , image:\"\",slug:article.id,author:\"\",sub_message:\"\",date:article.createdAt,TileBackgroundColor:this.props.MainColour,TileBordercolor:this.props.MainColour, TileTextColor:this.props.textColor})\n }\n }\n if(articles.node.services.length > 0){\n for(let article of articles.node.services){\n Articles.push({type:\"Service\" ,title:article.service_name , image:article.service_image,slug:article.slug,author:\"\",sub_message:article.service_intro,date:article.createdAt,TileBackgroundColor:this.props.MainColour,TileBordercolor:this.props.secondColor, TileTextColor:this.props.textColor})\n }\n }\n if(articles.node.events.length > 0){\n for(let article of articles.node.events){\n let EventDate = new Date(article.date)\n if(EventDate >= Today ){\n Articles.push({type:\"Event\" ,title:article.Event_name , image:article.event_image,slug:article.slug,author:article.date,sub_message:article.location,date:article.createdAt,TileBackgroundColor:this.props.MainColour,TileBordercolor:this.props.secondColor, TileTextColor:this.props.textColor})\n }\n }\n }\n if(articles.node.contacts.length > 0){\n for(let article of articles.node.contacts){\n // Articles.push({type:\"Contacts\" ,title:article.name , image:article.image.childImageSharp.fluid,slug:article.slug,author:article.position,sub_message:article.email ,date:article.createdAt,TileBackgroundColor:this.props.data.TileBackgroundColor,TileBordercolor:this.props.data.TileBordercolor, TileTextColor:this.props.TileTextColor})\n }\n }\n if(articles.node.videos.length > 0){\n for(let article of articles.node.videos){\n Articles.push({type:\"Video\" ,title:article.title , image:article.cover_image,slug:article.slug,author:article.wisita_id,sub_message:article.Player_colour,date:article.createdAt,TileBackgroundColor:articles.node.TileBackgroundColor,TileBordercolor:articles.node.TileBordercolor, TileTextColor:articles.node.TileTextColor})\n }\n }\n }\n\n\n\nlet LatestArticles =[]\nlet ArticlesArchieve =[]\n\n if(this.props.Homepage){\n Articles = _.orderBy(Articles, 'date', 'desc',)\n let chunk = 0\n if(Articles.length >=12){\n chunk = 12\n }\n if(Articles.length >=8 && Articles.length<12){\n chunk = 8\n }\n if(Articles.length >=4 && Articles.length<8){\n chunk = 4\n }\n LatestArticles = _.chunk(Articles, chunk)\n ArticlesArchieve = Articles.slice(chunk,Articles.length)\n\n}else if(this.props.type === \"update\") {\n\n let Pathname = this.props.location.pathname.split(\"/\")\n\n _.remove(Articles,function(n) {\n let Slug = encodeURIComponent(n.slug)\n return Pathname.includes(Slug)\n });\n\nif(_.filter(Articles, ['type', 'update']).length>1){\n Articles = _.filter(Articles, ['type', 'update']);\n}\n\n LatestArticles = _.chunk(Articles, 4)\n}else{\n let Pathname = this.props.location.pathname.split(\"/\")\n _.remove(Articles,function(n) {\n let Slug = encodeURIComponent(n.slug)\n return Pathname.includes(Slug)\n });\n\n\n Articles = _.shuffle(Articles);\n LatestArticles = _.chunk(Articles, 4)\n\n}\n\n\n\n\n\nreturn(\n\n
\n
\n
\n {this.props.Homepage ? (\n

Previous articles & updates

\n ):(

Related articles & updates

)}\n\n\n
\n {LatestArticles.length !== 0 ?(\n
\n
\n
    \n
  • \n
      \n\n {LatestArticles[0].map((document, index) => (\n \n ))}\n {ArticlesArchieve.length>0 ? (\n <>\n {!this.state.more ? (\n
      Load More
      \n ):(\n\n ArticlesArchieve.map((document, index) => (\n <>\n \n \n )))}\n\n \n\n\n ):(<>)}\n {this.props.Homepage ? (\n <>\n ):( Home)}\n\n
    \n
  • \n\n
\n\n
\n
\n ):(<>)}\n\n
\n\n
\n\n\n )\n }\n\n\n }\n\n\n function mapStateToProps(state) {\n return {\n articles: state.articles,\n pods:state.pods,\n micrositeID:state.micrositeID\n };\n }\n\n\n export default withLocation(connect(mapStateToProps,{ getArticle, getPodcasts })(Grid));\n","import React, { Component } from 'react'\nimport { Link, graphql } from 'gatsby'\nimport Layout from '../components/layout'\nimport ReactMarkdown from \"react-markdown\"\n\nimport BackgroundImage from 'gatsby-background-image'\nimport Contact from \"../components/contact_article\"\nimport Grid from \"../components/grid\"\nimport Nav from '../components/nav'\nimport { StickyContainer, Sticky } from 'react-sticky';\nimport HomeImage from \"../images/home-01.svg\"\n\n\n\nexport default class ProjectsTemplate extends Component {\n constructor(props) {\n super(props)\n\n this.layoutContents = React.createRef()\n this.layoutWrapper = React.createRef()\n this.returnImage = this.returnImage.bind(this)\n\n }\n\n\n\n returnImage(image){\n\n return ([\nimage,\n`linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0))`\n].reverse()\n)\n\n }\n\n render() {\n\n\n\n return (\n\n \n \n\n
(this.layoutWrapper = n)}>\n\n\n\n
(this.layoutContents = n)}>\n\n\n \n {({ style,isSticky,\n wasSticky, }) => (\n
\n\n
\n
\n\n
\n \n
\n\n\n)\n}\n}\n\n\nexport const query = graphql`\n query ProjectsTemplate($slug: String!,$MicrositeID: String!,$MicrositeIDFull: String!) {\n strapiProjects(slug: {eq:$slug}) {\n Project_content\n Project_location\n Project_name\n services\n Project_image {\n absolutePath\n publicURL\n childImageSharp {\n fixed(width: 500) {\n base64\n tracedSVG\n aspectRatio\n width\n height\n src\n srcSet\n srcWebp\n srcSetWebp\n originalName\n }\n fluid (maxWidth: 6000, quality: 100){\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n slug\n sections {\n color\n highlightcolor\n TileTextColor\n TileBordercolor\n TileBackgroundColor\n Section_name\n }\n }\n allStrapiSections(filter: {id: {}, microsites: {elemMatch: {id: {eq: $MicrositeID }}}}) {\n edges {\n node {\n id\n strapiId\n TileTextColor\n TileBordercolor\n TileBackgroundColor\n hide_from_menu\n Section_name\n color\n section_image {\n publicURL\n extension\n childImageSharp {\n fluid (maxWidth: 6000, quality: 100){\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n logo {\n publicURL\n extension\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n withoutlimits {\n slug\n OG_description\n WL_ID\n authors\n id\n title\n createdAt\n OG_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n }\n projects {\n Project_content\n Project_location\n Project_name\n createdAt\n id\n services\n slug\n Project_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n }\n services {\n createdAt\n id\n service_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n service_intro\n service_name\n slug\n }\n articles {\n createdAt\n Author\n title\n type\n Header_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n slug\n createdAt\n }\n podcasts {\n createdAt\n podcastid\n podcasturl\n id\n title\n }\n events {\n Event_name\n OG_description\n OG_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n createdAt\n date(formatString: \"MMMM D, YYYY\")\n event_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n event_intro\n slug\n location\n time\n }\n videos {\n cover_image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n Player_colour\n createdAt\n id\n slug\n title\n wisita_id\n }\n contacts {\n email\n name\n position\n createdAt\n image {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n }\n\n section_intro\n highlightcolor\n }\n }\n }\n allStrapiMicrosites(filter: {id: {eq: $MicrositeIDFull}}) {\n edges {\n node {\n pardot_form\n site_description\n site_intro\n site_name\n sub_message\n MainColor\n secondTextColour\n textColor\n secondColor\n Linkedin_conversion_id\n Linkedin_pixel_id\n Content{\n hide_from_menu\n Title\n Type\n }\n download {\n absolutePath\n publicURL\n }\n download_targeted {\n absolutePath\n publicURL\n }\n download_preview {\n childImageSharp {\n fluid {\n base64\n tracedSVG\n aspectRatio\n src\n srcSet\n srcWebp\n srcSetWebp\n sizes\n originalImg\n originalName\n presentationWidth\n presentationHeight\n }\n }\n }\n }\n }\n }\n\n\n\n\n }\n `\n"],"sourceRoot":""}