{"version":3,"file":"static/js/newsListing.ddc20f9b.js","mappings":"6RACA,QAA4B,MAA5B,EAAkD,MAAlD,EAA4E,MAA5E,EAAwG,M,aCoBxG,MA8CA,EA9CkDA,IAK3C,IAL4C,KACjDC,EAAI,OACJC,EAAM,cACNC,KACGC,GACJJ,EACC,MAAMK,GAAkBC,EAAAA,EAAAA,QAA8B,MAEhDC,IAA+BC,EAAAA,EAAAA,GAAgB,CAAEN,SAAQO,UAAWC,EAAAA,GAAUC,aAE9EC,EAA6C,OAAJX,QAAI,IAAJA,OAAI,EAAJA,EAAMY,KAAIC,IAAA,IAAC,MACxDC,EAAK,cAAEC,EAAa,IAAEC,EAAG,OAAEC,GAC5BJ,EAAA,MAAM,CACLC,QACAI,YAAaH,GAAiB,GAC9BI,KAAMH,EACNI,UAAWH,EACXI,cAAe,CACbC,UAAWC,EACXC,cAAeD,EACfL,YAAaK,GAEhB,IAED,OACEE,EAAAA,EAAAA,MAACC,EAAAA,EAAa,CACZtB,gBAAiBA,EACjBE,4BAA6BA,EAC7BJ,cAAeA,KACXC,EAAkBwB,SAAA,EAEtBC,EAAAA,EAAAA,KAAA,OAAKC,IAAKzB,EAAiB0B,UAAWP,EAAiBI,UACrDC,EAAAA,EAAAA,KAACG,EAAAA,EAAc,CAACC,MAAOrB,QAEtBV,IACD2B,EAAAA,EAAAA,KAACK,EAAAA,EAAkB,CACjBhC,OAAQA,EACRiC,OAAQ,CACN,CAACzB,EAAAA,GAAUC,YAA0B,OAAbR,QAAa,IAAbA,OAAa,EAAbA,EAAeiC,sBAI/B,ECzDpBC,EAAAA,EAAOC,MAAQA,EACfD,EAAAA,EAAOE,SAAWA,EAClBF,EAAAA,EAAOG,eAAiBA,EAExBH,EAAAA,EAAOI,gBAAkBA,C","sources":["webpack://tig-front/./src/pages/NewsListingPage/NewsListingPage.module.scss?358d","pages/NewsListingPage/NewsListingPage.tsx","../temp/NewsListingPage.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"container\":\"d_f\",\"cardContainer\":\"d_g\",\"cardTextContainer\":\"d_h\",\"cardTextDescription\":\"d_j\"};","import React, { FC, useRef } from 'react';\nimport { ResponsiveImageUrls } from '@/types';\nimport { hasExternalForm } from '@/helpers/externalForm';\nimport { ModalName } from '@/common/contexts/globalModalContext';\nimport { ListCardProps } from '@/common/components/ListCard/ListCard';\nimport ListingLayout, { ListingLayoutProps } from '@/common/layouts/ListingLayout/ListingLayout';\nimport ListingGallery from '@/common/components/ListingGallery/ListingGallery';\nimport ExternalModalForms from '@/common/components/Modal/ExternalModalForms/ExternalModalForms';\nimport styles from './NewsListingPage.module.scss';\n\ninterface NewsItem {\n title: string;\n publishedDate?: string;\n images: ResponsiveImageUrls;\n url: string;\n}\n\ninterface NewsListingPageProps extends ListingLayoutProps {\n news?: NewsItem[];\n}\n\nconst NewsListingPage: FC = ({\n news,\n pardot,\n signUpSection,\n ...listingLayoutProps\n}) => {\n const itemRefToScroll = useRef(null);\n\n const shouldRenderNewsletterModal = !hasExternalForm({ pardot, modalName: ModalName.newsletter });\n\n const newsCards: ListCardProps[] | undefined = news?.map(({\n title, publishedDate, url, images,\n }) => ({\n title,\n description: publishedDate || '',\n link: url,\n imageUrls: images,\n customClasses: {\n container: styles.cardContainer,\n textContainer: styles.cardTextContainer,\n description: styles.cardTextDescription,\n },\n }));\n\n return (\n \n
\n \n
\n {!!pardot && (\n \n )}\n \n );\n};\n\nexport default NewsListingPage;\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 NewsListingPage from '@/pages/NewsListingPage/NewsListingPage';\n\nglobal.React = React;\nglobal.ReactDOM = ReactDOM;\nglobal.ReactDOMServer = ReactDOMServer;\n\nglobal.NewsListingPage = NewsListingPage;\n"],"names":["_ref","news","pardot","signUpSection","listingLayoutProps","itemRefToScroll","useRef","shouldRenderNewsletterModal","hasExternalForm","modalName","ModalName","newsletter","newsCards","map","_ref2","title","publishedDate","url","images","description","link","imageUrls","customClasses","container","styles","textContainer","_jsxs","ListingLayout","children","_jsx","ref","className","ListingGallery","cards","ExternalModalForms","titles","modalWindowTitle","global","React","ReactDOM","ReactDOMServer","NewsListingPage"],"sourceRoot":""}