{"version":3,"sources":["webpack:///./src/pages/fotos.js","webpack:///./src/hooks/use-asmet-photos.js","webpack:///./src/components/home/menu.js"],"names":["PhotosPage","asmetHome","useAsmetHome","allPhotos","useAsmetPhotos","flattenFotos","forEach","el","concat","Object","values","meta","og_titulo","id","className","crumbs","path","label","menuSecundario","menu_secundario","useStaticQuery","allStrapiMediaFoto","edges","Menu","props","map","item","index","key","link","customClass","src","icono","publicURL","alt","nombre","defaultProps","tipo","link_id"],"mappings":"4FAAA,wGA+CeA,UAnCI,WACjB,IAAMC,EAAYC,cACZC,EAAYC,cAOdC,EAAe,GAKnB,OAJAF,EAAUG,SAAQ,SAAAC,GAChBF,EAAeA,EAAaG,OAAOC,OAAOC,OAAOH,OAIjD,kBAAC,IAAM,CAACI,KAAM,CAAEC,UAAW,UACzB,yBAAKC,GAAG,sBAAsBC,UAAU,6BACtC,yBAAKA,UAAU,aACb,yBAAKA,UAAU,OACb,yBAAKA,UAAU,OACb,kBAAC,IAAU,CAACC,OAhBT,CACb,CAAEC,KAAK,SAAWC,MAAO,SACzB,CAAED,KAAK,SAAWC,MAAO,YAef,wBAAIH,UAAU,mCAAiC,wBAKvD,yBAAKA,UAAU,iCACb,kBAAC,IAAS,CAACX,UAAWE,KAExB,6BACA,kBAAC,IAAI,CAACa,eAAgBjB,EAAUkB,qB,kCC1CtC,kDAEaf,EAAiB,WA0C5B,OAzCagB,yBAAe,cAyChBC,mBAAmBC,Q,kCC5CjC,qCAMMC,EAAO,SAAAC,GACX,IAAQN,EAAmBM,EAAnBN,eACR,OACE,yBAAKL,GAAG,WAAWC,UAAU,0BAC3B,yBAAKA,UAAU,OACZI,EAAeO,KAAI,SAACC,EAAMC,GACzB,OACE,yBAAKb,UAAU,qBAAqBc,IAAKD,GACvC,kBAAC,IAAU,CACTE,KAAMH,EACNI,YAAa,YAAwB,IAAVH,EAAc,UAAY,KAErD,yBAAKI,IAAKL,EAAKM,OAASN,EAAKM,MAAMC,UAAYP,EAAKM,MAAMC,UAAY,4BAA6BC,IAAKR,EAAKS,SAC5GT,EAAKS,eAuBtBZ,EAAKa,aAAe,CAClBlB,eAAgB,CACd,CACEiB,OAAO,uBACPE,KAAK,SACLC,QAAQ,IACRN,MAAO,CACLC,UAAU,oFAMHV","file":"component---src-pages-fotos-js-260b04cd0e22506c52ae.js","sourcesContent":["import React from \"react\"\n\n// Layout\nimport Layout from \"../components/layout\"\n// Components\nimport Menu from \"../components/home/menu\"\nimport Breadcrumb from \"../components/elements/breadcrumb\"\nimport PhotoGrid from \"../components/elements/photo-grid\"\n// Hooks\nimport { useAsmetHome } from \"../hooks/use-asmet-home\"\nimport { useAsmetPhotos } from \"../hooks/use-asmet-photos\"\n\nconst PhotosPage = () => {\n const asmetHome = useAsmetHome()\n const allPhotos = useAsmetPhotos()\n\n const crumbs = [\n { path: `/media`, label: \"Media\" },\n { path: `/fotos`, label: \"Fotos\" },\n ]\n\n let flattenFotos = []\n allPhotos.forEach(el => {\n flattenFotos = flattenFotos.concat(Object.values(el))\n })\n\n return (\n \n
\n
\n
\n
\n \n

Galería de Fotos

\n
\n
\n
\n
\n
\n \n
\n
\n \n \n )\n}\n\nexport default PhotosPage\n","import { useStaticQuery, graphql } from \"gatsby\"\n\nexport const useAsmetPhotos = () => {\n const data = useStaticQuery(\n graphql`\n query PhotosQuery {\n allStrapiMediaFoto(sort: { order: DESC, fields: fecha }) {\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 descripcion\n imagenes {\n formats {\n thumbnail {\n publicURL\n }\n small {\n publicURL\n }\n medium {\n publicURL\n }\n large {\n publicURL\n }\n }\n url\n }\n }\n }\n }\n }\n `\n )\n return data.allStrapiMediaFoto.edges\n}\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":""}