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EAAOgD,EAAUC,EAAO,EAsBvC0F,GAnBsBC,MAC7B,IAAKnB,EACH,OAAO,KAGT,MAAM,MAAEzH,EAAK,SAAEgD,GAAayE,EAE5B,OAAOQ,EAAejI,EAAOgD,EAAS,EAa/B4F,IACDlI,EAAAA,EAAAA,KAACkG,EAAS,CAACC,KAAMA,OAElBa,IACChH,EAAAA,EAAAA,KAACmI,GAAU,IAAKnB,MAEfG,IACDnH,EAAAA,EAAAA,KAACoI,GAAAA,EAAkB,CACjBjB,OAAQA,EACRkB,OAAQ,CACN,CAAC1F,EAAAA,GAAUC,cAAiC,OAAlBsE,QAAkB,IAAlBA,OAAkB,EAAlBA,EAAoBoB,iBAC9C,CAAC3F,EAAAA,GAAU4F,YAA0B,OAAbtB,QAAa,IAAbA,OAAa,EAAbA,EAAeqB,oBAI5CrB,IACCjH,EAAAA,EAAAA,KAACwI,EAAAA,EAAa,IAAKvB,EAAewB,mBAAoBpB,EAAc1E,EAAAA,GAAU4F,eAE7ElB,EAAc1E,EAAAA,GAAUC,iBAAmBsE,IAC5ClH,EAAAA,EAAAA,KAAC0I,EAAAA,EAAiB,IAAKxB,SAGd,EClJnByB,EAAAA,EAAOC,MAAQA,EACfD,EAAAA,EAAOE,SAAWA,EAClBF,EAAAA,EAAOG,eAAiBA,EAExBH,EAAAA,EAAOI,SAAWA,E","sources":["webpack://tig-front/./src/pages/HomePage/components/PageHeader/PageHeader.module.scss?22f7","pages/HomePage/components/PageHeader/PageHeader.tsx","webpack://tig-front/./src/pages/HomePage/components/Rethink/Rethink.module.scss?e4b5","pages/HomePage/components/Rethink/Rethink.tsx","webpack://tig-front/./src/pages/HomePage/components/ArticlesCarousel/ArticlesCarousel.module.scss?47e1","pages/HomePage/components/ArticlesCarousel/ArticlesCarousel.tsx","webpack://tig-front/./src/pages/HomePage/components/News/News.module.scss?f619","pages/HomePage/components/News/News.tsx","webpack://tig-front/./src/pages/HomePage/components/WatchSpace/WatchSpace.module.scss?f0a5","pages/HomePage/components/WatchSpace/WatchSpace.tsx","webpack://tig-front/./src/pages/HomePage/HomePage.module.scss?bae6","pages/HomePage/HomePage.tsx","../temp/HomePage.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"container\":\"bF_g\",\"slide\":\"bF_hy\",\"image\":\"bF_dx\",\"textContainer\":\"bF_dF\",\"title\":\"bF_cX\",\"description\":\"bF_c\",\"button\":\"bF_dQ\",\"arrow\":\"bF_hz\",\"arrowLeft\":\"bF_hB\",\"arrowRight\":\"bF_hC\",\"dots\":\"bF_hD\",\"descriptionCol\":\"bF_hF\"};","import React, {\n FC, memo, ReactElement, useCallback, useMemo,\n} from 'react';\nimport classNames from 'classnames';\nimport { ResponsiveImageUrls } from '@/types';\nimport Carousel from '@/common/components/Carousel/Carousel';\nimport ResponsiveImage from '@/common/components/ResponsiveImage/ResponsiveImage';\nimport Button from '@/common/components/Button/Button';\nimport grid from '@/common/css/grid.module.scss';\nimport styles from './PageHeader.module.scss';\n\nexport interface PageHeaderProps {\n carousel?: CarouselItem[];\n}\n\ninterface CarouselItem {\n imageUrls: ResponsiveImageUrls;\n title: string;\n description: string;\n button: {\n text: string;\n href: string;\n };\n}\n\nconst PageHeader: FC = memo(({ carousel }: PageHeaderProps) => {\n const renderTitle = useCallback((title, index) => {\n if (!title) {\n return null;\n }\n\n const titleClassName = classNames(\n styles.title,\n grid.colSm6,\n grid.colXl8,\n grid.offsetSm1,\n grid.offsetMd2,\n );\n\n if (index) {\n return (\n
\n {title}\n
\n );\n }\n\n return (\n

\n {title}\n

\n );\n }, []);\n\n const renderSlide = useCallback(({\n imageUrls,\n title,\n description,\n button,\n }: CarouselItem, index: number): ReactElement => (\n <>\n {!!imageUrls && (\n \n )}\n
\n
\n {renderTitle(title, index)}\n
\n
\n
\n {description && (\n

\n {description}\n

\n )}\n {button && (\n \n )}\n
\n
\n
\n \n ), [renderTitle]);\n\n const slideProps = useMemo(() => ({\n itemRenderer: renderSlide,\n className: classNames(grid.container, styles.slide),\n }), [renderSlide]);\n\n const arrowsProps = useMemo(() => ({\n classNameLeft: classNames(styles.arrow, styles.arrowLeft),\n classNameRight: classNames(styles.arrow, styles.arrowRight),\n }), []);\n\n const dotsProps = useMemo(() => ({\n className: styles.dots,\n }), []);\n\n return (\n
\n {!!carousel && (\n \n )}\n
\n );\n});\n\nexport default PageHeader;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"bk_g\",\"link\":\"bk_f8\"};","import React, { FC, memo } from 'react';\nimport keys from 'weak-key';\nimport classNames from 'classnames';\nimport grid from '@/common/css/grid.module.scss';\nimport styles from './Rethink.module.scss';\n\ninterface RethinkProps {\n items: RethinkItem[];\n}\n\nexport interface RethinkItem {\n text: string;\n href: string;\n}\n\nconst Rethink: FC = memo(({\n items,\n}: RethinkProps) => (\n
\n
\n {items.map((item) => (\n \n {`${item.text} `}\n \n ))}\n
\n
\n));\n\nexport default Rethink;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"Z_g\",\"title\":\"Z_cX\",\"bulletsContainer\":\"Z_d7\",\"bullet\":\"Z_d8\",\"bulletActive\":\"Z_d9\",\"slidesContainer\":\"Z_fQ\",\"articleCard\":\"Z_fR\",\"cardImageContainer\":\"Z_fS\",\"cardTextContainer\":\"Z_c2\",\"banner\":\"Z_fk\"};","import React, {\n FC, ReactNode, ReactNodeArray, useCallback, useEffect, useState,\n} from 'react';\nimport classNames from 'classnames';\nimport key from 'weak-key';\nimport { debounce } from '@/helpers/debounce';\nimport Breakpoints from '@/common/constants/breakpoints';\nimport { ModalName, useToggleModalsContext } from '@/common/contexts/globalModalContext';\nimport ListCard, { ListCardProps } from '@/common/components/ListCard/ListCard';\nimport { useSwipeable } from 'react-swipeable';\nimport Banner, { BannerComponentProps } from '@/common/components/Banner/Banner';\nimport grid from '@/common/css/grid.module.scss';\nimport styles from './ArticlesCarousel.module.scss';\n\ninterface ArticlesCarouselProps {\n title: string;\n articles: ListCardProps[];\n banner?: BannerComponentProps;\n}\n\nconst ArticlesCarousel: FC = ({\n title,\n articles,\n banner,\n}) => {\n const toggleModal = useToggleModalsContext();\n\n const showCustomReportModal = useCallback((): void => {\n toggleModal({ [ModalName.customReport]: true });\n }, [toggleModal]);\n\n const slidesAmount = banner ? articles.length + 1 : articles.length;\n\n const [currentArticleIndex, setCurrentArticleIndex] = useState(0);\n\n const renderCard = (article: ListCardProps): ReactNode => (\n \n );\n\n const renderCards = (): ReactNode | ReactNodeArray => {\n if (banner) {\n const bannerProps = { ...banner, button: { ...banner.button, onClick: showCustomReportModal } };\n\n return (\n <>\n {renderCard(articles[0])}\n \n \n \n {articles.slice(1).map(renderCard)}\n \n );\n }\n\n return articles.map(renderCard);\n };\n\n const renderBullets = (): ReactNode => {\n const bullets: ReactNode[] = [];\n\n for (let i = 0; i < slidesAmount; i += 1) {\n const bulletClasses = {\n [styles.bullet]: true,\n [styles.bulletActive]: i === currentArticleIndex,\n };\n\n const bulletClickHandler = (): void => {\n setCurrentArticleIndex(i);\n };\n\n bullets.push((
  • ));\n }\n\n return (
      {bullets}
    );\n };\n\n const handleSwipeLeft = (): void => {\n if (currentArticleIndex === slidesAmount - 1) {\n return;\n }\n\n setCurrentArticleIndex(currentArticleIndex + 1);\n };\n\n const handleSwipeRight = (): void => setCurrentArticleIndex(currentArticleIndex - 1);\n\n const swipeHandlers = useSwipeable({\n onSwipedLeft: handleSwipeLeft,\n onSwipedRight: handleSwipeRight,\n preventDefaultTouchmoveEvent: true,\n trackMouse: false,\n });\n\n let latestViewportSize: number;\n\n const resizeHandler = debounce((): void => {\n const windowWidth = window.innerWidth;\n\n if ((latestViewportSize < Breakpoints.md) && (windowWidth >= Breakpoints.md)) {\n setCurrentArticleIndex(0);\n }\n\n latestViewportSize = windowWidth;\n }, 200);\n\n useEffect(() => {\n window.addEventListener('resize', resizeHandler);\n\n return (): void => {\n window.removeEventListener('resize', resizeHandler);\n };\n });\n\n return (\n
    \n
    {title}
    \n
    \n \n {renderCards()}\n
    \n {renderBullets()}\n
    \n \n );\n};\n\nexport default ArticlesCarousel;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"bc_g\",\"newsItem\":\"bc_f0\",\"title\":\"bc_cX\",\"dateBlock\":\"bc_f1\"};","import React, { FC } from 'react';\nimport key from 'weak-key';\nimport styles from './News.module.scss';\n\nexport interface NewsBlockProps {\n news?: NewsItem[];\n}\n\ninterface NewsItem {\n dayOfWeek: string;\n date: string;\n title: string;\n url: string;\n}\n\nconst NewsBlock: FC = ({\n news,\n}: NewsBlockProps) => {\n if (!news) {\n return null;\n }\n\n return (\n
    \n {news.map(({\n url, title, dayOfWeek, date,\n }) => (\n
    \n {title}\n
    \n
    {dayOfWeek}
    \n
    {date}
    \n
    \n
    \n ))}\n
    \n );\n};\n\nNewsBlock.displayName = 'News';\n\nexport default NewsBlock;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"bd_g\",\"image\":\"bd_dx\",\"rowWrapper\":\"bd_f2\",\"title\":\"bd_cX\",\"description\":\"bd_c\",\"button\":\"bd_dQ\"};","import React, { FC, memo } from 'react';\nimport classNames from 'classnames';\nimport { ResponsiveImageUrls } from '@/types';\nimport ResponsiveImage from '@/common/components/ResponsiveImage/ResponsiveImage';\nimport Button from '@/common/components/Button/Button';\nimport grid from '@/common/css/grid.module.scss';\nimport styles from './WatchSpace.module.scss';\n\nexport interface WatchSpaceProps {\n title: string;\n text: string;\n button: {\n text: string;\n href: string;\n };\n backgroundImages: ResponsiveImageUrls;\n}\n\nconst WatchSpace: FC = memo(({\n title, text, button, backgroundImages,\n}: WatchSpaceProps) => (\n
    \n {!!backgroundImages && (\n \n )}\n
    \n
    \n {title && (\n
    \n {title}\n
    \n )}\n {text && (\n
    \n {text}\n
    \n )}\n {button && (\n \n )}\n
    \n
    \n
    \n));\n\nexport default WatchSpace;\n","// extracted by mini-css-extract-plugin\nexport default {\"contentContainer\":\"g_cN\"};","import React, { FC, ReactNode } from 'react';\nimport { getExternalFormsMapping } from '@/helpers/externalForm';\nimport { MasterLayoutProps } from '@/common/layouts/MasterLayout/types';\nimport { ResponsiveImageUrls } from '@/types';\nimport { ModalName } from '@/common/contexts/globalModalContext';\nimport MasterLayout from '@/common/layouts/MasterLayout/MasterLayout';\nimport SignUpSection, { SignUpSectionProps } from '@/common/components/SignUpSection/SignUpSection';\nimport { BannerProps } from '@/common/components/Banner/Banner';\nimport CustomReportModal, { CustomReportModalProps } from '@/common/components/CustomReportModal/CustomReportModal';\nimport PageHeader, { PageHeaderProps } from '@/pages/HomePage/components/PageHeader/PageHeader';\nimport Rethink, { RethinkItem } from '@/pages/HomePage/components/Rethink/Rethink';\nimport ArticlesCarousel from '@/pages/HomePage/components/ArticlesCarousel/ArticlesCarousel';\nimport NewsBlock, { NewsBlockProps } from '@/pages/HomePage/components/News/News';\nimport WatchSpace, { WatchSpaceProps } from '@/pages/HomePage/components/WatchSpace/WatchSpace';\nimport ExternalModalForms from '@/common/components/Modal/ExternalModalForms/ExternalModalForms';\nimport grid from '@/common/css/grid.module.scss';\nimport styles from './HomePage.module.scss';\n\ninterface HomePageProps extends MasterLayoutProps, PageHeaderProps, NewsBlockProps {\n rethink?: RethinkItem[];\n featured?: {\n title: string;\n mark: string;\n reports: Report[];\n };\n industryInsight?: {\n title: string;\n articles: IndustryInsight[];\n };\n researchArticles?: {\n title: string;\n articles: Article[];\n };\n watchSpace?: WatchSpaceProps;\n signUpSection?: SignUpSectionProps;\n banner?: BannerProps;\n customInsightPopup?: CustomReportModalProps;\n}\n\ninterface Article {\n imageUrls: ResponsiveImageUrls;\n mainText: string;\n overlayText: string;\n button: {\n href: string;\n };\n}\n\ntype IndustryInsight = Article;\n\ninterface Report {\n imageUrls: ResponsiveImageUrls;\n link: string;\n itemId: number;\n title: string;\n description: string;\n}\n\nconst HomePage: FC = ({\n carousel,\n rethink,\n featured,\n industryInsight,\n researchArticles,\n news,\n watchSpace,\n signUpSection,\n banner,\n customInsightPopup,\n pardot,\n ...masterLayoutProps\n}) => {\n const externalForms = getExternalFormsMapping(pardot);\n\n const renderReports = (): ReactNode => {\n if (!featured) {\n return null;\n }\n\n return (\n \n );\n };\n\n const renderArticles = (title: string, articles: Article[], bannerProps?: BannerProps): ReactNode => (\n ({\n title: article.mainText,\n imageUrls: article.imageUrls,\n description: article.overlayText,\n link: article.button?.href,\n }))}\n banner={bannerProps}\n title={title}\n />\n );\n\n const renderIndustryInsights = (): ReactNode => {\n if (!industryInsight) {\n return null;\n }\n\n const { title, articles } = industryInsight;\n\n return renderArticles(title, articles, banner);\n };\n\n const renderResearchArticles = (): ReactNode => {\n if (!researchArticles) {\n return null;\n }\n\n const { title, articles } = researchArticles;\n\n return renderArticles(title, articles);\n };\n\n return (\n \n \n
    \n
    \n {rethink && (\n \n )}\n {renderReports()}\n {renderIndustryInsights()}\n {renderResearchArticles()}\n \n
    \n {watchSpace && (\n \n )}\n {!!pardot && (\n \n )}\n {signUpSection && (\n \n )}\n {(!externalForms[ModalName.customReport] && !!customInsightPopup) && (\n \n )}\n
    \n
    \n );\n};\n\nexport default HomePage;\n","import 'react-app-polyfill/stable';\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport * as ReactDOMServer from 'react-dom/server';\nimport HomePage from '@/pages/HomePage/HomePage';\n\nglobal.React = React;\nglobal.ReactDOM = ReactDOM;\nglobal.ReactDOMServer = ReactDOMServer;\n\nglobal.HomePage = HomePage;\n"],"names":["memo","_ref","carousel","renderTitle","useCallback","title","index","titleClassName","classNames","styles","grid","colSm6","colXl8","offsetSm1","offsetMd2","_jsx","className","children","renderSlide","_ref2","imageUrls","description","button","_jsxs","_Fragment","ResponsiveImage","alt","urls","row","colSm9","colMd7","colLg6","Button","customClassNames","href","text","slideProps","useMemo","itemRenderer","container","arrowsProps","classNameLeft","classNameRight","dotsProps","Carousel","items","colSm8","colMd10","colLg8","offsetLg2","map","item","keys","articles","banner","toggleModal","useToggleModalsContext","showCustomReportModal","ModalName","customReport","slidesAmount","length","currentArticleIndex","setCurrentArticleIndex","useState","renderCard","article","ListCard","customClasses","articleCard","imageContainer","cardImageContainer","textContainer","cardTextContainer","style","transform","key","swipeHandlers","useSwipeable","onSwipedLeft","handleSwipeLeft","onSwipedRight","handleSwipeRight","preventDefaultTouchmoveEvent","trackMouse","latestViewportSize","resizeHandler","debounce","windowWidth","window","innerWidth","Breakpoints","md","useEffect","addEventListener","removeEventListener","wrapper","slidesContainer","renderCards","bannerProps","onClick","colMd4","Banner","slice","renderBullets","bullets","i","bulletClasses","bullet","bulletActive","bulletClickHandler","push","bulletsContainer","NewsBlock","news","url","dayOfWeek","date","displayName","backgroundImages","colSm10","colMd6","colLg7","rethink","featured","industryInsight","researchArticles","watchSpace","signUpSection","customInsightPopup","pardot","masterLayoutProps","externalForms","getExternalFormsMapping","renderArticles","ArticlesCarousel","_article$button","mainText","overlayText","link","MasterLayout","PageHeader","Rethink","reports","renderIndustryInsights","renderResearchArticles","WatchSpace","ExternalModalForms","titles","modalWindowTitle","newsletter","SignUpSection","shouldRenderModal","CustomReportModal","global","React","ReactDOM","ReactDOMServer","HomePage"],"sourceRoot":""}