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SAEhCL,EAAEyB,EAAK7B,QAJHK,EAOX,OAINE,EAAAA,EAAAA,KAAC+B,EAAAA,GAAc,CAAA7B,UACbF,EAAAA,EAAAA,KAACgC,EAAAA,EAAG,CAACzB,QAAQ,gBAAeL,SACN,kBAAZP,GACNA,EAAQ0B,KACN,SACEC,EAKAxB,GAEA,OACEO,EAAAA,EAAAA,MAACI,EAAAA,EAAG,CAAUwB,KAAM,GAAG/B,SAAA,EACrBF,EAAAA,EAAAA,KAACc,EAAAA,EAAO,CACNC,IAAKO,EAAK9B,KACVwB,MAAM,OACNC,OAAO,UAETjB,EAAAA,EAAAA,KAACkC,EAAAA,GAAQ,CAAAhC,SAAEL,EAAEyB,EAAK7B,UAClBO,EAAAA,EAAAA,KAACmC,EAAAA,GAAO,CAAAjC,SAAEL,EAAEyB,EAAK5B,aAPTI,EAUd,mBAWxB,G","sources":["components/ContentBlock/index.tsx"],"sourcesContent":["import { Row, Col } from \"antd\";\r\nimport { Fade } from \"react-awesome-reveal\";\r\nimport { withTranslation } from \"react-i18next\";\r\n\r\nimport { ContentBlockProps } from \"./types\";\r\nimport { Button } from \"../../common/Button\";\r\nimport { SvgIcon } from \"../../common/SvgIcon\";\r\nimport {\r\n ContentSection,\r\n Content,\r\n ContentWrapper,\r\n ServiceWrapper,\r\n MinTitle,\r\n MinPara,\r\n StyledRow,\r\n ButtonWrapper,\r\n} from \"./styles\";\r\n\r\nconst ContentBlock = ({\r\n icon,\r\n title,\r\n content,\r\n section,\r\n button,\r\n t,\r\n id,\r\n direction,\r\n}: ContentBlockProps) => {\r\n const scrollTo = (id: string) => {\r\n const element = document.getElementById(id) as HTMLDivElement;\r\n element.scrollIntoView({\r\n behavior: \"smooth\",\r\n });\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{t(title)}
\r\n {t(content)}\r\n {direction === \"right\" ? (\r\n \r\n {typeof button === \"object\" &&\r\n button.map(\r\n (\r\n item: {\r\n color?: string;\r\n title: string;\r\n },\r\n id: number\r\n ) => {\r\n return (\r\n scrollTo(\"about\")}\r\n >\r\n {t(item.title)}\r\n \r\n );\r\n }\r\n )}\r\n \r\n ) : (\r\n \r\n \r\n {typeof section === \"object\" &&\r\n section.map(\r\n (\r\n item: {\r\n title: string;\r\n content: string;\r\n icon: string;\r\n },\r\n id: number\r\n ) => {\r\n return (\r\n \r\n \r\n {t(item.title)}\r\n {t(item.content)}\r\n \r\n );\r\n }\r\n )}\r\n \r\n \r\n )}\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default withTranslation()(ContentBlock);\r\n"],"names":["withTranslation","_ref","icon","title","content","section","button","t","id","direction","_jsx","ContentSection","children","Fade","triggerOnce","_jsxs","StyledRow","justify","align","Col","lg","md","sm","xs","SvgIcon","src","width","height","ContentWrapper","Content","ButtonWrapper","map","item","Button","color","onClick","document","getElementById","scrollIntoView","behavior","scrollTo","ServiceWrapper","Row","span","MinTitle","MinPara"],"sourceRoot":""}