{"version":3,"file":"static/chunks/4818.80bcc0a6cbb88d61.js","mappings":"u1BAUA,IAMMA,EAAiB,SAACC,GACpB,IAAMC,GAAQC,EAAAA,EAAAA,YAAWC,EAAAA,GACnBC,EARQ,SAACH,GAAD,aAAY,eACrBI,EAAAA,EAAAA,MAAeC,MADM,SAErBD,EAAAA,EAAAA,QAAiBE,KAFI,GAGxBN,GAKaO,CAAUP,GAEnBQ,EAAaT,GAAWA,EAAQU,MAAMC,OAAS,EAC/CC,EAAeX,IAAUI,EAAAA,EAAAA,MAE/B,OAAKI,GAKD,SAACI,EAAA,WAAD,UACK,gBAAGC,EAAH,EAAGA,mBAAH,OACG,iBAAKC,UAAWX,EAAM,wBAA6BY,GAAG,UAAtD,WACI,cAAGC,KAAK,UAAUF,UAAWX,EAAM,uBACnC,cACIc,KAAK,WACLH,UAAWX,EAAM,oCAFrB,UAGI,gBAAIW,UAAWX,EAAM,gCAArB,UACKQ,GACK,SAACO,EAAA,EAAD,CAAMF,KAAK,mBAAmBF,UAAWX,EAAM,+BAC/C,SAACe,EAAA,EAAD,CAAMF,KAAK,iBAEjB,iBAAMF,UAAWX,EAAM,oCAAvB,SACKgB,EAAAA,EAAAA,EAAO,yCAKpB,SAACC,EAAA,QAAD,OAAarB,GAAb,IAAsBsB,UAAWR,WAtBtC,MAqCff,EAAewB,aAAe,CAC1BC,gBAAiB,EACjBC,UAAW,GACXf,MAAO,IAGX,ICjEA,EDiEA,G,kBElEAgB,EAAOC,QAAU,CAAC,wBAA0B,wDAAwD,gCAAkC,gEAAgE,oCAAsC,oEAAoE,oCAAsC,sE,kBCAtVD,EAAOC,QAAU,CAAC,wBAA0B,sDAAsD,gCAAkC,8DAA8D,oCAAsC,kEAAkE,oCAAsC,kEAAkE,4BAA8B","sources":["webpack://_N_E/./components/ProjectGallery/ProjectGallery.js","webpack://_N_E/./components/ProjectGallery/index.js","webpack://_N_E/./components/ProjectGallery/ProjectGallery.folkhem.module.scss","webpack://_N_E/./components/ProjectGallery/ProjectGallery.nordr.module.scss"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport Gallery from '../Gallery';\nimport Icon from '../Icon';\nimport InPageNavigationContext from '../../context/InPageNavigationContext';\nimport i18n from '../../i18n';\nimport { ThemeContext, themes } from '../../themes/ThemeContext';\nimport stylesNordr from './ProjectGallery.nordr.module.scss';\nimport stylesFolkhem from './ProjectGallery.folkhem.module.scss';\n\nconst getStyles = (theme) => ({\n [themes.NORDR]: stylesNordr,\n [themes.FOLKHEM]: stylesFolkhem,\n }[theme]\n);\n\nconst ProjectGallery = (gallery) => {\n const theme = useContext(ThemeContext);\n const styles = getStyles(theme);\n\n const hasGallery = gallery && gallery.items.length > 0;\n const isNordrTheme = theme === themes.NORDR;\n\n if (!hasGallery) {\n return null;\n }\n\n return (\n \n {({ toggleGalleryModal }) => (\n
\n \n \n

\n {isNordrTheme\n ? \n : \n }\n \n {i18n.t('pageProject.headlines.gallery')}\n \n

\n
\n\n \n
\n )}\n
\n );\n};\n\nProjectGallery.propTypes = {\n showModal: PropTypes.func, // If left empty internal modal is used\n items: PropTypes.array,\n renditions: PropTypes.array,\n maxImagesMobile: PropTypes.number,\n modifiers: PropTypes.array,\n};\n\nProjectGallery.defaultProps = {\n maxImagesMobile: 4,\n modifiers: [],\n items: [],\n};\n\nexport default ProjectGallery;\n","import ProjectGallery from './ProjectGallery';\n\nexport default ProjectGallery;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"ProjectGallery__Section\":\"ProjectGallery_folkhem_ProjectGallery__Section__cNnPk\",\"ProjectGallery__SectionHeadline\":\"ProjectGallery_folkhem_ProjectGallery__SectionHeadline__Qzolk\",\"ProjectGallery__SectionHeadlineText\":\"ProjectGallery_folkhem_ProjectGallery__SectionHeadlineText__bLdlT\",\"ProjectGallery__SectionHeadlineLink\":\"ProjectGallery_folkhem_ProjectGallery__SectionHeadlineLink__SsM_d\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"ProjectGallery__Section\":\"ProjectGallery_nordr_ProjectGallery__Section__vyCi4\",\"ProjectGallery__SectionHeadline\":\"ProjectGallery_nordr_ProjectGallery__SectionHeadline__r7ZuP\",\"ProjectGallery__SectionHeadlineLink\":\"ProjectGallery_nordr_ProjectGallery__SectionHeadlineLink__y5TYo\",\"ProjectGallery__SectionHeadlineText\":\"ProjectGallery_nordr_ProjectGallery__SectionHeadlineText__6bSM3\",\"ProjectGallery__SectionIcon\":\"ProjectGallery_nordr_ProjectGallery__SectionIcon__T1Zi4\"};"],"names":["ProjectGallery","gallery","theme","useContext","ThemeContext","styles","themes","stylesNordr","stylesFolkhem","getStyles","hasGallery","items","length","isNordrTheme","InPageNavigationContext","toggleGalleryModal","className","id","name","href","Icon","i18n","Gallery","showModal","defaultProps","maxImagesMobile","modifiers","module","exports"],"sourceRoot":""}