{"version":3,"sources":["components/LoanCalculator/LoanTypeSelect.js","components/LoanCalculator/YearSelect.js","components/LoanCalculator/ScoreSelect.js","components/LoanCalculator/TermSelect.js","components/LoanCalculator/Card.js","components/LoanCalculator/LoanAmount.js","components/LoanCalculator/Message.js","components/LoanCalculator/ContactMe.js","components/LoanCalculator/ConvertPropertiesToString.js","components/LoanCalculator/LoanCalculator.js","serviceWorker.js","index.js"],"names":["LoanTypeSelect","_ref","loans","loanType","setLoanType","onChangeFireUsed","React","createElement","className","Fragment","htmlFor","id","name","value","onChange","e","target","map","l","key","YearSelect","years","year","setYear","y","ScoreSelect","scores","score","setScore","setContactMe","s","TermSelect","terms","term","setTerm","t","Card","title","type","concat","formatCurrency","num","parseFloat","toString","replace","isNaN","toLocaleString","style","currency","n","padEnd","LoanAmount","amount","rate","setAmount","minAmount","maxAmount","payment","min","max","step","CurrencyInput","prefix","placeholder","defaultValue","allowDecimals","maxLength","onBlur","Math","Message","text","description","ContactMe","contactMe","firstName","setFirstName","lastName","setLastName","setPhone","email","setEmail","submitRequest","submitted","displayMessage","showRequiredMessage","checked","MaskedInput","mask","onClick","disabled","recursiveToString","obj","Object","entries","reduce","acc","_ref2","_slicedToArray","k","v","_objectSpread","_defineProperty","_regeneratorRuntime","r","prototype","hasOwnProperty","o","defineProperty","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","arg","call","h","f","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","length","displayName","isGeneratorFunction","constructor","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","getSelectedLoan","find","askYear","LoanCalculator","_useState","useState","_useState2","setLoans","_useState3","_useState4","_useState5","_useState6","setYears","_useState7","_useState8","_useState9","_useState10","setScores","_useState11","_useState12","_useState13","_useState14","setTerms","_useState15","_useState16","_useState17","_useState18","setRate","_useState19","_useState20","_useState21","_useState22","setPayment","_useState23","_useState24","_useState25","_useState26","_useState27","_useState28","_useState29","_useState30","phone","_useState31","_useState32","_useState33","_useState34","setSubmitted","_useState35","_useState36","setDisplayMessage","_useState37","_useState38","apiFailed","setApiFailed","_useState39","_useState40","loading","setLoading","_useState41","_useState42","setShowRequiredMessage","_useState43","_useState44","fireUsedAction","setFireUsedAction","useEffect","all","fetch","_asyncToGenerator","_callee","responses","_yield$Promise$all","_yield$Promise$all2","loansJson","scoresJson","_context","json","creditTiers","window","parent","postMessage","action","source","_x","apply","arguments","qsType","qs","parse","location","search","toUpperCase","findLoanByQueryString","_callee2","response","_yield$response$json","_context2","_x2","needsYear","_ref3","uri","_ref4","_callee3","_context3","_x3","percent","months","pow","toFixed","calculatePayment","test","validateEmail","bodyObj","fields","headers","body","JSON","stringify","convertAllPropertiesToString","_ref5","_callee4","_context4","ok","setTimeout","_x4","Boolean","hostname","match","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":";iRA4BeA,EA1BQ,SAAHC,GAAA,IAAMC,EAAKD,EAALC,MAAOC,EAAQF,EAARE,SAAUC,EAAWH,EAAXG,YAAaC,EAAgBJ,EAAhBI,iBAAgB,OACtEC,IAAAC,cAAA,OAAKC,UAAU,kBACZN,GACCI,IAAAC,cAAAD,IAAAG,SAAA,KACEH,IAAAC,cAAA,SAAOG,QAAQ,mBAAmBC,GAAG,aAAY,0BAGjDL,IAAAC,cAAA,UACEK,KAAK,YACLD,GAAG,mBACHE,MAAOV,EACPW,SAAU,SAAAC,GACRX,EAAYW,EAAEC,OAAOH,OACrBR,MAEDH,EAAMe,KAAI,SA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A,GACbC,SAAUA,GACVC,MAAOA,GACPC,SAAUA,GACVC,cA3EY,WACpB,GAAKP,IAAcE,IAA6B,KAAjB8J,GAAMhE,QAvGnB,SAAA3F,GAAK,MAAI,eAAegO,KAAKhO,GAuGQiO,CAAcjO,IAE9D,CACL8K,IAAuB,GACvB,IAAMoD,EAAU,CAAEC,OAAQ,CAAE/S,WAAUmB,OAAMK,QAAOM,OAAMmB,SAAQsB,aAAWE,YAAU8J,SAAO3J,WAC7FqL,MAAM,WAAY,CAChBhH,OAAQ,OACR+J,QAAS,CAAE,eAAgB,oBAC3BC,KAAMC,KAAKC,UAAUC,EAA6BN,MACjDjK,KAAI,eAAAwK,EAAAnD,YAAA/J,IAAAwE,MAAC,SAAA2I,EAAM1B,GAAQ,OAAAzL,IAAAkB,MAAA,SAAAkM,GAAA,cAAAA,EAAAnI,KAAAmI,EAAA5J,MAAA,OAChBiI,EAAS4B,KACX5E,IAAa,GACbG,IAAkB,GAClB6B,OAAOC,OAAOC,YAAY,CAAEC,OAAQ,YAAaC,OAAQ,kBAAoB,wBAC7EyC,YAAW,kBAAM1E,IAAkB,KAAQ,MAC5C,wBAAAwE,EAAAhI,UAAA+H,OACF,gBAAAI,GAAA,OAAAL,EAAAnC,MAAA,KAAAC,YAPM,SARPzB,IAAuB,IA0EjB3K,UAAWA,GACXC,eAAgBA,GAChBC,oBAAqBA,Q,OC/Lb0O,QACW,cAA7B/C,OAAOW,SAASqC,UAEe,UAA7BhD,OAAOW,SAASqC,UAEhBhD,OAAOW,SAASqC,SAASC,MAAM,2DCRnCC,IAASC,OACP5T,IAAAC,cAAC6L,EAAc,MACf+H,SAASC,eAAe,SDqHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMvL,MAAK,SAAAwL,GACjCA,EAAaC,kB","file":"static/js/main.788716d6.chunk.js","sourcesContent":["import React from 'react';\n\nconst LoanTypeSelect = ({ loans, loanType, setLoanType, onChangeFireUsed }) => (\n
\n {loans && (\n <>\n \n {\n setLoanType(e.target.value);\n onChangeFireUsed();\n }} >\n {loans.map(l => (\n \n ))}\n \n \n )}\n
\n);\n\nexport default LoanTypeSelect;\n","import React from 'react';\n\nconst YearSelect = ({ years, year, setYear, onChangeFireUsed }) => (\n
\n {years && (\n <>\n \n {\n setYear(e.target.value);\n onChangeFireUsed();\n }} >\n {years.map(y => (\n \n ))}\n \n \n )}\n
\n);\n\nexport default YearSelect;\n","import React from 'react';\n\nconst ScoreSelect = ({ scores, score, setScore, setContactMe, onChangeFireUsed }) => (\n
\n {scores && (\n <>\n \n {\n setScore(e.target.value);\n // eslint-disable-next-line no-unused-expressions\n e.target.value === 'D' ? setContactMe(true) : setContactMe(false);\n onChangeFireUsed();\n }} >\n {scores.map(s => (\n \n ))}\n \n \n )}\n
\n);\n\nexport default ScoreSelect;\n","import React from 'react';\n\nconst TermSelect = ({ terms, term, setTerm, onChangeFireUsed }) => (\n
\n {terms && (\n <>\n \n {\n setTerm(e.target.value);\n onChangeFireUsed();\n }} >\n {terms.map(t => (\n \n ))}\n \n \n )}\n
\n);\n\nexport default TermSelect;\n","import React from 'react';\n\nimport './LoanCalculator.css';\n\nconst Card = ({ title, type, value }) => (\n
\n
{title}
\n
{type === 'amount' ? `${value || ''}` : `${value || ''}%`}
\n
\n);\n\nexport default Card;\n","import React from 'react';\nimport CurrencyInput from 'react-currency-input-field';\n\nimport Card from './Card';\n\nconst formatCurrency = value => {\n const num = parseFloat((value || 0).toString().replace(/[^\\d.-]/g, ''));\n // eslint-disable-next-line no-restricted-globals\n return isNaN(num)\n ? ''\n : num\n .toLocaleString('en-US', { style: 'currency', currency: 'USD' })\n .replace(/^\\((.*)\\)$/, '-$1') // NOTE: IE uses parenthesis for negative numbers.\n .replace(/(\\.\\d*)?$/, n => (n || '.00').padEnd(3, 0)); // NOTE: S5 does not always return 2 decimals\n};\n\nconst LoanAmount = ({ amount, rate, setAmount, minAmount, maxAmount, payment, onChangeFireUsed }) => (\n
\n
\n
\n \n {\n setAmount(e.target.value);\n onChangeFireUsed();\n }} />\n
\n
\n \n {\n setAmount(value);\n onChangeFireUsed();\n }}\n onBlur={() => setAmount(Math.max(Math.min(amount, maxAmount), minAmount))} />\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n);\n\nexport default LoanAmount;\n","import React from 'react';\n\nconst Message = ({ text, description }) =>
{text}
;\n\nexport default Message;\n","import React from 'react';\nimport MaskedInput from 'react-maskedinput';\n\nimport Message from './Message';\n\nconst ContactMe = ({\n contactMe,\n setContactMe,\n firstName,\n setFirstName,\n lastName,\n setLastName,\n setPhone,\n email,\n setEmail,\n submitRequest,\n submitted,\n displayMessage,\n showRequiredMessage,\n}) => (\n
\n
\n setContactMe(e.target.checked)}\n />\n \n
\n {contactMe && (\n
\n
\n \n setFirstName(e.target.value.replace(/[^A-Za-z'_.\\s]/g, ''))}\n />\n
\n
\n \n setLastName(e.target.value.replace(/[^A-Za-z'_.\\s]/g, ''))}\n />\n
\n
\n \n setPhone(e.target.value.replace(/[^0-9]/g, ''))}\n mask=\"(111) 111-1111\"\n />\n
\n
\n \n setEmail(e.target.value)} />\n
\n {showRequiredMessage && (\n \n )}\n {displayMessage && (\n \n )}\n {!submitted && (\n
\n \n
\n )}\n
\n )}\n
\n);\n\nexport default ContactMe;\n","// Convert all the values of an object to string, and do so recursively.\n// { foo: 'bar', bizz: 123 } becomes { foo: 'bar', bizz: '123' }\n// { foo: 'bar', sub: { bizz: 123 } } becomes { foo: 'bar', sub: { bizz: '123' } }\nconst recursiveToString = obj => {\n return Object.entries(obj)\n // eslint-disable-next-line prefer-template\n .reduce((acc, [k, v]) => ({ ...acc, [k]: typeof v === 'object' ? recursiveToString(v) : ('' + v) }), {})\n}\n\nexport default recursiveToString;\n","import React, { useEffect, useState } from 'react';\nimport qs from 'querystring';\n\nimport LoanTypeSelect from './LoanTypeSelect';\nimport YearSelect from './YearSelect';\nimport ScoreSelect from './ScoreSelect';\nimport TermSelect from './TermSelect';\nimport LoanAmount from './LoanAmount';\nimport ContactMe from './ContactMe';\nimport convertAllPropertiesToString from './ConvertPropertiesToString';\n\nimport './LoanCalculator.css';\n\nconst getSelectedLoan = (loans, loanType) => loans.find(l => l.value === loanType) || { askYear: false };\n\nconst calculatePayment = (amount, rate, months) => {\n const r = rate / 100 / 12;\n const n = r * amount;\n const d = 1 - (1 + r) ** (months * -1);\n const payment = n / d;\n return payment.toFixed(2);\n};\n\nconst validateEmail = email => /\\S+@\\S+\\.\\S+/.test(email);\n\nconst findLoanByQueryString = loans => {\n const qsType = qs.parse(window.location.search.slice(1) || '').type || '';\n return (loans || []).find(l => l.value.toUpperCase() === qsType.toUpperCase()) || {};\n};\n\nconst LoanCalculator = () => {\n const [loans, setLoans] = useState([]);\n const [loanType, setLoanType] = useState('');\n const [years, setYears] = useState([]);\n const [year, setYear] = useState('');\n const [scores, setScores] = useState([]);\n const [score, setScore] = useState();\n const [terms, setTerms] = useState([]);\n const [term, setTerm] = useState();\n const [rate, setRate] = useState({});\n const [amount, setAmount] = useState(0);\n const [payment, setPayment] = useState();\n const [contactMe, setContactMe] = useState(false);\n const [firstName, setFirstName] = useState('');\n const [lastName, setLastName] = useState('');\n const [phone, setPhone] = useState('');\n const [email, setEmail] = useState('');\n const [submitted, setSubmitted] = useState(false);\n const [displayMessage, setDisplayMessage] = useState(false);\n const [apiFailed, setApiFailed] = useState(false);\n const [loading, setLoading] = useState(true);\n const [showRequiredMessage, setShowRequiredMessage] = useState(false);\n const [fireUsedAction, setFireUsedAction] = useState(true);\n\n useEffect(() => {\n Promise.all([fetch('/loan/products'), fetch(`/loan/credit-tiers?loanType=${loanType || 'Auto'}`)])\n .then(async responses => {\n const [loansJson, scoresJson] = await Promise.all(responses.map(r => r.json()));\n setLoans(loansJson.loans);\n setScores(scoresJson.creditTiers);\n setScore(scoresJson.creditTiers[0].value);\n window.parent.postMessage({ action: 'viewed', source: 'loancalculator' }, 'https://www.ent.com/');\n setLoading(false);\n })\n .catch(() => {\n setApiFailed(true);\n });\n }, []);\n\n useEffect(() => {\n setLoanType(findLoanByQueryString(loans).value || (loans[0] || {}).value);\n }, [loans]);\n\n useEffect(() => {\n setYears([]);\n setYear('');\n if (getSelectedLoan(loans, loanType).askYear) {\n fetch(`/loan/year-ranges?loanType=${loanType}`).then(async response => {\n // eslint-disable-next-line no-shadow\n const { years } = await response.json();\n setYears(years);\n setYear(years[0].value);\n });\n }\n }, [loanType]);\n\n useEffect(() => {\n const hasLoanType = !!loanType;\n if (!hasLoanType) {\n return;\n }\n const needsYear = getSelectedLoan(loans, loanType).askYear;\n if (needsYear === false || (needsYear && !!year)) {\n setTerms([]);\n fetch(`/loan/terms?loanType=${loanType}&yearRange=${year}`)\n .then(v => v.json())\n .then(({ terms: t }) => {\n setTerms(t);\n setTerm(((t || {})[0] || {}).value);\n });\n }\n }, [loanType, year]);\n\n useEffect(() => {\n if (!!loanType && !!score && !!term) {\n setRate({});\n const uri = `/loan/rate?loanType=${loanType}&yearRange=${year}&creditTier=${score}&term=${term}`;\n fetch(uri).then(async response => {\n // eslint-disable-next-line no-shadow\n const rate = await response.json();\n setRate(rate);\n setAmount((rate || {}).minAmount);\n });\n }\n }, [loanType, year, score, term]);\n\n useEffect(() => {\n setPayment(0);\n if (amount > 0 && rate.percent > 0 && term > 0) {\n setPayment(\n calculatePayment(Math.max(Math.min(amount, (rate || {}).maxAmount), (rate || {}).minAmount), rate.percent, term)\n );\n }\n }, [amount, rate, term]);\n\n const submitRequest = () => {\n if (!firstName || !lastName || phone.length !== 10 || !validateEmail(email)) {\n setShowRequiredMessage(true);\n } else {\n setShowRequiredMessage(false);\n const bodyObj = { fields: { loanType, year, score, term, amount, firstName, lastName, phone, email } };\n fetch('/contact', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(convertAllPropertiesToString(bodyObj)),\n }).then(async response => {\n if (response.ok) {\n setSubmitted(true);\n setDisplayMessage(true);\n window.parent.postMessage({ action: 'submitted', source: 'loancalculator' }, 'https://www.ent.com/');\n setTimeout(() => setDisplayMessage(false), 10000);\n }\n });\n }\n };\n\n const onChangeFireUsed = () => {\n if (fireUsedAction) {\n window.parent.postMessage({ action: 'used', source: 'loancalculator' }, 'https://www.ent.com/');\n setFireUsedAction(false);\n }\n };\n\n return (\n
\n

Calculate your Loan Payment

\n {apiFailed &&
The loan calculator is currently unavailable. Please try again later.
}\n {loading && !apiFailed &&
Loading...
}\n {!apiFailed && !loading && (\n
\n \n {years && years.length > 0 && (\n \n )}\n \n {terms && terms.length > 0 && score !== 'D' && (\n \n )}\n {score !== 'D' && (\n \n )}\n \n \n )}\n
\n );\n};\n\nexport default LoanCalculator;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n // eslint-disable-next-line no-console\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n // eslint-disable-next-line no-param-reassign\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n // eslint-disable-next-line no-console\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n // eslint-disable-next-line no-console\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n // eslint-disable-next-line no-console\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1)) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n // eslint-disable-next-line no-console\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import 'react-app-polyfill/ie11';\nimport 'react-app-polyfill/stable';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { LoanCalculator } from './components/LoanCalculator';\nimport './index.css';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(\n ,\n document.getElementById('root')\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}