{"version":3,"sources":["webpack:///./src/templates/noticias.js","webpack:///./src/components/elements/pager-buttons.js","webpack:///./src/components/home/menu.js"],"names":["NewsPage","data","pageContext","asmetHome","useAsmetHome","queriedNoticias","allStrapiMediaNoticia","edges","meta","og_titulo","id","className","crumbs","path","label","map","noticia","index","key","format","node","fecha","src","imagen_principal","publicURL","alt","titulo","content","descripcion","to","slug","menuSecundario","menu_secundario","Pager","previousPagePath","nextPagePath","Menu","props","item","link","customClass","icono","nombre","defaultProps","tipo","link_id"],"mappings":"4FAAA,yIAiGeA,UAlFE,SAAH,GAA+B,IAAzBC,EAAI,EAAJA,KAAMC,EAAW,EAAXA,YAClBC,EAAYC,cACZC,EAAkBJ,EAAKK,sBAAsBC,MAOnD,OACE,kBAAC,IAAM,CAACC,KAAM,CAAEC,UAAW,aACzB,yBAAKC,GAAG,sBAAsBC,UAAU,6BACtC,yBAAKA,UAAU,aACb,yBAAKA,UAAU,OACb,yBAAKA,UAAU,OACb,kBAAC,IAAU,CAACC,OAXT,CACb,CAAEC,KAAK,SAAWC,MAAO,SACzB,CAAED,KAAK,YAAcC,MAAO,eAUlB,wBAAIH,UAAU,mCAAiC,sBAQvD,yBAAKA,UAAU,iCACb,yBAAKD,GAAG,uBAAuBC,UAAU,kBACtCN,EAAgBU,KAAI,SAACC,EAASC,GAC7B,OACE,yBAAKN,UAAU,WAAWO,IAAKD,GAC7B,yBAAKN,UAAU,2BACb,yBAAKA,UAAU,oCACb,yBAAKA,UAAU,iDACb,0BAAMA,UAAU,sCACd,kBAAC,IAAM,CAACQ,OAAO,MAAMH,EAAQI,KAAKC,QAEpC,0BAAMV,UAAU,4BACd,kBAAC,IAAM,CAACQ,OAAO,QAAQH,EAAQI,KAAKC,QAEtC,0BAAMV,UAAU,4BACd,kBAAC,IAAM,CAACQ,OAAO,QAAQH,EAAQI,KAAKC,SAGxC,yBAAKV,UAAU,6BACb,yBACEW,IACEN,EAAQI,KAAKG,iBACTP,EAAQI,KAAKG,iBAAiBC,U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esContent":["import React from \"react\"\nimport { graphql } from \"gatsby\"\nimport { Link } from \"gatsby\"\nimport Moment from \"react-moment\"\n\n// Layout\nimport Layout from \"../components/layout\"\n// Components\nimport Menu from \"../components/home/menu\"\nimport Pager from \"../components/elements/pager-buttons\"\nimport Breadcrumb from \"../components/elements/breadcrumb\"\nimport ContentToHTML from \"../components/elements/content-html\"\n// Hooks\nimport { useAsmetHome } from \"../hooks/use-asmet-home\"\n\nconst NewsPage = ({ data, pageContext }) => {\n const asmetHome = useAsmetHome()\n const queriedNoticias = data.allStrapiMediaNoticia.edges\n\n const crumbs = [\n { path: `/media`, label: \"Media\" },\n { path: `/noticias`, label: \"Noticias\" },\n ]\n\n return (\n \n
\n
\n
\n
\n \n

\n Asmet Noticias\n

\n
\n
\n
\n
\n\n
\n
\n {queriedNoticias.map((noticia, index) => {\n return (\n
\n
\n
\n
\n \n {noticia.node.fecha}\n \n \n {noticia.node.fecha}\n \n \n {noticia.node.fecha}\n \n
\n
\n \n
\n
\n {\" \"}\n

\n {noticia.node.titulo}\n

\n
\n \n
\n \n {\"\"}\n \n
\n
\n
\n
\n )\n })}\n
\n \n
\n
\n \n \n )\n}\n\nexport default NewsPage\n\nexport const query = graphql`\n query NoticesQueryPagination($skip: Int!, $limit: Int!) {\n allStrapiMediaNoticia(\n sort: { order: DESC, fields: fecha }\n skip: $skip\n limit: $limit\n ) {\n edges {\n node {\n strapiId\n slug\n titulo\n meta {\n og_titulo\n og_imagen {\n publicURL\n }\n og_descripcion\n }\n fecha\n imagen_principal {\n publicURL\n }\n descripcion\n\n contenido {\n id\n tipo_componente\n\n # Component Texto\n\n contenido\n\n # Component Documento\n\n titulo\n fecha_publicacion\n es_descargable\n descripcion\n archivo {\n publicURL\n extension\n }\n\n # Component Banner\n\n slides {\n tipo_componente\n titulo\n subtitulo\n imagen {\n publicURL\n }\n link {\n nombre\n tipo\n link_id\n icono {\n publicURL\n }\n }\n }\n\n # Component Card\n\n imagen {\n publicURL\n }\n link {\n nombre\n tipo\n link_id\n icono {\n publicURL\n }\n }\n\n # Component Grupo Cards\n\n cards {\n tipo_componente\n titulo\n descripcion\n imagen {\n publicURL\n }\n link {\n nombre\n tipo\n link_id\n icono {\n publicURL\n }\n }\n }\n }\n }\n }\n }\n }\n`\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { Link } from \"gatsby\"\n\nconst Pager = ({ pageContext }) => {\n const { previousPagePath, nextPagePath } = pageContext\n return (\n \n )\n}\n\nPager.propTypes = {\n pageContext: PropTypes.object.isRequired,\n}\n\nexport default Pager\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\n// Components\nimport CustomLink from \"../elements/custom-link\"\n\nconst Menu = props => {\n const { menuSecundario } = props\n return (\n
\n
\n {menuSecundario.map((item, index) => {\n return (\n
\n \n {item.nombre}\n {item.nombre}\n \n
\n )\n })}\n
\n
\n )\n}\n\nMenu.propTypes = {\n menuSecundario: PropTypes.arrayOf(\n PropTypes.shape({\n nombre: PropTypes.string.isRequired,\n tipo: PropTypes.string.isRequired,\n link_id: PropTypes.string.isRequired,\n icono: PropTypes.shape({\n publicURL: PropTypes.string.isRequired,\n }).isRequired,\n })\n ).isRequired,\n}\n\nMenu.defaultProps = {\n menuSecundario: [\n {\n nombre: `Afiliación a la Mano`,\n tipo: `Pagina`,\n link_id: `/`,\n icono: {\n publicURL: `/static/6e42e9fd87b792be6a3040d64eeec6b3/36e2e83e7518ebc69a1b6b2108c16be8.png`,\n },\n },\n ],\n}\n\nexport default Menu\n"],"sourceRoot":""}