{"version":3,"file":"component---src-pages-blog-tsx-93cfb6e9b60192439b4b.js","mappings":"6TACWA,EAAU,iCACVC,EAAW,kCACXC,EAAW,kCACXC,EAAU,iCCuBrB,EAhBwC,SAAC,GAKlC,IAJLC,EAII,EAJJA,UACAC,EAGI,EAHJA,GACAC,EAEI,EAFJA,QACAC,EACI,EADJA,SAEA,OACE,mCACEH,UAAWI,GAAAA,CAAGC,EAAWH,GAAWG,EAAE,MAAMH,GAAYF,GACxDC,GAAIA,GAEHE,K,mIC+CP,EAnE0D,SAAAG,GAAK,OAC7D,6CACEC,MAAM,KACNC,OAAO,MACPC,QAAQ,aACRC,KAAK,OACLC,MAAM,QACNC,MAAM,8BACFN,GAEJ,gCACEO,EAAE,qfACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,mSACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,+lBACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,oEACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,qiBACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,8OACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,kUACFH,KAAK,eACLI,YAAY,QAEd,gCACEC,SAAS,UACTC,SAAS,UACTH,EAAE,4FACFH,KAAK,eACLI,YAAY,U,2CCtDPG,EAAO,2BCWLC,EAA6B,SAAC,GAKpC,IAJLC,EAII,EAJJA,KACAnB,EAGI,EAHJA,UACAoB,EAEI,EAFJA,mBACAC,EACI,EADJA,cAEA,GAAuBC,EAAAA,EAAAA,KAAfC,EAAR,EAAQA,EAAGC,EAAX,EAAWA,QACHC,EAAWC,EAAAA,QAAAA,WAAiBC,EAAAA,GAA5BF,OACR,OACE,wBAAC,EAAAG,K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Cf,EAAAA,EAAAA,IAAmB,GAXwB,GAclCT,GCTCyB,CAAYzB,GACnBK,EAAQP,EAAE,QAEhB,OACE,gDACE,wBAAC,IAAD,CACEO,MAAOL,IAAWS,EAAAA,EAAAA,GAAmBX,EAAE,kBAAoBO,EAC3DqB,YACE1B,IAAWS,EAAAA,EAAAA,GAAmBX,EAAE,wBAA0B,KAG9D,wBAAC6B,EAAA,EAAD,CAAMtB,MAAOA,EAAOO,MAAOO","sources":["webpack://sgnl-site/./src/components/Common/Section/Section.module.scss","webpack://sgnl-site/./src/components/Common/Section/index.tsx","webpack://sgnl-site/./src/svg/logo-news.tsx","webpack://sgnl-site/./src/components/News/News.module.sass","webpack://sgnl-site/./src/components/News/NewsItem.tsx","webpack://sgnl-site/./src/components/News/index.tsx","webpack://sgnl-site/./src/hooks/useBlogData.ts","webpack://sgnl-site/./src/pages/blog.tsx"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport var section = \"Section-module--section--t2Kke\";\nexport var bg_white = \"Section-module--bg_white--K-nBF\";\nexport var bg_light = \"Section-module--bg_light--kwwQL\";\nexport var bg_dark = \"Section-module--bg_dark--vZSrp\";","import React from 'react'\nimport cn from 'classnames'\n\nimport * as s from './Section.module.scss'\n\ninterface SectionProps {\n className?: string\n bgColor?: 'white' | 'light' | 'dark'\n id?: string\n}\n\nconst Section: React.FC = ({\n className,\n id,\n bgColor,\n children,\n}) => {\n return (\n \n {children}\n \n )\n}\n\nexport default Section\n","import React from 'react'\n\nconst LogoNews: React.FC> = props => (\n \n \n \n \n \n \n \n \n \n \n)\n\nexport default LogoNews\n","// extracted by mini-css-extract-plugin\nexport var title = \"News-module--title--LZws8\";\nexport var content = \"News-module--content--38iFs\";\nexport var box = \"News-module--box--zGGHr\";\nexport var image = \"News-module--image--2ADUs\";\nexport var textTitle = \"News-module--textTitle--lvoc0\";\nexport var imageWrap = \"News-module--imageWrap--D7tym\";\nexport var body = \"News-module--body--ewLc-\";\nexport var type = \"News-module--type--NY4CU\";\nexport var date = \"News-module--date--LLsTg\";\nexport var logo = \"News-module--logo--EBGe9\";","import React from 'react'\nimport { Link } from 'gatsby'\nimport { GatsbyImage } from 'gatsby-plugin-image'\nimport cn from 'classnames'\n\nimport { INewsItem } from '../../types'\nimport LogoNews from '../../svg/logo-news'\nimport LogoEn from '../../svg/logo-en'\nimport { GlobalContext } from '../../context/GlobalContext'\nimport { AppRegionEnum } from '../../types/app-region.enum'\nimport { useTranslations } from '../../hooks/use-translations'\n\nimport * as s from './News.module.sass'\n\ninterface IProps {\n data: INewsItem\n className?: string\n bodyClassName?: string\n imageWrapClassName?: string\n}\n\nexport const NewsItem: React.FC = ({\n data,\n className,\n imageWrapClassName,\n bodyClassName,\n}) => {\n const { t, getPath } = useTranslations()\n const { region } = React.useContext(GlobalContext)\n return (\n \n
\n {!data.image ? (\n region === AppRegionEnum.Ru ? (\n \n ) : (\n \n )\n ) : (\n \n )}\n
\n
\n {data.type &&
{data.type}
}\n {data.date &&
{data.date}
}\n

{t(data.title)}

\n
\n \n )\n}\n","import React from 'react'\nimport Section from '../Common/Section'\nimport Container from '../Common/Container'\nimport { NewsItem } from './NewsItem'\nimport { INewsItem } from '../../types'\n\nimport * as s from './News.module.sass'\n\ninterface IProps {\n title: string\n items: INewsItem[]\n}\n\nconst News: React.FC = ({ title, items }) => {\n return (\n
\n \n

{title}

\n
\n {items.map(item => (\n \n ))}\n
\n
\n
\n )\n}\n\nexport default News\n","import { graphql, useStaticQuery } from 'gatsby'\nimport { INewsItem } from '../types'\nimport { AppRegionEnum } from '../types/app-region.enum'\n\nexport const useBlogData = (region: AppRegionEnum): INewsItem[] => {\n const images = useStaticQuery(imagesQuery)\n const news: Record = {\n [AppRegionEnum.Ru]: [\n {\n id: '__6-PRICHIN-ISPOLSOVAT-INSPECTION__',\n title:\n '6 причин цифровизации строительного контроля с SIGNAL INSPECTION',\n to: '/blog/6-prichin-ispolsovat-inspection/',\n image:\n images.prichiny_ispolsovat_inspection.childImageSharp.gatsbyImageData,\n },\n ],\n [AppRegionEnum.Us]: [],\n }\n\n return news[region]\n}\n\nconst imagesQuery = graphql`\n query {\n prichiny_ispolsovat_inspection: file(\n relativePath: { eq: \"blog/6-prichin-ispolsovat-inspection/preview.png\" }\n ) {\n childImageSharp {\n gatsbyImageData(width: 716, placeholder: BLURRED)\n }\n }\n }\n`\n","import React from 'react'\nimport { useTranslations } from '../hooks/use-translations'\nimport SEO from '../components/seo'\nimport News from '../components/News'\nimport { GlobalContext } from '../context/GlobalContext'\nimport { AppRegionEnum } from '../types/app-region.enum'\nimport { useBlogData } from '../hooks/useBlogData'\n\nconst BlogPage: React.FC = () => {\n const { t } = useTranslations()\n const { region } = React.useContext(GlobalContext)\n const news = useBlogData(region as AppRegionEnum)\n const title = t('Blog')\n\n return (\n <>\n \n \n \n )\n}\n\nexport default BlogPage\n"],"names":["section","bg_white","bg_light","bg_dark","className","id","bgColor","children","cn","s","props","width","height","viewBox","fill","color","xmlns","d","fillOpacity","fillRule","clipRule","logo","NewsItem","data","imageWrapClassName","bodyClassName","useTranslations","t","getPath","region","React","GlobalContext","Link","to","title","image","G","alt","AppRegionEnum","type","date","items","Section","Container","map","item","key","imagesQuery","news","images","useStaticQuery","prichiny_ispolsovat_inspection","childImageSharp","gatsbyImageData","useBlogData","description","News"],"sourceRoot":""}