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U,cACnEH,EAAAA,cAAA,KAAGG,UAAU,QAAQe,QAASnB,KAAKmG,cAAe,YAI9DlG,EAAAA,cAACuE,EAAY,KACRZ,EACD3D,EAAAA,cAAA,MAAIkH,SAAS,KACTlH,EAAAA,cAACwE,EAAc,CAACwC,KAAK,SAASE,SAAS,IAAIhG,QAASnB,KAAKqG,iBAAiB,uBAK1FpG,EAAAA,cAACsE,EAAO,KACJtE,EAAAA,cAAC2C,EAAe,CAACW,UAAWvD,KAAK/B,MAAM0I,KAAKmB,sBAAsBjB,MAAOjD,WAAY5D,KAAKR,MAAMuG,yBAO5H,EAAClB,CAAA,CA7Ia,CAASlD,EAAAA,WAgJ3B,EAtLc,WAAH,OACP1B,EAAAA,cAAC8H,EAAAA,YAAW,CACRC,MAAK,YA8BLnI,OAAQ,SAAA8G,GAAI,OACR1G,EAAAA,cAAC4E,EAAY,CAAC8B,KAAMA,GAAO,GAEjC,C,sBGpKN,wX","sources":["webpack://gatsby-starter-default/./src/components/Cards/CardItemNew.js","webpack://gatsby-starter-default/./src/components/shared/VideoModal.js","webpack://gatsby-starter-default/./src/components/ResourceList/ResourceListNew.js","webpack://gatsby-starter-default/./src/pages/teacher-library.js","webpack://gatsby-starter-default/./src/images/icons/checkbox-active.svg","webpack://gatsby-starter-default/./src/images/icons/checkbox-inactive.svg","webpack://gatsby-starter-default/./src/images/icons/icon-filter.svg"],"sourcesContent":["import React, {Component} from 'react';\nimport styled from \"styled-components\";\nimport VideoModal from \"components/shared/VideoModal\"\nimport KalturaModal from \"components/shared/KalturaModal\"\nimport IconDownload from 'images/icons/icon-download.svg'\nimport IconDownloadWhite from 'images/icons/icon-download-white.svg'\nimport IconPlay from 'images/icons/icon-play.svg'\nimport IconPlayWhite from 'images/icons/icon-play-white.svg'\nimport IconArrow from 'images/icons/icon-arrow.svg'\nimport IconArrowWhite from 'images/icons/icon-arrow-white.svg'\nimport {media} from \"utils/Media\"\nimport cardTopBlue from \"images/Resources/card-top-blue.jpg\"\nimport cardTopGreen from \"images/Resources/card-top-green.jpg\"\nimport cardTopOrange from \"images/Resources/card-top-orange.jpg\"\nimport cardTopPurple from \"images/Resources/card-top-purple.jpg\"\nimport cardTopYellow from \"images/Resources/card-top-yellow.jpg\"\n\nconst Card = styled.div`\n width: 200px;\n height: 275px;\n position: relative;\n margin: 1rem 0.5rem 1rem;\n padding: calc(25px + 1rem) 1rem 1rem;\n box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.15);\n transition: transform 200ms ease-in-out;\n display: inline-block;\n \n &:hover {\n transform: scale(1.05);\n }\n \n .card-header {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 25px;\n background: url(${cardTopOrange}) no-repeat center center;\n background-size: 100%;\n }\n \n &.orange {\n .card-header {\n background: url(${cardTopOrange}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.blue {\n .card-header {\n background: url(${cardTopBlue}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.green {\n .card-header {\n background: url(${cardTopGreen}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.purple {\n .card-header {\n background: url(${cardTopPurple}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.yellow {\n .card-header {\n background: url(${cardTopYellow}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n .card-body {\n padding: 0 !important;\n }\n \n .card-footer {\n background: none !important;\n border-top: 0;\n }\n \n h4 {\n font-size: 1.125rem;\n padding-left: 0 !important;\n }\n \n p {\n font-size: 0.875rem;\n }\n \n a {\n text-decoration: underline;\n \n &:hover {\n color: ${props => props.theme.colors.red};\n }\n }\n`\n\nconst DownloadButton = styled.a`\n position: absolute;\n bottom: 0;\n left: 0;\n width: 200px;\n height: 50px;\n font-style: normal;\n font-weight: normal;\n font-size: 1rem;\n line-height: 200%;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n border: none;\n color: ${props => props.theme.colors.white} !important;\n transition: all 150ms ease-in-out;\n cursor: pointer;\n text-decoration: none !important;\n \n &.orange {\n background-color: ${props => props.theme.colors.orange};\n }\n \n &.blue {\n background-color: ${props => props.theme.colors.blue};\n }\n \n &.green {\n background-color: ${props => props.theme.colors.green};\n }\n \n &.purple {\n background-color: ${props => props.theme.colors.purple};\n }\n \n &.yellow {\n background-color: ${props => props.theme.colors.yellow};\n color: ${props => props.theme.colors.black} !important;\n }\n \n img {\n padding-left: 1rem;\n }\n \n .hover {\n display: none;\n }\n \n &:hover {\n color: ${props => props.theme.colors.white} !important;\n background-color: ${props => props.theme.colors.black};\n \n .non-hover {\n display: none;\n }\n \n .hover {\n display: inline-block;\n }\n }\n \n @media ${media.lg} {\n width: 200px;\n }\n \n img {\n margin-left: 10px;\n }\n`\n\nclass CardItemNew extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n modalOpen: false,\n }\n }\n\n toggleModal = (e, src) => {\n e.preventDefault();\n\n this.setState({\n src: src,\n modalOpen: !this.state.modalOpen\n });\n }\n\n toggleKalturaModal = (e, src) => {\n e.preventDefault();\n\n this.setState({\n src: src,\n kalturaModalOpen: !this.state.kalturaModalOpen,\n });\n }\n\n render() {\n let card = this.props.card\n\n return (\n \n
\n
\n
\n

\n

{card.body}

\n

\n
\n {card.selector === 'pdf' &&\n Download PDF\n {this.props.color === 'yellow' ?\n <>\n \"\"\n \"\"\n \n :\n \"\"\n }\n \n }\n {card.selector === 'video' &&\n this.toggleKalturaModal(e, card.link)} aria-label=\"Open video\" className={this.props.color}>Watch videos\n {this.props.color === 'yellow' ?\n <>\n \"\"\n \"\"\n \n :\n \"\"\n }\n \n }\n {card.selector === 'url' &&\n Find out more\n {this.props.color === 'yellow' ?\n <>\n \"\"\n \"\"\n \n :\n \"\"\n }\n \n }\n
\n \n \n
\n );\n }\n}\n\nexport default CardItemNew;","import React, {Component} from 'react';\nimport {Modal, ModalBody} from \"reactstrap\"\nimport styled from \"styled-components\"\nimport ButtonClose from 'components/shared/ButtonClose'\n\nconst VModal = styled(Modal)`\n max-width: 1400px;\n padding: 0;\n border: 0;\n\n .modal-content {\n border: 0;\n position: relative;\n }\n\n .modal-body {\n padding: 0;\n border: 0;\n }\n \n .video-wrapper {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 aspect ratio */\n padding-top: 0; // height of controls\n height: 0;\n \n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n }\n`\n\nclass VideoModal extends Component {\n render() {\n return (\n \n \n Close\n \n \n
\n