{"version":3,"sources":["webpack:///./src/pages/videos.js","webpack:///./src/components/elements/video-grid.js","webpack:///./src/hooks/use-asmet-videos.js"],"names":["VideosPage","asmetHome","useAsmetHome","allVideos","useAsmetVideos","flattenVideos","forEach","el","concat","Object","values","meta","og_titulo","id","className","crumbs","path","label","menuSecundario","menu_secundario","filtersTypeDefault","Todos","type","Spot","Casos","Comerciales","Capacitaciones","Otro","VideoGrid","location","useLocation","queryString","parse","search","t","c","useState","categories","setCategories","filterType","updateFilterType","filterCategory","updateFilterCategory","filteredVideos","setFilteredVideos","useEffect","updateCategories","filteredArr","blog_subcategorias","nombre","length","tipo","filteredArr2","navigate","arr","newCategories","slug","ca","keys","map","f","i","key","name","defaultValue","onChange","checked","htmlFor","video","index","src","link","alt","titulo","format","publicado_en","to","role","defaultProps","strapiId","useStaticQuery","allStrapiMediaVideo","edges"],"mappings":"8FAAA,wGA+CeA,UAnCI,WACjB,IAAMC,EAAYC,cACZC,EAAYC,cAOdC,EAAgB,GAKpB,OAJAF,EAAUG,SAAQ,SAAAC,GAChBF,EAAgBA,EAAcG,OAAOC,OAAOC,OAAOH,OAInD,kBAAC,IAAM,CAACI,KAAM,CAAEC,UAAW,WACzB,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,UAAYC,MAAO,aAehB,wBAAIH,UAAU,mCAAiC,yBAKvD,yBAAKA,UAAU,iCACb,kBAAC,IAAS,CAACX,UAAWE,KAExB,6BACA,kBAAC,IAAI,CAACa,eAAgBjB,EAAUkB,qB,mLChChCC,EAAqB,CACzBC,MAAO,CACLC,KAAM,QACNL,MAAO,SAETM,KAAM,CACJD,KAAM,OACNL,MAAO,QAETO,MAAO,CACLF,KAAM,QACNL,MAAO,kBAETQ,YAAa,CACXH,KAAM,cACNL,MAAO,eAET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,4BACZsD,EAAMjB,MAGX,uBAAGrC,UAAU,cACVsD,EAAMK,OACP,uBAAG3D,UAAU,kCAEf,uBAAGA,UAAU,kBAAgB,gBAE3B,kBAAC,IAAM,CAAC4D,OAAO,MAAMN,EAAMO,eAE7B,kBAAC,OAAI,CACHC,GAAE,WAAaR,EAAMZ,KACrB1C,UAAU,kBAET,KAGL,yBAAKA,UAAU,eACb,yBAAKA,UAAU,aACZsD,EAAMpB,mBAAmBW,KAAI,SAACxB,EAAG0B,GAAC,OACjC,0BAAMC,IAAKD,EAAG/C,UAAU,yBACrBqB,EAAEc,kBAUnB,yBAAKnC,UAAU,mBAAmB+D,KAAK,SAAO,sDACWpC,EAAc,QA2BjFb,EAAUkD,aAAe,CACvB3E,UAAW,CACT,CACE4E,SAAS,2BACTvB,KAAK,uBACLiB,OAAO,uBACPF,KAAK,cACLI,aAAa,2BACbxB,KAAK,OACLH,mBAAoB,CAClB,CACEQ,KAAK,MACLP,OAAO,WAOFrB,O,kCC/Of,kDAEaxB,EAAiB,WAgC5B,OA/Ba4E,yBAAe,cA+BhBC,oBAAoBC","file":"component---src-pages-videos-js-e70f089424fc3998c851.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 VideoGrid from \"../components/elements/video-grid\"\n// Hooks\nimport { useAsmetHome } from \"../hooks/use-asmet-home\"\nimport { useAsmetVideos } from \"../hooks/use-asmet-videos\"\n\nconst VideosPage = () => {\n const asmetHome = useAsmetHome()\n const allVideos = useAsmetVideos()\n\n const crumbs = [\n { path: `/media`, label: \"Media\" },\n { path: `/videos`, label: \"Videos\" },\n ]\n\n let flattenVideos = []\n allVideos.forEach(el => {\n flattenVideos = flattenVideos.concat(Object.values(el))\n })\n\n return (\n Galería de Videos
\n
\n
\n \n {video.tipo}\n
\n )}\n\n {video.titulo}\n \n
\n\n Publicado el \n