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6CAA6C,sBAAwB,mD,kBCA/rBD,EAAOC,QAAU,CAAC,MAAQ,6BAA6B,iBAAmB,wCAAwC,kBAAoB,yCAAyC,6BAA6B,kDAAkD,4BAA4B,iDAAiD,eAAiB,sCAAsC,eAAiB,sCAAsC,yBAAyB,8CAA8C,aAAe,oCAAoC,YAAc,mCAAmC,aAAe,oCAAoC,eAAe,oCAAoC,qBAAuB,4CAA4C,cAAgB,qCAAqC,mBAAqB,0CAA0C,mBAAmB,0C,kBCAp5BD,EAAOC,QAAU,CAAC,MAAQ,2BAA2B,iBAAmB,sCAAsC,kBAAoB,uCAAuC,6BAA6B,gDAAgD,4BAA4B,+CAA+C,eAAiB,oCAAoC,eAAiB,oCAAoC,yBAAyB,4CAA4C,aAAe,kCAAkC,YAAc,iCAAiC,aAAe,kCAAkC,eAAe,kCAAkC,qBAAuB,0CAA0C,cAAgB,mCAAmC,mBAAqB,wCAAwC,mBAAmB","sources":["webpack://_N_E/./components/Video/Video.js","webpack://_N_E/./components/Video/index.js","webpack://_N_E/./components/HeroArticle/HeroArticle.js","webpack://_N_E/./components/HeroArticle/index.js","webpack://_N_E/./components/HeroArticle/HeroArticle.folkhem.module.scss","webpack://_N_E/./components/HeroArticle/HeroArticle.nordr.module.scss","webpack://_N_E/./components/Video/Video.folkhem.module.scss","webpack://_N_E/./components/Video/Video.nordr.module.scss"],"sourcesContent":["import classNames from 'classnames';\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport i18n from '../../i18n';\nimport FormWidgetButton from '../FormWidgetButton';\nimport Embed from '../Embed';\nimport Modal from '../Modal';\nimport { trackEvent } from '../../utils/DataLayerHelpers';\nimport { ThemeContext, themes } from '../../themes/ThemeContext';\nimport stylesNordr from './Video.nordr.module.scss'\nimport stylesFolkhem from './Video.folkhem.module.scss'\n\nconst ReactPlayer = dynamic(() => import('react-player'));\n\nconst getStyles = (theme) => ({\n [themes.NORDR]: stylesNordr,\n [themes.FOLKHEM]: stylesFolkhem,\n }[theme]\n);\n\nclass Video extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.state = {\n isPlaying: false,\n hasPlayed: false,\n mounted: false,\n };\n }\n\n componentDidMount() {\n this.setState({ mounted: true });\n }\n\n handleOnPlay = () => {\n this.setState({\n hasPlayed: true,\n });\n };\n\n handleClick = () => {\n trackEvent('video', 'video', 'play');\n this.setState({ isPlaying: true });\n };\n\n stopPlay = () => {\n this.setState({ isPlaying: false });\n };\n\n render() {\n const {\n title,\n text,\n backgroundWide,\n backgroundSquare,\n embed,\n fbAppId,\n } = this.props;\n\n const theme = this.context;\n const styles = getStyles(theme);\n\n if (!backgroundSquare) {\n return null;\n }\n\n let playButtonModifier = ['Red'];\n if (theme === themes.FOLKHEM) {\n playButtonModifier = ['Gray']\n }\n else if (theme === themes.NORDR) {\n playButtonModifier = ['Transparent'];\n }\n\n return (\n
\n \n \n \n\n
\n\n \n {title && (\n {title}\n )}\n {text &&
{text}
}\n \n
\n
\n\n \n
\n
\n {this.state.mounted && (\n \n )}\n {!this.state.hasPlayed && (\n
\n \n
\n )}\n
\n
\n \n
\n );\n }\n}\nconst imageShape = PropTypes.shape({\n src: PropTypes.string.isRequired,\n width: PropTypes.number.isRequired,\n height: PropTypes.number.isRequired,\n alt: PropTypes.string,\n});\n\nVideo.propTypes = {\n fbAppId: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n backgroundSquare: imageShape.isRequired,\n backgroundWide: imageShape.isRequired,\n embed: PropTypes.shape(Embed.propTypes.embed).isRequired,\n};\n\nVideo.defaultProps = { embed: null };\n\nVideo.contextType = ThemeContext;\n\nexport default Video;\n","import Video from './Video';\n\nexport default Video;\n","import React from 'react';\nimport Video from '../Video';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/sv';\nimport { ThemeContext, themes } from '../../themes/ThemeContext';\nimport stylesNordr from './HeroArticle.nordr.module.scss';\nimport stylesFolkhem from './HeroArticle.folkhem.module.scss';\n\nconst getStyles = (theme) => ({\n [themes.NORDR]: stylesNordr,\n [themes.FOLKHEM]: stylesFolkhem,\n }[theme]\n);\n\nclass HeroArticle extends React.PureComponent {\n render() {\n const {\n image,\n video,\n articleType,\n title,\n author,\n preamble,\n } = this.props;\n\n const theme = this.context;\n const styles = getStyles(theme);\n\n const date = this.props.date\n ? dayjs(this.props.date)\n .locale('sv')\n .format('D MMMM, YYYY')\n : null;\n const classes = classNames(styles[\"HeroArticle\"], {\n [styles[\"HeroArticle--NoImg\"]]: !image.url,\n });\n\n return (\n
\n {video && (\n
\n
\n )}\n\n {image.url && !video && (\n
\n \n
\n )}\n
\n
\n
\n

