{"version":3,"sources":["webpack:///./src/templates/partner/index.js","webpack:///./src/types/index.js"],"names":["query","PartnerIndex","pageContext","media","wordpress_id","data","page","blocks","yoast","featured_media","quotes","nodes","useConstant","cleanPropsWithRelations","key","image","licensing","currentPage","shape","string","isRequired","title","content","id","number","arrayOf","attrs","name","oneOfType","object","featured_image_url","department","categories","url","entries","category","path","prev","bool","next"],"mappings":"4OA0CO,IAAMA,EAAK,aAaHC,UA1Cf,YAMI,IAAD,IALFC,YAAeC,EAKb,EALaA,MAAOC,EAKpB,EALoBA,aAKpB,IAJFC,KAIE,IAHDC,KAAQC,EAGP,EAHOA,OAAQC,EAGf,EAHeA,MAAOC,EAGtB,EAHsBA,eACNC,EAEhB,EAFDA,OAAUC,MAGLN,EAAOO,aAAY,kBACxBC,YAAwBN,EAAQJ,EAAO,CACtC,6BAA8B,CAAEE,KAAMK,EAAQI,IAAK,eAIrD,OACC,oCACC,kBAAC,IAAD,iBAASN,EAAT,CAAgBO,MAAON,KACvB,kBAAC,IAAD,CAAQO,WAAS,EAACX,KAAMA,EAAMF,MAAOA,EAAOc,YAAab,O,kCC7B5D,gBAcaE,GAJcY,gBAAM,CAChCf,MAAOgB,SAAOC,aAGKF,gBAAM,CACzBG,MAAOF,SAAOC,WACdE,QAASH,SACTI,GAAIJ,SAAOC,WACXhB,aAAcoB,SAAOJ,WACrBb,OAAQkB,kBACPP,gBAAM,CACLQ,MAAOR,gBAAM,CACZS,KAAMR,SACNf,aAAcwB,oBAAU,CAACT,SAAQK,WACjCnB,KAAMwB,iBAMUX,gBAAM,CACzBG,MAAOF,SAAOC,WACdE,QAASH,SACTI,GAAIJ,SAAOC,WACXU,mBAAoBZ,gBAAM,CACzBd,aAAcoB,SAAOJ,aAEtBb,OAAQkB,kBACPP,gBAAM,CACLQ,MAAOR,gBAAM,CACZS,KAAMR,SACNf,aAAcwB,oBAAU,CAACT,SAAQK,WACjCnB,KAAMwB,gBAMiBX,gBAAM,CAChCP,MAAOc,kBAAQnB,KAGKY,gBAAM,CAC1BP,MAAOc,kBAAQnB,KAGMY,gBAAM,CAC3BP,MAAOc,kBACNP,gBAAM,CACLI,QAASH,SAAOC,WAChBC,MAAOF,SAAOC,WACdhB,aAAcoB,SAAOJ,gBAKFF,gBAAM,CAC3BP,MAAOc,kBACNP,gBAAM,CACLG,MAAOF,SAAOC,WACdW,WAAYN,kBAAQD,UACpBf,eAAgBoB,SAChBzB,aAAcoB,SAAOJ,WACrBG,GAAIJ,SAAOC,gBAKaF,gBAAM,CAChCP,MAAOc,kBACNP,gBAAM,CACLS,KAAMR,SAAOC,WACbhB,aAAcoB,SAAOJ,WACrBG,GAAIJ,SAAOC,gBAKMF,gBAAM,CACzBf,MAAOgB,SAAOC,WACdY,WAAYP,kBACXP,gBAAM,CACLG,MAAOF,SAAOC,WACda,IAAKd,SAAOC,cAGdc,QAAST,kBACRP,gBAAM,CACLG,MAAOF,SAAOC,WACde,SAAUhB,SACViB,KAAMjB,SAAOC,WACbG,GAAIJ,SAAOC,WACXU,mBAAoBZ,gBAAM,CACzBd,aAAcoB,SAAOJ,gBAIxBiB,KAAMT,oBAAU,CAACT,SAAQmB,SACzBC,KAAMX,oBAAU,CAACT,SAAQmB","file":"component---src-templates-partner-index-js-a08183912158aa7bf449.js","sourcesContent":["/* eslint-disable react/prop-types */\nimport React from 'react'\nimport { shape } from 'prop-types'\nimport { graphql } from 'gatsby'\nimport SEO from '@/components/Seo'\nimport Blocks from '@/utils/Blocks'\nimport { cleanPropsWithRelations } from '@/utils'\nimport useConstant from '@/hooks/useConstant'\n/* eslint-disable no-unused-vars */\nimport { pageQuery, quoteQuery } from '@/queries'\n/* eslint-enable no-unused-vars */\nimport * as T from '@/types'\n\nfunction PartnerIndex({\n\tpageContext: { media, wordpress_id },\n\tdata: {\n\t\tpage: { blocks, yoast, featured_media },\n\t\tquotes: { nodes: quotes }\n\t}\n}) {\n\tconst data = useConstant(() =>\n\t\tcleanPropsWithRelations(blocks, media, {\n\t\t\t'acf/quote-collection-block': { data: quotes, key: 'quotes' }\n\t\t})\n\t)\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\n\t\t>\n\t)\n}\n\nPartnerIndex.propTypes = {\n\tpageContext: T.pageContext.isRequired,\n\tdata: shape({\n\t\tpage: T.page.isRequired,\n\t\tquotes: T.quotes.isRequired\n\t})\n}\n\nexport const query = graphql`\n\tquery PartnerQuery($path: String!) {\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\tpage: wordpressPage(path: { eq: $path }) {\n\t\t\t...pageQuery\n\t\t}\n\t}\n`\n\nexport default PartnerIndex\n","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"],"sourceRoot":""}