{"version":3,"sources":["webpack:///./src/templates/page-general.js","webpack:///./src/components/home/menu.js"],"names":["PageGeneralTemplate","data","asmetHome","useAsmetHome","pageGeneral","pageHierarchy","usePageHierarchy","strapiId","groupedComponents","useGroupedComponents","contenido_general","useState","doHeader","setDoHeader","useEffect","tipo_componente","crumbs","forEach","el","push","path","slug","label","titulo","loaded","setLoaded","meta","og_titulo","id","className","onLoad","map","item","index","component","key","pageId","menuSecundario","menu_secundario","Menu","props","link","customClass","src","icono","publicURL","alt","nombre","defaultProps","tipo","link_id"],"mappings":"8FAAA,oHAoEeA,UArDa,SAAH,GAAkB,IAAZC,EAAI,EAAJA,KACvBC,EAAYC,cAEZC,EAAcH,EAAKG,YACnBC,EAAgBC,YAAiBF,EAAYG,UAC7CC,EAAoBC,YAAqBL,EAAYM,mBAE3D,EAAgCC,oBAAS,GAAlCC,EAAQ,KAAEC,EAAW,KAC5BC,qBAAU,WACRD,EAAiE,SAArDT,EAAYM,kBAAkB,GAAGK,mBAC5C,CAACX,EAAYM,oBAEhB,IAAMM,EAAS,GAEfX,EAAcY,SAAQ,SAAAC,GACpBF,EAAOG,KAAK,CAAEC,KAAK,WAAYF,EAAGG,KAAQC,MAAOJ,EAAGK,YAGtD,MAA4BZ,oBAAS,GAA9Ba,EAAM,KAAEC,EAAS,KAExB,OACE,kBAAC,IAAM,CACLC,KACEtB,EAAYsB,KAAOtB,EAAYsB,KAAO,CAAEC,UAAWvB,EAAYmB,SAGhEX,GACC,yBAAKgB,GAAG,sBAAsBC,UAAU,6BACtC,yBAAKA,UAAU,aACb,yBAAKA,UAAU,OACb,yBAAKA,UAAU,OACb,kBAAC,IAAU,CAACb,OAAQA,IACpB,wBAAIa,UAAU,mCAAmCzB,EAAYmB,YAMvE,uCACEK,GAAG,mBACHE,OAAQ,kBAAML,GAAU,KACnBD,EAAS,CAAEK,UAAW,sBAAyB,IAEnDrB,EAAkBuB,KAAI,SAACC,EAAMC,GAC5B,OAAO,kBAAC,IAAe,CAACC,UAAWF,EAAMC,MAAOA,EAAOE,IAAKF,EAAOG,OAAQhC,EAAYiB,WAG3F,6BACA,kBAAC,IAAI,CAACgB,eAAgBnC,EAAUoC,qB,kCC/DtC,qCAMMC,EAAO,SAAAC,GACX,IAAQH,EAAmBG,EAAnBH,eACR,OACE,yBAAKT,GAAG,WAAWC,UAAU,0BAC3B,yBAAKA,UAAU,OACZQ,EAAeN,KAAI,SAACC,EAAMC,GACzB,OACE,yBAAKJ,UAAU,qBAAqBM,IAAKF,GACvC,kBAAC,IAAU,CACTQ,KAAMT,EACNU,YAAa,YAAwB,IAAVT,EAAc,UAAY,KAErD,yBAAKU,IAAKX,EAAKY,OAASZ,EAAKY,MAAMC,UAAYb,EAAKY,MAAMC,UAAY,4BAA6BC,IAAKd,EAAKe,SAC5Gf,EAAKe,eAuBtBR,EAAKS,aAAe,CAClBX,eAAgB,CACd,CACEU,OAAO,uBACPE,KAAK,SACLC,QAAQ,IACRN,MAAO,CACLC,UAAU,oFAMHN","file":"component---src-templates-page-general-js-54a3fa41d675ec3148e2.js","sourcesContent":["import React, { useEffect, useState } from \"react\"\nimport { graphql } from \"gatsby\"\n\n// Layout\nimport Layout from \"../components/layout\"\n// Components\nimport Menu from \"../components/home/menu\"\nimport Breadcrumb from \"../components/elements/breadcrumb\"\nimport CustomComponent from \"../components/elements/custom-component\"\n\n// Hooks\nimport { useAsmetHome } from \"../hooks/use-asmet-home\"\nimport { usePageHierarchy } from \"../hooks/use-page-hierarchy\"\nimport { useGroupedComponents } from \"../hooks/use-grouped-components\"\n\nconst PageGeneralTemplate = ({ data }) => {\n const asmetHome = useAsmetHome()\n\n const pageGeneral = data.pageGeneral\n const pageHierarchy = usePageHierarchy(pageGeneral.strapiId)\n const groupedComponents = useGroupedComponents(pageGeneral.contenido_general)\n\n const [doHeader, setDoHeader] = useState(true)\n useEffect(() => {\n setDoHeader(pageGeneral.contenido_general[0].tipo_componente !== \"Menu\")\n }, [pageGeneral.contenido_general])\n\n const crumbs = []\n\n pageHierarchy.forEach(el => {\n crumbs.push({ path: `/pagina/${el.slug}`, label: el.titulo })\n })\n\n const [loaded, setLoaded] = useState(false)\n\n return (\n {pageGeneral.titulo}
\n
\n \n