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C,EAA3CA,QAAS2B,EAAkC,EAAlCA,SAAU6B,EAAwB,EAAxBA,QAAY3B,GAAY,kBAC5D,OACE,2BAAS/F,IAAG,CAAGH,EAAM4H,QAAQC,GAAU7H,EAAM4F,MAAMvB,GAAvC,QAAsD6B,GAC/DF,IAWP5B,EAAQ8D,aAAe,CACrB7D,QAAS,QACTwD,SAAS,GAGX,O,sBCzDKM,OAAOC,SAAWD,OAAOC,UAAY,IAAI9C,KAAK,CAC7C,uCACA,WACE,OAAO,EAAQ,Y","sources":["webpack://_N_E/./src/ceoComminucations/components/CeoCommunication.js","webpack://_N_E/./src/ceoComminucations/CeoCommunicaitonsList.js","webpack://_N_E/./pages/about/leadership/ceo-communications/index.js","webpack://_N_E/./src/shared/components/Layout.js","webpack://_N_E/./src/shared/components/MembershipPageWrap/index.js","webpack://_N_E/./src/shared/components/Section.js","webpack://_N_E/?f9d8"],"sourcesContent":["import { css, jsx } from '@emotion/core';\nimport { Icon } from 'antd';\nimport moment from 'moment';\nimport Link from 'next/link';\nimport React from 'react';\n\nimport { bp, colors } from '@/styles';\n\nconst style = {\n listContainer: fullWidth => css`\n display: flex;\n background-color: ${colors.white};\n max-width: ${fullWidth ? '100%' : '768px'};\n width: 100%;\n padding: 2rem 1.5rem 2rem 1.5rem;\n box-shadow: 0 6px 12px 0 rgba(35, 32, 32, 0.1);\n border-radius: 4px;\n &:hover {\n font-weight: bold;\n box-shadow: 0 11px 12px 0 rgba(35, 32, 32, 0.15);\n transform: translateY(-1px);\n }\n @media ${bp.md} {\n min-width: 70rem;\n max-width: 120.8rem;\n }\n margin: 0 auto;\n flex-direction: column;\n `,\n cardTextContainer: css`\n width: 100%;\n p {\n margin-bottom: 0;\n }\n `,\n cardSideContainer: css`\n justify-content: center;\n align-items: center;\n display: none;\n @media ${bp.md} {\n display: flex;\n }\n @media print {\n display: block;\n width: auto;\n }\n `,\n subject: css`\n font-size: 1.6rem;\n color: ${colors.secondaryBlue};\n @media print {\n font-size: 2.6rem;\n }\n `,\n cardIconRight: css`\n font-size: 2.4rem;\n color: ${colors.secondaryBlue};\n @media print {\n display: none;\n }\n `,\n wrapper: css`\n @media ${bp.md} {\n display: flex;\n }\n `,\n divinner: {\n container: css`\n width: 100%;\n display: block;\n margin-bottom: -16px !important;\n @media ${bp.md} {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n }\n `,\n smContainer: css`\n display: block;\n margin-left: auto;\n margin-right: auto;\n padding-left: 16px;\n padding-right: 16px;\n max-width: 800px;\n @media ${bp.md} {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n }\n `,\n topspacing: css`\n margin-top: 3.6rem;\n `,\n lhs: css`\n flex: 1;\n @media ${bp.sm} {\n margin-right: 32px;\n }\n @media print {\n margin-right: 0;\n }\n `,\n rhs: css`\n flex: 0 0 auto;\n max-width: 3rem;\n .ant-btn-group {\n @media print {\n display: none;\n }\n }\n `,\n full: css`\n clear: both;\n flex: 1;\n margin-bottom: 16px;\n width: 100%;\n @media ${bp.sm} {\n margin-right: 0px;\n }\n @media print {\n margin-right: 0;\n }\n `,\n buttonGroup: css`\n display: flex;\n justify-content: center;\n margin: 0 0 2.4rem;\n @media ${bp.md} {\n display: block;\n }\n `,\n note: css`\n font-size: 1.2rem;\n `,\n grayborder: css`\n background-color: #f6f5f5;\n border-bottom: solid 1px #dad9d7;\n border-top: solid 1px #dad9d7;\n `,\n center: css`\n text-align: center;\n `,\n right: css`\n text-align: right;\n `,\n bottom: css`\n margin: 3.6rem 0 0;\n `,\n },\n};\n\nfunction getFormatedDate(date) {\n const newDateFormat = moment(date);\n return newDateFormat.format('MM/DD/YYYY');\n}\n\nconst communication = ({ data }) => {\n const { ImageFolderName } = data;\n\n return (\n \n \n
\n
\n
{getFormatedDate(data.CompletionDate)}
\n

