{"version":3,"sources":["webpack:///./src/components/oEmbed.js","webpack:///./src/templates/collection-page-template.js"],"names":["OEmbed","props","render","className","data-card-key","data-card-controls","data-card-width","this","image","fluid","href","url","title","description","string","React","Component","TagItem","tag","to","slug","CollectionPageTemplate","collectionPageData","data","contentfulCollection","Links","links","map","link","key","time","moment","createdAt","format","Tags","tags","hideNav","introduction","src","Container","value","oEmbed","documentToReactComponents","json","linksTitle","gerelateerdeCollecties","collectionItems"],"mappings":"4PAkCeA,E,YA3BX,WAAYC,GAAQ,IAAD,SACf,cAAMA,IAAN,MAEKA,MAAQA,EAHE,E,oCAMnBC,OAAA,WACI,OACI,yBAAKC,UAAU,yBACX,gCAAYA,UAAU,eAAeC,gBAAc,mCAAmCC,qBAAoB,EAAGC,kBAAgB,QACrG,OAAnBC,KAAKN,MAAMO,OAAyC,OAAzBD,KAAKN,MAAMO,MAAMC,OACzC,kBAAC,IAAD,CAAKA,MAAOF,KAAKN,MAAMO,MAAMC,QAEjC,4BACI,uBAAGC,KAAMH,KAAKN,MAAMU,IAAKR,UAAU,wBAAwBI,KAAKN,MAAMW,QAEzEL,KAAKN,MAAMY,aAAqD,MAAtCN,KAAKN,MAAMY,YAAYA,aAC9C,yBAAKV,UAAU,4BAA2B,kBAAC,IAAD,CAAiBW,OAAQP,KAAKN,MAAMY,YAAYA,eAG9F,4BAAQV,UAAU,kDAAlB,+D,GArBCY,IAAMC,W,wBCiFrBC,EAAU,SAAC,GAAW,IAAVC,EAAS,EAATA,IACd,OACI,kBAAC,OAAD,CAAMC,GAAE,IAAMD,EAAIE,KAAQjB,UAAU,6CAA6Ce,EAAIA,MAiE9EG,UA3IgB,SAAC,GAAY,IAClCC,EADiC,EAAVC,KACGC,qBAC1BC,EAAQH,EAAmBI,MAAMC,KAAI,SAACC,GAAD,OAAU,kBAAC,IAAD,CAAUC,IAAKD,EAAKhB,MAAOgB,KAAMA,OAChFE,EAAOC,IAAOT,EAAmBU,WAAWC,OAAO,wBACnDC,EAAOZ,E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BAAS1C,UAAU,WACf,kBAACoC,EAAA,EAAD,CAAW9B,OAAK,GACZ,yBAAKN,UAAU,iBACX,wBAAIA,UAAU,2BAAd,4BAEJ,kBAAC,IAAD,CAAiB2C,gBAAiBxB,EAAmBuB","file":"component---src-templates-collection-page-template-js-fd5447824248bc5274df.js","sourcesContent":["import React from 'react'\nimport Img from 'gatsby-image'\n\n//components\nimport RenderMultiLine from '../components/RenderMultiline'\n\nclass OEmbed extends React.Component {\n constructor(props) {\n super(props);\n \n this.props = props; \n }\n \n render(){ \n return (\n
\n
\n {this.props.image!==null && this.props.image.fluid!==null &&\n \n }\n

\n {this.props.title}\n

\n {this.props.description && this.props.description.description != null &&\n
\n\n }\n \n
\n
\n )\n }\n}\n\nexport default OEmbed\n","import React from 'react'\nimport { graphql, Link } from 'gatsby'\nimport { Container } from 'react-bootstrap'\nimport moment from 'moment'\nimport Img from 'gatsby-image'\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\n\n//components\nimport Layout from '../components/layout'\nimport CollectionCards from '../components/collection-cards'\nimport OEmbed from '../components/oEmbed'\nimport SEO from \"../components/seo\"\nimport LinkCard from '../components/link-card'\nimport RenderMultiLine from '../components/RenderMultiline'\n\nconst CollectionPageTemplate = ({data}) => { \n const collectionPageData = data.contentfulCollection\n const Links = collectionPageData.links.map((link)=> ());\n const time = moment(collectionPageData.createdAt).format(\"HH:mm - DD MMMM YYYY\")\n const Tags = collectionPageData.tags ? collectionPageData.tags.map((tag) => ()) : null;\n \n return(\n \n \n
\n \n
\n
\n \n

{collectionPageData.title}

\n
\n {collectionPageData.introduction!==null ? : null}\n
\n
\n
\n
\n
\n {collectionPageData.image.fluid!==null &&\n \n }\n \n
\n {collectionPageData.description!== null &&\n
\n {documentToReactComponents(collectionPageData.description.json)}\n
\n }\n {Tags!== null && \n
\n

Tags

\n \n {Tags}\n \n
\n }\n
\n
\n
\n
\n
\n \n
\n \n
\n

\n {(collectionPageData.linksTitle!==null ? collectionPageData.linksTitle : 'Een greep uit de collectie van de bibliotheek') }\n

\n
\n
    \n {Links}\n
\n
\n
\n {collectionPageData.gerelateerdeCollecties &&\n
\n \n
\n

Gerelateerde collecties

\n
\n \n
\n
\n }\n
\n )\n}\n\nconst TagItem = ({tag}) => { \n return(\n {tag.tag}\n )\n}\n\nexport const query = graphql`\n query($slug: String!) {\n contentfulCollection( slug: { eq: $slug }) {\n title\n slug\n createdAt\n oEmbed\n introduction {\n introduction\n }\n description {\n json\n }\n linksTitle\n image {\n fluid(maxWidth:1024, maxHeight:1024){\n ...GatsbyContentfulFluid\n }\n title\n }\n links {\n title\n description {\n description\n }\n url\n image {\n fluid(maxWidth:400, maxHeight:400){\n ...GatsbyContentfulFluid\n }\n title\n }\n type {\n identifier\n type\n slug\n }\n partner\n tags {\n tag\n slug\n }\n }\n tags {\n tag\n slug\n }\n gerelateerdeCollecties {\n slug,\n title,\n oEmbed,\n image {\n fluid(maxWidth:400, maxHeight:400){\n ...GatsbyContentfulFluid\n }\n title\n }\n }\n }\n }\n`\nexport default CollectionPageTemplate\n"],"sourceRoot":""}