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fede-cocina-web/./src/pages/articulo/{mysqlAllArticles.pageUrl}.module.css","webpack://fede-cocina-web/./src/pages/articulo/{mysqlAllArticles.pageUrl}.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport var innerDiv = \"{mysqlAllArticles-pageUrl}-module--innerDiv--3JfQQ\";\nexport var title = \"{mysqlAllArticles-pageUrl}-module--title--3kvQ3\";\nexport var topTitle = \"{mysqlAllArticles-pageUrl}-module--topTitle--1lAzp\";\nexport var columnsContainer = \"{mysqlAllArticles-pageUrl}-module--columnsContainer--gcKQt\";\nexport var leftColumn = \"{mysqlAllArticles-pageUrl}-module--leftColumn--hx7tP\";\nexport var rightColumn = \"{mysqlAllArticles-pageUrl}-module--rightColumn--29g1j\";\nexport var introTextTop = \"{mysqlAllArticles-pageUrl}-module--introTextTop--3cNUF\";\nexport var goToAllArticlesMainDiv = \"{mysqlAllArticles-pageUrl}-module--goToAllArticlesMainDiv--2Git0\";\nexport var goToAllArticlesButton = \"{mysqlAllArticles-pageUrl}-module--goToAllArticlesButton--3H3Rp\";\nexport var publishAtP = \"{mysqlAllArticles-pageUrl}-module--publishAtP--3FFze\";\nexport var topTitleBreadcrumbs = \"{mysqlAllArticles-pageUrl}-module--topTitleBreadcrumbs--22ooN\";\nexport var breadcrumbLink = \"{mysqlAllArticles-pageUrl}-module--breadcrumbLink--3pFyu\";\nexport var breadcrumbArrow = \"{mysqlAllArticles-pageUrl}-module--breadcrumbArrow--riYZh\";\nexport var ingredientsStepsContainer = \"{mysqlAllArticles-pageUrl}-module--ingredientsStepsContainer--k29Fy\";\nexport var relatedRecipesTitleSpan = \"{mysqlAllArticles-pageUrl}-module--relatedRecipesTitleSpan--3gRWJ\";","import { innerDiv, title, leftColumn, rightColumn, columnsContainer, publishAtP, goToAllArticlesMainDiv,\r\n goToAllArticlesButton, topTitleBreadcrumbs, breadcrumbLink, breadcrumbArrow } from './{mysqlAllArticles.pageUrl}.module.css'\r\nimport React from \"react\"\r\nimport NavBar from \"../../components/NavBar\"\r\nimport { graphql } from 'gatsby'\r\nimport Footer from \"../../components/Footer\"\r\nimport RecipeRightBar from \"../../components/RecipeRightBar/RecipeRightBar\"\r\nimport { Helmet } from \"react-helmet\"\r\nimport { navigate } from 'gatsby';\r\nimport Comments from \"../../components/Comments\"\r\nimport CarouselHome from \"../../components/CarouselHome\"\r\nimport { Link } from \"gatsby\"\r\n\r\nconst ArticlePage = ({ data }) => {\r\n const articleData = data.allMysqlAllArticles.nodes[0];\r\n\r\n const dateOptions = { year: 'numeric', month: 'long', day: 'numeric' };\r\n var publishedAt = \"\";\r\n var isoDate = \"\";\r\n if (articleData.publishedAt) {\r\n publishedAt = new Date(Date.parse(articleData.publishedAt)).toLocaleDateString(\"es-ES\", dateOptions);\r\n isoDate = new Date(Date.parse(articleData.publishedAt)).toISOString();\r\n }\r\n\r\n const goToAllArticles = () => {\r\n navigate(`/todos-los-articulos`);\r\n }\r\n\r\n var contentReplaced = articleData.content.replace(/
/g, \"\");\r\n retval = retval.replace(/<\\/p>/g, \"\");\r\n retval = retval.replace(//g, \"\");\r\n retval = retval.replace(/<\\/b>/g, \"\");\r\n retval = retval.replace(//g, \"\");\r\n retval = retval.replace(/<\\/i>/g, \"\");\r\n retval = retval.replace(/\\n/g, \"\");\r\n retval = retval.replace(/\"/g, '\\\\\"');\r\n\r\n return retval;\r\n }\r\n\r\n while (imgIndex >= 0) {\r\n var data1SeparatorIndex = contentReplaced.indexOf(\":\", imgIndex);\r\n var data2SeparatorIndex = contentReplaced.indexOf(\":\", data1SeparatorIndex + 1);\r\n var closeIndex = contentReplaced.indexOf(\">}\", data2SeparatorIndex);\r\n var imgUrl = contentReplaced.substring(imgIndex + 5, data1SeparatorIndex);\r\n var fullStr = contentReplaced.substring(imgIndex, closeIndex + 2);\r\n\r\n var width = contentReplaced.substring(data1SeparatorIndex + 1, data2SeparatorIndex);\r\n var height = contentReplaced.substring(data2SeparatorIndex + 1, closeIndex);\r\n\r\n var altText = imgUrl.replace('/articulos/', '');\r\n altText = altText.replace(/-/g, ' ');\r\n altText = altText.replace('.png', '');\r\n altText = altText.replace('.jpg', '');\r\n\r\n var imgToReplace = \" \r\n Inicio\r\n \r\n Trucos\r\n Publicado por Federico Quevedo, el {publishedAt}.\";\r\n\r\n contentReplaced = contentReplaced.replace(fullStr, imgToReplace);\r\n imgIndex = contentReplaced.indexOf(\"{IMG<\");\r\n }\r\n\r\n const nameCleaned = getCleanedStr(articleData.name);\r\n const shortNameCleaned = getCleanedStr(articleData.shortName);\r\n const introTextCleaned = getCleanedStr(articleData.introText);\r\n\r\n return (\r\n