{"version":3,"sources":["webpack:///./src/images/social_default.jpg","webpack:///./src/components/grid.js","webpack:///./src/templates/solutions.js","webpack:///./src/components/seo.js"],"names":["module","exports","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","BackBut","reverse","childImageSharp","fluid","console","log","withPrefix","replace","OG","strapiProjects","publicURL","role","Tag","metaImage","description","overview","class","Project_location","client","source","linkTarget","escapeHtml","undefined","returnPage","section","linkText","Project_content","wistiaID","hashedId","playerColor","playerColour","query","SEO","lang","meta","site","metaDescription","siteMetadata","DefaultImg","htmlAttributes","titleTemplate","name","content","property","concat","defaultProps"],"mappings":"uUAAAA,EAAOC,QAAU,IAA0B,8D,slCCarCC,E,oBACJ,WAAYC,GAAQ,IAAD,SACjB,cAAMA,IAAN,MACKC,MAAQ,CACXC,MAAK,GAGA,EAAKC,SAAW,EAAKA,SAASC,K,yHAAd,KANN,E,kHASnBD,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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,KAAK,MAAvJ,KAAgK9F,KAAKN,MAAMmD,SAASlD,MAAMsH,YAAmC,wC,GAvFzatC,aAqGjC4C,EAAK,c,wGCxGlB,SAASC,EAAT,GAA6D,IAA9ClB,EAA6C,EAA7CA,YAAamB,EAAgC,EAAhCA,KAAMC,EAA0B,EAA1BA,KAAM3G,EAAoB,EAApBA,MAAOsF,EAAa,EAAbA,UACrCsB,EADkD,OAClDA,KAcFC,EAAkBtB,GAAeqB,EAAKE,aAAavB,YACnDtF,EAAQqF,GAAayB,IAE3B,OACE,kBAAC,IAAD,CACEC,eAAgB,CACdN,QAEF1G,MAAOA,EACPiH,cAAkBL,EAAKE,aAAa9G,MAAvB,SACb2G,KAAM,CACJ,CACEO,KAAK,cACLC,QAASN,GAEX,CACEO,SAAS,WACTD,QAAYP,EAAKE,aAAa9G,MAAvB,MAAkCA,GAE3C,CACEoH,SAAS,iBACTD,QAASN,GAEX,CACEO,SAAS,WACTD,QAASlH,GAEX,CACEmH,SAAS,UACTD,QAAQ,WAEV,CACED,KAAK,eACLC,QAAQ,uBAEV,CACED,KAAK,kBACLC,QAASP,EAAKE,aAAa1G,QAE7B,CACE8G,KAAK,gBACLC,QAAaP,EAAKE,aAAa9G,MAAxB,MAAmCA,GAE5C,CACEkH,KAAK,sBACLC,QAASN,IAEXQ,OAAOV,KAKfF,EAAIa,aAAe,CACjBZ,KAAK,KACLC,KAAM,GACNpB,YAAY,IAUCkB","file":"component---src-templates-solutions-js-907362508bebc34c2a88.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/social_default-1b70e8a6c6d5b7152803d9f4368b969b.jpg\";","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, navigate, graphql,withPrefix } 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\"\nimport Video from \"../components/WistiaEmbed.js\"\nimport SEO from \"../components/seo\"\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 this.state={BackBut:\"\"}\n\n }\n\n\n\n\n\n returnImage(image){\nif(image === null){\nreturn ([\n`linear-gradient(94deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6012780112044818) 30%, rgba(0,0,0,0.604079131652661) 70%, rgba(0,0,0,0) 100%)`\n].reverse()\n)\n}else{\nreturn ([\nimage.childImageSharp.fluid,\n`linear-gradient(94deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6012780112044818) 30%, rgba(0,0,0,0.604079131652661) 70%, rgba(0,0,0,0) 100%)`\n].reverse()\n)\n}\n\n};\n\n\n\n render() {\n\n console.log(\"SOLUTIONS\" , this.props.location)\n console.log(\"ROUTER\" , withPrefix(\"/\"), this.props.location.pathname.replace(withPrefix(\"/\"),\"/\"))\n let OG = \"\"\n if(this.props.data.strapiProjects.Project_image !== null){\n OG = this.props.data.strapiProjects.Project_image.publicURL\n }\n\n\n\n // \n\n return (\n\n\n\n\n\n
\n\n\n \n \n
\n
\n
\n
\n

\n {this.props.data.strapiProjects.Project_name}\n

\n

{this.props.data.strapiProjects.Project_location}

\n

{this.props.data.strapiProjects.client}

\n
\n
\n \n {this.props.location.state !== null && this.props.location.state !== undefined ? this.props.location.state.returnPage !== null && this.props.location.state.returnPage !== undefined? - {this.props.location.state.linkText}:<>:<>}\n\n
\n
\n
\n
\n
\n\n
\n
\n \n {this.props.data.strapiProjects.wistiaID !== null ?
\n {this.props.location.state !== null && this.props.location.state !== undefined ? this.props.location.state.returnPage !== null && this.props.location.state.returnPage !== undefined?
- {this.props.location.state.linkText}
:<>:<>}\n
\n\n\n\n
\n\n\n\n)\n}\n}\n\n\nexport const query = graphql`\n query solutionsTemplate($slug: String!,$MicrositeID: String!,$MicrositeIDFull: String!) {\n strapiProjects(slug: {eq:$slug}) {\n Project_content\n Project_location\n wistiaID\n playerColour\n Project_name\n overview\n client\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","/**\n * SEO component that queries for data with\n * Gatsby's useStaticQuery React hook\n *\n * See: https://www.gatsbyjs.org/docs/use-static-query/\n */\n\nimport React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { Helmet } from \"react-helmet\"\nimport DefaultImg from \"../images/social_default.jpg\"\nimport { useStaticQuery, graphql } from \"gatsby\"\n\nfunction SEO({ description, lang, meta, title, metaImage }) {\n const { site } = useStaticQuery(\n graphql`\n query {\n site {\n siteMetadata {\n title\n description\n author\n }\n }\n }\n `\n )\n\n const metaDescription = description || site.siteMetadata.description\n const image = metaImage || DefaultImg\n\n return (\n \n )\n}\n\nSEO.defaultProps = {\n lang: `en`,\n meta: [],\n description: ``,\n}\n\nSEO.propTypes = {\n description: PropTypes.string,\n lang: PropTypes.string,\n meta: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string.isRequired,\n}\n\nexport default SEO\n"],"sourceRoot":""}