{title}

\n {articleType === 'news' && (\n
\n {date}\n {date && author && ' - '}\n {author}\n
\n )}\n
\n {preamble}\n
\n
\n
\n
\n
\n );\n }\n}\n\nHeroArticle.propTypes = {\n image: PropTypes.object,\n video: PropTypes.shape(Video.propTypes),\n articleType: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n preamble: PropTypes.string,\n date: PropTypes.string,\n};\n\nHeroArticle.defaultProps = {\n image: {\n url: '',\n },\n};\n\nHeroArticle.contextType = ThemeContext;\n\nexport default HeroArticle;\n","import HeroArticle from './HeroArticle';\n\nexport default HeroArticle;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"HeroArticle\":\"HeroArticle_folkhem_HeroArticle__TqtO1\",\"HeroArticle__Content\":\"HeroArticle_folkhem_HeroArticle__Content__QDIIA\",\"HeroArticle__ContentWrap\":\"HeroArticle_folkhem_HeroArticle__ContentWrap__pRdwo\",\"HeroArticle__Title\":\"HeroArticle_folkhem_HeroArticle__Title__096cj\",\"HeroArticle__Meta\":\"HeroArticle_folkhem_HeroArticle__Meta__P4D3q\",\"HeroArticle__Preamble\":\"HeroArticle_folkhem_HeroArticle__Preamble__h9O3b\",\"HeroArticle__ImageContainer\":\"HeroArticle_folkhem_HeroArticle__ImageContainer__JIQRI\",\"HeroArticle__Image\":\"HeroArticle_folkhem_HeroArticle__Image__Y8CnT\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"HeroArticle__VideoContainer\":\"HeroArticle_nordr_HeroArticle__VideoContainer__9u3rv\",\"HeroArticle__ImageContainer\":\"HeroArticle_nordr_HeroArticle__ImageContainer__d_B4l\",\"HeroArticle__Image\":\"HeroArticle_nordr_HeroArticle__Image__OWmbd\",\"HeroArticle__Content\":\"HeroArticle_nordr_HeroArticle__Content__Mi9cF\",\"HeroArticle--NoImg\":\"HeroArticle_nordr_HeroArticle--NoImg__QpCzD\",\"HeroArticle__ContentWrap\":\"HeroArticle_nordr_HeroArticle__ContentWrap__WyzKj\",\"HeroArticle__Container\":\"HeroArticle_nordr_HeroArticle__Container__3kFiG\",\"HeroArticle__Title\":\"HeroArticle_nordr_HeroArticle__Title__DhfmU\",\"HeroArticle__Meta\":\"HeroArticle_nordr_HeroArticle__Meta__1Q9WB\",\"HeroArticle__Preamble\":\"HeroArticle_nordr_HeroArticle__Preamble__Rx0Q_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Video\":\"Video_folkhem_Video__5yTyW\",\"Video__ClickArea\":\"Video_folkhem_Video__ClickArea___UL8c\",\"Video__Background\":\"Video_folkhem_Video__Background__kBuvC\",\"Video__Background--Desktop\":\"Video_folkhem_Video__Background--Desktop__MD5JI\",\"Video__Background--Mobile\":\"Video_folkhem_Video__Background--Mobile__36hOs\",\"Video__Overlay\":\"Video_folkhem_Video__Overlay__DfN4H\",\"Video__Content\":\"Video_folkhem_Video__Content__tj8KR\",\"Video__Content--Center\":\"Video_folkhem_Video__Content--Center__baurD\",\"Video__Title\":\"Video_folkhem_Video__Title__oEzNy\",\"Video__Text\":\"Video_folkhem_Video__Text__HEpvH\",\"Video__Modal\":\"Video_folkhem_Video__Modal___0_F6\",\"Embed--Video\":\"Video_folkhem_Embed--Video__mCmjb\",\"Video__PlayerWrapper\":\"Video_folkhem_Video__PlayerWrapper__QR9Gg\",\"Video__Player\":\"Video_folkhem_Video__Player__B9Egw\",\"Video__PlayOverlay\":\"Video_folkhem_Video__PlayOverlay__vDhpx\",\"Video__Svg--Play\":\"Video_folkhem_Video__Svg--Play__ytxwM\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Video\":\"Video_nordr_Video__gi2tE\",\"Video__ClickArea\":\"Video_nordr_Video__ClickArea__X5S7r\",\"Video__Background\":\"Video_nordr_Video__Background__4ktOC\",\"Video__Background--Desktop\":\"Video_nordr_Video__Background--Desktop__FErmz\",\"Video__Background--Mobile\":\"Video_nordr_Video__Background--Mobile__lHlc0\",\"Video__Overlay\":\"Video_nordr_Video__Overlay__P0bGt\",\"Video__Content\":\"Video_nordr_Video__Content__xtbPu\",\"Video__Content--Center\":\"Video_nordr_Video__Content--Center__qpnFM\",\"Video__Title\":\"Video_nordr_Video__Title__XPxuo\",\"Video__Text\":\"Video_nordr_Video__Text__fQrQR\",\"Video__Modal\":\"Video_nordr_Video__Modal__VCGhb\",\"Embed--Video\":\"Video_nordr_Embed--Video__PvUTE\",\"Video__PlayerWrapper\":\"Video_nordr_Video__PlayerWrapper__sWLpi\",\"Video__Player\":\"Video_nordr_Video__Player__SX_2T\",\"Video__PlayOverlay\":\"Video_nordr_Video__PlayOverlay__Mfeq5\",\"Video__Svg--Play\":\"Video_nordr_Video__Svg--Play__hnDnE\"};"],"names":["ReactPlayer","dynamic","Video","props","handleOnPlay","setState","hasPlayed","handleClick","trackEvent","isPlaying","stopPlay","state","mounted","this","title","text","backgroundWide","backgroundSquare","embed","fbAppId","theme","context","styles","themes","stylesNordr","stylesFolkhem","getStyles","playButtonModifier","className","onClick","style","backgroundImage","src","classNames","FormWidgetButton","modifiers","i18n","icon","Modal","active","onClose","lazy","playing","controls","url","onPlay","width","height","config","facebook","appId","React","defaultProps","contextType","ThemeContext","HeroArticle","image","video","articleType","author","preamble","date","dayjs","locale","format","classes","renditions","hero","module","exports"],"sourceRoot":""}