{"version":3,"sources":["webpack://elevations-credit-union/./src/containers/calculators/mortgage/constants.js","webpack://elevations-credit-union/./src/containers/calculators/mortgage/should-refinance.js","webpack://elevations-credit-union/./src/pages/calculators/mortgage/should-refinance.en-US.js"],"names":["anchorLinkSections","t","useTranslation","title","defaultValue","anchorLinks","to","name","subtitle","target","CrossSellToutMortgage","richHeadline","nodeType","data","content","marks","value","buttonUrl","buttonCta","buttonAlt","CrossSellToutRefinance","CrossSellToutEquity","ShouldRefinancePage","pageContext","location","usePages","calculatorsPage","mortgagePage","pageData","sectionTitle","richBody","type","uri","navMenus","pathname","urlPath","menu","subnav","showSubnav","language","langKey","pageTitle","sections","calculator"],"mappings":"mRAGMA,EAAqB,WACzB,IAAOC,GAAKC,SAAZ,GA8EA,MA7Ea,CACX,CACEC,MAAOF,EAAE,uCAAwC,CAC/CG,aAAc,gBAEhBC,YAAa,CACX,CACEC,GAAI,wBACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,kCAGlB,CACEE,GAAI,iCACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,wCAGlB,CACEE,GAAI,yCACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,qCAGlB,CACEE,GAAI,oCACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,kDAGlB,CACEE,GAAI,oCACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,mDAKtB,CACED,MAAOF,EAAE,wCAAyC,CAChDG,aAAc,qBAEhBI,SAAUP,EAAE,yCAA0C,CACpDG,aAAc,yBAEhBC,YAAa,CACX,CACEC,GAAI,qEACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,4CAEhBK,OAAQ,UAEV,CACEH,GAAI,oEACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,oDAEhBK,OAAQ,UAEV,CACEH,GAAI,8DACJC,KAAMN,EAAE,sCAAuC,CAC7CG,aAAc,wCAEhBK,OAAQ,UAEV,CACEH,GAAI,oEACJC,KAA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AAGU,EAAH,EAAGA,SAAH,OACC,UAAC,IAAD,CACET,SAAUA,EACVD,YAAW,iBAAOA,EAAP,CAAoBW,SAAUP,EAAaQ,UACtDC,KAAI,iBAAOH,EAAP,CAAiBI,OAAQ,CAACX,KAC9BY,YAAU,EAJZ,WAME,SAAC,IAAD,CACEC,SAAUhB,EAAYiB,QACtBrC,MAAOF,EAAE,gCAAiC,CACxCG,aAAc,kCAEhB8B,SAAS,4CAEX,SAAC,IAAD,CACEO,UAAWxC,EAAE,4BAA6B,CACxCG,aAAc,yBAEhBsC,SAAUd,EACVe,YAAY,SAAC,KAAD,IACZ3C,oBAAoBA,aAEtB,SAAC,KAAD,Y,yDCzJV,UAAesB,EAAf","file":"component---src-pages-calculators-mortgage-should-refinance-en-us-js-f0b79a401beeae9685e9.js","sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { ElevatedTitleCentered } from '../../../components/modules/ElevatedTitleCentered'\n\nconst anchorLinkSections = () => {\n const [t] = useTranslation()\n const data = [\n {\n title: t('CalculatorPageMortgage.sidebarHeader', {\n defaultValue: 'Calculators',\n }),\n anchorLinks: [\n {\n to: '/calculators/mortgage',\n name: t('CalculatorPageMortgage.sidebarLink2', {\n defaultValue: 'Should I rent or buy a home?',\n }),\n },\n {\n to: '/calculators/mortgage/payments',\n name: t('CalculatorPageMortgage.sidebarLink1', {\n defaultValue: 'What will my mortgage payments be?',\n }),\n },\n {\n to: '/calculators/mortgage/should-refinance',\n name: t('CalculatorPageMortgage.sidebarLink4', {\n defaultValue: 'Should I refinance my mortgage?',\n }),\n },\n {\n to: '/calculators/mortgage/home-equity',\n name: t('CalculatorPageMortgage.sidebarLink3', {\n defaultValue: \"How much can I borrow from my home's equity?\",\n }),\n },\n {\n to: '/calculators/mortgage/tax-savings',\n name: t('CalculatorPageMortgage.sidebarLink5', {\n defaultValue: 'How much will my mortgage save me in taxes?',\n }),\n },\n ],\n },\n {\n title: t('CalculatorPageMortgage.sidebarHeader2', {\n defaultValue: 'More Calculators',\n }),\n subtitle: t('CalculatorPageMortgage.sidebarSubtitle', {\n defaultValue: 'Powered by EllieMae®',\n }),\n anchorLinks: [\n {\n to: 'https://elevationscu.mymortgage-online.com/RefinanceBreakEven.html',\n name: t('CalculatorPageMortgage.sidebarLink6', {\n defaultValue: 'When would I break even by refinancing?',\n }),\n target: '_blank',\n },\n {\n to: 'https://elevationscu.mymortgage-online.com/PrepaymentSavings.html',\n name: t('CalculatorPageMortgage.sidebarLink7', {\n defaultValue: 'How much could I save by prepaying my mortgage?',\n }),\n target: '_blank',\n },\n {\n to: 'https://elevationscu.mymortgage-online.com/EarlyPayoff.html',\n name: t('CalculatorPageMortgage.sidebarLink8', {\n defaultValue: 'Should I pay off my mortgage early?',\n }),\n target: '_blank',\n },\n {\n to: 'https://elevationscu.mymortgage-online.com/DebtConsolidation.html',\n name: t('CalculatorPageMortgage.sidebarLink9', {\n defaultValue: 'Should I consolidate other debt with my mortgage?',\n }),\n target: '_blank',\n },\n ],\n },\n ]\n return data\n}\n\nexport { anchorLinkSections }\nexport default anchorLinkSections\n\nconst CrossSellToutMortgage = () => {\n const [t] = useTranslation()\n\n const richHeadline = {\n nodeType: 'document',\n data: {},\n content: [\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('CalculatorPageMortgage.ctaHeadlineMortgage', {\n defaultValue: 'If your next home is adding up, we can help make it happen.',\n }),\n data: {},\n },\n ],\n data: {},\n },\n ],\n }\n\n return (\n \n )\n}\n\nexport { CrossSellToutMortgage }\n\nconst CrossSellToutRefinance = () => {\n const [t] = useTranslation()\n\n const richHeadline = {\n nodeType: 'document',\n data: {},\n content: [\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('CalculatorPageMortgage.ctaHeadlineRefinance', {\n defaultValue: 'Ready to refinance? Take the next step.',\n }),\n data: {},\n },\n ],\n data: {},\n },\n ],\n }\n\n return (\n \n )\n}\n\nexport { CrossSellToutRefinance }\n\nconst CrossSellToutEquity = () => {\n const [t] = useTranslation()\n\n const richHeadline = {\n nodeType: 'document',\n data: {},\n content: [\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('CalculatorPageMortgage.ctaHeadlineEquity', {\n defaultValue: \"We can help put your home's equity to work.\",\n }),\n data: {},\n },\n ],\n data: {},\n },\n ],\n }\n\n return (\n \n )\n}\n\nexport { CrossSellToutEquity }\n","import PropTypes from 'prop-types'\nimport { useTranslation } from 'react-i18next'\nimport { StaticTemplate } from '../../../templates/staticTemplate'\nimport { Layout } from '../../../components/layouts/layout'\nimport { PageMeta } from '../../../components/page-meta'\nimport { CalculatorSectionModule } from '../../../components/modules/CalculatorSectionModule'\nimport { RefinanceCalculator } from '../../../components/calculators'\nimport { anchorLinkSections, CrossSellToutRefinance } from './constants'\nimport { usePages } from '../constants'\n\nconst ShouldRefinancePage = ({ pageContext, location }) => {\n const [t] = useTranslation()\n const { calculatorsPage, mortgagePage } = usePages()\n\n const pageData = [\n {\n sectionTitle: t('ShouldRefinancePage.subTitle', {\n defaultValue: 'Should I refinance my mortgage?',\n }),\n richBody: {\n nodeType: 'document',\n data: {},\n content: [\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent', {\n defaultValue:\n 'If interest rates are low or you can decrease your loan term, refinancing your mortgage could save a lot of money. Crunch the numbers to see the potential impact of changing your interest rate or loan term on your mortgage payments.',\n }),\n data: {},\n },\n ],\n data: {},\n },\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent2a', {\n defaultValue:\n 'You’ll be able to compare traditional and enhanced refinance options with this calculator. The ',\n }),\n data: {},\n },\n {\n nodeType: 'text',\n marks: [{ type: 'bold' }],\n value: t('ShouldRefinancePage.textContent2b', {\n defaultValue: 'traditional refinance',\n }),\n data: {},\n },\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent2c', {\n defaultValue:\n ' option provides estimated payments for your new loan. Based on your new loan term, this option may show the loan being paid off at a later date than your current mortgage. With an ',\n }),\n data: {},\n },\n {\n nodeType: 'text',\n marks: [{ type: 'bold' }],\n value: t('ShouldRefinancePage.textContent2d', {\n defaultValue: 'enhanced refinance',\n }),\n data: {},\n },\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent2e', {\n defaultValue:\n ', you’ll see estimated payments if you would like to pay off the new loan when your existing mortgage term would have ended.',\n }),\n data: {},\n },\n ],\n data: {},\n },\n {\n nodeType: 'paragraph',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent3a', {\n defaultValue:\n 'While this calculator can help you understand how much you might save by refinancing, all numbers provided here are estimates. Please ',\n }),\n data: {},\n },\n {\n nodeType: 'hyperlink',\n content: [\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent3b', {\n defaultValue: 'talk to a Mortgage Loan Officer',\n }),\n data: {},\n },\n ],\n data: {\n uri: `/home-lending/mortgage-team`,\n },\n },\n {\n nodeType: 'text',\n marks: [],\n value: t('ShouldRefinancePage.textContent3c', {\n defaultValue: ' about what your actual savings may be.',\n }),\n data: {},\n },\n ],\n data: {},\n },\n ],\n },\n },\n ]\n\n return (\n \n {({ navMenus }) => (\n \n \n }\n anchorLinkSections={anchorLinkSections()}\n />\n \n \n )}\n \n )\n}\n\nShouldRefinancePage.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object,\n pageContext: PropTypes.object,\n}\n\nexport { ShouldRefinancePage }\nexport default ShouldRefinancePage\n","import { ShouldRefinancePage } from '../../../containers/calculators/mortgage/should-refinance'\n\nexport default ShouldRefinancePage\n\n// This should work but doesn't in prod build\n// https://github.com/gatsbyjs/gatsby/issues/12384\n// import { default } from '../../../containers/calculators/mortgage/should-refinance'\n"],"sourceRoot":""}