{"version":3,"sources":["webpack:///./src/types/index.js","webpack:///./src/templates/Page.js"],"names":["page","shape","media","string","isRequired","title","content","id","wordpress_id","number","blocks","arrayOf","attrs","name","oneOfType","data","object","featured_image_url","nodes","department","featured_media","categories","url","entries","category","path","prev","bool","next","query","Page","pageContext","yoast","caseStudies","posts","quotes","useConstant","cleanPropsWithRelations","key","div","variants","fade","initial","animate","exit","image","currentPage"],"mappings":"wFAAA,gBAcaA,GAJcC,gBAAM,CAChCC,MAAOC,SAAOC,aAGKH,gBAAM,CACzBI,MAAOF,SAAOC,WACdE,QAASH,SACTI,GAAIJ,SAAOC,WACXI,aAAcC,SAAOL,WACrBM,OAAQC,kBACPV,gBAAM,CACLW,MAAOX,gBAAM,CACZY,KAAMV,SACNK,aAAcM,oBAAU,CAACX,SAAQM,WACjCM,KAAMC,iBAMUf,gBAAM,CACzBI,MAAOF,SAAOC,WACdE,QAASH,SACTI,GAAIJ,SAAOC,WACXa,mBAAoBhB,gBAAM,CACzBO,aAAcC,SAAOL,aAEtBM,OAAQC,kBACPV,gBAAM,CACLW,MAAOX,gBAAM,CACZY,KAAMV,SACNK,aAAcM,oBAAU,CAACX,SAAQM,WACjCM,KAAMC,gBAMiBf,gBAAM,CAChCiB,MAAOP,kBAAQX,KAGKC,gBAAM,CAC1BiB,MAAOP,kBAAQX,KAGMC,gBAAM,CAC3BiB,MAAOP,kBACNV,gBAAM,CACLK,QAASH,SAAOC,WAChBC,MAAOF,SAAOC,WACdI,aAAcC,SAAOL,gBAKFH,gBAAM,CAC3BiB,MAAOP,kBACNV,gBAAM,CACLI,MAAOF,SAAOC,WACde,WAAYR,kBAAQF,UACpBW,eAAgBJ,SAChBR,aAAcC,SAAOL,WACrBG,GAAIJ,SAAOC,gBAKaH,gBAAM,CAChCiB,MAAOP,kBACNV,gBAAM,CACLY,KAAMV,SAAOC,WACbI,aAAcC,SAAOL,WACrBG,GAAIJ,SAAOC,gBAKMH,gBAAM,CACzBC,MAAOC,SAAOC,WACdiB,WAAYV,kBACXV,gBAAM,CACLI,MAAOF,SAAOC,WACdkB,IAAKnB,SAAOC,cAGdmB,QAASZ,kBACRV,gBAAM,CACLI,MAAOF,SAAOC,WACdoB,SAAUrB,SACVsB,KAAMtB,SAAOC,WACbG,GAAIJ,SAAOC,WACXa,mBAAoBhB,gBAAM,CACzBO,aAAcC,SAAOL,gBAIxBsB,KAAMZ,oBAAU,CAACX,SAAQwB,SACzBC,KAAMd,oBAAU,CAACX,SAAQwB,Y,yNCjDnB,IAAME,EAAK,aAuBHC,UArEf,YAQI,IAAD,IAPFC,YAAe7B,EAOb,EAPaA,MAAOM,EAOpB,EAPoBA,aAOpB,IANFO,KAME,IALDf,KAAQU,EAKP,EALOA,OAAQsB,EAKf,EALeA,MAAOZ,EAKtB,EALsBA,eACDa,EAIrB,EAJDA,YAAef,MACCgB,EAGf,EAHDA,MAAShB,MACQiB,EAEhB,EAFDA,OAAUjB,MAGFH,EAAOqB,aAAY,kBACzBC,YACI3B,EACAR,EACA,CACI,6BAA8B,CAC1Ba,KAAK,GAAD,WAAMkB,GAAN,IAAsBC,IAC1BI,IAAK,gBAET,6BAA8B,CAAEvB,KAAMoB,EAAQG,IAAK,eAI9D,OACC,kBAAC,IAAOC,IAAR,CACCC,SAAWC,IACXC,QAAQ,UAERC,QAAQ,QACRC,KAAK,QAEL,kBAAC,IAAD,iBAAUZ,EAAV,CAAkBa,MAAQzB,KAC1B,kBAAC,IAAD,CAAQL,KAAOA,EAAOb,MAAQA,EAAQ4C,YAActC","file":"component---src-templates-page-js-59bd224e566051384a7f.js","sourcesContent":["import {\n\tshape,\n\tbool,\n\tstring,\n\tnumber,\n\tobject,\n\tarrayOf,\n\toneOfType\n} from 'prop-types'\n\nexport const pageContext = shape({\n\tmedia: string.isRequired\n})\n\nexport const page = shape({\n\ttitle: string.isRequired,\n\tcontent: string,\n\tid: string.isRequired,\n\twordpress_id: number.isRequired,\n\tblocks: arrayOf(\n\t\tshape({\n\t\t\tattrs: shape({\n\t\t\t\tname: string,\n\t\t\t\twordpress_id: oneOfType([string, number]),\n\t\t\t\tdata: object\n\t\t\t})\n\t\t})\n\t)\n})\n\nexport const post = shape({\n\ttitle: string.isRequired,\n\tcontent: string,\n\tid: string.isRequired,\n\tfeatured_image_url: shape({\n\t\twordpress_id: number.isRequired\n\t}),\n\tblocks: arrayOf(\n\t\tshape({\n\t\t\tattrs: shape({\n\t\t\t\tname: string,\n\t\t\t\twordpress_id: oneOfType([string, number]),\n\t\t\t\tdata: object\n\t\t\t})\n\t\t})\n\t)\n})\n\nexport const caseStudies = shape({\n\tnodes: arrayOf(page)\n})\n\nexport const posts = shape({\n\tnodes: arrayOf(page)\n})\n\nexport const quotes = shape({\n\tnodes: arrayOf(\n\t\tshape({\n\t\t\tcontent: string.isRequired,\n\t\t\ttitle: string.isRequired,\n\t\t\twordpress_id: number.isRequired\n\t\t})\n\t)\n})\n\nexport const people = shape({\n\tnodes: arrayOf(\n\t\tshape({\n\t\t\ttitle: string.isRequired,\n\t\t\tdepartment: arrayOf(number),\n\t\t\tfeatured_media: object,\n\t\t\twordpress_id: number.isRequired,\n\t\t\tid: string.isRequired\n\t\t})\n\t)\n})\n\nexport const departments = shape({\n\tnodes: arrayOf(\n\t\tshape({\n\t\t\tname: string.isRequired,\n\t\t\twordpress_id: number.isRequired,\n\t\t\tid: string.isRequired\n\t\t})\n\t)\n})\n\nexport const news = shape({\n\tmedia: string.isRequired,\n\tcategories: arrayOf(\n\t\tshape({\n\t\t\ttitle: string.isRequired,\n\t\t\turl: string.isRequired\n\t\t})\n\t),\n\tentries: arrayOf(\n\t\tshape({\n\t\t\ttitle: string.isRequired,\n\t\t\tcategory: string,\n\t\t\tpath: string.isRequired,\n\t\t\tid: string.isRequired,\n\t\t\tfeatured_image_url: shape({\n\t\t\t\twordpress_id: number.isRequired\n\t\t\t})\n\t\t})\n\t),\n\tprev: oneOfType([string, bool]),\n\tnext: oneOfType([string, bool])\n})\n","/* eslint-disable react/no-danger, react/prop-types */\nimport React from 'react'\nimport { shape } from 'prop-types'\nimport { graphql } from 'gatsby'\nimport { motion } from 'framer-motion'\nimport SEO from '@/components/Seo'\nimport { fade } from '@/utils/transitions'\nimport { cleanProps, cleanPropsWithRelations } from '@/utils'\nimport Blocks from '@/utils/Blocks'\nimport useConstant from '@/hooks/useConstant'\n/* eslint-enable no-unused-vars */\nimport * as T from '@/types'\n\nfunction Page({\n\tpageContext: { media, wordpress_id },\n\tdata: {\n\t\tpage: { blocks, yoast, featured_media },\n\t\tcaseStudies: { nodes: caseStudies },\n\t\tposts: { nodes: posts },\n\t\tquotes: { nodes: quotes }\n\t}\n}) {\n const data = useConstant(() =>\n cleanPropsWithRelations(\n blocks,\n media,\n {\n 'acf/case-study-card-slider': {\n data: [...caseStudies, ...posts],\n key: 'case_studies'\n },\n 'acf/quote-collection-block': { data: quotes, key: 'quotes' }\n }\n\t\t)\n )\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t)\n}\n\nPage.propTypes = {\n\tpageContext: T.pageContext.isRequired,\n\tdata: shape({\n\t\tpage: T.page.isRequired,\n\t\tcaseStudies: T.caseStudies.isRequired,\n\t\tposts: T.posts.isRequired,\n\t\tquotes: T.quotes.isRequired\n\t})\n}\n\nexport const query = graphql`\n\tquery GenericPageQuery($path: String!) {\n\t\tpage: wordpressPage(path: { eq: $path }) {\n\t\t\t...pageQuery\n\t\t}\n\t\tcaseStudies: allWordpressWpCaseStudy(filter: { slug: { ne: \"template\" } }) {\n\t\t\tnodes {\n\t\t\t\t...caseStudyQuery\n\t\t\t}\n\t\t}\n\t\tposts: allWordpressPost(filter: { slug: { ne: \"template\" } }) {\n\t\t\tnodes {\n\t\t\t\t...postThumbQuery\n\t\t\t}\n\t\t}\n\t\tquotes: allWordpressWpQuotes(limit: 100) {\n\t\t\tnodes {\n\t\t\t\t...quoteQuery\n\t\t\t}\n\t\t}\n\t}\n`\n\nexport default Page\n"],"sourceRoot":""}