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AlBA,MAAOO,EAAW,EAAXA,KACxCQ,EAAShB,EAAUC,GACnB6B,EAAYtB,EAAOQ,EAAO,iBAAD,OAAkBR,IAAUQ,EAAO,wBAElE,OACI,iBAAKO,UAAWP,EAAM,iBAAtB,UACKN,IAAS,gBAAIa,UAAWP,EAAM,eAArB,cAA2CN,KACpDE,IAAO,gBAAKW,UAAWP,EAAM,aAAtB,SAAyCJ,IAChDD,IAAQ,uBAAIA,IACZE,GAAQA,EAAKkB,OACV,SAACC,EAAA,EAAD,CACIC,QAAQ,IACRF,KAAMlB,EAAKkB,KACXR,UAAS,cAASO,EAAT,YAAsBd,EAAM,cAHzC,SAKKH,EAAKF,KAAOE,EAAKF,KAAOuB,EAAAA,EAAAA,EAAO,WAAY,UAsBhE7B,EAAQ8B,aAAe,GACvB9B,EAAQ+B,YAAcC,EAAAA,EAEtB,ICrGA,EDqGA,G,kBEtGAC,EAAOC,QAAU,CAAC,QAAU,iCAAiC,iBAAmB,0CAA0C,eAAiB,wCAAwC,aAAe,sCAAsC,aAAe,wC,kBCAvPD,EAAOC,QAAU,CAAC,QAAU,+BAA+B,mBAAmB,wCAAwC,iBAAmB,wCAAwC,wBAA0B,+CAA+C,eAAiB,sCAAsC,iBAAmB,wCAAwC,eAAiB,sCAAsC,aAAe,oCAAoC,aAAe,oCAAoC,mBAAmB,wCAAwC,uBAAuB","sources":["webpack://_N_E/./components/CardCta/CardCta.js","webpack://_N_E/./components/CardCta/index.js","webpack://_N_E/./components/CardCta/CardCta.folkhem.module.scss","webpack://_N_E/./components/CardCta/CardCta.nordr.module.scss"],"sourcesContent":["import React, { PureComponent, useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport i18n from '../../i18n';\nimport Btn from '../Btn';\nimport { ThemeContext, themes } from '../../themes/ThemeContext';\nimport stylesNordr from './CardCta.nordr.module.scss';\nimport stylesFolkhem from './CardCta.folkhem.module.scss';\n\nconst getStyles = (theme) => ({\n [themes.NORDR]: stylesNordr,\n [themes.FOLKHEM]: stylesFolkhem,\n }[theme]\n);\n\nclass CardCta extends PureComponent {\n render() {\n const { icon, image, title, text, tag, link, reverse } = this.props;\n\n const theme = this.context;\n const styles = getStyles(theme);\n\n const img =\n image && image.renditions && image.renditions['fullwidth']\n ? image.renditions['fullwidth'].src\n : null;\n\n const isNordrTheme = theme === themes.NORDR;\n\n const classes = classNames(styles[\"CardCta\"], {\n [styles[`CardCta--Reverse`]]: !!reverse\n })\n\n if (isNordrTheme) {\n return (\n
{text}
}\n {link && link.href && (\n