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A,KAAeC,EAAAA,EAAAA,KAZS,SAAAC,GAOtB,MAAO,CACLC,SAHED,EAHFE,KACEC,SAAYC,YAWhB,CACEf,kBAAAA,GAHJ,EAnCA,YAAqD,IAAtBgB,EAAsB,EAAtBA,SAAUJ,EAAY,EAAZA,SACvC,GAAgCK,EAAAA,EAAAA,UAAS,MAAlCC,EAAP,KAAiBC,EAAjB,KAOA,OALAC,EAAAA,EAAAA,YAAS,uBAAC,oGACWpB,EAAkBY,GAD7B,OACFlC,EADE,OAERyC,EAAYzC,GAFJ,2CAGP,IAEEwC,EAIDA,EAASG,SAAgC,UAArBH,EAASG,SACxB,QAAC,UAAD,MAGFC,EAAAA,SAAAA,IAAmBN,GAAU,SAAAO,GAClC,OAAOD,EAAAA,aAAmBC,EAAO,CAC/B7C,KAAMwC,QATD,aAAUM,UAAW,CAAEC,KAAM,IAAMC,QAAM,Q,uBC9B/CC,OAAOC,SAAWD,OAAOC,UAAY,IAAIC,KAAK,CAC7C,yBACA,WACE,OAAO,EAAQ,Y","sources":["webpack://_N_E/./src/account/components/MyComittees/components/CommitteeList.js","webpack://_N_E/./src/account/components/MyComittees/index.js","webpack://_N_E/./pages/account/my-committees/index.js","webpack://_N_E/./src/shared/utils/FullProfileProvider.js","webpack://_N_E/?df57"],"sourcesContent":["import { css } from '@emotion/react';\nimport React from 'react';\n\nimport Heading from '@/src/shared/components/Heading';\n\nconst styles = {\n committeeListHeader: css`\n padding: 0.8rem 0 1.2rem 0;\n `,\n};\n\nfunction CommitteeList({ committees }) {\n if (committees.length === 0) {\n return (\n

\n You are not on any committees. Please contact your account manager if you have any\n questions.\n

\n );\n }\n\n return (\n <>\n \n Committees ({committees.length})\n \n {committees.map(committee => {\n return

{committee.CommitteeDescription}

;\n })}\n \n );\n}\n\nexport default CommitteeList;\n","import { css } from '@emotion/react';\nimport React from 'react';\n\nimport CustomLink from '@/src/shared/components/Link';\n\nimport HeaderSection from '../HeaderSection';\nimport CommitteeList from './components/CommitteeList';\n\nconst styles = {\n committeesContainer: css`\n padding: 2.6rem 2.4rem;\n `,\n};\n\nfunction MyCommittees({ user }) {\n const accountManagerName = user.AccountManager;\n const accountManagerEmail = (\n {user.AccountManagerEmail}\n );\n\n return (\n
\n \n {accountManagerName !== '' && (\n

\n You belong to the following committees. To leave or join a committee, please contact your\n Account Manager, {accountManagerName}, at {accountManagerEmail}.\n

\n )}\n \n
\n );\n}\n\nexport default MyCommittees;\n","import React from 'react';\n\nimport MyAccount from '@/src/account/components/MyAccount';\nimport MyCommittees from '@/src/account/components/MyComittees';\nimport Container from '@/src/shared/components/Container';\nimport Layout from '@/src/shared/components/Layout';\nimport Section from '@/src/shared/components/Section';\nimport WebLogImage from '@/src/shared/components/WebLogImage';\nimport withAuthentication from '@/src/shared/components/WithAuthentication';\nimport FullProfileProvider from '@/src/shared/utils/FullProfileProvider';\n\nconst MyCommitteesPage = props => {\n return (\n \n
\n \n \n \n \n }\n />\n \n \n
\n
\n );\n};\n\nexport default withAuthentication(MyCommitteesPage);\n","import { Skeleton } from 'antd';\nimport Error from 'next/error';\nimport React, { useEffect, useState } from 'react';\nimport { connect } from 'react-redux';\n\nimport request from '@/utils/axios';\n\nasync function getProfileDetails(id) {\n try {\n const response = await request({\n url: `/profile/details?personId=${id}`,\n triggerLoad: false,\n });\n return response.data;\n } catch (err) {\n console.warn(err);\n return {\n error: 'There was an error processing the request',\n };\n }\n}\n\nfunction FullProfileProvider({ children, personId }) {\n const [userInfo, setUserInfo] = useState(null);\n\n useEffect(async () => {\n const user = await getProfileDetails(personId);\n setUserInfo(user);\n }, []);\n\n if (!userInfo) {\n return ;\n }\n\n if (userInfo.Success && userInfo.Success === 'false') {\n return ;\n }\n\n return React.Children.map(children, child => {\n return React.cloneElement(child, {\n user: userInfo,\n });\n });\n}\n\nconst mapStateToProps = state => {\n const {\n auth: {\n userinfo: { PersonID },\n },\n } = state;\n\n return {\n personId: PersonID,\n };\n};\n\nexport default connect(\n mapStateToProps,\n {\n getProfileDetails,\n }\n)(FullProfileProvider);\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/account/my-committees\",\n function () {\n return require(\"private-next-pages/account/my-committees/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/account/my-committees\"])\n });\n }\n "],"names":["styles","committeeListHeader","committees","length","Heading","type","theme","size","weight","css","map","committee","key","CommitteeCode","CommitteeDescription","committeesContainer","user","accountManagerName","AccountManager","accountManagerEmail","href","AccountManagerEmail","HeaderSection","headerText","Committees","withAuthentication","props","Layout","Section","bgColor","halfPad","Container","MyAccount","mainContent","FullProfileProvider","WebLogImage","path","title","getProfileDetails","id","request","url","triggerLoad","response","data","console","warn","error","connect","state","personId","auth","userinfo","PersonID","children","useState","userInfo","setUserInfo","useEffect","Success","React","child","paragraph","rows","active","window","__NEXT_P","push"],"sourceRoot":""}