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ACQ,IAsCJ,OACE,gBAACP,EAAcuC,SAAQ,CACrBC,MAAO,CACLjC,qBAAAA,EACAC,wBAAAA,EACAmB,OAAAA,EACAc,aA1Ce,SAAAC,GACfnC,GACFmB,EAAqBgB,GAE4C,mBAA7B,OAA3B/B,QAA2B,IAA3BA,OAA2B,EAA3BA,EAA6B0B,yBAChC1B,EAA4B0B,yBAA2BN,EAAAA,EAAAA,IAAS3G,IACzD,OAARsH,GAIHd,EAAUc,GACVrC,EAAAA,EAAAA,eAAoBqC,GACpBb,EAA6Ba,IAJ7BhC,GAAkC,KAOpCkB,EAAU7B,GACVM,EAAAA,EAAAA,eAAoBN,GACpB8B,EAA6B9B,GAEjC,EAwBMU,+BAAAA,EACAkC,+BAvBiC,SAACC,GAClCA,EACF1C,GAAS2C,EAAAA,EAAAA,IAAkB,CACzBC,WAAYnC,EAA4BxC,GACxC8D,QAAS,CAAEI,wBAAwB,MAE5BZ,IAAsB1B,IAC/B2B,EAAqB3B,GACrB6B,EAAU7B,GACVM,EAAAA,EAAAA,eAAoBN,GACpB8B,EAA6B9B,IAE/BW,GAAkC,EACpC,IAaK9K,EAGP,C,uCCtHA,IAfwB,SAACmN,GAAsC,IAAvBC,EAAY,uDAAG,GAChDA,EAAa3O,QAChB4O,QAAQC,KAAK,4EAEf,IAAMC,GAAgBC,EAAAA,EAAAA,SAAO,IAE7BlB,EAAAA,EAAAA,YAAU,WACJiB,EAAcE,QAChBF,EAAcE,SAAU,EAG1BN,GACF,GAAGC,EACL,C","sources":["webpack://Maxwell/./node_modules/react-router-dom/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://Maxwell/./node_modules/react-router-dom/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://Maxwell/./node_modules/react-router-dom/node_modules/@babel/runtime/helpers/esm/extends.js","webpack://Maxwell/./node_modules/react-router-dom/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://Maxwell/./node_modules/react-router-dom/esm/react-router-dom.js","webpack://Maxwell/./app/assets/javascripts/apiV2/store/base/selectors.js","webpack://Maxwell/./app/assets/javascripts/apiV2/store/loanApplications/taskItem/selectors.js","webpack://Maxwell/./app/assets/javascripts/apiV2/store/loanApplications/user/selectors.js","webpack://Maxwell/./app/assets/javascripts/v2/components/Global/Communication/MessengerIcon/MessengerPrependLink.js","webpack://Maxwell/./app/assets/javascripts/v2/Router/Navbar.js","webpack://Maxwell/./app/assets/javascripts/v2/Router/ScriptLoader.js","webpack://Maxwell/./app/assets/javascripts/v2/Router/DefaultLayout.js","webpack://Maxwell/./app/assets/javascripts/v2/Router/utils/renderRoutes.js","webpack://Maxwell/./app/assets/javascripts/v2/context/locale/LocaleContext.js","webpack://Maxwell/./app/assets/javascripts/v2/hooks/useUpdateEffect.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","import { Router, __RouterContext, matchPath } from 'react-router';\nexport { MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter } from 'react-router';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport React from 'react';\nimport { createBrowserHistory, createHashHistory, createLocation, createPath } from 'history';\nimport PropTypes from 'prop-types';\nimport warning from 'tiny-warning';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport invariant from 'tiny-invariant';\n\n/**\n * The public API for a <Router> that uses HTML5 history.\n */\n\nvar BrowserRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(BrowserRouter, _React$Component);\n function BrowserRouter() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createBrowserHistory(_this.props);\n return _this;\n }\n var _proto = BrowserRouter.prototype;\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n return BrowserRouter;\n}(React.Component);\nif (process.env.NODE_ENV !== \"production\") {\n BrowserRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n forceRefresh: PropTypes.bool,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number\n };\n BrowserRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \"<BrowserRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { BrowserRouter as Router }`.\") : void 0;\n };\n}\n\n/**\n * The public API for a <Router> that uses window.location.hash.\n */\n\nvar HashRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(HashRouter, _React$Component);\n function HashRouter() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createHashHistory(_this.props);\n return _this;\n }\n var _proto = HashRouter.prototype;\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n return HashRouter;\n}(React.Component);\nif (process.env.NODE_ENV !== \"production\") {\n HashRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n getUserConfirmation: PropTypes.func,\n hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"])\n };\n HashRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \"<HashRouter> ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { HashRouter as Router }`.\") : void 0;\n };\n}\nvar resolveToLocation = function resolveToLocation(to, currentLocation) {\n return typeof to === \"function\" ? to(currentLocation) : to;\n};\nvar normalizeToLocation = function normalizeToLocation(to, currentLocation) {\n return typeof to === \"string\" ? createLocation(to, null, null, currentLocation) : to;\n};\nvar forwardRefShim = function forwardRefShim(C) {\n return C;\n};\nvar forwardRef = React.forwardRef;\nif (typeof forwardRef === \"undefined\") {\n forwardRef = forwardRefShim;\n}\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\nvar LinkAnchor = forwardRef(function (_ref, forwardedRef) {\n var innerRef = _ref.innerRef,\n navigate = _ref.navigate,\n _onClick = _ref.onClick,\n rest = _objectWithoutPropertiesLoose(_ref, [\"innerRef\", \"navigate\", \"onClick\"]);\n var target = rest.target;\n var props = _extends({}, rest, {\n onClick: function onClick(event) {\n try {\n if (_onClick) _onClick(event);\n } catch (ex) {\n event.preventDefault();\n throw ex;\n }\n if (!event.defaultPrevented &&\n // onClick prevented default\n event.button === 0 && (\n // ignore everything but left clicks\n !target || target === \"_self\") &&\n // let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // ignore clicks with modifier keys\n ) {\n event.preventDefault();\n navigate();\n }\n }\n }); // React 15 compat\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.ref = innerRef;\n }\n /* eslint-disable-next-line jsx-a11y/anchor-has-content */\n\n return /*#__PURE__*/React.createElement(\"a\", props);\n});\nif (process.env.NODE_ENV !== \"production\") {\n LinkAnchor.displayName = \"LinkAnchor\";\n}\n/**\n * The public API for rendering a history-aware <a>.\n */\n\nvar Link = forwardRef(function (_ref2, forwardedRef) {\n var _ref2$component = _ref2.component,\n component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,\n replace = _ref2.replace,\n to = _ref2.to,\n innerRef = _ref2.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref2, [\"component\", \"replace\", \"to\", \"innerRef\"]);\n return /*#__PURE__*/React.createElement(__RouterContext.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use <Link> outside a <Router>\") : invariant(false) : void 0;\n var history = context.history;\n var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);\n var href = location ? history.createHref(location) : \"\";\n var props = _extends({}, rest, {\n href: href,\n navigate: function navigate() {\n var location = resolveToLocation(to, context.location);\n var isDuplicateNavigation = createPath(context.location) === createPath(normalizeToLocation(location));\n var method = replace || isDuplicateNavigation ? history.replace : history.push;\n method(location);\n }\n }); // React 15 compat\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n return /*#__PURE__*/React.createElement(component, props);\n });\n});\nif (process.env.NODE_ENV !== \"production\") {\n var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]);\n var refType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({\n current: PropTypes.any\n })]);\n Link.displayName = \"Link\";\n Link.propTypes = {\n innerRef: refType,\n onClick: PropTypes.func,\n replace: PropTypes.bool,\n target: PropTypes.string,\n to: toType.isRequired\n };\n}\nvar forwardRefShim$1 = function forwardRefShim(C) {\n return C;\n};\nvar forwardRef$1 = React.forwardRef;\nif (typeof forwardRef$1 === \"undefined\") {\n forwardRef$1 = forwardRefShim$1;\n}\nfunction joinClassnames() {\n for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {\n classnames[_key] = arguments[_key];\n }\n return classnames.filter(function (i) {\n return i;\n }).join(\" \");\n}\n/**\n * A <Link> wrapper that knows if it's \"active\" or not.\n */\n\nvar NavLink = forwardRef$1(function (_ref, forwardedRef) {\n var _ref$ariaCurrent = _ref[\"aria-current\"],\n ariaCurrent = _ref$ariaCurrent === void 0 ? \"page\" : _ref$ariaCurrent,\n _ref$activeClassName = _ref.activeClassName,\n activeClassName = _ref$activeClassName === void 0 ? \"active\" : _ref$activeClassName,\n activeStyle = _ref.activeStyle,\n classNameProp = _ref.className,\n exact = _ref.exact,\n isActiveProp = _ref.isActive,\n locationProp = _ref.location,\n sensitive = _ref.sensitive,\n strict = _ref.strict,\n styleProp = _ref.style,\n to = _ref.to,\n innerRef = _ref.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref, [\"aria-current\", \"activeClassName\", \"activeStyle\", \"className\", \"exact\", \"isActive\", \"location\", \"sensitive\", \"strict\", \"style\", \"to\", \"innerRef\"]);\n return /*#__PURE__*/React.createElement(__RouterContext.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use <NavLink> outside a <Router>\") : invariant(false) : void 0;\n var currentLocation = locationProp || context.location;\n var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);\n var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n\n var escapedPath = path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n var match = escapedPath ? matchPath(currentLocation.pathname, {\n path: escapedPath,\n exact: exact,\n sensitive: sensitive,\n strict: strict\n }) : null;\n var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);\n var className = typeof classNameProp === \"function\" ? classNameProp(isActive) : classNameProp;\n var style = typeof styleProp === \"function\" ? styleProp(isActive) : styleProp;\n if (isActive) {\n className = joinClassnames(className, activeClassName);\n style = _extends({}, style, activeStyle);\n }\n var props = _extends({\n \"aria-current\": isActive && ariaCurrent || null,\n className: className,\n style: style,\n to: toLocation\n }, rest); // React 15 compat\n\n if (forwardRefShim$1 !== forwardRef$1) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n return /*#__PURE__*/React.createElement(Link, props);\n });\n});\nif (process.env.NODE_ENV !== \"production\") {\n NavLink.displayName = \"NavLink\";\n var ariaCurrentType = PropTypes.oneOf([\"page\", \"step\", \"location\", \"date\", \"time\", \"true\", \"false\"]);\n NavLink.propTypes = _extends({}, Link.propTypes, {\n \"aria-current\": ariaCurrentType,\n activeClassName: PropTypes.string,\n activeStyle: PropTypes.object,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n exact: PropTypes.bool,\n isActive: PropTypes.func,\n location: PropTypes.object,\n sensitive: PropTypes.bool,\n strict: PropTypes.bool,\n style: PropTypes.oneOfType([PropTypes.object, PropTypes.func])\n });\n}\nexport { BrowserRouter, HashRouter, Link, NavLink };","export const getLendersV2 = state => state.lendersV2\nexport const getLoanApplicationsV2 = state => state.loanApplicationsV2\nexport const getQuickPricer = state => state.quickPricer\nexport const getQuickApply = state => state.quickApply\nexport const getSettings = state => state.settings\n","import { getLoanApplicationsV2 } from 'apiV2/store/base/selectors'\n\nexport const getTaskItem = state => getLoanApplicationsV2(state).taskItems\nexport const getTaskItemRecords = state => getTaskItem(state).records\nexport const getTaskItemStagedRecord = state => getTaskItem(state).stagedRecord\n","import { getLoanApplicationsV2 } from 'apiV2/store/base/selectors'\n\nexport const getUser = state => getLoanApplicationsV2(state).user\nexport const getStagedUser = state => getUser(state).stagedRecord\nexport const getUserUIFlags = state => getUser(state).uiFlags\nexport const getUserRecords = state => getUser(state).records\n","import React from 'react'\n\nconst MessengerPrependLink = ({ link }) => (\n <button\n type=\"button\"\n className=\"link-like-button\"\n onClick={() => {\n /**\n * Using window.open() instead of an anchor tag here allows us to close\n * the window with window.close().\n *\n * Scripts cannot close tabs they did not open.\n */\n window.open(link.path, '_blank')\n }}\n >\n {link.title}\n </button>\n)\n\nexport default MessengerPrependLink\n","import React, { Fragment } from 'react'\nimport { Link } from 'react-router-dom'\nimport PropTypes from 'prop-types'\nimport MessengerIcon from 'v2/components/Global/Communication/MessengerIcon'\nimport MessengerPrependLink from 'v2/components/Global/Communication/MessengerIcon/MessengerPrependLink'\nimport { closeMessenger } from 'v2/actions/ui_actions/messenger'\nimport Route from 'Services/Route'\n\nconst { lenders: { loanFile: { messenger: { downloadCommunications } } } } = Route\n\nexport default class Navbar extends React.PureComponent {\n static propTypes = {\n links: PropTypes.arrayOf(\n PropTypes.shape({\n path: PropTypes.string,\n title: PropTypes.string,\n })\n ),\n additionalMessengerLinks: PropTypes.arrayOf(\n PropTypes.shape({\n path: PropTypes.string,\n title: PropTypes.oneOfType([PropTypes.string, PropTypes.shape()]),\n })\n ),\n lenderId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n loanFileId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n showMessenger: PropTypes.bool,\n }\n\n static defaultProps = {\n links: [],\n lenderId: null,\n loanFileId: null,\n showMessenger: false,\n additionalMessengerLinks: null,\n }\n\n componentDidMount() {\n const { showMessenger } = this.props\n if (!showMessenger) {\n closeMessenger()\n }\n }\n\n renderNavLink = (link) => {\n const { routerLink = true } = link\n const Element = routerLink ? Link : 'a'\n const pathProps = routerLink ? { to: link.path } : { href: link.path }\n\n return (\n <Element className=\"nav-link-loan-file\" key={link.path} {...pathProps}>\n <span className=\"glyphicon glyphicon-chevron-left\" />\n <span>{link.title}</span>\n </Element>\n )\n }\n\n render() {\n const {\n additionalMessengerLinks,\n links,\n lenderId,\n loanFileId,\n showMessenger,\n } = this.props\n return (\n <Fragment>\n {links.length ? (\n <nav className=\"tabs-navigation\" role=\"navigation\">\n <div className=\"container-fluid\">\n <ul className=\"nav navbar-nav\">\n <li className=\"nav-link-loan-file\">\n {links.map(this.renderNavLink)}\n </li>\n </ul>\n\n {showMessenger ? (\n <div className=\"nav navbar-nav navbar-right with-messenger\">\n <MessengerIcon\n prependLinks={\n additionalMessengerLinks\n ? additionalMessengerLinks.map((link) => (\n <MessengerPrependLink key={link.path} link={link} />\n ))\n : null\n }\n downloadPath={downloadCommunications({\n lenderId,\n loanFileId,\n })}\n />\n </div>\n ) : null}\n </div>\n </nav>\n ) : null}\n </Fragment>\n )\n }\n}\n","import React from 'react'\nimport Spinner from 'components/utils/spinner'\n\nconst availableScripts = {}\n\nconst loadScript = (scriptKey, callback) => {\n const scriptConfig = availableScripts[scriptKey]\n\n if (!scriptConfig) {\n return\n }\n\n const existingScript = document.getElementById(scriptConfig.key)\n\n if (!existingScript) {\n const script = document.createElement('script')\n script.src = scriptConfig.url\n script.id = scriptConfig.key\n if (scriptConfig.crossOrigin) {\n script.crossorigin = scriptConfig.crossOrigin\n }\n document.body.appendChild(script)\n\n script.onload = () => {\n if (scriptConfig.afterLoad) {\n scriptConfig.afterLoad()\n }\n if (callback) {\n callback()\n }\n }\n\n script.onerror = () => {\n if (callback) {\n callback()\n }\n }\n }\n\n if (existingScript && callback) {\n callback()\n }\n}\n\nexport default function withScriptLoader(Component) {\n return class ConfigProvider extends React.Component {\n constructor(props) {\n super(props)\n this.state = { isLoadingScripts: true }\n }\n\n componentDidMount() {\n const { route: { externalDependencies = [] } } = this.props\n this.numOfScriptsToLoad = externalDependencies.length\n this.setLoadingToFalse()\n externalDependencies.forEach(scriptKey => {\n loadScript(scriptKey, () => {\n this.numOfScriptsToLoad -= 1\n this.setLoadingToFalse()\n })\n })\n\n }\n\n setLoadingToFalse = () => {\n if (!this.numOfScriptsToLoad) {\n this.setState({ isLoadingScripts: false })\n }\n }\n\n render() {\n const { isLoadingScripts } = this.state\n if (isLoadingScripts) {\n return (\n <div className=\"text-center\">\n <Spinner size isLoading />\n </div>\n )\n }\n return (\n <Component {...this.props} />\n )\n }\n }\n\n}\n","import React, { Fragment } from 'react'\nimport CommunicationContainer from 'v2/containers/CommunicationContainer'\nimport Navbar from './Navbar'\nimport withScriptLoader from './ScriptLoader'\n\nclass DefaultLayout extends React.Component {\n\n shouldComponentUpdate(nextProps) {\n const { location } = this.props\n const hasPathChanged = nextProps.location.pathname !== location.pathname\n return hasPathChanged\n }\n\n render() {\n const { route, ...props } = this.props\n const Component = withScriptLoader(route.component)\n const { navigationUrl = () => [], additionalMessengerLinks = () => [] } = route\n const { match: { params: { lenderId, loanFileId } } } = props\n return (\n <Fragment>\n <Navbar\n links={navigationUrl(props)}\n additionalMessengerLinks={additionalMessengerLinks(props)}\n lenderId={lenderId}\n loanFileId={loanFileId}\n showMessenger={route.showMessenger}\n />\n <Component {...props} route={route} />\n {route.showMessenger && (\n <CommunicationContainer loanFileId={loanFileId} />\n )}\n </Fragment>\n )\n }\n}\n\nexport default DefaultLayout\n","import React from 'react'\nimport { Route, Switch } from 'react-router-dom'\nimport DefaultLayout from '../DefaultLayout'\n\nexport const renderRoutes = (routes, componentProps) => {\n const renderSubRouter = (route, props = {}) => {\n const { childRoutes, path, component: RouteComponent } = route\n\n if (!childRoutes) {\n if (!RouteComponent) return null\n\n return (\n <Route\n key={path}\n path={path}\n exact\n render={({ match }) => <RouteComponent {...props} match={match} />}\n />\n )\n }\n\n return (\n <Switch>\n {childRoutes.map(childRoute => {\n const { path: childPath, component: SubRouteComponent, layout = null } = childRoute\n if (childPath) {\n return (\n <Route\n key={childPath}\n path={childPath}\n exact\n render={({ match }) => {\n if (layout) {\n const Layout = layout\n return (\n <Layout\n {...props}\n route={childRoute}\n renderSubRouter={() => renderSubRouter(childRoute, { ...props })}\n />\n )\n }\n return <SubRouteComponent {...props} match={match} />\n }}\n />\n )\n }\n return null\n })}\n </Switch>\n )\n }\n\n return routes.map(route => {\n const { path, exact = true, layout } = route\n if (path) {\n return (\n <Route\n key={path}\n path={path}\n exact={exact}\n render={(props) => {\n const Layout = layout || DefaultLayout\n return (\n <Layout\n {...props}\n {...componentProps}\n route={route}\n renderSubRouter={(passedProps = {}) => renderSubRouter(route, {\n ...passedProps,\n ...props,\n ...componentProps,\n })}\n />\n )\n }}\n />\n )\n }\n return null\n })\n}\n","import React, { useEffect, useState } from 'react'\nimport { useSelector, useDispatch } from 'react-redux'\nimport i18n, { SUPPORTED_LANGUAGES } from 'i18n'\nimport useUpdateEffect from 'v2/hooks/useUpdateEffect'\nimport { getTaskItemStagedRecord } from 'apiV2/store/loanApplications/taskItem/selectors'\nimport { updateTaskItemAPI } from 'apiV2/store/loanApplications/taskItem/asyncActions'\nimport { updateUserAPI, showUserAPI } from 'apiV2/store/loanApplications/user/asyncActions'\nimport { getStagedUser } from 'apiV2/store/loanApplications/user/selectors'\nimport { getUserId, getUserInfo, getUserLocale } from 'v2/selectors/page_info'\nimport { isLender } from 'utils/user_type_utils'\nimport { isEmpty } from 'lodash'\n\nconst DEFAULT_LOCALE = 'en'\n\nconst LocaleContext = React.createContext()\nLocaleContext.displayName = 'LocaleContext'\n\nconst LocaleProvider = ({ children }) => {\n const dispatch = useDispatch()\n const { language } = i18n\n const [localeSupportEnabled, setLocaleSupportEnabled] = useState()\n const [showLanguageAknowledgmentModal, setShowLanguageAknowledgmentModal] = useState(false)\n const loanAppTaskItemStagedRecord = useSelector(getTaskItemStagedRecord)\n const userLocale = useSelector(getUserLocale)\n const userId = useSelector(getUserId)\n const userInfo = useSelector(getUserInfo)\n const user = useSelector(getStagedUser)\n const { type } = userInfo\n const languageMatcher = new RegExp(`(?<base>${SUPPORTED_LANGUAGES.join('|')})(-\\\\w)?`)\n\n const normalizedLocale = () => {\n const match = language.match(languageMatcher)\n return match ? match.groups.base : language\n }\n\n const [localeMiddleState, setLocaleMiddleState] = useState(normalizedLocale())\n const [locale, setLocale] = useState(normalizedLocale())\n\n const updateUserLocaleUnlessLender = (localeValue) => {\n if (type && !isLender(type) && userLocale !== localeValue) {\n dispatch(updateUserAPI({ userId, payload: { locale: localeValue } }))\n }\n }\n\n useEffect(() => {\n if (type && !isLender(type) && isEmpty(user) && userId) {\n dispatch(showUserAPI(userId))\n }\n }, [userId])\n\n useEffect(() => {\n if (\n typeof loanAppTaskItemStagedRecord?.spanishAcknowledgement === 'boolean'\n && !loanAppTaskItemStagedRecord.spanishAcknowledgement\n && locale === 'es' && !isLender(type)\n ) {\n setShowLanguageAknowledgmentModal(true)\n }\n }, [loanAppTaskItemStagedRecord?.spanishAcknowledgement, locale])\n\n useEffect(() => {\n if (loanAppTaskItemStagedRecord?.spanishAcknowledgement) {\n updateUserLocaleUnlessLender(localeMiddleState)\n setLocale(localeMiddleState)\n i18n.changeLanguage(localeMiddleState)\n }\n }, [loanAppTaskItemStagedRecord?.spanishAcknowledgement])\n\n useEffect(() => {\n if (userLocale && userLocale !== locale && localeSupportEnabled) {\n setLocaleMiddleState(userLocale)\n i18n.changeLanguage(userLocale)\n setLocale(userLocale)\n } else if (!userLocale) {\n updateUserLocaleUnlessLender(normalizedLocale())\n }\n }, [userLocale, localeSupportEnabled])\n\n useUpdateEffect(() => {\n if (locale !== DEFAULT_LOCALE && !localeSupportEnabled) {\n i18n.changeLanguage(DEFAULT_LOCALE)\n setLocale(DEFAULT_LOCALE)\n updateUserLocaleUnlessLender(DEFAULT_LOCALE)\n }\n }, [localeSupportEnabled])\n\n const changeLocale = lng => {\n if (localeSupportEnabled) {\n setLocaleMiddleState(lng)\n if (\n typeof loanAppTaskItemStagedRecord?.spanishAcknowledgement === 'boolean'\n && !loanAppTaskItemStagedRecord.spanishAcknowledgement && !isLender(type)\n && lng === 'es'\n ) {\n setShowLanguageAknowledgmentModal(true)\n } else {\n setLocale(lng)\n i18n.changeLanguage(lng)\n updateUserLocaleUnlessLender(lng)\n }\n } else {\n setLocale(DEFAULT_LOCALE)\n i18n.changeLanguage(DEFAULT_LOCALE)\n updateUserLocaleUnlessLender(DEFAULT_LOCALE)\n }\n }\n\n const hideLanguageAcknowledmentModal = (accepted) => {\n if (accepted) {\n dispatch(updateTaskItemAPI({\n taskItemId: loanAppTaskItemStagedRecord.id,\n payload: { spanishAcknowledgement: true },\n }))\n } else if (localeMiddleState !== DEFAULT_LOCALE) {\n setLocaleMiddleState(DEFAULT_LOCALE)\n setLocale(DEFAULT_LOCALE)\n i18n.changeLanguage(DEFAULT_LOCALE)\n updateUserLocaleUnlessLender(DEFAULT_LOCALE)\n }\n setShowLanguageAknowledgmentModal(false)\n }\n\n return (\n <LocaleContext.Provider\n value={{\n localeSupportEnabled,\n setLocaleSupportEnabled,\n locale,\n changeLocale,\n showLanguageAknowledgmentModal,\n hideLanguageAcknowledmentModal,\n }}\n >\n {children}\n </LocaleContext.Provider>\n )\n}\n\nexport default LocaleProvider\nexport { LocaleContext }\n","import { useEffect, useRef } from 'react'\n\n// simple custom hook that will not be triggered on initial component mount\nconst useUpdateEffect = (useEffectHook, dependencies = []) => {\n if (!dependencies.length) {\n console.warn('An empty dependency array will prevent this hook from ever being called.')\n }\n const initialRender = useRef(true)\n\n useEffect(() => {\n if (initialRender.current) {\n initialRender.current = false\n return\n }\n useEffectHook()\n }, dependencies)\n}\n\nexport default useUpdateEffect\n"],"names":["_setPrototypeOf","o","p","Object","setPrototypeOf","__proto__","_inheritsLoose","subClass","superClass","prototype","create","constructor","_extends","assign","target","i","arguments","length","source","key","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","BrowserRouter","_React$Component","_this","_len","args","Array","_key","concat","history","props","render","children","resolveToLocation","to","currentLocation","normalizeToLocation","forwardRefShim","C","forwardRef","LinkAnchor","_ref","forwardedRef","innerRef","navigate","_onClick","onClick","rest","event","ex","preventDefault","defaultPrevented","button","metaKey","altKey","ctrlKey","shiftKey","isModifiedEvent","ref","Link","_ref2","_ref2$component","component","replace","context","location","href","createHref","isDuplicateNavigation","push","forwardRefShim$1","forwardRef$1","NavLink","_ref$ariaCurrent","ariaCurrent","_ref$activeClassName","activeClassName","activeStyle","classNameProp","className","exact","isActiveProp","isActive","locationProp","sensitive","strict","styleProp","style","toLocation","path","pathname","escapedPath","match","classnames","filter","join","joinClassnames","getLendersV2","state","lendersV2","getLoanApplicationsV2","loanApplicationsV2","getQuickPricer","quickPricer","getQuickApply","quickApply","getSettings","settings","getTaskItem","taskItems","getTaskItemStagedRecord","stagedRecord","getUser","user","getStagedUser","getUserUIFlags","uiFlags","getUserRecords","records","link","type","window","open","title","downloadCommunications","Route","Navbar","renderNavLink","routerLink","Element","pathProps","showMessenger","closeMessenger","additionalMessengerLinks","links","lenderId","loanFileId","Fragment","role","map","MessengerIcon","prependLinks","downloadPath","React","propTypes","PropTypes","defaultProps","availableScripts","withScriptLoader","Component","setLoadingToFalse","numOfScriptsToLoad","setState","isLoadingScripts","route","externalDependencies","forEach","scriptKey","callback","scriptConfig","existingScript","document","getElementById","script","createElement","src","url","id","crossOrigin","crossorigin","body","appendChild","onload","afterLoad","onerror","loadScript","size","isLoading","DefaultLayout","nextProps","navigationUrl","params","CommunicationContainer","renderRoutes","routes","componentProps","renderSubRouter","childRoutes","RouteComponent","childRoute","childPath","SubRouteComponent","layout","Layout","passedProps","DEFAULT_LOCALE","LocaleContext","displayName","dispatch","useDispatch","language","i18n","useState","localeSupportEnabled","setLocaleSupportEnabled","showLanguageAknowledgmentModal","setShowLanguageAknowledgmentModal","loanAppTaskItemStagedRecord","useSelector","userLocale","getUserLocale","userId","getUserId","userInfo","getUserInfo","languageMatcher","RegExp","SUPPORTED_LANGUAGES","normalizedLocale","groups","base","localeMiddleState","setLocaleMiddleState","locale","setLocale","updateUserLocaleUnlessLender","localeValue","isLender","updateUserAPI","payload","useEffect","isEmpty","showUserAPI","spanishAcknowledgement","useUpdateEffect","Provider","value","changeLocale","lng","hideLanguageAcknowledmentModal","accepted","updateTaskItemAPI","taskItemId","useEffectHook","dependencies","console","warn","initialRender","useRef","current"],"sourceRoot":""}