{"version":3,"sources":["webpack:///./src/images/banner2.png","webpack:///./src/images/banner1.png","webpack:///./src/components/Carousel/CarouselCells/HeaderCell.styled.js","webpack:///./src/components/Carousel/CarouselCells/HeaderCell.js","webpack:///./src/components/Sections/SectionHeader.js","webpack:///./src/components/Sections/SectionHomeNews.js","webpack:///./src/templates/home.js"],"names":["module","exports","ContainerCell","styled","div","ContainerDescription","props","theme","textLight","Content","BP_MEDIUM","Description","Image","Img","HeaderCell","title","slug","description","publishDate","heroImage","fluid","alt","Section","dangerouslySetInnerHTML","__html","childMarkdownRemark","html","style","textAlign","display","margin","fontWeight","onClick","navigate","defaultProps","SectionHeader","query","lastNewsQuery","render","data","lastNews","Carousel","map","node","key","SectionHomeNews","news","page","limit","total","location","path","minHeight","flex","index","active","marginTop","href","target","rel","src","require","Pagination","current","pageSize","NewsQuery","Home","console","log","Layout","url","Categories","filterCategories","pageContext","categories"],"mappings":"iFAAAA,EAAOC,QAAU,IAA0B,uD,qBCA3CD,EAAOC,QAAU,IAA0B,uD,8NCIrCC,EAAgBC,IAAOC,IAAV,sFAAGD,CAAH,gOAebE,EAAuBF,IAAOC,IAAV,6FAAGD,CAAH,qFAMf,SAAAG,GAAK,OAAIA,EAAMC,MAAMC,aAG1BC,EAAUN,IAAOC,IAAV,gFAAGD,CAAH,yIAI0BO,KAKjCC,EAAcR,IAAOC,IAAV,oFAAGD,CAAH,kQAsBXS,EAAQT,YAAOU,KAAV,8EAAGV,CAAH,8B,YC5CLW,EAAa,SAAC,GAA0D,IAAxDC,EAAuD,EAAvDA,MAAOC,EAAgD,EAAhDA,KAAMC,EAA0C,EAA1CA,YAAaC,EAA6B,EAA7BA,YAAaC,EAAgB,EAAhBA,UAC3D,OACE,kBAACjB,EAAD,KACE,kBAACU,EAAD,CAAOQ,MAAOD,EAAUC,MAAOC,IAAI,oBACnC,kBAAChB,EAAD,KACE,kBAACiB,EAAA,EAAD,KACE,kBAACb,EAAD,KACE,kBAACE,EAAD,KACE,4BAAKI,GAC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MAAO,CAAE6B,UAAW,KACvB,uBAAGC,KAAK,uBAAuBC,OAAO,SAASC,IAAI,cACjD,kBAAC,IAAD,CACEC,IAEMC,EADK,kBAATV,GAAqC,eAATA,EAChB,OACA,QAEd9B,IAAI,eAIR,MAGN,kBAACyC,EAAA,EAAD,CACEC,QAAShB,EACTiB,SAAUhB,EACVC,MAAOA,EACPC,SAAUA,M,YCxBHe,GAFEC,UAtBF,SAAA5D,GACX6D,QAAQC,IAAI,QAAS9D,GACrB,IAAMwC,EAAO,IAAMxC,EAAO,gCAC1B,OACE,kBAAC+D,EAAA,EAAD,CAAQnB,SAAU5C,EAAM4C,UACtB,kBAAC,IAAD,CACEnC,MAAM,qDACNE,YAAY,0OACZqD,IAAKhE,EAAM4C,SAASO,OAEtB,kBAAC,EAAD,MACA,kBAACc,EAAA,EAAD,CAAYC,iBAAkBlE,EAAMmE,YAAYC,aAChD,kBAAC,EAAD,eACE5B,KAAMA,GACFxC,EAAMmE,YAFZ,CAGEvB,SAAU5C,EAAM4C,SAChBC,KAAM7C,EAAM6C,UAQE","file":"component---src-templates-home-js-f236155049c2f7158501.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/banner2-b75496593ea240564bda994ed7fe0214.png\";","module.exports = __webpack_public_path__ + \"static/banner1-798ed2b0d454ece55da9f1f79da9cc40.png\";","import styled from 'styled-components'\nimport Img from 'gatsby-image'\nimport { BP_MEDIUM } from '../../../styles/theme'\n\nconst ContainerCell = styled.div`\n min-height: 600px;\n height: 600px;\n min-width: 100%;\n position: relative;\n &:after {\n display: block;\n position: relative;\n background-image: linear-gradient(to bottom, transparent, #000);\n margin-top: -450px;\n height: 450px;\n width: 100%;\n content: '';\n }\n`\nconst ContainerDescription = styled.div`\n position: absolute;\n width: 100%;\n bottom: 25px;\n z-index: 10;\n font-size: 1.5rem;\n color: ${props => props.theme.textLight};\n`\n\nconst Content = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n @media only screen and (max-width: ${BP_MEDIUM}) {\n flex-direction: column-reverse;\n }\n`\n\nconst Description = styled.div`\n max-width: 700px;\n & > h2 {\n margin: 0.35rem 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n & > div > p {\n &:first-child {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n\n display: none;\n }\n`\n\nconst Image = styled(Img)`\n width: 100%;\n height: 600px;\n`\n\nexport { ContainerCell, ContainerDescription, Content, Description, Image }\n","import React from 'react'\nimport { navigate } from 'gatsby'\nimport PropTypes from 'prop-types'\n\nimport Section from '../../Common/Section'\n\nimport {\n ContainerCell,\n ContainerDescription,\n Content,\n Description,\n Image,\n} from './HeaderCell.styled'\nimport ButtonStyled from '../../Common/Button.styled'\n\nconst HeaderCell = ({ title, slug, description, publishDate, heroImage }) => {\n return (\n \n \n \n \n \n \n {title}\n \n \n \n \n {publishDate}\n \n navigate(`/noticias/${slug}`)}>\n Leer más\n \n \n \n \n \n \n )\n}\n\nHeaderCell.defaultProps = {\n title: 'Título de la notica',\n description: null,\n publishDate: 'Fecha',\n heroImage: null,\n}\n\nHeaderCell.propTypes = {\n title: PropTypes.string,\n description: PropTypes.object,\n heroImage: PropTypes.object,\n publishDate: PropTypes.string,\n}\n\nexport default HeaderCell\n","import React from 'react'\nimport _ from 'lodash'\nimport { StaticQuery, graphql } from 'gatsby'\n\nimport Carousel from '../Carousel'\nimport { HeaderCell } from '../Carousel/CarouselCells'\n\nconst SectionHeader = () => (\n {\n const lastNews = _.get(data, 'allContentfulNews.edges')\n return (\n \n {lastNews.map(({ node }) => (\n \n \n \n ))}\n \n )\n }}\n />\n)\n\nexport default SectionHeader\n\nconst lastNewsQuery = graphql`\n query LastNewsQuery {\n allContentfulNews(sort: { fields: [publishDate], order: DESC }, limit: 4) {\n edges {\n node {\n title\n slug\n publishDate(formatString: \"D/MM/YY\")\n heroImage {\n fluid(maxWidth: 2100, maxHeight: 1176) {\n ...GatsbyContentfulFluid_withWebp\n }\n }\n description {\n childMarkdownRemark {\n html\n }\n }\n }\n }\n }\n }\n`\n","import React from 'react'\nimport { navigate } from 'gatsby'\nimport Section from '../Common/Section'\n\nimport {\n ContainerCardsNews,\n CardCellNews,\n CardDescription,\n CardImage,\n MainSectionContainer,\n BannerImg,\n} from './SectionHomeNews.styled'\nimport Pagination from '../Pagination'\n\nconst SectionHomeNews = ({ news, page, limit, total, location, path }) => (\n \n \n \n \n {!news ? (\n No hay resultados\n ) : (\n news.map(({ node }, index) => (\n navigate(`/noticias/${node.slug}`)}\n >\n \n \n {node.title}\n {node.publishDate}\n \n \n ))\n )}\n \n \n {path === '/contabilidad' || path === '/impuestos' || path === '/' ? (\n \n \n \n \n \n ) : null}\n \n\n \n \n)\n\nexport default SectionHomeNews\n","import React from 'react'\nimport _ from 'lodash'\nimport { graphql } from 'gatsby'\n\nimport Layout from '../components/Layout'\nimport { SectionHeader } from '../components/Sections'\nimport Categories from '../components/Categories'\nimport SectionHomeNews from '../components/Sections/SectionHomeNews'\nimport SEO from '../components/seo'\n\nconst Home = props => {\n console.log('props', props)\n const news = _.get(props, 'data.allContentfulNews.edges')\n return (\n \n \n \n \n \n \n )\n}\n\nexport default Home\n\nexport const NewsQuery = graphql`\n query NewsFilterList($categories: [String], $skip: Int!, $limit: Int!) {\n allContentfulNews(\n sort: { fields: [publishDate], order: DESC }\n filter: { categories: { elemMatch: { slug: { in: $categories } } } }\n limit: $limit\n skip: $skip\n ) {\n edges {\n node {\n title\n slug\n publishDate(formatString: \"D/MM/YY\")\n heroImage {\n fluid(maxWidth: 1200, maxHeight: 672) {\n ...GatsbyContentfulFluid_withWebp\n }\n }\n description {\n childMarkdownRemark {\n html\n }\n }\n }\n }\n }\n }\n`\n"],"sourceRoot":""}