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C,GAAA,EAACC,MAAAA,CAAIC,UAAWhB,IAAAA,OAAS,UAAGJ,EAAE,cAAe,CAACY,OAAAA,CAAM,YAMhE,CAEAhB,CAAAA,cAAc+B,SAAS,CAAG,CACxB7B,MAAO,EACLW,IAAKmB,IAAAA,MAAgB,CACrBlB,IAAKkB,IAAAA,MAAgB,CACrBjB,MAAOiB,IAAAA,MAAgB,CACvBhB,OAAQgB,IAAAA,MAAgB,CAC1B,EAAEC,UAAU,CACZ9B,SAAU6B,IAAAA,MAAgB,EAG5BhC,cAAckC,YAAY,CAAG,CAC3BhC,MAAO,CACLW,IAAK,GACLC,IAAK,GACLC,MAAO,CAAC,EACRC,OAAQ,EACV,EACAb,SAAU,EACZ,EC/DA,IAAAgC,EDiEenC,sJE5DT8B,UAAY,SAAA7B,CAAA,MAAGe,EAAAA,EAAAA,MAAAA,CAAAA,EAAAA,EAAQoB,SAAAA,CAC3B,GAAI,CAACpB,EAAQ,OAAO,KACpB,IAAMqB,EAAU9B,IACdC,IAAAA,IAAM,CACN4B,CAJyBA,KAAAA,IAAAA,EAAY,EAAE,CAAAE,CAAA,EAI7BC,GAAG,CAAC,SAACC,CAAAA,SAAMhC,GAAC,CAACgC,EAAE,IAE3B,MAAO,GAAAnB,EAAAI,IAAA,EAACgB,OAAAA,CAAKjB,UAAWa,YAAS,UAAQrB,IAC3C,CAEAc,CAAAA,UAAUC,SAAS,CAAG,CAAC,EAEvBD,UAAUI,YAAY,CAAG,CAAC,EChB1B,IAAAQ,EDkBeZ,6BEnBfa,EAAAC,OAAA,EAAkB,0VCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./components/ImageRichText/ImageRichText.js","webpack://_N_E/./components/ImageRichText/index.js","webpack://_N_E/./components/PhotoCred/PhotoCred.js","webpack://_N_E/./components/PhotoCred/index.js","webpack://_N_E/./components/ImageRichText/ImageRichText.module.scss","webpack://_N_E/./components/PhotoCred/PhotoCred.module.scss","webpack://_N_E/"],"sourcesContent":["import React from 'react';\n\nimport { useTranslation } from 'next-i18next';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport s from './ImageRichText.module.scss';\nimport Image from 'next/image';\nimport PhotoCred from '../PhotoCred';\n\nconst ImageRichText = ({ image, fromPage }) => {\n const { t } = useTranslation();\n const rootClasses = classNames(s.Root, 'grid', {\n [s.ReportPage]: fromPage === 'reportPage',\n });\n const imageStyle = {\n objectFit: 'cover',\n };\n\n const { url, alt, focal, credit } = image;\n if (focal?.x && focal?.y) {\n imageStyle.objectPosition = `${focal.x} ${focal.y}`;\n }\n\n return (\n
\n
\n
\n \n \n
\n {fromPage !== 'reportPage' && (\n
\n
{alt}
\n
{t('Image.photo', {credit})}
\n
\n )}\n
\n
\n );\n};\n\nImageRichText.propTypes = {\n image: {\n url: PropTypes.string,\n alt: PropTypes.string,\n focal: PropTypes.object,\n credit: PropTypes.string,\n }.isRequired,\n fromPage: PropTypes.string,\n};\n\nImageRichText.defaultProps = {\n image: {\n url: '',\n alt: '',\n focal: {},\n credit: '',\n },\n fromPage: '',\n};\n\nexport default ImageRichText;\n","import ImageRichText from './ImageRichText';\n\nexport default ImageRichText;\n","import React from 'react';\n\n// import { useTranslation } from 'next-i18next';\n// import PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport s from './PhotoCred.module.scss';\n\nconst PhotoCred = ({ credit, modifiers = [] }) => {\n if (!credit) return null;\n const classes = classNames(\n s.Root,\n modifiers.map((m) => s[m])\n );\n return Photo: {credit};\n};\n\nPhotoCred.propTypes = {};\n\nPhotoCred.defaultProps = {};\n\nexport default PhotoCred;\n","import PhotoCred from './PhotoCred';\n\nexport default PhotoCred;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Root\":\"ImageRichText_Root__FfgjK\",\"Wrapper\":\"ImageRichText_Wrapper__DCK61\",\"ReportPage\":\"ImageRichText_ReportPage__m9wFP\",\"TextContainer\":\"ImageRichText_TextContainer__D7G4N\",\"Alt\":\"ImageRichText_Alt____GjU\",\"Credits\":\"ImageRichText_Credits__K7qYl\",\"ImageContainer\":\"ImageRichText_ImageContainer__g5hhN\",\"Image\":\"ImageRichText_Image__eyzp6\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Root\":\"PhotoCred_Root__Ae9LO\",\"CardGlass\":\"PhotoCred_CardGlass__T4iKx\",\"Reverse\":\"PhotoCred_Reverse__jHtbm\",\"Testimonial\":\"PhotoCred_Testimonial__5Ij_5\",\"Stories\":\"PhotoCred_Stories__8xhwO\",\"VideoStory\":\"PhotoCred_VideoStory__BHzve\",\"BottomMargin\":\"PhotoCred_BottomMargin__bWGeB\",\"Dark\":\"PhotoCred_Dark__tZIAz\"};"],"names":["ImageRichText","param","image","fromPage","t","useTranslation","rootClasses","classNames","s","_define_property","_","imageStyle","objectFit","url","alt","focal","credit","x","y","objectPosition","concat","jsx_runtime","jsx","div","className","jsxs","Image","src","fill","style","PhotoCred","propTypes","PropTypes","isRequired","defaultProps","components_ImageRichText","modifiers","classes","_param_modifiers","map","m","span","components_PhotoCred","module","exports"],"sourceRoot":""}