{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./content/js/custom/components/common.js","webpack:///./content/js/custom/components/layout.js","webpack:///./content/js/custom/react/ReverseMortgageCalculator.jsx","webpack:///./content/js/custom/components/reverseMortgageCalculator.js","webpack:///./content/js/custom/index.js","webpack:///external \"jQuery\""],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","Common","_classCallCheck","this","tab","$","footerSuggestedDocument","bindEvents","initSlider","initJumpMenu","initContactMap","modaal","start_open","custom_class","type","confirm_button_text","confirm_cancel_button_text","confirm_title","confirm_content","confirm_callback","e","url","attr","location","href","validate","mask","reverse","indexOf","getUrlParameter","slideUp","slideToggle","removeClass","find","addClass","on","each","fieldValue","val","replace","click","toggleClass","next","_this","toggleTab","queryStringDocument","validateForm","sParam","sParameterName","sURLVariables","search","substring","split","undefined","decodeURIComponent","_this2","jumpMenu","jumpLinks","append","jumpLinksDropdown","clone","html","preventDefault","target","getAttribute","document","querySelector","scrollIntoView","behavior","slick","infinite","slidesToShow","slidesToScroll","accessibility","autoplay","dots","arrows","useTransform","variableWidth","adaptiveHeight","autoplaySpeed","latitude","parseFloat","getElementById","longitude","script","createElement","src","async","initMap","map","google","maps","Map","center","lat","lng","zoom","Marker","position","title","head","appendChild","currentTarget","currentPath","pathname","protocol","host","toggle","hasClass","grecaptcha","getResponse","show","hide","Layout","layout_classCallCheck","menuToggle","nav","toggleMenu","stopPropagation","onResize","App","_errors$DateOfBirth","_errors$DateOfBirth2","_errors$HomeValue","_errors$MortgageLienD","_errors$AvailableAsse","_errors$AvailableAsse2","_errors$PrimaryReside","_errors$PrimaryReside2","_React$createElement","_React$createElement2","formatter","Intl","NumberFormat","style","currency","_useForm","useForm","defaultValues","InterestedIn","register","handleSubmit","watch","control","errors","formState","_useState2","_slicedToArray","useState","isRefinanceCalculator","setIsRefinanceCalculator","_useState4","showResults","setShowResults","_useState6","fixedRateEstimate","setFixedRateEstimate","_useState8","variableRateEstimate","setVariableRateEstimate","_useState10","isLoading","setIsLoading","_useState12","isError","setIsError","defaultDate","Date","setFullYear","getFullYear","defaultDateString","getTime","getTimezoneOffset","toISOString","_useState14","ageYoungest","setYoungestAge","_useState16","propertyValue","setPropertyValue","_useState18","fundsAvailable","setFundsAvailable","_useState20","mortgagePayoff","setMortgagePayoff","emailAddress","lhfs","toggleCalculatorType","_useState22","showCta","setShowCta","_useState24","showContactForm","setShowContactForm","scrollRef","useRef","_useState26","_useState28","messageResponse","setMessageResponse","_useState30","formSubmittedError","setFormSubmittedError","_useState32","formSubmittedSuccess","setFormSubmittedSuccess","_useState34","firstName","lastName","email","phone","brokerCompany","formData","setFormData","handleInputChange","event","_event$target","prevFormData","assign","_defineProperty","useEffect","current","react_default","a","className","onSubmit","collectedData","FixedRateProductId","VariableRateProductId","age","DateOfBirth","HomeValue","AvailableAssets","MortgageLienDebt","apiUrl","corpApiUrl","parseInt","replaceAll","State","axios","then","response","catch","error","console","log","id","checked","onChange","htmlFor","_extends","defaultValue","required","max","PropertyType","Fragment","index_esm","rules","render","_ref","_ref$field","field","react_number_format_es","thousandSeparator","_ref2","_ref2$field","minLength","_ref3","_ref3$field","concat","PrimaryResidence","productTypeName","format","purchasePower","availableFunds","onClick","handleLinkClick","ref","headers","Content-Type","RequestVerificationToken","post","message","request","config","placeholder","input","formattedPhoneNumber","ReverseMortgageCalculator","container","createRoot","__webpack_exports__","global","jquery__WEBPACK_IMPORTED_MODULE_0__","jquery__WEBPACK_IMPORTED_MODULE_0___default","_components_common__WEBPACK_IMPORTED_MODULE_2__","_components_layout__WEBPACK_IMPORTED_M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,cACXF,EAAAC,EAAA3I,cAAA,SAAG,kyCAiBf0I,EAAAC,EAAA3I,cAAA,OAAK4I,UAAU,2BACXF,EAAAC,EAAA3I,cAAA,SAAG,0FACH0I,EAAAC,EAAA3I,cAAA,UACI0I,EAAAC,EAAA3I,cAAA,UAAI0I,EAAAC,EAAA3I,cAAA,KAAG9D,KAAK,sEAAsEuC,OAAO,UAAS,sBAClGiK,EAAAC,EAAA3I,cAAA,UAAI0I,EAAAC,EAAA3I,cAAA,KAAG9D,KAAK,8BAA6B,qCAE7CwM,EAAAC,EAAA3I,cAAA,SAAG,8HAC2C0I,EAAAC,EAAA3I,cAAA,KAAG9D,KAAI,UAAAuP,OAAYpF,KAAiBA,IAAiB,sNC50BzHuG,aACF,SAAAA,mGAAchS,CAAAC,KAAA+R,GACV/R,KAAKgS,UAAYlO,SAASC,cAAc,8BAEpC/D,KAAKgS,YACQC,qBAAWjS,KAAKgS,WACxB/B,OAAOpC,EAAAC,EAAA3I,cAACmC,EAAD,qIAIpB,WACItH,KAAKI,uCAGT,qBAKW2R,wCCvBfpU,EAAAgB,EAAAuT,GAAA,SAAAC,GAAA,IAAAC,EAAAzU,EAAA,GAAA0U,EAAA1U,EAAA2B,EAAA8S,GAAAE,GAAA3U,EAAA,KAAAA,EAAA,MAAA4U,EAAA5U,EAAA,KAAA6U,EAAA7U,EAAA,KAEAwU,EAAOjS,EAAIiS,EAAOM,OAAS9S,OAAOO,EAAIP,OAAO8S,OAASvS,IAUtDA,MAAIwS,MAAM,SAAAzR,IACI,IAAInB,KACP6S,QAEM,IAAI5L,KACV4L,QAEyB,IAAIZ,KACVY,4CCpB9B3U,EAAAD,QAAA0U","file":"main.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([146,3]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import $ from 'jquery';\r\nimport 'jquery-mask-plugin';\r\nimport 'jquery-validation';\r\nimport 'jquery-validation-unobtrusive';\r\nimport 'modaal/dist/js/modaal.min.js';\r\nimport 'slick-carousel';\r\n\r\nclass Common {\r\n constructor() {\r\n this.tab = $('.js-tabs button');\r\n this.footerSuggestedDocument = $('.js-toggle-document-url');\r\n }\r\n\r\n init() {\r\n this.bindEvents();\r\n this.initSlider();\r\n this.initJumpMenu();\r\n\r\n if ($('#contactMap').length) {\r\n this.initContactMap();\r\n }\r\n\r\n $('.apply_now').modaal();\r\n $('.inline').modaal();\r\n\r\n $('.js-splash-open').modaal({\r\n start_open: true,\r\n custom_class: 'splash'\r\n });\r\n\r\n $('.js-external-link').modaal({\r\n type: 'confirm',\r\n confirm_button_text: 'Continue',\r\n confirm_cancel_button_text: 'Cancel',\r\n confirm_title: 'Continue to External Link',\r\n confirm_content: '<p>You are leaving the Credit Union site to a external link that is associated with LHFS. Do you wish to continue?</p>',\r\n confirm_callback: function (e) {\r\n let url = (e.attr('href'));\r\n window.location.href = url;\r\n }\r\n });\r\n\r\n $('form').validate();\r\n\r\n // input masks\r\n $('.js-phone-input').mask('(000) 000-0000');\r\n $('.js-ssn-input').mask('000-00-0000');\r\n $('.js-money-input').mask('#,##0', {reverse: true});\r\n\r\n if (window.location.href.indexOf('?tab=') > 0) {\r\n let tab = this.getUrlParameter('tab');\r\n\r\n if (tab === 'refinance' || tab === 'reverse-mortgage') {\r\n $('.tab-content-item:not(' + '#' + tab + ')').slideUp();\r\n $('#' + tab).slideToggle();\r\n\r\n this.tab.removeClass('active');\r\n $('.js-tabs').find(\"[data-toggle='#\" + tab + \"']\").addClass('active');\r\n }\r\n }\r\n\r\n $('#hecm-application-form').on('submit', () => {\r\n $('.js-money-input').each(function () {\r\n let fieldValue = $(this).val();\r\n fieldValue = fieldValue.replace(\",\", \"\");\r\n $(this).val(fieldValue);\r\n })\r\n });\r\n\r\n $('.accordion').click(function () {\r\n $(this).toggleClass(\"active\");\r\n $(this).next(\".accordion-content\").slideToggle();\r\n });\r\n }\r\n\r\n bindEvents() {\r\n this.tab.on('click', e => { this.toggleTab(e); });\r\n this.footerSuggestedDocument.on('click', e => { this.queryStringDocument(e); });\r\n\r\n $('#contact-form').on('submit', e => { this.validateForm(e); });\r\n }\r\n\r\n getUrlParameter(sParam) {\r\n let sPageURL = window.location.search.substring(1),\r\n sURLVariables = sPageURL.split('&'),\r\n sParameterName,\r\n i;\r\n\r\n for (i = 0; i < sURLVariables.length; i++) {\r\n sParameterName = sURLVariables[i].split('=');\r\n\r\n if (sParameterName[0] === sParam) {\r\n return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);\r\n }\r\n }\r\n };\r\n\r\n initJumpMenu() {\r\n let jumpMenu = $('#jump-menu');\r\n let jumpLinks = $('#jump-links');\r\n\r\n $('#jump-menu button:not(\".dropdown-toggle\")').click(() => {\r\n jumpLinks.toggleClass('collapse');\r\n jumpMenu.toggleClass('open');\r\n })\r\n\r\n $('#jump-links .jump-link').click((e) => {\r\n jumpLinks.addClass('collapse');\r\n jumpMenu.removeClass('open');\r\n })\r\n\r\n\r\n //if more than 3 jump links, have overflow dropdown on medium size screens\r\n if ($('#jump-links .jump-link').length > 3) {\r\n //add dropdown toggle for extra jump-links\r\n jumpMenu.append('<button class=\"btn dropdown-toggle\">More</button>');\r\n\r\n //get jump links and copy to overflow dropdown\r\n let jumpLinksDropdown = $('<div id=\"jump-links-dropdown\" class=\"jump-links collapse\" />').append($('#jump-links').clone().html());\r\n\r\n jumpMenu.append(jumpLinksDropdown);\r\n\r\n $('#jump-menu .dropdown-toggle').click(() => {\r\n $('#jump-links-dropdown').toggleClass('collapse');\r\n $(this).toggleClass('open');\r\n })\r\n\r\n $('#jump-links-dropdown .jump-link').click((e) => {\r\n e.preventDefault();\r\n $('#jump-links-dropdown').addClass('collapse');\r\n $('#jump-menu .dropdown-toggle').removeClass('open');\r\n let href = e.target.getAttribute('href');\r\n document.querySelector(href).scrollIntoView({\r\n behavior: 'smooth'\r\n })\r\n })\r\n }\r\n }\r\n\r\n initSlider() {\r\n $('.js-gallery-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n accessibility: true,\r\n autoplay: false,\r\n dots: false,\r\n arrows: true,\r\n useTransform: true,\r\n variableWidth: false,\r\n adaptiveHeight: false,\r\n });\r\n\r\n $('.js-testimonial-slider').slick({\r\n infinite: true,\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n accessibility: true,\r\n autoplaySpeed: 4000,\r\n autoplay: true,\r\n dots: false,\r\n arrows: false,\r\n useTransform: true,\r\n variableWidth: false,\r\n adaptiveHeight: false,\r\n });\r\n }\r\n\r\n initContactMap() {\r\n const latitude = parseFloat(document.getElementById('contactMap').getAttribute('lat'));\r\n const longitude = parseFloat(document.getElementById('contactMap').getAttribute('lng'));\r\n\r\n var script = document.createElement('script');\r\n script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyB5HlnqQ6Wcec1f5HkQ51AfA0osDeAvP_M&callback=initMap';\r\n script.async = true;\r\n\r\n // Attach your callback function to the `window` object\r\n window.initMap = function () {\r\n // JS API is loaded and available\r\n let map = new google.maps.Map(document.getElementById(\"contactMap\"), {\r\n center: { lat: latitude, lng: longitude },\r\n zoom: 15,\r\n });\r\n\r\n new google.maps.Marker({\r\n position: { lat: latitude, lng: longitude },\r\n map,\r\n title: ''\r\n });\r\n };\r\n\r\n // Append the 'script' element to 'head'\r\n document.head.appendChild(script);\r\n }\r\n\r\n queryStringDocument(e) {\r\n e.preventDefault();\r\n let target = e.currentTarget;\r\n let currentPath = window.location.pathname.replace('/', '');\r\n let href = $(target).attr('href');\r\n\r\n if (currentPath === 'refinance' || currentPath === 'reverse-mortgage') {\r\n window.location.href = window.location.protocol + '//' + window.location.host + href + '?tab=' + currentPath;\r\n }\r\n else {\r\n window.location.href = window.location.protocol + '//' + window.location.host + href;\r\n }\r\n }\r\n\r\n toggleTab(e) {\r\n let target = e.currentTarget;\r\n let toggle = $(target).data('toggle');\r\n\r\n if (!$(target).hasClass('active')) {\r\n $('.tab-content-item:not(' + toggle + ')').slideUp();\r\n $(toggle).slideToggle();\r\n\r\n this.tab.removeClass('active');\r\n $(target).addClass('active');\r\n }\r\n }\r\n\r\n validateForm(e) {\r\n if (grecaptcha.getResponse().length === 0) {\r\n e.preventDefault();\r\n $('#recaptcha_contact').next().show();\r\n return false;\r\n }\r\n else {\r\n $('#recaptcha_contact').next().hide();\r\n return true;\r\n }\r\n }\r\n}\r\n\r\nexport default Common;","import * as CONST from '../utils/constants';\r\nimport Util from '../utils/ui';\r\n\r\nclass Layout {\r\n constructor() {\r\n this.menuToggle = $('.mobile-menu-toggle');\r\n this.nav = $('.nav');\r\n }\r\n\r\n init() {\r\n this.bindEvents();\r\n }\r\n\r\n bindEvents() {\r\n this.menuToggle.on('click', e => { this.toggleMenu(e); });\r\n this.nav.on('click', e => { e.stopPropagation(); });\r\n\r\n $(window).on('click', e => {\r\n this.nav.removeClass('open');\r\n });\r\n\r\n $(window).on('resize', e => this.onResize(e));\r\n }\r\n\r\n onResize(e) {\r\n \r\n }\r\n\r\n toggleMenu(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n this.nav.toggleClass('open');\r\n }\r\n}\r\n\r\nexport default Layout;","import React, { useState, useEffect, useRef } from 'react';\r\nimport { NumericFormat, PatternFormat } from 'react-number-format';\r\nimport { useForm, Controller } from 'react-hook-form';\r\nimport axios from 'axios';\r\n\r\nexport default function App() {\r\n\r\n const formatter = new Intl.NumberFormat('en-US', {\r\n style: 'currency',\r\n currency: 'USD',\r\n });\r\n\r\n const { register, watch, handleSubmit, control, formState: { errors } } = useForm({\r\n defaultValues: {\r\n InterestedIn: \"retirement income\",\r\n //HasSpouse: \"No\"\r\n }\r\n });\r\n\r\n //const watchHasSpouse = watch(\"HasSpouse\");\r\n\r\n const [isRefinanceCalculator, setIsRefinanceCalculator] = useState(true);\r\n const [showResults, setShowResults] = useState(false);\r\n\r\n const [fixedRateEstimate, setFixedRateEstimate] = useState({});\r\n const [variableRateEstimate, setVariableRateEstimate] = useState({});\r\n\r\n //const [estimate, setEstimate] = useState(0);\r\n const [isLoading, setIsLoading] = useState(false);\r\n const [isError, setIsError] = useState(false);\r\n\r\n const defaultDate = new Date(new Date().setFullYear(new Date().getFullYear() - 62));\r\n const defaultDateString = new Date(defaultDate.getTime() - (defaultDate.getTimezoneOffset() * 60000)).toISOString().split(\"T\")[0];\r\n\r\n const [ageYoungest, setYoungestAge] = useState(0);\r\n const [propertyValue, setPropertyValue] = useState(0);\r\n const [fundsAvailable, setFundsAvailable] = useState(0);\r\n\tconst [mortgagePayoff, setMortgagePayoff] = useState(0);\r\n\r\n\tconst emailAddress = window.lhfs.emailAddress;\r\n\r\n const toggleCalculatorType = () => {\r\n setShowResults(false);\r\n setIsRefinanceCalculator(isRefinanceCalculator => !isRefinanceCalculator);\r\n };\r\n\r\n const getResults = (data) => {\r\n\r\n setShowResults(false);\r\n setIsLoading(true);\r\n setShowCta(true);\r\n //setEstimate(0);\r\n\r\n let collectedData = data;\r\n\r\n collectedData.FixedRateProductId = 68;\r\n collectedData.VariableRateProductId = 503;\r\n\r\n let currentYear = new Date().getFullYear();\r\n let dob = new Date(collectedData.DateOfBirth);\r\n let age = currentYear - dob.getFullYear();\r\n\r\n setYoungestAge(age);\r\n setPropertyValue(collectedData.HomeValue);\r\n setFundsAvailable(collectedData.AvailableAssets);\r\n setMortgagePayoff(collectedData.MortgageLienDebt);\r\n\r\n let apiUrl = '';\r\n let corpApiUrl = window.lhfs.apiUrl;\r\n\r\n //collectedData.HomeValue = parseInt(collectedData.HomeValue.replaceAll(\",\", \"\"));\r\n //collectedData.MortgageLienDebt = parseInt(collectedData.MortgageLienDebt.replaceAll(\",\", \"\"));\r\n //collectedData.HasSpouse = collectedData.HasSpouse === \"Yes\" ? true : false;\r\n //collectedData.CreditUnionCodeName = window.creditUnionCodeName;\r\n\r\n //let params = Object.keys(collectedData).map(key => key + '=' + collectedData[key]).join('&');\r\n //apiUrl = '/api/reverse-mortgage/quote?' + params;\r\n\r\n //axios\r\n // .post(apiUrl)\r\n // .then((response) => {\r\n // setEstimate(response.data.toLocaleString(undefined, { maximumFractionDigits: 2 }));\r\n // setIsLoading(false);\r\n // setShowResults(true);\r\n // })\r\n // .catch((error) => {\r\n // setIsLoading(false);\r\n // console.log(error);\r\n // setIsError(error);\r\n // });\r\n\r\n if (isRefinanceCalculator) {\r\n collectedData.HomeValue = parseInt(collectedData.HomeValue.replaceAll(\",\", \"\"));\r\n collectedData.MortgageLienDebt = parseInt(collectedData.MortgageLienDebt.replaceAll(\",\", \"\"));\r\n\r\n // Fixed Product Rate Response\r\n apiUrl = corpApiUrl +\r\n '/ReverseMortgage/Calculator/loan-estimate?homeValue=' +\r\n collectedData.HomeValue +\r\n '&dateOfBirth=' +\r\n collectedData.DateOfBirth +\r\n '&mortgageLeinDebt=' +\r\n collectedData.MortgageLienDebt +\r\n '&state=' +\r\n collectedData.State +\r\n '&productId=' +\r\n collectedData.FixedRateProductId;\r\n\r\n axios\r\n .get(apiUrl)\r\n .then((response) => {\r\n setFixedRateEstimate(response.data);\r\n setIsLoading(false);\r\n setShowResults(true);\r\n })\r\n .catch((error) => {\r\n setIsLoading(false);\r\n console.log(error);\r\n setIsError(error);\r\n });\r\n\r\n // Variable Product Rate Response\r\n apiUrl = corpApiUrl +\r\n '/ReverseMortgage/Calculator/loan-estimate?homeValue=' +\r\n collectedData.HomeValue +\r\n '&dateOfBirth=' +\r\n collectedData.DateOfBirth +\r\n '&mortgageLeinDebt=' +\r\n collectedData.MortgageLienDebt +\r\n '&state=' +\r\n collectedData.State +\r\n '&productId=' +\r\n collectedData.VariableRateProductId;\r\n\r\n axios\r\n .get(apiUrl)\r\n .then((response) => {\r\n setVariableRateEstimate(response.data);\r\n setIsLoading(false);\r\n setShowResults(true);\r\n })\r\n .catch((error) => {\r\n setIsLoading(false);\r\n console.log(error);\r\n setIsError(error);\r\n });\r\n\r\n }\r\n else {\r\n collectedData.AvailableAssets = parseInt(collectedData.AvailableAssets.replaceAll(\",\", \"\"));\r\n\r\n // Fixed Product Rate Response\r\n apiUrl = corpApiUrl +\r\n '/ReverseMortgage/Calculator/purchase-power-estimate?homeValue=' +\r\n collectedData.AvailableAssets +\r\n '&dateOfBirth=' +\r\n collectedData.DateOfBirth +\r\n '&state=' +\r\n collectedData.State +\r\n '&productId=' +\r\n collectedData.FixedRateProductId;\r\n\r\n axios\r\n .get(apiUrl)\r\n .then((response) => {\r\n setFixedRateEstimate(response.data);\r\n setIsLoading(false);\r\n setShowResults(true);\r\n })\r\n .catch((error) => {\r\n setIsLoading(false);\r\n console.log(error);\r\n setIsError(error);\r\n });\r\n\r\n // Variable Product Rate Response\r\n apiUrl = corpApiUrl +\r\n '/ReverseMortgage/Calculator/purchase-power-estimate?homeValue=' +\r\n collectedData.AvailableAssets +\r\n '&dateOfBirth=' +\r\n collectedData.DateOfBirth +\r\n '&state=' +\r\n collectedData.State +\r\n '&productId=' +\r\n collectedData.VariableRateProductId;\r\n\r\n axios\r\n .get(apiUrl)\r\n .then((response) => {\r\n setVariableRateEstimate(response.data);\r\n setIsLoading(false);\r\n setShowResults(true);\r\n })\r\n .catch((error) => {\r\n setIsLoading(false);\r\n console.log(error);\r\n setIsError(error);\r\n });\r\n\r\n }\r\n }\r\n\r\n /*Email Contact Form*/\r\n const [showCta, setShowCta] = useState(false);\r\n const [showContactForm, setShowContactForm] = useState(false);\r\n const scrollRef = useRef(null);\r\n const [scrollPosition, setScrollPosition] = useState(0);\r\n const [messageResponse, setMessageResponse] = useState('');\r\n const [formSubmittedError, setFormSubmittedError] = useState(false);\r\n const [formSubmittedSuccess, setFormSubmittedSuccess] = useState(false);\r\n\r\n const [formData, setFormData] = useState({\r\n firstName: '',\r\n lastName: '',\r\n email: '',\r\n phone: '',\r\n brokerCompany: ''\r\n });\r\n\r\n const handleBrokerContactFormSubmit = (e) => {\r\n e.preventDefault();\r\n const token = document.querySelector('input[name=\"__RequestVerificationToken\"]').value;\r\n\r\n const headers = {\r\n 'Content-Type': 'application/json',\r\n 'RequestVerificationToken': token\r\n };\r\n\r\n axios\r\n\t\t\t.post('/api/reverse-mortgage/calculator/contact', formData, { headers })\r\n .then((response) => {\r\n setFormSubmittedSuccess(true);\r\n setMessageResponse(response.data.message);\r\n //messageResponse.message = response.data.message;\r\n console.log('Success:', response);\r\n })\r\n .catch(error => {\r\n setFormSubmittedError(true);\r\n if (error.response) {\r\n // server responded with an error status code (4xx or 5xx)\r\n setMessageResponse(error.response.data.message);\r\n console.log(\"error.response\", error.response.data.message);\r\n // handle the error message as needed\r\n } else if (error.request) {\r\n // request was made but no response was received\r\n setMessageResponse(error.request);\r\n console.log(\"error.request\", error.request);\r\n } else {\r\n // something else happened in setting up the request\r\n setMessageResponse(error.message);\r\n console.log('Error', error.message);\r\n }\r\n console.log(error.config);\r\n });\r\n };\r\n\r\n\r\n const handleInputChange = (event) => {\r\n const { name, value } = event.target;\r\n setFormData(prevFormData => Object.assign({}, prevFormData, { [name]: value }));\r\n };\r\n\r\n const handlePhoneChange = (e) => {\r\n const input = e.target.value.replace(/\\D/g, '');\r\n let formattedPhoneNumber = '';\r\n\r\n // Format the phone number based on the number of digits entered\r\n if (input.length < 4) {\r\n formattedPhoneNumber = `(${input.slice(0, 3)}`;\r\n } else if (input.length < 7) {\r\n formattedPhoneNumber = `(${input.slice(0, 3)}) ${input.slice(3, 6)}`;\r\n } else {\r\n formattedPhoneNumber = `(${input.slice(0, 3)}) ${input.slice(3, 6)}-${input.slice(6, 10)}`;\r\n }\r\n\r\n setFormData(prevFormData => Object.assign({}, prevFormData, { phone: formattedPhoneNumber }));\r\n };\r\n\r\n const handleLinkClick = (event) => {\r\n event.preventDefault();\r\n setShowContactForm(true);\r\n //setScrollPosition(window.pageYOffset);\r\n if (showContactForm && scrollRef.current) {\r\n scrollRef.current.scrollIntoView({ behavior: \"smooth\" });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n\r\n //console.log(\"window.pageYOffset\", window.pageYOffset);\r\n if (showContactForm && scrollRef.current) {\r\n // Store the scroll position before showing the div\r\n //setScrollPosition(window.pageYOffset);\r\n\r\n // Show the div\r\n //scrollRef.current.style.display = 'block';\r\n\r\n // Restore the scroll position after showing the div\r\n //window.scrollTo(0, scrollPosition);\r\n scrollRef.current.scrollIntoView({behavior: \"smooth\"});\r\n }\r\n }, [showContactForm]);\r\n\r\n return (\r\n <div className=\"App\">\r\n <div className=\"row\">\r\n <div className=\"col-12\">\r\n {/*<h2>Reverse Mortgage Calculator</h2>*/}\r\n <form onSubmit={handleSubmit(getResults)}>\r\n <div id=\"reverse-mortgage-calculator\" className=\"calculator calculator-reverse-mortgage calculator-refinance mar-top--2\">\r\n <div className=\"calculator-row row\">\r\n <div className=\"col-12 radio-buttons\">\r\n <div className=\"section-title\">\r\n <h4>Is this a refinance of a primary residence or purchase of a new property?</h4>\r\n </div>\r\n <div className=\"radio-container vertical\">\r\n {/*<input className=\"calculator-input format-input\"*/}\r\n\r\n {/* type=\"radio\"*/}\r\n {/* value=\"retirement income\"*/}\r\n {/* {...register(\"InterestedIn\")} />*/}\r\n {/*<label>Using your current home to supplement your returment income</label>*/}\r\n\r\n <input className=\"calculator-input format-input trigger-update-fields\" name=\"CalculatorType\" type=\"radio\" value=\"true\" checked={isRefinanceCalculator} onChange={toggleCalculatorType} />\r\n <label>Refinance of primary residence</label>\r\n\r\n </div>\r\n <div className=\"radio-container vertical\">\r\n {/*<input className=\"calculator-input format-input\"*/}\r\n\r\n {/* type=\"radio\"*/}\r\n {/* value=\"purchase property\"*/}\r\n {/* {...register(\"InterestedIn\")} />*/}\r\n {/*<label>Purchasing a new property with no monthly payments</label>*/}\r\n\r\n\r\n <input className=\"calculator-input format-input trigger-update-fields\" name=\"CalculatorType\" type=\"radio\" value=\"false\" checked={!isRefinanceCalculator} onChange={toggleCalculatorType} />\r\n <label>Purchase of a new property</label>\r\n </div>\r\n\r\n\r\n {/*<div className=\"section-title\">*/}\r\n {/* <h4 >Do you have a spouse?</h4>*/}\r\n {/*</div>*/}\r\n {/*<div className=\"radio-container vertical\">*/}\r\n {/* <input className=\"calculator-input format-input\"*/}\r\n {/* name=\"hasSpouse\"*/}\r\n {/* id=\"hasSpouse\"*/}\r\n {/* type=\"radio\"*/}\r\n {/* value=\"Yes\"*/}\r\n {/* {...register(\"HasSpouse\")} />*/}\r\n {/* <label>Yes</label>*/}\r\n {/*</div>*/}\r\n {/*<div className=\"radio-container vertical\">*/}\r\n {/* <input className=\"calculator-input format-input\"*/}\r\n {/* name=\"hasSpouse\"*/}\r\n {/* id=\"hasSpouse\"*/}\r\n {/* type=\"radio\"*/}\r\n {/* value=\"No\"*/}\r\n {/* {...register(\"HasSpouse\")} />*/}\r\n {/* <label>No</label>*/}\r\n {/*</div>*/}\r\n <hr />\r\n </div>\r\n </div>\r\n\r\n <div className=\"calculator-row row\">\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"DateOfBirth\">Youngest borrower DOB * <br />(must be 62 years of age or older)</label>\r\n <div>\r\n <input className=\"calculator-input\"\r\n name=\"DateOfBirth\"\r\n type=\"date\"\r\n defaultValue={defaultDateString}\r\n {...register(\"DateOfBirth\", { required: true, max: defaultDateString })}\r\n />\r\n </div>\r\n {errors?.DateOfBirth?.type === \"required\" && <div className=\"error-message\">This field is required</div>}\r\n {errors?.DateOfBirth?.type === \"max\" && <div className=\"error-message\">Youngest borrower must be 62 years of age or older</div>}\r\n </div>\r\n\r\n {/*<div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"ZipCode\">Your Zip Code *</label>*/}\r\n {/* <div>*/}\r\n {/* <input className=\"calculator-input format-input\" */}\r\n {/* name=\"zipCode\" */}\r\n {/* type=\"text\" */}\r\n {/* {...register('ZipCode', { */}\r\n {/* required: true, */}\r\n {/* minLength: 5, */}\r\n {/* maxLength: 9,*/}\r\n {/* })} */}\r\n {/* />*/}\r\n {/* {errors?.ZipCode?.type === \"required\" && <div className=\"error-message\">This field is required</div>}*/}\r\n {/* {errors?.ZipCode?.type === \"minLength\" && <div className=\"error-message\">Zip code must contain at least 5 numbers</div>}*/}\r\n {/* {errors?.ZipCode?.type === \"maxLength\" && <div className=\"error-message\">Zip code must contain less than 10 numbers</div>}*/}\r\n {/* </div>*/}\r\n {/*</div>*/}\r\n\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"State\">State</label>\r\n <div>\r\n <select className=\"calculator-select\"\r\n name=\"state\"\r\n {...register(\"State\", { required: true })}\r\n >\r\n <option value=\"AL\">Alabama</option>\r\n <option value=\"AK\">Alaska</option>\r\n <option value=\"AZ\">Arizona</option>\r\n <option value=\"AR\">Arkansas</option>\r\n <option value=\"CA\">California</option>\r\n <option value=\"CO\">Colorado</option>\r\n <option value=\"CT\">Connecticut</option>\r\n <option value=\"DE\">Delaware</option>\r\n <option value=\"DC\">District Of Columbia</option>\r\n <option value=\"FL\">Florida</option>\r\n <option value=\"GA\">Georgia</option>\r\n <option value=\"HI\">Hawaii</option>\r\n <option value=\"ID\">Idaho</option>\r\n <option value=\"IL\">Illinois</option>\r\n <option value=\"IN\">Indiana</option>\r\n <option value=\"IA\">Iowa</option>\r\n <option value=\"KS\">Kansas</option>\r\n <option value=\"KY\">Kentucky</option>\r\n <option value=\"LA\">Louisiana</option>\r\n <option value=\"ME\">Maine</option>\r\n <option value=\"MD\">Maryland</option>\r\n <option value=\"MA\">Massachusetts</option>\r\n <option value=\"MI\">Michigan</option>\r\n <option value=\"MN\">Minnesota</option>\r\n <option value=\"MS\">Mississippi</option>\r\n <option value=\"MO\">Missouri</option>\r\n <option value=\"MT\">Montana</option>\r\n <option value=\"NE\">Nebraska</option>\r\n <option value=\"NV\">Nevada</option>\r\n <option value=\"NH\">New Hampshire</option>\r\n <option value=\"NJ\">New Jersey</option>\r\n <option value=\"NM\">New Mexico</option>\r\n <option value=\"NY\">New York</option>\r\n <option value=\"NC\">North Carolina</option>\r\n <option value=\"ND\">North Dakota</option>\r\n <option value=\"OH\">Ohio</option>\r\n <option value=\"OK\">Oklahoma</option>\r\n <option value=\"OR\">Oregon</option>\r\n <option value=\"PA\">Pennsylvania</option>\r\n <option value=\"RI\">Rhode Island</option>\r\n <option value=\"SC\">South Carolina</option>\r\n <option value=\"SD\">South Dakota</option>\r\n <option value=\"TN\">Tennessee</option>\r\n <option value=\"TX\">Texas</option>\r\n <option value=\"UT\">Utah</option>\r\n <option value=\"VT\">Vermont</option>\r\n <option value=\"VA\">Virginia</option>\r\n <option value=\"WA\">Washington</option>\r\n <option value=\"WV\">West Virginia</option>\r\n <option value=\"WI\">Wisconsin</option>\r\n <option value=\"WY\">Wyoming</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n {/*{(watchHasSpouse === \"Yes\") &&*/}\r\n {/* <div className=\"calculator-row row calculator-row--short\">*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"SpouseAge\">Spouse Age *</label>*/}\r\n {/* <input className=\"calculator-input\"*/}\r\n {/* name=\"SpouseAge\"*/}\r\n {/* type=\"text\"*/}\r\n {/* {...register('SpouseAge', {required: true})}*/}\r\n {/* />*/}\r\n {/* {errors?.SpouseAge?.type === \"required\" && <div className=\"error-message\">This field is required</div>}*/}\r\n {/* </div>*/}\r\n\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"spouseFirstName\">Spouse First Name</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"spouseFirstName\" type=\"text\" {...register('SpouseFirstName')} />*/}\r\n {/* </div>*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"spouseLastName\">Spouse Last Name</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"spouseLastName\" type=\"text\" {...register('SpouseLastName')} />*/}\r\n {/* </div>*/}\r\n {/* </div>*/}\r\n {/*}*/}\r\n\r\n\r\n <div className=\"calculator-row row\">\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"propertyType\">Property Type</label>\r\n <div className=\"post-arrow-down\">\r\n <select className=\"calculator-select\"\r\n name=\"propertyType\"\r\n {...register(\"PropertyType\", { required: true })}\r\n >\r\n <option value=\"single-family\" defaultValue>Single Family</option>\r\n <option value=\"condo\">Condo in an FHA approved project or site condo</option>\r\n <option value=\"townhouse\">Townhouse (attached or detached)</option>\r\n <option value=\"dwelling\">2-4 Unit Dwelling</option>\r\n <option value=\"new-construction\">New Construction</option>\r\n <option value=\"manufactured\">Manufactured</option>\r\n <option value=\"other\">Other</option>\r\n </select>\r\n {errors?.PropertyType &&\r\n <div className=\"error-message\">This field is required</div>}\r\n </div>\r\n </div>\r\n {isRefinanceCalculator &&\r\n <>\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"homeValue\">Estimated home value *</label>\r\n <div className=\"pre-dollars\">\r\n <Controller\r\n control={control}\r\n name=\"HomeValue\"\r\n rules={{ required: true }}\r\n render={({ field: { onChange, name, value } }) => (\r\n <NumericFormat\r\n className=\"calculator-input\"\r\n thousandSeparator=\",\"\r\n name={name}\r\n value={value}\r\n onChange={onChange}\r\n />\r\n )}\r\n />\r\n </div>\r\n {errors?.HomeValue?.type === \"required\" && <div className=\"error-message\">This field is required</div>}\r\n </div>\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"mortgageLienDebt\">Balance of mortgage and/or liens of title to be paid off *</label>\r\n <div className=\"pre-dollars\">\r\n <Controller\r\n control={control}\r\n name=\"MortgageLienDebt\"\r\n rules={{ required: true }}\r\n render={({ field: { onChange, name, value } }) => (\r\n <NumericFormat\r\n className=\"calculator-input\"\r\n thousandSeparator=\",\"\r\n name={name}\r\n value={value}\r\n onChange={onChange}\r\n />\r\n )}\r\n />\r\n </div>\r\n {errors?.MortgageLienDebt?.type === \"required\" && <div className=\"error-message\">This field is required</div>}\r\n </div>\r\n </>\r\n }\r\n\r\n {!isRefinanceCalculator &&\r\n <div className=\"col-sm-12 col-md-6 col-lg-4\">\r\n <label htmlFor=\"availableAssets\">Funds available for purchase (must be greater than $100,000)</label>\r\n <div className=\"pre-dollars\">\r\n <Controller\r\n control={control}\r\n name=\"AvailableAssets\"\r\n rules={{ required: true, minLength: 7 }}\r\n render={({ field: { onChange, name, value } }) => (\r\n <NumericFormat\r\n className=\"calculator-input\"\r\n thousandSeparator=\",\"\r\n name={name}\r\n value={value}\r\n onChange={onChange}\r\n />\r\n )} />\r\n </div>\r\n {errors?.AvailableAssets?.type === \"required\" &&\r\n <div className=\"error-message\">This field is required</div>}\r\n {errors?.AvailableAssets?.type === \"minLength\" &&\r\n <div className=\"error-message\">You don’t have enough available funds.</div>}\r\n </div>\r\n }\r\n {/*<div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"Reason\">Is this reverse mortgage for</label>*/}\r\n {/* <div className=\"post-arrow-down\">*/}\r\n {/* <select className=\"calculator-select\"*/}\r\n {/* name=\"Reason\"*/}\r\n {/* {...register(\"Reason\", { required: false })}*/}\r\n {/* >*/}\r\n {/* <option value=\"primary residence\" defaultValue>My primary residence</option>*/}\r\n {/* <option value=\"loved one\">A loved one</option>*/}\r\n {/* </select>*/}\r\n {/* </div>*/}\r\n {/*</div>*/}\r\n <div className={`col-sm-12 col-md-6 col-lg-4 radio-buttons ${isRefinanceCalculator ? \"mar-top--2\" : \"\"}`}>\r\n <label htmlFor=\"primaryResidence\">Is this your primary residence?</label>\r\n <div className=\"radio-container horizontal\">\r\n <input className=\"calculator-input format-input\"\r\n id=\"primaryResidence\"\r\n type=\"radio\"\r\n value=\"Yes\"\r\n {...register(\"PrimaryResidence\", { required: true, minLength: 3 })} />\r\n <label>Yes</label>\r\n </div>\r\n <div className=\"radio-container horizontal\">\r\n <input className=\"calculator-input format-input\"\r\n id=\"primaryResidence\"\r\n type=\"radio\"\r\n value=\"No\"\r\n {...register(\"PrimaryResidence\", { required: true, minLength: 3 })} />\r\n <label>No</label>\r\n </div>\r\n {errors?.PrimaryResidence?.type === \"required\" &&\r\n <div className=\"error-message\">The subject property must be the primary residence of borrower(s). Occupancy must be established.</div>\r\n }\r\n {errors?.PrimaryResidence?.type === \"minLength\" &&\r\n <div className=\"error-message\">The subject property must be the primary residence of borrower(s). Occupancy must be established.</div>\r\n }\r\n </div>\r\n </div>\r\n {/*<div className=\"calculator-row row calculator-row--short\">*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"firstName\">First Name</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"firstName\" type=\"text\" {...register('FirstName')} />*/}\r\n {/* </div>*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"lastName\">Last Name</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"lastName\" type=\"text\" {...register('LastName')} />*/}\r\n {/* </div>*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"NextStep\">I'd like to</label>*/}\r\n {/* <div className=\"post-arrow-down\">*/}\r\n {/* <select className=\"calculator-select\"*/}\r\n {/* name=\"NextStep\"*/}\r\n {/* {...register(\"NextStep\")}*/}\r\n {/* >*/}\r\n {/* <option value=\"start application\" defaultValue>Start my application</option>*/}\r\n {/* <option value=\"get quote\">Get quote</option>*/}\r\n {/* <option value=\"learn more\">Learn more about the process</option>*/}\r\n {/* <option value=\"set appointment\">Set an appointment to discuss</option>*/}\r\n {/* </select>*/}\r\n {/* </div>*/}\r\n {/* </div>*/}\r\n {/*</div>*/}\r\n\r\n {/*<div className=\"calculator-row row calculator-row--short\">*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"email\">Contact Email</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"emailAddress\" type=\"emailAddress\" {...register('EmailAddress')} />*/}\r\n {/* </div>*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"PhoneNumber\">Contact Telephone</label>*/}\r\n {/* <Controller*/}\r\n {/* control={control}*/}\r\n {/* name=\"PhoneNumber\"*/}\r\n {/* //rules={{ required: true }}*/}\r\n {/* render={({ field: { onChange, name, value } }) => (*/}\r\n {/* <PatternFormat*/}\r\n {/* className=\"calculator-input\"*/}\r\n {/* format=\"(###) ###-####\"*/}\r\n {/* //mask=\"_\"*/}\r\n {/* //allowEmptyFormatting*/}\r\n {/* name={name}*/}\r\n {/* value={value}*/}\r\n {/* onChange={onChange}*/}\r\n {/* />*/}\r\n {/* )}*/}\r\n {/* />*/}\r\n {/* </div>*/}\r\n {/* <div className=\"col-sm-12 col-md-6 col-lg-4\">*/}\r\n {/* <label htmlFor=\"address\">Address</label>*/}\r\n {/* <input className=\"calculator-input\" name=\"address\" type=\"text\" {...register('Address')} />*/}\r\n {/* </div>*/}\r\n {/*</div>*/}\r\n\r\n\r\n <div className=\"calculator-row justify-content-end\">\r\n <input id=\"calculate-btn\" className=\"btn\" type=\"submit\" value=\"Calculate\" />\r\n </div>\r\n </div>\r\n\r\n </form>\r\n {isLoading && <h2 className=\"text-center\">Loading...</h2>}\r\n {/*{showResults &&*/}\r\n {/* <div className=\"calculator-reverse-mortgage results\">*/}\r\n {/* {isError && <div>{isError}</div>}*/}\r\n {/* <h2>{isRefinanceCalculator ? \"Available Proceeds Estimate\" : \"Potential Purchase Price\"}: <span className={`${parseInt(estimate) < 0 ? \"negative-estimate\" : \"\"}`}>${estimate}</span></h2>*/}\r\n {/* <p className=\"results-text\">Happy with the result? Ready to proceed to the next step? <a href=\"/quote-proposal\">Click here</a> to get a quote now! Please reach out to <a href={`mailto:${emailAddress}`}>{emailAddress}</a> with any questions. LHFS's dedicated Reverse Mortgage Team is here to assist! For questions or general inquiries, email <a href={`mailto:${emailAddress}`}>{emailAddress}</a> or your Account Executive.</p>*/}\r\n {/* <p>Please note that all information provided above is for informational purposes only, for the exclusive use of Real Estate professionals, and not for the general public.</p>*/}\r\n {/* <p>Calculations are based on default loan programs. The results of this calculator are for illustrative purposes only based on today's available rate/margin.</p>*/}\r\n {/* </div>*/}\r\n {/*}*/}\r\n {showResults &&\r\n <div className=\"calculator-reverse-mortgage results\">\r\n {isError && <div>{isError}</div>}\r\n <div className=\"calculator calculator-reverse-mortgage calculator-refinance mar-top--2 results-container\">\r\n <div className=\"calculator-row row\">\r\n <div className=\"col-sm-12 col-md-8 col-lg-5 results\">\r\n <div className=\"align-center\">\r\n <h3>{fixedRateEstimate.productTypeName}<sup>(1,2)</sup></h3>\r\n </div>\r\n <div>\r\n <span>AGE: {ageYoungest}</span>\r\n </div>\r\n {isRefinanceCalculator\r\n ? <div>\r\n <span>Property Value: {propertyValue}</span>\r\n <span className=\"descriptor\">(Estimate)</span>\r\n </div>\r\n : <div>\r\n <span>Funds Available for Purchase: ${fundsAvailable}</span>\r\n </div>\r\n }\r\n {isRefinanceCalculator\r\n ? <div>\r\n <span>Proceeds for Mortgage Payoff: ${mortgagePayoff}</span>\r\n </div>\r\n : <div>\r\n <span>Potential Purchase Price: {formatter.format(fixedRateEstimate\r\n .purchasePower)}</span>\r\n </div>\r\n }\r\n {isRefinanceCalculator &&\r\n <div>\r\n <span>Loan Proceeds Available: <sup>(3,4)</sup> {formatter.format(fixedRateEstimate\r\n .availableFunds)}</span>\r\n </div>\r\n }\r\n </div>\r\n <div className=\"col-sm-12 col-md-8 col-lg-5 results\">\r\n <div className=\"align-center\">\r\n <h3>{variableRateEstimate.productTypeName}<sup>(1,2)</sup></h3>\r\n </div>\r\n <div>\r\n <span>AGE: {ageYoungest}</span>\r\n </div>\r\n {isRefinanceCalculator\r\n ? <div>\r\n <span>Property Value: {propertyValue}</span>\r\n <span className=\"descriptor\">(Estimate)</span>\r\n </div>\r\n : <div>\r\n <span>Funds Available for Purchase: ${fundsAvailable}</span>\r\n </div>\r\n }\r\n {isRefinanceCalculator\r\n ? <div>\r\n <span>Proceeds for Mortgage Payoff: ${mortgagePayoff}</span>\r\n </div>\r\n : <div>\r\n <span>Potential Purchase Price: {formatter.format(variableRateEstimate\r\n .purchasePower)}</span>\r\n </div>\r\n }\r\n {isRefinanceCalculator &&\r\n <div>\r\n <span>Loan Proceeds Available: <sup>(3,4)</sup> {formatter.format(\r\n variableRateEstimate.availableFunds)}</span>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n <div>\r\n <ol className=\"\">\r\n <li>Calculations above are based on default loan programs. The results of this calculator are for illustrative purposes only and are based on today's available rate/margin.</li>\r\n <li>All information provided above is for informational purposes only, for the exclusive use of Real Estate professionals, and not for the general public.</li>\r\n {isRefinanceCalculator &&\r\n <li>Closing costs are not included. \"Loan Proceeds Available\" is an estimate based upon data provided above.</li>\r\n }\r\n {isRefinanceCalculator &&\r\n <li>The actual amount a borrower may receive is based upon the following:\r\n <ul>\r\n <li>Youngest borrower.</li>\r\n <li>Current interest rates.</li>\r\n <li>The lesser of the appraised value of borrower's home, sale price or the maximum loan program lending limit.</li>\r\n </ul>\r\n </li>\r\n }\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n <div className=\"mar-top--2\">\r\n\t\t\t\t\t\t<p className=\"disclaimer--red\">Broker loans are not permitted in the state of North Carolina. For more information, please contact <a href={`mailto:${emailAddress}`}>{emailAddress}</a>.</p>\r\n </div>\r\n </div>\r\n </div>\r\n {showCta && (\r\n <div className=\"col-12\">\r\n <div className=\"calculator calculator-refinance calculator-reverse-mortgage-cta border mar-top--2\">\r\n <div className=\"cta-header\">\r\n <div className=\"section-title\">\r\n <h1>Ready to Proceed to the Next Step?</h1>\r\n <a href=\"/reverse-mortgage/quote-proposal\"><h2>Click Here to Get a Quote Now!</h2></a>\r\n <h3>OR</h3>\r\n <h2><a href=\"#\" onClick={(event) => handleLinkClick(event)}>Have Someone from LHFS Contact Me!</a></h2>\r\n </div>\r\n </div>\r\n {showContactForm && (\r\n <div ref={scrollRef} className=\"calculator calculator-refinance mar-top--2 contact-form\">\r\n <form onSubmit={handleBrokerContactFormSubmit}>\r\n <div className=\"row item-full\">\r\n <div className=\"col-sm-12 col-md-6 col-lg-6\">\r\n <input type=\"text\" placeholder=\"Broker Company\" id=\"brokerCompany\" name=\"brokerCompany\" value={formData.brokerCompany} onChange={handleInputChange} />\r\n </div>\r\n </div>\r\n <div className=\"calculator-row row\">\r\n <div className=\"col-sm-12 col-md-6 col-lg-6\">\r\n <input type=\"text\" placeholder=\"First Name\" id=\"broker-first-name\" name=\"firstName\" value={formData.firstName} onChange={handleInputChange} />\r\n </div>\r\n <div className=\"col-sm-12 col-md-6 col-lg-6\">\r\n <input type=\"text\" placeholder=\"Last Name\" id=\"broker-last-name\" name=\"lastName\" value={formData.lastName} onChange={handleInputChange} />\r\n </div>\r\n <div className=\"col-sm-12 col-md-6 col-lg-6\">\r\n <input type=\"text\" placeholder=\"Email Address\" type=\"email\" id=\"email\" name=\"email\" value={formData.email} onChange={handleInputChange} />\r\n </div>\r\n <div className=\"col-sm-12 col-md-6 col-lg-6\">\r\n <input type=\"text\" placeholder=\"Telephone Number\" type=\"tel\" id=\"telephone\" name=\"phone\" value={formData.phone} onChange={handlePhoneChange} />\r\n </div>\r\n </div>\r\n <div className=\"calculator-row justify-content-end\">\r\n <input id=\"contact-btn\" className=\"btn\" type=\"submit\" value=\"Submit\" />\r\n </div>\r\n <input type=\"hidden\" name=\"__RequestVerificationToken\" value=\"@Html.AntiForgeryToken()\" />\r\n {formSubmittedError && <div className=\"error\">{messageResponse}</div>}\r\n {formSubmittedSuccess && <div className=\"success\">{messageResponse}</div>}\r\n </form>\r\n\r\n <div className=\"disclaimer\">\r\n <p>\r\n Please note that all information provided above is for informational purposes only, for the exclusive use of Real Estate professionals,\r\n and not for the general public. Land Home Financial, Inc. (LHFS) is committed to keeping your email address confidential. We do not sell,\r\n rent or lease subscription lists to third parties and we will not provide your personal information to any third party, individual,\r\n government agency or company at any time unless compelled to do so by law. We will use your email address solely to provide information\r\n that’s relevant to your request. We will maintain the information you provide via email in accordance with applicable federal law. By\r\n submitting your phone number you are providing your signature and express “written†consent to having LHFS or our mortgage partners\r\n contact you about your inquiry at the phone number you have provided. You agree to be contacted via a live or automated prerecorded\r\n telephone call, text message, or email even if you have previously registered on a “do not call†government registry or requested\r\n LHFS to not send marketing information to you. You understand that your telephone company may impose charges on you for these contacts,\r\n and you are not required to enter into this agreement as a condition of any LHFS products or services.\r\n </p>\r\n </div>\r\n </div>\r\n\r\n )}\r\n\r\n <div className=\"calculator-row row info\">\r\n <p>For more information regarding borrower eligibility and programs guidelines see below:</p>\r\n <ul>\r\n <li><a href=\"https://cdn.lhfs.com/lhfscdn/wholesale/download/Reverse_FAQ_TPO.pdf\" target=\"_blank\">Reverse FAQs now!</a></li>\r\n <li><a href=\"/reverse-mortgage#glossary\">LHFS' Reverse Mortgage Glossary</a></li>\r\n </ul>\r\n <p>LHFS' dedicated Reverse Mortgage Team is here to assist!\r\n\t\t\t\t\t\t\t\tFor questions contact a Reverse Specialist at 800-398-0865, email <a href={`mailto:${emailAddress}`}>{emailAddress}</a>, or contact your Account Executive.</p>\r\n </div>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n}","import React from 'react';\r\nimport { createRoot } from 'react-dom/client';\r\nimport App from '../react/ReverseMortgageCalculator';\r\n\r\nclass ReverseMortgageCalculator {\r\n constructor() {\r\n this.container = document.querySelector('#ReverseMortgageCalculator');\r\n\r\n if (this.container) {\r\n const root = createRoot(this.container);\r\n root.render(<App />);\r\n }\r\n }\r\n\r\n init() {\r\n this.bindEvents();\r\n }\r\n\r\n bindEvents() {\r\n\r\n }\r\n}\r\n\r\nexport default ReverseMortgageCalculator;","import $ from 'jquery';\r\n\r\nglobal.$ = global.jQuery = window.$ = window.jQuery = $;\r\n\r\n// load npm plugins\r\nimport 'babel-polyfill';\r\n\r\n// load components\r\nimport Common from './components/common';\r\nimport Layout from './components/layout';\r\nimport ReverseMortgageCalculator from './components/reverseMortgageCalculator';\r\n\r\n$().ready(e => {\r\n\tlet common = new Common();\r\n common.init();\r\n\r\n let layout = new Layout();\r\n layout.init();\r\n\r\n let reverseMortgageCalculator = new ReverseMortgageCalculator();\r\n reverseMortgageCalculator.init();\r\n});\r\n","module.exports = jQuery;"],"sourceRoot":""}