{"version":3,"sources":["webpack:///./src/components/PageMenu/PageMenu.tsx","webpack:///./src/pages/about-us/index.tsx","webpack:///./src/components/ButtonLink/ButtonLink.tsx","webpack:///./src/data/page-menus/about-us.ts"],"names":["PageMenu","menu","menuTitle","className","t","useTranslation","map","menuItem","i","key","textKey","to","iconOptions","icon","IconTypes","ARROW_NEXT","linkOptions","shouldEnableActiveState","enableActiveState","memo","withTranslation","LocaleNameSpaceKeys","ABOUT_US","props","activeLocaleTag","useLocaleContext","layoutOptions","seo","title","page","heroSection","options","accentColor","HeroSectionColors","CHERRY_RED","heroImage","fileName","alt","institutionImages","gptwImages","useStaticQuery","node","publicURL","gptwImageUrl","LocaleTag","EN","edges","find","n","match","institutions","reduce","accum","curr","paths","name","split","next","CDIC","COMMON","CBA","payments_canada_2","RDBA","i18nKey","Object","keys","institution","href","aria-label","src","aboutUsMenu","ButtonLinkType","ButtonLinkSize","defaultLinkOptions","isExternalLink","shouldOpenInNewTab","defaultStyleOptions","isInline","type","PRIMARY","size","LARGE","invertColors","ButtonLink","styleOptions","aLinkProps","children","ariaLabel","styleOptionsWithDefault","linkOptionsWithDefault","classNames","classnames","small","SMALL","aLinkPropsDefault","target","rel","linkProps","partiallyActive","activeClassName","undefined","getIcon","IconComp","className_","position","React","Fragment","role","getPathFromRouteKey","RouteKeys","COMMUNITY_CAREGIVING","FRAUD_ALERT","SCC"],"mappings":"4FAAA,uEAeA,MAAMA,EAA6B,IAAoD,IAApD,KAAEC,EAAF,UAAQC,EAAY,GAApB,UAAwBC,EAAY,IAAgB,EACrF,MAAM,EAAEC,GAAMC,cAoBd,OACE,yBAAKF,UAAY,YAAWA,GACzBD,GAAa,wBAAIC,UAAU,MAAMD,GAClC,4BApBKD,EAAKK,IAAI,CAACC,EAAUC,IACzB,wBAAIC,IAAM,GAAEF,EAASG,WAAWF,KAC9B,kBAAC,IAAD,eACEG,GAAIJ,EAASI,GACbC,YAAa,CAAEC,KAAMC,IAAUC,aAC1B,sBAAuBR,GAAY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xB3B,KAAMxD,EACNoF,OAAQ,UACRC,IAAK,cACFX,GAGCY,EAAY,CAChBtF,KACAuF,kBAAmBT,EAAuBxE,wBAC1CkF,iBAAiBV,aAAA,EAAAA,EAAwBxE,yBACrC,0BACAmF,GAGAC,EAAU,KACd,GAAIzF,EAAa,CACf,MAAM0F,EAAY,IAAD,IAAC,WAAEC,GAAH,SACf,0BAAMpG,UAAWoG,GACf,kBAAC,IAAD,CAAMzB,KAAMlE,EAAYC,SAG5B,OACE,kBAACyF,EAAD,CACEC,WAAa,uCAAoC3F,aAAA,EAAAA,EAAa4F,WAAY,UAIhF,OAAOC,IAAMC,UAGf,OAAOjB,EAAuBf,eAC5B,qCACEiC,KAAK,OACLxG,UAAWuF,GACPI,EACCP,EAAY,CAAE,aAAcA,GAAc,OAE5C3E,aAAD,EAACA,EAAa4F,WAAsC,UAA1B5F,aAAA,EAAAA,EAAa4F,YAAwBH,IAChEf,EAC0B,WAA1B1E,aAAA,EAAAA,EAAa4F,WAAwBH,KAGxC,kBAAC,IAAD,eAAMlG,UAAWuF,GAAgBO,EAAgBV,EAAY,CAAE,aAAcA,GAAc,OACtF3E,aAAD,EAACA,EAAa4F,WAAsC,UAA1B5F,aAAA,EAAAA,EAAa4F,YAAwBH,IAChEf,EAC0B,WAA1B1E,aAAA,EAAAA,EAAa4F,WAAwBH,MAK7BlF,mBAAKgE,I,oCCtJpB,4BAIA,MAAMb,EAA6B,CACjC,CACE3D,GAAIiG,YAAoBC,IAAUvF,SAASwF,sBAC3CpG,QAAS,kCAEX,CACEC,GAAIiG,YAAoBC,IAAUvF,SAASyF,aAC3CrG,QAAS,yBAEX,CACEC,GAAIiG,YAAoBC,IAAUvF,SAAS0F,KAC3CtG,QAAS,mBAIE4D,O","file":"component---src-pages-about-us-index-tsx-a89cf70dbce82082b02f.js","sourcesContent":["import React, { memo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { IconTypes } from '../Icon/Icon';\nimport { PageMenuLinks } from '../../data/page-menus/pageMenuTypes';\nimport ButtonLink from '../ButtonLink/ButtonLink';\nimport './style.scss';\n\nexport interface OwnProps {\n menuTitle?: string;\n menu: PageMenuLinks;\n className?: string;\n}\n\ntype Props = OwnProps;\n\nconst PageMenu: React.FC = ({ menu, menuTitle = '', className = '' }: Props) => {\n const { t } = useTranslation();\n\n const getMenuContent = () => {\n return menu.map((menuItem, i) => (\n
  • \n \n {t(menuItem.textKey)}\n \n
  • \n ));\n };\n\n return (\n
    \n {menuTitle &&

    {menuTitle}

    }\n \n
    \n );\n};\n\nexport default memo(PageMenu);\n","import React from 'react';\nimport { PageProps, graphql, useStaticQuery } from 'gatsby';\nimport { withTranslation, WithTranslation, Trans } from 'react-i18next';\n\nimport Layout, { LayoutOptions, HeroSectionColors } from '../../components/Layout/Layout';\nimport { LocaleNameSpaceKeys } from '../../localization/translations';\nimport PageMenu from '../../components/PageMenu/PageMenu';\nimport aboutUsMenu from '../../data/page-menus/about-us';\nimport { useLocaleContext } from '../../context/Locale';\nimport { LocaleTag } from '../../../config/locales';\nimport ExternalLink from '../../components/ExternalLink/ExternalLink';\n\nimport './style.scss';\n\ntype Props = PageProps & WithTranslation;\n\nconst AboutUs: React.FC = (props: Props) => {\n const { t } = props;\n const { activeLocaleTag } = useLocaleContext();\n\n const layoutOptions: LayoutOptions = {\n seo: {\n title: t('aboutUs.seo.title'),\n },\n page: {\n title: t('aboutUs.heading'),\n },\n heroSection: {\n options: {\n accentColor: HeroSectionColors.CHERRY_RED,\n heroImage: {\n fileName: 'hero-image-1.jpg',\n alt: 'Image',\n },\n },\n },\n };\n\n // const getContentBlocks = () => {\n // const contentBlocks: Array = t('aboutUs.contentBlock.blocks', { returnObjects: true });\n // return contentBlocks.map((block: any, i) => (\n // \n //
    {block.heading}
    \n //

    {block.body}

    \n //
    \n // ));\n // };\n\n const { institutionImages, gptwImages } = useStaticQuery(graphql`\n query aboutUsQuery {\n institutionImages: allFile(\n filter: { relativePath: { regex: \"/about-us//\" }, ext: { eq: \".jpg\" } }\n ) {\n edges {\n node {\n publicURL\n name\n }\n }\n }\n\n gptwImages: allFile(\n filter: { relativePath: { regex: \"/great-place-to-work/\" }, ext: { eq: \".png\" } }\n ) {\n edges {\n node {\n publicURL\n childImageSharp {\n fluid(maxWidth: 200, quality: 100, fit: CONTAIN) {\n ...GatsbyImageSharpFluid_withWebp\n }\n }\n }\n }\n }\n }\n `);\n\n const {\n node: { publicURL: gptwImageUrl },\n } =\n activeLocaleTag === LocaleTag.EN\n ? gptwImages.edges.find((n: any) =>\n n.node.publicURL.match('great-place-to-work-2024-about-us.png')\n )\n : gptwImages.edges.find((n: any) =>\n n.node.publicURL.match('great-place-to-work-2024-about-us-fr.png')\n );\n\n const institutions = institutionImages.edges.reduce(\n (accum: any, curr: any) => {\n const paths = curr.node.name.split('-');\n const next = { ...accum };\n\n if (next[paths[0]]) {\n next[paths[0]][paths[1]] = curr.node.publicURL;\n } else {\n next[paths[0]] = {\n [paths[1]]: curr.node.publicURL,\n };\n }\n\n return next;\n },\n {\n CDIC: {\n 'link-en': 'https://www.cdic.ca/your-coverage/list-of-member-institutions/',\n 'link-fr': 'https://www.sadc.ca/votre-protection/membres-de-la-sadc/',\n name: t(`${LocaleNameSpaceKeys.COMMON}:institutions.cdic.name`),\n },\n CBA: {\n 'link-en': 'https://cba.ca/article/member-banks',\n 'link-fr': 'https://cba.ca/article/banques-membres',\n name: t(`${LocaleNameSpaceKeys.COMMON}:institutions.cba.name`),\n },\n payments_canada_2: {\n 'link-en': 'https://www.payments.ca/our-directories/member-financial-institutions',\n 'link-fr':\n 'https://www.paiements.ca/r%C3%A9pertoires/institutions-financi%C3%A8res-membres',\n name: t(`${LocaleNameSpaceKeys.COMMON}:institutions.paymentsCanada.name`),\n },\n RDBA: {\n 'link-en': 'https://www.rdba.ca/',\n 'link-fr': 'https://www.rdba.ca/fr/',\n name: t(`${LocaleNameSpaceKeys.COMMON}:institutions.rdba.name`),\n },\n }\n );\n\n return (\n \n
    \n
    \n
    \n

    {t('aboutUs.companyOverview.heading')}

    \n

    \n \n

    \n {/*
    \n

    {t('aboutUs.contentBlock.heading')}

    \n {getContentBlocks()}\n
    */}\n
    \n {Object.keys(institutions).map((institution) => (\n
    \n \n \n \n
    \n ))}\n
    \n
    \n\n \n
    \n
    \n
    \n );\n};\n\nexport default withTranslation(LocaleNameSpaceKeys.ABOUT_US)(AboutUs);\n","import React, { memo } from 'react';\nimport classnames from 'classnames';\nimport './style.scss';\nimport Icon, { IconTypes } from '../Icon/Icon';\nimport Link from '../Link/Link';\n\nexport enum ButtonLinkType {\n PRIMARY = 'ButtonLink__primary',\n // SECONDARY = 'ButtonLink_secondary'\n}\n\nexport enum ButtonLinkSize {\n SMALL = 'ButtonLink__small',\n LARGE = 'ButtonLink__large',\n // SECONDARY = 'SECONDARY'\n}\nexport interface ButtonLinkLinkOptions {\n isExternalLink?: boolean;\n shouldOpenInNewTab?: boolean; // This option will be overridden if the external link is true\n shouldEnableActiveState?: boolean; // Only gets affected if isExternalLink is false\n}\n\nexport interface ButtonLinkStyleOptions {\n isInline?: boolean;\n type?: ButtonLinkType;\n size?: ButtonLinkSize;\n invertColors?: boolean;\n}\n\nexport interface ButtonLinkIconOptions {\n icon: IconTypes;\n position?: 'left' | 'right'; // default is always left\n}\n\ninterface AnchorLinkProps {\n href?: string;\n target?: string;\n rel?: string;\n}\n\nexport interface OwnProps {\n to: string;\n linkOptions?: ButtonLinkLinkOptions;\n iconOptions?: ButtonLinkIconOptions;\n children?: React.ReactNode;\n className?: string;\n styleOptions?: ButtonLinkStyleOptions;\n aLinkProps?: AnchorLinkProps;\n ariaLabel?: string;\n}\n\ntype Props = OwnProps;\n\nconst defaultLinkOptions: ButtonLinkLinkOptions = {\n isExternalLink: false,\n shouldOpenInNewTab: false, // This option will be overridden if the external link is true\n shouldEnableActiveState: true, // Only gets affected if isExternalLink is false\n};\n\nconst defaultStyleOptions: ButtonLinkStyleOptions = {\n isInline: false,\n type: ButtonLinkType.PRIMARY,\n size: ButtonLinkSize.LARGE,\n invertColors: false,\n};\n\nconst ButtonLink: React.FC = ({\n to,\n linkOptions,\n iconOptions,\n styleOptions,\n className = '',\n // onClick = () => {},\n aLinkProps,\n children = null,\n ariaLabel,\n}: Props) => {\n const styleOptionsWithDefault: ButtonLinkStyleOptions = {\n ...defaultStyleOptions,\n ...styleOptions,\n };\n\n const linkOptionsWithDefault: ButtonLinkLinkOptions = {\n ...defaultLinkOptions,\n ...linkOptions,\n };\n\n const classNames = classnames(\n `ButtonLink`,\n styleOptionsWithDefault.type,\n styleOptionsWithDefault.size,\n className,\n {\n 'ButtonLink__inline-link': !!styleOptions?.isInline,\n 'ButtonLink__invert-colors': !!styleOptions?.invertColors,\n small: styleOptionsWithDefault.size === ButtonLinkSize.SMALL,\n }\n );\n\n const aLinkPropsDefault = {\n href: to,\n target: '__blank',\n rel: 'noopener',\n ...aLinkProps,\n };\n\n const linkProps = {\n to,\n partiallyActive: !!linkOptionsWithDefault.shouldEnableActiveState,\n activeClassName: linkOptionsWithDefault?.shouldEnableActiveState\n ? 'ButtonLink--active'\n : undefined,\n };\n\n const getIcon = () => {\n if (iconOptions) {\n const IconComp = ({ className_ }: any) => (\n \n \n \n );\n return (\n \n );\n }\n return React.Fragment;\n };\n\n return linkOptionsWithDefault.isExternalLink ? (\n \n {(!iconOptions?.position || iconOptions?.position === 'left') && getIcon()}\n {children}\n {iconOptions?.position === 'right' && getIcon()}\n \n ) : (\n \n {(!iconOptions?.position || iconOptions?.position === 'left') && getIcon()}\n {children}\n {iconOptions?.position === 'right' && getIcon()}\n \n );\n};\n\nexport default memo(ButtonLink);\n","import RouteKeys from '../../../config/RouteKeys';\nimport { PageMenuLinks } from './pageMenuTypes';\nimport { getPathFromRouteKey } from '../../shared/utils/getPathFromRouteKey';\n\nconst aboutUsMenu: PageMenuLinks = [\n {\n to: getPathFromRouteKey(RouteKeys.ABOUT_US.COMMUNITY_CAREGIVING),\n textKey: 'pageTitles.communityCaregiving',\n },\n {\n to: getPathFromRouteKey(RouteKeys.ABOUT_US.FRAUD_ALERT),\n textKey: 'pageTitles.fraudAlert',\n },\n {\n to: getPathFromRouteKey(RouteKeys.ABOUT_US.SCC),\n textKey: 'pageTitles.scc',\n },\n];\n\nexport default aboutUsMenu;\n"],"sourceRoot":""}