{data.Subject}

\n
\n
\n \n
\n
\n
\n \n );\n};\n\nexport default communication;\n","import { css, jsx } from '@emotion/core';\nimport React from 'react';\n\nimport CeoCommunication from '@/src/ceoComminucations/components/CeoCommunication';\n\nconst style = {\n bottomDivPad: css`\n padding-bottom: 20px;\n `,\n}\n\nconst CeoCommunicationsList = ({ data }) => {\n return(\n <>\n {data.length ? (\n (data)\n .map(items => (\n
\n \n
\n ))\n ) : (\n
\n No Data Available\n
\n )}\n \n )\n}\n\nexport default CeoCommunicationsList;\n\n","import { Pagination } from 'antd';\nimport moment from 'moment';\nimport { useRouter } from 'next/router';\nimport React, { useEffect, useState } from 'react';\nimport { connect } from 'react-redux';\n\nimport CeoCommunicationsList from '@/src/ceoComminucations/CeoCommunicaitonsList';\nimport Container from '@/src/shared/components/Container';\nimport Head from '@/src/shared/components/Head';\nimport Heading from '@/src/shared/components/Heading';\nimport Hero from '@/src/shared/components/Hero';\nimport Layout from '@/src/shared/components/Layout';\nimport withMembershipAccessWrap, {\n mapStateToProps,\n} from '@/src/shared/components/MembershipPageWrap';\nimport Section from '@/src/shared/components/Section';\nimport { ABOUT_ACCESS } from '@/src/shared/constants';\nimport { space } from '@/styles';\nimport request from '@/utils/axios';\nimport formatURL from '@/utils/formatURL';\n\nconst PAGE_SIZE = 20;\n\nconst CeoCommunications = () => {\n const router = useRouter();\n const [CommData, setCommData] = useState([]);\n\n useEffect(() => {\n const fetchPageData = async () => {\n const response = await request({\n url: `broadcast/viewonlinelist`,\n params: {\n broadcasttype: 2,\n },\n });\n const { data } = response;\n data.sort((a, b) => (moment(a.CompletionDate) < moment(b.CompletionDate) ? 1 : -1));\n setCommData(data);\n };\n fetchPageData();\n }, []);\n\n const [current, setCurrent] = useState(\n router.query.page && !Number.isNaN(router.query.page) ? Number(router.query.page) : 1\n );\n\n function handlePaginationChange(page) {\n setCurrent(page);\n const newURL = formatURL(router.asPath, { page });\n router.replace(newURL, newURL, { shallow: true });\n }\n\n function renderResults() {\n const paginatedResults = CommData.slice((current - 1) * PAGE_SIZE, current * PAGE_SIZE);\n const dataResults = {};\n for (let i = 0; i < paginatedResults.length; i += 1) {\n const results = paginatedResults[i];\n const resultDate = moment(results.CompletionDate).format('MMMM YYYY');\n if (resultDate in dataResults) {\n dataResults[resultDate].push(results);\n } else {\n dataResults[resultDate] = [results];\n }\n }\n\n return Object.entries(dataResults).map(([date, _results]) => {\n return (\n <>\n \n {date}\n \n \n \n );\n });\n }\n\n const pageTitle = 'CEO Communications';\n\n return (\n \n \n \n
\n \n \n {renderResults()}\n \n
\n
\n );\n};\n\nexport default connect(mapStateToProps)(\n withMembershipAccessWrap(CeoCommunications, ABOUT_ACCESS.CEO_COMMUNICATIONS, true)\n);\n","import PropTypes from 'prop-types';\nimport React, { PureComponent } from 'react';\n\nclass Layout extends PureComponent {\n render() {\n const { children } = this.props;\n return <>{children};\n }\n}\n\nLayout.propTypes = {\n children: PropTypes.node.isRequired,\n};\n\nexport default Layout;\n","import { useAuth0 } from '@auth0/auth0-react';\nimport Router from 'next/router';\nimport React, { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\n\nimport Error from '@/pages/_error';\nimport { checkAccess } from '@/src/shared/constants';\n\nimport LoadingPage from '../LoadingPage/LoadingPage';\n\nconst isBrowser = typeof window !== 'undefined';\n\nconst withMembershipAccessWrap = (PageComponent, memberLevels, ssr = false) => {\n return function PageComponentWithAccess(props) {\n const { loginWithRedirect, isLoading } = useAuth0();\n const { isLoggedIn, role } = useSelector(state => state.auth);\n const stateLoading = useSelector(state => state.auth.isLoading);\n const personId = useSelector(state => state.auth.userinfo.PersonID);\n\n useEffect(() => {\n if (!stateLoading && !isLoggedIn) {\n loginWithRedirect({\n appState: {\n returnTo: Router.pathname,\n },\n });\n }\n }, [isLoggedIn, stateLoading]);\n\n const hasAccess = checkAccess(memberLevels, role);\n const isAuthorized = personId && Array.isArray(role) && hasAccess;\n const errorCode = isLoggedIn && !hasAccess ? 401.4 : 401;\n\n if (!ssr || isBrowser) {\n if (isLoading || stateLoading) return ;\n if (!stateLoading && !isLoggedIn) {\n loginWithRedirect({\n appState: {\n returnTo: Router.pathname,\n },\n });\n }\n if (!stateLoading && isLoggedIn && !isAuthorized) return ;\n }\n\n return ;\n };\n};\n\nexport const mapStateToProps = state => {\n const {\n auth: {\n isLoggedIn,\n isLoading,\n role,\n userinfo: { PersonID },\n },\n } = state;\n return {\n isLoggedIn,\n isLoading,\n role,\n personId: PersonID,\n };\n};\n\nexport default withMembershipAccessWrap;\n","import { css, jsx } from '@emotion/react';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { bp, colors } from '@/styles';\n\nconst style = {\n section: halfPad => {\n const paddingValue = halfPad ? 20 : 40;\n return css`\n padding-top: ${paddingValue}px;\n padding-bottom: ${paddingValue}px;\n @media ${bp.md} {\n padding-top: ${paddingValue * 2}px;\n padding-bottom: ${paddingValue * 2}px;\n }\n @media print {\n padding-top: 28px !important;\n padding-bottom: 28px !important;\n }\n &:empty {\n padding: 0;\n }\n `;\n },\n theme: {\n white: css`\n background-color: ${colors.white};\n `,\n gray: css`\n background-color: ${colors.accentGrayUltralight};\n `,\n blue: css`\n color: ${colors.white};\n background-color: ${colors.secondaryBlue};\n `,\n },\n};\n\nconst Section = ({ bgColor, children, halfPad, ...props }) => {\n return (\n
\n {children}\n
\n );\n};\n\nSection.propTypes = {\n bgColor: PropTypes.oneOf(['gray', 'white', 'blue']),\n children: PropTypes.node.isRequired,\n halfPad: PropTypes.bool,\n};\n\nSection.defaultProps = {\n bgColor: 'white',\n halfPad: false,\n};\n\nexport default Section;\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/about/leadership/ceo-communications\",\n function () {\n return require(\"private-next-pages/about/leadership/ceo-communications/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/about/leadership/ceo-communications\"])\n });\n }\n "],"names":["style","listContainer","fullWidth","css","colors","bp","cardTextContainer","cardSideContainer","subject","cardIconRight","wrapper","divinner","container","smContainer","topspacing","lhs","rhs","full","buttonGroup","note","grayborder","center","right","bottom","date","data","ImageFolderName","href","as","CompletionDate","moment","format","Subject","type","bottomDivPad","length","map","items","CeoCommunication","connect","mapStateToProps","withMembershipAccessWrap","router","useRouter","useState","CommData","setCommData","useEffect","fetchPageData","request","url","params","broadcasttype","response","sort","a","b","query","page","Number","isNaN","current","setCurrent","pageTitle","Layout","Head","title","Hero","Section","bgColor","Container","size","onChange","newURL","formatURL","asPath","replace","shallow","total","pageSize","paginatedResults","slice","dataResults","i","results","resultDate","push","Object","entries","_results","Heading","weight","theme","space","renderResults","ABOUT_ACCESS","children","this","props","PureComponent","state","auth","isLoggedIn","isLoading","role","personId","userinfo","PersonID","PageComponent","memberLevels","useAuth0","loginWithRedirect","useSelector","stateLoading","appState","returnTo","Router","hasAccess","checkAccess","isAuthorized","Array","isArray","errorCode","status","section","halfPad","paddingValue","white","gray","blue","defaultProps","window","__NEXT_P"],"sourceRoot":""}