{"version":3,"sources":["webpack://lcb-research-content/./src/components/ContentCategories/ItemsList.js","webpack://lcb-research-content/./src/components/ContentCategories/Index.js"],"names":["items","map","item","className","key","id","Link","to","url","data","title","DateDisplay","date_published","props","contentCategoryInfo","allPrismicContentCategoryLandingPage","edges","node","documents","pageContext","pageTitle","content_category","pageDescription","content_description","prismicH","raw","ItemsInCategory","docs","length","ContentGrid","ContentCategoryDescription","field","window","Layout","SEO","description","pathname","location","Row","Col","lg","OtherOptionsMenu","isAllContent"],"mappings":"kRA4BA,EAvBkB,SAAC,GAAa,IAAZA,EAAW,EAAXA,MAEhB,OAAIA,EAEA,gCACCA,EAAMC,KAAI,SAAAC,GAAI,OACX,gCACI,uBAAKC,UAAU,OAAOC,IAAKF,EAAKG,IAC5B,sBAAIF,UAAU,MACV,gBAAC,EAAAG,KAAD,CAAMH,UAAU,WAAWI,GAAKL,EAAKM,KAAMN,EAAKO,KAAKC,QAEzD,uBAAKP,UAAU,sCACX,wBAAMA,UAAU,qBAAoBQ,OAAYT,EAAKO,KAAKG,wBAV5D,M,SC2FtB,EA9DwB,SAACC,GACrB,IAAMC,EAAsBD,EAAMJ,KAAKM,qCAAqCC,MAAM,GAAGC,KAC/EC,EAAYL,EAAMM,YAAYD,UAC9BE,EAAYN,EAAoBL,KAAKY,iBACvCC,EAAkB,GAStB,GANEA,EAFiD,MAAhDR,EAAoBL,KAAKc,oBAERC,KAAgBV,EAAoBL,KAAKc,oBAAoBE,KAG7DL,GAGhBF,EAAW,OAAO,KAEtB,IAAMQ,EAAkB,SAAC,GAAY,IAAXC,EAAU,EAAVA,KACxB,OAAGA,EAAKC,OAAS,GACR,gBAACC,EAAA,EAAD,CAAaX,UAAWS,IAIxB,gBAAC,EAAD,CAAW3B,MAAO2B,KAIvBG,EAA6B,SAAC,GAAyB,IAAvBR,EAAsB,EAAtBA,gBACpC,OAAuB,OAApBA,GAAuD,IAA3BA,EAAgBM,OAAqB,KAGhE,gBAAC,IAAD,CAAiBG,MAAOT,EAAgBG,OAI9C,MAAsB,oBAAXO,OAEP,gBAACC,EAAA,EAAD,KACA,gBAACC,EAAA,EAAD,CAAKxB,MAAOU,EAAWe,YAAab,EAAiBc,SAAUvB,EAAMwB,SAASD,WAC9E,gBAACE,EAAA,EAAD,KACE,gBAACC,EAAA,EAAD,CAAKC,GAAI,EAAGrC,UAAU,aAClB,0BAAKW,EAAoBL,KAAKY,kBAC9B,2BACE,gBAACS,EAAD,CAA4BR,gBAAiBR,EAAoBL,KAAKc,wBAG5E,gBAACgB,EAAA,EAAD,CAAKC,GAAI,EAAGrC,UAAU,sCACpB,gBAACsC,EAAA,EAAD,CAAkBC,cAAc,MAGpC,sBAAIvC,UAAU,SACd,gBAACmC,EAAA,EAAD,KACE,gBAACC,EAAA,EAAD,KACA,gBAACb,EAAD,CAAiBC,KAAMT,OAOpB","file":"component---src-components-content-categories-index-js-0cae0a2a45711252e98a.js","sourcesContent":["import React from 'react'\r\nimport { Link} from 'gatsby'\r\nimport { DateDisplay } from '@utils/DateDisplay'\r\n\r\n\r\nconst ItemsList = ({items}) => {\r\n\r\n if(!items) return null;\r\n return (\r\n <>\r\n {items.map(item => (\r\n <>\r\n
\r\n

\r\n {item.data.title}\r\n

\r\n
\r\n {DateDisplay(item.data.date_published)} \r\n
\r\n
\r\n \r\n \r\n ))\r\n } \r\n \r\n )\r\n}\r\n\r\nexport default ItemsList;\r\n","import React from 'react'\r\nimport { graphql} from 'gatsby'\r\nimport { PrismicRichText} from '@prismicio/react'\r\nimport * as prismicH from '@prismicio/helpers'\r\nimport Layout from '@layout'\r\nimport SEO from '@layout/SEO'\r\nimport Row from 'react-bootstrap/Row'\r\nimport Col from 'react-bootstrap/Col'\r\nimport OtherOptionsMenu from '@components/OtherOptionsMenu'\r\nimport ItemsList from './ItemsList'\r\nimport ContentGrid from '@components/ContentGrid'\r\n\r\nexport const query = graphql `\r\nquery ContentCategoryQuery ($uid: String)\r\n{\r\n allPrismicContentCategoryLandingPage(filter: { uid: { eq: $uid }}){\r\n edges {\r\n node {\r\n _previewable\r\n uid\r\n url\r\n data {\r\n content_category\r\n content_description {\r\n text\r\n html\r\n raw\r\n }\r\n }\r\n \r\n }\r\n }\r\n }\r\n}\r\n`\r\n\r\nconst ContentCategory = (props) => {\r\n const contentCategoryInfo = props.data.allPrismicContentCategoryLandingPage.edges[0].node;\r\n const documents = props.pageContext.documents;\r\n const pageTitle = contentCategoryInfo.data.content_category;\r\n let pageDescription = \"\";\r\n if(contentCategoryInfo.data.content_description != null){\r\n //pageDescription = RichText.asText(contentCategoryInfo.data.content_description.raw)\r\n pageDescription = prismicH.asText(contentCategoryInfo.data.content_description.raw)\r\n }\r\n else {\r\n pageDescription = pageTitle;\r\n }\r\n\r\n if(!documents) return null;\r\n\r\n const ItemsInCategory = ({docs}) => {\r\n if(docs.length > 50){\r\n return \r\n }\r\n else\r\n {\r\n return \r\n }\r\n }\r\n\r\n const ContentCategoryDescription = ({ pageDescription }) => {\r\n if(pageDescription === null || pageDescription.length === 0) return null\r\n return (\r\n\r\n \r\n )\r\n }\r\n\r\n if (typeof window !== \"undefined\"){\r\n return ( \r\n \r\n \r\n \r\n \r\n

{contentCategoryInfo.data.content_category}

\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n )\r\n }\r\n else {\r\n return null;\r\n }\r\n}\r\n\r\nexport default ContentCategory;"],"sourceRoot":""}