{"version":3,"sources":["webpack:///./src/pages/news-and-events/news-releases.js","webpack:///./src/utils/sorting.js","webpack:///./src/components/PaginationNav/PaginationNav.module.scss","webpack:///./src/components/LinkList/LinkList.js","webpack:///./src/components/PaginationNav/PaginationNav.js","webpack:///./src/components/LinkList/LinkList.module.scss"],"names":["NewsReleasesPage","_ref","data","intl","useIntl","currentPage","setPage","useState","newsArr","markdownArticles","edges","map","link","path","node","frontmatter","title","toLowerCase","replace","text","subtitle","date","moment","format","internal","React","createElement","Layout","header","className","FormattedMessage","id","breadcrumb","SEO","lang","locale","formatMessage","Container","Row","Col","Alert","href","LinkList","links","getPaginatedResults","length","PaginationNav","clickEvt","resultsLength","arr","page","first","last","slice","orderByDate","key","sort","a","b","dateA","Date","getTime","dateB","module","exports","numberedList","props","ListType","ClassNames","componentStyles","linkList","filter","hideFrench","i","Link","to","description","centered","FaExternalLinkAlt","icon","style","fontWeight","numPages","Math","ceil","paginationNav","role","parseInt","disabled","FaAngleDoubleLeft","textLabel","onClick","FaAngleLeft","getPageItems","pageItems","firstPage","lastPage","classes","numberedLink","active","push","FaAngleRight","FaAngleDoubleRight"],"mappings":"wHAAA,qJAmEeA,UArDUC,IAAe,IAAd,KAAEC,GAAMD,EACjC,MAAME,EAAOC,qBACP,EAACC,EAAY,EAACC,GAAWC,mBAAS,GAElCC,EAAUN,EAAKO,iBAAiBC,MAAMC,IAAKC,IAAI,CACpDC,KAAM,kCAAkCD,EAAKE,KAAKC,YAAYC,MAAMC,cAAcC,QAAQ,OAAQ,QAClGC,KAAMP,EAAKE,KAAKC,YAAYC,MAC5BI,SAAUR,EAAKE,KAAKC,YAAYK,SAChCC,KAAMC,IAAOV,EAAKE,KAAKC,YAAYM,MAAME,OAAO,iBAChDC,UAAU,KAGX,OACCC,IAAAC,cAACC,IAAM,CACNC,OACCH,IAAAC,cAAA,QAAMG,UAAU,QACfJ,IAAAC,cAACI,mBAAgB,CAACC,GAAG,sBAGvBC,WAAY,CACXb,KAAMM,IAAAC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C/D,IAAAC,cAAA,QAAMG,UAAWwC,IAAgBqB,WAAW,QAAW,IAACjE,IAAAC,cAAC4E,IAAkB,OAG5E7E,IAAAC,cAAA,MAAI4D,KAAK,QACR7D,IAAAC,cAAA,UAAQiE,QAASA,IAAM5C,EAASmC,IAC/BzD,IAAAC,cAAA,QAAMG,UAAWwC,IAAgBqB,WAAW,QAAW,IAACjE,IAAAC,cAAC4E,IAAkB,Y,qBC/FlFvC,EAAOC,QAAU,CAAC,SAAW,mCAAmC,SAAW,mCAAmC,QAAU,kCAAkC,KAAO,+BAA+B,MAAQ,gCAAgC,YAAc,sCAAsC,SAAW","file":"component---src-pages-news-and-events-news-releases-js-eb7962d8ec7a9d31567c.js","sourcesContent":["import React, { useState } from 'react';\r\nimport { graphql } from 'gatsby';\r\nimport moment from 'moment';\r\nimport { Container, Row, Col } from 'react-grid-system';\r\nimport { useIntl, FormattedMessage } from 'gatsby-plugin-intl';\r\n\r\nimport Layout from '../../components/Layouts/layout';\r\nimport Alert from '../../components/Alert/Alert';\r\nimport SEO from '../../components/seo';\r\nimport LinkList from '../../components/LinkList/LinkList';\r\nimport PaginationNav from '../../components/PaginationNav/PaginationNav';\r\n\r\nimport { getPaginatedResults } from '../../utils/sorting';\r\n\r\nconst NewsReleasesPage = ({ data }) => {\r\n\tconst intl = useIntl();\r\n\tconst [currentPage, setPage] = useState(1);\r\n\r\n\tconst newsArr = data.markdownArticles.edges.map((link) => ({\r\n\t\tpath: `/news-and-events/news-releases/${link.node.frontmatter.title.toLowerCase().replace(/\\s+/g, '-')}/`,\r\n\t\ttext: link.node.frontmatter.title,\r\n\t\tsubtitle: link.node.frontmatter.subtitle,\r\n\t\tdate: moment(link.node.frontmatter.date).format('MMMM Do, YYYY'),\r\n\t\tinternal: true\r\n\t}));\r\n\r\n\treturn (\r\n\t\t \r\n\t\t\t\t\t\t\t\t\tPour les services en français, veuillez contacter le Service des licences et à la\r\n\t\t\t\t\t\t\t\t\tclientèle de l’Office de réglementation de la construction des logements au\r\n\t\t\t\t\t\t\t\t\t416-487-HCRA (4272) ou info@hcraontario.ca\r\n\t\t\t\t\t\t\t\t